@deslop/scope 0.1.1275 → 0.1.1277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/(home)--gx9Z92p.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-CYMlNKV3.js","assets/effect-pMrlCbSQ.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/(home)-8Qu6wvxT.js","assets/rolldown-runtime-WkwZ5CU-.js","assets/react-CYMlNKV3.js","assets/effect-pMrlCbSQ.js"])))=>i.map(i=>d[i]);
2
2
  import{n as e,t}from"./rolldown-runtime-WkwZ5CU-.js";import{a as n,i as r,n as i,o as a}from"./react-CYMlNKV3.js";import{$ as o,$n as s,$t as c,At as l,B as u,Bt as d,Cn as f,Cr as p,Ct as m,Dr as h,Dt as g,En as _,Er as v,Et as y,F as b,Fn as x,Ft as S,G as C,Gt as w,H as T,Hn as ee,Ht as te,I as ne,In as re,It as ie,J as E,Jt as D,K as O,Kn as k,Kt as ae,L as A,Ln as oe,Lt as se,Mn as ce,N as le,Ot as j,P as M,Pt as ue,Q as N,Qt as P,R as F,Rn as de,Rt as fe,S as pe,Sn as me,Sr as he,St as ge,Tn as _e,Tr as ve,Tt as ye,U as I,Ut as be,V as xe,Vn as Se,Vt as Ce,W as we,Wn as Te,Wt as Ee,X as L,Xn as De,Xt as Oe,Y as ke,Yn as Ae,Yt as je,Z as Me,Zn as R,Zt as Ne,_n as Pe,_r as Fe,a as Ie,ar as Le,at as Re,b as ze,bn as Be,br as Ve,bt as He,c as Ue,cn as We,cr as Ge,ct as Ke,dn as qe,dr as Je,dt as Ye,er as z,et as Xe,f as Ze,fn as Qe,ft as $e,g as et,gn as tt,gr as nt,gt as rt,ht as it,i as at,ir as ot,it as st,jn as ct,k as lt,kn as ut,kt as dt,l as ft,ln as pt,lr as mt,lt as ht,mn as gt,mr as _t,mt as B,n as vt,nn as yt,nr as bt,nt as xt,o as St,on as Ct,or as wt,ot as Tt,p as Et,pn as Dt,pr as Ot,pt as kt,q as At,qn as jt,qt as Mt,r as Nt,rr as Pt,rt as Ft,s as It,sn as Lt,sr as V,st as Rt,t as zt,tr as Bt,tt as Vt,u as Ht,un as Ut,ur as Wt,ut as Gt,vn as Kt,vr as qt,wr as Jt,wt as Yt,xr as Xt,xt as Zt,y as Qt,yn as $t,yr as en,yt as tn,z as nn,zt as rn}from"./effect-pMrlCbSQ.js";function an(e){return e[e.length-1]}function on(e,t){return typeof e==`function`?e(t):e}var sn=Object.prototype.hasOwnProperty;function cn(e){for(let t in e)if(sn.call(e,t))return!0;return!1}var ln=()=>Object.create(null),un=(e,t)=>dn(e,t,!0);function dn(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(fn(e)&&fn(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&an(a)!==`${o-1}`||c&&an(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let l=0,u,d,f;if(i){for(;l<c&&(f=l,d=e[f],u=t[f],u=d===u?d:typeof d==`object`?dn(d,u,n,r):u,u===d);l++);if(l===c&&o===c)return e}else{let i=o===c,p=!0;for(;l<c;l++){f=s[l],d=e[f];let o=t[f];u=d===o?d:typeof d==`object`?dn(d,o,n,r):o,i&&=u===d&&(a[l]===f||sn.call(e,f)),p&&=Object.is(u,o),a[l]=u}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(p)return t}let p=i?s.fill(0):n?ln():{};for(let o=0;o<c;o++)f=i?o:s[o],i?(d=e[f],o>l&&(u=t[f],u=d===u?d:typeof d==`object`?dn(d,u,n,r):u),p[f]=o<l?d:u):p[f]=a[o];return p}function fn(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function pn(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!pn(a,o,n,r))return!1}return!0}if(fn(e)&&fn(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!pn(e[i],t[i],n,r))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++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!pn(e[a],t[a],n,r)))return!1;return i===0}return!1}function mn(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}var hn=/[\x00-\x1f\x7f"<>`{}]/g;function gn(e){return e.replace(hn,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function _n(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 gn(t)}var vn=[`http:`,`https:`,`mailto:`,`tel:`];function yn(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var bn=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function xn(e,t){if(!e)return!1;if(bn.test(e))return!0;let n=yn(e);return n?!t.has(n):!1}function Sn(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=_n(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=_n(r?e.slice(r):e)}return t}function Cn(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function wn(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 Tn(){throw Error(`Invariant failed`)}function En(e){return e.replace(/\/{2,}/g,`/`)}function Dn(e){return e===`/`?e:e.replace(/^\/+/,``)}function On(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function kn(e){return On(Dn(e))}function An(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function jn(e,t,n=`never`,r){if(t.includes(`//`)&&(t=En(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=En(e)),o=e.split(`/`);o.length>1&&an(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&&(an(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?En(s):s)||`/`;return a&&r&&r.set(a,c),c}function Mn(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function Nn(e){return e==null||e===``}function Pn(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function Fn(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&Nn(f)){if(c===`/`&&!d)continue;f=``}o+=c+Pn(s,f,r)+(d||``)}}return o+a||`/`}function In(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Ln(e){return e?.isNotFound===!0}var Rn=`__root__`;function zn(e){e.statusCode=e.statusCode||e.code||307;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 Bn(e){return e instanceof Response&&!!e.options}function Vn(e){let t=new Map,n,r;return{get(e){let n=t.get(e);if(n)return n.visited=!0,n.value},set(i,a){let o=t.get(i);if(o){o.value=a;return}if(t.size>=e){let e=n?.next().value;for(;!e||e.visited;)e?e.visited=!1:n=t.values(),e=n.next().value;e===r&&(n=void 0),t.delete(e.key)}let s={key:i,value:a,visited:!1};r=s,t.set(i,s)},clear(){t.clear(),n=void 0,r=void 0}}}var Hn=4,Un=5;function Wn(e){let t=e.names;if(t)return t;let n=[];for(let t of e)typeof t!=`string`&&n.push(t[1]);return e.names=n}function Gn(e,t,n){let r=e.slice(t,n);if(r.charCodeAt(0)===36)return r.length===1?[2,`_splat`,``,void 0]:[1,r.slice(1),``,``];let i=r.indexOf(`{`);if(i>=0){let a=r.indexOf(`}`,i),o=r.charCodeAt(i+1)===45,s=i+(o?3:2);if(a>=0&&r.charCodeAt(s-1)===36&&(!o||s<a)){let c=r.slice(s,a);return[o?3:c?1:2,c||`_splat`,r.slice(0,i),e.slice(t+a+1,c?n:e.length)]}}return r}function Kn(e,t,n,r,i,a){let o=n,s=t.fullPath??t.from,c=t.options,l=s.length,u=s.endsWith(`/`)?l-1:l,d=c?.caseSensitive??e,f=c?.params?.parse??c?.parseParams,p,m=a?n-1:0;if(!r||s.includes(`$`)){p=a?.slice()??[];let e=an(p);e&&typeof e!=`string`&&e[0]===2&&(p[p.length-1]=[e[0],e[1],e[2],e[3]===void 0?void 0:e[3]+s.substring(n-(s[n-2]===`/`?2:1),u)],m=l)}for(;o<l;){let e=o,t=s.indexOf(`/`,e),n=t===-1?l:t,a=Gn(s,e,n);o=n+1;let c;if(typeof a==`string`){if(!r)continue;let e=a,t;d?t=r.static??=new Map:(e=a.toLowerCase(),t=r.staticInsensitive??=new Map);let n=t.get(e);if(n)c=n;else{let n=Jn(r);c=n,t.set(e,n)}}else{let t=a[0],h=a[2],g=a[3]??``;if(t===2&&(n=l,o=n+1),p&&m<n&&(m<e-1&&p.push(s.slice(m,e-1)),a[2]=`/`+h,t===2&&a[3]!==void 0&&u<l&&(a[3]=g.slice(0,-1)),p.push(a),m=n),!r)continue;let _=d&&!!(h||g);d||(h=h.toLowerCase(),g=g.toLowerCase());let v=t===1?r.dynamic??=[]:t===3?r.optional??=[]:r.wildcard??=[],y=t!==2&&!f&&v.find(e=>!e.parse&&e.caseSensitive===_&&e.prefix===h&&e.suffix===g);if(y)c=y;else{let e=Jn(r,t,_,h,g);c=e,v.push(e),v.length===2&&i?.push(v)}}r=c}p&&m<u&&p.push(s.slice(m,u));let h=p?.slice();if(!r)return h;if(f&&t.children&&!t.isRoot&&t.id&&t.id.charCodeAt(t.id.lastIndexOf(`/`)+1)===95){let e=Jn(r,Un);(r.pathless??=[]).push(e),r=e}let g=(t.path||!t.children)&&!t.isRoot;if(g&&u<l){let e=Jn(r,Hn);r.index=e,r=e}return r.parse=f??null,r.priority=c?.params?.priority??0,r.route||(r.data=h,g&&(r.route=t)),[r,o,h]}function qn(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 Jn(e,t=0,n,r,i){return{kind:t,depth:e?e.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:e,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function Yn(e,t){let n=Jn(),r=[];function i(e,t,n,a){let[o,s,c]=Kn(!1,e,t,n,r,a);if(e.children)for(let t of e.children)i(t,s,o,c)}for(let t of e)i(t,1,n);for(let e of r)e.sort(qn);t.masksTree=n,t.flatCache=Vn(1e3)}function Xn(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=er(e,t.masksTree);return t.flatCache.set(e,r),r}function Zn(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Jn(),Kn(t,{from:e},1,o),i.singleCache.set(a,o)),er(r,o,n)}function Qn(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=er(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=nr(a.route)),t.matchCache.set(r,a),a}function $n(e,t=!1){let n=Jn(),r=[],i={},a={},o=0;function s(e,n,c,l){if(e.init(o),e.id in i&&Tn(),i[e.id]=e,o!==0&&e.path){let t=On(e.fullPath);(!a[t]||e.fullPath.endsWith(`/`))&&(a[t]=e)}o++;let[u,d,f]=Kn(t,e,n,c,r,l);if(e._interpolation=f,e.children)for(let t of e.children)s(t,d,u,f)}s(e,1,n);for(let e of r)e.sort(qn);return{processedTree:{segmentTree:n,singleCache:Vn(1e3),matchCache:Vn(1e3),flatCache:null,masksTree:null},routesById:i,routesByPath:a}}function er(e,t,n=!1){let r=e.split(`/`),i=ir(e,r,t,n);if(!i)return null;let[a]=tr(e,r,i);return{route:i.node.route,rawParams:a}}function tr(e,t,n){let r=rr(n.node),i=n.node.data&&Wn(n.node.data),a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.param??0;for(;s<r.length;o++,s++,c++){let u=r[s];if(u.kind===Hn)break;if(u.kind===Un){o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1||u.kind===3){let e=i[l++];if(u.kind===3&&n.skipped&1<<s){o--,c=f-1;continue}let t=u.suffix||u.prefix?d.substring(u.prefix.length,d.length-u.suffix.length):d;(t||u.kind===1)&&(a[e]=decodeURIComponent(t))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,param:l}]}function nr(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function rr(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function ir(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!an(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&&!cr(l,n))continue;if(i.parse){if(!sr(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==Hn&&cr(c,n)&&(c=n);let _=u===o;if(_&&(i.route&&(!a||i.kind===Hn||i.kind===2)&&cr(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&&(sr(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&or(f,o))return n;cr(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(`/`),i=e.slice(-a.length);if((n.caseSensitive?i:i.toLowerCase())!==a||e.length-a.length<r.length)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.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p,optionals:m+ar(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.indexOf(r,e.length-r.length)<n.length)continue}s.push({node:t,index:u+1,skipped:d,statics:f,dynamics:p+ar(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+ar(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+ar(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 ar(e,t){return 2**(e-t-1)}function or(e,t){return e===2**(t-1)-1}function sr(e,t,n){let r,i;try{[r,i]=tr(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 cr(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===Hn)>(e.node.kind===Hn)||t.node.kind===Hn==(e.node.kind===Hn)&&t.node.depth>e.node.depth)))}function lr(){try{return sessionStorage}catch{return}}var ur=`tsr-scroll-restoration-v1_3`,dr=lr();function fr(){try{return JSON.parse(dr?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}var pr=fr(),mr=`data-scroll-restoration-id`,hr=e=>e.state.__TSR_key||e.href;function gr(e){let t=e.getAttribute(mr);if(t)return`[${mr}="${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 _r=!1,vr=`window`;function yr(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function br(e){let t=new Set;for(let n of e){if(n===vr)continue;let e=yr(n);e&&t.add(e)}return t}function xr(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.e=!0);let i=e.options.getScrollRestorationKey||hr,a=new Set,o=e=>{let t=pr[e]||={};for(let e of a)e===document?t[vr]={scrollX,scrollY}:e.isConnected&&(t[gr(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.s&&(r.s=!0,_r=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{_r||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{history.scrollRestoration=`auto`,o(i(e.stores.resolvedLocation.get()??e.stores.location.get()));try{dr?.setItem(ur,JSON.stringify(pr))}catch{}}),addEventListener(`pageshow`,e=>{e.persisted&&(history.scrollRestoration=`manual`)})),r.r||(r.r=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.n,c=r.h,l;if(a.clear(),r.n=!0,r.h=!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.e&&d&&d!==u){let e=pr[d];if(e){let t=pr[u];for(let n in e){if(n===vr){if(s)continue}else{let e=yr(n);if(!e||s&&o&&(l??=br(o),l.has(e)))continue}t||=pr[u]={},t[n]??=e[n]}}}_r=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=br(o));let t=e&&i&&c,s=r.e?pr[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===vr){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=yr(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{_r=!1}}))}function Sr(e,t=String){let n;for(let r in e){let i=e[r];i!==void 0&&(n||=new URLSearchParams).set(r,t(i))}return n?n.toString():``}function Cr(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function wr(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]=Cr(r):Array.isArray(t)?t.push(Cr(r)):n[e]=[t,Cr(r)]}return n}var Tr=/^(?:\s|["[{\d-]|fa|nu|tr)/,Er=Or(JSON.parse),Dr=kr(JSON.stringify,JSON.parse);function Or(e){let t=e===JSON.parse;return n=>{n[0]===`?`&&(n=n.slice(1));let r=wr(n);for(let n in r){let i=r[n];if(typeof i==`string`){if(t&&!Tr.test(i))continue;try{r[n]=e(i)}catch{}}}return r}}function kr(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&&!Tr.test(r))return r;try{return t(r),e(r)}catch{}}return r}return e=>{let t=Sr(e,r);return t?`?${t}`:``}}function Ar(e,t,n){let r=kn(e),i=`/${r}`,a=t?i:i.toLowerCase(),o=`${a}/`,s={input:({url:e})=>{let n=t?e.pathname:e.pathname.toLowerCase();return n===a?e.pathname=`/`:n.startsWith(o)&&(e.pathname=e.pathname.slice(i.length)),e},output:({url:e})=>(e.pathname=En(`/${r}${e.pathname}`),e)};return n?{input:({url:e})=>jr(n,s.input({url:e})),output:({url:e})=>s.output({url:Mr(n,e)})}:s}function jr(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 Mr(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 Nr(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(()=>{wn(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 Pr=`__TSR_index`,Fr=`popstate`,Ir=`beforeunload`,Lr=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function Rr(e){let t=Lr.exec(e);return t?`/`+e.slice(t[0].length):e}function zr(e){return/[\x00-\x1f\x7f]/.test(e)&&(e=e.replace(/[\x00-\x1f\x7f]/g,e=>`
3
- \r`.includes(e)?``:encodeURIComponent(e))),Rr(e)}function Br(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 n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=Ur(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};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[Pr];i=Vr(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[Pr];i=Vr(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,n?.ignoreBlocker??!1),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[Pr]!==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,_getBlockers:()=>e.getBlockers?.()??[]}}function Vr(e,t){let n=Wr();return{...t,key:n,__TSR_key:n,[Pr]:e}}function Hr(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=t=>zr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Ur(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Wr();t.history.replaceState({[Pr]: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=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Ur(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Pr]-l.state[Pr],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 r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),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||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Br({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,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ir,x,{capture:!0}),t.removeEventListener(Fr,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Ir,x,{capture:!0}),t.addEventListener(Fr,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 Ur(e,t){let n=zr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Wr();t={[Pr]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function Wr(){return(Math.random()+1).toString(36).slice(7)}function Gr(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Kr(e){return e.pathname+e.search+e.hash}function qr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Jr(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Yr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Xr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Zr(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Qr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Hr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&kn(n)?Ar(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Nr(this.latestLocation,e),xr(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=$n(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Yn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Vn(1e3)}},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},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:Sn(e),external:!1,searchStr:o,search:un(t?.search,i),hash:Sn(r.slice(1)),state:dn(t?.state,a)}}let o=jr(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:Sn(Rr(o.pathname)),external:!!this.rewrite&&Gr(o,this.origin),searchStr:c,search:un(t?.search,s),hash:Sn(o.hash.slice(1)),state:dn(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},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=Qn(On(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Ur(n.href,{});n={...n,to:jr(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=jn(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[On(c)],u=c.includes(`$`),d;if(l)d=l._branch??=nr(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Kn(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=ri(n.params,e),!cn(p))break;p===e&&(p=Object.assign(ln(),p));try{Object.assign(p,t(p))}catch{}}}p??=ri(n.params,ii(n.params,f)?o()[3]:ai);let m=e.leaveParams?c:Rr(Sn(f?Fn(c,f,p,this.pathParamsDecoder):c)),h=oi(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,ni(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?si(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||ai,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:ai,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Mr(this.rewrite,e);C=Kr(e),Gr(n,t)?(w=n.href,T=!0):w=Rr(Kr(n))}else C=Cn(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Xn(r.pathname,this.processedTree);if(t){let i=Object.assign(ln(),t.rawParams),{from:a,params:o,...s}=t.route,c=ri(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return $r(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=On(this.latestLocation.href)===On(n.href)&&pn(Yr(n.state),Yr(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.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={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=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=n?yn(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return $r(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Zi(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(Jr(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,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&qr(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(bn.test(n)||(r=yn(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Gr(e,this.origin)||(n=Kr(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),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=fi,this.preloadRoute=e=>Qi(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?jn(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):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=Zn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!pn(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?pn(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Mn(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Dr,parseSearch:e.parseSearch??Er,protocolAllowlist:e.protocolAllowlist??vn}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Kn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:On(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?ci(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=ni(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof ei||(r=new ei(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 g=ln(),_=i._interpolation?Fn(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{li(i,d)}catch(e){if(x=Ln(e)||Bn(e)?e:new ti(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:un(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=qr(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?un(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?dn(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`?un(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=an(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=an(a),c={...e.search};for(let e of a)try{Object.assign(c,ni(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=o;for(let t of a)try{li(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function $r(e,t,{replace:n,ignoreBlocker:r}){if(!xn(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var ei=class extends Error{},ti=class extends Error{};function ni(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ei(`Async validation not supported`);if(n.issues)throw new ei(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 ri(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function ii(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!sn.call(e,t[1]))}var ai=Object.freeze({});function oi(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=ni(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function si(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=on(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function ci(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 Rn}function li(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function ui(e,t){return e.options[t]?.preload?.()}function di(e,t){let n=ui(e,`component`),r=ui(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function fi(e,t,n){let r=()=>t===!1?void 0:t?ui(e,t):di(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 pi(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function mi(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var H=0,hi=1,gi=2,U=3,_i=[4];function vi(e){return typeof e[0]==`number`}function yi(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).then(()=>t.removeEventListener(`abort`,i))})}function bi(e,t){return e.routesById[t.routeId]}function xi(e,t,n){return Bn(e)?[U,e]:Ln(e)?(e.routeId||=n,[gi,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[hi,e]):[H,e]}function Si(e,t){let n=xi(t,!0,e.id);if(n[0]!==hi)return n;try{e.options.onError?.(n[1])}catch(t){n=xi(t,!0,e.id)}return n}function Ci(e,t,n,r,i){return i[0].signal.aborted?_i:Ri(e,t,n,Si(n,r),i)}async function wi(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=bi(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};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Ei(e,r),[i,Ci(e,t,u,a,n)]}if(c.aborted)return[i,_i];let p=r.paramsError??r.searchError;if(p!==void 0)return Ei(e,r),[i,Ci(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Oi(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?yi(a,c):a);if(c.aborted)return[i,_i];let s=Ri(e,t,u,xi(o,!1,u.id),n);if(s[0]!==H)return Ei(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Ei(e,r),[i,Ci(e,t,u,a,n)]}finally{r.status=h,Oi(e,r,!1,n[0])}}i()}function Ti(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 Ei(e,t){let n=t._flight;t._flight=void 0,Ti(e,t,n)?.abort()}function W(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=Ti(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Di(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Oi(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 ki(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 Ai(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return _i;if(!i)return[H,void 0];let l=n._flight;Oi(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(ki(e,t,n,r,s,a,!!o[3]))).then(e=>xi(e,!1,r.id),e=>xi(e,!0,r.id)).then(t=>(t[0]!==H&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===hi&&l[2]?Si(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Ri(e,t,r,await yi(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Ei(e,n),_i}finally{Oi(e,n,!1,s)}}function ji(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===H?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Mi(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&&Ei(e,r)}function Ni(e,t){return t[0]===hi||t[0]===gi?{...e,status:t[0]===hi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Pi(e,t,n,r,i,a,o){let s=t[1][n],c=bi(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(ki(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=_i)),!p){if(s.status!==`success`)f=!0;else{let t=l||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,Ei(e,s),p=Ci(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Ti(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ai(e,t,s,c,g,i,a).then(t=>(ji(s,t,l),t[0]===H&&(m&&!a[0].signal.aborted&&Mi(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[H,s.loaderData]),T=(async()=>{try{let e=fi(c,void 0,C);e&&await yi(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Ci(e,t,c,r,a)]}let r=await w;x&&r[0]===H&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Ni(s,e));let ee={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let te=Ai(e,t,ee,c,g,i,a).then(e=>(s.isFetching=!1,ji(ee,e,!1),e));return(t[2]??=[]).push([n,te,T,ee]),te.then(e=>Ni(ee,e))}async function Fi(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=bi(e,t[n]);try{let e=fi(i,!1);e&&await yi(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Ii(e,t){t[2]&&=(W(e,t[2].map(e=>e[3])),void 0)}async function Li(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]>=U)throw[a,t];!i&&t[0]!==H&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===U)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Ri(e,t,n,r,i,a){for(;r[0]===U;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[U,t]:[U,t,a]}return[U,o,n]}catch(e){r=a?[hi,e]:Si(n,e),a=!0}}return r}async function zi(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]===gi?Fi(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=U)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]!==H&&t[0]<U&&!(`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)>=U){let n=s[1];if(n[0]!==U||n[1].options.reloadDocument||n[2])return Ii(e,t),n;c=!0,s=[0,[hi,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===hi?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=bi(e,u);try{await yi(i?Promise.resolve().then(()=>fi(m,l===hi?`errorComponent`:`notFoundComponent`)):Promise.all([fi(m),fi(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Ii(e,t),_i}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Ii(e,t),W(e,o),p()):u.status=`success`}return t}async function Bi(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=bi(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 yi(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 Vi(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 Fi(e,n,void 0,a,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`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Pi(e,i,t,u,f,r,l)},m=await wi(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===gi){let t=await Fi(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=U&&(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=zi(e,i,u,r[0],Li(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Li(i[2],void 0,void 0,h.then(e=>vi(e)?0:pi(n).length,()=>0))),o=await h}catch(t){if(Ii(e,i),t===a&&a.aborted)return _i;throw t}return vi(o)?o:Bi(e,o,a,r[6]===n.length?r[6]:0)}function Hi(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=bi(e,o),u=s||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(()=>Hi(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 Ui(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 Wi(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!pi(t[3]).some(e=>e.id===n[1]))return;let i;try{await yi(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Gi(e,t){e._committed=t,e.stores.setMatches(t)}function Ki(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=pi(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=bi(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Xr(n);Gi(e,n),W(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Zr(e,i,n,a,l,t)}async function qi(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Ji(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Yi(e,t,n,r,i){let a=n.map(e=>({...e}));Di(a);for(let t of r)Ei(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await zi(e,o,r,t[0],i)}catch(t){throw W(e,a),t}if(vi(s))W(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await Ji(e,t,s);else if(await Bi(e,s,t[0].signal),e._tx!==t||e._committed!==n)W(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Ei(e,n))}Gi(e,a),W(e,n,a)}}async function Xi(e,t,n,r,i,a){let o=await Vi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(vi(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Ui(e,t),W(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Ui(e,t);return}await Ji(e,t,o);return}let s=o[1];if(e._tx===t&&await Wi(e,t),e._tx!==t){Ui(e,t),W(e,s),Ii(e,o);return}let c=t[2],l=Jr(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Wi(e,t),e._tx!==t){Ui(e,t),W(e,s),Ii(e,o);return}let n=await e.startTransition(()=>{Ui(e,t),Ki(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&Yi(e,t,s,u,o[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)):Ii(e,o)})}async function Zi(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){let t=Jr(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await qi(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Di(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){W(e,m),await qi(e,n);return}e._preflight=void 0;let g,_=()=>Xi(e,y,f,()=>Hi(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>qi(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Oi(e,t,!1)}n[0].abort(),W(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&Hi(e,y),g?.(_()),await y[5]):(W(e,y[3]),y[3]=[],g?.(),await qi(e,y))}async function Qi(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Di(a),o=(e._preloads??=new Map).set(i,a),s=await Vi(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),W(e,a)),i.abort()}if(!vi(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Ln(e)||console.error(e);return}}}var $i=`Error preloading route! ☝️`,ea=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,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Rn:this.parentRoute||Tn();let r=n?Rn:t?.path;r&&r!==`/`&&(r=Dn(r));let i=t?.id||r,a=n?Rn:En((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:En(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=On(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=>zn({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.`)}},ta=class{constructor({id:e}){this.notFound=e=>In({routeId:this.id,...e}),this.redirect=e=>zn({from:this.id,...e}),this.id=e}},na=class extends ea{constructor(e){super(e)}},G=e(a(),1);function ra(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{mi(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var ia=G.createContext(void 0),aa=G.createContext(void 0),oa=G.createContext(null);function K(e){return G.useContext(oa)}var q=r();function sa(...e){let t=G.useRef(e),n=t.current;return e.forEach((e,t)=>{pn(n[t],e,!1,!0)||(n[t]=e)}),t.current}function ca(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn($i)})}function la(e,t){let n=typeof e==`string`&&yn(e);if(n)return t.has(n)?e:null}function ua(e,t,n,r){let i=An(e.pathname,r),a=An(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!pn(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function da(e,t,n){let r=K(),i=G.useRef(null),a=G.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=sa(e.search,e.params,o),x=G.useContext(ia),S=(r.stores._linkScopes??={})[x]??=ra(r,x),[C,w,T]=G.useMemo(()=>{let t=la(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ya(t,r,u),s=u||o&&!yn(o)?ua(e,t,b,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[ee,te]=G.useSyncExternalStore(S[1],w,T||w),ne=te===void 0&&ee,re=u||ee===void 0,ie=G.useRef(!1),E=e.reloadDocument||ne||re?!1:c??r.options.defaultPreload,D=l??r.options.defaultPreloadDelay??0,O=G.useCallback(e=>{let t=e?.isIntersecting;t??E===`intent`?D?i.t??=setTimeout(()=>{i.t=void 0,ca(r,C)},D):ca(r,C):t===!1&&_a(i)},[r,C,i,E,D]);G.useEffect(()=>{if(!E)return;E===`render`&&!ie.current&&(ie.current=!0,ca(r,C));let e=!0,t;return E===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&O(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),_a(i)}},[r,C,E,O,i]);let k=ha(e,n);if(k.ref=t?a:i,ne)return k.href=ne,k;let ae=t=>{let n=d??t.currentTarget.getAttribute(`target`);re||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),_a(i),r.navigate({...e,_fromLocation:C._fromLocation}))},A=()=>{E===`intent`&&ca(r,C)},oe=()=>{E===`intent`&&_a(i)};return k.onClick=va(f,ae),k.onBlur=va(p,oe),k.onFocus=va(m,O),k.onMouseEnter=va(h,O),k.onMouseLeave=va(g,oe),k.onTouchStart=va(_,A),ga(k,e,te,ee,re,n)}var fa={},pa={className:`active`},ma=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function ha(e,t){let n={};for(let r in e)ma.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function ga(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=on(n?o:s,{})??(n?pa:fa);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var _a=e=>{clearTimeout(e.t),e.t=void 0},va=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ya(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!xn(i,t.protocolAllowlist))return i}var ba=G.memo(G.forwardRef((e,t)=>{let n=e._asChild||`a`,r=da(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return G.createElement(n,r,i)}),xa);function xa(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!ma.has(r)||!pn(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Sa=t((e=>{var t=a();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s(function(){a.value=n,a.getSnapshot=t,u(a)&&l({inst:a})},[e,n,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Ca=t(((e,t)=>{t.exports=Sa()})),wa=t((e=>{var t=a(),n=Ca();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),a!==void 0&&f.hasValue){var t=f.value;if(a(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return a!==void 0&&a(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,a]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ta=t(((e,t)=>{t.exports=wa()})),Ea=Ta();function Da(e,t){return e===t}function Oa(e,t=e=>e,n){let r=n?.compare??Da,i=(0,G.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,G.useCallback)(()=>e.get(),[e]);return(0,Ea.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function ka({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Aa(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var ja=[],Ma=0,{link:Na,unlink:Pa,propagate:Fa,checkDirty:Ia,shallowPropagate:La}=ka({update(e){return e._update()},notify(e){ja[za++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Ha(e))}}),Ra=0,za=0,J,Ba=0;function Va(e){try{++Ba,e()}finally{--Ba||Ua()}}function Ha(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Pa(n,e)}function Ua(){if(!(Ba>0)){for(;Ra<za;){let e=ja[Ra];ja[Ra++]=void 0,e.notify()}Ra=0,za=0}}function Wa(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return J!==void 0&&Na(i,J,Ma),i._snapshot},subscribe(e){let t=Aa(e),n={current:!1},r=Ga(()=>{i.get(),n.current?(J=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=J,o=t?.compare??Object.is;if(n)J=i,++Ma,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{J=a,n&&(i.flags&=-5),Ha(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Ia(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&La(e)}}else e&32&&(i.flags=e&-33);return J!==void 0&&Na(i,J,Ma),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fa(e),La(e),Ua())}},i}function Ga(e){let t=()=>{let t=J;J=n,++Ma,n.depsTail=void 0,n.flags=6;try{return e()}finally{J=t,n.flags&=-5,Ha(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Ia(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Ha(this)}};return t(),n}var Ka={};function qa(e,t){let n=G.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=dn(n.current,i):i}}function Ja(e){let t=K(),n=G.useContext(e.from?aa:ia),r=e.from??n,i=t.stores.getMatchStore(r),a=qa(e,t),o=Oa(i,e=>e?a(e):Ka);if(o!==Ka)return o;(e.shouldThrow??!0)&&Tn()}function Ya(e){return Ja({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Xa(e){let{select:t,...n}=e;return Ja({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Za(e){return Ja({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Qa(e){return Ja({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var $a=G.use,eo=G.useLayoutEffect;function to(e){let t=K();return G.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function no(e){return Ja({...e,select:t=>e.select?e.select(t.context):t.context})}function ro(e){return new io({id:e})}var io=class extends ta{constructor({id:e}){super({id:e}),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id,strict:!1}),this.useLoaderData=e=>Ya({...e,from:this.id,strict:!1}),this.useNavigate=()=>to({from:K().routesById[this.id].fullPath}),this.notFound=e=>In({routeId:this.id,...e}),this.Link=G.forwardRef((e,t)=>{let n=K().routesById[this.id].fullPath;return(0,q.jsx)(ba,{ref:t,from:n,...e})})}},ao=class extends ea{constructor(e){super(e),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id}),this.useLoaderData=e=>Ya({...e,from:this.id}),this.useNavigate=()=>to({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,q.jsx)(ba,{ref:t,from:this.fullPath,...e}))}};function oo(e){return new ao(e)}var so=class extends na{constructor(e){super(e),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id}),this.useLoaderData=e=>Ya({...e,from:this.id}),this.useNavigate=()=>to({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,q.jsx)(ba,{ref:t,from:this.fullPath,...e}))}};function co(e){return new so(e)}function lo(e){return e=>{let t=oo(e);return t.isRoot=!1,t}}function uo(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(mn(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if($a)$a(a());else throw a()}return G.createElement(r,e)};return o.preload=a,o}var fo=e=>({createMutableStore:Wa,createReadonlyStore:Wa,batch:Va}),po=e=>new mo(e),mo=class extends Qr{constructor(e){super(e,fo)}},ho=class extends G.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?G.createElement(this.props.errorComponent??go,{error:e[0],reset:this.reset}):this.props.children}};function go({error:e}){let[t,n]=G.useState(!1);return(0,q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,q.jsx)(`div`,{children:(0,q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,q.jsx)(`code`,{children:e.message}):null})}):null]})}function _o(e,t){let n=e[1];e.length=0,n?.(t)}function vo({t:e}){let t=K(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{_o(n,!1),n.push(i,a),e(t),G.startTransition(r)}),eo(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(On(r.publicHref)!==On(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Jr(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var yo=()=>!0,bo=()=>!1;function xo({children:e,fallback:t=null}){return(0,q.jsx)(G.Fragment,{children:So()?e:t})}function So(e=!0){return G.useSyncExternalStore(Co,yo,e?bo:yo)}function Co(){return()=>{}}function wo(e){let t=K(),n=`not-found-${Oa(t.stores.location,e=>e.pathname)}-${Oa(t.stores.status)}`;return(0,q.jsx)(ho,{getResetKey:()=>n,onCatch:(t,n)=>{if(Ln(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Ln(t))return e.fallback?.(t);throw t},children:e.children})}function To(){return(0,q.jsx)(`p`,{children:`Not Found`})}function Eo(e,t,n){return t.options.notFoundComponent?(0,q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,q.jsx)(To,{})}function Do(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,q.jsx)(n,{}):null}var Oo=(e,t)=>e[0]===t[0]&&e[1]===t[1],ko=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ao=G.memo(function({routeId:e}){let t=K();return jo(t,Oa(t.stores.getMatchStore(e)))});function jo(e,t){let n=e.routesById[t.routeId],r=Do(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=ko(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,q.jsx)(Mo,{match:t});s&&(l=(0,q.jsx)(xo,{fallback:r,children:l})),o&&(l=(0,q.jsx)(wo,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return G.createElement(o,e)},children:l})),i&&(l=(0,q.jsx)(ho,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Ln(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,q.jsx)(G.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,q.jsx)(ia.Provider,{value:t.routeId,children:(0,q.jsxs)(u,{children:[l,null]})}):(0,q.jsxs)(ia.Provider,{value:t.routeId,children:[l,null]})}var Mo=G.memo(function({match:e}){let t=K(),n=e.routeId,r=t.routesById[n],i=G.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=G.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,q.jsx)(e,{},i):(0,q.jsx)(No,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!ko(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Do(t,r)}if(e.status===`notFound`)return Eo(t,r,e.error);if(e.status===`error`)throw e.error;return a}),No=G.memo(function(){let e=K(),t=G.useContext(ia),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=Oa(a,e=>[!!e._notFound,e.error],{compare:Oo}),i=Oa(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Eo(e,e.routesById[t],r);if(!i)return null;let a=(0,q.jsx)(Ao,{routeId:i});return t===`__root__`?(0,q.jsx)(G.Suspense,{fallback:Do(e),children:a}):a});function Po(){let e=K(),t=e.routesById[Rn],n=Do(e,t),r=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(vo,{t:G.useState()[1]}),e.ssr?(0,q.jsx)(Fo,{}):(0,q.jsx)(G.Suspense,{fallback:n,children:(0,q.jsx)(Fo,{})})]});return e.options.InnerWrap?(0,q.jsx)(e.options.InnerWrap,{children:r}):r}function Fo(){let e=K(),t=e._rendered,n=Oa(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;eo(()=>{t[0]===n&&_o(t,!0)},[t,n]);let a=i?(0,q.jsx)(Ao,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,q.jsx)(ho,{getResetKey:()=>r,onCatch:void 0,children:a})}function Io({router:e,children:t,...n}){cn(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,q.jsx)(oa.Provider,{value:e,children:t});return e.options.Wrap?(0,q.jsx)(e.options.Wrap,{children:r}):r}function Lo({router:e,...t}){return(0,q.jsx)(Io,{router:e,...t,children:(0,q.jsx)(Po,{})})}var Ro=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),zo=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(Ro);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});zo.displayName=`IconBase`;var Bo=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Vo=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Bo}));Vo.displayName=`ArrowClockwiseIcon`;var Ho=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),Uo=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Ho}));Uo.displayName=`HouseIcon`;var Wo=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),Go=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Wo}));Go.displayName=`LockIcon`;function Ko(){return typeof window<`u`}function qo(e){return Xo(e)?(e.nodeName||``).toLowerCase():`#document`}function Jo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yo(e){return((Xo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Xo(e){return Ko()?e instanceof Node||e instanceof Jo(e).Node:!1}function Zo(e){return Ko()?e instanceof Element||e instanceof Jo(e).Element:!1}function Qo(e){return Ko()?e instanceof HTMLElement||e instanceof Jo(e).HTMLElement:!1}function $o(e){return!Ko()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot}function es(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ts(e){return/^(table|td|th)$/.test(qo(e))}function ns(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var rs=/transform|translate|scale|rotate|perspective|filter/,is=/paint|layout|strict|content/,as=e=>!!e&&e!==`none`,os;function ss(e){let t=Zo(e)?ds(e):e;return as(t.transform)||as(t.translate)||as(t.scale)||as(t.rotate)||as(t.perspective)||!ls()&&(as(t.backdropFilter)||as(t.filter))||rs.test(t.willChange||``)||is.test(t.contain||``)}function cs(e){let t=ps(e);for(;Qo(t)&&!us(t);){if(ss(t))return t;if(ns(t))return null;t=ps(t)}return null}function ls(){return os??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),os}function us(e){return/^(html|body|#document)$/.test(qo(e))}function ds(e){return Jo(e).getComputedStyle(e)}function fs(e){return Zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ps(e){if(qo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||$o(e)&&e.host||Yo(e);return $o(t)?t.host:t}function ms(e){let t=ps(e);return us(t)?(e.ownerDocument||e).body:Qo(t)&&es(t)?t:ms(t)}function hs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ms(e),i=r===e.ownerDocument?.body,a=Jo(r);if(i){let e=gs(a);return t.concat(a,a.visualViewport||[],es(r)?r:[],e&&n?hs(e):[])}return t.concat(r,hs(r,[],n))}function gs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var _s={...G},vs={};function ys(e,t){let n=G.useRef(vs);return n.current===vs&&(n.current=e(t)),n}var bs=_s.useInsertionEffect,xs=bs&&bs!==_s.useLayoutEffect?bs:e=>e();function Ss(e){let t=ys(Cs).current;return t.next=e,xs(t.effect),t.trampoline}function Cs(){let e={next:void 0,callback:ws,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ws(){}var Ts=typeof document<`u`?G.useLayoutEffect:()=>{};function Es(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Ds={};function Os(e,t,n,r,i){if(!n&&!r&&!i&&!e)return As(t);let a=As(e);return t&&(a=js(a,t)),n&&(a=js(a,n)),r&&(a=js(a,r)),i&&(a=js(a,i)),a}function ks(e){if(e.length===0)return Ds;if(e.length===1)return As(e[0]);let t=As(e[0]);for(let n=1;n<e.length;n+=1)t=js(t,e[n]);return t}function As(e){return Fs(e)?{...e(Ds)}:Ms(e)}function js(e,t){return Fs(t)?t(e):Ns(e,t)}function Ms(e){let t={...e};for(let e in t){let n=t[e];Ps(e,n)&&(t[e]=Ls(n))}return t}function Ns(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Es(e.style,r);break;case`className`:e[n]=zs(e.className,r);break;default:e[n]=Ps(n,r)?Is(e[n],r):r}}return e}function Ps(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Fs(e){return typeof e==`function`}function Is(e,t){return t?e?(...n)=>{let r=n[0];if(Bs(r)){let i=r;Rs(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Ls(t):e}function Ls(e){return e&&((...t)=>{let n=t[0];return Bs(n)&&Rs(n),e(...t)})}function Rs(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zs(e,t){return t?e?t+` `+e:t:e}function Bs(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Vs(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Hs=Vs(`https://base-ui.com/production-error`,`Base UI`),Us=G.createContext(void 0);function Ws(e=!1){let t=G.useContext(Us);if(t===void 0&&!e)throw Error(Hs(16));return t}function Gs(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:G.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Ks(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Jo(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function qs(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=G.useRef(null),s=Ws(!0),c=a??s!==void 0,{props:l}=Gs({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=G.useCallback(()=>{let e=o.current;Js(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Ts(u,[u]),{getButtonProps:G.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Os({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Rs(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Js(r),s=!i&&Ys(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Ks(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Ks(r,e)))},onKeyUp(e){t||(Rs(e),a?.(e),e.target===e.currentTarget&&i&&c&&Js(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Ks(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Ss(e=>{o.current=e,u()})}}function Js(e){return Qo(e)&&e.tagName===`BUTTON`}function Ys(e){return Qo(e)&&e.tagName===`A`&&!!e.href}function Xs(e,t,n,r){let i=ys(Qs).current;return $s(i,e,t,n,r)&&tc(i,[e,t,n,r]),i.callback}function Zs(e){let t=ys(Qs).current;return ec(t,e)&&tc(t,e),t.callback}function Qs(){return{callback:null,cleanup:null,refs:[]}}function $s(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ec(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function tc(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var nc=19;function rc(e){return nc>=e}function ic(e){if(!G.isValidElement(e))return null;let t=e,n=t.props;return(rc(19)?n?.ref:t.ref)??null}function ac(){}var oc=Object.freeze([]),sc=Object.freeze({});function cc(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function lc(e,t){return typeof e==`function`?e(t):e}function uc(e,t){return typeof e==`function`?e(t):e}function dc(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=hc(r));let i=fc(t,n,r);if(n.enabled===!1)return null;let a=n.state??sc;return gc(e,r,i,a)}function fc(e,t,n){let{className:r,style:i}=e,{state:a=sc,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?lc(r,a):void 0,d=l?uc(i,a):void 0,f=l?cc(a,c):sc,p=l&&s?pc(s):void 0,m=l?Es(f,p)??{}:sc;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Zs([m.ref,ic(n),...o]):Xs(m.ref,ic(n),o):Xs(null,null)),l?(u!==void 0&&(m.className=zs(m.className,u)),d!==void 0&&(m.style=Es(m.style,d)),m):sc}function pc(e){return Array.isArray(e)?ks(e):Os(void 0,e)}var mc=Symbol.for(`react.lazy`);function hc(e){if(e?.$$typeof!==mc)return e;let t=G.Children.toArray(e)[0];return G.isValidElement(t)?t:e}function gc(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Os(n,t.props);return e.ref=n.ref,G.cloneElement(t,e)}return _c(e,n)}function _c(e,t){return e===`button`?(0,G.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,G.createElement)(`img`,{alt:``,...t,key:t.key}):G.createElement(e,t)}var vc=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=qs({disabled:i,focusableWhenDisabled:a,native:o});return dc(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),yc=n(),bc=i();function xc(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sc(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xc(e))&&(r&&(r+=` `),r+=t);return r}var Cc=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,wc=Sc,Tc=(e,t)=>n=>{if(t?.variants==null)return wc(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Cc(t)||Cc(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return wc(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ec=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Dc=(e,t)=>({classGroupId:e,validator:t}),Oc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kc=`-`,Ac=[],jc=`arbitrary..`,Mc=e=>{let t=Fc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Pc(e);let n=e.split(kc);return Nc(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ec(i,t):t:i||Ac}return n[e]||Ac}}},Nc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Nc(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(kc):e.slice(t).join(kc),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Pc=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?jc+r:void 0})(),Fc=e=>{let{theme:t,classGroups:n}=e;return Ic(n,t)},Ic=(e,t)=>{let n=Oc();for(let r in e){let i=e[r];Lc(i,n,r,t)}return n},Lc=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Rc(i,t,n,r)}},Rc=(e,t,n,r)=>{typeof e==`string`?zc(e,t,n):typeof e==`function`?Bc(e,t,n,r):Vc(e,t,n,r)},zc=(e,t,n)=>{let r=e===``?t:Hc(t,e);r.classGroupId=n},Bc=(e,t,n,r)=>{Uc(e)?Lc(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Dc(n,e)))},Vc=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Lc(o,Hc(t,a),n,r)}},Hc=(e,t)=>{let n=e,r=t.split(kc),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Oc(),n.nextPart.set(t,i)),n=i}return n},Uc=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Wc=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Gc=`!`,Kc=`:`,qc=[],Jc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Yc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Kc){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Gc)?(c=s.slice(0,-1),l=!0):s.startsWith(Gc)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Jc(t,l,c,u)};if(t){let e=t+Kc,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Jc(qc,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Xc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Zc=e=>({cache:Wc(e.cacheSize),parseClassName:Yc(e),sortModifiers:Xc(e),postfixLookupClassGroupIds:Qc(e),...Mc(e)}),Qc=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},$c=/\s+/,el=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split($c),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Gc:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},tl=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=nl(n))&&(i&&(i+=` `),i+=r);return i},nl=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=nl(e[r]))&&(n&&(n+=` `),n+=t);return n},rl=(e,...t)=>{let n,r,i,a,o=o=>(n=Zc(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=el(e,n);return i(e,a),a};return a=o,(...e)=>a(tl(...e))},il=[],Y=e=>{let t=t=>t[e]||il;return t.isThemeGetter=!0,t.themeKey=e,t},al=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ol=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ll=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ul=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,dl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pl=e=>sl.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),ml=e=>!!e&&Number.isInteger(Number(e)),hl=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),gl=e=>cl.test(e),_l=()=>!0,vl=e=>ll.test(e)&&!ul.test(e),yl=()=>!1,bl=e=>dl.test(e),xl=e=>fl.test(e),Sl=e=>!Z(e)&&!Q(e),Cl=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),wl=e=>zl(e,Ul,yl),Z=e=>al.test(e),Tl=e=>zl(e,Wl,vl),El=e=>zl(e,Gl,X),Dl=e=>zl(e,ql,_l),Ol=e=>zl(e,Kl,yl),kl=e=>zl(e,Vl,yl),Al=e=>zl(e,Hl,xl),jl=e=>zl(e,Jl,bl),Q=e=>ol.test(e),Ml=e=>Bl(e,Wl),Nl=e=>Bl(e,Kl),Pl=e=>Bl(e,Vl),Fl=e=>Bl(e,Ul),Il=e=>Bl(e,Hl),Ll=e=>Bl(e,Jl,!0),Rl=e=>Bl(e,ql,!0),zl=(e,t,n)=>{let r=al.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Bl=(e,t,n=!1)=>{let r=ol.exec(e);return r?r[1]?t(r[1]):n:!1},Vl=e=>e===`position`||e===`percentage`,Hl=e=>e===`image`||e===`url`,Ul=e=>e===`length`||e===`size`||e===`bg-size`,Wl=e=>e===`length`,Gl=e=>e===`number`,Kl=e=>e===`family-name`,ql=e=>e===`number`||e===`weight`,Jl=e=>e===`shadow`,Yl=rl(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[pl,`full`,`auto`,...w()],ee=()=>[ml,`none`,`subgrid`,Q,Z],te=()=>[`auto`,{span:[`full`,ml,Q,Z]},ml,Q,Z],ne=()=>[ml,`auto`,Q,Z],re=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ie=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],E=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...w()],O=()=>[pl,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[s,pl,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[pl,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,Q,Z],oe=()=>[...b(),Pl,kl,{position:[Q,Z]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Fl,wl,{size:[Q,Z]}],le=()=>[hl,Ml,Tl],j=()=>[``,`none`,`full`,l,Q,Z],M=()=>[``,X,Ml,Tl],ue=()=>[`solid`,`dashed`,`dotted`,`double`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[X,hl,Pl,kl],F=()=>[``,`none`,m,Q,Z],de=()=>[`none`,X,Q,Z],fe=()=>[`none`,X,Q,Z],pe=()=>[X,Q,Z],me=()=>[pl,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[gl],breakpoint:[gl],color:[_l],container:[gl],"drop-shadow":[gl],ease:[`in`,`out`,`in-out`],font:[Sl],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[gl],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[gl],shadow:[gl],spacing:[`px`,X],text:[gl],"text-shadow":[gl],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,pl,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Cl],columns:[{columns:[X,`auto`,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ml,`auto`,Q,Z]}],basis:[{basis:[pl,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,pl,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[ml,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ie(),`normal`]}],"justify-items":[{"justify-items":[...E(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...E()]}],"align-content":[{content:[`normal`,...ie()]}],"align-items":[{items:[...E(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...E(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...E(),`baseline`]}],"place-self":[{"place-self":[`auto`,...E()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:O()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...O()]}],"min-w":[{"min-w":[s,`screen`,`none`,...O()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...O()]}],h:[{h:[`screen`,`lh`,...O()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...O()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...O()]}],"font-size":[{text:[`base`,n,Ml,Tl]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Rl,Dl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,hl,Z]}],"font-family":[{font:[Nl,Ol,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,El]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,Tl]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ml,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ml,Q,Z],radial:[``,Q,Z],conic:[``,ml,Q,Z]},Il,Al]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,Ml,Tl]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`inner`,`none`,u,Ll,jl]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ll,jl]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[X,Tl]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Ll,jl]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...N(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":N()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:F()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ll,jl]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],zoom:[{zoom:[ml,Q,Z]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[X,Ml,Tl,El]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Xl(...e){return Yl(Sc(e))}function Zl(e){let t=(0,yc.c)(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=t=>{let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},r=()=>window.matchMedia(e).matches,t[0]=e,t[1]=n,t[2]=r),(0,G.useSyncExternalStore)(n,r,Ql)}function Ql(){return!1}var $l=Tc(`group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,bare:`bg-transparent hover:bg-transparent dark:hover:bg-transparent`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-none [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-none`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function eu(e){let t=(0,yc.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=Xl($l({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,q.jsx)(vc,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function tu(e){let t=(0,yc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xl(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var nu=Tc(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`,symbol:`mb-0 text-muted-foreground [&_svg]:size-4`}},defaultVariants:{variant:`default`}});function ru(e){let t=(0,yc.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=Xl(nu({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,q.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function iu(e){let t=(0,yc.c)(6),n;t[0]!==e.action||t[1]!==e.icon?(n=e.action??(0,q.jsx)(ru,{"aria-hidden":!0,variant:`symbol`,children:e.icon}),t[0]=e.action,t[1]=e.icon,t[2]=n):n=t[2];let r;return t[3]!==e.label||t[4]!==n?(r=(0,q.jsx)(tu,{role:`status`,"aria-label":e.label,children:n}),t[3]=e.label,t[4]=n,t[5]=r):r=t[5],r}function au(){let e=(0,yc.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,q.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,q.jsx)(tu,{"aria-label":`Page not found`,children:(0,q.jsxs)(eu,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,q.jsx)(Uo,{}),`Home`]})}),e[1]=n):n=e[1],n}function ou(e){let t=(0,yc.c)(3),n,r;return t[0]===e.href?(n=t[1],r=t[2]):(n=()=>{location.replace(e.href)},r=[e.href],t[0]=e.href,t[1]=n,t[2]=r),(0,G.useEffect)(n,r),null}function su(){let e=(0,yc.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,q.jsx)(iu,{label:`Access denied`,icon:(0,q.jsx)(Go,{weight:`light`})}),e[0]=t):t=e[0],t}function cu(e){let t=(0,yc.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,q.jsx)(Vo,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,q.jsx)(tu,{role:`alert`,children:(0,q.jsxs)(eu,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}var lu=class extends Vt()(`AuthError`,{cause:kt(u()),error:B(At([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`authorization_pending`,`expired_token`,`temporarily_unavailable`])),message:N}){},uu=o({id:L,name:L});o({aud:O(`deslop`),azp:L,exp:I,iat:I,iss:L,name:L,sid:L,sub:L}),o({name:N,redirects:ke(L.check(Gt(200))).check(Gt(4))}),o({client_id:L,code:L,code_verifier:L,redirect_uri:L}),o({session:L}),o({access_token:L,expires_in:T,refresh_token:L});var du=N.check($e(e=>Ae(jt(lt(e)),e=>Be([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check($e(e=>Ae(jt(lt(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`}));du.check($e(e=>Ae(jt(lt(e)),e=>e.protocol===`https:`||Be([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`})),N.check(Ye(/^\d{1,5}$/u),$e(e=>Ae(Lt(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var fu=N.check(Ye(/^0\.1\.\d+$/u));o({auth:B(du),name:N,traces:N,version:fu});var pu=`/api/rpc`;o({...uu.fields,signOut:nn}),o({config:o({port:I}),name:N,version:fu});var mu=b(ne(M(`AUTH_URL`)),Pt);be(function*(){let e=le(N,`GITHUB_ADMINS`);return(yield*mu)?yield*A(e,[`0`]):yield*e});function hu(e){return`${new URL(e).origin}/auth/sign-in?${new URLSearchParams({next:e})}`}function gu(e){return Ke(lu)(e)&&e.error!==`temporarily_unavailable`&&e.error!==`access_denied`}function _u(e){return Ke(lu)(e)&&e.error!==`temporarily_unavailable`}Kt()(`@deslop/runtime/auth/lib/utils/CurrentUser`);var vu=class extends zt()(`@deslop/runtime/auth/lib/utils/RpcAuth`,{error:lu}){};function yu(e,t,n=v){function r(e){let t=me(e.reasons,e=>gt(e)&&_u(e.error));return ce(t)?Ge():Wt(Dt(t))}let i=ie(h(e.self(),De(pe),R(e=>r(e.cause))));function a(e){return V(ue(i),{onNone:()=>e,onSome:t=>Dt([...t.reasons,...me(e.reasons,e=>!gt(e)||!_u(e.error))])})}let o=ie(0),s=h(t,j(t=>D(()=>{fe(i,e=>mt(r(t),()=>e));let n=a(t);ot(ue(i))?e.setSelf(Qt(n)):S(o)<2||e.setSelf(ze(n,{previous:e.self()}))})));return h(n(s),g(()=>D(()=>{se(i,Ge()),se(o,0)})),tn(e=>ge(a(e))),He(y(()=>V(ue(i),{onNone:()=>Zt,onSome:ge}))))}var bu=ie(Ge()),xu=new WeakSet,Su=Ht(e=>{let t=Ee(`Web error`,Qe(e.error),...Je(s(e.stack)));return V(ue(bu),{onNone:()=>t,onSome:n=>ae(h(t,rn(d(e.error)),je(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),Ce),n)})});function Cu(e){let t=(0,yc.c)(5);if(gu(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(ou,{href:hu(location.href)}),t[0]=e):e=t[0],e}if(_u(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(su,{}),t[1]=e):e=t[1],e}let n;return t[2]!==e.error||t[3]!==e.reset?(n=(0,q.jsx)(cu,{error:e.error,reset:e.reset}),t[2]=e.error,t[3]=e.reset,t[4]=n):n=t[4],n}function wu(e){let t=document.querySelector(`#root`);if(Xt(t))throw TypeError(`Missing application mount element with id "root"`);let n=po({context:{},defaultErrorComponent:Cu,defaultNotFoundComponent:au,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0}),r=et();function i(e,t,i){if(Jt(e)){if(xu.has(e))return;xu.add(e)}r.set(Su,{error:e,route:h(_e(n.state.matches,t=>t.error===e),mt(()=>x(n.state.matches)),R(e=>Le(e.routeId,c)),Bt(()=>`__root__`)),source:t,stack:i})}return n.update({defaultOnCatch:(e,t)=>i(e,`route`,t.componentStack)}),(0,bc.createRoot)(t,{onCaughtError:(e,t)=>i(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>i(e,`uncaught`,t.componentStack)}).render((0,q.jsx)(G.StrictMode,{children:(0,q.jsx)(Lo,{router:n})})),n}function Tu(e){return t=>Bt(Re(e)(t),()=>Tt(e)({}))}function Eu(e){return h(e,ye(e=>h(e(Oe(`1 second`)),Ne(e=>e.input._tag===`RpcClientError`||Ke(lu)(e.input)&&e.input.error===`temporarily_unavailable`))))}function Du(e,t){return yu(e,t,Eu)}var Ou=h(at({pingTimeout:`15 seconds`,retryTransientErrors:!0}),pt(h(It(D(()=>`${location.origin}${pu}`)),pt(Ue))),Ut(Ie())),ku=co({shellComponent:e=>(0,q.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),Au=class extends Vt()(`TelemetryError`,{cause:kt(u()),message:N}){},ju=h(N,st(Ye(/^[a-fA-F0-9]{32}$/u))),Mu=h(N,st(Ye(/^[a-fA-F0-9]{16}$/u))),$=h(N,st(Ye(/^\d{1,20}$/u))),Nu=o({key:N,value:C}),Pu=Xe(o({attributes:B(F(Nu))}),[C]),Fu=o({attributes:B(F(Nu)),events:B(F(Xe(o({attributes:B(F(Nu)),name:N,timeUnixNano:$}),[C]))),links:B(F(Xe(o({attributes:B(F(Nu)),spanId:Mu,traceId:ju}),[C])))}),Iu=Xe(o({...Fu.fields,endTimeUnixNano:B($),name:B(N),parentSpanId:B(xt([Mu,O(``)])),spanId:Mu,startTimeUnixNano:$,status:B(Xe(o({code:B(I)}),[C])),traceId:ju}),[C]),Lu=Xe(o({attributes:B(F(Nu)),body:B(C),observedTimeUnixNano:B($),severityNumber:B(I),severityText:B(N),spanId:B(xt([Mu,O(``)])),timeUnixNano:$,traceId:B(xt([ju,O(``)]))}),[C]);o({resourceSpans:B(F(Xe(o({resource:B(Pu),schemaUrl:B(N),scopeSpans:B(F(Xe(o({schemaUrl:B(N),scope:B(Pu),spans:B(F(Iu))}),[C])))}),[C])))}),o({resourceLogs:B(F(Xe(o({resource:B(Pu),schemaUrl:B(N),scopeLogs:B(F(Xe(o({logRecords:B(F(Lu)),schemaUrl:B(N),scope:B(Pu)}),[C])))}),[C])))});var Ru=o({durationMs:T,id:L,name:N,payload:C,receivedAt:B(E),resource:Pu,service:N,signal:At([`trace`,`log`]),spanId:N,status:I,time:$,traceId:N}).mapFields(rt([`resource`])),zu=o({errors:nn,from:T,limit:h(I,st(ht({maximum:1e3,minimum:1}))),offset:h(I,st(ht({maximum:1e5,minimum:0}))),operation:N,runs:At([`current`,`all`]),service:N,sort:At([`recent`,`slowest`]),text:N,to:T,traceId:N});o({entries:F(Ru),total:I});var Bu=At([`web`,`mobile`,`server`,`ci`,`unknown`]),Vu=o({name:N,runtime:Bu}),Hu=o({...Vu.fields,entries:E,lastEventAt:$,runStartedAt:$,version:N}),Uu=o({count:E,credential:At([`authorization`,`cookie`,`none`]),lastAt:T,route:At([`/v1/traces`,`/v1/logs`]),status:I});o({rejections:F(Uu),services:F(Hu),since:T});var Wu=o({durationMs:T,errors:I,id:ju,logs:I,operation:N,service:N,services:F(Vu),spans:I,time:$});o({entries:F(Wu),total:I});var Gu=o({durationMs:T,failure:B(o({span:N})),id:ju,time:$}),Ku=o({count:I,failures:I,name:N,p50Ms:T,runtime:Bu,traces:F(Gu)}),qu=o({apps:F(o({name:N,operations:F(Ku)}))});o({count:I,errors:I,from:T,maxMs:T,p50Ms:T,p95Ms:T,to:T});var Ju=o({...Ru.fields,depth:E,logs:F(Ru),offsetMs:T,parentSpanId:N,runtime:Bu}),Yu=o({durationMs:T,failureSpanId:B(N),id:ju,logs:F(Ru),services:F(Vu),spans:F(Ju)}),Xu=o({errors:h(zu.fields.errors,it(Mt(!1)),Ft({description:`Only failed spans and error logs.`})),operation:h(zu.fields.operation,it(Mt(``)),Ft({description:`Exact span name.`})),runs:h(zu.fields.runs,it(Mt(`current`)),Ft({description:`"current" searches the latest process/page load/app launch per service. "all" includes retained earlier runs in the lookback.`})),service:h(zu.fields.service,it(Mt(``)),Ft({description:`Exact service name, from list_services.`})),since:h(xe,st($e(tt,{expected:`a finite duration`})),it(Mt(Pe(10))),Ft({description:`Lookback, such as "10 minutes" or "1 hour".`})),text:h(zu.fields.text,it(Mt(``)),Ft({description:`Case-insensitive text in the span name, log message or attributes.`})),traceId:h(zu.fields.traceId,it(Mt(``)),Ft({description:`Only entries of this trace.`}))});o({...Xu.fields,limit:h(zu.fields.limit,it(Mt(20)),Ft({description:`Page size, 1 to 1000.`})),offset:h(zu.fields.offset,it(Mt(0)),Ft({description:`Entries to skip, for the next page.`})),sort:h(zu.fields.sort,it(Mt(`recent`)),Ft({description:`"recent" puts the newest first, "slowest" the longest first.`}))});var Zu=class extends vt(St(`scope.overview`,{error:xt([lu,Au]),stream:!0,success:qu}),St(`scope.trace`,{error:xt([lu,Au]),payload:o({id:ju}),success:Yu})).middleware(vu){},Qu={Span:`Trace`,Trace:`Traces`},$u=[`http.request.method`,`http.response.status_code`,`server.address`,`server.port`,`url.full`,`url.path`,`url.scheme`],ed=At([`Traces`,`Trace`,`Span`]),td=F(o({key:N,value:we})),nd=Me(N,we),rd=class extends Nt()(`@deslop/scope/lib/utils/RpcClient`,{group:Zu,protocol:Ou}){},id=o({app:N,name:Ku.fields.name,runtime:Ku.fields.runtime});o({operation:id,spanId:B(N),traceId:B(N)});var ad=o({operation:B(N),pane:B(ed),side:B(Ku.fields.runtime),source:B(N),span:B(N),trace:B(N)});function od(e){return{path:e.pane??`Operations`,selection:bt(wt(z(e.side),t=>({operation:{app:e.source??``,name:e.operation??``,runtime:t},...V(z(e.trace),{onNone:()=>({}),onSome:e=>({traceId:e})}),...V(z(e.span),{onNone:()=>({}),onSome:e=>({spanId:e})})})))}}function sd(e,t){return{operation:e.operation.name,side:e.operation.runtime,source:e.operation.app,...V(z(t),{onNone:()=>({}),onSome:e=>({pane:e})}),...V(z(e.traceId),{onNone:()=>({}),onSome:e=>({trace:e})}),...V(z(e.spanId),{onNone:()=>({}),onSome:e=>({span:e})})}}function cd(e,t){return e.source===t?e:{...rt(e,[`operation`,`pane`,`side`,`span`,`trace`]),source:t}}function ld(e,t){return t._tag===`Source`?cd(e,t.app):t._tag===`Operation`?sd({operation:t.operation},`Traces`):t._tag===`Trace`?sd(t.selection,`Trace`):t._tag===`Span`?sd(t.selection,`Span`):V(R(z(e.pane),e=>Te(Qu,e)),{onNone:()=>rt(e,[`pane`]),onSome:t=>({...e,pane:t})})}function ud(e){let t=_(e.apps,e=>_(e.operations,t=>ut(re(t.traces,t=>wt(z(t.failure),()=>({app:e.name,time:BigInt(t.time)}))))));return mt(wt(oe(t,{onEmpty:()=>Ge(),onNonEmpty:e=>Wt(de(e,qt(Ot,e=>e.time)))}),e=>e.app),()=>wt(ct(e.apps),e=>e.name))}var dd=Ze(rd.runtime.atom(e=>Du(e,h(rd,w(e=>e(`scope.overview`,void 0)),l)))),fd=ft(e=>rd.runtime.atom(t=>(t(dd),Du(t,m(te(rd,t=>t(`scope.trace`,{id:e}))))))),pd=Et(Yt(dt(`30 seconds`),()=>qe));function md(e,t){return V(Lt(h(e,yt(0,-6))),{onNone:()=>`—`,onSome:e=>{let n=Ct(0,(t-e)/1e3);return n<10?`now`:n<60?`${We(n,0)}s`:n<3600?`${We(n/60,0)}m`:n<86400?`${We(n/3600,0)}h`:`${We(n/86400,0)}d`}})}function hd(e){return e<999.5?`${We(e,0)} ms`:e<9950?`${We(e/1e3,1)} s`:e<59500?`${We(e/1e3,0)} s`:e<357e4?`${We(e/6e4,0)} min`:`${We(e/36e5,1)} h`}function gd(e){return h(Rt(nd)(e),R(e=>ct(k(e))),De(e=>ve(e)||he(e)||Ve(e)),V({onNone:()=>en(e),onSome:e=>`${e}`}))}function _d(e){return h(Le(e,e=>e.status===2),R(e=>s(e.payload.status)),De(p),R(e=>s(h(Te(e,`message`),bt))),De(c),De(P))}function vd(e){return e.payload.attributes===void 0?[]:V(Rt(td)(e.payload.attributes),{onNone:()=>[{key:`attributes`,value:`Unreadable`}],onSome:t=>{let n=ot(_d(e)),r=re(me(t,e=>e.key!==`service.name`),e=>({key:e.key,value:gd(e.value)})),i=f(r,e=>e.key===`http.response.status_code`);return me(r,t=>t.value!==e.name&&!(n&&Be($u,t.key))&&(t.key!==`error.type`||!Ae(i,e=>e.value===t.value)))}})}function yd(e){return oe(e.traces,{onEmpty:()=>0n,onNonEmpty:e=>BigInt(de(e,qt(Ot,e=>BigInt(e.time))).time)})}function bd(e,t){return ee(_(me(e.apps,e=>e.name===t),e=>re(e.operations,t=>({app:e,operation:t}))),nt(qt(Fe(_t),e=>e.operation.failures>0),qt(Fe(Ot),e=>yd(e.operation))))}function xd(e,t){return R(f(e.apps,e=>e.name===t.app),e=>wt(f(e.operations,e=>e.runtime===t.runtime&&e.name===t.name),t=>({app:e,operation:t})))}function Sd(e,t){return mt(f(e.spans,e=>e.spanId===t),()=>mt(R(z(e.failureSpanId),t=>f(e.spans,e=>e.spanId===t)),()=>f(e.spans,e=>e.depth===0)))}function Cd(e,t,n){let r=bt(mt(De(z(t.source),t=>Ae(e,e=>Se(e.apps,e=>e.name===t))),()=>R(e,ud))),i=od(t).selection,a=mt(De(R(z(i?.operation),t=>R(e,e=>xd(e,t))),e=>e.app.name===r),()=>$t(n,{onFalse:()=>R(e,e=>wt(ct(bd(e,r)),e=>({app:e.app,operation:e.operation}))),onTrue:()=>Ge()})),o=wt(a,e=>({app:e.app.name,name:e.operation.name,runtime:e.operation.runtime})),s=R(a,e=>mt(R(z(i?.traceId),t=>f(e.operation.traces,e=>e.id===t)),()=>ct(e.operation.traces)));return{activeKey:o,activeOperation:a,activeTrace:s,pickedSpan:bt(R(De(z(i),e=>Ae(s,t=>e.traceId===t.id)),e=>z(e.spanId))),source:r}}var wd=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Td=function(e){return`/`+e},Ed={},Dd=function(e){return e.pathname.endsWith(`.css`)},Od=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},kd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,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?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Td(t,n);let r=s(t),i=Dd(r);return Od(Ed,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:wd,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}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)})},Ad={homeIndexRoute:lo(`/(home)/`)({component:uo(()=>kd(()=>import(`./(home)--gx9Z92p.js`),__vite__mapDeps([0,1,2,3])),`component`),validateSearch:Tu(ad)}).update({id:`/(home)/`,path:`/`,getParentRoute:()=>ku})};wu(ku._addFileChildren(Ad)._addFileTypes());export{ts as $,Ws as A,gs as B,sc as C,qs as D,Xs as E,ys as F,Jo as G,fs as H,_s as I,Qo as J,ss as K,ds as L,Os as M,Ts as N,Ks as O,Ss as P,$o as Q,cs as R,oc as S,rc as T,hs as U,qo as V,ps as W,Xo as X,us as Y,es as Z,Xl as _,Sd as a,Ta as at,hc as b,pd as c,Cd as d,ns as et,fd as f,eu as g,iu as h,_d as i,ro as it,Hs as j,Us as k,bd as l,_u as m,vd as n,Vo as nt,od as o,Ca as ot,Cu as p,Zo as q,hd as r,zo as rt,ld as s,ba as st,md as t,ls as tt,dd as u,Zl as v,ac as w,dc as x,Tc as y,Yo as z};
3
+ \r`.includes(e)?``:encodeURIComponent(e))),Rr(e)}function Br(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 n=>{let r=n.navigateOpts?.ignoreBlocker?void 0:e.getBlockers?.();if(typeof document<`u`&&r?.length&&(n.type===`PUSH`||n.type===`REPLACE`))for(let i of r){let r=Ur(n.path,n.state);if(await i.blockerFn({currentLocation:t,nextLocation:r,action:n.type})){e.onBlocked?.();return}}n.task()};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[Pr];i=Vr(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[Pr];i=Vr(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,n?.ignoreBlocker??!1),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[Pr]!==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,_getBlockers:()=>e.getBlockers?.()??[]}}function Vr(e,t){let n=Wr();return{...t,key:n,__TSR_key:n,[Pr]:e}}function Hr(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=t=>zr(e?.createHref?e.createHref(t):t),c=e?.parseLocation??(()=>Ur(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Wr();t.history.replaceState({[Pr]: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=(t,n,r)=>{let i=e?.createHref?s(n):void 0,a=!!g;a||(u=l),l=Ur(n,r),g=[i??l.href,r,g?.[2]||t],a||queueMicrotask(()=>_())},y=e=>{l=c(),S.notify({type:e})},b=async()=>{if(m=!1,f){f=!1;return}let e=c(),n=e.state[Pr]-l.state[Pr],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 r=a();if(typeof document<`u`&&r.length){for(let i of r)if(await i.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(-n),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||typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},S=Br({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,n)=>{d=!0,n&&(p=!0,m=!0),t.history.go(e)},createHref:s,flush:_,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Ir,x,{capture:!0}),t.removeEventListener(Fr,b)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return S._ignoreNextBeforeUnload=e=>{m=!1;try{e=new URL(e,t.document.baseURI).href,m=/^https?:/.test(e)&&(!e.includes(`#`)||e.split(`#`)[0]!==t.location.href.split(`#`)[0])}catch{}},t.addEventListener(Ir,x,{capture:!0}),t.addEventListener(Fr,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 Ur(e,t){let n=zr(e),r=n.indexOf(`#`),i=n.indexOf(`?`);if(!t){let e=Wr();t={[Pr]:0,key:e,__TSR_key:e}}return{href:n,pathname:n.slice(0,r>-1?i>-1?Math.min(r,i):r:i>-1?i:n.length),hash:r>-1?n.slice(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t}}function Wr(){return(Math.random()+1).toString(36).slice(7)}function Gr(e,t){return e.protocol!==`http:`&&e.protocol!==`https:`||e.origin!==t||!!e.username||!!e.password}function Kr(e){return e.pathname+e.search+e.hash}function qr(e){return e.options.loader||e.options.beforeLoad||e.lazyFn||e.options.component?.preload||e.options.pendingComponent?.preload}function Jr(e,t){return{fromLocation:t,toLocation:e,pathChanged:t?.pathname!==e.pathname,hrefChanged:t?.href!==e.href,hashChanged:t?.hash!==e.hash}}function Yr({key:e,__TSR_key:t,__TSR_index:n,__hashScrollIntoViewOptions:r,...i}){return i}function Xr(e){return e.findIndex(e=>e.status===`error`||e.status===`notFound`||e._notFound)+1}function Zr(e,t,n,r,i,a){r&&(t=t.slice(0,r)),i&&(n=n.slice(0,i));for(let r of t){if(a&&e._tx!==a)return;n.some(e=>e.routeId===r.routeId)||e.routesById[r.routeId].options.onLeave?.(r)}for(let r of n){if(a&&e._tx!==a)return;e.routesById[r.routeId].options[t.some(e=>e.routeId===r.routeId)?`onStay`:`onEnter`]?.(r)}}var Qr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async e=>(e(),!1),this.update=e=>{let t=this.options;this.options={...t,...e},this.isServer=this.options.isServer??!1??typeof document>`u`,this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:Hr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`;let n=this.options.basepath??`/`,r=this.options.rewrite,i=this.basepath!==n||t?.rewrite!==r||t?.caseSensitive!==this.options.caseSensitive;if(i&&(this.basepath=n,this.rewrite=n!==`/`&&kn(n)?Ar(n,this.options.caseSensitive,r):r),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;e=this.buildRouteTree(),this.setRoutes(e)}if(this.stores)i&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Nr(this.latestLocation,e),xr(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=$n(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Yn(this.options.routeMasks,e.processedTree),{...e,resolvePathCache:Vn(1e3)}},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},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:Sn(e),external:!1,searchStr:o,search:un(t?.search,i),hash:Sn(r.slice(1)),state:dn(t?.state,a)}}let o=jr(this.rewrite,new URL(i,this.origin)),s=this.options.parseSearch(o.search),c=this.options.stringifySearch(s);return o.search=c,{href:o.href.replace(o.origin,``),publicHref:i,pathname:Sn(Rr(o.pathname)),external:!!this.rewrite&&Gr(o,this.origin),searchStr:c,search:un(t?.search,s),hash:Sn(o.hash.slice(1)),state:dn(t?.state,a)}},r=n(e,e.state),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i,{...i.state,__tempLocation:void 0,key:r.state.key,__TSR_key:r.state.__TSR_key});return e.maskedLocation=r,e}return r},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=Qn(On(e),this.processedTree,!0);return n&&Object.assign(t,n.rawParams),[n?.branch||[this.routesById.__root__],t,n?.route]},this.buildLocation=e=>{{let t=this.staticLocations.get(e);if(t)return t}let t=!1,n=(n={})=>{if(n.href){let e=Ur(n.href,{});n={...n,to:jr(this.rewrite,new URL(e.pathname,this.origin)).pathname,search:this.options.parseSearch(e.search),hash:e.hash.slice(1)}}let r=e._fromLocation||this._pendingLocation||this.latestLocation,i,a=()=>(t=!0,r),o=()=>i??=this.matchRoutesLightweight(a()),s=n.to?`${n.to}`:`.`,c=jn(s[0]===`/`?``:n.unsafeRelative===`path`?a().pathname:n.from??o()[1],s,this.options.trailingSlash,this.resolvePathCache),l=this.routesByPath[On(c)],u=c.includes(`$`),d;if(l)d=l._branch??=nr(l);else if(u)d=[];else{let[e,t,n]=this.getMatchedRoutes(c);d=e,this.options.notFoundRoute&&(!n||n.path!==`/`&&t[`**`])&&(d=[...d,this.options.notFoundRoute])}let f=u?l?._interpolation??Kn(!1,{fullPath:c},0):void 0,p;for(let e of d){let t=e.options.params?.stringify??e.options.stringifyParams;if(t){let e=o()[3];if(p??=ri(n.params,e),!cn(p))break;p===e&&(p=Object.assign(ln(),p));try{Object.assign(p,t(p))}catch{}}}p??=ri(n.params,ii(n.params,f)?o()[3]:ai);let m=e.leaveParams?c:Rr(Sn(f?Fn(c,f,p,this.pathParamsDecoder):c)),h=oi(d,e._includeValidateSearch),g=()=>{let t=o()[2];if(e._includeValidateSearch&&this.options.search?.strict){let e={};d.forEach(n=>{if(n.options.validateSearch)try{Object.assign(e,ni(n.options.validateSearch,{...e,...t}))}catch{}}),t=e}return t},_=h.length?si(h,g(),n):n.search===!0?g():typeof n.search==`function`?n.search(g()):n.search||ai,v=this.options.stringifySearch(_),y=n.hash===!0?a().hash:typeof n.hash==`function`?n.hash(a().hash):n.hash||void 0,b=y?`#${y}`:``,x=n.state?n.state===!0?a().state:typeof n.state==`function`?n.state(a().state):n.state:ai,S=`${m}${v}${b}`,C,w,T=!1;if(this.rewrite){let e=new URL(S,this.origin),t=e.origin,n=Mr(this.rewrite,e);C=Kr(e),Gr(n,t)?(w=n.href,T=!0):w=Rr(Kr(n))}else C=Cn(S),w=C;return{publicHref:w,href:C,pathname:m,search:_,searchStr:v,state:x,hash:y??``,external:T,unmaskOnReload:n.unmaskOnReload}},r=n(e);if(e.mask)r.maskedLocation=n({from:e.from,...e.mask});else if(this.options.routeMasks){let t=Xn(r.pathname,this.processedTree);if(t){let i=Object.assign(ln(),t.rawParams),{from:a,params:o,...s}=t.route,c=ri(o,i);r.maskedLocation=n({from:e.from,...s,params:c})}}return!t&&e._fromLocation&&this.staticLocations.set(e,r),r},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r=n.maskedLocation??n;if(r.external)return $r(this,r.publicHref,{replace:n.replace,ignoreBlocker:t});let i,a=On(this.latestLocation.href)===On(n.href)&&pn(Yr(n.state),Yr(this.latestLocation.state)),o=this._commitPromise,s,c=new Promise(e=>{s=e});if(c.resolve=()=>{s(),o?.resolve()},this._commitPromise=c,a)this.load();else{let{maskedLocation:r,hashScrollIntoView:a,...o}=n;r&&(o={...r,state:{...r.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={...o.state,__hashScrollIntoViewOptions:a??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=e,i=n.replace?`REPLACE`:`PUSH`,this.history[i===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t}),this.history.subscribers.size||this.load({action:{type:i}})}return this._scroll.n=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=n?yn(n):void 0;if(a||t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i}),a=t.maskedLocation??t;n??=a.publicHref,r??=a.publicHref}let t=!a&&r?r:n;return $r(this,t,i)}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.load=async e=>{this.updateLatestLocation(),e?.action&&(this._scroll.h=e.action.type===`PUSH`||e.action.type===`REPLACE`),await Zi(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(Jr(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,a=e=>{(!n||n(e))&&i.add(e.id)};t.forEach(a),this._cache.forEach(a),r?.forEach(e=>e.forEach(a)),this._tx?.[3].forEach(a);let o=[];for(let[e,t]of r??[])t.some(e=>i.has(e.id))&&(r.delete(e),o.push(e));let s=t=>{if(i.has(t.id)){let n=this.routesById[t.routeId],r={...t,invalid:!0,...(e?.forcePending||t.status===`error`||t.status===`notFound`)&&qr(n)?{status:`pending`,error:void 0}:void 0};return t._flight=void 0,r}return t};this._committed=t.map(s);for(let[t,n]of this._cache)i.has(t)&&(n.invalid=!0,e?.forcePending&&(n.status=`pending`));for(let e of i){let t=this._flights?.get(e);this._flights?.delete(e),t&&!t[2]&&o.push(t[1])}for(let e of o)e.abort();return this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.resolveRedirect=e=>{let t=e.options,n=e.headers.get(`Location`)||t.href;if(!n){let e=this.buildLocation(t);n=(e.maskedLocation??e).publicHref||`/`}let r;if(bn.test(n)||(r=yn(n))&&!this.protocolAllowlist.has(r))throw Error(`Redirect blocked: unsafe protocol`);if(r===`http:`||r===`https:`){let e=new URL(n);e.pathname.startsWith(`//`)?n=e.href:Gr(e,this.origin)||(n=Kr(e),r=void 0)}return r&&(t.reloadDocument=!0),t.href=n,e.headers.set(`Location`,n),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=fi,this.preloadRoute=e=>Qi(this,e),this.matchRoute=(e,t)=>{let n={...e,to:e.to?jn(e.from||``,e.to,this.options.trailingSlash,this.resolvePathCache):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=Zn(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,a.pathname,this.processedTree);return!o||e.params&&!pn(o.rawParams,e.params,!0)?!1:t?.includeSearch??!0?pn(a.search,r.search,!0)?o.rawParams:!1:o.rawParams},this.getStoreConfig=t,e.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=Mn(e.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Dr,parseSearch:e.parseSearch??Er,protocolAllowlist:e.protocolAllowlist??vn}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(e){Object.assign(this,e),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let t=this.options.notFoundRoute;t&&(t.init(99999999999),this.routesById[t.id]!==t&&(t._interpolation=Kn(!1,t,0)),this.routesById[t.id]=t)}matchRoutesInternal(e,t){let[n,r,i]=this.getMatchedRoutes(e.pathname),a=n,o=!1;(i?i.path!==`/`&&r[`**`]:On(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?ci(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=ni(i.options.validateSearch,{...n})??void 0;l={...n,...e},f={...r,...e}}catch(e){let r=e;if(e instanceof ei||(r=new ei(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 g=ln(),_=i._interpolation?Fn(i.fullPath,i._interpolation,r,this.pathParamsDecoder,g):i.fullPath,v=i.id+_+h,y=u(i,n),b=this._cache.get(v)??(y?.id===v?y:void 0);d=b?._strictParams??Object.assign(g,d);let x;if(!b)try{li(i,d)}catch(e){if(x=Ln(e)||Bn(e)?e:new ti(e.message,{cause:e}),t?.throwOnError)throw x}let S=y?`stay`:`enter`,C;if(b)C={...b,cause:S,search:un(y?y.search:b.search,l),_strictSearch:f,searchError:p};else{let e=qr(i)?`pending`:`success`;C={id:v,ssr:i.options.ssr,index:n,routeId:i.id,params:y?.params??d,_strictParams:d,pathname:_,updatedAt:Date.now(),search:y?un(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?dn(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`?un(n.params,d):d,t?._controller&&(n.context={})}return c}matchRoutesLightweight(e){let t=an(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=an(a),c={...e.search};for(let e of a)try{Object.assign(c,ni(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=o;for(let t of a)try{li(t,e)}catch{}u=e}let d=[a,s.fullPath,c,u];return this.lightweightCache.set(e,[r,d]),d}};async function $r(e,t,{replace:n,ignoreBlocker:r}){if(!xn(t,e.protocolAllowlist)){if(!r){let t=e.history._getBlockers();for(let r of t)if(r?.blockerFn&&await r.blockerFn({currentLocation:e.history.location,nextLocation:e.history.location,action:n?`REPLACE`:`PUSH`}))return}e.history._ignoreNextBeforeUnload?.(t),n?window.location.replace(t):window.location.href=t}}var ei=class extends Error{},ti=class extends Error{};function ni(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new ei(`Async validation not supported`);if(n.issues)throw new ei(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 ri(e,t){if(e===void 0||e===!0)return t;let n=Object.create(null);return e===!1||e===null?n:typeof e==`function`?(Object.assign(n,t),Object.assign(n,e(n))):Object.assign(n,t,e)}function ii(e,t){return typeof e==`function`?!0:!t||e===!1||e===null?!1:e===void 0||e===!0||t.some(t=>typeof t!=`string`&&!sn.call(e,t[1]))}var ai=Object.freeze({});function oi(e,t){let n=[];for(let r=0;r<e.length;r++){let i=e[r].options;`search`in i?i.search?.middlewares&&n.push(...i.search.middlewares):(i.preSearchFilters||i.postSearchFilters)&&n.push(({search:e,next:t})=>{let n=t(i.preSearchFilters?i.preSearchFilters.reduce((e,t)=>t(e),e):e);return i.postSearchFilters?i.postSearchFilters.reduce((e,t)=>t(e),n):n});let a=i.validateSearch;t&&a&&n.push(({search:e,next:t,meta:n})=>{let r=t(e);try{let e=ni(a,r);if(n&&e)for(let t in e)t in r||(n.defaulted||=new Map).set(t,e[t]);return{...r,...e}}catch{}return r})}return n}function si(e,t,n){let r=(t,i,a)=>{if(t>=e.length){if(!n.search)return{};if(n.search===!0)return i;let e=on(n.search,i);return a&&(a.explicit=e),e}return e[t]({search:i,next:(e,n)=>{if(n){let n=a||{};return{search:r(t+1,e,n),meta:n}}return r(t+1,e,a)},meta:a})};return r(0,t)}function ci(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 Rn}function li(e,t){let n=e.options.params?.parse??e.options.parseParams;n&&Object.assign(t,n(t))}function ui(e,t){return e.options[t]?.preload?.()}function di(e,t){let n=ui(e,`component`),r=ui(e,`pendingComponent`);return t&&(r?r=r.then(t):t()),n&&r?Promise.all([n,r]).then(()=>{}):n??r}function fi(e,t,n){let r=()=>t===!1?void 0:t?ui(e,t):di(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 pi(e){let t=e.findIndex(e=>e.status!==`success`||e._notFound)+1;return t&&t<e.length?e.slice(0,t):e}function mi(e,t,n){let r=e._tx;return t&&r?.[2]===n&&!r[3].some(e=>e.routeId===t)}var H=0,hi=1,gi=2,U=3,_i=[4];function vi(e){return typeof e[0]==`number`}function yi(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).then(()=>t.removeEventListener(`abort`,i))})}function bi(e,t){return e.routesById[t.routeId]}function xi(e,t,n){return Bn(e)?[U,e]:Ln(e)?(e.routeId||=n,[gi,e]):t?(typeof e?.then==`function`&&(e=Error(`A Promise was thrown`,{cause:e})),[hi,e]):[H,e]}function Si(e,t){let n=xi(t,!0,e.id);if(n[0]!==hi)return n;try{e.options.onError?.(n[1])}catch(t){n=xi(t,!0,e.id)}return n}function Ci(e,t,n,r,i){return i[0].signal.aborted?_i:Ri(e,t,n,Si(n,r),i)}async function wi(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=bi(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};try{let e=r._ctx||=u.options.context?u.options.context({...f,deps:r.loaderDeps,context:d})||{}:void 0;r.context={...d,...e}}catch(a){return Ei(e,r),[i,Ci(e,t,u,a,n)]}if(c.aborted)return[i,_i];let p=r.paramsError??r.searchError;if(p!==void 0)return Ei(e,r),[i,Ci(e,t,u,p,n)];let m=u.options.beforeLoad;if(!m)continue;let h=r.status;i>=a&&(r.status=`pending`,n[7]?.());try{Oi(e,r,`beforeLoad`,n[0]);let a=m({...f,search:r.search,context:r.context,...e.options.additionalContext}),o=await(typeof a?.then==`function`?yi(a,c):a);if(c.aborted)return[i,_i];let s=Ri(e,t,u,xi(o,!1,u.id),n);if(s[0]!==H)return Ei(e,r),[i,s];r.context={...r.context,...o}}catch(a){return Ei(e,r),[i,Ci(e,t,u,a,n)]}finally{r.status=h,Oi(e,r,!1,n[0])}}i()}function Ti(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 Ei(e,t){let n=t._flight;t._flight=void 0,Ti(e,t,n)?.abort()}function W(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=Ti(e,a,t);n&&i.push(n)}}for(let e of i)e.abort()}function Di(e){for(let t of e){let e=t._flight;e&&e[2]++}}function Oi(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 ki(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 Ai(e,t,n,r,i,a,o){let s=o[0],c=s.signal;if(c.aborted)return _i;if(!i)return[H,void 0];let l=n._flight;Oi(e,n,`loader`,s);try{if(!l){let s=new AbortController;l=[Promise.resolve().then(()=>i(ki(e,t,n,r,s,a,!!o[3]))).then(e=>xi(e,!1,r.id),e=>xi(e,!0,r.id)).then(t=>(t[0]!==H&&e._flights?.get(n.id)===l&&(e._flights.delete(n.id),l[2]||s.abort()),t[0]===hi&&l[2]?Si(r,t[1]):t)),s,1],(e._flights??=new Map).set(n.id,l)}return n._flight=l,n.abortController=l[1],Ri(e,t,r,await yi(l[0],c),o)}catch(t){if(t!==c||!c.aborted)throw t;return Ei(e,n),_i}finally{Oi(e,n,!1,s)}}function ji(e,t,n){t[0]!==U&&(e.status=`success`,e.error=void 0,t[0]===H?(e.loaderData=t[1],e.invalid=!1,e.updatedAt=Date.now(),e.preload=n):e.invalid=!0)}function Mi(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&&Ei(e,r)}function Ni(e,t){return t[0]===hi||t[0]===gi?{...e,status:t[0]===hi?`error`:`notFound`,error:t[1],_flight:void 0}:e}function Pi(e,t,n,r,i,a,o){let s=t[1][n],c=bi(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(ki(e,t,s,c,a[0],i,l))),a[0].signal.aborted&&(p=_i)),!p){if(s.status!==`success`)f=!0;else{let t=l||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,Ei(e,s),p=Ci(e,t,c,n,a)}let m=c.options.loader,h=typeof m==`function`,g=h?m:m?.handler,_=!l||c.options.preload!==!1,v=_&&m?e._flights?.get(s.id):void 0;v===s._flight||p?v=void 0:v&&!f&&!l&&d===void 0?f=!0:f||(v=void 0);let y=!(!m||!f||s.status!==`success`||l||a[4]||((h?void 0:m.staleReloadMode)??e.options.defaultStaleReloadMode)===`blocking`),b=f&&_,x=b&&!y&&(s.status!==`success`||!!m),S=n>=o?a[7]:void 0,C=c.lazyFn&&c._lazy!==!0?S:void 0;if(b&&!m&&(s.invalid=!1,s.updatedAt=Date.now()),v&&v[2]++,x){let t=s._flight;s._flight=v,Ti(e,s,t)?.abort(),n>=o&&(s.status=`pending`),S?.()}b||(s.isFetching=!1);let w=!p&&x?Ai(e,t,s,c,g,i,a).then(t=>(ji(s,t,l),t[0]===H&&(m&&!a[0].signal.aborted&&Mi(e,s,u),n>=o&&(s.status=`pending`)),t)):Promise.resolve(p??[H,s.loaderData]),T=(async()=>{try{let e=fi(c,void 0,C);e&&await yi(e,a[0].signal)}catch(r){if(!t[1].some((e,t)=>t<=n&&(e.status===`error`||e.status===`notFound`||e._notFound)))return[n,Ci(e,t,c,r,a)]}let r=await w;x&&r[0]===H&&s.status===`pending`&&!a[0].signal.aborted&&(s.status=`success`,S?.())})();if(r.push([n,w,T]),!y)return w.then(e=>Ni(s,e));let ee={...s,status:`pending`,preload:!1,_flight:v};s.invalid=!1,s.isFetching=`loader`;let te=Ai(e,t,ee,c,g,i,a).then(e=>(s.isFetching=!1,ji(ee,e,!1),e));return(t[2]??=[]).push([n,te,T,ee]),te.then(e=>Ni(ee,e))}async function Fi(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=bi(e,t[n]);try{let e=fi(i,!1);e&&await yi(e,r)}catch(e){if(e===r&&r.aborted)throw e}if(i.options.notFoundComponent)return n}return a?.routeId?o:i}function Ii(e,t){t[2]&&=(W(e,t[2].map(e=>e[3])),void 0)}async function Li(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]>=U)throw[a,t];!i&&t[0]!==H&&(i=[a,t],await Promise.all((n??[]).map(e=>{if(!(e[0]<=a))return e[1].then(t=>{if(t[0]===U)throw[e[0],t]})})))}})))}catch(e){return e}return t??i}function Ri(e,t,n,r,i,a){for(;r[0]===U;){let o=r[1],s=o.options;try{if((s.href||o.headers.has(`Location`))&&(e.resolveRedirect(o),s.reloadDocument)||(s.reloadDocument?i[3]:i[1]>=20))return r;let n=e.buildLocation({...s,_fromLocation:t[0],_includeValidateSearch:!0}),a=n.maskedLocation??n;if(a.external){let t=o.clone();return t.options={...s},t.headers.set(`Location`,a.publicHref),e.resolveRedirect(t),i[3]?[U,t]:[U,t,a]}return[U,o,n]}catch(e){r=a?[hi,e]:Si(n,e),a=!0}}return r}async function zi(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]===gi?Fi(e,o,t,r.signal):t[0],d=l<0?o.length:l;if((s?.[1][0]??0)>=U)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]!==H&&t[0]<U&&!(`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)>=U){let n=s[1];if(n[0]!==U||n[1].options.reloadDocument||n[2])return Ii(e,t),n;c=!0,s=[0,[hi,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===hi?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=bi(e,u);try{await yi(i?Promise.resolve().then(()=>fi(m,l===hi?`errorComponent`:`notFoundComponent`)):Promise.all([fi(m),fi(m,`notFoundComponent`)]),r.signal)}catch(n){if(n===r.signal&&r.signal.aborted)return Ii(e,t),_i}i?c&&(r.abort(),await Promise.all([...n.map(e=>e[1]),...n.map(e=>e[2]),...(t[2]??[]).map(e=>e[1])]),Ii(e,t),W(e,o),p()):u.status=`success`}return t}async function Bi(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=bi(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 yi(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 Vi(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 Fi(e,n,void 0,a,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`||e.preload||a?.id!==e.id||a.status!==`success`||(l++,i._notFound||a._notFound))break}let u=[],d=r[6]??0,f=d?Promise.resolve(n[d-1]):void 0,p=()=>{for(let t=d;t<c&&!a.aborted;t++)f=Pi(e,i,t,u,f,r,l)},m=await wi(e,i,r,c,p,l);if(m){if(r[4]=!0,c=m[0],m[1][0]===gi){let t=await Fi(e,n,m,a);m[2]=t,c=Math.min(c,t+1)}else m[1][0]>=U&&(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=zi(e,i,u,r[0],Li(u,m,i[2]),r[7]);i[2]?.length&&(i[3]=Li(i[2],void 0,void 0,h.then(e=>vi(e)?0:pi(n).length,()=>0))),o=await h}catch(t){if(Ii(e,i),t===a&&a.aborted)return _i;throw t}return vi(o)?o:Bi(e,o,a,r[6]===n.length?r[6]:0)}function Hi(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=bi(e,o),u=s||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(()=>Hi(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 Ui(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 Wi(e,t){let n=e._pending;if(!n)return;clearTimeout(n[3]);let r=n[2]-Date.now();if(!n[4]||r<=0||!pi(t[3]).some(e=>e.id===n[1]))return;let i;try{await yi(new Promise(e=>{i=setTimeout(e,r)}),t[0].signal)}catch{}clearTimeout(i)}function Gi(e,t){e._committed=t,e.stores.setMatches(t)}function Ki(e,t,n,r){let i=e._committed,a=e._lifecycleEnd,o=e._cache;for(let e of n)e.preload=!1,r&&(e._assetEnd=void 0);let s=pi(n).length,c=new Map;{let t=Date.now(),r=new Set;for(let e=0;e<n.length;e++){let t=n[e];(e<s||t.status===`success`)&&r.add(t.id)}for(let n of[...i,...o.values()]){if(n.status!==`success`||r.has(n.id))continue;let i=bi(e,n);!i.options.loader||t-n.updatedAt>=(n.preload?i.options.preloadGcTime??e.options.defaultPreloadGcTime??3e5:i.options.gcTime??e.options.defaultGcTime??3e5)||c.set(n.id,o.get(n.id)===n?n:{...n,_flight:void 0,isFetching:!1,context:{}})}}t[3]=[],e._cache=c;let l=e._lifecycleEnd=Xr(n);Gi(e,n),W(e,[...o.values(),...i].filter(e=>e._flight&&c.get(e.id)!==e),n),Zr(e,i,n,a,l,t)}async function qi(e,t){let n=e._tx;for(;n&&n!==t;)t=n,await n[5],n=e._tx}function Ji(e,t,n){let r=n[1].options,i=n[2];if(!i)return e.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return e.navigate({href:(i.maskedLocation??i).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});i._redirects=t[1]+1,e._pendingLocation=i;let a=e.commitLocation({...i,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{e._pendingLocation===i&&(e._pendingLocation=void 0)}),a}async function Yi(e,t,n,r,i){let a=n.map(e=>({...e}));Di(a);for(let t of r)Ei(e,a[t[0]]),a[t[0]]=t[3];let o=[t[2],a],s;try{s=await zi(e,o,r,t[0],i)}catch(t){throw W(e,a),t}if(vi(s))W(e,a),s[0]===U&&e._tx===t&&e._committed===n&&await Ji(e,t,s);else if(await Bi(e,s,t[0].signal),e._tx!==t||e._committed!==n)W(e,a);else{for(let t of a){let n=e._cache.get(t.id);n?._flight&&n._flight===t._flight&&(e._cache.delete(t.id),Ei(e,n))}Gi(e,a),W(e,n,a)}}async function Xi(e,t,n,r,i,a){let o=await Vi(e,t[2],t[3],[t[0],t[1],e._committed,void 0,i,n,a,r]);if(vi(o)){let n=o[0]===U&&e._tx===t;if((!n||o[1].options.reloadDocument)&&Ui(e,t),W(e,t[3]),t[3]=[],!n)return;if(e._tx!==t){Ui(e,t);return}await Ji(e,t,o);return}let s=o[1];if(e._tx===t&&await Wi(e,t),e._tx!==t){Ui(e,t),W(e,s),Ii(e,o);return}let c=t[2],l=Jr(c,e.stores.resolvedLocation.get()),u=o[2];await e.startViewTransition(async()=>{if(e._tx===t&&await Wi(e,t),e._tx!==t){Ui(e,t),W(e,s),Ii(e,o);return}let n=await e.startTransition(()=>{Ui(e,t),Ki(e,t,s,a),e._tx===t&&(e.emit({type:`onLoad`,...l}),e._tx===t&&e.emit({type:`onBeforeRouteMount`,...l}))},s);e._tx===t?(u?.length&&Yi(e,t,s,u,o[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)):Ii(e,o)})}async function Zi(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){let t=Jr(a,r);e.emit({type:`onBeforeNavigate`,...t}),u.signal.aborted||e.emit({type:`onBeforeLoad`,...t})}if(u.signal.aborted){await qi(e,n);return}let f=i.href===a.href,p=u,m=e.matchRoutes(a,{_controller:u});Di(m);let h=l?c[1](m):void 0;if(h?p=l:l?.abort(),u.signal.aborted){W(e,m),await qi(e,n);return}e._preflight=void 0;let g,_=()=>Xi(e,y,f,()=>Hi(e,y),t?.sync,h),v=t?.sync?new Promise(e=>g=e):Promise.resolve().then(_),y=[p,s,a,m,Date.now(),v.then(()=>qi(e,y))];if(e._tx=y,n){for(let t of e.stores.matches.get()){if(e._tx!==y)break;t.isFetching&&Oi(e,t,!1)}n[0].abort(),W(e,n[3],y[3],!0)}e._tx===y?(e.batch(()=>{e.stores.status.set(`pending`),e.stores.location.set(a)}),(h||!e._committed.length&&m[0]?.status!==`success`&&!m.some(e=>e._notFound))&&Hi(e,y),g?.(_()),await y[5]):(W(e,y[3]),y[3]=[],g?.(),await qi(e,y))}async function Qi(e,t){let n=e.buildLocation(t);for(let t=0;;t++){let r=e._committed,i=new AbortController,a,o,s;try{try{a=e.matchRoutes(n,{_controller:i}),Di(a),o=(e._preloads??=new Map).set(i,a),s=await Vi(e,n,a,[i,t,r,!0])}finally{o&&(o=o.delete(i),W(e,a)),i.abort()}if(!vi(s))return s[1];if(!o||s.length<3)return;n=s[2]}catch(e){Ln(e)||console.error(e);return}}}var $i=`Error preloading route! ☝️`,ea=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,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Rn:this.parentRoute||Tn();let r=n?Rn:t?.path;r&&r!==`/`&&(r=Dn(r));let i=t?.id||r,a=n?Rn:En((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(i??``));r===`__root__`&&(r=`/`);let o=a===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:En(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=a,this._fullPath=o,this._to=On(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=>zn({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.`)}},ta=class{constructor({id:e}){this.notFound=e=>In({routeId:this.id,...e}),this.redirect=e=>zn({from:this.id,...e}),this.id=e}},na=class extends ea{constructor(e){super(e)}},G=e(a(),1);function ra(e,t){let n=e.stores.location,r=new Set,i,a,o=n=>{mi(e,t,n)||(i=n,r.forEach(e=>e()))};return[()=>i??n.get(),e=>(r.size||(i=n.get(),a=n.subscribe(o).unsubscribe),r.add(e),()=>{r.delete(e),r.size||(a(),i=void 0)})]}var ia=G.createContext(void 0),aa=G.createContext(void 0),oa=G.createContext(null);function K(e){return G.useContext(oa)}var q=r();function sa(...e){let t=G.useRef(e),n=t.current;return e.forEach((e,t)=>{pn(n[t],e,!1,!0)||(n[t]=e)}),t.current}function ca(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn($i)})}function la(e,t){let n=typeof e==`string`&&yn(e);if(n)return t.has(n)?e:null}function ua(e,t,n,r){let i=An(e.pathname,r),a=An(t.pathname,r);return(n?.exact?i!==a:!i.startsWith(a)||i.length!==a.length&&i[a.length]!==`/`)||(n?.includeSearch??!0)&&!pn(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||e.hash===t.hash}function da(e,t,n){let r=K(),i=G.useRef(null),a=G.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:o,to:s,preload:c,preloadDelay:l,disabled:u,target:d,onClick:f,onBlur:p,onFocus:m,onMouseEnter:h,onMouseLeave:g,onTouchStart:_}=e,[v,y,b]=sa(e.search,e.params,o),x=G.useContext(ia),S=(r.stores._linkScopes??={})[x]??=ra(r,x),[C,w,T]=G.useMemo(()=>{let t=la(s,r.protocolAllowlist);if(t!==void 0){let n=[t??void 0];return[e,()=>n]}let n={...e},i,a,o,c=()=>{let e=S[0]();if(e!==i){n._fromLocation=e;let t=r.buildLocation(n),o=ya(t,r,u),s=u||o&&!yn(o)?ua(e,t,b,r.basepath):void 0;a&&a[0]===o&&a[1]===s||(a=[o,s]),i=e}return a};return[n,c,b?.includeHash&&(()=>{let e=c();return e[1]?o??=[e[0],!1]:e})]},[r,S,e.from,e.hash,e.href,s,v,y,e.state,e.mask,e.unsafeRelative,b,u]),[ee,te]=G.useSyncExternalStore(S[1],w,T||w),ne=te===void 0&&ee,re=u||ee===void 0,ie=G.useRef(!1),E=e.reloadDocument||ne||re?!1:c??r.options.defaultPreload,D=l??r.options.defaultPreloadDelay??0,O=G.useCallback(e=>{let t=e?.isIntersecting;t??E===`intent`?D?i.t??=setTimeout(()=>{i.t=void 0,ca(r,C)},D):ca(r,C):t===!1&&_a(i)},[r,C,i,E,D]);G.useEffect(()=>{if(!E)return;E===`render`&&!ie.current&&(ie.current=!0,ca(r,C));let e=!0,t;return E===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&O(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),_a(i)}},[r,C,E,O,i]);let k=ha(e,n);if(k.ref=t?a:i,ne)return k.href=ne,k;let ae=t=>{let n=d??t.currentTarget.getAttribute(`target`);re||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||n&&n!==`_self`||t.button!==0||(t.preventDefault(),_a(i),r.navigate({...e,_fromLocation:C._fromLocation}))},A=()=>{E===`intent`&&ca(r,C)},oe=()=>{E===`intent`&&_a(i)};return k.onClick=va(f,ae),k.onBlur=va(p,oe),k.onFocus=va(m,O),k.onMouseEnter=va(h,O),k.onMouseLeave=va(g,oe),k.onTouchStart=va(_,A),ga(k,e,te,ee,re,n)}var fa={},pa={className:`active`},ma=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function ha(e,t){let n={};for(let r in e)ma.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function ga(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=on(n?o:s,{})??(n?pa:fa);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var _a=e=>{clearTimeout(e.t),e.t=void 0},va=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function ya(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!xn(i,t.protocolAllowlist))return i}var ba=G.memo(G.forwardRef((e,t)=>{let n=e._asChild||`a`,r=da(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return G.createElement(n,r,i)}),xa);function xa(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!ma.has(r)||!pn(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var Sa=t((e=>{var t=a();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s(function(){a.value=n,a.getSnapshot=t,u(a)&&l({inst:a})},[e,n,t]),o(function(){return u(a)&&l({inst:a}),e(function(){u(a)&&l({inst:a})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Ca=t(((e,t)=>{t.exports=Sa()})),wa=t((e=>{var t=a(),n=Ca();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),a!==void 0&&f.hasValue){var t=f.value;if(a(t,e))return c=t}return c=e}if(t=c,i(s,e))return t;var n=r(e);return a!==void 0&&a(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,a]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Ta=t(((e,t)=>{t.exports=wa()})),Ea=Ta();function Da(e,t){return e===t}function Oa(e,t=e=>e,n){let r=n?.compare??Da,i=(0,G.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,G.useCallback)(()=>e.get(),[e]);return(0,Ea.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function ka({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Aa(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var ja=[],Ma=0,{link:Na,unlink:Pa,propagate:Fa,checkDirty:Ia,shallowPropagate:La}=ka({update(e){return e._update()},notify(e){ja[za++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Ha(e))}}),Ra=0,za=0,J,Ba=0;function Va(e){try{++Ba,e()}finally{--Ba||Ua()}}function Ha(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Pa(n,e)}function Ua(){if(!(Ba>0)){for(;Ra<za;){let e=ja[Ra];ja[Ra++]=void 0,e.notify()}Ra=0,za=0}}function Wa(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return J!==void 0&&Na(i,J,Ma),i._snapshot},subscribe(e){let t=Aa(e),n={current:!1},r=Ga(()=>{i.get(),n.current?(J=void 0,t.next?.(i._snapshot)):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=J,o=t?.compare??Object.is;if(n)J=i,++Ma,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{J=a,n&&(i.flags&=-5),Ha(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Ia(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&La(e)}}else e&32&&(i.flags=e&-33);return J!==void 0&&Na(i,J,Ma),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Fa(e),La(e),Ua())}},i}function Ga(e){let t=()=>{let t=J;J=n,++Ma,n.depsTail=void 0,n.flags=6;try{return e()}finally{J=t,n.flags&=-5,Ha(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Ia(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Ha(this)}};return t(),n}var Ka={};function qa(e,t){let n=G.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=dn(n.current,i):i}}function Ja(e){let t=K(),n=G.useContext(e.from?aa:ia),r=e.from??n,i=t.stores.getMatchStore(r),a=qa(e,t),o=Oa(i,e=>e?a(e):Ka);if(o!==Ka)return o;(e.shouldThrow??!0)&&Tn()}function Ya(e){return Ja({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function Xa(e){let{select:t,...n}=e;return Ja({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Za(e){return Ja({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function Qa(e){return Ja({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var $a=G.use,eo=G.useLayoutEffect;function to(e){let t=K();return G.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function no(e){return Ja({...e,select:t=>e.select?e.select(t.context):t.context})}function ro(e){return new io({id:e})}var io=class extends ta{constructor({id:e}){super({id:e}),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id,strict:!1}),this.useLoaderData=e=>Ya({...e,from:this.id,strict:!1}),this.useNavigate=()=>to({from:K().routesById[this.id].fullPath}),this.notFound=e=>In({routeId:this.id,...e}),this.Link=G.forwardRef((e,t)=>{let n=K().routesById[this.id].fullPath;return(0,q.jsx)(ba,{ref:t,from:n,...e})})}},ao=class extends ea{constructor(e){super(e),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id}),this.useLoaderData=e=>Ya({...e,from:this.id}),this.useNavigate=()=>to({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,q.jsx)(ba,{ref:t,from:this.fullPath,...e}))}};function oo(e){return new ao(e)}var so=class extends na{constructor(e){super(e),this.useMatch=e=>Ja({...e,from:this.id}),this.useRouteContext=e=>no({...e,from:this.id}),this.useSearch=e=>Qa({...e,from:this.id}),this.useParams=e=>Za({...e,from:this.id}),this.useLoaderDeps=e=>Xa({...e,from:this.id}),this.useLoaderData=e=>Ya({...e,from:this.id}),this.useNavigate=()=>to({from:this.fullPath}),this.Link=G.forwardRef((e,t)=>(0,q.jsx)(ba,{ref:t,from:this.fullPath,...e}))}};function co(e){return new so(e)}function lo(e){return e=>{let t=oo(e);return t.isRoot=!1,t}}function uo(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(mn(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if($a)$a(a());else throw a()}return G.createElement(r,e)};return o.preload=a,o}var fo=e=>({createMutableStore:Wa,createReadonlyStore:Wa,batch:Va}),po=e=>new mo(e),mo=class extends Qr{constructor(e){super(e,fo)}},ho=class extends G.Component{constructor(...e){super(...e),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:0}:{resetKey:n}}static getDerivedStateFromError(e){return{error:[e]}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?G.createElement(this.props.errorComponent??go,{error:e[0],reset:this.reset}):this.props.children}};function go({error:e}){let[t,n]=G.useState(!1);return(0,q.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,q.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,q.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,q.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,q.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,q.jsx)(`div`,{children:(0,q.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e?.message?(0,q.jsx)(`code`,{children:e.message}):null})}):null]})}function _o(e,t){let n=e[1];e.length=0,n?.(t)}function vo({t:e}){let t=K(),n=t._rendered??=[];return t.startTransition=(r,i)=>new Promise(a=>{_o(n,!1),n.push(i,a),e(t),G.startTransition(r)}),eo(()=>{let e=t.history.subscribe(t.load);t.updateLatestLocation();let r=t.latestLocation,i=t.buildLocation({to:r.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(On(r.publicHref)!==On(i.publicHref))return t.commitLocation({...i,replace:!0,ignoreBlocker:!0}),e;let a=t.stores.resolvedLocation.get();return a?.href===r.href&&a.state.__TSR_key===r.state.__TSR_key?n.push(t.stores.matches.get(),e=>{e&&t.emit({type:`onRendered`,...Jr(a,a)})}):t._tx||t.load({sync:!0}).catch(console.error),e},[t,t.history]),null}var yo=()=>!0,bo=()=>!1;function xo({children:e,fallback:t=null}){return(0,q.jsx)(G.Fragment,{children:So()?e:t})}function So(e=!0){return G.useSyncExternalStore(Co,yo,e?bo:yo)}function Co(){return()=>{}}function wo(e){let t=K(),n=`not-found-${Oa(t.stores.location,e=>e.pathname)}-${Oa(t.stores.status)}`;return(0,q.jsx)(ho,{getResetKey:()=>n,onCatch:(t,n)=>{if(Ln(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Ln(t))return e.fallback?.(t);throw t},children:e.children})}function To(){return(0,q.jsx)(`p`,{children:`Not Found`})}function Eo(e,t,n){return t.options.notFoundComponent?(0,q.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,q.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,q.jsx)(To,{})}function Do(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,q.jsx)(n,{}):null}var Oo=(e,t)=>e[0]===t[0]&&e[1]===t[1],ko=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,Ao=G.memo(function({routeId:e}){let t=K();return jo(t,Oa(t.stores.getMatchStore(e)))});function jo(e,t){let n=e.routesById[t.routeId],r=Do(e,n),i=n.options.errorComponent??e.options.defaultErrorComponent,a=n.options.onCatch??e.options.defaultOnCatch,o=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,s=t.ssr===!1||t.ssr===`data-only`,c=ko(e,n,t.ssr)&&(n.options.wrapInSuspense??r??(n.options.errorComponent?.preload||s)),l=(0,q.jsx)(Mo,{match:t});s&&(l=(0,q.jsx)(xo,{fallback:r,children:l})),o&&(l=(0,q.jsx)(wo,{fallback:e=>{if(e.routeId??=t.routeId,e.routeId!==t.routeId)throw e;return G.createElement(o,e)},children:l})),i&&(l=(0,q.jsx)(ho,{getResetKey:()=>t,errorComponent:i,onCatch:(e,n)=>{if(Ln(e))throw e.routeId??=t.routeId,e;a?.(e,n)},children:l})),c&&(l=(0,q.jsx)(G.Suspense,{fallback:r,children:l}));let u=n.isRoot&&n.options.shellComponent;return u?(0,q.jsx)(ia.Provider,{value:t.routeId,children:(0,q.jsxs)(u,{children:[l,null]})}):(0,q.jsxs)(ia.Provider,{value:t.routeId,children:[l,null]})}var Mo=G.memo(function({match:e}){let t=K(),n=e.routeId,r=t.routesById[n],i=G.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),a=G.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,q.jsx)(e,{},i):(0,q.jsx)(No,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!ko(t,r,e.ssr))return a;if(t._tx)throw t._tx[5];return Do(t,r)}if(e.status===`notFound`)return Eo(t,r,e.error);if(e.status===`error`)throw e.error;return a}),No=G.memo(function(){let e=K(),t=G.useContext(ia),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=Oa(a,e=>[!!e._notFound,e.error],{compare:Oo}),i=Oa(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return Eo(e,e.routesById[t],r);if(!i)return null;let a=(0,q.jsx)(Ao,{routeId:i});return t===`__root__`?(0,q.jsx)(G.Suspense,{fallback:Do(e),children:a}):a});function Po(){let e=K(),t=e.routesById[Rn],n=Do(e,t),r=(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(vo,{t:G.useState()[1]}),e.ssr?(0,q.jsx)(Fo,{}):(0,q.jsx)(G.Suspense,{fallback:n,children:(0,q.jsx)(Fo,{})})]});return e.options.InnerWrap?(0,q.jsx)(e.options.InnerWrap,{children:r}):r}function Fo(){let e=K(),t=e._rendered,n=Oa(e.stores.matches,e=>t[0]??e),r=n[0],i=r?.routeId;eo(()=>{t[0]===n&&_o(t,!0)},[t,n]);let a=i?(0,q.jsx)(Ao,{routeId:i}):null;return e.options.disableGlobalCatchBoundary?a:(0,q.jsx)(ho,{getResetKey:()=>r,onCatch:void 0,children:a})}function Io({router:e,children:t,...n}){cn(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,q.jsx)(oa.Provider,{value:e,children:t});return e.options.Wrap?(0,q.jsx)(e.options.Wrap,{children:r}):r}function Lo({router:e,...t}){return(0,q.jsx)(Io,{router:e,...t,children:(0,q.jsx)(Po,{})})}var Ro=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),zo=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(Ro);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});zo.displayName=`IconBase`;var Bo=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Vo=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Bo}));Vo.displayName=`ArrowClockwiseIcon`;var Ho=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222.14,105.85l-80-80a20,20,0,0,0-28.28,0l-80,80A19.86,19.86,0,0,0,28,120v96a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V164h24v52a12,12,0,0,0,12,12h64a12,12,0,0,0,12-12V120A19.86,19.86,0,0,0,222.14,105.85ZM204,204H164V152a12,12,0,0,0-12-12H104a12,12,0,0,0-12,12v52H52V121.65l76-76,76,76Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,120v96H152V152H104v64H40V120a8,8,0,0,1,2.34-5.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,216,120Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,120v96a8,8,0,0,1-8,8H160a8,8,0,0,1-8-8V164a4,4,0,0,0-4-4H108a4,4,0,0,0-4,4v52a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V120a16,16,0,0,1,4.69-11.31l80-80a16,16,0,0,1,22.62,0l80,80A16,16,0,0,1,224,120Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M217.9,110.1l-80-80a14,14,0,0,0-19.8,0l-80,80A13.92,13.92,0,0,0,34,120v96a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V158h36v58a6,6,0,0,0,6,6h64a6,6,0,0,0,6-6V120A13.92,13.92,0,0,0,217.9,110.1ZM210,210H158V152a6,6,0,0,0-6-6H104a6,6,0,0,0-6,6v58H46V120a2,2,0,0,1,.58-1.42l80-80a2,2,0,0,1,2.84,0l80,80A2,2,0,0,1,210,120Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216.49,111.51l-80-80a12,12,0,0,0-17,0l-80,80A12,12,0,0,0,36,120v96a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V156h40v60a4,4,0,0,0,4,4h64a4,4,0,0,0,4-4V120A12,12,0,0,0,216.49,111.51ZM212,212H156V152a4,4,0,0,0-4-4H104a4,4,0,0,0-4,4v60H44V120a4,4,0,0,1,1.17-2.83l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,212,120Z`}))]]),Uo=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Ho}));Uo.displayName=`HouseIcon`;var Wo=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,76H180V56A52,52,0,0,0,76,56V76H48A20,20,0,0,0,28,96V208a20,20,0,0,0,20,20H208a20,20,0,0,0,20-20V96A20,20,0,0,0,208,76ZM100,56a28,28,0,0,1,56,0V76H100ZM204,204H52V100H204Zm-60-52a16,16,0,1,1-16-16A16,16,0,0,1,144,152Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,96V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V96a8,8,0,0,1,8-8H208A8,8,0,0,1,216,96Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80Zm-80,84a12,12,0,1,1,12-12A12,12,0,0,1,128,164Zm32-84H96V56a32,32,0,0,1,64,0Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,82H174V56a46,46,0,0,0-92,0V82H48A14,14,0,0,0,34,96V208a14,14,0,0,0,14,14H208a14,14,0,0,0,14-14V96A14,14,0,0,0,208,82ZM94,56a34,34,0,0,1,68,0V82H94ZM210,208a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V96a2,2,0,0,1,2-2H208a2,2,0,0,1,2,2Zm-72-56a10,10,0,1,1-10-10A10,10,0,0,1,138,152Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,84H172V56a44,44,0,0,0-88,0V84H48A12,12,0,0,0,36,96V208a12,12,0,0,0,12,12H208a12,12,0,0,0,12-12V96A12,12,0,0,0,208,84ZM92,56a36,36,0,0,1,72,0V84H92ZM212,208a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V96a4,4,0,0,1,4-4H208a4,4,0,0,1,4,4Zm-76-56a8,8,0,1,1-8-8A8,8,0,0,1,136,152Z`}))]]),Go=G.forwardRef((e,t)=>G.createElement(zo,{ref:t,...e,weights:Wo}));Go.displayName=`LockIcon`;function Ko(){return typeof window<`u`}function qo(e){return Xo(e)?(e.nodeName||``).toLowerCase():`#document`}function Jo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yo(e){return((Xo(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Xo(e){return Ko()?e instanceof Node||e instanceof Jo(e).Node:!1}function Zo(e){return Ko()?e instanceof Element||e instanceof Jo(e).Element:!1}function Qo(e){return Ko()?e instanceof HTMLElement||e instanceof Jo(e).HTMLElement:!1}function $o(e){return!Ko()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Jo(e).ShadowRoot}function es(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ds(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ts(e){return/^(table|td|th)$/.test(qo(e))}function ns(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var rs=/transform|translate|scale|rotate|perspective|filter/,is=/paint|layout|strict|content/,as=e=>!!e&&e!==`none`,os;function ss(e){let t=Zo(e)?ds(e):e;return as(t.transform)||as(t.translate)||as(t.scale)||as(t.rotate)||as(t.perspective)||!ls()&&(as(t.backdropFilter)||as(t.filter))||rs.test(t.willChange||``)||is.test(t.contain||``)}function cs(e){let t=ps(e);for(;Qo(t)&&!us(t);){if(ss(t))return t;if(ns(t))return null;t=ps(t)}return null}function ls(){return os??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),os}function us(e){return/^(html|body|#document)$/.test(qo(e))}function ds(e){return Jo(e).getComputedStyle(e)}function fs(e){return Zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ps(e){if(qo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||$o(e)&&e.host||Yo(e);return $o(t)?t.host:t}function ms(e){let t=ps(e);return us(t)?(e.ownerDocument||e).body:Qo(t)&&es(t)?t:ms(t)}function hs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ms(e),i=r===e.ownerDocument?.body,a=Jo(r);if(i){let e=gs(a);return t.concat(a,a.visualViewport||[],es(r)?r:[],e&&n?hs(e):[])}return t.concat(r,hs(r,[],n))}function gs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var _s={...G},vs={};function ys(e,t){let n=G.useRef(vs);return n.current===vs&&(n.current=e(t)),n}var bs=_s.useInsertionEffect,xs=bs&&bs!==_s.useLayoutEffect?bs:e=>e();function Ss(e){let t=ys(Cs).current;return t.next=e,xs(t.effect),t.trampoline}function Cs(){let e={next:void 0,callback:ws,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function ws(){}var Ts=typeof document<`u`?G.useLayoutEffect:()=>{};function Es(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var Ds={};function Os(e,t,n,r,i){if(!n&&!r&&!i&&!e)return As(t);let a=As(e);return t&&(a=js(a,t)),n&&(a=js(a,n)),r&&(a=js(a,r)),i&&(a=js(a,i)),a}function ks(e){if(e.length===0)return Ds;if(e.length===1)return As(e[0]);let t=As(e[0]);for(let n=1;n<e.length;n+=1)t=js(t,e[n]);return t}function As(e){return Fs(e)?{...e(Ds)}:Ms(e)}function js(e,t){return Fs(t)?t(e):Ns(e,t)}function Ms(e){let t={...e};for(let e in t){let n=t[e];Ps(e,n)&&(t[e]=Ls(n))}return t}function Ns(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Es(e.style,r);break;case`className`:e[n]=zs(e.className,r);break;default:e[n]=Ps(n,r)?Is(e[n],r):r}}return e}function Ps(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Fs(e){return typeof e==`function`}function Is(e,t){return t?e?(...n)=>{let r=n[0];if(Bs(r)){let i=r;Rs(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:Ls(t):e}function Ls(e){return e&&((...t)=>{let n=t[0];return Bs(n)&&Rs(n),e(...t)})}function Rs(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function zs(e,t){return t?e?t+` `+e:t:e}function Bs(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Vs(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Hs=Vs(`https://base-ui.com/production-error`,`Base UI`),Us=G.createContext(void 0);function Ws(e=!1){let t=G.useContext(Us);if(t===void 0&&!e)throw Error(Hs(16));return t}function Gs(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:G.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Ks(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Jo(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function qs(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=G.useRef(null),s=Ws(!0),c=a??s!==void 0,{props:l}=Gs({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=G.useCallback(()=>{let e=o.current;Js(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return Ts(u,[u]),{getButtonProps:G.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Os({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(Rs(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Js(r),s=!i&&Ys(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Ks(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Ks(r,e)))},onKeyUp(e){t||(Rs(e),a?.(e),e.target===e.currentTarget&&i&&c&&Js(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target!==e.currentTarget||i||c||e.defaultPrevented||e.key!==` `||(e.preventBaseUIHandler(),Ks(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:Ss(e=>{o.current=e,u()})}}function Js(e){return Qo(e)&&e.tagName===`BUTTON`}function Ys(e){return Qo(e)&&e.tagName===`A`&&!!e.href}function Xs(e,t,n,r){let i=ys(Qs).current;return $s(i,e,t,n,r)&&tc(i,[e,t,n,r]),i.callback}function Zs(e){let t=ys(Qs).current;return ec(t,e)&&tc(t,e),t.callback}function Qs(){return{callback:null,cleanup:null,refs:[]}}function $s(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function ec(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function tc(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var nc=19;function rc(e){return nc>=e}function ic(e){if(!G.isValidElement(e))return null;let t=e,n=t.props;return(rc(19)?n?.ref:t.ref)??null}function ac(){}var oc=Object.freeze([]),sc=Object.freeze({});function cc(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function lc(e,t){return typeof e==`function`?e(t):e}function uc(e,t){return typeof e==`function`?e(t):e}function dc(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=hc(r));let i=fc(t,n,r);if(n.enabled===!1)return null;let a=n.state??sc;return gc(e,r,i,a)}function fc(e,t,n){let{className:r,style:i}=e,{state:a=sc,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?lc(r,a):void 0,d=l?uc(i,a):void 0,f=l?cc(a,c):sc,p=l&&s?pc(s):void 0,m=l?Es(f,p)??{}:sc;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Zs([m.ref,ic(n),...o]):Xs(m.ref,ic(n),o):Xs(null,null)),l?(u!==void 0&&(m.className=zs(m.className,u)),d!==void 0&&(m.style=Es(m.style,d)),m):sc}function pc(e){return Array.isArray(e)?ks(e):Os(void 0,e)}var mc=Symbol.for(`react.lazy`);function hc(e){if(e?.$$typeof!==mc)return e;let t=G.Children.toArray(e)[0];return G.isValidElement(t)?t:e}function gc(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Os(n,t.props);return e.ref=n.ref,G.cloneElement(t,e)}return _c(e,n)}function _c(e,t){return e===`button`?(0,G.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,G.createElement)(`img`,{alt:``,...t,key:t.key}):G.createElement(e,t)}var vc=G.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=qs({disabled:i,focusableWhenDisabled:a,native:o});return dc(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),yc=n(),bc=i();function xc(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=xc(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Sc(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xc(e))&&(r&&(r+=` `),r+=t);return r}var Cc=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,wc=Sc,Tc=(e,t)=>n=>{if(t?.variants==null)return wc(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Cc(t)||Cc(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return wc(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Ec=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Dc=(e,t)=>({classGroupId:e,validator:t}),Oc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kc=`-`,Ac=[],jc=`arbitrary..`,Mc=e=>{let t=Fc(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Pc(e);let n=e.split(kc);return Nc(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Ec(i,t):t:i||Ac}return n[e]||Ac}}},Nc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Nc(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(kc):e.slice(t).join(kc),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Pc=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?jc+r:void 0})(),Fc=e=>{let{theme:t,classGroups:n}=e;return Ic(n,t)},Ic=(e,t)=>{let n=Oc();for(let r in e){let i=e[r];Lc(i,n,r,t)}return n},Lc=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Rc(i,t,n,r)}},Rc=(e,t,n,r)=>{typeof e==`string`?zc(e,t,n):typeof e==`function`?Bc(e,t,n,r):Vc(e,t,n,r)},zc=(e,t,n)=>{let r=e===``?t:Hc(t,e);r.classGroupId=n},Bc=(e,t,n,r)=>{Uc(e)?Lc(e(r),t,n,r):(t.validators===null&&(t.validators=[]),t.validators.push(Dc(n,e)))},Vc=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Lc(o,Hc(t,a),n,r)}},Hc=(e,t)=>{let n=e,r=t.split(kc),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Oc(),n.nextPart.set(t,i)),n=i}return n},Uc=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Wc=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Gc=`!`,Kc=`:`,qc=[],Jc=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Yc=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Kc){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Gc)?(c=s.slice(0,-1),l=!0):s.startsWith(Gc)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Jc(t,l,c,u)};if(t){let e=t+Kc,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Jc(qc,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Xc=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Zc=e=>({cache:Wc(e.cacheSize),parseClassName:Yc(e),sortModifiers:Xc(e),postfixLookupClassGroupIds:Qc(e),...Mc(e)}),Qc=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},$c=/\s+/,el=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split($c),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h||(g=r(p),!g)){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Gc:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},tl=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=nl(n))&&(i&&(i+=` `),i+=r);return i},nl=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=nl(e[r]))&&(n&&(n+=` `),n+=t);return n},rl=(e,...t)=>{let n,r,i,a,o=o=>(n=Zc(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=el(e,n);return i(e,a),a};return a=o,(...e)=>a(tl(...e))},il=[],Y=e=>{let t=t=>t[e]||il;return t.isThemeGetter=!0,t.themeKey=e,t},al=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ol=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sl=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,cl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ll=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ul=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,dl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fl=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pl=e=>sl.test(e),X=e=>!!e&&!Number.isNaN(Number(e)),ml=e=>!!e&&Number.isInteger(Number(e)),hl=e=>e.endsWith(`%`)&&X(e.slice(0,-1)),gl=e=>cl.test(e),_l=()=>!0,vl=e=>ll.test(e)&&!ul.test(e),yl=()=>!1,bl=e=>dl.test(e),xl=e=>fl.test(e),Sl=e=>!Z(e)&&!Q(e),Cl=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),wl=e=>zl(e,Ul,yl),Z=e=>al.test(e),Tl=e=>zl(e,Wl,vl),El=e=>zl(e,Gl,X),Dl=e=>zl(e,ql,_l),Ol=e=>zl(e,Kl,yl),kl=e=>zl(e,Vl,yl),Al=e=>zl(e,Hl,xl),jl=e=>zl(e,Jl,bl),Q=e=>ol.test(e),Ml=e=>Bl(e,Wl),Nl=e=>Bl(e,Kl),Pl=e=>Bl(e,Vl),Fl=e=>Bl(e,Ul),Il=e=>Bl(e,Hl),Ll=e=>Bl(e,Jl,!0),Rl=e=>Bl(e,ql,!0),zl=(e,t,n)=>{let r=al.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Bl=(e,t,n=!1)=>{let r=ol.exec(e);return r?r[1]?t(r[1]):n:!1},Vl=e=>e===`position`||e===`percentage`,Hl=e=>e===`image`||e===`url`,Ul=e=>e===`length`||e===`size`||e===`bg-size`,Wl=e=>e===`length`,Gl=e=>e===`number`,Kl=e=>e===`family-name`,ql=e=>e===`number`||e===`weight`,Jl=e=>e===`shadow`,Yl=rl(()=>{let e=Y(`color`),t=Y(`font`),n=Y(`text`),r=Y(`font-weight`),i=Y(`tracking`),a=Y(`leading`),o=Y(`breakpoint`),s=Y(`container`),c=Y(`spacing`),l=Y(`radius`),u=Y(`shadow`),d=Y(`inset-shadow`),f=Y(`text-shadow`),p=Y(`drop-shadow`),m=Y(`blur`),h=Y(`perspective`),g=Y(`aspect`),_=Y(`ease`),v=Y(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),Q,Z],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[Q,Z,c],T=()=>[pl,`full`,`auto`,...w()],ee=()=>[ml,`none`,`subgrid`,Q,Z],te=()=>[`auto`,{span:[`full`,ml,Q,Z]},ml,Q,Z],ne=()=>[ml,`auto`,Q,Z],re=()=>[`auto`,`min`,`max`,`fr`,Q,Z],ie=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],E=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],D=()=>[`auto`,...w()],O=()=>[pl,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],k=()=>[s,pl,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ae=()=>[pl,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],A=()=>[e,Q,Z],oe=()=>[...b(),Pl,kl,{position:[Q,Z]}],se=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ce=()=>[`auto`,`cover`,`contain`,Fl,wl,{size:[Q,Z]}],le=()=>[hl,Ml,Tl],j=()=>[``,`none`,`full`,l,Q,Z],M=()=>[``,X,Ml,Tl],ue=()=>[`solid`,`dashed`,`dotted`,`double`],N=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],P=()=>[X,hl,Pl,kl],F=()=>[``,`none`,m,Q,Z],de=()=>[`none`,X,Q,Z],fe=()=>[`none`,X,Q,Z],pe=()=>[X,Q,Z],me=()=>[pl,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[gl],breakpoint:[gl],color:[_l],container:[gl],"drop-shadow":[gl],ease:[`in`,`out`,`in-out`],font:[Sl],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[gl],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[gl],shadow:[gl],spacing:[`px`,X],text:[gl],"text-shadow":[gl],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,pl,Z,Q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,Q,Z]}],"container-named":[Cl],columns:[{columns:[X,`auto`,Z,Q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[ml,`auto`,Q,Z]}],basis:[{basis:[pl,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[X,pl,`auto`,`initial`,`none`,Z]}],grow:[{grow:[``,X,Q,Z]}],shrink:[{shrink:[``,X,Q,Z]}],order:[{order:[ml,`first`,`last`,`none`,Q,Z]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...ie(),`normal`]}],"justify-items":[{"justify-items":[...E(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...E()]}],"align-content":[{content:[`normal`,...ie()]}],"align-items":[{items:[...E(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...E(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...E(),`baseline`]}],"place-self":[{"place-self":[`auto`,...E()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:O()}],"inline-size":[{inline:[`auto`,...k()]}],"min-inline-size":[{"min-inline":[`auto`,...k()]}],"max-inline-size":[{"max-inline":[`none`,...k()]}],"block-size":[{block:[`auto`,...ae()]}],"min-block-size":[{"min-block":[`auto`,...ae()]}],"max-block-size":[{"max-block":[`none`,...ae()]}],w:[{w:[s,`screen`,...O()]}],"min-w":[{"min-w":[s,`screen`,`none`,...O()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...O()]}],h:[{h:[`screen`,`lh`,...O()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...O()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...O()]}],"font-size":[{text:[`base`,n,Ml,Tl]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Rl,Dl]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,hl,Z]}],"font-family":[{font:[Nl,Ol,t]}],"font-features":[{"font-features":[Z]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,Q,Z]}],"line-clamp":[{"line-clamp":[X,`none`,Q,El]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,Q,Z]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,Q,Z]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...ue(),`wavy`]}],"text-decoration-thickness":[{decoration:[X,`from-font`,`auto`,Q,Tl]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[X,`auto`,Q,Z]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[ml,Q,Z]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,Q,Z]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,Q,Z]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},ml,Q,Z],radial:[``,Q,Z],conic:[``,ml,Q,Z]},Il,Al]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:le()}],"gradient-via-pos":[{via:le()}],"gradient-to-pos":[{to:le()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":M()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...ue(),`hidden`,`none`]}],"divide-style":[{divide:[...ue(),`hidden`,`none`]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...ue(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[X,Q,Z]}],"outline-w":[{outline:[``,X,Ml,Tl]}],"outline-color":[{outline:A()}],shadow:[{shadow:[``,`inner`,`none`,u,Ll,jl]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":[`none`,d,Ll,jl]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:M()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[X,Tl]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":[`none`,f,Ll,jl]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[X,Q,Z]}],"mix-blend":[{"mix-blend":[...N(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":N()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[X]}],"mask-image-linear-from-pos":[{"mask-linear-from":P()}],"mask-image-linear-to-pos":[{"mask-linear-to":P()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":P()}],"mask-image-t-to-pos":[{"mask-t-to":P()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":P()}],"mask-image-r-to-pos":[{"mask-r-to":P()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":P()}],"mask-image-b-to-pos":[{"mask-b-to":P()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":P()}],"mask-image-l-to-pos":[{"mask-l-to":P()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":P()}],"mask-image-x-to-pos":[{"mask-x-to":P()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":P()}],"mask-image-y-to-pos":[{"mask-y-to":P()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[Q,Z]}],"mask-image-radial-from-pos":[{"mask-radial-from":P()}],"mask-image-radial-to-pos":[{"mask-radial-to":P()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[X]}],"mask-image-conic-from-pos":[{"mask-conic-from":P()}],"mask-image-conic-to-pos":[{"mask-conic-to":P()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,Q,Z]}],filter:[{filter:[``,`none`,Q,Z]}],blur:[{blur:F()}],brightness:[{brightness:[X,Q,Z]}],contrast:[{contrast:[X,Q,Z]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Ll,jl]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:[``,X,Q,Z]}],"hue-rotate":[{"hue-rotate":[X,Q,Z]}],invert:[{invert:[``,X,Q,Z]}],saturate:[{saturate:[X,Q,Z]}],sepia:[{sepia:[``,X,Q,Z]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,Q,Z]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[X,Q,Z]}],"backdrop-contrast":[{"backdrop-contrast":[X,Q,Z]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,X,Q,Z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[X,Q,Z]}],"backdrop-invert":[{"backdrop-invert":[``,X,Q,Z]}],"backdrop-opacity":[{"backdrop-opacity":[X,Q,Z]}],"backdrop-saturate":[{"backdrop-saturate":[X,Q,Z]}],"backdrop-sepia":[{"backdrop-sepia":[``,X,Q,Z]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,Q,Z]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[X,`initial`,Q,Z]}],ease:[{ease:[`linear`,`initial`,_,Q,Z]}],delay:[{delay:[X,Q,Z]}],animate:[{animate:[`none`,v,Q,Z]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,Q,Z]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[Q,Z,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":[`translate-none`],zoom:[{zoom:[ml,Q,Z]}],accent:[{accent:A()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,Q,Z]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":A()}],"scrollbar-track-color":[{"scrollbar-track":A()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,Q,Z]}],fill:[{fill:[`none`,...A()]}],"stroke-w":[{stroke:[X,Ml,Tl,El]}],stroke:[{stroke:[`none`,...A()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function Xl(...e){return Yl(Sc(e))}function Zl(e){let t=(0,yc.c)(3),n,r;return t[0]===e?(n=t[1],r=t[2]):(n=t=>{let n=window.matchMedia(e);return n.addEventListener(`change`,t),()=>n.removeEventListener(`change`,t)},r=()=>window.matchMedia(e).matches,t[0]=e,t[1]=n,t[2]=r),(0,G.useSyncExternalStore)(n,r,Ql)}function Ql(){return!1}var $l=Tc(`group/button inline-flex shrink-0 items-center justify-center rounded-none border border-transparent bg-clip-padding text-xs font-medium whitespace-nowrap outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,bare:`bg-transparent hover:bg-transparent dark:hover:bg-transparent`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-none px-2 text-xs has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-none px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-none [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-none`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function eu(e){let t=(0,yc.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:n,variant:i,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[5]!==n||t[6]!==s||t[7]!==o?(c=Xl($l({variant:o,size:s,className:n})),t[5]=n,t[6]=s,t[7]=o,t[8]=c):c=t[8];let l;return t[9]!==r||t[10]!==c?(l=(0,q.jsx)(vc,{"data-slot":`button`,className:c,...r}),t[9]=r,t[10]=c,t[11]=l):l=t[11],l}function tu(e){let t=(0,yc.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=Xl(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-none border-dashed p-6 text-center text-balance`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,q.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var nu=Tc(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-none bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`,symbol:`mb-0 text-muted-foreground [&_svg]:size-4`}},defaultVariants:{variant:`default`}});function ru(e){let t=(0,yc.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,variant:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o;t[4]!==n||t[5]!==a?(o=Xl(nu({variant:a,className:n})),t[4]=n,t[5]=a,t[6]=o):o=t[6];let s;return t[7]!==r||t[8]!==o||t[9]!==a?(s=(0,q.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[7]=r,t[8]=o,t[9]=a,t[10]=s):s=t[10],s}function iu(e){let t=(0,yc.c)(6),n;t[0]!==e.action||t[1]!==e.icon?(n=e.action??(0,q.jsx)(ru,{"aria-hidden":!0,variant:`symbol`,children:e.icon}),t[0]=e.action,t[1]=e.icon,t[2]=n):n=t[2];let r;return t[3]!==e.label||t[4]!==n?(r=(0,q.jsx)(tu,{role:`status`,"aria-label":e.label,children:n}),t[3]=e.label,t[4]=n,t[5]=r):r=t[5],r}function au(){let e=(0,yc.c)(2),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,q.jsx)(`a`,{href:`/`,"aria-label":`Home`}),e[0]=t):t=e[0];let n;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,q.jsx)(tu,{"aria-label":`Page not found`,children:(0,q.jsxs)(eu,{variant:`outline`,size:`sm`,render:t,nativeButton:!1,children:[(0,q.jsx)(Uo,{}),`Home`]})}),e[1]=n):n=e[1],n}function ou(e){let t=(0,yc.c)(3),n,r;return t[0]===e.href?(n=t[1],r=t[2]):(n=()=>{location.replace(e.href)},r=[e.href],t[0]=e.href,t[1]=n,t[2]=r),(0,G.useEffect)(n,r),null}function su(){let e=(0,yc.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,q.jsx)(iu,{label:`Access denied`,icon:(0,q.jsx)(Go,{weight:`light`})}),e[0]=t):t=e[0],t}function cu(e){let t=(0,yc.c)(4),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,q.jsx)(Vo,{}),t[0]=n):n=t[0];let r=e.label??`Can’t load this view`,i;return t[1]!==e.reset||t[2]!==r?(i=(0,q.jsx)(tu,{role:`alert`,children:(0,q.jsxs)(eu,{variant:`destructive`,size:`sm`,onClick:e.reset,children:[n,r]})}),t[1]=e.reset,t[2]=r,t[3]=i):i=t[3],i}var lu=class extends Vt()(`AuthError`,{cause:kt(u()),error:B(At([`invalid_request`,`invalid_client`,`invalid_client_metadata`,`invalid_redirect_uri`,`invalid_grant`,`invalid_scope`,`unsupported_grant_type`,`unsupported_response_type`,`access_denied`,`authorization_pending`,`expired_token`,`temporarily_unavailable`])),message:N}){},uu=o({id:L,name:L});o({aud:O(`deslop`),azp:L,exp:I,iat:I,iss:L,name:L,sid:L,sub:L}),o({name:N,redirects:ke(L.check(Gt(200))).check(Gt(4))}),o({client_id:L,code:L,code_verifier:L,redirect_uri:L}),o({session:L}),o({access_token:L,expires_in:T,refresh_token:L});var du=N.check($e(e=>Ae(jt(lt(e)),e=>Be([`http:`,`https:`],e.protocol)&&e.username===``&&e.password===``&&e.hash===``),{expected:`an HTTP(S) URL without credentials or a fragment`})).check($e(e=>Ae(jt(lt(e)),e=>e.pathname===`/`&&e.search===``),{expected:`an HTTP(S) origin without a path or query`}));du.check($e(e=>Ae(jt(lt(e)),e=>e.protocol===`https:`||Be([`localhost`,`127.0.0.1`,`[::1]`],e.hostname)),{expected:`HTTPS outside loopback`})),N.check(Ye(/^\d{1,5}$/u),$e(e=>Ae(Lt(e),e=>e>=1&&e<=65535),{expected:`a port between 1 and 65535`}));var fu=N.check(Ye(/^0\.1\.\d+$/u));o({auth:B(du),name:N,traces:N,version:fu});var pu=`/api/rpc`;o({...uu.fields,signOut:nn}),o({config:o({port:I}),name:N,version:fu});var mu=b(ne(M(`AUTH_URL`)),Pt);be(function*(){let e=le(N,`GITHUB_ADMINS`);return(yield*mu)?yield*A(e,[`0`]):yield*e});function hu(e){return`${new URL(e).origin}/auth/sign-in?${new URLSearchParams({next:e})}`}function gu(e){return Ke(lu)(e)&&e.error!==`temporarily_unavailable`&&e.error!==`access_denied`}function _u(e){return Ke(lu)(e)&&e.error!==`temporarily_unavailable`}Kt()(`@deslop/runtime/auth/lib/utils/CurrentUser`);var vu=class extends zt()(`@deslop/runtime/auth/lib/utils/RpcAuth`,{error:lu}){};function yu(e,t,n=v){function r(e){let t=me(e.reasons,e=>gt(e)&&_u(e.error));return ce(t)?Ge():Wt(Dt(t))}let i=ie(h(e.self(),De(pe),R(e=>r(e.cause))));function a(e){return V(ue(i),{onNone:()=>e,onSome:t=>Dt([...t.reasons,...me(e.reasons,e=>!gt(e)||!_u(e.error))])})}let o=ie(0),s=h(t,j(t=>D(()=>{fe(i,e=>mt(r(t),()=>e));let n=a(t);ot(ue(i))?e.setSelf(Qt(n)):S(o)<2||e.setSelf(ze(n,{previous:e.self()}))})));return h(n(s),g(()=>D(()=>{se(i,Ge()),se(o,0)})),tn(e=>ge(a(e))),He(y(()=>V(ue(i),{onNone:()=>Zt,onSome:ge}))))}var bu=ie(Ge()),xu=new WeakSet,Su=Ht(e=>{let t=Ee(`Web error`,Qe(e.error),...Je(s(e.stack)));return V(ue(bu),{onNone:()=>t,onSome:n=>ae(h(t,rn(d(e.error)),je(`Web.error`,{attributes:{"web.error.source":e.source,"web.route.id":e.route},root:!0}),Ce),n)})});function Cu(e){let t=(0,yc.c)(5);if(gu(e.error)){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(ou,{href:hu(location.href)}),t[0]=e):e=t[0],e}if(_u(e.error)){let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,q.jsx)(su,{}),t[1]=e):e=t[1],e}let n;return t[2]!==e.error||t[3]!==e.reset?(n=(0,q.jsx)(cu,{error:e.error,reset:e.reset}),t[2]=e.error,t[3]=e.reset,t[4]=n):n=t[4],n}function wu(e){let t=document.querySelector(`#root`);if(Xt(t))throw TypeError(`Missing application mount element with id "root"`);let n=po({context:{},defaultErrorComponent:Cu,defaultNotFoundComponent:au,defaultPreload:`intent`,routeTree:e,scrollRestoration:!0}),r=et();function i(e,t,i){if(Jt(e)){if(xu.has(e))return;xu.add(e)}r.set(Su,{error:e,route:h(_e(n.state.matches,t=>t.error===e),mt(()=>x(n.state.matches)),R(e=>Le(e.routeId,c)),Bt(()=>`__root__`)),source:t,stack:i})}return n.update({defaultOnCatch:(e,t)=>i(e,`route`,t.componentStack)}),(0,bc.createRoot)(t,{onCaughtError:(e,t)=>i(e,`caught`,t.componentStack),onUncaughtError:(e,t)=>i(e,`uncaught`,t.componentStack)}).render((0,q.jsx)(G.StrictMode,{children:(0,q.jsx)(Lo,{router:n})})),n}function Tu(e){return t=>Bt(Re(e)(t),()=>Tt(e)({}))}function Eu(e){return h(e,ye(e=>h(e(Oe(`1 second`)),Ne(e=>e.input._tag===`RpcClientError`||Ke(lu)(e.input)&&e.input.error===`temporarily_unavailable`))))}function Du(e,t){return yu(e,t,Eu)}var Ou=h(at({pingTimeout:`15 seconds`,retryTransientErrors:!0}),pt(h(It(D(()=>`${location.origin}${pu}`)),pt(Ue))),Ut(Ie())),ku=co({shellComponent:e=>(0,q.jsx)(`div`,{className:`bg-background text-foreground pt-safe-top pr-safe-right pl-safe-left flex h-dvh w-dvw flex-col`,children:e.children})}),Au=class extends Vt()(`TelemetryError`,{cause:kt(u()),message:N}){},ju=h(N,st(Ye(/^[a-fA-F0-9]{32}$/u))),Mu=h(N,st(Ye(/^[a-fA-F0-9]{16}$/u))),$=h(N,st(Ye(/^\d{1,20}$/u))),Nu=o({key:N,value:C}),Pu=Xe(o({attributes:B(F(Nu))}),[C]),Fu=o({attributes:B(F(Nu)),events:B(F(Xe(o({attributes:B(F(Nu)),name:N,timeUnixNano:$}),[C]))),links:B(F(Xe(o({attributes:B(F(Nu)),spanId:Mu,traceId:ju}),[C])))}),Iu=Xe(o({...Fu.fields,endTimeUnixNano:B($),name:B(N),parentSpanId:B(xt([Mu,O(``)])),spanId:Mu,startTimeUnixNano:$,status:B(Xe(o({code:B(I)}),[C])),traceId:ju}),[C]),Lu=Xe(o({attributes:B(F(Nu)),body:B(C),observedTimeUnixNano:B($),severityNumber:B(I),severityText:B(N),spanId:B(xt([Mu,O(``)])),timeUnixNano:$,traceId:B(xt([ju,O(``)]))}),[C]);o({resourceSpans:B(F(Xe(o({resource:B(Pu),schemaUrl:B(N),scopeSpans:B(F(Xe(o({schemaUrl:B(N),scope:B(Pu),spans:B(F(Iu))}),[C])))}),[C])))}),o({resourceLogs:B(F(Xe(o({resource:B(Pu),schemaUrl:B(N),scopeLogs:B(F(Xe(o({logRecords:B(F(Lu)),schemaUrl:B(N),scope:B(Pu)}),[C])))}),[C])))});var Ru=o({durationMs:T,id:L,name:N,payload:C,receivedAt:B(E),resource:Pu,service:N,signal:At([`trace`,`log`]),spanId:N,status:I,time:$,traceId:N}).mapFields(rt([`resource`])),zu=o({errors:nn,from:T,limit:h(I,st(ht({maximum:1e3,minimum:1}))),offset:h(I,st(ht({maximum:1e5,minimum:0}))),operation:N,runs:At([`current`,`all`]),service:N,sort:At([`recent`,`slowest`]),text:N,to:T,traceId:N});o({entries:F(Ru),total:I});var Bu=At([`web`,`mobile`,`server`,`ci`,`unknown`]),Vu=o({name:N,runtime:Bu}),Hu=o({...Vu.fields,entries:E,lastEventAt:$,runStartedAt:$,version:N}),Uu=o({count:E,credential:At([`authorization`,`cookie`,`none`]),lastAt:T,route:At([`/v1/traces`,`/v1/logs`]),status:I});o({rejections:F(Uu),services:F(Hu),since:T});var Wu=o({durationMs:T,errors:I,id:ju,logs:I,operation:N,service:N,services:F(Vu),spans:I,time:$});o({entries:F(Wu),total:I});var Gu=o({durationMs:T,failure:B(o({span:N})),id:ju,time:$}),Ku=o({count:I,failures:I,name:N,p50Ms:T,runtime:Bu,traces:F(Gu)}),qu=o({apps:F(o({name:N,operations:F(Ku)}))});o({count:I,errors:I,from:T,maxMs:T,p50Ms:T,p95Ms:T,to:T});var Ju=o({...Ru.fields,depth:E,logs:F(Ru),offsetMs:T,parentSpanId:N,runtime:Bu}),Yu=o({durationMs:T,failureSpanId:B(N),id:ju,logs:F(Ru),services:F(Vu),spans:F(Ju)}),Xu=o({errors:h(zu.fields.errors,it(Mt(!1)),Ft({description:`Only failed spans and error logs.`})),operation:h(zu.fields.operation,it(Mt(``)),Ft({description:`Exact span name.`})),runs:h(zu.fields.runs,it(Mt(`current`)),Ft({description:`"current" searches the latest process/page load/app launch per service. "all" includes retained earlier runs in the lookback.`})),service:h(zu.fields.service,it(Mt(``)),Ft({description:`Exact service name, from list_services.`})),since:h(xe,st($e(tt,{expected:`a finite duration`})),it(Mt(Pe(10))),Ft({description:`Lookback, such as "10 minutes" or "1 hour".`})),text:h(zu.fields.text,it(Mt(``)),Ft({description:`Case-insensitive text in the span name, log message or attributes.`})),traceId:h(zu.fields.traceId,it(Mt(``)),Ft({description:`Only entries of this trace.`}))});o({...Xu.fields,limit:h(zu.fields.limit,it(Mt(20)),Ft({description:`Page size, 1 to 1000.`})),offset:h(zu.fields.offset,it(Mt(0)),Ft({description:`Entries to skip, for the next page.`})),sort:h(zu.fields.sort,it(Mt(`recent`)),Ft({description:`"recent" puts the newest first, "slowest" the longest first.`}))});var Zu=class extends vt(St(`scope.overview`,{error:xt([lu,Au]),stream:!0,success:qu}),St(`scope.trace`,{error:xt([lu,Au]),payload:o({id:ju}),success:Yu})).middleware(vu){},Qu={Span:`Trace`,Trace:`Traces`},$u=[`http.request.method`,`http.response.status_code`,`server.address`,`server.port`,`url.full`,`url.path`,`url.scheme`],ed=At([`Traces`,`Trace`,`Span`]),td=F(o({key:N,value:we})),nd=Me(N,we),rd=class extends Nt()(`@deslop/scope/lib/utils/RpcClient`,{group:Zu,protocol:Ou}){},id=o({app:N,name:Ku.fields.name,runtime:Ku.fields.runtime});o({operation:id,spanId:B(N),traceId:B(N)});var ad=o({operation:B(N),pane:B(ed),side:B(Ku.fields.runtime),source:B(N),span:B(N),trace:B(N)});function od(e){return{path:e.pane??`Operations`,selection:bt(wt(z(e.side),t=>({operation:{app:e.source??``,name:e.operation??``,runtime:t},...V(z(e.trace),{onNone:()=>({}),onSome:e=>({traceId:e})}),...V(z(e.span),{onNone:()=>({}),onSome:e=>({spanId:e})})})))}}function sd(e,t){return{operation:e.operation.name,side:e.operation.runtime,source:e.operation.app,...V(z(t),{onNone:()=>({}),onSome:e=>({pane:e})}),...V(z(e.traceId),{onNone:()=>({}),onSome:e=>({trace:e})}),...V(z(e.spanId),{onNone:()=>({}),onSome:e=>({span:e})})}}function cd(e,t){return e.source===t?e:{...rt(e,[`operation`,`pane`,`side`,`span`,`trace`]),source:t}}function ld(e,t){return t._tag===`Source`?cd(e,t.app):t._tag===`Operation`?sd({operation:t.operation},`Traces`):t._tag===`Trace`?sd(t.selection,`Trace`):t._tag===`Span`?sd(t.selection,`Span`):V(R(z(e.pane),e=>Te(Qu,e)),{onNone:()=>rt(e,[`pane`]),onSome:t=>({...e,pane:t})})}function ud(e){let t=_(e.apps,e=>_(e.operations,t=>ut(re(t.traces,t=>wt(z(t.failure),()=>({app:e.name,time:BigInt(t.time)}))))));return mt(wt(oe(t,{onEmpty:()=>Ge(),onNonEmpty:e=>Wt(de(e,qt(Ot,e=>e.time)))}),e=>e.app),()=>wt(ct(e.apps),e=>e.name))}var dd=Ze(rd.runtime.atom(e=>Du(e,h(rd,w(e=>e(`scope.overview`,void 0)),l)))),fd=ft(e=>rd.runtime.atom(t=>(t(dd),Du(t,m(te(rd,t=>t(`scope.trace`,{id:e}))))))),pd=Et(Yt(dt(`30 seconds`),()=>qe));function md(e,t){return V(Lt(h(e,yt(0,-6))),{onNone:()=>`—`,onSome:e=>{let n=Ct(0,(t-e)/1e3);return n<10?`now`:n<60?`${We(n,0)}s`:n<3600?`${We(n/60,0)}m`:n<86400?`${We(n/3600,0)}h`:`${We(n/86400,0)}d`}})}function hd(e){return e<999.5?`${We(e,0)} ms`:e<9950?`${We(e/1e3,1)} s`:e<59500?`${We(e/1e3,0)} s`:e<357e4?`${We(e/6e4,0)} min`:`${We(e/36e5,1)} h`}function gd(e){return h(Rt(nd)(e),R(e=>ct(k(e))),De(e=>ve(e)||he(e)||Ve(e)),V({onNone:()=>en(e),onSome:e=>`${e}`}))}function _d(e){return h(Le(e,e=>e.status===2),R(e=>s(e.payload.status)),De(p),R(e=>s(h(Te(e,`message`),bt))),De(c),De(P))}function vd(e){return e.payload.attributes===void 0?[]:V(Rt(td)(e.payload.attributes),{onNone:()=>[{key:`attributes`,value:`Unreadable`}],onSome:t=>{let n=ot(_d(e)),r=re(me(t,e=>e.key!==`service.name`),e=>({key:e.key,value:gd(e.value)})),i=f(r,e=>e.key===`http.response.status_code`);return me(r,t=>t.value!==e.name&&!(n&&Be($u,t.key))&&(t.key!==`error.type`||!Ae(i,e=>e.value===t.value)))}})}function yd(e){return oe(e.traces,{onEmpty:()=>0n,onNonEmpty:e=>BigInt(de(e,qt(Ot,e=>BigInt(e.time))).time)})}function bd(e,t){return ee(_(me(e.apps,e=>e.name===t),e=>re(e.operations,t=>({app:e,operation:t}))),nt(qt(Fe(_t),e=>e.operation.failures>0),qt(Fe(Ot),e=>yd(e.operation))))}function xd(e,t){return R(f(e.apps,e=>e.name===t.app),e=>wt(f(e.operations,e=>e.runtime===t.runtime&&e.name===t.name),t=>({app:e,operation:t})))}function Sd(e,t){return mt(f(e.spans,e=>e.spanId===t),()=>mt(R(z(e.failureSpanId),t=>f(e.spans,e=>e.spanId===t)),()=>f(e.spans,e=>e.depth===0)))}function Cd(e,t,n){let r=bt(mt(De(z(t.source),t=>Ae(e,e=>Se(e.apps,e=>e.name===t))),()=>R(e,ud))),i=od(t).selection,a=mt(De(R(z(i?.operation),t=>R(e,e=>xd(e,t))),e=>e.app.name===r),()=>$t(n,{onFalse:()=>R(e,e=>wt(ct(bd(e,r)),e=>({app:e.app,operation:e.operation}))),onTrue:()=>Ge()})),o=wt(a,e=>({app:e.app.name,name:e.operation.name,runtime:e.operation.runtime})),s=R(a,e=>mt(R(z(i?.traceId),t=>f(e.operation.traces,e=>e.id===t)),()=>ct(e.operation.traces)));return{activeKey:o,activeOperation:a,activeTrace:s,pickedSpan:bt(R(De(z(i),e=>Ae(s,t=>e.traceId===t.id)),e=>z(e.spanId))),source:r}}var wd=(function(){let e=typeof document<`u`&&document.createElement(`link`).relList;return e&&e.supports&&e.supports(`modulepreload`)?`modulepreload`:`preload`})(),Td=function(e){return`/`+e},Ed={},Dd=function(e){return e.pathname.endsWith(`.css`)},Od=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},kd=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,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?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Td(t,n);let r=s(t),i=Dd(r);return Od(Ed,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:wd,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}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)})},Ad={homeIndexRoute:lo(`/(home)/`)({component:uo(()=>kd(()=>import(`./(home)-8Qu6wvxT.js`),__vite__mapDeps([0,1,2,3])),`component`),validateSearch:Tu(ad)}).update({id:`/(home)/`,path:`/`,getParentRoute:()=>ku})};wu(ku._addFileChildren(Ad)._addFileTypes());export{ts as $,Ws as A,gs as B,sc as C,qs as D,Xs as E,ys as F,Jo as G,fs as H,_s as I,Qo as J,ss as K,ds as L,Os as M,Ts as N,Ks as O,Ss as P,$o as Q,cs as R,oc as S,rc as T,hs as U,qo as V,ps as W,Xo as X,us as Y,es as Z,Xl as _,Sd as a,Ta as at,hc as b,pd as c,Cd as d,ns as et,fd as f,eu as g,iu as h,_d as i,ro as it,Hs as j,Us as k,bd as l,_u as m,vd as n,Vo as nt,od as o,Ca as ot,Cu as p,Zo as q,hd as r,zo as rt,ld as s,ba as st,md as t,ls as tt,dd as u,Zl as v,ac as w,dc as x,Tc as y,Yo as z};