(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function u(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=u(o);fetch(o.href,f)}})();function yp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Lr={exports:{}},bi={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var bm;function pp(){if(bm)return bi;bm=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function u(r,o,f){var m=null;if(f!==void 0&&(m=""+f),o.key!==void 0&&(m=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:m,ref:o!==void 0?o:null,props:f}}return bi.Fragment=c,bi.jsx=u,bi.jsxs=u,bi}var xm;function vp(){return xm||(xm=1,Lr.exports=pp()),Lr.exports}var x=vp(),Br={exports:{}},ut={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Sm;function bp(){if(Sm)return ut;Sm=1;var a=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,N={};function O(E,Y,W){this.props=E,this.context=Y,this.refs=N,this.updater=W||T}O.prototype.isReactComponent={},O.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Y,"setState")},O.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function D(){}D.prototype=O.prototype;function k(E,Y,W){this.props=E,this.context=Y,this.refs=N,this.updater=W||T}var Z=k.prototype=new D;Z.constructor=k,A(Z,O.prototype),Z.isPureReactComponent=!0;var B=Array.isArray;function X(){}var V={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function Q(E,Y,W){var et=W.ref;return{$$typeof:a,type:E,key:Y,ref:et!==void 0?et:null,props:W}}function I(E,Y){return Q(E.type,Y,E.props)}function P(E){return typeof E=="object"&&E!==null&&E.$$typeof===a}function J(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(W){return Y[W]})}var xt=/\/+/g;function rt(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?J(""+E.key):Y.toString(36)}function ot(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(X,X):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function L(E,Y,W,et,ct){var st=typeof E;(st==="undefined"||st==="boolean")&&(E=null);var St=!1;if(E===null)St=!0;else switch(st){case"bigint":case"string":case"number":St=!0;break;case"object":switch(E.$$typeof){case a:case c:St=!0;break;case b:return St=E._init,L(St(E._payload),Y,W,et,ct)}}if(St)return ct=ct(E),St=et===""?"."+rt(E,0):et,B(ct)?(W="",St!=null&&(W=St.replace(xt,"$&/")+"/"),L(ct,Y,W,"",function(Ze){return Ze})):ct!=null&&(P(ct)&&(ct=I(ct,W+(ct.key==null||E&&E.key===ct.key?"":(""+ct.key).replace(xt,"$&/")+"/")+St)),Y.push(ct)),1;St=0;var $t=et===""?".":et+":";if(B(E))for(var wt=0;wt{if(!a.current||u||typeof IntersectionObserver!="function")return()=>c();const r=new IntersectionObserver(o=>{c(o.pop())},{rootMargin:"100px"});return r.observe(a.current),()=>{r.disconnect(),c()}},[c,u,a])}function _p(a){const c=F.useRef(null);return F.useImperativeHandle(a,()=>c.current,[]),c}function Ci(a){return a[a.length-1]}function va(a,c){return typeof a=="function"?a(c):a}const r0=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable;function o0(a){for(const c in a)if(r0.call(a,c))return!0;return!1}const Tp=()=>Object.create(null),xl=(a,c)=>Sl(a,c,Tp);function Sl(a,c,u=()=>({}),r=0){if(a===c)return a;if(r>500)return c;const o=c,f=Em(a)&&Em(o);if(!f&&!(ru(a)&&ru(o)))return o;const m=f?a:zm(a);if(!m)return o;const g=f?o:zm(o);if(!g)return o;const y=m.length,h=g.length,b=f?new Array(h):u();let v=0;for(let S=0;S"u")return!0;const u=c.prototype;return!(!Tm(u)||!u.hasOwnProperty("isPrototypeOf"))}function Tm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Em(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function In(a,c,u){if(a===c)return!0;if(typeof a!=typeof c)return!1;if(Array.isArray(a)&&Array.isArray(c)){if(a.length!==c.length)return!1;for(let r=0,o=a.length;ro||!In(a[m],c[m],u)))return!1;return o===f}return!1}const Ep=/[\x00-\x1f\x7f"<>`{}]/g;function jp(a){return a.replace(Ep,c=>"%"+c.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function jm(a){let c;try{c=decodeURI(a)}catch{c=a.replaceAll(/%[0-9A-F]{2}/gi,u=>{try{return decodeURI(u)}catch{return u}})}return jp(c)}const Ap=["http:","https:","mailto:","tel:"];function ou(a,c){if(!a)return!1;try{const u=new URL(a);return!c.has(u.protocol)}catch{return!1}}function xi(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const c=/%25|%5C/gi;let u=0,r="",o;for(;(o=c.exec(a))!==null;)r+=jm(a.slice(u,o.index))+o[0],u=c.lastIndex;r=r+jm(u?a.slice(u):a);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function Cp(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function Np(a,c){if(a===c)return!0;if(a.length!==c.length)return!1;for(let u=0;u{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,u=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const m=c.get(f);if(m)return o(m),m.value},set(f,m){if(c.size>=a&&u){const y=u;c.delete(y.key),y.next&&(u=y.next,y.next.prev=void 0),y===r&&(r=void 0)}const g=c.get(f);if(g)g.value=m,o(g);else{const y={key:f,value:m,prev:r};r&&(r.next=y),r=y,u||(u=y),c.set(f,y)}},clear(){c.clear(),u=void 0,r=void 0}}}const $n=4,f0=5;function d0(a,c,u=new Uint16Array(6)){const r=a.indexOf("/",c),o=r===-1?a.length:r,f=a.substring(c,o);if(!f||!f.includes("$"))return u[0]=0,u[1]=c,u[2]=c,u[3]=o,u[4]=o,u[5]=o,u;if(f==="$"){const y=a.length;return u[0]=2,u[1]=c,u[2]=c,u[3]=y,u[4]=y,u[5]=y,u}if(f.charCodeAt(0)===36)return u[0]=1,u[1]=c,u[2]=c+1,u[3]=o,u[4]=o,u[5]=o,u;const m=f.indexOf("{");let g;if(m!==-1&&m+1!P.parse&&P.caseSensitive===$&&P.prefix===X&&P.suffix===V));if(I)D=I;else{const P=Rp(B,v,$,X,V);D=P,P.parent=o,P.depth=f;let J;B===1?J=o.dynamic??(o.dynamic=[]):B===3?J=o.optional??(o.optional=[]):J=o.wildcard??(o.wildcard=[]),J.push(P),J.length===2&&(m==null||m.push(J))}break}}o=D}if(A&&u.children&&!u.isRoot&&u.id&&u.id.charCodeAt(u.id.lastIndexOf("/")+1)===95){const O=ha(v);O.kind=f0,O.parent=o,f++,O.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(O),o=O}const N=(u.path||!u.children)&&!u.isRoot;if(N&&v.endsWith("/")){const O=ha(v);O.kind=$n,O.parent=o,f++,O.depth=f,o.index=O,o=O}o.parse=A??null,o.priority=((b=S==null?void 0:S.params)==null?void 0:b.priority)??0,N&&!o.route&&(o.route=u,o.fullPath=v)}if(u.children)for(const v of u.children)pu(a,c,v,y,o,f,m,g)}function h0(a,c){if(a.parse&&!c.parse)return-1;if(!a.parse&&c.parse)return 1;if(a.parse&&c.parse&&(a.priority||c.priority))return c.priority-a.priority;if(a.prefix&&c.prefix&&a.prefix!==c.prefix){if(a.prefix.startsWith(c.prefix))return-1;if(c.prefix.startsWith(a.prefix))return 1}if(a.suffix&&c.suffix&&a.suffix!==c.suffix){if(a.suffix.endsWith(c.suffix))return-1;if(c.suffix.endsWith(a.suffix))return 1}return a.prefix&&!c.prefix?-1:!a.prefix&&c.prefix?1:a.suffix&&!c.suffix?-1:!a.suffix&&c.suffix?1:a.caseSensitive&&!c.caseSensitive?-1:!a.caseSensitive&&c.caseSensitive?1:0}function ha(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0}}function Rp(a,c,u,r,o){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:c,parent:null,parse:null,priority:0,caseSensitive:u,prefix:r,suffix:o}}function Mp(a,c){const u=ha("/"),r=new Uint16Array(6),o=[];for(const f of a)pu(!1,r,f,1,u,0,o);for(const f of o)f.sort(h0);c.masksTree=u,c.flatCache=fu(1e3)}function wp(a,c){a||(a="/");const u=c.flatCache.get(a);if(u!==void 0)return u;const r=ro(a,c.masksTree);return c.flatCache.set(a,r),r}function Dp(a,c,u,r,o){a||(a="/"),r||(r="/");const f=c?`case\0${a}`:a;let m=o.singleCache.get(f);return m||(m=ha("/"),pu(c,new Uint16Array(6),{from:a},1,m,0),o.singleCache.set(f,m)),ro(r,m,u)}function Op(a,c,u=!1){const r=u?a:`nofuzz\0${a}`,o=c.matchCache.get(r);if(o!==void 0)return o;a||(a="/");let f;try{f=ro(a,c.segmentTree,u)}catch(m){if(m instanceof URIError)f=null;else throw m}return f&&(f.branch=g0(f.route)),c.matchCache.set(r,f),f}function Up(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Lp(a,c=!1,u){const r=ha(a.fullPath),o=new Uint16Array(6),f=[],m={},g={};let y=0;pu(c,o,a,1,r,0,f,h=>{if(u==null||u(h,y),h.id in m&&so(),m[h.id]=h,y!==0&&h.path){const b=Up(h.fullPath);(!g[b]||h.fullPath.endsWith("/"))&&(g[b]=h)}y++});for(const h of f)h.sort(h0);return{processedTree:{segmentTree:r,singleCache:fu(1e3),matchCache:fu(1e3),flatCache:null,masksTree:null},routesById:m,routesByPath:g}}function ro(a,c,u=!1){const r=a.split("/"),o=Hp(a,r,c,u);if(!o)return null;const[f]=m0(a,r,o);return{route:o.node.route,rawParams:f}}function m0(a,c,u){var b,v,S,_;const r=Bp(u.node);let o=null;const f=Object.create(null);let m=((b=u.extract)==null?void 0:b.part)??0,g=((v=u.extract)==null?void 0:v.node)??0,y=((S=u.extract)==null?void 0:S.path)??0,h=((_=u.extract)==null?void 0:_.segment)??0;for(;g=0;X--){const V=v.wildcard[X],{prefix:$,suffix:Q}=V;if(!($&&(k||!(V.caseSensitive?Z:B??(B=Z.toLowerCase())).startsWith($)))){if(Q){if(k)continue;const I=c.slice(S).join("/"),P=I.slice(-Q.length);if((V.caseSensitive?P:P.toLowerCase())!==Q||I.length-Q.length<$.length)continue}g.push({node:V,index:m,skipped:_,statics:T,dynamics:A,optionals:N,extract:O,rawParams:D})}}if(v.optional){const X=_|1<=0;V--){const $=v.optional[V];g.push({node:$,index:S,skipped:X,statics:T,dynamics:A,optionals:N,extract:O,rawParams:D})}if(!k)for(let V=v.optional.length-1;V>=0;V--){const $=v.optional[V],{prefix:Q,suffix:I}=$;if(Q||I){const P=$.caseSensitive?Z:B??(B=Z.toLowerCase());if(Q&&!P.startsWith(Q)||I&&P.indexOf(I,P.length-I.length)=0;X--){const V=v.dynamic[X],{prefix:$,suffix:Q}=V;if($||Q){const I=V.caseSensitive?Z:B??(B=Z.toLowerCase());if($&&!I.startsWith($)||Q&&I.indexOf(Q,I.length-Q.length)<$.length)continue}g.push({node:V,index:S+1,skipped:_,statics:T,dynamics:A+Ic(m,S),optionals:N,extract:O,rawParams:D})}if(!k&&v.staticInsensitive){const X=v.staticInsensitive.get(B??(B=Z.toLowerCase()));X&&g.push({node:X,index:S+1,skipped:_,statics:T+Ic(m,S),dynamics:A,optionals:N,extract:O,rawParams:D})}if(!k&&v.static){const X=v.static.get(Z);X&&g.push({node:X,index:S+1,skipped:_,statics:T+Ic(m,S),dynamics:A,optionals:N,extract:O,rawParams:D})}if(v.pathless)for(let X=v.pathless.length-1;X>=0;X--){const V=v.pathless[X];g.push({node:V,index:S,skipped:_,statics:T,dynamics:A,optionals:N,extract:O,rawParams:D})}}if(h)return h;if(r&&y){let b=y.index;for(let S=0;Sa.statics||c.statics===a.statics&&(c.dynamics>a.dynamics||c.dynamics===a.dynamics&&(c.optionals>a.optionals||c.optionals===a.optionals&&((c.node.kind===$n)>(a.node.kind===$n)||c.node.kind===$n==(a.node.kind===$n)&&c.node.depth>a.node.depth))):!0}function au(a){return iu(a.filter(c=>c!==void 0).join("/"))}function iu(a){return a.replace(/\/{2,}/g,"/")}function y0(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function pn(a){const c=a.length;return c>1&&a[c-1]==="/"?a.replace(/\/{1,}$/,""):a}function p0(a){return pn(y0(a))}function du(a,c){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${c}/`?a.slice(0,-1):a}function Gp(a,c,u){return du(a,u)===du(c,u)}function Yp({base:a,to:c,trailingSlash:u="never",cache:r}){if(c.includes("//")&&(c=iu(c)),c.startsWith("/"))return c.length===1||u==="preserve"?c:u==="always"?c.endsWith("/")?c:`${c}/`:c.endsWith("/")?c.slice(0,-1):c;const o=c===".";let f;if(r){f=o?a:a+"\0"+c;const h=r.get(f);if(h)return h}let m;if(o)m=a.split("/");else{for(a.includes("//")&&(a=iu(a)),m=a.split("/");m.length>1&&Ci(m)==="";)m.pop();const h=c.split("/");for(let b=0,v=h.length;b1?m.pop():m=[""]:S==="."||m.push(S)}}m.length>1&&(Ci(m)===""?u==="never"&&m.pop():u==="always"&&m.push(""));const g=m.join("/"),y=(o?iu(g):g)||"/";return f&&r&&r.set(f,y),y}function kp(a){const c=new Map(a.map(o=>[encodeURIComponent(o),o])),u=Array.from(c.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(u,"g");return o=>o.replace(r,f=>c.get(f)??f)}function Hr(a,c,u){const r=c[a];return typeof r!="string"?r:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>Nm(o,u)).join("/"):Nm(r,u)}function Cm({path:a,params:c,decoder:u,...r}){let o=!1;const f=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!a.includes("$"))return{interpolatedPath:a,usedParams:f,isMissingParams:o};const m=a.length;let g=0,y,h="";for(;ga.state.__TSR_key||a.href;function Jp(a){const c=a.getAttribute(Rm);if(c)return`[${Rm}="${c}"]`;let u="",r=a,o;for(;o=r.parentNode;){let f=1,m=r;for(;m=m.previousElementSibling;)f++;const g=`${r.localName}:nth-child(${f})`;u=u?`${g} > ${u}`:g,r=o}return u}let tu=!1;const cu="window";function Ir(a){try{return typeof a=="function"?a():document.querySelector(a)}catch{}}function Mm(a){const c=new Set;for(const u of a){if(u===cu)continue;const r=Ir(u);r&&c.add(r)}return c}function Wp(a,c){const u=a.options.scrollRestoration,r=a._scroll;u&&(r.restoring=!0);const o=a.options.getScrollRestorationKey||Kp,f=new Set,m=g=>{const y=Fn[g]||(Fn[g]={});for(const h of f)h===document?y[cu]={scrollX,scrollY}:h.isConnected&&(y[Jp(h)]={scrollX:h.scrollLeft,scrollY:h.scrollTop})};u&&!r.restoration&&(r.restoration=!0,tu=!1,history.scrollRestoration="manual",document.addEventListener("scroll",g=>{tu||f.add(g.target)},!0),a.subscribe("onBeforeLoad",g=>{g.fromLocation&&m(o(g.fromLocation)),f.clear()}),addEventListener("pagehide",()=>{m(o(a.stores.resolvedLocation.get()??a.stores.location.get())),Zp()})),!r.reset&&(r.reset=!0,a.subscribe("onRendered",g=>{var A;const y=a.options.scrollRestorationBehavior,h=a.options.scrollToTopSelectors,b=r.next,v=r.hash;let S;if(f.clear(),r.next=!0,r.hash=!1,typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return;const _=o(g.toLocation),T=g.fromLocation&&o(g.fromLocation);if(r.restoring&&T&&T!==_){const N=Fn[T];if(N){let O=Fn[_];for(const D in N){if(D===cu){if(b)continue}else{const k=Ir(D);if(!k||b&&h&&(S??(S=Mm(h)),S.has(k)))continue}O||(O=Fn[_]={}),O[D]??(O[D]=N[D])}}}tu=!0;try{const N=g.toLocation.hash,O=g.toLocation.state.__hashScrollIntoViewOptions??!0;let D=!1;if(b){!N&&h&&(S??(S=Mm(h)));const k=N&&O&&v,Z=r.restoring?Fn[_]:void 0;if(Z)for(const B in Z){const{scrollX:X,scrollY:V}=Z[B];if(B===cu){if(k)continue;scrollTo({top:V,left:X,behavior:y}),D=!0}else{const $=Ir(B);$&&($.scrollLeft=X,$.scrollTop=V,S==null||S.delete($))}}if(!N){const B={top:0,left:0,behavior:y};if(D||scrollTo(B),S)for(const X of S)X.scrollTo(B)}}!D&&N&&O&&((A=document.getElementById(N))==null||A.scrollIntoView(O))}finally{tu=!1}}))}function Fp(a,c=String){const u=new URLSearchParams;for(const r in a){const o=a[r];o!==void 0&&u.set(r,c(o))}return u.toString()}function qr(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function $p(a){const c=new URLSearchParams(a),u=Object.create(null);for(const[r,o]of c.entries()){const f=u[r];f==null?u[r]=qr(o):Array.isArray(f)?f.push(qr(o)):u[r]=[f,qr(o)]}return u}const Ip=/^(?:\s|["[{\d-]|fa|nu|tr)/,Pp=ev(JSON.parse),tv=nv(JSON.stringify,JSON.parse);function ev(a){return c=>{c[0]==="?"&&(c=c.substring(1));const u=$p(c);for(const r in u){const o=u[r];if(typeof o=="string")try{u[r]=a(o)}catch{}}return u}}function nv(a,c){const u=c===JSON.parse;function r(o){if(o&&typeof o=="object")try{return a(o)}catch{}else if(c&&typeof o=="string"){if(u&&!Ip.test(o))return o;try{return c(o),a(o)}catch{}}return o}return o=>{const f=Fp(o,r);return f?`?${f}`:""}}const ga="__root__";function lv(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const c=new Headers(a.headers);a.href&&c.get("Location")===null&&c.set("Location",a.href);const u=new Response(null,{status:a.statusCode,headers:c});if(u.options=a,a.throw)throw u;return u}function v0(a){return a instanceof Response&&!!a.options}function av(a){return{input:({url:c})=>{for(const u of a)c=Pr(u,c);return c},output:({url:c})=>{for(let u=a.length-1;u>=0;u--)c=b0(a[u],c);return c}}}function iv(a){const c=p0(a.basepath),u=`/${c}`,r=a.caseSensitive?u:u.toLowerCase(),o=`${r}/`;return{input:({url:f})=>{const m=a.caseSensitive?f.pathname:f.pathname.toLowerCase();return m===r?f.pathname="/":m.startsWith(o)&&(f.pathname=f.pathname.slice(u.length)),f},output:({url:f})=>(f.pathname=au(["/",c,f.pathname]),f)}}function Pr(a,c){var r;const u=(r=a==null?void 0:a.input)==null?void 0:r.call(a,{url:c});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return c}function b0(a,c){var r;const u=(r=a==null?void 0:a.output)==null?void 0:r.call(a,{url:c});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return c}function cv(a,c){const{createMutableStore:u,createReadonlyStore:r,batch:o}=c,f=new Map,m=u("idle"),g=u(a),y=u(void 0),h=u([]),b=r(()=>h.get().map(A=>f.get(A).get())),v=r(()=>({status:m.get(),isLoading:m.get()==="pending",matches:b.get(),location:g.get(),resolvedLocation:y.get()}));function S(A){let N=f.get(A);return N||(N=u(void 0),f.set(A,N)),N}const _={status:m,location:g,resolvedLocation:y,ids:h,matches:b,byRoute:f,__store:v,getMatchStore:S,setMatches:T};function T(A){const N=h.get(),O=A.map(D=>D.routeId);o(()=>{Np(N,O)||h.set(O);for(const D of N)O.includes(D)||f.get(D).set(()=>{});for(const D of A){const k=S(D.routeId);k.get()!==D&&k.set(D)}})}return _}var Pn="__TSR_index",wm="popstate",Dm="beforeunload";function uv(a){let c=a.getLocation();const u=new Set,r=m=>{c=a.getLocation(),u.forEach(g=>g({location:c,action:m}))},o=m=>{a.notifyOnIndexChange??!0?r(m):c=a.getLocation()},f=async({task:m,navigateOpts:g,...y})=>{var v,S;if((g==null?void 0:g.ignoreBlocker)??!1){m();return}const h=((v=a.getBlockers)==null?void 0:v.call(a))??[],b=y.type==="PUSH"||y.type==="REPLACE";if(typeof document<"u"&&h.length&&b)for(const _ of h){const T=hu(y.path,y.state);if(await _.blockerFn({currentLocation:c,nextLocation:T,action:y.type})){(S=a.onBlocked)==null||S.call(a);return}}m()};return{get location(){return c},get length(){return a.getLength()},subscribers:u,subscribe:m=>(u.add(m),()=>{u.delete(m)}),push:(m,g,y)=>{const h=c.state[Pn];g=Om(h+1,g),f({task:()=>{a.pushState(m,g),r({type:"PUSH"})},navigateOpts:y,type:"PUSH",path:m,state:g})},replace:(m,g,y)=>{const h=c.state[Pn];g=Om(h,g),f({task:()=>{a.replaceState(m,g),r({type:"REPLACE"})},navigateOpts:y,type:"REPLACE",path:m,state:g})},go:(m,g)=>{f({task:()=>{a.go(m),o({type:"GO",index:m})},navigateOpts:g,type:"GO"})},back:m=>{f({task:()=>{a.back((m==null?void 0:m.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{f({task:()=>{a.forward((m==null?void 0:m.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>c.state[Pn]!==0,createHref:m=>a.createHref(m),block:m=>{var y;if(!a.setBlockers)return()=>{};const g=((y=a.getBlockers)==null?void 0:y.call(a))??[];return a.setBlockers([...g,m]),()=>{var b,v;const h=((b=a.getBlockers)==null?void 0:b.call(a))??[];(v=a.setBlockers)==null||v.call(a,h.filter(S=>S!==m))}},flush:()=>{var m;return(m=a.flush)==null?void 0:m.call(a)},destroy:()=>{var m;return(m=a.destroy)==null?void 0:m.call(a)},notify:r}}function Om(a,c){c||(c={});const u=oo();return{...c,key:u,__TSR_key:u,[Pn]:a}}function sv(a){var V,$;const c=typeof document<"u"?window:void 0,u=c.history.pushState,r=c.history.replaceState;let o=[];const f=()=>o,m=Q=>o=Q,g=(Q=>Q),y=(()=>hu(`${c.location.pathname}${c.location.search}${c.location.hash}`,c.history.state));if(!((V=c.history.state)!=null&&V.__TSR_key)&&!(($=c.history.state)!=null&&$.key)){const Q=oo();c.history.replaceState({[Pn]:0,key:Q,__TSR_key:Q},"")}let h=y(),b,v=!1,S=!1,_=!1,T=!1;const A=()=>h;let N;const O=()=>{N&&(X._ignoreSubscribers=!0,(N[2]?c.history.pushState:c.history.replaceState)(N[1],"",N[0]),X._ignoreSubscribers=!1,N=void 0,b=void 0)},D=(Q,I,P)=>{const J=g(I),xt=!!N;xt||(b=h),h=hu(I,P),N=[J,P,(N==null?void 0:N[2])||Q],xt||queueMicrotask(()=>O())},k=Q=>{h=y(),X.notify({type:Q})},Z=async()=>{if(S){S=!1;return}const Q=y(),I=Q.state[Pn]-h.state[Pn],P=I===1,J=I===-1,xt=!P&&!J||v;v=!1;const rt=xt?"GO":J?"BACK":"FORWARD",ot=xt?{type:"GO",index:I}:{type:J?"BACK":"FORWARD"};if(_)_=!1;else{const L=f();if(typeof document<"u"&&L.length){for(const K of L)if(await K.blockerFn({currentLocation:h,nextLocation:Q,action:rt})){S=!0,c.history.go(1),X.notify(ot);return}}}h=y(),X.notify(ot)},B=Q=>{if(T){T=!1;return}let I=!1;const P=f();if(typeof document<"u"&&P.length)for(const J of P){const xt=J.enableBeforeUnload??!0;if(xt===!0){I=!0;break}if(typeof xt=="function"&&xt()===!0){I=!0;break}}if(I)return Q.preventDefault(),Q.returnValue=""},X=uv({getLocation:A,getLength:()=>c.history.length,pushState:(Q,I)=>D(!0,Q,I),replaceState:(Q,I)=>D(!1,Q,I),back:Q=>(Q&&(_=!0),T=!0,c.history.back()),forward:Q=>{Q&&(_=!0),T=!0,c.history.forward()},go:Q=>{v=!0,c.history.go(Q)},createHref:Q=>g(Q),flush:O,destroy:()=>{c.history.pushState=u,c.history.replaceState=r,c.removeEventListener(Dm,B,{capture:!0}),c.removeEventListener(wm,Z)},onBlocked:()=>{b&&h!==b&&(h=b)},getBlockers:f,setBlockers:m,notifyOnIndexChange:!1});return c.addEventListener(Dm,B,{capture:!0}),c.addEventListener(wm,Z),c.history.pushState=function(...Q){const I=u.apply(c.history,Q);return X._ignoreSubscribers||k("PUSH"),I},c.history.replaceState=function(...Q){const I=r.apply(c.history,Q);return X._ignoreSubscribers||k("REPLACE"),I},X}function rv(a){let c=a.replace(/[\x00-\x1f\x7f]/g,"");return c.startsWith("//")&&(c="/"+c.replace(/^\/+/,"")),c}function hu(a,c){const u=rv(a),r=u.indexOf("#"),o=u.indexOf("?"),f=oo();return{href:u,pathname:u.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:u.length),hash:r>-1?u.substring(r):"",search:o>-1?u.slice(o,r===-1?void 0:r):"",state:c||{[Pn]:0,key:f,__TSR_key:f}}}function oo(){return(Math.random()+1).toString(36).substring(7)}function Um(a){var c,u;return a.options.loader||a.options.beforeLoad||a.lazyFn||((c=a.options.component)==null?void 0:c.preload)||((u=a.options.pendingComponent)==null?void 0:u.preload)}function vu(a,c){return{fromLocation:c,toLocation:a,pathChanged:(c==null?void 0:c.pathname)!==a.pathname,hrefChanged:(c==null?void 0:c.href)!==a.href,hashChanged:(c==null?void 0:c.hash)!==a.hash}}function Lm({key:a,__TSR_key:c,__TSR_index:u,__hashScrollIntoViewOptions:r,...o}){return o}function ov(a,c,u,r){var o,f,m,g;for(const y of c){if(r&&a._tx!==r)return;u.some(h=>h.routeId===y.routeId)||(f=(o=a.routesById[y.routeId].options).onLeave)==null||f.call(o,y)}for(const y of u){if(r&&a._tx!==r)return;(g=(m=a.routesById[y.routeId].options)[c.some(h=>h.routeId===y.routeId)?"onStay":"onEnter"])==null||g.call(m,y)}}var fv=class{constructor(a,c){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async u=>(u(),!1),this.update=u=>{const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",f=this.basepath===void 0,m=r==null?void 0:r.rewrite;if(this.options={...r,...u},this.isServer=this.options.isServer??xp??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=kp(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=sv()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let h;this.resolvePathCache=fu(1e3),h=this.buildRouteTree(),this.setRoutes(h)}if(!this.stores&&this.latestLocation){const h=this.getStoreConfig(this);this.batch=h.batch,this.stores=cv(this.latestLocation,h),Wp(this)}const g=this.options.basepath??"/",y=this.options.rewrite;if(f||o!==g||m!==y){this.basepath=g;const h=[],b=p0(g);b&&b!=="/"&&h.push(iv({basepath:g})),y&&h.push(y),this.rewrite=h.length===0?void 0:h.length===1?h[0]:av(h),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const u=Lp(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&Mp(this.options.routeMasks,u.processedTree),u},this.subscribe=(u,r)=>{const o={eventType:u,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=u=>{for(const r of this.subscribers)if(r.eventType===u.type)try{r.fn(u)}catch(o){console.error(o)}},this.parseLocation=(u,r)=>{const o=({pathname:y,search:h,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const O=this.options.parseSearch(h),D=this.options.stringifySearch(O);return{href:y+D+b,publicHref:y+D+b,pathname:xi(y).path,external:!1,searchStr:D,search:xl(r==null?void 0:r.search,O),hash:xi(b.slice(1)).path,state:Sl(r==null?void 0:r.state,S)}}const _=new URL(v,this.origin),T=Pr(this.rewrite,_),A=this.options.parseSearch(T.search),N=this.options.stringifySearch(A);return T.search=N,{href:T.href.replace(T.origin,""),publicHref:v,pathname:xi(T.pathname).path,external:!!this.rewrite&&T.origin!==this.origin,searchStr:N,search:xl(r==null?void 0:r.search,A),hash:xi(T.hash.slice(1)).path,state:Sl(r==null?void 0:r.state,S)}},f=o(u),{__tempLocation:m,__tempKey:g}=f.state;if(m&&(!g||g===this.tempLocationKey)){const y=o(m);return y.state.key=f.state.key,y.state.__TSR_key=f.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:f}}return f},this.resolvePathWithBase=(u,r)=>Yp({base:u,to:r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,r,o)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:r},o):this.matchRoutesInternal(u,r),this.getMatchedRoutes=u=>{const r=Object.create(null),o=Op(pn(u),this.processedTree,!0);return o&&Object.assign(r,o.rawParams),[(o==null?void 0:o.branch)||[this.routesById.__root__],r,o==null?void 0:o.route]},this.buildLocation=u=>{const r=(f={})=>{var Q,I;if(f.href){const P=hu(f.href,{});f={...f,to:Pr(this.rewrite,new URL(P.pathname,this.origin)).pathname,search:this.options.parseSearch(P.search),hash:P.hash.slice(1)}}const m=f._fromLocation||this._pendingLocation||this.latestLocation,g=this.matchRoutesLightweight(m);f.from;const y=f.unsafeRelative==="path"?m.pathname:f.from??g[1],h=g[2],b=g[3],v=this.resolvePathWithBase(y,f.to?`${f.to}`:".");let S=Bm(f.params,b);const _=this.routesByPath[pn(v)];let T;if(_)T=this.getRouteBranch(_);else if(v.includes("$"))T=[];else{const[P,J,xt]=this.getMatchedRoutes(v);T=P,this.options.notFoundRoute&&(!xt||xt.path!=="/"&&J["**"])&&(T=[...T,this.options.notFoundRoute])}if(T.length&&o0(S))for(const P of T){const J=((Q=P.options.params)==null?void 0:Q.stringify)??P.options.stringifyParams;if(J){S===b&&(S=Object.assign(Object.create(null),S));try{Object.assign(S,J(S))}catch{}}}const A=u.leaveParams?v:xi(Cm({path:v,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let N=h;if(u._includeValidateSearch&&((I=this.options.search)!=null&&I.strict)){const P={};T.forEach(J=>{if(J.options.validateSearch)try{Object.assign(P,uu(J.options.validateSearch,{...P,...N}))}catch{}}),N=P}N=hv(N,f,T,u._includeValidateSearch),N=xl(h,N);const O=this.options.stringifySearch(N),D=f.hash===!0?m.hash:f.hash?va(f.hash,m.hash):void 0,k=D?`#${D}`:"";let Z=f.state===!0?m.state:f.state?va(f.state,m.state):{};f.state&&(Z=Sl(m.state,Z));const B=`${A}${O}${k}`;let X,V,$=!1;if(this.rewrite){const P=new URL(B,this.origin),J=b0(this.rewrite,P);X=P.href.replace(P.origin,""),J.origin!==this.origin?(V=J.href,$=!0):V=J.pathname+J.search+J.hash}else X=Cp(B),V=X;return{publicHref:V,href:X,pathname:A,search:N,searchStr:O,state:Z,hash:D??"",external:$,unmaskOnReload:f.unmaskOnReload}},o=r(u);if(u.mask)o.maskedLocation=r({from:u.from,...u.mask});else if(this.options.routeMasks){const f=wp(o.pathname,this.processedTree);if(f){const m=Object.assign(Object.create(null),f.rawParams),{from:g,params:y,...h}=f.route,b=Bm(y,m);o.maskedLocation=r({from:u.from,...h,params:b})}}return o},this.commitLocation=async({viewTransition:u,ignoreBlocker:r,...o})=>{let f;const m=pn(this.latestLocation.href)===pn(o.href)&&In(Lm(o.state),Lm(this.latestLocation.state)),g=this._commitPromise;let y;const h=new Promise(b=>{y=b});if(h.resolve=()=>{y(),g==null||g.resolve()},this._commitPromise=h,m)this.load();else{let{maskedLocation:b,hashScrollIntoView:v,...S}=o;b&&(S={...b,state:{...b.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,f=o.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](S.publicHref,S.state,{ignoreBlocker:r}),this.history.subscribers.size||this.load({action:{type:f}})}return this._scroll.next=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:u,resetScroll:r,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:m,...g}={})=>{const y=this.buildLocation({...g,_includeValidateSearch:!0});this._pendingLocation=y;const h=this.commitLocation({...y,viewTransition:f,replace:u,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:m});return queueMicrotask(()=>{this._pendingLocation===y&&(this._pendingLocation=void 0)}),h},this.navigate=async({to:u,reloadDocument:r,href:o,publicHref:f,...m})=>{var y,h;let g=!1;if(o)try{new URL(`${o}`),g=!0}catch{}if(g&&!r&&(r=!0),r){if(u!==void 0||!o){const v=this.buildLocation({to:u,...m});o=o??v.publicHref,f=f??v.publicHref}const b=!g&&f?f:o;if(ou(b,this.protocolAllowlist))return;if(!m.ignoreBlocker){const v=((h=(y=this.history).getBlockers)==null?void 0:h.call(y))??[];for(const S of v)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}m.replace?window.location.replace(b):window.location.href=b;return}return this.buildAndCommitLocation({...m,href:o,to:u,_isNavigate:!0})},this.load=async u=>{this.updateLatestLocation(),u!=null&&u.action&&(this._scroll.hash=u.action.type==="PUSH"||u.action.type==="REPLACE"),await _v(this,u)},this.startViewTransition=u=>{var o,f;const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document.startViewTransition=="function"){let m;if(typeof r=="object"&&((f=(o=window.CSS)==null?void 0:o.supports)!=null&&f.call(o,"selector(:active-view-transition-type(a))"))){const g=this.latestLocation,y=this.stores.resolvedLocation.get(),h=typeof r.types=="function"?r.types(vu(g,y)):r.types;if(h===!1)return u();m={update:u,types:h}}else m=u;return document.startViewTransition(m).updateCallbackDone}return u()},this.invalidate=u=>{var h,b;const r=this._committed,o=u==null?void 0:u.filter,f=this._preloads,m=new Set([...r,...this._cache.values(),...[...(f==null?void 0:f.values())??[]].flat(),...((h=this._tx)==null?void 0:h[3])??[]].filter(v=>!o||o(v)).map(v=>v.id)),g=[];for(const[v,S]of f??[])S.some(_=>m.has(_.id))&&(f.delete(v),g.push(v));const y=v=>{if(m.has(v.id)){const S=this.routesById[v.routeId],_={...v,invalid:!0,...(u!=null&&u.forcePending||v.status==="error"||v.status==="notFound")&&Um(S)?{status:"pending",error:void 0}:void 0};return v._flight=void 0,_}return v};this._committed=r.map(y);for(const[v,S]of this._cache)m.has(v)&&(S.invalid=!0,u!=null&&u.forcePending&&(S.status="pending"));for(const v of m)(b=this._flights)==null||b.delete(v);for(const v of g)v.abort();return this.shouldViewTransition=!1,this.load({sync:u==null?void 0:u.sync})},this.resolveRedirect=u=>{const r=u.headers.get("Location");if(u.options.href){if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;u.options.href=f,u.headers.set("Location",f)}}catch{}}else{const o=this.buildLocation(u.options).publicHref||"/";u.options.href=o,u.headers.set("Location",o)}if(u.options.href&&ou(u.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{var h;const r=this._cache,o=this._preloads,f=u==null?void 0:u.filter,m=[],g=[];for(const[b,v]of r)(!f||f(v))&&(g.push(b),m.push(v));const y=[];for(const[b,v]of o??[])(!f||v.some(f))&&(y.push(b),m.push(...v));for(const b of g)r.delete(b);for(const b of y)o.delete(b);for(const b of m){const v=b._flight;b._flight=void 0,v&&!--v[2]&&(((h=this._flights)==null?void 0:h.get(b.id))===v&&this._flights.delete(b.id),y.push(v[1]))}for(const b of y)b.abort()},this.loadRouteChunk=ya,this.preloadRoute=u=>zv(this,u),this.matchRoute=(u,r)=>{const o={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},f=this.buildLocation(o),m=this.stores.status.get()==="pending";if(r!=null&&r.pending&&!m)return!1;const g=(r==null?void 0:r.pending)??!m?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),y=Dp(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,g.pathname,this.processedTree);return!y||u.params&&!In(y.rawParams,u.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?In(g.search,f.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.getStoreConfig=c,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??tv,parseSearch:a.parseSearch??Pp,protocolAllowlist:a.protocolAllowlist??Ap}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:c,processedTree:u}){this.routesById=a,this.routesByPath=c,this.processedTree=u;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(a){let c=this.routeBranchCache.get(a);return c||(c=g0(a),this.routeBranchCache.set(a,c)),c}matchRoutesInternal(a,c){var S,_;const[u,r,o]=this.getMatchedRoutes(a.pathname);let f=u,m=!1;(o?o.path!=="/"&&r["**"]:pn(a.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:m=!0);const g=m?mv(this.options.notFoundMode,f):void 0,y=new Array(f.length),h=this._committed,b=(T,A)=>{const N=h[A];return(N==null?void 0:N.routeId)===T.id?N:T===this.options.notFoundRoute?h.find(O=>O.routeId===T.id):void 0};let v;for(let T=0;T{const _=S(y.preSearchFilters?y.preSearchFilters.reduce((T,A)=>A(T),v):v);return y.postSearchFilters?y.postSearchFilters.reduce((T,A)=>A(T),_):_};o.push(b)}const h=y.validateSearch;if(r&&h){const b=({search:v,next:S,meta:_})=>{const T=S(v);try{const A=uu(h,T);if(_&&A)for(const N in A)N in T||(_.defaulted||(_.defaulted=new Map)).set(N,A[N]);return{...T,...A}}catch{}return T};o.push(b)}}const f=(g,y,h)=>{if(g>=o.length){if(!c.search)return{};if(c.search===!0)return y;const v=va(c.search,y);return h&&(h.explicit=v),v}const b=(v,S)=>{if(S){const _=h||{};return{search:f(g+1,v,_),meta:_}}return f(g+1,v,h)};return o[g]({search:y,next:b,meta:h})};return f(0,a)}function mv(a,c){if(a!=="root"){let u;for(let r=c.length-1;r>=0;r--){const o=c[r];if(o.options.notFoundComponent)return o.id;u||(u=o.children&&o.id)}if(u)return u}return ga}function Bm(a,c){if(a===!1||a===null)return Object.create(null);if((a??!0)===!0)return c;const u=Object.assign(Object.create(null),c);return Object.assign(u,va(a,u))}function Hm(a,c){var r;const u=((r=a.options.params)==null?void 0:r.parse)??a.options.parseParams;u&&Object.assign(c,u(c))}function to(a,c){var u,r;return(r=(u=a.options[c])==null?void 0:u.preload)==null?void 0:r.call(u)}function gv(a,c){const u=to(a,"component");let r=to(a,"pendingComponent");return c&&(r?r=r.then(c):c()),u&&r?Promise.all([u,r]).then(()=>{}):u??r}function ya(a,c,u){const r=()=>c===!1?void 0:c?to(a,c):gv(a,u),o=a._lazy;if(o)return o===!0?r():o.then(r);if(!a.lazyFn)return r();const f=a.lazyFn().then(m=>{{const{id:g,...y}=m.options;Object.assign(a.options,y),a._lazy=!0}},m=>{throw a._lazy=void 0,m});return a._lazy=f,f.then(r)}function fo(a){const c=a.findIndex(u=>u.status!=="success"||u._notFound)+1;return c&&c{const o=()=>r(c);c.addEventListener("abort",o,{once:!0}),Promise.resolve(a).then(u,r).finally(()=>c.removeEventListener("abort",o))})}function Tl(a,c){return a.routesById[c.routeId]}function Ri(a,c,u){return v0(a)?[_e,a]:ba(a)?(a.routeId||(a.routeId=u),[bu,a]):c?(typeof(a==null?void 0:a.then)=="function"&&(a=new Error("A Promise was thrown",{cause:a})),[bn,a]):[Ve,a]}function ho(a,c){var r,o;let u=Ri(c,!0,a.id);if(u[0]!==bn)return u;try{(o=(r=a.options).onError)==null||o.call(r,u[1])}catch(f){u=Ri(f,!0,a.id)}return u}function ji(a,c,u,r,o){return o[0].signal.aborted?tl:yo(a,c,u,ho(u,r),o)}async function yv(a,c,u,r,o,f){var b,v;const[m,g]=c,y=u[0].signal,h=!!u[3];for(let S=u[6]??0;Sa.navigate({...Z,_fromLocation:m}),buildLocation:a.buildLocation,cause:h?"preload":_.cause,abortController:u[0],preload:h,matches:g,routeId:T.id};try{const Z=_._ctx||(_._ctx=T.options.context?T.options.context({...N,deps:_.loaderDeps,context:A})||{}:void 0);_.context={...A,...Z}}catch(Z){return vn(a,_),[S,ji(a,c,T,Z,u)]}if(y.aborted)return[S,tl];const O=_.paramsError??_.searchError;if(O!==void 0)return vn(a,_),[S,ji(a,c,T,O,u)];const D=T.options.beforeLoad;if(!D)continue;const k=_.status;S>=f&&(_.status="pending",(v=u[7])==null||v.call(u));try{Mi(a,_,"beforeLoad",u[0]);const Z=await zl(D({...N,search:_.search,context:_.context,...a.options.additionalContext}),y);if(y.aborted)return[S,tl];const B=yo(a,c,T,Ri(Z,!1,T.id),u);if(B[0]!==Ve)return vn(a,_),[S,B];_.context={..._.context,...Z}}catch(Z){return vn(a,_),[S,ji(a,c,T,Z,u)]}finally{_.status=k,Mi(a,_,!1,u[0])}}o()}function mo(a,c,u){var r;if(!(!u||--u[2])){if(((r=a._flights)==null?void 0:r.get(c.id))===u){const o=a._tx;if(o&&!o[0].signal.aborted&&!o[3].includes(c)&&o[3].some(f=>f.id===c.id)&&o[3].some(f=>f.isFetching==="beforeLoad"))return;a._flights.delete(c.id)}return u[1]}}function vn(a,c){var r;const u=c._flight;c._flight=void 0,(r=mo(a,c,u))==null||r.abort()}function de(a,c,u,r){var f;const o=[];for(const m of c)if(!(u!=null&&u.includes(m))){const g=m._flight;if(m._flight=void 0,r&&(g==null?void 0:g[2])===1&&((f=a._flights)==null?void 0:f.get(m.id))===g&&(u!=null&&u.some(y=>y.id===m.id)))g[2]=0;else{const y=mo(a,m,g);y&&o.push(y)}}for(const m of o)m.abort()}function go(a){for(const c of a){const u=c._flight;u&&u[2]++}}function Mi(a,c,u,r){var m;if(c.isFetching=u,r&&((m=a._tx)==null?void 0:m[0])!==r)return;const o=a.stores.byRoute.get(c.routeId),f=o==null?void 0:o.get();(f==null?void 0:f.id)===c.id&&o.set({...f,isFetching:u})}function x0(a,c,u,r,o,f,m){const g=c[0];return{params:u.params,location:g,navigate:y=>a.navigate({...y,_fromLocation:g}),cause:m?"preload":u.cause,abortController:o,preload:m,deps:u.loaderDeps,parentMatchPromise:f,context:u.context,route:r,...a.options.additionalContext}}async function qm(a,c,u,r,o,f,m){const g=m[0],y=g.signal;if(y.aborted)return tl;if(!o)return[Ve,void 0];let h=u._flight;Mi(a,u,"loader",g);try{if(!h){const b=new AbortController;h=[Promise.resolve().then(()=>o(x0(a,c,u,r,b,f,!!m[3]))).then(v=>Ri(v,!1,r.id),v=>Ri(v,!0,r.id)).then(v=>{var S;return v[0]!==Ve&&((S=a._flights)==null?void 0:S.get(u.id))===h&&(a._flights.delete(u.id),h[2]||b.abort()),v[0]===bn&&h[2]?ho(r,v[1]):v}),b,1],(a._flights??(a._flights=new Map)).set(u.id,h)}return u._flight=h,u.abortController=h[1],yo(a,c,r,await zl(h[0],y),m)}catch(b){if(b!==y||!y.aborted)throw b;return vn(a,u),tl}finally{Mi(a,u,!1,g)}}function Gm(a,c,u){c[0]!==_e&&(a.status="success",a.error=void 0,c[0]===Ve?(a.loaderData=c[1],a.invalid=!1,a.updatedAt=Date.now(),a.preload=u):a.invalid=!0)}function pv(a,c,u){const r=a._cache.get(c.id);if(r!==u||a._committed.some(f=>f.id===c.id&&f._flight===c._flight))return;const o={...c,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,a._cache.set(c.id,o),r&&vn(a,r)}function Ym(a,c){return c[0]===bn||c[0]===bu?{...a,status:c[0]===bn?"error":"notFound",error:c[1],_flight:void 0}:a}function vv(a,c,u,r,o,f,m){var J,xt;const g=c[1][u],y=Tl(a,g),h=!!f[3],b=a._cache.get(g.id);let v,S=!1,_;try{if(g.status==="success"&&(v=y.options.shouldReload,typeof v=="function"&&(v=v(x0(a,c,g,y,f[0],o,h))),f[0].signal.aborted&&(_=tl)),!_)if(g.status!=="success")S=!0;else{const rt=h||g.preload?y.options.preloadStaleTime??a.options.defaultPreloadStaleTime??3e4:y.options.staleTime??a.options.defaultStaleTime??0;S=!!(g.invalid||v||v===void 0&&Date.now()-g.updatedAt>=rt&&(f[5]||g.cause==="enter"||f[2].some(ot=>ot.routeId===g.routeId&&ot.id!==g.id)))}}catch(rt){g.invalid=!0,vn(a,g),_=ji(a,c,y,rt,f)}const T=y.options.loader,A=typeof T=="function",N=A?T:T==null?void 0:T.handler,O=!h||y.options.preload!==!1;let D=O&&T?(J=a._flights)==null?void 0:J.get(g.id):void 0;D===g._flight||_?D=void 0:D&&!S&&!h&&v===void 0?S=!0:S||(D=void 0);const k=!!(T&&S&&g.status==="success"&&!h&&!f[4]&&((A?void 0:T.staleReloadMode)??a.options.defaultStaleReloadMode)!=="blocking"),Z=S&&O,B=Z&&!k&&(g.status!=="success"||!!T),X=u>=m?f[7]:void 0,V=y.lazyFn&&y._lazy!==!0?X:void 0;if(Z&&!T&&(g.invalid=!1,g.updatedAt=Date.now()),D&&D[2]++,B){const rt=g._flight;g._flight=D,(xt=mo(a,g,rt))==null||xt.abort(),u>=m&&(g.status="pending"),X==null||X()}Z||(g.isFetching=!1);const $=(_?Promise.resolve(_):B?qm(a,c,g,y,N,o,f):Promise.resolve([Ve,g.loaderData])).then(rt=>(B&&(Gm(g,rt,h),rt[0]===Ve&&(T&&!f[0].signal.aborted&&pv(a,g,b),u>=m&&(g.status="pending"))),rt)),Q=zl(Promise.resolve().then(()=>ya(y,void 0,V)),f[0].signal).then(()=>{},rt=>c[1].some((ot,L)=>L<=u&&(ot.status==="error"||ot.status==="notFound"||ot._notFound))?void 0:[u,ji(a,c,y,rt,f)]).then(rt=>$.then(ot=>(B&&!rt&&ot[0]===Ve&&g.status==="pending"&&!f[0].signal.aborted&&(g.status="success",X==null||X()),rt)));if(r.push([u,$,Q]),!k)return $.then(rt=>Ym(g,rt));const I={...g,status:"pending",preload:!1,_flight:D};g.invalid=!1,g.isFetching="loader";const P=qm(a,c,I,y,N,o,f).then(rt=>(g.isFetching=!1,Gm(I,rt,!1),rt));return(c[2]??(c[2]=[])).push([u,P,Q,I]),P.then(rt=>Ym(I,rt))}async function eo(a,c,u,r,o=0){const f=u==null?void 0:u[1][1];let m=f!=null&&f.routeId?c.findIndex(g=>g.routeId===f.routeId):(u==null?void 0:u[0])??c.length-1;m<0&&(m=0);for(let g=m;g>=0;g--){const y=Tl(a,c[g]);try{const h=ya(y,!1);h&&await zl(h,r)}catch(h){if(h===r&&r.aborted)throw h}if(y.options.notFoundComponent)return g}return f!=null&&f.routeId?m:o}function _l(a,c){c[2]&&(de(a,c[2].map(u=>u[3])),c[2]=void 0)}async function km(a,c,u,r){let o;try{await Promise.all(a.map(f=>f[1].then(async m=>{const g=f[0];if(!(r&&g>=await r)){if(m[0]>=_e)throw[g,m];!o&&m[0]!==Ve&&(o=[g,m],await Promise.all((u??[]).map(y=>{if(!(y[0]<=g))return y[1].then(h=>{if(h[0]===_e)throw[y[0],h]})})))}})))}catch(f){return f}return c??o}function yo(a,c,u,r,o,f){for(;r[0]===_e;){const m=r[1],g=m.options;if(g.reloadDocument?o[3]:o[1]>=20)return r;try{return g.href&&g.reloadDocument?(a.resolveRedirect(m),r):[_e,m,a.buildLocation({...g,_fromLocation:c[0],_includeValidateSearch:!0})]}catch(y){r=f?[bn,y]:ho(u,y),f=!0}}return r}async function S0(a,c,u,r,o,f){const m=c[1];let g=await o,y=!1;const h=m.findIndex(_=>_._notFound),b=_=>_[1][0]===bu?eo(a,m,_,r.signal):_[0];let v=h<0?m.length:h;if(((g==null?void 0:g[1][0])??0)>=_e)v=0;else if(g){v=g[2]??(g[2]=await b(g));for(const _ of u){if(_[0]>=v)break;const T=await _[1];if(T[0]!==Ve&&T[0]<_e&&!("loaderData"in m[_[0]])){g=[_[0],T],v=g[2]=await b(g);break}}}for(const _ of u){if(_[0]>=v)break;const T=await _[2];if(T){g=T;break}}if(((g==null?void 0:g[1][0])??0)>=_e){const _=g[1];if(_[0]!==_e||_[1].options.reloadDocument||_[2])return _l(a,c),_;y=!0,g=[0,[bn,new Error("Too many redirects")]]}const S=g?g[2]??await b(g):h;if(S>=0){const _=g==null?void 0:g[1],T=_==null?void 0:_[0],A=m[S],N=_==null?void 0:_[1],O=()=>{_&&(A._notFound=void 0,T===bn?A.status="error":(N.routeId=A.routeId,A.routeId===a.routeTree.id?(A.status="success",A._notFound=!0):A.status="notFound"),A.error=N,A.isFetching=!1)};O(),_||f==null||f();const D=Tl(a,A);try{await zl(_?Promise.resolve().then(()=>ya(D,T===bn?"errorComponent":"notFoundComponent")):Promise.all([ya(D),ya(D,"notFoundComponent")]),r.signal)}catch(k){if(k===r.signal&&r.signal.aborted)return _l(a,c),tl}_?y&&(r.abort(),await Promise.all([...u.map(k=>k[1]),...u.map(k=>k[2]),...(c[2]??[]).map(k=>k[1])]),_l(a,c),de(a,m),O()):A.status="success"}return c}async function _0(a,c,u,r=0,o=c[1].length){var m,g;const f=c[1];for(let y=r;yD._notFound);if(a.options.notFoundMode!=="root"&&h>=0){const D=await eo(a,u,void 0,f,h);u[h]._notFound=void 0,u[D]._notFound=!0,h=D}let b=h<0?u.length:h+1,v=0;for(;v{for(let D=_;D=_e&&(b=0);A()}if(!f.aborted&&!r[3]){const D=[];for(const[k,Z]of a._flights??[])Z[2]||(a._flights.delete(k),D.push(Z[1]));for(const k of D)k.abort()}const O=S0(a,o,S,r[0],km(S,N,o[2]),r[7]);(g=o[2])!=null&&g.length&&(o[3]=km(o[2],void 0,void 0,O.then(D=>Ni(D)?0:fo(u).length,()=>0))),m=await O}catch(y){if(_l(a,o),y===f&&f.aborted)return tl;throw y}return Ni(m)?m:_0(a,m,f,r[6]===u.length?r[6]:0)}function no(a,c){var f,m;if(a._tx!==c)return;const u=c[3],r=a.stores.matches.get();let o=a._pending;for(let g=0;g0){o[3]=setTimeout(()=>no(a,c),D);return}o[2]=0}const N=u.map(D=>({...D,_flight:void 0}));N[g].status="pending";const O=o[4]=a.startTransition(()=>a.stores.setMatches(N),N).then(D=>(D&&a._pending===o&&o[4]===O&&!o[2]&&(o[2]=Date.now()+T),D));return}}function Si(a,c){var r;const u=a._pending;(a._tx===c||!((r=a._tx)!=null&&r[3].some(o=>o.id===(u==null?void 0:u[1]))))&&(clearTimeout(u==null?void 0:u[3]),a._pending=void 0)}async function Xm(a,c){const u=a._pending;if(!u)return;clearTimeout(u[3]);const r=u[2]-Date.now();if(!u[4]||r<=0||!fo(c[3]).some(f=>f.id===u[1]))return;let o;try{await zl(new Promise(f=>{o=setTimeout(f,r)}),c[0].signal)}catch{}clearTimeout(o)}function T0(a,c){a._committed=c,a.stores.setMatches(c)}function bv(a,c,u,r){const o=a._committed,f=a._cache;for(const y of u)y.preload=!1,r&&(y._assetEnd=void 0);const m=fo(u).length,g=new Map;{const y=Date.now();for(const h of[...o,...f.values()]){if(h.status!=="success"||u.some((v,S)=>v.id===h.id&&(S=(h.preload?b.options.preloadGcTime??a.options.defaultPreloadGcTime??3e5:b.options.gcTime??a.options.defaultGcTime??3e5)||g.set(h.id,f.get(h.id)===h?h:{...h,_flight:void 0,isFetching:!1,context:{}})}}c[3]=[],a._cache=g,T0(a,u),de(a,[...f.values(),...o],[...u,...g.values()]),ov(a,o,u,c)}async function eu(a,c){let u=a._tx;for(;u&&u!==c;){if(await u[5],a._tx===u)return;u=a._tx}}function E0(a,c,u){const r=u[1].options,o=u[2];if(!o)return a.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return a.navigate({href:o.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=c[1]+1,a._pendingLocation=o;const f=a.commitLocation({...o,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{a._pendingLocation===o&&(a._pendingLocation=void 0)}),f}async function xv(a,c,u,r,o){const f=u.map(y=>({...y}));go(f);for(const y of r)vn(a,f[y[0]]),f[y[0]]=y[3];const m=[c[2],f];let g;try{g=await S0(a,m,r,c[0],o)}catch(y){throw de(a,f),y}if(Ni(g)){de(a,f),g[0]===_e&&a._tx===c&&a._committed===u&&await E0(a,c,g);return}if(await _0(a,g,c[0].signal),a._tx!==c||a._committed!==u){de(a,f);return}for(const y of f){const h=a._cache.get(y.id);h!=null&&h._flight&&h._flight===y._flight&&(a._cache.delete(y.id),vn(a,h))}T0(a,f),de(a,u,f)}async function Sv(a,c,u,r,o,f){const m=await z0(a,c[2],c[3],[c[0],c[1],a._committed,void 0,o,u,f,r]);if(Ni(m)){const v=m[0]===_e&&a._tx===c;if((!v||m[1].options.reloadDocument)&&Si(a,c),de(a,c[3]),c[3]=[],!v)return;if(a._tx!==c){Si(a,c);return}await E0(a,c,m);return}const g=m[1];if(a._tx===c&&await Xm(a,c),a._tx!==c){Si(a,c),de(a,g),_l(a,m);return}const y=c[2],h=vu(y,a.stores.resolvedLocation.get()),b=m[2];await a.startViewTransition(async()=>{var _;if(a._tx===c&&await Xm(a,c),a._tx!==c){Si(a,c),de(a,g),_l(a,m);return}const v=()=>{Si(a,c),bv(a,c,g,f),a._tx===c&&(a.emit({type:"onLoad",...h}),a._tx===c&&a.emit({type:"onBeforeRouteMount",...h}))},S=await a.startTransition(v,g);if(a._tx!==c){_l(a,m);return}b!=null&&b.length&&xv(a,c,g,b,m[3]).catch(console.error),a.batch(()=>{a.stores.resolvedLocation.set(y),a.stores.status.set("idle"),a._tx===c&&a.emit({type:"onResolved",...h}),S&&a._tx===c&&a.emit({type:"onRendered",...h})}),a._tx===c&&((_=a._commitPromise)==null||_.resolve(),a._commitPromise=void 0)})}async function _v(a,c){var Z;const u=a._tx,r=a.stores.resolvedLocation.get(),o=r??a.stores.location.get(),f=a.latestLocation,m=a._pendingLocation,g=(m==null?void 0:m.href)===f.href?m._redirects??0:0,y=a._handoff,h=y==null?void 0:y[0](),b=new AbortController,v=a._preflight;if(a._preflight=b,h||y==null||y[1](),v==null||v.abort(),!b.signal.aborted){const B=vu(f,r);a.emit({type:"onBeforeNavigate",...B}),b.signal.aborted||a.emit({type:"onBeforeLoad",...B})}if(b.signal.aborted){await eu(a,u);return}const S=o.href===f.href;let _=b;const T=a.matchRoutes(f,{_controller:b});go(T);const A=h?y[1](T):void 0;if(A?_=h:h==null||h.abort(),b.signal.aborted){de(a,T),await eu(a,u);return}a._preflight=void 0;let N;const O=()=>Sv(a,k,S,()=>no(a,k),c==null?void 0:c.sync,A),D=c!=null&&c.sync?new Promise(B=>N=B):Promise.resolve().then(O).then(),k=[_,g,f,T,Date.now(),D];if(a._tx=k,u){for(const B of a.stores.matches.get()){if(a._tx!==k)break;B.isFetching&&Mi(a,B,!1)}u[0].abort(),de(a,u[3],k[3],!0)}if(a._tx!==k){de(a,k[3]),k[3]=[],N==null||N(),await eu(a,k);return}a.batch(()=>{a.stores.status.set("pending"),a.stores.location.set(f)}),(A||!a._committed.length&&((Z=T[0])==null?void 0:Z.status)!=="success"&&!T.some(B=>B._notFound))&&no(a,k),N==null||N(O()),await D,await eu(a,k)}async function zv(a,c){let u=a.buildLocation(c);for(let r=0;;r++){const o=a._committed,f=new AbortController;let m,g,y;try{try{m=a.matchRoutes(u,{_controller:f}),go(m),g=(a._preloads??(a._preloads=new Map)).set(f,m),y=await z0(a,u,m,[f,r,o,!0])}finally{g&&(g=g.delete(f),de(a,m)),f.abort()}if(!Ni(y))return y[1];if(!g||y.length<3)return;u=y[2]}catch(h){ba(h)||console.error(h);return}}}const Tv="Error preloading route! ☝️";var j0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=c=>{var y,h;this.originalIndex=c.originalIndex;const u=this.options,r=!(u!=null&&u.path)&&!(u!=null&&u.id);this.parentRoute=(h=(y=this.options).getParentRoute)==null?void 0:h.call(y),r?this._path=ga:this.parentRoute||so();let o=r?ga:u==null?void 0:u.path;o&&o!=="/"&&(o=y0(o));const f=(u==null?void 0:u.id)||o;let m=r?ga:au([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),m!=="__root__"&&(m=au(["/",m]));const g=m==="__root__"?"/":au([this.parentRoute.fullPath,o]);this._path=o,this._id=m,this._fullPath=g,this._to=pn(g)},this.addChildren=c=>this._addFileChildren(c),this._addFileChildren=c=>(Array.isArray(c)&&(this.children=c),typeof c=="object"&&c!==null&&(this.children=Object.values(c)),this),this._addFileTypes=()=>this,this.updateLoader=c=>(Object.assign(this.options,c),this),this.update=c=>(Object.assign(this.options,c),this),this.lazy=c=>(this.lazyFn=c,this),this.redirect=c=>lv({from:this.fullPath,...c}),this.options=a||{},this.isRoot=!(a!=null&&a.getParentRoute),a!=null&&a.id&&(a!=null&&a.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Ev=class extends j0{constructor(a){super(a)}},po=class extends F.Component{constructor(...a){super(...a),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(a,c){const u=a.getResetKey();return c.error&&c.resetKey!==u?{resetKey:u,error:null}:{resetKey:u}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,c){var u,r;(r=(u=this.props).onCatch)==null||r.call(u,a,c)}render(){const a=this.state.error;return a?F.createElement(this.props.errorComponent??jv,{error:a,reset:this.reset}):this.props.children}};function jv({error:a}){const[c,u]=F.useState(!1);return x.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[x.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[x.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),x.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(r=>!r),children:c?"Hide Error":"Show Error"})]}),x.jsx("div",{style:{height:".25rem"}}),c?x.jsx("div",{children:x.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?x.jsx("code",{children:a.message}):null})}):null]})}function Av({children:a,fallback:c=null}){return x.jsx(yu.Fragment,{children:A0()?a:c})}function A0(){return yu.useSyncExternalStore(Cv,()=>!0,()=>!1)}function Cv(){return()=>{}}var C0=F.createContext(null);function Be(a){return F.useContext(C0)}var xu=F.createContext(void 0),Nv=F.createContext(void 0),Bt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(Bt||{});function Rv({update:a,notify:c,unwatched:u}){return{link:r,unlink:o,propagate:f,checkDirty:m,shallowPropagate:g};function r(h,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===h)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===h){_.version=v,b.depsTail=_;return}const T=h.subsTail;if(T!==void 0&&T.version===v&&T.sub===b)return;const A=b.depsTail=h.subsTail={version:v,dep:h,sub:b,prevDep:S,nextDep:_,prevSub:T,nextSub:void 0};_!==void 0&&(_.prevDep=A),S!==void 0?S.nextDep=A:b.deps=A,T!==void 0?T.nextSub=A:h.subs=A}function o(h,b=h.sub){const v=h.dep,S=h.prevDep,_=h.nextDep,T=h.nextSub,A=h.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,T!==void 0?T.prevSub=A:v.subsTail=A,A!==void 0?A.nextSub=T:(v.subs=T)===void 0&&u(v),_}function f(h){let b=h.nextSub,v;t:do{const S=h.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&y(h,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&c(S),_&1){const T=S.subs;if(T!==void 0){const A=(h=T).nextSub;A!==void 0&&(v={value:b,prev:v},b=A);continue}}if((h=b)!==void 0){b=h.nextSub;continue}for(;v!==void 0;)if(h=v.value,v=v.prev,h!==void 0){b=h.nextSub;continue t}break}while(!0)}function m(h,b){let v,S=0,_=!1;t:do{const T=h.dep,A=T.flags;if(b.flags&16)_=!0;else if((A&17)===17){if(a(T)){const N=T.subs;N.nextSub!==void 0&&g(N),_=!0}}else if((A&33)===33){(h.nextSub!==void 0||h.prevSub!==void 0)&&(v={value:h,prev:v}),h=T.deps,b=T,++S;continue}if(!_){const N=h.nextDep;if(N!==void 0){h=N;continue}}for(;S--;){const N=b.subs,O=N.nextSub!==void 0;if(O?(h=v.value,v=v.prev):h=N,_){if(a(b)){O&&g(N),b=h.sub;continue}_=!1}else b.flags&=-33;b=h.sub;const D=h.nextDep;if(D!==void 0){h=D;continue t}}return _}while(!0)}function g(h){do{const b=h.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&c(b))}while((h=h.nextSub)!==void 0)}function y(h,b){let v=b.depsTail;for(;v!==void 0;){if(v===h)return!0;v=v.prevDep}return!1}}function Mv(a,c,u){var f,m,g;const r=typeof a=="object",o=r?a:void 0;return{next:(f=r?a.next:a)==null?void 0:f.bind(o),error:(m=r?a.error:c)==null?void 0:m.bind(o),complete:(g=r?a.complete:u)==null?void 0:g.bind(o)}}const lo=[];let su=0;const{link:Vm,unlink:wv,propagate:Dv,checkDirty:N0,shallowPropagate:Qm}=Rv({update(a){return a._update()},notify(a){lo[ao++]=a,a.flags&=~Bt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=Bt.Mutable|Bt.Dirty,gu(a))}});let nu=0,ao=0,Xe,io=0;function Ov(a){try{++io,a()}finally{--io||R0()}}function gu(a){const c=a.depsTail;let u=c!==void 0?c.nextDep:a.deps;for(;u!==void 0;)u=wv(u,a)}function R0(){if(!(io>0)){for(;nu{var h;o.get(),g.current?(h=m.next)==null||h.call(m,o._snapshot):g.current=!0});return{unsubscribe:()=>{y.stop()}}},_update(f){const m=Xe,g=(c==null?void 0:c.compare)??Object.is;if(u)Xe=o,++su,o.depsTail=void 0;else if(f===void 0)return!1;u&&(o.flags=Bt.Mutable|Bt.RecursedCheck);try{const y=o._snapshot,h=typeof f=="function"?f(y):f===void 0&&u?r(y):f;return y===void 0||!g(y,h)?(o._snapshot=h,!0):!1}finally{Xe=m,u&&(o.flags&=~Bt.RecursedCheck),gu(o)}}};return u?(o.flags=Bt.Mutable|Bt.Dirty,o.get=function(){const f=o.flags;if(f&Bt.Dirty||f&Bt.Pending&&N0(o.deps,o)){if(o._update()){const m=o.subs;m!==void 0&&Qm(m)}}else f&Bt.Pending&&(o.flags=f&~Bt.Pending);return Xe!==void 0&&Vm(o,Xe,su),o._snapshot}):o.set=function(f){if(o._update(f)){const m=o.subs;m!==void 0&&(Dv(m),Qm(m),R0())}},o}function Uv(a){const c=()=>{const r=Xe;Xe=u,++su,u.depsTail=void 0,u.flags=Bt.Watching|Bt.RecursedCheck;try{return a()}finally{Xe=r,u.flags&=~Bt.RecursedCheck,gu(u)}},u={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Bt.Watching|Bt.RecursedCheck,notify(){const r=this.flags;r&Bt.Dirty||r&Bt.Pending&&N0(this.deps,this)?c():this.flags=Bt.Watching},stop(){this.flags=Bt.None,this.depsTail=void 0,gu(this)}};return c(),u}var Gr={exports:{}},Yr={},kr={exports:{}},Xr={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Km;function Lv(){if(Km)return Xr;Km=1;var a=wi();function c(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var u=typeof Object.is=="function"?Object.is:c,r=a.useState,o=a.useEffect,f=a.useLayoutEffect,m=a.useDebugValue;function g(v,S){var _=S(),T=r({inst:{value:_,getSnapshot:S}}),A=T[0].inst,N=T[1];return f(function(){A.value=_,A.getSnapshot=S,y(A)&&N({inst:A})},[v,_,S]),o(function(){return y(A)&&N({inst:A}),v(function(){y(A)&&N({inst:A})})},[v]),m(_),_}function y(v){var S=v.getSnapshot;v=v.value;try{var _=S();return!u(v,_)}catch{return!0}}function h(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:g;return Xr.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,Xr}var Jm;function Bv(){return Jm||(Jm=1,kr.exports=Lv()),kr.exports}/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wm;function Hv(){if(Wm)return Yr;Wm=1;var a=wi(),c=Bv();function u(h,b){return h===b&&(h!==0||1/h===1/b)||h!==h&&b!==b}var r=typeof Object.is=="function"?Object.is:u,o=c.useSyncExternalStore,f=a.useRef,m=a.useEffect,g=a.useMemo,y=a.useDebugValue;return Yr.useSyncExternalStoreWithSelector=function(h,b,v,S,_){var T=f(null);if(T.current===null){var A={hasValue:!1,value:null};T.current=A}else A=T.current;T=g(function(){function O(X){if(!D){if(D=!0,k=X,X=S(X),_!==void 0&&A.hasValue){var V=A.value;if(_(V,X))return Z=V}return Z=X}if(V=Z,r(k,X))return V;var $=S(X);return _!==void 0&&_(V,$)?(k=X,V):(k=X,Z=$)}var D=!1,k,Z,B=v===void 0?null:v;return[function(){return O(b())},B===null?void 0:function(){return O(B())}]},[b,v,S,_]);var N=o(h,T[0],T[1]);return m(function(){A.hasValue=!0,A.value=N},[N]),y(N),N},Yr}var Fm;function qv(){return Fm||(Fm=1,Gr.exports=Hv()),Gr.exports}var Gv=qv();function Yv(a,c){return a===c}function xn(a,c,u=Yv){const r=F.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:g}=a.subscribe(m);return g},[a]),o=F.useCallback(()=>a==null?void 0:a.get(),[a]);return Gv.useSyncExternalStoreWithSelector(r,o,o,c,u)}var $m={};function M0(a,c){const u=F.useRef();return r=>{const o=a!=null&&a.select?a.select(r):r;return(a==null?void 0:a.structuralSharing)??c.options.defaultStructuralSharing?u.current=Sl(u.current,o):o}}function El(a){const c=Be(),u=F.useContext(a.from?Nv:xu),r=a.from??u,o=c.stores.getMatchStore(r),f=M0(a,c),m=xn(o,g=>g?f(g):$m);if(m!==$m)return m;(a.shouldThrow??!0)&&so()}function w0(a){return El({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:c=>a.select?a.select(c.loaderData):c.loaderData})}function D0(a){const{select:c,...u}=a;return El({...u,select:r=>c?c(r.loaderDeps):r.loaderDeps})}function Su(a){return El({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:c=>{const u=a.strict===!1?c.params:c._strictParams;return a.select?a.select(u):u}})}function O0(a){return El({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:c=>a.select?a.select(c.search):c.search})}function U0(a){const c=Be();return F.useCallback(u=>c.navigate({...u,from:u.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,c])}function L0(a){return El({...a,select:c=>a.select?a.select(c.context):c.context})}function Vr(a){const c=F.useRef(a);return In(c.current,a,{ignoreUndefined:!1})||(c.current=a),c.current}function kv(a,c){return a[0]===c[0]&&a[1]===c[1]&&a[2]===c[2]}function Xv(a,c,u){if(a!=null&&a.external)return ou(a.href,u)?void 0:a.href;if(!Fv(c)&&!(typeof c!="string"||c.indexOf(":")===-1))try{return new URL(c),ou(c,u)?void 0:c}catch{}}function Vv(a,c,u,r,o,f){if(f)return!1;if(u!=null&&u.exact){if(!Gp(a.pathname,c.pathname,r))return!1}else{const m=du(a.pathname,r),g=du(c.pathname,r);if(!(m.startsWith(g)&&(m.length===g.length||m[g.length]==="/")))return!1}return((u==null?void 0:u.includeSearch)??!0)&&!In(a.search,c.search,{partial:!(u!=null&&u.exact),ignoreUndefined:!(u!=null&&u.explicitUndefined)})?!1:u!=null&&u.includeHash?o&&a.hash===c.hash:!0}function Qv(a,c){const u=Be(),r=_p(c),{activeProps:o,inactiveProps:f,activeOptions:m,to:g,preload:y,preloadDelay:h,preloadIntentProximity:b,hashScrollIntoView:v,replace:S,startTransition:_,resetScroll:T,viewTransition:A,children:N,target:O,disabled:D,style:k,className:Z,onClick:B,onBlur:X,onFocus:V,onMouseEnter:$,onMouseLeave:Q,onTouchStart:I,ignoreBlocker:P,params:J,search:xt,hash:rt,state:ot,mask:L,reloadDocument:K,unsafeRelative:lt,from:vt,_fromLocation:Tt,...E}=a,Y=A0(),W=Vr(a.search),et=Vr(a.params),ct=Vr(m),st=F.useMemo(()=>a,[u,a.from,a._fromLocation,a.hash,a.to,W,et,a.state,a.mask,a.unsafeRelative]),St=F.useCallback(Kt=>{const Ht=u.buildLocation({_fromLocation:Kt,...st}),We=Wv(Ht.maskedLocation?Ht.maskedLocation.publicHref:Ht.publicHref,Ht.maskedLocation?Ht.maskedLocation.external:Ht.external,u.history,D),ja=Xv(We,g,u.protocolAllowlist);return[We==null?void 0:We.href,ja,Vv(Kt,Ht,ct,u.basepath,Y,ja!==void 0)]},[ct,D,Y,st,u,g]),[$t,wt,Ze]=xn(u.stores.location,St,kv),Ke=Ze?va(o,{})??Zv:Qr,Sn=Ze?Qr:va(f,{})??Qr,_a=[Z,Ke.className,Sn.className].filter(Boolean).join(" "),He=(k||Ke.style||Sn.style)&&{...k,...Ke.style,...Sn.style},jl=F.useRef(!1),De=a.reloadDocument||wt||D?!1:y??u.options.defaultPreload,za=h??u.options.defaultPreloadDelay??0,Je=F.useCallback(()=>{u.preloadRoute(st).catch(Kt=>{console.warn(Kt),console.warn(Tv)})},[u,st]),el=F.useCallback(Kt=>{if(!Kt){Zr(r);return}if(!(Kt.isIntersecting??De==="intent")){Kt.isIntersecting===!1&&Zr(r);return}if(!za){Je();return}Ai.has(r)||Ai.set(r,setTimeout(()=>{Ai.delete(r),Je()},za))},[Je,r,De,za]);Sp(r,el,De!=="viewport"),F.useEffect(()=>{jl.current||De==="render"&&(Je(),jl.current=!0)},[Je,De]);const Ta=Kt=>{const Ht=Kt.currentTarget.getAttribute("target"),We=O!==void 0?O:Ht;!D&&!(Kt.metaKey||Kt.altKey||Kt.ctrlKey||Kt.shiftKey)&&!Kt.defaultPrevented&&(!We||We==="_self")&&Kt.button===0&&(Kt.preventDefault(),u.navigate({...st,replace:S,resetScroll:T,hashScrollIntoView:v,startTransition:_,viewTransition:A,ignoreBlocker:P}))};if(wt)return{...E,ref:r,href:wt,...N&&{children:N},...O&&{target:O},...D&&{disabled:D},...k&&{style:k},...Z&&{className:Z},...B&&{onClick:B},...X&&{onBlur:X},...V&&{onFocus:V},...$&&{onMouseEnter:$},...Q&&{onMouseLeave:Q},...I&&{onTouchStart:I}};const Ea=()=>{De==="intent"&&Je()},Oi=()=>{De==="intent"&&Zr(r)};return{...E,...Ke,...Sn,href:$t,ref:r,onClick:fa([B,Ta]),onBlur:fa([X,Oi]),onFocus:fa([V,el]),onMouseEnter:fa([$,el]),onMouseLeave:fa([Q,Oi]),onTouchStart:fa([I,Ea]),disabled:!!D,target:O,...He&&{style:He},..._a&&{className:_a},...D&&Kv,...Ze&&Jv}}var Qr={},Zv={className:"active"},Kv={role:"link","aria-disabled":!0},Jv={"data-status":"active","aria-current":"page"},Ai=new WeakMap,Zr=a=>{clearTimeout(Ai.get(a)),Ai.delete(a)},fa=a=>c=>{for(const u of a)if(u){if(c.defaultPrevented)return;u(c)}};function Wv(a,c,u,r){if(!r)return c?{href:a,external:!0}:{href:u.createHref(a)||"/",external:!1}}function Fv(a){if(typeof a!="string")return!1;const c=a.charCodeAt(0);return c===47?a.charCodeAt(1)!==47:c===46}var Qe=F.forwardRef((a,c)=>{const{_asChild:u,...r}=a,{type:o,...f}=Qv(r,c),m=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!u){const{disabled:g,...y}=f;return F.createElement("a",y,m)}return F.createElement(u,f,m)}),$v=class extends j0{constructor(a){super(a),this.useMatch=c=>El({select:c==null?void 0:c.select,from:this.id,structuralSharing:c==null?void 0:c.structuralSharing}),this.useRouteContext=c=>L0({...c,from:this.id}),this.useSearch=c=>O0({select:c==null?void 0:c.select,structuralSharing:c==null?void 0:c.structuralSharing,from:this.id}),this.useParams=c=>Su({select:c==null?void 0:c.select,structuralSharing:c==null?void 0:c.structuralSharing,from:this.id}),this.useLoaderDeps=c=>D0({...c,from:this.id}),this.useLoaderData=c=>w0({...c,from:this.id}),this.useNavigate=()=>U0({from:this.fullPath}),this.Link=yu.forwardRef((c,u)=>x.jsx(Qe,{ref:u,from:this.fullPath,...c}))}};function _u(a){return new $v(a)}var Iv=class extends Ev{constructor(a){super(a),this.useMatch=c=>El({select:c==null?void 0:c.select,from:this.id,structuralSharing:c==null?void 0:c.structuralSharing}),this.useRouteContext=c=>L0({...c,from:this.id}),this.useSearch=c=>O0({select:c==null?void 0:c.select,structuralSharing:c==null?void 0:c.structuralSharing,from:this.id}),this.useParams=c=>Su({select:c==null?void 0:c.select,structuralSharing:c==null?void 0:c.structuralSharing,from:this.id}),this.useLoaderDeps=c=>D0({...c,from:this.id}),this.useLoaderData=c=>w0({...c,from:this.id}),this.useNavigate=()=>U0({from:this.fullPath}),this.Link=yu.forwardRef((c,u)=>x.jsx(Qe,{ref:u,from:this.fullPath,...c}))}};function Pv(a){return new Iv(a)}function tb(a){const c=Be(),u=`not-found-${xn(c.stores.location,r=>r.pathname)}-${xn(c.stores.status,r=>r)}`;return x.jsx(po,{getResetKey:()=>u,onCatch:(r,o)=>{var f;if(ba(r))(f=a.onCatch)==null||f.call(a,r,o);else throw r},errorComponent:({error:r})=>{var o;if(ba(r))return(o=a.fallback)==null?void 0:o.call(a,r);throw r},children:a.children})}function eb(){return x.jsx("p",{children:"Not Found"})}function da(a){return x.jsx(x.Fragment,{children:a.children})}function B0(a,c,u){return c.options.notFoundComponent?x.jsx(c.options.notFoundComponent,{...u}):a.options.defaultNotFoundComponent?x.jsx(a.options.defaultNotFoundComponent,{...u}):x.jsx(eb,{})}function zu(a,c){const u=(c==null?void 0:c.options.pendingComponent)??a.options.defaultPendingComponent;return u?x.jsx(u,{}):null}var nb=(a,c)=>a[0]===c[0]&&a[1]===c[1],H0=(a,c,u)=>!c.isRoot||c.options.shellComponent||c.options.wrapInSuspense||u===!1||u==="data-only"||!a.ssr,q0=F.memo(function({routeId:c}){const u=Be();return x.jsx(lb,{router:u,match:xn(u.stores.getMatchStore(c),r=>r)})});function lb({router:a,match:c}){var v,S;const u=a.routesById[c.routeId],r=zu(a,u),o=u.options.errorComponent??a.options.defaultErrorComponent,f=u.options.onCatch??a.options.defaultOnCatch,m=u.isRoot?u.options.notFoundComponent??((v=a.options.notFoundRoute)==null?void 0:v.options.component):u.options.notFoundComponent,g=c.ssr===!1||c.ssr==="data-only",y=H0(a,u,c.ssr)&&(u.options.wrapInSuspense??r??(((S=u.options.errorComponent)==null?void 0:S.preload)||g))?F.Suspense:da,h=o?po:da,b=m?tb:da;return x.jsxs(u.isRoot?u.options.shellComponent??da:da,{children:[x.jsx(xu.Provider,{value:c.routeId,children:x.jsx(y,{fallback:r,children:x.jsx(h,{getResetKey:()=>c,errorComponent:o,onCatch:(_,T)=>{if(ba(_))throw _.routeId??(_.routeId=c.routeId),_;f==null||f(_,T)},children:x.jsx(b,{fallback:_=>{if(_.routeId??(_.routeId=c.routeId),_.routeId!==c.routeId)throw _;return F.createElement(m,_)},children:g?x.jsx(Av,{fallback:r,children:x.jsx(Im,{match:c})}):x.jsx(Im,{match:c})})})})}),null]})}var Im=F.memo(function({match:c}){const u=Be(),r=c.routeId,o=u.routesById[r],f=F.useMemo(()=>{var y;const g=(y=o.options.remountDeps??u.options.defaultRemountDeps)==null?void 0:y({routeId:r,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return g?JSON.stringify(g):void 0},[r,c.loaderDeps,c._strictParams,c._strictSearch,o.options.remountDeps,u.options.defaultRemountDeps]),m=F.useMemo(()=>{const g=o.options.component??u.options.defaultComponent;return g?x.jsx(g,{},f):x.jsx(co,{})},[f,o.options.component,u.options.defaultComponent]);if(c.status==="pending"){if(u.ssr&&!H0(u,o,c.ssr))return m;if(u._tx)throw u._tx[5];return zu(u,o)}if(c.status==="notFound")return B0(u,o,c.error);if(c.status==="error")throw c.error;return m}),co=F.memo(function(){const c=Be(),u=F.useContext(xu);let r,o,f;{const g=c.stores.getMatchStore(u);[r,o]=xn(g,y=>[!!y._notFound,y.error],nb),f=xn(c.stores.ids,y=>y[y.indexOf(u)+1])}if(r)return B0(c,c.routesById[u],o);if(!f)return null;const m=x.jsx(q0,{routeId:f});return u===ga?x.jsx(F.Suspense,{fallback:zu(c),children:m}):m});function G0(a,c){const u=a[1];a.length=0,u==null||u(c)}function ab({t:a}){const c=Be(),u=c._rendered??(c._rendered=[]);return c.startTransition=(r,o)=>new Promise(f=>{G0(u,!1),u.push(o,f),a(c),F.startTransition(r)}),s0(()=>{const r=c.history.subscribe(c.load);c.updateLatestLocation();const o=c.latestLocation,f=c.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(pn(o.publicHref)!==pn(f.publicHref))return c.commitLocation({...f,replace:!0,ignoreBlocker:!0}),r;const m=c.stores.resolvedLocation.get();return(m==null?void 0:m.href)===o.href&&m.state.__TSR_key===o.state.__TSR_key?u.push(c.stores.matches.get(),g=>{g&&c.emit({type:"onRendered",...vu(m,m)})}):c._tx||c.load({sync:!0}).catch(console.error),r},[c,c.history]),null}function ib(){const a=Be(),c=a.routesById[ga],u=zu(a,c),r=a.ssr?da:F.Suspense,o=x.jsxs(x.Fragment,{children:[x.jsx(ab,{t:F.useState()[1]}),x.jsx(r,{fallback:u,children:x.jsx(cb,{})})]});return a.options.InnerWrap?x.jsx(a.options.InnerWrap,{children:o}):o}function cb(){const a=Be(),c=a._rendered,u=xn(a.stores.matches,m=>c[0]??m),r=u[0],o=r==null?void 0:r.routeId;s0(()=>{c[0]===u&&G0(c,!0)},[c,u]);const f=o?x.jsx(q0,{routeId:o}):null;return x.jsx(xu.Provider,{value:o,children:a.options.disableGlobalCatchBoundary?f:x.jsx(po,{getResetKey:()=>r,onCatch:void 0,children:f})})}var ub=a=>({createMutableStore:Zm,createReadonlyStore:Zm,batch:Ov}),sb=a=>new rb(a),rb=class extends fv{constructor(a){super(a,ub)}};function ob({router:a,children:c,...u}){o0(u)&&a.update({...a.options,...u,context:{...a.options.context,...u.context}});const r=x.jsx(C0.Provider,{value:a,children:c});return a.options.Wrap?x.jsx(a.options.Wrap,{children:r}):r}function fb({router:a,...c}){return x.jsx(ob,{router:a,...c,children:x.jsx(ib,{})})}function db(a){const c=Be({warn:(a==null?void 0:a.router)===void 0}),u=(a==null?void 0:a.router)||c;return xn(u.stores.__store,M0(a,u))}var Kr={exports:{}},_i={},Jr={exports:{}},Wr={};/** * @license React * scheduler.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Pm;function hb(){return Pm||(Pm=1,(function(a){function c(L,K){var lt=L.length;L.push(K);t:for(;0>>1,Tt=L[vt];if(0>>1;vto(W,lt))eto(ct,W)?(L[vt]=ct,L[et]=lt,vt=et):(L[vt]=W,L[Y]=lt,vt=Y);else if(eto(ct,lt))L[vt]=ct,L[et]=lt,vt=et;else break t}}return K}function o(L,K){var lt=L.sortIndex-K.sortIndex;return lt!==0?lt:L.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var m=Date,g=m.now();a.unstable_now=function(){return m.now()-g}}var y=[],h=[],b=1,v=null,S=3,_=!1,T=!1,A=!1,N=!1,O=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function Z(L){for(var K=u(h);K!==null;){if(K.callback===null)r(h);else if(K.startTime<=L)r(h),K.sortIndex=K.expirationTime,c(y,K);else break;K=u(h)}}function B(L){if(A=!1,Z(L),!T)if(u(y)!==null)T=!0,X||(X=!0,J());else{var K=u(h);K!==null&&ot(B,K.startTime-L)}}var X=!1,V=-1,$=5,Q=-1;function I(){return N?!0:!(a.unstable_now()-Q<$)}function P(){if(N=!1,X){var L=a.unstable_now();Q=L;var K=!0;try{t:{T=!1,A&&(A=!1,D(V),V=-1),_=!0;var lt=S;try{e:{for(Z(L),v=u(y);v!==null&&!(v.expirationTime>L&&I());){var vt=v.callback;if(typeof vt=="function"){v.callback=null,S=v.priorityLevel;var Tt=vt(v.expirationTime<=L);if(L=a.unstable_now(),typeof Tt=="function"){v.callback=Tt,Z(L),K=!0;break e}v===u(y)&&r(y),Z(L)}else r(y);v=u(y)}if(v!==null)K=!0;else{var E=u(h);E!==null&&ot(B,E.startTime-L),K=!1}}break t}finally{v=null,S=lt,_=!1}K=void 0}}finally{K?J():X=!1}}}var J;if(typeof k=="function")J=function(){k(P)};else if(typeof MessageChannel<"u"){var xt=new MessageChannel,rt=xt.port2;xt.port1.onmessage=P,J=function(){rt.postMessage(null)}}else J=function(){O(P,0)};function ot(L,K){V=O(function(){L(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125vt?(L.sortIndex=lt,c(h,L),u(y)===null&&L===u(h)&&(A?(D(V),V=-1):A=!0,ot(B,lt-vt))):(L.sortIndex=Tt,c(y,L),T||_||(T=!0,X||(X=!0,J()))),L},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(L){var K=S;return function(){var lt=S;S=K;try{return L.apply(this,arguments)}finally{S=lt}}}})(Wr)),Wr}var t0;function mb(){return t0||(t0=1,Jr.exports=hb()),Jr.exports}var Fr={exports:{}},le={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var e0;function gb(){if(e0)return le;e0=1;var a=wi();function c(y){var h="https://react.dev/errors/"+y;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(c){console.error(c)}}return a(),Fr.exports=gb(),Fr.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l0;function pb(){if(l0)return _i;l0=1;var a=mb(),c=wi(),u=yb();function r(t){var e="https://react.dev/errors/"+t;if(1Tt||(t.current=vt[Tt],vt[Tt]=null,Tt--)}function W(t,e){Tt++,vt[Tt]=t.current,t.current=e}var et=E(null),ct=E(null),st=E(null),St=E(null);function $t(t,e){switch(W(st,e),W(ct,t),W(et,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?kh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=kh(e),t=Xh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Y(et),W(et,t)}function wt(){Y(et),Y(ct),Y(st)}function Ze(t){t.memoizedState!==null&&W(St,t);var e=et.current,n=Xh(e,t.type);e!==n&&(W(ct,t),W(et,n))}function Ke(t){ct.current===t&&(Y(et),Y(ct)),St.current===t&&(Y(St),gi._currentValue=lt)}var Sn,_a;function He(t){if(Sn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Sn=e&&e[1]||"",_a=-1)":-1i||z[l]!==M[i]){var H=` `+z[l].replace(" at new "," at ");return t.displayName&&H.includes("")&&(H=H.replace("",t.displayName)),H}while(1<=l&&0<=i);break}}}finally{jl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?He(n):""}function za(t,e){switch(t.tag){case 26:case 27:case 5:return He(t.type);case 16:return He("Lazy");case 13:return t.child!==e&&e!==null?He("Suspense Fallback"):He("Suspense");case 19:return He("SuspenseList");case 0:case 15:return De(t.type,!1);case 11:return De(t.type.render,!1);case 1:return De(t.type,!0);case 31:return He("Activity");default:return""}}function Je(t){try{var e="",n=null;do e+=za(t,n),n=t,t=t.return;while(t);return e}catch(l){return` Error generating stack: `+l.message+` `+l.stack}}var el=Object.prototype.hasOwnProperty,Ta=a.unstable_scheduleCallback,Ea=a.unstable_cancelCallback,Oi=a.unstable_shouldYield,Kt=a.unstable_requestPaint,Ht=a.unstable_now,We=a.unstable_getCurrentPriorityLevel,ja=a.unstable_ImmediatePriority,xo=a.unstable_UserBlockingPriority,Ui=a.unstable_NormalPriority,$0=a.unstable_LowPriority,So=a.unstable_IdlePriority,I0=a.log,P0=a.unstable_setDisableYieldValue,Aa=null,he=null;function _n(t){if(typeof I0=="function"&&P0(t),he&&typeof he.setStrictMode=="function")try{he.setStrictMode(Aa,t)}catch{}}var me=Math.clz32?Math.clz32:ng,tg=Math.log,eg=Math.LN2;function ng(t){return t>>>=0,t===0?32:31-(tg(t)/eg|0)|0}var Li=256,Bi=262144,Hi=4194304;function nl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function qi(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var i=0,s=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var p=l&134217727;return p!==0?(l=p&~s,l!==0?i=nl(l):(d&=p,d!==0?i=nl(d):n||(n=p&~t,n!==0&&(i=nl(n))))):(p=l&~s,p!==0?i=nl(p):d!==0?i=nl(d):n||(n=l&~t,n!==0&&(i=nl(n)))),i===0?0:e!==0&&e!==i&&(e&s)===0&&(s=i&-i,n=e&-e,s>=n||s===32&&(n&4194048)!==0)?e:i}function Ca(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function lg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _o(){var t=Hi;return Hi<<=1,(Hi&62914560)===0&&(Hi=4194304),t}function Tu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Na(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ag(t,e,n,l,i,s){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var p=t.entanglements,z=t.expirationTimes,M=t.hiddenUpdates;for(n=d&~n;0"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var og=/[\n"\\]/g;function Te(t){return t.replace(og,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ru(t,e,n,l,i,s,d,p){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Mu(t,d,ze(e)):n!=null?Mu(t,d,ze(n)):l!=null&&t.removeAttribute("value"),i==null&&s!=null&&(t.defaultChecked=!!s),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+ze(p):t.removeAttribute("name")}function Uo(t,e,n,l,i,s,d,p){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),e!=null||n!=null){if(!(s!=="submit"&&s!=="reset"||e!=null)){Nu(t);return}n=n!=null?""+ze(n):"",e=e!=null?""+ze(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=p?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Nu(t)}function Mu(t,e,n){e==="number"&&ki(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function wl(t,e,n,l){if(t=t.options,e){e={};for(var i=0;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lu=!1;if(Ie)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{Lu=!1}var Tn=null,Bu=null,Vi=null;function ko(){if(Vi)return Vi;var t,e=Bu,n=e.length,l,i="value"in Tn?Tn.value:Tn.textContent,s=i.length;for(t=0;t=La),Jo=" ",Wo=!1;function Fo(t,e){switch(t){case"keyup":return Hg.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $o(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ll=!1;function Gg(t,e){switch(t){case"compositionend":return $o(e);case"keypress":return e.which!==32?null:(Wo=!0,Jo);case"textInput":return t=e.data,t===Jo&&Wo?null:t;default:return null}}function Yg(t,e){if(Ll)return t==="compositionend"||!ku&&Fo(t,e)?(t=ko(),Vi=Bu=Tn=null,Ll=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=cf(n)}}function sf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?sf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ki(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ki(t.document)}return e}function Qu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Wg=Ie&&"documentMode"in document&&11>=document.documentMode,Bl=null,Zu=null,Ga=null,Ku=!1;function of(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ku||Bl==null||Bl!==ki(l)||(l=Bl,"selectionStart"in l&&Qu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ga&&qa(Ga,l)||(Ga=l,l=Bc(Zu,"onSelect"),0>=d,i-=d,qe=1<<32-me(e)+i|n<dt?(pt=nt,nt=null):pt=nt.sibling;var zt=w(C,nt,R[dt],q);if(zt===null){nt===null&&(nt=pt);break}t&&nt&&zt.alternate===null&&e(C,nt),j=s(zt,j,dt),_t===null?at=zt:_t.sibling=zt,_t=zt,nt=pt}if(dt===R.length)return n(C,nt),bt&&tn(C,dt),at;if(nt===null){for(;dtdt?(pt=nt,nt=null):pt=nt.sibling;var Zn=w(C,nt,zt.value,q);if(Zn===null){nt===null&&(nt=pt);break}t&&nt&&Zn.alternate===null&&e(C,nt),j=s(Zn,j,dt),_t===null?at=Zn:_t.sibling=Zn,_t=Zn,nt=pt}if(zt.done)return n(C,nt),bt&&tn(C,dt),at;if(nt===null){for(;!zt.done;dt++,zt=R.next())zt=G(C,zt.value,q),zt!==null&&(j=s(zt,j,dt),_t===null?at=zt:_t.sibling=zt,_t=zt);return bt&&tn(C,dt),at}for(nt=l(nt);!zt.done;dt++,zt=R.next())zt=U(nt,C,dt,zt.value,q),zt!==null&&(t&&zt.alternate!==null&&nt.delete(zt.key===null?dt:zt.key),j=s(zt,j,dt),_t===null?at=zt:_t.sibling=zt,_t=zt);return t&&nt.forEach(function(gp){return e(C,gp)}),bt&&tn(C,dt),at}function Rt(C,j,R,q){if(typeof R=="object"&&R!==null&&R.type===A&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case _:t:{for(var at=R.key;j!==null;){if(j.key===at){if(at=R.type,at===A){if(j.tag===7){n(C,j.sibling),q=i(j,R.props.children),q.return=C,C=q;break t}}else if(j.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===$&&hl(at)===j.type){n(C,j.sibling),q=i(j,R.props),Za(q,R),q.return=C,C=q;break t}n(C,j);break}else e(C,j);j=j.sibling}R.type===A?(q=sl(R.props.children,C.mode,q,R.key),q.return=C,C=q):(q=tc(R.type,R.key,R.props,null,C.mode,q),Za(q,R),q.return=C,C=q)}return d(C);case T:t:{for(at=R.key;j!==null;){if(j.key===at)if(j.tag===4&&j.stateNode.containerInfo===R.containerInfo&&j.stateNode.implementation===R.implementation){n(C,j.sibling),q=i(j,R.children||[]),q.return=C,C=q;break t}else{n(C,j);break}else e(C,j);j=j.sibling}q=ts(R,C.mode,q),q.return=C,C=q}return d(C);case $:return R=hl(R),Rt(C,j,R,q)}if(ot(R))return tt(C,j,R,q);if(J(R)){if(at=J(R),typeof at!="function")throw Error(r(150));return R=at.call(R),it(C,j,R,q)}if(typeof R.then=="function")return Rt(C,j,uc(R),q);if(R.$$typeof===k)return Rt(C,j,lc(C,R),q);sc(C,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,j!==null&&j.tag===6?(n(C,j.sibling),q=i(j,R),q.return=C,C=q):(n(C,j),q=Pu(R,C.mode,q),q.return=C,C=q),d(C)):n(C,j)}return function(C,j,R,q){try{Qa=0;var at=Rt(C,j,R,q);return Jl=null,at}catch(nt){if(nt===Kl||nt===ic)throw nt;var _t=ye(29,nt,null,C.mode);return _t.lanes=q,_t.return=C,_t}finally{}}}var gl=Df(!0),Of=Df(!1),Nn=!1;function ds(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Rn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Et&2)!==0){var i=l.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),l.pending=e,e=Pi(t),pf(t,null,n),e}return Ii(t,l,e,n),Pi(t)}function Ka(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,To(t,n)}}function ms(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};s===null?i=s=d:s=s.next=d,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var gs=!1;function Ja(){if(gs){var t=Zl;if(t!==null)throw t}}function Wa(t,e,n,l){gs=!1;var i=t.updateQueue;Nn=!1;var s=i.firstBaseUpdate,d=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var z=p,M=z.next;z.next=null,d===null?s=M:d.next=M,d=z;var H=t.alternate;H!==null&&(H=H.updateQueue,p=H.lastBaseUpdate,p!==d&&(p===null?H.firstBaseUpdate=M:p.next=M,H.lastBaseUpdate=z))}if(s!==null){var G=i.baseState;d=0,H=M=z=null,p=s;do{var w=p.lane&-536870913,U=w!==p.lane;if(U?(yt&w)===w:(l&w)===w){w!==0&&w===Ql&&(gs=!0),H!==null&&(H=H.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var tt=t,it=p;w=e;var Rt=n;switch(it.tag){case 1:if(tt=it.payload,typeof tt=="function"){G=tt.call(Rt,G,w);break t}G=tt;break t;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=it.payload,w=typeof tt=="function"?tt.call(Rt,G,w):tt,w==null)break t;G=v({},G,w);break t;case 2:Nn=!0}}w=p.callback,w!==null&&(t.flags|=64,U&&(t.flags|=8192),U=i.callbacks,U===null?i.callbacks=[w]:U.push(w))}else U={lane:w,tag:p.tag,payload:p.payload,callback:p.callback,next:null},H===null?(M=H=U,z=G):H=H.next=U,d|=w;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;U=p,p=U.next,U.next=null,i.lastBaseUpdate=U,i.shared.pending=null}}while(!0);H===null&&(z=G),i.baseState=z,i.firstBaseUpdate=M,i.lastBaseUpdate=H,s===null&&(i.shared.lanes=0),Ln|=d,t.lanes=d,t.memoizedState=G}}function Uf(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Lf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;ts?s:8;var d=L.T,p={};L.T=p,Os(t,!1,e,n);try{var z=i(),M=L.S;if(M!==null&&M(p,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var H=ay(z,l);Ia(t,e,H,Se(t))}else Ia(t,e,l,Se(t))}catch(G){Ia(t,e,{then:function(){},status:"rejected",reason:G},Se())}finally{K.p=s,d!==null&&p.types!==null&&(d.types=p.types),L.T=d}}function oy(){}function ws(t,e,n,l){if(t.tag!==5)throw Error(r(476));var i=md(t).queue;hd(t,i,e,lt,n===null?oy:function(){return gd(t),n(l)})}function md(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gd(t){var e=md(t);e.next===null&&(e=t.alternate.memoizedState),Ia(t,e.next.queue,{},Se())}function Ds(){return te(gi)}function yd(){return kt().memoizedState}function pd(){return kt().memoizedState}function fy(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Se();t=Rn(n);var l=Mn(e,t,n);l!==null&&(fe(l,e,n),Ka(l,e,n)),e={cache:ss()},t.payload=e;return}e=e.return}}function dy(t,e,n){var l=Se();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vc(t)?bd(e,n):(n=$u(t,e,n,l),n!==null&&(fe(n,t,l),xd(n,e,l)))}function vd(t,e,n){var l=Se();Ia(t,e,n,l)}function Ia(t,e,n,l){var i={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(t))bd(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var d=e.lastRenderedState,p=s(d,n);if(i.hasEagerState=!0,i.eagerState=p,ge(p,d))return Ii(t,e,i,0),Mt===null&&$i(),!1}catch{}finally{}if(n=$u(t,e,i,l),n!==null)return fe(n,t,l),xd(n,e,l),!0}return!1}function Os(t,e,n,l){if(l={lane:2,revertLane:dr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},vc(t)){if(e)throw Error(r(479))}else e=$u(t,n,l,2),e!==null&&fe(e,t,2)}function vc(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function bd(t,e){Fl=fc=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function xd(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,To(t,n)}}var Pa={readContext:te,use:mc,useCallback:qt,useContext:qt,useEffect:qt,useImperativeHandle:qt,useLayoutEffect:qt,useInsertionEffect:qt,useMemo:qt,useReducer:qt,useRef:qt,useState:qt,useDebugValue:qt,useDeferredValue:qt,useTransition:qt,useSyncExternalStore:qt,useId:qt,useHostTransitionStatus:qt,useFormState:qt,useActionState:qt,useOptimistic:qt,useMemoCache:qt,useCacheRefresh:qt};Pa.useEffectEvent=qt;var Sd={readContext:te,use:mc,useCallback:function(t,e){return ae().memoizedState=[t,e===void 0?null:e],t},useContext:te,useEffect:ad,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,yc(4194308,4,sd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return yc(4194308,4,t,e)},useInsertionEffect:function(t,e){yc(4,2,t,e)},useMemo:function(t,e){var n=ae();e=e===void 0?null:e;var l=t();if(yl){_n(!0);try{t()}finally{_n(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ae();if(n!==void 0){var i=n(e);if(yl){_n(!0);try{n(e)}finally{_n(!1)}}}else i=e;return l.memoizedState=l.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},l.queue=t,t=t.dispatch=dy.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=ae();return t={current:t},e.memoizedState=t},useState:function(t){t=As(t);var e=t.queue,n=vd.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Rs,useDeferredValue:function(t,e){var n=ae();return Ms(n,t,e)},useTransition:function(){var t=As(!1);return t=hd.bind(null,ft,t.queue,!0,!1),ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,i=ae();if(bt){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),Mt===null)throw Error(r(349));(yt&127)!==0||kf(l,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,ad(Vf.bind(null,l,s,t),[t]),l.flags|=2048,Il(9,{destroy:void 0},Xf.bind(null,l,s,n,e),null),n},useId:function(){var t=ae(),e=Mt.identifierPrefix;if(bt){var n=Ge,l=qe;n=(l&~(1<<32-me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=dc++,0<\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?s.multiple=!0:l.size&&(s.size=l.size);break;default:s=typeof l.is=="string"?d.createElement(i,{is:l.is}):d.createElement(i)}}s[It]=e,s[ie]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=s;t:switch(ne(s,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&un(e)}}return Ot(e),Js(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&un(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=st.current,Xl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,i=Pt,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}t[It]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Gh(t.nodeValue,n)),t||An(e,!0)}else t=Hc(t).createTextNode(l),t[It]=e,e.stateNode=t}return Ot(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Xl(e),n!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[It]=e}else rl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),t=!1}else n=as(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ve(e),e):(ve(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Ot(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Xl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!i)throw Error(r(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));i[It]=e}else rl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ot(e),i=!1}else i=as(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(ve(e),e):(ve(e),null)}return ve(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),s=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(s=l.memoizedState.cachePool.pool),s!==i&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),zc(e,e.updateQueue),Ot(e),null);case 4:return wt(),t===null&&yr(e.stateNode.containerInfo),Ot(e),null;case 10:return nn(e.type),Ot(e),null;case 19:if(Y(Yt),l=e.memoizedState,l===null)return Ot(e),null;if(i=(e.flags&128)!==0,s=l.rendering,s===null)if(i)ei(l,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(s=oc(t),s!==null){for(e.flags|=128,ei(l,!1),t=s.updateQueue,e.updateQueue=t,zc(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)vf(n,t),n=n.sibling;return W(Yt,Yt.current&1|2),bt&&tn(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&Ht()>Cc&&(e.flags|=128,i=!0,ei(l,!1),e.lanes=4194304)}else{if(!i)if(t=oc(s),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,zc(e,t),ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!s.alternate&&!bt)return Ot(e),null}else 2*Ht()-l.renderingStartTime>Cc&&n!==536870912&&(e.flags|=128,i=!0,ei(l,!1),e.lanes=4194304);l.isBackwards?(s.sibling=e.child,e.child=s):(t=l.last,t!==null?t.sibling=s:e.child=s,l.last=s)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Ht(),t.sibling=null,n=Yt.current,W(Yt,i?n&1|2:n&1),bt&&tn(e,l.treeForkCount),t):(Ot(e),null);case 22:case 23:return ve(e),ps(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Ot(e),e.subtreeFlags&6&&(e.flags|=8192)):Ot(e),n=e.updateQueue,n!==null&&zc(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&Y(dl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),nn(Xt),Ot(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function py(t,e){switch(ns(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return nn(Xt),wt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ke(e),null;case 31:if(e.memoizedState!==null){if(ve(e),e.alternate===null)throw Error(r(340));rl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ve(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));rl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Y(Yt),null;case 4:return wt(),null;case 10:return nn(e.type),null;case 22:case 23:return ve(e),ps(),t!==null&&Y(dl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return nn(Xt),null;case 25:return null;default:return null}}function Qd(t,e){switch(ns(e),e.tag){case 3:nn(Xt),wt();break;case 26:case 27:case 5:Ke(e);break;case 4:wt();break;case 31:e.memoizedState!==null&&ve(e);break;case 13:ve(e);break;case 19:Y(Yt);break;case 10:nn(e.type);break;case 22:case 23:ve(e),ps(),t!==null&&Y(dl);break;case 24:nn(Xt)}}function ni(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var i=l.next;n=i;do{if((n.tag&t)===t){l=void 0;var s=n.create,d=n.inst;l=s(),d.destroy=l}n=n.next}while(n!==i)}}catch(p){At(e,e.return,p)}}function On(t,e,n){try{var l=e.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var s=i.next;l=s;do{if((l.tag&t)===t){var d=l.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,i=e;var z=n,M=p;try{M()}catch(H){At(i,z,H)}}}l=l.next}while(l!==s)}}catch(H){At(e,e.return,H)}}function Zd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Lf(e,n)}catch(l){At(t,t.return,l)}}}function Kd(t,e,n){n.props=pl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){At(t,e,l)}}function li(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(i){At(t,e,i)}}function Ye(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(i){At(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){At(t,e,i)}else n.current=null}function Jd(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(i){At(t,t.return,i)}}function Ws(t,e,n){try{var l=t.stateNode;qy(l,t.type,n,e),l[ie]=e}catch(i){At(t,t.return,i)}}function Wd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function Fs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Wd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $s(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=$e));else if(l!==4&&(l===27&&Yn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for($s(t,e,n),t=t.sibling;t!==null;)$s(t,e,n),t=t.sibling}function Tc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Yn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Tc(t,e,n),t=t.sibling;t!==null;)Tc(t,e,n),t=t.sibling}function Fd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ne(e,l,n),e[It]=t,e[ie]=n}catch(s){At(t,t.return,s)}}var sn=!1,Zt=!1,Is=!1,$d=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function vy(t,e){if(t=t.containerInfo,br=Qc,t=rf(t),Qu(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var i=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break t}var d=0,p=-1,z=-1,M=0,H=0,G=t,w=null;e:for(;;){for(var U;G!==n||i!==0&&G.nodeType!==3||(p=d+i),G!==s||l!==0&&G.nodeType!==3||(z=d+l),G.nodeType===3&&(d+=G.nodeValue.length),(U=G.firstChild)!==null;)w=G,G=U;for(;;){if(G===t)break e;if(w===n&&++M===i&&(p=d),w===s&&++H===l&&(z=d),(U=G.nextSibling)!==null)break;G=w,w=G.parentNode}G=U}n=p===-1||z===-1?null:{start:p,end:z}}else n=null}n=n||{start:0,end:0}}else n=null;for(xr={focusedElem:t,selectionRange:n},Qc=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,s=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n title"))),ne(s,l,n),s[It]=t,Wt(s),l=s;break t;case"link":var d=lm("link","href",i).get(l+(n.href||""));if(d){for(var p=0;pRt&&(d=Rt,Rt=it,it=d);var C=uf(p,it),j=uf(p,Rt);if(C&&j&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==j.node||U.focusOffset!==j.offset)){var R=G.createRange();R.setStart(C.node,C.offset),U.removeAllRanges(),it>Rt?(U.addRange(R),U.extend(j.node,j.offset)):(R.setEnd(j.node,j.offset),U.addRange(R))}}}}for(G=[],U=p;U=U.parentNode;)U.nodeType===1&&G.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;pn?32:n,L.T=null,n=ir,ir=null;var s=Hn,d=hn;if(Jt=0,la=Hn=null,hn=0,(Et&6)!==0)throw Error(r(331));var p=Et;if(Et|=4,sh(s.current),ih(s,s.current,d,n),Et=p,ri(0,!1),he&&typeof he.onPostCommitFiberRoot=="function")try{he.onPostCommitFiberRoot(Aa,s)}catch{}return!0}finally{K.p=i,L.T=l,jh(t,e)}}function Ch(t,e,n){e=je(n,e),e=Hs(t.stateNode,e,2),t=Mn(t,e,2),t!==null&&(Na(t,2),ke(t))}function At(t,e,n){if(t.tag===3)Ch(t,t,n);else for(;e!==null;){if(e.tag===3){Ch(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Bn===null||!Bn.has(l))){t=je(n,t),n=Nd(2),l=Mn(e,n,2),l!==null&&(Rd(n,l,e,t),Na(l,2),ke(l));break}}e=e.return}}function rr(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Sy;var i=new Set;l.set(e,i)}else i=l.get(e),i===void 0&&(i=new Set,l.set(e,i));i.has(n)||(er=!0,i.add(n),t=jy.bind(null,t,e,n),e.then(t,t))}function jy(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Mt===t&&(yt&n)===n&&(Gt===4||Gt===3&&(yt&62914560)===yt&&300>Ht()-Ac?(Et&2)===0&&aa(t,0):nr|=n,na===yt&&(na=0)),ke(t)}function Nh(t,e){e===0&&(e=_o()),t=ul(t,e),t!==null&&(Na(t,e),ke(t))}function Ay(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Nh(t,n)}function Cy(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Nh(t,n)}function Ny(t,e){return Ta(t,e)}var Oc=null,ca=null,or=!1,Uc=!1,fr=!1,Gn=0;function ke(t){t!==ca&&t.next===null&&(ca===null?Oc=ca=t:ca=ca.next=t),Uc=!0,or||(or=!0,My())}function ri(t,e){if(!fr&&Uc){fr=!0;do for(var n=!1,l=Oc;l!==null;){if(t!==0){var i=l.pendingLanes;if(i===0)var s=0;else{var d=l.suspendedLanes,p=l.pingedLanes;s=(1<<31-me(42|t)+1)-1,s&=i&~(d&~p),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(n=!0,Dh(l,s))}else s=yt,s=qi(l,l===Mt?s:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(s&3)===0||Ca(l,s)||(n=!0,Dh(l,s));l=l.next}while(n);fr=!1}}function Ry(){Rh()}function Rh(){Uc=or=!1;var t=0;Gn!==0&&Yy()&&(t=Gn);for(var e=Ht(),n=null,l=Oc;l!==null;){var i=l.next,s=Mh(l,e);s===0?(l.next=null,n===null?Oc=i:n.next=i,i===null&&(ca=n)):(n=l,(t!==0||(s&3)!==0)&&(Uc=!0)),l=i}Jt!==0&&Jt!==5||ri(t),Gn!==0&&(Gn=0)}function Mh(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes&-62914561;0p)break;var H=z.transferSize,G=z.initiatorType;H&&Yh(G)&&(z=z.responseEnd,d+=H*(z"u"?null:document;function Ph(t,e,n){var l=ua;if(l&&typeof e=="string"&&e){var i=Te(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Ih.has(i)||(Ih.add(i),t={rel:t,crossOrigin:n,href:e},l.querySelector(i)===null&&(e=l.createElement("link"),ne(e,"link",t),Wt(e),l.head.appendChild(e)))}}function Fy(t){mn.D(t),Ph("dns-prefetch",t,null)}function $y(t,e){mn.C(t,e),Ph("preconnect",t,e)}function Iy(t,e,n){mn.L(t,e,n);var l=ua;if(l&&t&&e){var i='link[rel="preload"][as="'+Te(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Te(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Te(n.imageSizes)+'"]')):i+='[href="'+Te(t)+'"]';var s=i;switch(e){case"style":s=sa(t);break;case"script":s=ra(t)}we.has(s)||(t=v({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(s,t),l.querySelector(i)!==null||e==="style"&&l.querySelector(hi(s))||e==="script"&&l.querySelector(mi(s))||(e=l.createElement("link"),ne(e,"link",t),Wt(e),l.head.appendChild(e)))}}function Py(t,e){mn.m(t,e);var n=ua;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Te(l)+'"][href="'+Te(t)+'"]',s=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=ra(t)}if(!we.has(s)&&(t=v({rel:"modulepreload",href:t},e),we.set(s,t),n.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(mi(s)))return}l=n.createElement("link"),ne(l,"link",t),Wt(l),n.head.appendChild(l)}}}function tp(t,e,n){mn.S(t,e,n);var l=ua;if(l&&t){var i=Rl(l).hoistableStyles,s=sa(t);e=e||"default";var d=i.get(s);if(!d){var p={loading:0,preload:null};if(d=l.querySelector(hi(s)))p.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(s))&&Ar(t,n);var z=d=l.createElement("link");Wt(z),ne(z,"link",t),z._p=new Promise(function(M,H){z.onload=M,z.onerror=H}),z.addEventListener("load",function(){p.loading|=1}),z.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Gc(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:p},i.set(s,d)}}}function ep(t,e){mn.X(t,e);var n=ua;if(n&&t){var l=Rl(n).hoistableScripts,i=ra(t),s=l.get(i);s||(s=n.querySelector(mi(i)),s||(t=v({src:t,async:!0},e),(e=we.get(i))&&Cr(t,e),s=n.createElement("script"),Wt(s),ne(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function np(t,e){mn.M(t,e);var n=ua;if(n&&t){var l=Rl(n).hoistableScripts,i=ra(t),s=l.get(i);s||(s=n.querySelector(mi(i)),s||(t=v({src:t,async:!0,type:"module"},e),(e=we.get(i))&&Cr(t,e),s=n.createElement("script"),Wt(s),ne(s,"link",t),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},l.set(i,s))}}function tm(t,e,n,l){var i=(i=st.current)?qc(i):null;if(!i)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=sa(n.href),n=Rl(i).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=sa(n.href);var s=Rl(i).hoistableStyles,d=s.get(t);if(d||(i=i.ownerDocument||i,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,d),(s=i.querySelector(hi(t)))&&!s._p&&(d.instance=s,d.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),s||lp(i,t,n,d.state))),e&&l===null)throw Error(r(528,""));return d}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ra(n),n=Rl(i).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function sa(t){return'href="'+Te(t)+'"'}function hi(t){return'link[rel="stylesheet"]['+t+"]"}function em(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function lp(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ne(e,"link",n),Wt(e),t.head.appendChild(e))}function ra(t){return'[src="'+Te(t)+'"]'}function mi(t){return"script[async]"+t}function nm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Te(n.href)+'"]');if(l)return e.instance=l,Wt(l),l;var i=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Wt(l),ne(l,"style",i),Gc(l,n.precedence,t),e.instance=l;case"stylesheet":i=sa(n.href);var s=t.querySelector(hi(i));if(s)return e.state.loading|=4,e.instance=s,Wt(s),s;l=em(n),(i=we.get(i))&&Ar(l,i),s=(t.ownerDocument||t).createElement("link"),Wt(s);var d=s;return d._p=new Promise(function(p,z){d.onload=p,d.onerror=z}),ne(s,"link",l),e.state.loading|=4,Gc(s,n.precedence,t),e.instance=s;case"script":return s=ra(n.src),(i=t.querySelector(mi(s)))?(e.instance=i,Wt(i),i):(l=n,(i=we.get(s))&&(l=v({},n),Cr(l,i)),t=t.ownerDocument||t,i=t.createElement("script"),Wt(i),ne(i,"link",l),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Gc(l,n.precedence,t));return e.instance}function Gc(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,s=i,d=0;d title"):null)}function ap(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function im(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ip(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=sa(l.href),s=e.querySelector(hi(i));if(s){e=s._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=kc.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=s,Wt(s);return}s=e.ownerDocument||e,l=em(l),(i=we.get(i))&&Ar(l,i),s=s.createElement("link"),Wt(s);var d=s;d._p=new Promise(function(p,z){d.onload=p,d.onerror=z}),ne(s,"link",l),n.instance=s}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=kc.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Nr=0;function cp(t,e){return t.stylesheets&&t.count===0&&Vc(t,t.stylesheets),0Nr?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function kc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Xc=null;function Vc(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Xc=new Map,e.forEach(up,t),Xc=null,kc.call(t))}function up(t,e){if(!(e.state.loading&4)){var n=Xc.get(t);if(n)var l=n.get(null);else{n=new Map,Xc.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(c){console.error(c)}}return a(),Kr.exports=pb(),Kr.exports}var bb=vb();function xb(){return db({select:c=>c.location.pathname})==="/"?x.jsx(co,{}):x.jsxs("div",{className:"min-h-screen bg-zinc-50 text-zinc-900",children:[x.jsx("header",{className:"border-b border-zinc-200 bg-white px-4 py-3",children:x.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between",children:[x.jsx(Qe,{to:"/projects",className:"font-semibold text-zinc-900",children:"Trachex"}),x.jsx("nav",{className:"flex items-center gap-4 text-sm text-zinc-500",children:x.jsx(Qe,{to:"/projects",className:"hover:text-zinc-900",children:"Projects"})})]})}),x.jsx("main",{className:"mx-auto max-w-6xl px-4 py-6",children:x.jsx(co,{})})]})}const Di=Pv({component:xb});/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sb=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y0=(...a)=>a.filter((c,u,r)=>!!c&&c.trim()!==""&&r.indexOf(c)===u).join(" ").trim();/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var _b={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zb=F.forwardRef(({color:a="currentColor",size:c=24,strokeWidth:u=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:m,...g},y)=>F.createElement("svg",{ref:y,..._b,width:c,height:c,stroke:a,strokeWidth:r?Number(u)*24/Number(c):u,className:Y0("lucide",o),...g},[...m.map(([h,b])=>F.createElement(h,b)),...Array.isArray(f)?f:[f]]));/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xa=(a,c)=>{const u=F.forwardRef(({className:r,...o},f)=>F.createElement(zb,{ref:f,iconNode:c,className:Y0(`lucide-${Sb(a)}`,r),...o}));return u.displayName=`${a}`,u};/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Tb=xa("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Eb=xa("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const i0=xa("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jb=xa("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ab=xa("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.460.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Cb=xa("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function k0(a){var c,u,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(c=0;c{const c=wb(a),{conflictingClassGroups:u,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:m=>{const g=m.split(vo);return g[0]===""&&g.length!==1&&g.shift(),X0(g,c)||Mb(m)},getConflictingClassGroupIds:(m,g)=>{const y=u[m]||[];return g&&r[m]?[...y,...r[m]]:y}}},X0=(a,c)=>{var m;if(a.length===0)return c.classGroupId;const u=a[0],r=c.nextPart.get(u),o=r?X0(a.slice(1),r):void 0;if(o)return o;if(c.validators.length===0)return;const f=a.join(vo);return(m=c.validators.find(({validator:g})=>g(f)))==null?void 0:m.classGroupId},c0=/^\[(.+)\]$/,Mb=a=>{if(c0.test(a)){const c=c0.exec(a)[1],u=c==null?void 0:c.substring(0,c.indexOf(":"));if(u)return"arbitrary.."+u}},wb=a=>{const{theme:c,prefix:u}=a,r={nextPart:new Map,validators:[]};return Ob(Object.entries(a.classGroups),u).forEach(([f,m])=>{uo(m,r,f,c)}),r},uo=(a,c,u,r)=>{a.forEach(o=>{if(typeof o=="string"){const f=o===""?c:u0(c,o);f.classGroupId=u;return}if(typeof o=="function"){if(Db(o)){uo(o(r),c,u,r);return}c.validators.push({validator:o,classGroupId:u});return}Object.entries(o).forEach(([f,m])=>{uo(m,u0(c,f),u,r)})})},u0=(a,c)=>{let u=a;return c.split(vo).forEach(r=>{u.nextPart.has(r)||u.nextPart.set(r,{nextPart:new Map,validators:[]}),u=u.nextPart.get(r)}),u},Db=a=>a.isThemeGetter,Ob=(a,c)=>c?a.map(([u,r])=>{const o=r.map(f=>typeof f=="string"?c+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([m,g])=>[c+m,g])):f);return[u,o]}):a,Ub=a=>{if(a<1)return{get:()=>{},set:()=>{}};let c=0,u=new Map,r=new Map;const o=(f,m)=>{u.set(f,m),c++,c>a&&(c=0,r=u,u=new Map)};return{get(f){let m=u.get(f);if(m!==void 0)return m;if((m=r.get(f))!==void 0)return o(f,m),m},set(f,m){u.has(f)?u.set(f,m):o(f,m)}}},V0="!",Lb=a=>{const{separator:c,experimentalParseClassName:u}=a,r=c.length===1,o=c[0],f=c.length,m=g=>{const y=[];let h=0,b=0,v;for(let N=0;Nb?v-b:void 0;return{modifiers:y,hasImportantModifier:_,baseClassName:T,maybePostfixModifierPosition:A}};return u?g=>u({className:g,parseClassName:m}):m},Bb=a=>{if(a.length<=1)return a;const c=[];let u=[];return a.forEach(r=>{r[0]==="["?(c.push(...u.sort(),r),u=[]):u.push(r)}),c.push(...u.sort()),c},Hb=a=>({cache:Ub(a.cacheSize),parseClassName:Lb(a),...Rb(a)}),qb=/\s+/,Gb=(a,c)=>{const{parseClassName:u,getClassGroupId:r,getConflictingClassGroupIds:o}=c,f=[],m=a.trim().split(qb);let g="";for(let y=m.length-1;y>=0;y-=1){const h=m[y],{modifiers:b,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:_}=u(h);let T=!!_,A=r(T?S.substring(0,_):S);if(!A){if(!T){g=h+(g.length>0?" "+g:g);continue}if(A=r(S),!A){g=h+(g.length>0?" "+g:g);continue}T=!1}const N=Bb(b).join(":"),O=v?N+V0:N,D=O+A;if(f.includes(D))continue;f.push(D);const k=o(A,T);for(let Z=0;Z0?" "+g:g)}return g};function Yb(){let a=0,c,u,r="";for(;a{if(typeof a=="string")return a;let c,u="";for(let r=0;rv(b),a());return u=Hb(h),r=u.cache.get,o=u.cache.set,f=g,g(y)}function g(y){const h=r(y);if(h)return h;const b=Gb(y,u);return o(y,b),b}return function(){return f(Yb.apply(null,arguments))}}const Ut=a=>{const c=u=>u[a]||[];return c.isThemeGetter=!0,c},Z0=/^\[(?:([a-z-]+):)?(.+)\]$/i,Xb=/^\d+\/\d+$/,Vb=new Set(["px","full","screen"]),Qb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zb=/\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$/,Kb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Jb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Wb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gn=a=>pa(a)||Vb.has(a)||Xb.test(a),Kn=a=>Sa(a,"length",l1),pa=a=>!!a&&!Number.isNaN(Number(a)),$r=a=>Sa(a,"number",pa),zi=a=>!!a&&Number.isInteger(Number(a)),Fb=a=>a.endsWith("%")&&pa(a.slice(0,-1)),ht=a=>Z0.test(a),Jn=a=>Qb.test(a),$b=new Set(["length","size","percentage"]),Ib=a=>Sa(a,$b,K0),Pb=a=>Sa(a,"position",K0),t1=new Set(["image","url"]),e1=a=>Sa(a,t1,i1),n1=a=>Sa(a,"",a1),Ti=()=>!0,Sa=(a,c,u)=>{const r=Z0.exec(a);return r?r[1]?typeof c=="string"?r[1]===c:c.has(r[1]):u(r[2]):!1},l1=a=>Zb.test(a)&&!Kb.test(a),K0=()=>!1,a1=a=>Jb.test(a),i1=a=>Wb.test(a),c1=()=>{const a=Ut("colors"),c=Ut("spacing"),u=Ut("blur"),r=Ut("brightness"),o=Ut("borderColor"),f=Ut("borderRadius"),m=Ut("borderSpacing"),g=Ut("borderWidth"),y=Ut("contrast"),h=Ut("grayscale"),b=Ut("hueRotate"),v=Ut("invert"),S=Ut("gap"),_=Ut("gradientColorStops"),T=Ut("gradientColorStopPositions"),A=Ut("inset"),N=Ut("margin"),O=Ut("opacity"),D=Ut("padding"),k=Ut("saturate"),Z=Ut("scale"),B=Ut("sepia"),X=Ut("skew"),V=Ut("space"),$=Ut("translate"),Q=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto",ht,c],J=()=>[ht,c],xt=()=>["",gn,Kn],rt=()=>["auto",pa,ht],ot=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],lt=()=>["start","end","center","between","around","evenly","stretch"],vt=()=>["","0",ht],Tt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>[pa,ht];return{cacheSize:500,separator:":",theme:{colors:[Ti],spacing:[gn,Kn],blur:["none","",Jn,ht],brightness:E(),borderColor:[a],borderRadius:["none","","full",Jn,ht],borderSpacing:J(),borderWidth:xt(),contrast:E(),grayscale:vt(),hueRotate:E(),invert:vt(),gap:J(),gradientColorStops:[a],gradientColorStopPositions:[Fb,Kn],inset:P(),margin:P(),opacity:E(),padding:J(),saturate:E(),scale:E(),sepia:vt(),skew:E(),space:J(),translate:J()},classGroups:{aspect:[{aspect:["auto","square","video",ht]}],container:["container"],columns:[{columns:[Jn]}],"break-after":[{"break-after":Tt()}],"break-before":[{"break-before":Tt()}],"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"],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:[...ot(),ht]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[A]}],"inset-x":[{"inset-x":[A]}],"inset-y":[{"inset-y":[A]}],start:[{start:[A]}],end:[{end:[A]}],top:[{top:[A]}],right:[{right:[A]}],bottom:[{bottom:[A]}],left:[{left:[A]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",zi,ht]}],basis:[{basis:P()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ht]}],grow:[{grow:vt()}],shrink:[{shrink:vt()}],order:[{order:["first","last","none",zi,ht]}],"grid-cols":[{"grid-cols":[Ti]}],"col-start-end":[{col:["auto",{span:["full",zi,ht]},ht]}],"col-start":[{"col-start":rt()}],"col-end":[{"col-end":rt()}],"grid-rows":[{"grid-rows":[Ti]}],"row-start-end":[{row:["auto",{span:[zi,ht]},ht]}],"row-start":[{"row-start":rt()}],"row-end":[{"row-end":rt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ht]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ht]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...lt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...lt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...lt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[D]}],px:[{px:[D]}],py:[{py:[D]}],ps:[{ps:[D]}],pe:[{pe:[D]}],pt:[{pt:[D]}],pr:[{pr:[D]}],pb:[{pb:[D]}],pl:[{pl:[D]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],ms:[{ms:[N]}],me:[{me:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[V]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[V]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ht,c]}],"min-w":[{"min-w":[ht,c,"min","max","fit"]}],"max-w":[{"max-w":[ht,c,"none","full","min","max","fit","prose",{screen:[Jn]},Jn]}],h:[{h:[ht,c,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ht,c,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ht,c,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ht,c,"auto","min","max","fit"]}],"font-size":[{text:["base",Jn,Kn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$r]}],"font-family":[{font:[Ti]}],"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:["tighter","tight","normal","wide","wider","widest",ht]}],"line-clamp":[{"line-clamp":["none",pa,$r]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",gn,ht]}],"list-image":[{"list-image":["none",ht]}],"list-style-type":[{list:["none","disc","decimal",ht]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[O]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...L(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",gn,Kn]}],"underline-offset":[{"underline-offset":["auto",gn,ht]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:J()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ht]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ht]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[O]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ot(),Pb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ib]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},e1]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[T]}],"gradient-via-pos":[{via:[T]}],"gradient-to-pos":[{to:[T]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[g]}],"border-w-x":[{"border-x":[g]}],"border-w-y":[{"border-y":[g]}],"border-w-s":[{"border-s":[g]}],"border-w-e":[{"border-e":[g]}],"border-w-t":[{"border-t":[g]}],"border-w-r":[{"border-r":[g]}],"border-w-b":[{"border-b":[g]}],"border-w-l":[{"border-l":[g]}],"border-opacity":[{"border-opacity":[O]}],"border-style":[{border:[...L(),"hidden"]}],"divide-x":[{"divide-x":[g]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[g]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[O]}],"divide-style":[{divide:L()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...L()]}],"outline-offset":[{"outline-offset":[gn,ht]}],"outline-w":[{outline:[gn,Kn]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:xt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[O]}],"ring-offset-w":[{"ring-offset":[gn,Kn]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",Jn,n1]}],"shadow-color":[{shadow:[Ti]}],opacity:[{opacity:[O]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[u]}],brightness:[{brightness:[r]}],contrast:[{contrast:[y]}],"drop-shadow":[{"drop-shadow":["","none",Jn,ht]}],grayscale:[{grayscale:[h]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[v]}],saturate:[{saturate:[k]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[u]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[y]}],"backdrop-grayscale":[{"backdrop-grayscale":[h]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[v]}],"backdrop-opacity":[{"backdrop-opacity":[O]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[m]}],"border-spacing-x":[{"border-spacing-x":[m]}],"border-spacing-y":[{"border-spacing-y":[m]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ht]}],duration:[{duration:E()}],ease:[{ease:["linear","in","out","in-out",ht]}],delay:[{delay:E()}],animate:[{animate:["none","spin","ping","pulse","bounce",ht]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[Z]}],"scale-x":[{"scale-x":[Z]}],"scale-y":[{"scale-y":[Z]}],rotate:[{rotate:[zi,ht]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ht]}],accent:[{accent:["auto",a]}],appearance:[{appearance:["none","auto"]}],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",ht]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":J()}],"scroll-mx":[{"scroll-mx":J()}],"scroll-my":[{"scroll-my":J()}],"scroll-ms":[{"scroll-ms":J()}],"scroll-me":[{"scroll-me":J()}],"scroll-mt":[{"scroll-mt":J()}],"scroll-mr":[{"scroll-mr":J()}],"scroll-mb":[{"scroll-mb":J()}],"scroll-ml":[{"scroll-ml":J()}],"scroll-p":[{"scroll-p":J()}],"scroll-px":[{"scroll-px":J()}],"scroll-py":[{"scroll-py":J()}],"scroll-ps":[{"scroll-ps":J()}],"scroll-pe":[{"scroll-pe":J()}],"scroll-pt":[{"scroll-pt":J()}],"scroll-pr":[{"scroll-pr":J()}],"scroll-pb":[{"scroll-pb":J()}],"scroll-pl":[{"scroll-pl":J()}],"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",ht]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[gn,Kn,$r]}],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["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-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},u1=kb(c1);function Ei(...a){return u1(Nb(a))}const s1=_u({getParentRoute:()=>Di,path:"/",component:f1}),lu=[{id:"fsd-baseline",label:"FSD seeds the baseline",source:"BRD/FSD v2.1, section 4.3",timestamp:"Mon, 12 Aug 2024, 09:12",status:"Superseded",note:"Checklist item generated from the FSD: discount cap set at 20%, VIP members exempt. The chat adjustment later moved the cap to 15%, so this item is superseded but kept as evidence."},{id:"chat-adjustment",label:"Budi (BA) adjusts the cap",source:"Budi (BA), chat message",timestamp:"Wed, 14 Aug 2024, 16:40",status:"Active",note:"One-line adjustment logged the new requirement: the discount cap should be 15%, not 20%, and VIP members stay exempt. The old FSD item was flagged superseded, never deleted."},{id:"mom-confirmation",label:"MoM confirms VIP exemption",source:"Sprint review, meeting minutes",timestamp:"Fri, 16 Aug 2024, 11:05",status:"Active",note:"A MoM line confirms the VIP exemption applies and that the 15% cap targets everyone else. The checklist keeps the confirmation attached to the same ticket."},{id:"uat-flag",label:"UAT note flags a contradiction",source:"UAT note, chat message",timestamp:"Mon, 19 Aug 2024, 10:22",status:"Active",note:"UAT spotted the FSD appendix still quoting a 20% cap. The stale appendix-based item was flagged superseded, never deleted, still evidence."}],r1=[{label:"Seed from your BRD/FSD",text:"Every ticket gets one checklist, seeded from your documents and grounded in your coding standards."},{label:"Log changes as they happen",text:"A one-line adjustment records what changed, from whom, and when. No re-typing the whole context into a doc."},{label:"Contradictions get flagged",text:"When a revision or adjustment conflicts with an earlier item, the old item is superseded but never deleted. It stays as evidence."},{label:"One command, one summary",text:"A Development Summary with the full timeline, impacted services and APIs, and test scenarios, without writing it by hand."}],o1=[{label:"Evidence over memory",text:"Every change has a source, a timestamp, and if it came from a person, a name."},{label:"Context survives interruption",text:"Go on leave, switch tickets, come back weeks later. The checklist is exactly where you left it."},{label:"One clean artifact at the end",text:"A Development Summary that answers what happened on this ticket, without writing it by hand."},{label:"Your data, your model",text:"Bring your own API key, run it locally with SQLite, and skip subscriptions and vendor lock-in."},{label:"Works with what you use",text:"MCP-native from day one, so it plugs into your agent harness instead of demanding a new one."}];function f1(){var m;const[a,c]=F.useState(((m=lu[0])==null?void 0:m.id)??""),[u,r]=F.useState(!1),o=lu.find(g=>g.id===a)??lu[0];if(!o)return null;const f=()=>r(!0);return x.jsxs("div",{className:"landing min-h-screen bg-zinc-950 text-zinc-100",children:[x.jsx(d1,{onStayTuned:f}),x.jsxs("main",{children:[x.jsx(h1,{onStayTuned:f}),x.jsx(m1,{}),x.jsx(g1,{events:lu,selectedId:a,selectedEvent:o,onSelect:c}),x.jsx(y1,{}),x.jsx(p1,{}),x.jsx(v1,{onStayTuned:f})]}),x.jsx(b1,{}),x.jsx(x1,{open:u,onClose:()=>r(!1)})]})}function bo({onClick:a,className:c}){return x.jsx("button",{type:"button",onClick:a,className:Ei("rounded-md bg-amber-400 font-semibold text-zinc-950 transition-colors hover:bg-amber-300 motion-reduce:transition-none",c),children:"Stay tuned"})}function d1({onStayTuned:a}){return x.jsx("header",{className:"sticky top-0 z-40 border-b border-zinc-800 bg-zinc-950",children:x.jsxs("div",{className:"mx-auto flex h-16 w-full max-w-6xl items-center justify-between px-4 sm:px-6",children:[x.jsx("span",{className:"text-lg font-semibold tracking-tight text-zinc-100",children:"Trachex"}),x.jsxs("nav",{className:"flex items-center gap-6",children:[x.jsx(Qe,{to:"/projects",className:"hidden text-sm text-zinc-400 hover:text-zinc-100 sm:block",children:"Open dashboard"}),x.jsx(bo,{onClick:a,className:"px-4 py-3 text-sm"})]})]})})}function h1({onStayTuned:a}){return x.jsx("section",{className:"border-b border-zinc-800",children:x.jsx("div",{className:"mx-auto w-full max-w-6xl px-4 py-20 sm:px-6 sm:py-28 lg:py-32",children:x.jsxs("div",{className:"landing-rise max-w-3xl",children:[x.jsx("p",{className:"text-sm font-medium text-amber-400",children:"Development tracking that remembers"}),x.jsx("h1",{className:"mt-4 text-4xl font-bold leading-tight tracking-tight text-zinc-100 sm:text-5xl lg:text-6xl",children:'Stop reconstructing "who changed this" from memory.'}),x.jsx("p",{className:"mt-6 max-w-2xl text-lg leading-relaxed text-zinc-400",children:"Trachex turns your BRD/FSD and every Slack-message-shaped requirement change into one evidence-backed checklist, so you always know what was asked, what changed, and who said so."}),x.jsxs("div",{className:"mt-8 flex flex-col items-start gap-4 sm:flex-row sm:items-center sm:gap-6",children:[x.jsx(bo,{onClick:a,className:"px-6 py-3 text-base"}),x.jsx("a",{href:"#how-it-works",className:"text-sm font-medium text-zinc-400 hover:text-zinc-100",children:"How it works"})]}),x.jsx("p",{className:"mt-6 text-sm text-zinc-400",children:"No Docker, no account, bring your own API key."})]})})})}function m1(){return x.jsx("section",{className:"border-b border-zinc-800",children:x.jsxs("div",{className:"mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24",children:[x.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-zinc-100 sm:text-3xl",children:"You've been here before."}),x.jsxs("ul",{className:"mt-8 space-y-4",children:[x.jsx("li",{className:"border-l-2 border-zinc-600 pl-4 text-lg text-zinc-300",children:`"That's not what the requirement said."`}),x.jsx("li",{className:"border-l-2 border-zinc-600 pl-4 text-lg text-zinc-300",children:'"Who approved this change?"'}),x.jsx("li",{className:"border-l-2 border-zinc-600 pl-4 text-lg text-zinc-300",children:'"I never said that."'})]}),x.jsxs("div",{className:"mt-10 max-w-3xl space-y-5 text-zinc-400",children:[x.jsx("p",{children:`Requirements don't drift because people are careless. They drift because most of the actual change happens in a Teams message, a MoM line, or a "quick UAT note", never in a document, never versioned, never attributed. By the time something breaks in production, the only record left is memory, and memory loses every time.`}),x.jsx("p",{children:"You go on leave for a week. You come back to five tickets, half-remembered context, and a Slack thread you have to re-read top to bottom just to remember what you already decided."}),x.jsx("p",{className:"font-medium text-zinc-100",children:"This isn't a tooling gap you can fix with more meetings. It's a tracking gap."})]})]})})}function g1({events:a,selectedId:c,selectedEvent:u,onSelect:r}){return x.jsx("section",{className:"border-b border-zinc-800",children:x.jsxs("div",{className:"mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24",children:[x.jsxs("div",{className:"max-w-3xl",children:[x.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-zinc-100 sm:text-3xl",children:"Every change, with a source and a timestamp."}),x.jsx("p",{className:"mt-4 text-zinc-400",children:"The checklist grows every time something changes. Contradictions get flagged, and superseded items are never deleted, so the evidence stays behind the final answer."}),x.jsx("p",{className:"mt-3 text-sm text-zinc-400",children:"Example walkthrough, not real project data."})]}),x.jsxs("div",{className:"mt-10 grid gap-10 lg:grid-cols-[minmax(0,0.9fr)_minmax(0,1.1fr)] lg:items-start",children:[x.jsxs("div",{children:[x.jsx("div",{className:"flex gap-3 overflow-x-auto overscroll-x-contain pb-2 lg:flex-col lg:overflow-visible lg:pb-0",children:a.map(o=>{const f=o.id===c;return x.jsxs("button",{type:"button","aria-current":f?"true":"false",onClick:()=>r(o.id),className:Ei("shrink-0 rounded-lg px-4 py-3 text-left transition-colors motion-reduce:transition-none lg:w-full",f?"bg-amber-400":"hover:bg-zinc-900"),children:[x.jsx("span",{className:Ei("block text-sm font-medium",f?"text-zinc-950":"text-zinc-300"),children:o.label}),x.jsx("span",{className:Ei("mt-1 block text-xs",f?"text-zinc-900":"text-zinc-400"),children:o.status})]},o.id)})}),x.jsx("pre",{className:"mt-6 whitespace-pre-wrap break-words rounded-lg border border-zinc-800 bg-zinc-900/60 px-4 py-3 font-mono text-xs leading-relaxed text-zinc-300 sm:text-sm",children:`trachex adjustment TICKET-1234 --from "Budi (BA)" --source chat \\ --note "discount cap should be 15%, not 20%, VIP exempt"`})]}),x.jsx("div",{className:"rounded-xl border border-zinc-800 bg-zinc-900/60 lg:mt-14",children:x.jsx("div",{"aria-live":"polite",children:x.jsxs("div",{className:"landing-select p-6 sm:p-8",children:[x.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[x.jsx("h3",{className:"text-lg font-semibold tracking-tight text-zinc-100",children:u.label}),x.jsx("span",{className:Ei("rounded-full px-2.5 py-1 text-xs font-semibold",u.status==="Active"?"bg-amber-400 text-zinc-950":"bg-zinc-900 text-zinc-400 ring-1 ring-zinc-700"),children:u.status})]}),x.jsxs("dl",{className:"mt-6 space-y-4 text-sm",children:[x.jsxs("div",{children:[x.jsx("dt",{className:"text-zinc-400",children:"Source"}),x.jsx("dd",{className:"mt-1 font-medium text-zinc-100",children:u.source})]}),x.jsxs("div",{children:[x.jsx("dt",{className:"text-zinc-400",children:"Timestamp"}),x.jsx("dd",{className:"mt-1 font-medium text-zinc-100",children:u.timestamp})]}),x.jsxs("div",{children:[x.jsx("dt",{className:"text-zinc-400",children:"Note"}),x.jsx("dd",{className:"mt-1 leading-relaxed text-zinc-100",children:u.note})]})]}),u.status==="Superseded"&&x.jsx("p",{className:"mt-5 border-t border-zinc-800 pt-4 text-xs text-zinc-400",children:"Never deleted. It stays in the timeline as evidence of what was asked before."})]},u.id)})})]})]})})}function y1(){return x.jsx("section",{id:"how-it-works",className:"scroll-mt-20 border-b border-zinc-800",children:x.jsxs("div",{className:"mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24",children:[x.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-zinc-100 sm:text-3xl",children:"How it works"}),x.jsx("ol",{className:"mt-10 grid gap-8 sm:grid-cols-2 lg:grid-cols-4",children:r1.map((a,c)=>x.jsxs("li",{children:[x.jsx("span",{className:"text-sm font-semibold text-zinc-400",children:String(c+1).padStart(2,"0")}),x.jsx("h3",{className:"mt-2 font-semibold text-zinc-100",children:a.label}),x.jsx("p",{className:"mt-1 text-sm leading-relaxed text-zinc-400",children:a.text})]},a.label))}),x.jsxs("div",{className:"mt-12 rounded-xl border border-zinc-800 bg-zinc-900/60 p-6 sm:p-8",children:[x.jsx("h3",{className:"text-lg font-semibold tracking-tight text-zinc-100",children:"Ask it anything"}),x.jsx("p",{className:"mt-2 text-zinc-400",children:"From your terminal, your agent harness, or the web UI."}),x.jsxs("ul",{className:"mt-5 space-y-2 text-zinc-100",children:[x.jsx("li",{children:'"What changed since last week?"'}),x.jsx("li",{children:'"Why does this task exist?"'}),x.jsx("li",{children:'"Which APIs are affected?"'})]}),x.jsx("p",{className:"mt-5 text-sm text-zinc-400",children:"You get a grounded answer with a source and a timestamp, not a guess."})]})]})})}function p1(){return x.jsx("section",{className:"border-b border-zinc-800",children:x.jsx("div",{className:"mx-auto w-full max-w-6xl px-4 py-16 sm:px-6 sm:py-24",children:x.jsxs("div",{className:"max-w-3xl",children:[x.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-zinc-100 sm:text-3xl",children:"The human touch"}),x.jsxs("div",{className:"mt-6 space-y-5 text-zinc-400",children:[x.jsx("p",{children:`Trachex doesn't write your code. It doesn't decide anything for you. Every checklist item is checked off by a human, always, because a tracking tool that quietly marks things "done" on your behalf isn't a tracking tool anymore. It's a liability.`}),x.jsx("p",{children:`What Trachex actually does is smaller and more useful than "AI automation": it remembers precisely, so your brain doesn't have to, freeing you up to think about the engineering problem instead of reconstructing what was asked six different times across six different threads.`}),x.jsx("p",{children:"This is also not surveillance. The audit trail exists to protect you, the developer, with a record of exactly what was asked and when it changed. It's evidence for you, not a leash."})]}),x.jsx("h3",{className:"mt-12 text-lg font-semibold tracking-tight text-zinc-100",children:"Value, plainly"}),x.jsx("ul",{className:"mt-5 grid gap-x-8 gap-y-6 sm:grid-cols-2 lg:grid-cols-3",children:o1.map(a=>x.jsxs("li",{children:[x.jsx("p",{className:"font-semibold text-zinc-100",children:a.label}),x.jsx("p",{className:"mt-1 text-sm leading-relaxed text-zinc-400",children:a.text})]},a.label))})]})})})}function v1({onStayTuned:a}){return x.jsx("section",{className:"border-b border-zinc-800",children:x.jsx("div",{className:"mx-auto w-full max-w-6xl px-4 py-20 sm:px-6 sm:py-28",children:x.jsxs("div",{className:"max-w-3xl",children:[x.jsx("h2",{className:"text-2xl font-semibold tracking-tight text-zinc-100 sm:text-3xl",children:"You already do the work of tracking requirement changes in your head."}),x.jsx("p",{className:"mt-3 text-lg text-zinc-400",children:"Let something else hold that memory for you."}),x.jsx(bo,{onClick:a,className:"mt-8 px-6 py-3 text-base"})]})})})}function b1(){return x.jsx("footer",{className:"border-t border-zinc-800",children:x.jsxs("div",{className:"mx-auto flex w-full max-w-6xl flex-col gap-3 px-4 py-8 sm:flex-row sm:items-center sm:justify-between sm:px-6",children:[x.jsxs("p",{className:"text-sm text-zinc-400",children:[x.jsx("span",{className:"font-semibold text-zinc-100",children:"Trachex"}),". A development checklist that remembers, so you don't have to."]}),x.jsx(Qe,{to:"/projects",className:"text-sm text-zinc-400 hover:text-zinc-100",children:"Open dashboard"})]})})}function x1({open:a,onClose:c}){const u=F.useRef(null);return F.useEffect(()=>{const r=u.current;r&&(a&&!r.open?r.showModal():!a&&r.open&&r.close())},[a]),F.useEffect(()=>{const r=u.current;if(!r)return;const o=()=>c();return r.addEventListener("close",o),()=>r.removeEventListener("close",o)},[c]),x.jsxs("dialog",{ref:u,"aria-modal":"true","aria-labelledby":"stay-tuned-title",className:"w-[calc(100%-2rem)] max-w-md rounded-xl border border-zinc-500 bg-zinc-950 p-6 text-zinc-100",children:[x.jsxs("div",{className:"flex items-start justify-between gap-4",children:[x.jsx("h2",{id:"stay-tuned-title",className:"text-xl font-semibold tracking-tight text-zinc-100",children:"Stay tuned. It's coming soon."}),x.jsx("button",{type:"button","aria-label":"Close",onClick:()=>{var r;return(r=u.current)==null?void 0:r.close()},className:"rounded p-3 text-zinc-400 hover:text-zinc-100",children:x.jsx(Cb,{className:"h-5 w-5","aria-hidden":"true"})})]}),x.jsxs("div",{className:"mt-4 space-y-3 text-sm text-zinc-400",children:[x.jsx("p",{children:"The trachex package isn't published yet. The CLI and dashboard are still being prepared for the first release."}),x.jsx("p",{children:"Once it ships, a single command gets you running:"}),x.jsx("pre",{className:"overflow-x-auto rounded-lg border border-zinc-800 bg-zinc-900/60 px-3 py-2 font-mono text-xs text-zinc-300",children:"npx trachex init"}),x.jsx("p",{children:"No account, no email list, no vendor lock-in."})]}),x.jsx("button",{type:"button",onClick:()=>{var r;return(r=u.current)==null?void 0:r.close()},className:"mt-6 w-full rounded-md bg-amber-400 px-4 py-2.5 text-sm font-semibold text-zinc-950 transition-colors hover:bg-amber-300 motion-reduce:transition-none",children:"Close"})]})}async function Wn(a,c){var r;const u=await fetch(a,{headers:{"Content-Type":"application/json"},...c});if(!u.ok){const o=await u.json().catch(()=>({}));throw new Error(((r=o.error)==null?void 0:r.message)??`request failed: ${u.status}`)}return await u.json()}const yn={listProjects:()=>Wn("/api/projects"),createProject:a=>Wn("/api/projects",{method:"POST",body:JSON.stringify(a)}),listTickets:a=>Wn(`/api/projects/${a}/tickets`),getCanvas:(a,c)=>Wn(`/api/projects/${a}/tickets/${c}`),addAdjustment:(a,c,u)=>Wn(`/api/projects/${a}/tickets/${c}/adjustments`,{method:"POST",body:JSON.stringify(u)}),approveProposal:a=>Wn(`/api/proposals/${a}/approve`,{method:"POST"}),rejectProposal:a=>Wn(`/api/proposals/${a}/reject`,{method:"POST"}),checkRequirement:a=>Wn(`/api/requirements/${a}/check`,{method:"POST",body:JSON.stringify({confirm:!0})}),exportSummary:(a,c,u)=>fetch(`/api/projects/${a}/tickets/${c}/export?format=${u}`).then(r=>r.text())},J0=_u({getParentRoute:()=>Di,path:"/projects/$projectId/tickets/$ticketKey",component:S1});function S1(){const{projectId:a,ticketKey:c}=Su({from:J0.id}),[u,r]=F.useState(null),[o,f]=F.useState(null),[m,g]=F.useState("context"),[y,h]=F.useState(""),[b,v]=F.useState("chat"),[S,_]=F.useState(""),T=()=>{yn.getCanvas(a,c).then(r).catch(B=>f(String(B)))};if(F.useEffect(T,[a,c]),o)return x.jsx("p",{className:"text-red-700",children:o});if(!u)return x.jsx("p",{className:"text-zinc-500",children:"Loading…"});const A=async B=>{window.confirm("Mark this requirement as complete? This is a human action.")&&(await yn.checkRequirement(B),T())},N=async B=>{window.confirm("Approve this proposal? It will create or supersede canonical requirements.")&&(await yn.approveProposal(B),T())},O=async B=>{await yn.rejectProposal(B),T()},D=async()=>{y.trim()&&(await yn.addAdjustment(a,c,{source:b,...S?{attribution:S}:{},note:y}),h(""),_(""),T())},k=async B=>{const X=await yn.exportSummary(a,c,B),V=new Blob([X],{type:B==="json"?"application/json":"text/markdown"}),$=URL.createObjectURL(V),Q=document.createElement("a");Q.href=$,Q.download=`${c}.${B==="json"?"json":"md"}`,Q.click(),URL.revokeObjectURL($)},Z=u.proposals.filter(B=>B.status==="pending");return x.jsxs("div",{children:[x.jsxs("div",{className:"mb-4 flex items-center justify-between",children:[x.jsxs("div",{children:[x.jsx(Qe,{to:"/projects/$projectId",params:{projectId:a},className:"text-sm text-zinc-500 hover:underline",children:u.project.name}),x.jsx("span",{className:"mx-2 text-zinc-400",children:"/"}),x.jsx("span",{className:"font-semibold",children:u.ticket.key}),x.jsx("span",{className:"ml-2 text-sm text-zinc-500",children:u.ticket.title})]}),x.jsxs("div",{className:"flex gap-2",children:[x.jsxs("button",{type:"button",className:"flex items-center gap-1 rounded border border-zinc-300 px-2 py-1 text-sm hover:bg-zinc-100",onClick:()=>k("markdown"),children:[x.jsx(i0,{className:"h-4 w-4"})," MD"]}),x.jsxs("button",{type:"button",className:"flex items-center gap-1 rounded border border-zinc-300 px-2 py-1 text-sm hover:bg-zinc-100",onClick:()=>k("json"),children:[x.jsx(i0,{className:"h-4 w-4"})," JSON"]})]})]}),x.jsxs("div",{className:"grid gap-4 lg:grid-cols-[1fr_320px]",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[x.jsx("h2",{className:"text-lg font-semibold",children:"Current Checklist"}),x.jsxs("span",{className:"text-sm text-zinc-500",children:[u.checklist.filter(B=>B.devStatus==="checked").length,"/",u.checklist.length," done"]})]}),x.jsxs("ul",{className:"space-y-2",children:[u.checklist.map(B=>x.jsx("li",{className:"rounded border border-zinc-200 bg-white p-3",children:x.jsxs("div",{className:"flex items-start gap-2",children:[x.jsx("button",{type:"button",onClick:()=>A(B.id),className:"mt-0.5 text-zinc-400 hover:text-zinc-900",title:B.devStatus==="checked"?"Checked":"Mark complete",children:B.devStatus==="checked"?x.jsx(Tb,{className:"h-5 w-5 text-emerald-600"}):x.jsx(Eb,{className:"h-5 w-5"})}),x.jsxs("div",{children:[x.jsx("p",{className:"font-medium",children:B.title}),B.sourceLocation&&x.jsxs("p",{className:"text-xs text-zinc-500",children:["Source: ",B.sourceLocation]}),x.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:u.impacts.filter(X=>X.requirementId===B.id).map(X=>x.jsx("span",{className:"rounded bg-zinc-100 px-1.5 py-0.5 text-xs text-zinc-600",children:X.value},X.id))}),u.scenarios.filter(X=>X.requirementId===B.id).length>0&&x.jsxs("details",{className:"mt-1",children:[x.jsx("summary",{className:"text-xs text-zinc-500",children:"Test scenarios"}),x.jsx("ul",{className:"mt-1 list-inside list-disc text-xs text-zinc-600",children:u.scenarios.filter(X=>X.requirementId===B.id).map(X=>x.jsx("li",{children:X.text},X.id))})]})]})]})},B.id)),u.checklist.length===0&&x.jsx("li",{className:"text-sm text-zinc-500",children:"No active requirements yet."})]}),Z.length>0&&x.jsxs("div",{className:"mt-6",children:[x.jsx("h3",{className:"mb-2 text-lg font-semibold",children:"Pending Proposals"}),x.jsx("ul",{className:"space-y-2",children:Z.map(B=>x.jsxs("li",{className:"rounded border border-amber-200 bg-amber-50 p-3",children:[x.jsxs("p",{className:"text-sm font-medium",children:[B.kind," proposal"]}),x.jsx("p",{className:"text-xs text-zinc-500",children:B.id}),x.jsxs("div",{className:"mt-2 flex gap-2",children:[x.jsx("button",{type:"button",className:"rounded bg-emerald-600 px-2 py-1 text-xs text-white hover:bg-emerald-500",onClick:()=>N(B.id),children:"Approve"}),x.jsx("button",{type:"button",className:"rounded bg-zinc-200 px-2 py-1 text-xs hover:bg-zinc-300",onClick:()=>O(B.id),children:"Reject"})]})]},B.id))})]}),x.jsxs("div",{className:"mt-6 rounded border border-zinc-200 bg-white p-3",children:[x.jsx("h3",{className:"mb-2 font-semibold",children:"Add Adjustment"}),x.jsxs("div",{className:"mb-2 flex gap-2",children:[x.jsx("select",{className:"rounded border border-zinc-300 px-2 py-1 text-sm",value:b,onChange:B=>v(B.target.value),children:["fsd","brd","chat","meeting","clarification","uat","manual","context"].map(B=>x.jsx("option",{value:B,children:B},B))}),x.jsx("input",{className:"rounded border border-zinc-300 px-2 py-1 text-sm",placeholder:"attribution",value:S,onChange:B=>_(B.target.value)})]}),x.jsx("textarea",{className:"w-full rounded border border-zinc-300 px-2 py-1 text-sm",rows:3,placeholder:"Note (e.g. discount cap should be 15%, not 20%)",value:y,onChange:B=>h(B.target.value)}),x.jsx("button",{type:"button",className:"mt-2 rounded bg-zinc-900 px-3 py-1.5 text-sm text-white hover:bg-zinc-700",onClick:D,children:"Submit for reconciliation"})]})]}),x.jsxs("aside",{className:"space-y-4",children:[x.jsxs("div",{className:"flex gap-2",children:[x.jsx("button",{type:"button",className:`rounded px-2 py-1 text-sm ${m==="context"?"bg-zinc-900 text-white":"bg-zinc-200"}`,onClick:()=>g("context"),children:"Context"}),x.jsxs("button",{type:"button",className:`flex items-center gap-1 rounded px-2 py-1 text-sm ${m==="history"?"bg-zinc-900 text-white":"bg-zinc-200"}`,onClick:()=>g("history"),children:[x.jsx(jb,{className:"h-3 w-3"})," History"]}),x.jsxs("button",{type:"button",className:`flex items-center gap-1 rounded px-2 py-1 text-sm ${m==="chat"?"bg-zinc-900 text-white":"bg-zinc-200"}`,onClick:()=>g("chat"),children:[x.jsx(Ab,{className:"h-3 w-3"})," Chat"]})]}),m==="context"&&x.jsxs("div",{className:"rounded border border-zinc-200 bg-white p-3",children:[x.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Impacts"}),x.jsxs("ul",{className:"space-y-1 text-sm text-zinc-600",children:[u.impacts.map(B=>x.jsxs("li",{children:[x.jsxs("span",{className:"text-zinc-400",children:[B.kind,":"]})," ",B.value]},B.id)),u.impacts.length===0&&x.jsx("li",{className:"text-zinc-500",children:"No impacts recorded."})]})]}),m==="history"&&x.jsxs("div",{className:"rounded border border-zinc-200 bg-white p-3",children:[x.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Timeline"}),x.jsxs("ul",{className:"space-y-1 text-xs text-zinc-600",children:[u.timeline.map(B=>x.jsxs("li",{className:"border-l-2 border-zinc-200 pl-2",children:[x.jsx("span",{className:"text-zinc-400",children:B.at.slice(0,10)})," — ",B.description]},`${B.at}-${B.description}`)),u.timeline.length===0&&x.jsx("li",{className:"text-zinc-500",children:"No events yet."})]})]}),m==="chat"&&x.jsx(_1,{projectId:a,ticketKey:c})]})]})]})}function _1({projectId:a,ticketKey:c}){const[u,r]=F.useState(""),[o,f]=F.useState([]),m=F.useRef(0),g=h=>f(b=>[...b,{id:m.current++,text:h}]),y=async()=>{var S;if(!u.trim())return;const b=(S=(await fetch(`/api/chat/${a}/${c}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:u})})).body)==null?void 0:S.getReader();if(!b)return;const v=new TextDecoder;for(g(`> ${u}`),r("");;){const{done:_,value:T}=await b.read();if(_)break;const A=v.decode(T);for(const N of A.trim().split(` `))if(N)try{const O=JSON.parse(N);if(O.type==="error")g(`error: ${O.error}`);else if(O.text){const D=O.text;g(D)}}catch{g(N)}}};return x.jsxs("div",{className:"rounded border border-zinc-200 bg-white p-3",children:[x.jsx("h4",{className:"mb-2 text-sm font-semibold",children:"Assistant"}),x.jsx("div",{className:"mb-2 max-h-64 space-y-1 overflow-y-auto text-xs text-zinc-600",children:o.map(h=>x.jsx("p",{children:h.text},h.id))}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx("input",{className:"flex-1 rounded border border-zinc-300 px-2 py-1 text-sm",value:u,onChange:h=>r(h.target.value),onKeyDown:h=>h.key==="Enter"&&y(),placeholder:"Ask about this ticket"}),x.jsx("button",{type:"button",className:"rounded bg-zinc-900 px-2 py-1 text-sm text-white hover:bg-zinc-700",onClick:y,children:"Send"})]}),x.jsx("p",{className:"mt-2 text-[11px] text-zinc-400",children:"Chat only creates pending proposals — never silent changes."})]})}const W0=_u({getParentRoute:()=>Di,path:"/projects/$projectId",component:z1});function z1(){const{projectId:a}=Su({from:W0.id}),[c,u]=F.useState([]),[r,o]=F.useState(""),[f,m]=F.useState(""),[g,y]=F.useState(null);F.useEffect(()=>{yn.listTickets(a).then(b=>u(b.tickets)).catch(b=>y(String(b)))},[a]);const h=async()=>{var b;y(null);try{const v=await fetch(`/api/projects/${a}/tickets`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:r,title:f||r})});if(!v.ok)throw new Error(((b=(await v.json()).error)==null?void 0:b.message)??"failed");const S=await v.json();u(_=>[..._,S.ticket]),o(""),m("")}catch(v){y(v instanceof Error?v.message:String(v))}};return x.jsxs("div",{children:[x.jsx(Qe,{to:"/projects",className:"text-sm text-zinc-500 hover:underline",children:"← Projects"}),x.jsx("h1",{className:"mb-4 mt-2 text-xl font-semibold",children:"Tickets"}),g&&x.jsx("p",{className:"mb-3 rounded border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700",children:g}),x.jsxs("div",{className:"mb-6 flex gap-2",children:[x.jsx("input",{className:"rounded border border-zinc-300 px-3 py-1.5 text-sm",placeholder:"key",value:r,onChange:b=>o(b.target.value)}),x.jsx("input",{className:"rounded border border-zinc-300 px-3 py-1.5 text-sm",placeholder:"title",value:f,onChange:b=>m(b.target.value)}),x.jsx("button",{type:"button",className:"rounded bg-zinc-900 px-3 py-1.5 text-sm text-white hover:bg-zinc-700",onClick:h,children:"Create"})]}),x.jsx("ul",{className:"space-y-2",children:c.map(b=>x.jsxs("li",{className:"rounded border border-zinc-200 bg-white p-3",children:[x.jsx(Qe,{to:"/projects/$projectId/tickets/$ticketKey",params:{projectId:a,ticketKey:b.key},className:"font-medium hover:underline",children:b.key}),x.jsx("span",{className:"ml-2 text-sm text-zinc-500",children:b.title})]},b.id))})]})}const T1=_u({getParentRoute:()=>Di,path:"/projects",component:E1});function E1(){const[a,c]=F.useState([]),[u,r]=F.useState(""),[o,f]=F.useState(""),[m,g]=F.useState(null);F.useEffect(()=>{yn.listProjects().then(h=>c(h.projects)).catch(h=>g(String(h)))},[]);const y=async()=>{g(null);try{const h=await yn.createProject({slug:u,name:o||u});c(b=>[...b,h.project]),r(""),f("")}catch(h){g(h instanceof Error?h.message:String(h))}};return x.jsxs("div",{children:[x.jsx("h1",{className:"mb-4 text-xl font-semibold",children:"Projects"}),m&&x.jsx("p",{className:"mb-3 rounded border border-red-200 bg-red-50 px-3 py-2 text-sm text-red-700",children:m}),x.jsxs("div",{className:"mb-6 flex gap-2",children:[x.jsx("input",{className:"rounded border border-zinc-300 px-3 py-1.5 text-sm",placeholder:"slug",value:u,onChange:h=>r(h.target.value)}),x.jsx("input",{className:"rounded border border-zinc-300 px-3 py-1.5 text-sm",placeholder:"name",value:o,onChange:h=>f(h.target.value)}),x.jsx("button",{type:"button",className:"rounded bg-zinc-900 px-3 py-1.5 text-sm text-white hover:bg-zinc-700",onClick:y,children:"Create"})]}),x.jsx("ul",{className:"space-y-2",children:a.map(h=>x.jsxs("li",{className:"rounded border border-zinc-200 bg-white p-3",children:[x.jsx(Qe,{to:"/projects/$projectId",params:{projectId:h.id},className:"font-medium hover:underline",children:h.name}),x.jsx("span",{className:"ml-2 text-sm text-zinc-500",children:h.slug})]},h.id))})]})}const j1=Di.addChildren([s1,T1.addChildren([W0.addChildren([J0])])]),A1=sb({routeTree:j1}),F0=document.getElementById("root");if(!F0)throw new Error("root element not found");bb.createRoot(F0).render(x.jsx(F.StrictMode,{children:x.jsx(fb,{router:A1})}));