live-sfu-demo/internal/server/static/assets/index-BdWedm3z.js

3 lines
108 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-Dnk7IuZ1.js","assets/ui-IRgYFSdb.js","assets/arrow-right-0sCpnO2l.js","assets/monitor-play-C-PzXW6Y.js","assets/hash-CWttfl8h.js","assets/radio-tower-Dh2kkAT-.js","assets/shield-check-BlUgqha3.js","assets/watch-CLBI8bod.js","assets/message-square-BquICWWB.js","assets/globe-Bm9A8kLD.js","assets/sse-DYG4STad.js","assets/rooms-BEok5Thy.js","assets/users-D4VtzHPx.js","assets/users-BOBhaGXT.js","assets/user-round-BIfZWOnq.js","assets/login-BLBr0kRf.js","assets/manage-DtLPiCAv.js"])))=>i.map(i=>d[i]);
import{$ as e,B as t,D as n,E as r,F as i,G as a,H as o,I as s,J as c,K as l,L as u,M as d,O as f,P as p,Q as m,R as h,S as g,T as _,U as v,V as y,W as b,X as x,Y as S,Z as C,_ as w,b as T,et as ee,f as te,h as ne,j as re,k as ie,m as ae,nt as oe,p as E,q as se,rt as ce,tt as le,w as ue,x as de,y as fe,z as pe}from"./ui-IRgYFSdb.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function me(e){return e[e.length-1]}function he(e,t){return typeof e==`function`?e(t):e}var ge=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;function ve(e){for(let t in e)if(ge.call(e,t))return!0;return!1}var ye=()=>Object.create(null),be=(e,t)=>D(e,t,ye);function D(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=we(e)&&we(i);if(!a&&!(Se(e)&&Se(i)))return i;let o=a?e:xe(e);if(!o)return i;let s=a?i:xe(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:ge.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=D(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function xe(e){let t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(let r of n){if(!_e.call(e,r))return!1;t.push(r)}return t}function Se(e){if(!Ce(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!Ce(n)||!n.hasOwnProperty(`isPrototypeOf`))}function Ce(e){return Object.prototype.toString.call(e)===`[object Object]`}function we(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function O(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!O(e[r],t[r],n))return!1;return!0}if(Se(e)&&Se(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!O(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!O(e[o],t[o],n)))return!1;return i===a}return!1}var Te=/[\x00-\x1f\x7f"<>`{}]/g;function Ee(e){return e.replace(Te,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function De(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return Ee(t)}var Oe=[`http:`,`https:`,`mailto:`,`tel:`];function ke(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function Ae(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=De(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=De(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function je(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function Me(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ne(){throw Error(`Invariant failed`)}function Pe(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var k=4,Fe=5;function Ie(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.indexOf(`{`),s;if(o!==-1&&o+1<a.length&&(s=a.indexOf(`}`,o))!==-1){let r=a.charCodeAt(o+1);if(r===45){if(o+2<a.length&&a.charCodeAt(o+2)===36){let e=o+3,r=s;if(e<r)return n[0]=3,n[1]=t+o,n[2]=t+e,n[3]=t+r,n[4]=t+s+1,n[5]=i,n}}else if(r===36){let r=o+1,a=o+2;return a===s?(n[0]=2,n[1]=t+o,n[2]=t+r,n[3]=t+a,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+a,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function Le(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=Ie(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=ze(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c),m=t?p?t:t.toLowerCase():void 0,h=c?p?c:c.toLowerCase():void 0,g=f===1?i.dynamic:f===3?i.optional:i.wildcard,_=f!==2&&!d&&g?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===m&&e.suffix===h);if(_)n=_;else{let e=Be(f,r,p,m,h);n=e,e.parent=i,e.depth=a;let t;t=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],t.push(e),t.length===2&&o?.push(t)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=ze(r);e.kind=Fe,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=ze(r);e.kind=k,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)Le(e,t,r,c,i,a,o,s)}function Re(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function ze(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Be(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Ve(e,t){let n=ze(`/`),r=new Uint16Array(6),i=[];for(let t of e)Le(!1,r,t,1,n,0,i);for(let e of i)e.sort(Re);t.masksTree=n,t.flatCache=Pe(1e3)}function He(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=qe(e,t.masksTree);return t.flatCache.set(e,r),r}function Ue(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=ze(`/`),Le(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),qe(r,o,n)}function We(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=qe(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ye(a.route)),t.matchCache.set(r,a),a}function Ge(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Ke(e,t=!1,n){let r=ze(e.fullPath),i=new Uint16Array(6),a=[],o={},s={},c=0;Le(t,i,e,1,r,0,a,e=>{if(n?.(e,c),e.id in o&&Ne(),o[e.id]=e,c!==0&&e.path){let t=Ge(e.fullPath);(!s[t]||e.fullPath.endsWith(`/`))&&(s[t]=e)}c++});for(let e of a)e.sort(Re);return{processedTree:{segmentTree:r,singleCache:Pe(1e3),matchCache:Pe(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:s}}function qe(e,t,n=!1){let r=e.split(`/`),i=Ze(e,r,t,n);if(!i)return null;let[a]=Je(e,r,i);return{route:i.node.route,rawParams:a}}function Je(e,t,n){let r=Xe(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===k)break;if(u.kind===Fe){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix?.length??0,r=u.suffix?.length??0,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+(t.prefix?.length??0),e.length-(t.suffix?.length??0)),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function Ye(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Xe(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Ze(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!me(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!tt(l,n))continue;if(i.parse){if(!et(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==k&&tt(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===k||i.kind===2)&&tt(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[u],y;if(_&&i.index){let n={node:i.index,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;if(i.index.parse&&(et(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&$e(f,o))return n;tt(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(a){if(_)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];s.push({node:n,index:u,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+Qe(o,u),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+Qe(o,u),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,statics:f+Qe(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&s.push({node:e,index:u+1,skipped:d,statics:f+Qe(o,u),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];s.push({node:t,index:u,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Qe(e,t){return 2**(e-t-1)}function $e(e,t){return e===2**(t-1)-1}function et(e,t,n){let r,i;try{[r,i]=Je(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function tt(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===k)>(e.node.kind===k)||t.node.kind===k==(e.node.kind===k)&&t.node.depth>e.node.depth)))}function nt(e){return rt(e.filter(e=>e!==void 0).join(`/`))}function rt(e){return e.replace(/\/{2,}/g,`/`)}function it(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function A(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function at(e){return A(it(e))}function ot(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function st(e,t,n){return ot(e,n)===ot(t,n)}function ct({base:e,to:t,trailingSlash:n=`never`,cache:r}){if(t.includes(`//`)&&(t=rt(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=rt(e)),o=e.split(`/`);o.length>1&&me(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(me(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?rt(s):s)||`/`;return a&&r&&r.set(a,c),c}function lt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function ut(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>ft(e,n)).join(`/`):ft(r,n):r}function dt({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=Ie(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=ut(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=ut(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=ut(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function ft(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function j(e){return e?.isNotFound===!0}function pt(){try{return sessionStorage}catch{return}}var mt=`tsr-scroll-restoration-v1_3`,ht=pt();function gt(){try{return JSON.parse(ht?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function _t(){try{ht?.setItem(mt,JSON.stringify(vt))}catch{}}var vt=gt(),yt=`data-scroll-restoration-id`,bt=e=>e.state.__TSR_key||e.href;function xt(e){let t=e.getAttribute(yt);if(t)return`[${yt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var St=!1,Ct=`window`;function wt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function Tt(e){let t=new Set;for(let n of e){if(n===Ct)continue;let e=wt(n);e&&t.add(e)}return t}function Et(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||bt,a=new Set,o=e=>{let t=vt[e]||={};for(let e of a)e===document?t[Ct]={scrollX,scrollY}:e.isConnected&&(t[xt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,St=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{St||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),_t()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=vt[d];if(e){let t=vt[u];for(let n in e){if(n===Ct){if(s)continue}else{let e=wt(n);if(!e||s&&o&&(l??=Tt(o),l.has(e)))continue}t||=vt[u]={},t[n]??=e[n]}}}St=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=Tt(o));let t=e&&i&&c,s=r.restoring?vt[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===Ct){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=wt(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{St=!1}}))}function Dt(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Ot(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function kt(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Ot(r):Array.isArray(t)?t.push(Ot(r)):n[e]=[t,Ot(r)]}return n}var At=/^(?:\s|["[{\d-]|fa|nu|tr)/,jt=Nt(JSON.parse),Mt=Pt(JSON.stringify,JSON.parse);function Nt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=kt(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Pt(e,t){let n=t===JSON.parse;function r(r){if(r&&typeof r==`object`)try{return e(r)}catch{}else if(t&&typeof r==`string`){if(n&&!At.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Dt(e,r);return t?`?${t}`:``}}var Ft=`__root__`;function It(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Lt(e){return e instanceof Response&&!!e.options}function Rt(e){return{input:({url:t})=>{for(let n of e)t=Bt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Vt(e[n],t);return t}}}function zt(e){let t=at(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=nt([`/`,t,e.pathname]),e)}}function Bt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Vt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Ht(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i}=t,a=new Map,o=n(`idle`),s=n(e),c=n(void 0),l=n([]),u=r(()=>l.get().map(e=>a.get(e).get())),d=r(()=>({status:o.get(),isLoading:o.get()===`pending`,matches:u.get(),location:s.get(),resolvedLocation:c.get()}));function f(e){let t=a.get(e);return t||(t=n(void 0),a.set(e,t)),t}let p={status:o,location:s,resolvedLocation:c,ids:l,matches:u,byRoute:a,__store:d,getMatchStore:f,setMatches:m};function m(e){let t=l.get(),n=e.map(e=>e.routeId);i(()=>{Me(t,n)||l.set(n);for(let e of t)n.includes(e)||a.get(e).set(()=>void 0);for(let t of e){let e=f(t.routeId);e.get()!==t&&e.set(t)}})}return p}var M=`__TSR_index`,Ut=`popstate`,Wt=`beforeunload`;function Gt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Yt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[M];i=Kt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[M];i=Kt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[M]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function Kt(e,t){t||={};let n=Xt();return{...t,key:n,__TSR_key:n,[M]:e}}function qt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Yt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Xt();t.history.replaceState({[M]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_=()=>{g&&(S._ignoreSubscribers=!0,(g[2]?t.history.pushState:t.history.replaceState)(g[1],``,g[0]),S._ignoreSubscribers=!1,g=void 0,u=void 0)},v=(e,t,n)=>{let r=s(t),i=!!g;i||(u=l),l=Yt(t,n),g=[r,n,g?.[2]||e],i||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(f){f=!1;return}let e=c(),n=e.state[M]-l.state[M],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),S.notify(u);return}}}l=c(),S.notify(u)},x=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Gt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>v(!0,e,t),replaceState:(e,t)=>v(!1,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Wt,x,{capture:!0}),t.removeEventListener(Ut,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Wt,x,{capture:!0}),t.addEventListener(Ut,b),t.history.pushState=function(...e){let r=n.apply(t.history,e);return S._ignoreSubscribers||y(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return S._ignoreSubscribers||y(`REPLACE`),n},S}function Jt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Yt(e,t){let n=Jt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Xt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[M]:0,key:a,__TSR_key:a}}}function Xt(){return(Math.random()+1).toString(36).substring(7)}function Zt(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Qt(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function $t({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function en(e,t,n,r){for(let i of t){if(r&&e._tx!==r)return;n.some(e=>e.routeId===i.routeId)||e.routesById[i.routeId].options.onLeave?.(i)}for(let i of n){if(r&&e._tx!==r)return;e.routesById[i.routeId].options[t.some(e=>e.routeId===i.routeId)?`onStay`:`onEnter`]?.(i)}}var tn=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=lt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:qt()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=Pe(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Ht(this.latestLocation,e),Et(this)}let a=this.options.basepath??`/`,o=this.options.rewrite;if(r||n!==a||i!==o){this.basepath=a;let e=[],t=at(a);t&&t!==`/`&&e.push(zt({basepath:a})),o&&e.push(o),this.rewrite=e.length===0?void 0:e.length===1?e[0]:Rt(e),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Ke(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&Ve(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{for(let t of this.subscribers)if(t.eventType===e.type)try{t.fn(e)}catch(e){console.error(e)}},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:Ae(e).path,external:!1,searchStr:o,search:be(t?.search,i),hash:Ae(r.slice(1)).path,state:D(t?.state,a)}}let o=new URL(i,this.origin),s=Bt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:Ae(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:be(t?.search,c),hash:Ae(s.hash.slice(1)).path,state:D(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>ct({base:e,to:t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>{let t=Object.create(null),n=We(A(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{let t=(t={})=>{if(t.href){let e=Yt(t.href,{});t={...t,to:Bt(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let n=t._fromLocation||this._pendingLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r[1],a=r[2],o=r[3],s=this.resolvePathWithBase(i,t.to?`${t.to}`:`.`),c=cn(t.params,o),l=this.routesByPath[A(s)],u;if(l)u=this.getRouteBranch(l);else if(s.includes(`$`))u=[];else{let[e,t,n]=this.getMatchedRoutes(s);u=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(u=[...u,this.options.notFoundRoute])}if(u.length&&ve(c))for(let e of u){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){c===o&&(c=Object.assign(Object.create(null),c));try{Object.assign(c,t(c))}catch{}}}let d=e.leaveParams?s:Ae(dt({path:s,params:c,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,f=a;if(e._includeValidateSearch&&this.options.search?.strict){let e={};u.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,an(t.options.validateSearch,{...e,...f}))}catch{}}),f=e}f=on(f,t,u,e._includeValidateSearch),f=be(a,f);let p=this.options.stringifySearch(f),m=t.hash===!0?n.hash:t.hash?he(t.hash,n.hash):void 0,h=m?`#${m}`:``,g=t.state===!0?n.state:t.state?he(t.state,n.state):{};t.state&&(g=D(n.state,g));let _=`${d}${p}${h}`,v,y,b=!1;if(this.rewrite){let e=new URL(_,this.origin),t=Vt(this.rewrite,e);v=e.href.replace(e.origin,``),t.origin===this.origin?y=t.pathname+t.search+t.hash:(y=t.href,b=!0)}else v=je(_),y=v;return{publicHref:y,href:v,pathname:d,search:f,searchStr:p,state:g,hash:m??``,external:b,unmaskOnReload:t.unmaskOnReload}},n=t(e);if(e.mask)n.maskedLocation=t({from:e.from,...e.mask});else if(this.options.routeMasks){let r=He(n.pathname,this.processedTree);if(r){let i=Object.assign(Object.create(null),r.rawParams),{from:a,params:o,...s}=r.route,c=cn(o,i);n.maskedLocation=t({from:e.from,...s,params:c})}}return n},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=A(this.latestLocation.href)===A(n.href)&&O($t(n.state),$t(this.latestLocation.state)),a=this._commitPromise,o,s=new Promise(e=>{o=e});if(s.resolve=()=>{o(),a?.resolve()},this._commitPromise=s,i)this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:r}})}return this._scroll.next=n.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,...a}={})=>{let o=this.buildLocation({...a,_includeValidateSearch:!0});this._pendingLocation=o;let s=this.commitLocation({...o,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this._pendingLocation===o&&(this._pendingLocation=void 0)}),s},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(ke(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.hash=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Hn(this,e)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&window.CSS?.supports?.(`selector(:active-view-transition-type(a))`)){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Qt(r,i)):t.types;if(a===!1)return e();n={update:e,types:a}}else n=e;return document.startViewTransition(n).updateCallbackDone}return e()},this.invalidate=e=>{let t=this._committed,n=e?.filter,r=this._preloads,i=new Set([...t,...this._cache.values(),...[...r?.values()??[]].flat(),...this._tx?.[3]??[]].filter(e=>!n||n(e)).map(e=>e.id)),a=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),a.push(e));let o=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&Zt(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(o);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i)this._flights?.delete(e);for(let e of a)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href){let t=this.buildLocation(e.options).publicHref||`/`;e.options.href=t,e.headers.set(`Location`,t)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&ke(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=this._cache,n=this._preloads,r=e?.filter,i=[],a=[];for(let[e,n]of t)(!r||r(n))&&(a.push(e),i.push(n));let o=[];for(let[e,t]of n??[])(!r||t.some(r))&&(o.push(e),i.push(...t));for(let e of a)t.delete(e);for(let e of o)n.delete(e);for(let e of i){let t=e._flight;e._flight=void 0,t&&!--t[2]&&(this._flights?.get(e.id)===t&&this._flights.delete(e.id),o.push(t[1]))}for(let e of o)e.abort()},this.loadRouteChunk=N,this.preloadRoute=(e,t)=>Un(this,e,0,t),this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n),i=this.stores.status.get()===`pending`;if(t?.pending&&!i)return!1;let a=t?.pending??!i?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),o=Ue(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!O(o.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?O(a.search,r.search,{partial:!0})?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Mt,parseSearch:e.parseSearch??jt,protocolAllowlist:e.protocolAllowlist??Oe}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ye(e),this.routeBranchCache.set(e,t)),t}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:A(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?sn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=this._committed,u=(e,t)=>{let n=l[t];return n?.routeId===e.id?n:e===this.options.notFoundRoute?l.find(t=>t.routeId===e.id):void 0},d;for(let n=0;n<a.length;n++){let i=a[n],o=c[n-1],l,f,p;{let n=o?.search??e.search,r=o?._strictSearch??void 0;try{let e=an(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof nn||(r=new nn(e.message,{cause:e})),t?.throwOnError)throw r;l=n,f={},p=r}}let m=``,h=``;try{m=i.options.loaderDeps?.({search:l})??``,h=m&&JSON.stringify(m)||``}catch(e){if(t?.throwOnError)throw e;p??=e}let{interpolatedPath:g,usedParams:_}=dt({path:i.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),v=i.id+g+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(_,d);let x;if(!b)try{ln(i,d)}catch(e){if(x=j(e)||Lt(e)?e:new rn(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:be(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=Zt(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:g,updatedAt:Date.now(),search:y?be(y.search,l):l,_strictSearch:f,searchError:p,status:e,isFetching:!1,error:void 0,paramsError:x,context:{},abortController:t?._controller??new AbortController,cause:S,loaderDeps:y?D(y.loaderDeps,m):m,invalid:!1,preload:!1,staticData:i.options.staticData||{},fullPath:i.fullPath}}let w=s===i.id;C._notFound&&!w&&(C.error=void 0),C._notFound=w,c[n]=C}for(let e=0;e<c.length;e++){let n=c[e];n.params=n.cause===`stay`?be(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=me(this.stores.ids.get()),n=t?this.stores.byRoute.get(t).get():void 0,r=n?.id,i=this.lightweightCache.get(e);if(i&&i[0]===r)return i[1];let[a,o]=this.getMatchedRoutes(e.pathname),s=me(a),c={...e.search};for(let e of a)try{Object.assign(c,an(e.options.validateSearch,c))}catch{}let l=n&&n.routeId===s.id&&n.pathname===e.pathname,u;if(l)u=n.params;else{let e=Object.assign(Object.create(null),o);for(let t of a)try{ln(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}},nn=class extends Error{},rn=class extends Error{};function an(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new nn(`Async validation not supported`);if(n.issues)throw new nn(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function on(e,t,n,r){let i=[];for(let e of n){let t=e.options;`search`in t?t.search?.middlewares&&i.push(...t.search.middlewares):(t.preSearchFilters||t.postSearchFilters)&&i.push(({search:e,next:n})=>{let r=n(t.preSearchFilters?t.preSearchFilters.reduce((e,t)=>t(e),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((e,t)=>t(e),r):r});let n=t.validateSearch;r&&n&&i.push(({search:e,next:t,meta:r})=>{let i=t(e);try{let e=an(n,i);if(r&&e)for(let t in e)t in i||(r.defaulted||=new Map).set(t,e[t]);return{...i,...e}}catch{}return i})}let a=(e,n,r)=>{if(e>=i.length){if(!t.search)return{};if(t.search===!0)return n;let e=he(t.search,n);return r&&(r.explicit=e),e}return i[e]({search:n,next:(t,n)=>{if(n){let n=r||{};return{search:a(e+1,t,n),meta:n}}return a(e+1,t,r)},meta:r})};return a(0,e)}function sn(e,t){if(e!==`root`){let e;for(let n=t.length-1;n>=0;n--){let r=t[n];if(r.options.notFoundComponent)return r.id;e||=r.children&&r.id}if(e)return e}return Ft}function cn(e,t){if(e===!1||e===null)return Object.create(null);if((e??!0)===!0)return t;let n=Object.assign(Object.create(null),t);return Object.assign(n,he(e,n))}function ln(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function un(e,t){return e.options[t]?.preload?.()}function dn(e,t){let n=un(e,`component`),r=un(e,`pendingComponent`),i=t&&r?r.then(t):r;return t&&!r&&t(),n&&i?Promise.all([n,i]).then(()=>{}):n??i}function N(e,t,n){let r=()=>t===!1?void 0:t?un(e,t):dn(e,n),i=e._lazy;if(i)return i===!0?r():i.then(r);if(!e.lazyFn)return r();let a=e.lazyFn().then(t=>{{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazy=!0}},t=>{throw e._lazy=void 0,t});return e._lazy=a,a.then(r)}function fn(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}var P=0,F=1,pn=2,I=3,L=[4];function mn(e){return typeof e[0]==`number`}function R(e,t){return t.aborted?Promise.race([Promise.reject(t),e]):new Promise((n,r)=>{let i=()=>r(t);t.addEventListener(`abort`,i,{once:!0}),Promise.resolve(e).then(n,r).finally(()=>t.removeEventListener(`abort`,i))})}function z(e,t){return e.routesById[t.routeId]}function hn(e,t,n){return Lt(e)?[I,e]:j(e)?(e.routeId||=n,[pn,e]):(t&&typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),t?[F,e]:[P,e])}function gn(e,t){let n=hn(t,!0,e.id);if(n[0]!==F)return n;try{e.options.onError?.(n[1])}catch(t){n=hn(t,!0,e.id)}return n}function _n(e,t,n,r,i){return i[0].signal.aborted?L:An(e,t,n,gn(n,r),i)}async function vn(e,t,n,r,i,a){let[o,s]=t,c=n[0].signal,l=!!n[3];for(let i=n[6]??0;i<r;i++){let r=s[i],u=z(e,r);r.abortController=n[0];let d=s[i-1]?.context??e.options.context??{},f={params:r.params,location:o,navigate:t=>e.navigate({...t,_fromLocation:o}),buildLocation:e.buildLocation,cause:l?`preload`:r.cause,abortController:n[0],preload:l,matches:s,routeId:u.id},p=d;try{let e=r._ctx;!e&&u.options.context&&(e=r._ctx=u.options.context({...f,deps:r.loaderDeps,context:d})||{}),p={...d,...e},r.context=p}catch(a){return B(e,r),[i,_n(e,t,u,a,n)]}if(c.aborted)return[i,L];let m=r.paramsError??r.searchError;if(m!==void 0)return B(e,r),[i,_n(e,t,u,m,n)];let h=u.options.beforeLoad;if(!h)continue;let g={...f,search:r.search,context:p,...e.options.additionalContext},_=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{xn(e,r,`beforeLoad`,n[0]);let a=await R(h(g),c);if(c.aborted)return[i,L];let o=An(e,t,u,hn(a,!1,u.id),n);if(o[0]!==P)return B(e,r),[i,o];r.context={...p,...a}}catch(a){return B(e,r),[i,_n(e,t,u,a,n)]}finally{r.status===`pending`&&(r.status=_),xn(e,r,!1,n[0])}}i()}function yn(e,t,n){if(!(!n||--n[2])){if(e._flights?.get(t.id)===n){let n=e._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(t)&&n[3].some(e=>e.id===t.id)&&n[3].some(e=>e.isFetching===`beforeLoad`))return;e._flights.delete(t.id)}return n[1]}}function B(e,t){let n=t._flight;t._flight=void 0,yn(e,t,n)?.abort()}function V(e,t,n,r){let i=[];for(let a of t)if(!n?.includes(a)){let t=a._flight;if(a._flight=void 0,r&&t?.[2]===1&&e._flights?.get(a.id)===t&&n?.some(e=>e.id===a.id))t[2]=0;else{let n=yn(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function bn(e){for(let t of e){let e=t._flight;e&&e[2]++}}function xn(e,t,n,r){if(t.isFetching=n,r&&e._tx?.[0]!==r)return;let i=e.stores.byRoute.get(t.routeId),a=i?.get();a?.id===t.id&&i.set({...a,isFetching:n})}function Sn(e,t,n,r,i,a,o){let s=t[0];return{params:n.params,location:s,navigate:t=>e.navigate({...t,_fromLocation:s}),cause:o?`preload`:n.cause,abortController:i,preload:o,deps:n.loaderDeps,parentMatchPromise:a,context:n.context,route:r,...e.options.additionalContext}}async function Cn(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return L;if(!i)return[P,void 0];let l=n._flight;xn(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(Sn(e,t,n,r,s,a,!!o[3]))).then(e=>hn(e,!1,r.id),e=>hn(e,!0,r.id)).then(t=>(t[0]!==P&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===F&&l[2]?gn(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],An(e,t,r,await R(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return B(e,n),L}finally{xn(e,n,!1,s)}}function wn(e,t,n){t[0]===P?(e.loaderData=t[1],e.error=void 0,e.status=`success`,e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):t[0]!==I&&(e.status=`success`,e.error=void 0,e.invalid=!0)}function Tn(e,t,n){let r=e._cache.get(t.id);if(r!==n||e._committed.some(e=>e.id===t.id&&e._flight===t._flight))return;let i={...t,_notFound:void 0,context:{}};i._flight&&i._flight[2]++,e._cache.set(t.id,i),r&&B(e,r)}function En(e,t){return t[0]===F||t[0]===pn?{...e,status:t[0]===F?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Dn(e,t,n,r,i,a,o){let s=t[1][n],c=z(e,s),l=!!a[3],u=e._cache.get(s.id),d,f=!1,p;try{if(s.status===`success`&&(d=c.options.shouldReload,typeof d==`function`&&(d=d(Sn(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=L)),!p){if(s.status!==`success`)f=!0;else{let t=a[3]||s.preload?c.options.preloadStaleTime??e.options.defaultPreloadStaleTime??3e4:c.options.staleTime??e.options.defaultStaleTime??0;f=!!(s.invalid||d||d===void 0&&Date.now()-s.updatedAt>=t&&(a[5]||s.cause===`enter`||a[2].some(e=>e.routeId===s.routeId&&e.id!==s.id)))}}}catch(n){s.invalid=!0,B(e,s),p=_n(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`?m:m?.handler,g=(!l||c.options.preload!==!1)&&m?e._flights?.get(s.id):void 0;g===s._flight||p?g=void 0:g&&!f&&!l&&d===void 0?f=!0:f||(g=void 0);let _=!!(m&&f&&s.status===`success`&&!l&&!a[4]&&((typeof m==`function`?void 0:m?.staleReloadMode)??e.options.defaultStaleReloadMode)!==`blocking`),v=f&&(!l||c.options.preload!==!1),y=v&&!_&&(s.status!==`success`||!!m),b=n>=o?a[7]:void 0,x=c.lazyFn&&c._lazy!==!0?b:void 0;if(v&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),g&&g[2]++,y){let t=s._flight;s._flight=g,yn(e,s,t)?.abort(),n>=o&&(s.status=`pending`),b?.()}v||(s.isFetching=!1);let S=(p?Promise.resolve(p):y?Cn(e,t,s,c,h,i,a):Promise.resolve([P,s.loaderData])).then(t=>(y&&(wn(s,t,l),t[0]===P&&(m&&!a[0].signal.aborted&&Tn(e,s,u),n>=o&&(s.status=`pending`))),t)),C=R(Promise.resolve().then(()=>N(c,void 0,x)),a[0].signal).then(()=>void 0,r=>t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound))?void 0:[n,_n(e,t,c,r,a)]).then(e=>S.then(t=>(y&&!e&&t[0]===P&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,b?.()),e)));if(r.push([n,S,C]),!_)return S.then(e=>En(s,e));let w={...s,status:`pending`,preload:!1,_flight:g};s.invalid=!1,s.isFetching=`loader`;let T=Cn(e,t,w,c,h,i,a).then(e=>(s.isFetching=!1,wn(w,e,!1),e));return(t[2]??=[]).push([n,T,C,w]),T.then(e=>En(w,e))}async function On(e,t,n,r,i=0){let a=n?.[1][1],o=a?.routeId?t.findIndex(e=>e.routeId===a.routeId):n?.[0]??t.length-1;o<0&&(o=0);for(let n=o;n>=0;n--){let i=z(e,t[n]);try{let e=N(i,!1);e&&await R(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function H(e,t){t[2]&&=(V(e,t[2].map(e=>e[3])),void 0)}async function kn(e,t,n,r){let i;try{await Promise.all(e.map(e=>e[1].then(async t=>{let a=e[0];if(!(r&&a>=await r)){if(t[0]>=I)throw[a,t];!i&&t[0]!==P&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===I)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function An(e,t,n,r,i,a){for(;r[0]===I;){let o=r[1];if(o.options.reloadDocument?i[3]:i[1]>=20)return r;try{return o.options.href&&o.options.reloadDocument?(e.resolveRedirect(o),r):[I,o,e.buildLocation({...o.options,_fromLocation:t[0],_includeValidateSearch:!0})]}catch(e){r=a?[F,e]:gn(n,e),a=!0}}return r}async function jn(e,t,n,r,i,a){let o=t[1],s=await i,c=!1,l=o.findIndex(e=>e._notFound),u=t=>t[1][0]===pn?On(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=I)d=0;else if(s){d=s[2]??=await u(s);for(let e of n){if(e[0]>=d)break;let t=await e[1];if(t[0]!==P&&t[0]<I&&!(`loaderData`in o[e[0]])){s=[e[0],t],d=s[2]=await u(s);break}}}for(let e of n){if(e[0]>=d)break;let t=await e[2];if(t){s=t;break}}if((s?.[1][0]??0)>=I){let n=s[1];if(n[0]!==I||n[1].options.reloadDocument||n[2])return H(e,t),n;c=!0,s=[0,[F,Error(`Too many redirects`)]]}let f=s?s[2]??await u(s):l;if(f>=0){let i=s?.[1],l=i?.[0],u=o[f],d=i?.[1],p=()=>{i&&(u._notFound=void 0,l===F?u.status=`error`:(d.routeId=u.routeId,u.routeId===e.routeTree.id?(u.status=`success`,u._notFound=!0):u.status=`notFound`),u.error=d,u.isFetching=!1)};p(),i||a?.();let m=z(e,u);try{await R(i?Promise.resolve().then(()=>N(m,l===F?`errorComponent`:`notFoundComponent`)):Promise.all([N(m),N(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return H(e,t),L}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),H(e,t),V(e,o),p()):u.status=`success`}return t}async function Mn(e,t,n,r=0,i=t[1].length){let a=t[1];for(let t=r;t<i;t++){let r=a[t],i=z(e,r).options;if(i.head||i.scripts)try{let t={ssr:e.options.ssr,matches:a,match:r,params:r.params,loaderData:r.loaderData},[o,s]=await R(Promise.all([i.head?.(t),i.scripts?.(t)]),n);r.meta=o?.meta,r.links=o?.links,r.headScripts=o?.scripts,r.styles=o?.styles,r.scripts=s}catch(e){if(e===n&&n.aborted)break;console.error(e)}if(r.status!==`success`||r._notFound)break}return t}async function Nn(e,t,n,r){let i=[t,n],a=r[0].signal,o;try{let t=e.stores.matches.get(),s=n.findIndex(e=>e._notFound);if(e.options.notFoundMode!==`root`&&s>=0){let t=await On(e,i[1],void 0,a,s);t!==s&&(n[s]._notFound=void 0,n[t]._notFound=!0),s=t}let c=s<0?n.length:s+1,l=0;for(;l<c&&l!==s;){let e=n[l],i=r[2][l],a=t[l];if(i?.id!==e.id||i.status!==`success`||i._notFound||e.preload||a?.id!==e.id||a.status!==`success`||a._notFound)break;l++}let u=[],d=r[6]??0,f=d?Promise.resolve(i[1][d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Dn(e,i,t,u,f,r,l)},m=await vn(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===pn){let t=await On(e,i[1],m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=I&&(c=0);p()}if(!a.aborted&&!r[3]){let t=[];for(let[n,r]of e._flights??[])r[2]||(e._flights.delete(n),t.push(r[1]));for(let e of t)e.abort()}let h=jn(e,i,u,r[0],kn(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=kn(i[2],void 0,void 0,h.then(e=>mn(e)?0:fn(e[1]).length,()=>0))),o=await h}catch(t){if(H(e,i),t===a&&a.aborted)return L;throw t}return mn(o)?o:Mn(e,o,a,r[6]===o[1].length?r[6]:0)}function Pn(e,t){if(e._tx!==t)return;let n=t[3],r=e.stores.matches.get(),i=e._pending;for(let a=0;a<n.length;a++){let o=n[a],s=o.status===`success`&&!o._notFound,c=r[a]?.id===o.id&&r[a]?.status===`pending`;if(s&&!c)continue;let l=z(e,o),u=s&&c||o.invalid?0:l.options.pendingMs??e.options.defaultPendingMs,d=l.options.pendingComponent??e.options.defaultPendingComponent;if(!d||typeof u!=`number`||u===1/0){i&&(i[0]=t,i[2]=0,i[4]=!0);return}let f=l.options.pendingMinMs??e.options.defaultPendingMinMs??0,p=!1;if(i?.[1]===o.id?(p=i[0]!==t,i[0]=t):(clearTimeout(i?.[3]),e._pending=i=void 0),i||(e._pending=i=[t,o.id,c?Date.now()+f:t[4]+u,void 0,c||void 0,d]),i[4]&&!p&&i[5]===d)return;if(i[5]=d,!i[4]){clearTimeout(i[3]);let n=i[2]-Date.now();if(n>0){i[3]=setTimeout(()=>Pn(e,t),n);return}i[2]=0}let m=n.map(e=>({...e,_flight:void 0}));m[a].status=`pending`;let h=i[4]=e.startTransition(()=>e.stores.setMatches(m),m).then(t=>(t&&e._pending===i&&i[4]===h&&!i[2]&&(i[2]=Date.now()+f),t));return}}function U(e,t){let n=e._pending;(e._tx===t||!e._tx?.[3].some(e=>e.id===n?.[1]))&&(clearTimeout(n?.[3]),e._pending=void 0)}async function Fn(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!fn(t[3]).some(e=>e.id===n[1]))return;let i;try{await R(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function In(e,t){e._committed=t,e.stores.setMatches(t)}function Ln(e,t,n,r){let i=e._committed,a=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let o=fn(n).length,s=new Map;{let t=Date.now();for(let r of[...i,...a.values()]){if(r.status!==`success`||n.some((e,t)=>e.id===r.id&&(t<o||e.status===`success`)))continue;let i=z(e,r);!i.options.loader||t-r.updatedAt>=(r.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||s.set(r.id,a.get(r.id)===r?r:{...r,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=s,In(e,n),V(e,[...a.values(),...i],[...n,...s.values()]),en(e,i,n,t)}async function Rn(e,t){let n=e._tx;for(;n&&n!==t;){if(await n[5],e._tx===n)return;n=e._tx}}async function zn(e,t,n){let r=n[1],i=n[2];if(!i){await e.navigate({...r.options,replace:!0,ignoreBlocker:!0});return}if(r.options.reloadDocument){await e.navigate({href:i.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});return}i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.options.viewTransition,replace:!0,resetScroll:r.options.resetScroll,hashScrollIntoView:r.options.hashScrollIntoView,ignoreBlocker:!0});queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),await a}async function Bn(e,t,n,r,i){let a=n.map(e=>({...e}));bn(a);for(let t of r)B(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await jn(e,o,r,t[0],i)}catch(t){throw V(e,a),t}if(mn(s)){V(e,a),s[0]===I&&e._tx===t&&e._committed===n&&await zn(e,t,s);return}let c=await Mn(e,s,t[0].signal);if(e._tx!==t||e._committed!==n){V(e,c[1]);return}for(let t of c[1]){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),B(e,n))}In(e,c[1]),V(e,n,c[1])}async function Vn(e,t,n,r,i,a){let o=[t[0],t[1],e._committed,void 0,i,n,a,r],s=await Nn(e,t[2],t[3],o);if(mn(s)){let n=s[0]===I&&e._tx===t;if((!n||s[1].options.reloadDocument)&&U(e,t),V(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){U(e,t);return}await zn(e,t,s);return}if(e._tx!==t){U(e,t),V(e,s[1]),H(e,s);return}if(await Fn(e,t),e._tx!==t){U(e,t),V(e,s[1]),H(e,s);return}let c=t[2],l=Qt(c,e.stores.resolvedLocation.get()),u=s[2];await e.startViewTransition(async()=>{if(e._tx!==t){U(e,t),V(e,s[1]),H(e,s);return}if(await Fn(e,t),e._tx!==t){U(e,t),V(e,s[1]),H(e,s);return}let n=await e.startTransition(()=>{U(e,t),Ln(e,t,s[1],a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s[1]);if(e._tx!==t){H(e,s);return}u?.length&&Bn(e,t,s[1],u,s[3]).catch(console.error),e.batch(()=>{e.stores.resolvedLocation.set(c),e.stores.status.set(`idle`),e._tx===t&&e.emit({type:`onResolved`,...l}),n&&e._tx===t&&e.emit({type:`onRendered`,...l})}),e._tx===t&&(e._commitPromise?.resolve(),e._commitPromise=void 0)})}async function Hn(e,t){let n=e._tx,r=e.stores.resolvedLocation.get(),i=r??e.stores.location.get(),a=e.latestLocation,o=e._pendingLocation,s=o?.href===a.href?o._redirects??0:0,c=e._handoff,l=c?.[0](),u=new AbortController,d=e._preflight;if(e._preflight=u,l||c?.[1](),d?.abort(),u.signal.aborted){await Rn(e,n);return}let f=Qt(a,r);if(e.emit({type:`onBeforeNavigate`,...f}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...f}),u.signal.aborted){await Rn(e,n);return}let p=i.href===a.href,m=u,h=e.matchRoutes(a,{_controller:u});bn(h);let g=l?c[1](h):void 0;if(g?m=l:l?.abort(),u.signal.aborted){V(e,h),await Rn(e,n);return}e._preflight=void 0;let _=[m,s,a,h,Date.now(),Promise.resolve().then(()=>Vn(e,_,p,()=>Pn(e,_),t?.sync,g)).then()];if(e._tx=_,n){for(let t of e.stores.matches.get()){if(e._tx!==_)break;t.isFetching&&xn(e,t,!1)}n[0].abort(),V(e,n[3],_[3],!0)}if(e._tx!==_){V(e,_[3]),_[3]=[],await Rn(e,_);return}e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(g||!e._committed.length&&!h.some(e=>e._notFound))&&Pn(e,_),await _[5],await Rn(e,_)}async function Un(e,t,n=0,r){let i=r??e.buildLocation(t),a=e._committed,o=new AbortController,s;try{s=e.matchRoutes(i,{_controller:o}),bn(s)}catch(e){o.abort(),j(e)||console.error(e);return}(e._preloads??=new Map).set(o,s);let c;try{let t;try{t=await Nn(e,i,s,[o,n,a,!0])}finally{c=e._preloads.delete(o),V(e,s),o.abort()}if(!mn(t))return t[1];if(c&&t[0]===I&&!t[1].options.reloadDocument)return Un(e,t[1].options,n+1,t[2])}catch(e){j(e)||console.error(e)}}var Wn=`Error preloading route! ☝️`,Gn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Ft:this.parentRoute||Ne();let r=n?Ft:t?.path;r&&r!==`/`&&(r=it(r));let i=t?.id||r,a=n?Ft:nt([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=nt([`/`,a]));let o=a===`__root__`?`/`:nt([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=A(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(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.redirect=e=>It({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Kn=class extends Gn{constructor(e){super(e)}},qn=d(`<div style=padding:.5rem;max-width:100%><div style=display:flex;align-items:center;gap:.5rem><strong style=font-size:1rem>Something went wrong!</strong><button style="appearance:none;font-size:.6em;border:1px solid currentColor;padding:.1rem .2rem;font-weight:bold;border-radius:.25rem"></button></div><div style=height:.25rem>`),Jn=d(`<div><pre style="font-size:.7em;border:1px solid red;border-radius:.25rem;padding:.3rem;color:red;overflow:auto">`),Yn=d(`<code>`);function Xn(e){return y(p,{fallback:(t,n)=>(e.onCatch?.(t),v(x(e.getResetKey,()=>n(),{defer:!0})),y(g,{get component(){return e.errorComponent??Zn},error:t,reset:n})),get children(){return e.children}})}function Zn({error:e}){let[t,i]=se(!1);return(()=>{var a=qn(),o=a.firstChild,s=o.firstChild.nextSibling;return o.nextSibling,s.$$click=()=>i(e=>!e),r(s,()=>t()?`Hide Error`:`Show Error`),r(a,(()=>{var i=n(()=>!!t());return()=>i()?(()=>{var t=Jn(),i=t.firstChild;return r(i,(()=>{var t=n(()=>!!e.message);return()=>t()?(()=>{var t=Yn();return r(t,()=>e.message),t})():null})()),t})():null})(),null),a})()}_([`click`]);function Qn(e){let t=er();return y(u,{get when(){return t()},get fallback(){return e.fallback??null},get children(){return n(()=>e.children)}})}var $n=!1;function er(){let[t,n]=se($n&&!e.context);return m(()=>{$n=!0,n(!0)}),t}function tr(e){return(...t)=>{for(let n of e)n&&n(...t)}}function nr(...e){return tr(e)}var rr=o(null);function W(e){return ce(rr)}function ir(e,t,n){let r=typeof IntersectionObserver==`function`,i=null;return v(()=>{let a=e();if(n()||!a||!r){C(()=>t());return}i=new IntersectionObserver(e=>{t(e.pop())},{rootMargin:`100px`}),i.observe(a),C(()=>{i?.disconnect(),t()})}),()=>i}var ar=d(`<svg><a>`),or=d(`<a>`),sr=new WeakMap,cr=e=>{clearTimeout(sr.get(e)),sr.delete(e)};function lr(e){let t=W(),n=!!t.options.ssr,r=er(),i=!1,[a,o]=ee(S({activeProps:dr,inactiveProps:pr},e),[`activeProps`,`inactiveProps`,`activeOptions`,`to`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`target`,`disabled`,`style`,`class`,`onClick`,`onBlur`,`onFocus`,`onMouseEnter`,`onMouseLeave`,`onMouseOver`,`onMouseOut`,`onTouchStart`,`ignoreBlocker`]),[s,c]=ee(o,[`params`,`search`,`hash`,`state`,`mask`,`reloadDocument`,`unsafeRelative`,`from`]),l=b(()=>t.stores.location.get(),void 0,{equals:(e,t)=>e.href===t.href}),u=b(()=>{let n={_fromLocation:l(),...e};return oe(()=>t.buildLocation(n))}),d=b(()=>{if(e.disabled)return;let n=u().maskedLocation??u(),r=n.publicHref;return n.external?{href:r,external:!0}:{href:t.history.createHref(r)||`/`,external:!1}}),f=b(()=>{let n=d();if(n?.external)return ke(n.href,t.protocolAllowlist)?void 0:n.href;let r=e.to;if(!vr(r)&&typeof r==`string`&&r.indexOf(`:`)!==-1)try{return new URL(r),ke(r,t.protocolAllowlist)?void 0:r}catch{}}),p=b(()=>e.reloadDocument||f()||a.disabled?!1:a.preload??t.options.defaultPreload),m=()=>a.preloadDelay??t.options.defaultPreloadDelay??0,h=b(()=>{if(f())return!1;let e=a.activeOptions,i=l(),o=u();if(e?.exact){if(!st(i.pathname,o.pathname,t.basepath))return!1}else{let e=ot(i.pathname,t.basepath),n=ot(o.pathname,t.basepath);if(!(e.startsWith(n)&&(e.length===n.length||e[n.length]===`/`)))return!1}return(e?.includeSearch??!0)&&!O(i.search,o.search,{partial:!e?.exact,ignoreUndefined:!e?.explicitUndefined})?!1:!e?.includeHash||(n&&!r()?``:i.hash)===o.hash}),g=()=>t.preloadRoute(e,u()).catch(e=>{console.warn(e),console.warn(Wn)}),[_,y]=se(null),x=e=>{if(!e){cr(_);return}if(!(e.isIntersecting??p()===`intent`)){e.isIntersecting===!1&&cr(_);return}if(!m()){g();return}sr.has(_)||sr.set(_,setTimeout(()=>{sr.delete(_),g()},m()))};if(ir(_,x,()=>p()!==`viewport`),v(()=>{i||p()===`render`&&(g(),i=!0)}),f())return S(c,{ref:nr(y,e.ref),href:f()},ee(a,[`target`,`disabled`,`style`,`class`,`onClick`,`onBlur`,`onFocus`,`onMouseEnter`,`onMouseLeave`,`onMouseOut`,`onMouseOver`,`onTouchStart`])[0]);let C=n=>{let r=n.currentTarget.getAttribute(`target`),i=a.target===void 0?r:a.target;!a.disabled&&!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)&&!n.defaultPrevented&&(!i||i===`_self`)&&n.button===0&&(n.preventDefault(),t.navigate({...e,replace:a.replace,resetScroll:a.resetScroll,hashScrollIntoView:a.hashScrollIntoView,startTransition:a.startTransition,viewTransition:a.viewTransition,ignoreBlocker:a.ignoreBlocker}))},w=()=>{p()===`intent`&&g()},T=()=>{p()===`intent`&&cr(_)},te=b(()=>a.activeProps===dr&&a.inactiveProps===pr&&a.class===void 0&&a.style===void 0),ne=G(()=>a.onClick,C),re=G(()=>a.onBlur,T),ie=G(()=>a.onFocus,x),ae=G(()=>a.onMouseEnter,x),E=G(()=>a.onMouseOver,x),ce=G(()=>a.onMouseLeave,T),le=G(()=>a.onMouseOut,T),ue=G(()=>a.onTouchStart,w),de=b(()=>{let t=h(),n={href:d()?.href,ref:nr(y,e.ref),onClick:ne,onBlur:re,onFocus:ie,onMouseEnter:ae,onMouseOver:E,onMouseLeave:ce,onMouseOut:le,onTouchStart:ue,disabled:!!a.disabled,target:a.target,...a.disabled&&hr};if(te())return{...n,...t&&mr};let r=t?he(a.activeProps,{})??fr:fr,i=t?fr:he(a.inactiveProps,{}),o={...a.style,...r.style,...i.style},s=[a.class,r.class,i.class].filter(Boolean).join(` `);return{...r,...i,...n,...ve(o)?{style:o}:void 0,...s?{class:s}:void 0,...t&&gr}});return S(c,de)}var ur={class:`active`},dr=()=>ur,fr={},pr=()=>fr,mr={class:`active`,"data-status":`active`,"aria-current":`page`},hr={role:`link`,"aria-disabled":!0},gr={"data-status":`active`,"aria-current":`page`};function _r(e,t){return typeof t==`function`?t(e):t[0](t[1],e),e.defaultPrevented}function G(e,t){return n=>{let r=e();(!r||!_r(n,r))&&t(n)}}var K=e=>{let[t,n]=ee(e,[`_asChild`,`children`]),[i,a]=ee(lr(n),[`type`]),o=b(()=>{let e=t.children;return typeof e==`function`?e({get isActive(){return a[`data-status`]===`active`}}):e});if(t._asChild===`svg`){let[e,t]=ee(a,[`class`]);return(()=>{var e=ar(),n=e.firstChild;return re(n,t,!1,!0),r(n,o),e})()}return t._asChild?y(g,S({get component(){return t._asChild}},a,{get children(){return o()}})):(()=>{var e=or();return re(e,a,!1,!0),r(e,o),e})()};function vr(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var yr=o([()=>void 0,()=>void 0]);function q(e){let t=W(),n=ce(yr),r=e.from?void 0:n,i=()=>e.from?t.stores.getMatchStore(e.from).get():r?.[1]();return v(()=>{i()===void 0&&(e.shouldThrow??!0)&&Ne()}),b(t=>{let n=i();if(n===void 0)return;let r=e.select?e.select(n):n;return t===void 0?r:D(t,r)})}function br(e){return q({from:e.from,strict:e.strict,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function xr(e){return q({...e,select:t=>e.select?e.select(t.loaderDeps):t.loaderDeps})}function Sr(e){return q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Cr(e){return q({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,select:t=>{let n=t.search;return e.select?e.select(n):n}})}function wr(e){let t=W();return n=>t.navigate({...n,from:n.from??e?.from})}function Tr(e){return q({...e,select:t=>e.select?e.select(t.context):t.context})}var J=class extends Gn{constructor(e){super(e),this.useMatch=e=>q({select:e?.select,from:this.id}),this.useRouteContext=e=>Tr({...e,from:this.id}),this.useSearch=e=>Cr({select:e?.select,from:this.id}),this.useParams=e=>Sr({select:e?.select,from:this.id}),this.useLoaderDeps=e=>xr({...e,from:this.id}),this.useLoaderData=e=>br({...e,from:this.id}),this.useNavigate=()=>wr({from:this.fullPath}),this.Link=e=>{let t=this;return y(K,S({get from(){return t.fullPath}},e))}}},Er=class extends Kn{constructor(e){super(e),this.useMatch=e=>q({select:e?.select,from:this.id}),this.useRouteContext=e=>Tr({...e,from:this.id}),this.useSearch=e=>Cr({select:e?.select,from:this.id}),this.useParams=e=>Sr({select:e?.select,from:this.id}),this.useLoaderDeps=e=>xr({...e,from:this.id}),this.useLoaderData=e=>br({...e,from:this.id}),this.useNavigate=()=>wr({from:this.fullPath}),this.Link=e=>{let t=this;return y(K,S({get from(){return t.fullPath}},e))}}};function Dr(e){let t=e.stores.resolvedLocation.get();if(t?.href===e.latestLocation.href&&t.state.__TSR_key===e.latestLocation.state.__TSR_key)return t}function Or(){let e=W(),t;return e.startTransition=e=>(t?.(!1),new Promise((n,r)=>{let i=e=>{t===i&&(t=void 0,n(e))},a=e=>{t===i&&(t=void 0,r(e))};t=i,le(()=>{if(t===i)try{e()}catch(e){a(e)}}).then(()=>i(!0),a)})),C(()=>{t?.(!1)}),m(()=>{C(e.history.subscribe(e.load));let t=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(A(e.latestLocation.publicHref)!==A(t.publicHref)){e.commitLocation({...t,replace:!0,ignoreBlocker:!0});return}!Dr(e)&&!e._tx&&e.load().catch(console.error)}),null}function kr(){let e=W();return m(()=>{let t=Dr(e);t&&e.emit({type:`onRendered`,...Qt(t,t)})}),null}function Y(e){return n(()=>e.children)}var Ar=d(`<p>Not Found`);function jr(e){if(j(e))return e;if(j(e?.cause))return e.cause}function Mr(e){let t=W(),n=b(()=>t.stores.location.get().pathname),r=b(()=>t.stores.status.get());return y(Xn,{getResetKey:()=>`not-found-${n()}-${r()}`,onCatch:t=>{let n=jr(t);if(n)e.onCatch?.(n);else throw t},errorComponent:({error:t})=>{let n=jr(t);if(n)return e.fallback?.(n);throw t},get children(){return e.children}})}function Nr(){return Ar()}function Pr(e,t,n){return t.options.notFoundComponent?y(t.options.notFoundComponent,n):e.options.defaultNotFoundComponent?y(e.options.defaultNotFoundComponent,n):y(Nr,{})}var Fr=void 0,Ir=e=>{let t=W(),r=b(()=>t.stores.byRoute.get(e.routeId).get()),i=[()=>e.routeId,r],a=t.routesById[e.routeId],o=()=>(r(),a.options),c=()=>o().pendingComponent??t.options.defaultPendingComponent,l=()=>o().errorComponent??t.options.defaultErrorComponent,d=()=>a.isRoot?o().notFoundComponent??t.options.notFoundRoute?.options.component:o().notFoundComponent,f=()=>r().ssr===!1||r().ssr===`data-only`,p=()=>r().ssr===`data-only`,m=a.isRoot?a.options.shellComponent??Y:Y,_=()=>y(u,{get when(){return r().status!==`pending`},get fallback(){return y(g,{get component(){return c()}})},get children(){return y(Lr,{})}});return y(m,{get children(){return[y(yr.Provider,{value:i,get children(){return y(h,{get fallback(){if(!p())return y(g,{get component(){return c()}})},get children(){return y(g,{get component(){return l()?Xn:Y},getResetKey:r,get errorComponent(){return l()},onCatch:e=>{let n=jr(e);if(n)throw n.routeId??=r().routeId,n;(a.options.onCatch??t.options.defaultOnCatch)?.(e)},get children(){return y(g,{get component(){return d()?Mr:Y},fallback:e=>{let t=jr(e)??e;if(t.routeId??=r().routeId,t.routeId!==r().routeId)throw t;return y(g,S({get component(){return d()}},t))},get children(){return y(pe,{get children(){return[y(s,{get when(){return f()},get children(){return y(Qn,{get fallback(){return y(g,{get component(){return c()}})},get children(){return y(_,{})}})}}),y(s,{get when(){return!f()},get children(){return y(_,{})}})]}})}})}})}})}}),n(()=>Fr?.(t,a))]}})},Lr=()=>{let e=W(),t=ce(yr),n=t[1],r=t[0],i=e.routesById[r()],a=()=>n(),o=()=>{let t=a(),n=i.options.remountDeps??e.options.defaultRemountDeps;if(!n)return r();let o=n({routeId:r(),loaderDeps:t.loaderDeps,params:t._strictParams,search:t._strictSearch});return JSON.stringify(o)??r()},c=()=>{let t=i.options.component??e.options.defaultComponent;return y(t||Rr,{})},l=()=>y(u,{get when(){return o()},keyed:!0,children:e=>c()});return y(pe,{get children(){return[y(s,{get when(){return a().status===`notFound`},children:t=>Pr(e,i,a().error)}),y(s,{get when(){return a().status===`error`},children:e=>{throw a().error}}),y(s,{get when(){return a().status===`success`},get children(){return l()}})]}})},Rr=()=>{let e=W(),t=ce(yr),r=t[1],i=t[0],a=e.routesById[i()],o=()=>{if(r()._notFound)return;let t=e.stores.ids.get();return t[t.indexOf(i())+1]};return y(u,{get when(){return o()},keyed:!0,get fallback(){return n(()=>!!r()._notFound)()?Pr(e,a,r().error):void 0},children:t=>y(u,{get when(){return i()===Ft},get fallback(){return y(Ir,{get routeId(){return o()}})},get children(){return y(h,{get fallback(){return y(g,{get component(){return e.options.defaultPendingComponent}})},get children(){return y(Ir,{get routeId(){return o()}})}})}})})};function zr(){let e=W(),t=typeof document<`u`&&e.ssr?Y:h,n=e.routesById[Ft].options.pendingComponent??e.options.defaultPendingComponent,r=e.options.InnerWrap||Y;return y(r,{get children(){return y(t,{get fallback(){return n?y(n,{}):null},get children(){return[y(Or,{}),y(Br,{}),y(kr,{})]}})}})}function Br(){let e=W(),t=()=>e.stores.ids.get()[0],r=()=>t()?e.stores.byRoute.get(t())?.get():void 0,i=[t,r],a=()=>y(u,{get when(){return t()},get children(){return y(Ir,{get routeId(){return t()}})}});return y(yr.Provider,{value:i,get children(){return n(()=>!!e.options.disableGlobalCatchBoundary)()?a():y(Xn,{getResetKey:r,errorComponent:Zn,get onCatch(){},get children(){return a()}})}})}function Vr(e){let[t,n]=se(e);return{get:t,set:n}}function Hr(e){return{get:l(()=>b(e))}}var Ur=e=>({createMutableStore:Vr,createReadonlyStore:Hr,batch:t}),Wr=e=>new Gr(e),Gr=class extends tn{constructor(e){super(e,Ur)}};function Kr({router:e,children:t,...n}){e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=e.options.Wrap||Y;return y(r,{get children(){return y(rr.Provider,{value:e,get children(){return t()}})}})}function qr({router:e,...t}){return y(Kr,S({router:e},t,{children:()=>y(zr,{})}))}function Jr(e){let t=W();if(!e?.select)return()=>t.stores.location.get();let n=e.select;return b(e=>{let r=n(t.stores.location.get());return e===void 0?r:D(e,r)})}var Yr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Xr=new class extends Yr{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},Zr={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Qr=new class{#e=Zr;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function $r(e){setTimeout(e,0)}var ei=typeof window>`u`||`Deno`in globalThis;function X(){}function ti(e,t){return typeof e==`function`?e(t):e}function ni(e){return typeof e==`number`&&e>=0&&e!==1/0}function ri(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ii(e,t){return typeof e==`function`?e(t):e}function ai(e,t){return typeof e==`function`?e(t):e}function oi(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ci(o,t.options))return!1}else if(!ui(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function si(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(li(t.options.mutationKey)!==li(a))return!1}else if(!ui(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ci(e,t){return(t?.queryKeyHashFn||li)(e)}function li(e){return JSON.stringify(e,(e,t)=>mi(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ui(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!ui(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ui(e[r],t[r]))return!1;return!0}return!1}var di=Object.prototype.hasOwnProperty;function fi(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=pi(e)&&pi(t);if(!r&&!(mi(e)&&mi(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:di.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=fi(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function pi(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mi(e){if(!hi(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!hi(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function hi(e){return Object.prototype.toString.call(e)===`[object Object]`}function gi(e){return new Promise(t=>{Qr.setTimeout(t,e)})}function _i(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:fi(e,t)}function vi(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function yi(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var bi=Symbol();function xi(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===bi?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Si(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var Ci=(()=>{let e=()=>ei;return{isServer(){return e()},setIsServer(t){e=t}}})();function wi(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Ti=$r;function Ei(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=Ti,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Z=Ei(),Di=new class extends Yr{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Oi(e){return Math.min(1e3*2**e,3e4)}function ki(e){return(e??`online`)!==`online`||Di.isOnline()}var Ai=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ji(e){let t=!1,n=0,r,i=wi(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Ai(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>Xr.isFocused()&&(e.networkMode===`always`||Di.isOnline())&&e.canRun(),u=()=>ki(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(Ci.isServer()?0:3),o=e.retryDelay??Oi,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),gi(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var Mi=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ni(this.gcTime)&&(this.#e=Qr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ci.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(Qr.clearTimeout(this.#e),this.#e=void 0)}};function Ni(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Si(e,()=>t.signal,()=>n=!0)},u=xi(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?yi:vi;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Fi:Pi,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Pi(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Pi(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Fi(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ii=class extends Mi{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=zi(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=zi(this.options);e.data!==void 0&&(this.setState(Ri(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=_i(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(X).catch(X):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>ai(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===bi||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>ii(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ri(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=xi(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Ni(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ji({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Ai&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Ai){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Li(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ri(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Z.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Li(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ki(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ri(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function zi(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Bi=class extends Mi{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Vi(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ji({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Z.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Vi(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Hi=class extends Yr{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Bi({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ui(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ui(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ui(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Ui(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Z.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>si(t,e))}findAll(e={}){return this.getAll().filter(t=>si(e,t))}notify(e){Z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Z.batch(()=>Promise.all(e.map(e=>e.continue().catch(X))))}};function Ui(e){return e.options.scope?.id}var Wi=class extends Yr{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??ci(r,t),a=this.get(i);return a||(a=new Ii({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Z.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>oi(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>oi(e,t)):t}notify(e){Z.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Z.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Z.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Gi=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Wi,this.#t=e.mutationCache||new Hi,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Xr.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Di.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ii(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ti(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Z.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Z.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Z.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=Z.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(X).catch(X)}invalidateQueries(e,t={}){return Z.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Z.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(X)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(X)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ii(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(X).catch(X)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(X).catch(X)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Di.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(li(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ui(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(li(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ui(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ci(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===bi&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ki=o(void 0),qi=e=>(a(t=>(t?.(),e.client.mount(),e.client.unmount.bind(e.client))),C(()=>e.client.unmount()),y(Ki.Provider,{value:()=>e.client,get children(){return e.children}}));o(()=>!1).Provider;var Ji=class extends Gi{constructor(e={}){super(e)}},Yi=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]],Xi=e=>y(T,S(e,{iconNode:Yi,name:`ban`})),Zi=[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]],Qi=e=>y(T,S(e,{iconNode:Zi,name:`crown`})),$i=[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]],ea=e=>y(T,S(e,{iconNode:$i,name:`log-in`})),ta=[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]],na=e=>y(T,S(e,{iconNode:ta,name:`rotate-cw`})),ra=d(`<button type=button class="btn btn-outline btn-sm">重试`),ia=d(`<a class="btn btn-primary btn-sm">`),aa=d(`<div role=alert><div class="flex min-w-0 items-start gap-3"><span></span><div class="min-w-0 flex-1"><div class="flex flex-wrap items-center gap-x-3 gap-y-1"><h2 class="display text-lg leading-tight sm:text-xl"></h2><span class="badge border-line bg-card/70 text-muted-foreground"></span></div><p class="mt-2 max-w-2xl text-sm leading-relaxed text-muted-foreground"></p></div></div><div class="flex flex-wrap items-center gap-2"></div><details class="max-w-3xl border border-line/70 bg-background/50"><summary class="cursor-pointer px-3 py-2 font-mono text-[11px] tracking-[0.14em] text-muted-foreground uppercase select-none hover:text-foreground">错误详情</summary><pre class="overflow-auto border-t border-line/70 px-3 py-2.5 text-xs whitespace-pre-wrap break-words text-muted-foreground">`),oa={UNAUTHENTICATED:{title:`登录已过期`,description:`请重新登录后再继续操作。`,severity:`warning`,actionLabel:`去登录`,actionHref:`/login`},TOKEN_EXPIRED:{title:`登录状态失效`,description:`当前凭证已过期,请重新登录。`,severity:`warning`,actionLabel:`重新登录`,actionHref:`/login`},PERMISSION_DENIED:{title:`没有访问权限`,description:`你的账号角色无法使用这个功能。`,severity:`warning`},ACCESS_DENIED:{title:`没有访问权限`,description:`请联系管理员获取所需权限。`,severity:`warning`},ACCOUNT_BANNED:{title:`账号不可用`,description:`账号已被限制使用,请联系管理员处理。`,severity:`warning`},NOT_FOUND:{title:`内容不存在`,description:`请求的资源可能已被删除或从未存在。`,severity:`info`},VALIDATION_ERROR:{title:`提交内容有误`,description:`请检查输入内容后重试。`,severity:`info`},RATE_LIMITED:{title:`操作过于频繁`,description:`请稍等片刻后再试。`,severity:`warning`},UPSTREAM_ERROR:{title:`上游服务异常`,description:`依赖的服务暂时不可用,请稍后重试。`},INTERNAL_ERROR:{title:`服务暂时不可用`,description:`服务器处理请求时出现问题,请稍后重试。`},NETWORK_ERROR:{title:`网络连接异常`,description:`请检查网络连接后重试。`},RUNTIME_ERROR:{title:`页面渲染出错`,description:`前端执行时发生异常,可以尝试重新加载该区域。`,severity:`info`},UNKNOWN:{title:`出现未知错误`,description:`操作未能完成,请重试。`}},sa={400:`VALIDATION_ERROR`,401:`UNAUTHENTICATED`,403:`PERMISSION_DENIED`,404:`NOT_FOUND`,408:`NETWORK_ERROR`,429:`RATE_LIMITED`,500:`INTERNAL_ERROR`,502:`UPSTREAM_ERROR`,503:`UPSTREAM_ERROR`,504:`UPSTREAM_ERROR`},ca={danger:`border-destructive/40 bg-destructive/10 text-destructive`,warning:`border-warning/40 bg-warning/10 text-warning`,info:`border-acid-cyan/40 bg-acid-cyan/10 text-accent-foreground`};function la(e,t){let n=e.code,r=n?.toUpperCase(),i=n===void 0?void 0:t?.[n],a=r===void 0?void 0:t?.[r],o=e.httpStatus===void 0?void 0:sa[e.httpStatus],s=(n===void 0?void 0:oa[n])??(r===void 0?void 0:oa[r])??(o===void 0?void 0:oa[o])??(e.source===`network`?oa.NETWORK_ERROR:void 0)??(e.source===`runtime`?oa.RUNTIME_ERROR:void 0)??oa.UNKNOWN;return{title:a?.title??i?.title??s.title,description:a?.description??i?.description??s.description,severity:a?.severity??i?.severity??s.severity??(e.source===`runtime`?`info`:`danger`),actionLabel:a?.actionLabel??i?.actionLabel??s.actionLabel??`重试`,actionHref:a?.actionHref??i?.actionHref??s.actionHref,codeLabel:n??(e.httpStatus===void 0?`RUNTIME`:`HTTP ${e.httpStatus}`)}}function ua(e){let t=[`code: ${e.code??`-`}`,`source: ${e.source}`,`message: ${e.message}`];if(e.httpStatus!==void 0&&t.splice(1,0,`http_status: ${e.httpStatus}`),e.raw instanceof Error&&e.raw.stack)t.push(``,e.raw.stack);else if(e.raw!==void 0&&!(e.raw instanceof Error))try{t.push(``,JSON.stringify(e.raw,null,2))}catch{}return t.join(`
`)}function da(e){let t=w(e.error),n=la(t,e.contentOverrides),i=fe,o=(()=>{var t=ra(),n=t.firstChild;return t.$$click=()=>e.onRetry?.(),r(t,y(na,{class:`size-3.5`}),n),a(()=>t.disabled=!e.onRetry),t})();return(()=>{var s=aa(),c=s.firstChild,l=c.firstChild,d=l.nextSibling.firstChild,f=d.firstChild,p=f.nextSibling,m=d.nextSibling,h=c.nextSibling,g=h.nextSibling.firstChild.nextSibling;return r(l,y(i,{class:`size-4`})),r(f,()=>n.title),r(p,()=>n.codeLabel),r(m,()=>n.description),r(h,y(u,{get when(){return n.actionHref},fallback:o,get children(){return[(()=>{var e=ia();return r(e,y(ea,{class:`size-3.5`}),null),r(e,()=>n.actionLabel,null),a(()=>ie(e,`href`,n.actionHref)),e})(),o]}})),r(g,()=>ua(t)),a(t=>{var r=`card flex min-h-52 w-full flex-col justify-center gap-4 p-5 sm:p-7 ${e.class??``}`,i=`flex size-9 shrink-0 items-center justify-center border ${ca[n.severity]}`;return r!==t.e&&ue(s,t.e=r),i!==t.t&&ue(l,t.t=i),t},{e:void 0,t:void 0}),s})()}function fa(e){let[t,n]=se(1),r=(t,r)=>{e.onRetry?.(r),n(e=>e+1),t()};return y(p,{onError:t=>e.onError?.(w(t)),fallback:(t,n)=>e.fallback?.(w(t),()=>r(n,w(t)))??y(da,{error:t,get class(){return e.class},get contentOverrides(){return e.contentByCode},onRetry:()=>r(n,w(t))}),get children(){return y(u,{get when(){return t()},keyed:!0,children:()=>e.children})}})}_([`click`]);var pa=d(`<span class="text-[9px] opacity-50">`),ma=d(`<div class="sticky top-12 z-30 flex items-center justify-center gap-2 bg-destructive px-4 py-1.5 text-xs text-destructive-foreground">账号已被封禁(banned),部分功能受限,请联系超管解封`),ha=d(`<span class="size-2 shrink-0 bg-acid-lime pulse-acid">`),ga=d(`<span class="display text-base whitespace-nowrap">SYNC·LIVE`),_a=d(`<span class="micro-label hidden text-muted-foreground md:inline">fan-out console`),va=d(`<span><span></span><span class="font-mono text-[10px] tracking-[0.14em] uppercase">`),ya=d(`<span class="hidden font-mono text-xs text-muted-foreground sm:inline">@`),ba=d(`<div class="relative min-h-screen"><div class=atmo-grid aria-hidden=true></div><div class="atmo-glow atmo-glow-a"aria-hidden=true></div><div class="atmo-glow atmo-glow-b"aria-hidden=true></div><div class=scanline-sweep aria-hidden=true></div><div class=noise aria-hidden=true></div><header class="sticky top-0 z-40 border-b border-line/80 bg-background/85 backdrop-blur-md"><div class="absolute inset-x-0 top-0 h-[3px]"style="background:linear-gradient(90deg, hsl(var(--acid-lime)), hsl(var(--acid-cyan)) 38%, hsl(var(--acid-violet)) 70%, hsl(var(--acid-magenta)))"></div><div class="mx-auto flex h-12 max-w-[1400px] items-center gap-4 px-4 sm:px-6"><nav class="ml-auto hidden items-center gap-5 md:flex"aria-label=主导航></nav><div class="ml-auto flex shrink-0 items-center gap-2 md:ml-0"></div></div><nav class="overflow-x-auto border-t border-line/60 [scrollbar-width:none] md:hidden [&amp;::-webkit-scrollbar]:hidden"aria-label=主导航(移动端)><div class="mx-auto flex max-w-[1400px] items-center gap-4 px-4"></div></nav></header><main class="relative z-10"></main><footer class="relative z-10 mt-16 border-t border-line/80 bg-background/70 backdrop-blur-sm"><div class="mx-auto flex max-w-[1400px] flex-col gap-1.5 px-4 py-4 font-mono text-[10px] tracking-[0.18em] uppercase text-muted-foreground sm:flex-row sm:items-center sm:justify-between sm:px-6"><span>Cloudflare Realtime · SRS · WHIP / WHEP / HLS / FLV</span><span>SyncLive · 对标 SyncTV — 一路推流 多端同步`),xa=[{to:`/`,idx:`01`,label:`概览`},{to:`/rooms`,idx:`02`,label:`房间`},{to:`/users`,idx:`03`,label:`用户`,adminOnly:!0},{to:`/manage`,idx:`04`,label:`管理`,adminOnly:!0}],Sa=()=>{let e=Jr();m(async()=>{await ne(),await E.refresh()});let t=t=>(t.activePaths??[t.to]).includes(e().pathname),o=()=>E.isBanned(),s=e=>y(i,{each:xa,children:i=>y(u,{get when(){return!i.adminOnly||E.isAdminOrAbove()},get children(){return y(K,{get to(){return i.to},get class(){return`nav-link flex ${e} shrink-0 items-center gap-1.5 font-mono text-[11px] tracking-[0.16em] uppercase whitespace-nowrap transition-colors ${t(i)?`is-active text-foreground dark:text-primary`:`text-muted-foreground hover:text-foreground`}`},get children(){return[(()=>{var e=pa();return r(e,()=>i.idx),e})(),n(()=>i.label),y(u,{get when(){return n(()=>!!i.adminOnly)()&&E.isRoot()},get children(){return y(Qi,{class:`size-3 text-amber-500`})}})]}})}})}),c=()=>E.role()===`root`?`border-amber-500/30 bg-amber-500/10 text-amber-600`:o()?`border-destructive/30 bg-destructive/10 text-destructive`:E.isAdmin()?`border-acid-magenta/30 bg-acid-magenta/10 text-acid-magenta`:`border-line bg-card/60 text-muted-foreground`;return(()=>{var e=ba(),t=e.firstChild.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling,n=t.firstChild.nextSibling,i=n.firstChild,l=i.nextSibling,d=n.nextSibling.firstChild,f=t.nextSibling;return r(e,y(u,{get when(){return o()},get children(){var e=ma(),t=e.firstChild;return r(e,y(Xi,{class:`size-3.5`}),t),e}}),t),r(n,y(K,{to:`/`,class:`flex min-w-0 items-center gap-2.5`,"aria-label":`首页`,get children(){return[ha(),ga(),_a()]}}),i),r(i,()=>s(`h-6`)),r(l,y(u,{get when(){return E.isAuthed()},get children(){return[(()=>{var e=va(),t=e.firstChild,n=t.nextSibling;return r(n,()=>E.role(),null),r(n,y(u,{get when(){return o()},children:` · banned`}),null),r(n,y(u,{get when(){return E.isRoot()},children:` · root`}),null),a(n=>{var r=`hidden items-center gap-1.5 border px-2 py-1 sm:flex ${c()}`,i=`size-1.5 ${o()?`bg-destructive`:E.isRoot()?`bg-amber-500`:`bg-acid-cyan`}`;return r!==n.e&&ue(e,n.e=r),i!==n.t&&ue(t,n.t=i),n},{e:void 0,t:void 0}),e})(),y(u,{get when(){return ae.user()},get children(){var e=ya();return e.firstChild,r(e,()=>ae.user()?.username,null),e}})]}}),null),r(l,y(te,{}),null),r(l,y(u,{get when(){return!E.isAuthed()},get children(){return y(K,{to:`/login`,class:`btn btn-primary btn-sm`,children:`登录`})}}),null),r(l,y(u,{get when(){return E.isAuthed()},get children(){return y(K,{to:`/login`,class:`hidden text-xs text-muted-foreground hover:text-foreground sm:inline`,children:`切换`})}}),null),r(d,()=>s(`h-10`)),r(f,y(fa,{class:`mx-auto mt-6 max-w-[1400px] sm:px-6`,onRetry:()=>window.location.reload(),get children(){return y(Rr,{})}})),e})()},Ca=`modulepreload`,wa=function(e){return`/static/`+e},Ta={},Q=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=wa(t,n),t=s(t),t in Ta)return;Ta[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Ca,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Ea=c(()=>Q(()=>import(`./routes-Dnk7IuZ1.js`).then(e=>({default:e.Home})),__vite__mapDeps([0,1,2,3,4,5,6]))),Da=c(()=>Q(()=>import(`./watch-CLBI8bod.js`).then(e=>({default:e.WatchRoute})),__vite__mapDeps([7,1,3,8,9,10]))),Oa=c(()=>Q(()=>import(`./watch-CLBI8bod.js`).then(e=>({default:e.RoomRoute})),__vite__mapDeps([7,1,3,8,9,10]))),ka=c(()=>Q(()=>import(`./rooms-BEok5Thy.js`).then(e=>({default:e.Rooms})),__vite__mapDeps([11,1,2,9,12,5,10]))),Aa=c(()=>Q(()=>import(`./users-BOBhaGXT.js`).then(e=>({default:e.Users})),__vite__mapDeps([13,1,14,6]))),ja=c(()=>Q(()=>import(`./login-BLBr0kRf.js`).then(e=>({default:e.Login})),__vite__mapDeps([15,1,5,6]))),Ma=c(()=>Q(()=>import(`./manage-DtLPiCAv.js`).then(e=>({default:e.Manage})),__vite__mapDeps([16,1,8,9,4,12,5,14,6]))),$=new Er({component:Sa}),Na=new J({getParentRoute:()=>$,path:`/`,component:Ea}),Pa=new J({getParentRoute:()=>$,path:`/watch`,validateSearch:e=>({room:typeof e?.room==`string`&&e.room.trim()!==``?e.room:``}),component:Da}),Fa=new J({getParentRoute:()=>$,path:`/room`,validateSearch:e=>({room:typeof e?.room==`string`&&e.room.trim()!==``?e.room:``}),component:Oa}),Ia=new J({getParentRoute:()=>$,path:`/rooms`,component:ka}),La=new J({getParentRoute:()=>$,path:`/users`,component:Aa}),Ra=new J({getParentRoute:()=>$,path:`/manage`,component:Ma}),za=new J({getParentRoute:()=>$,path:`/login`,component:ja}),Ba=$.addChildren([Na,Pa,Fa,Ia,La,Ra,za]);de();var Va=new Ji({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),Ha=Wr({routeTree:Ba,defaultPreload:`intent`});f(()=>y(qi,{client:Va,get children(){return y(fa,{get children(){return y(qr,{router:Ha})}})}}),document.getElementById(`root`));export{wr as a,Jr as i,Qi as n,Cr as o,Xi as r,K as s,ea as t};