From b4a5633bd45e2e45f2fab43f4a355b506009e136 Mon Sep 17 00:00:00 2001 From: legop3 Date: Mon, 22 Dec 2025 01:03:37 -0500 Subject: [PATCH] wug --- server/public/assets/{index-BsspRmsu.js => index-BZaJy6qR.js} | 2 +- server/public/index.html | 2 +- webui/src/mini/MiniSummaryApp.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename server/public/assets/{index-BsspRmsu.js => index-BZaJy6qR.js} (99%) diff --git a/server/public/assets/index-BsspRmsu.js b/server/public/assets/index-BZaJy6qR.js similarity index 99% rename from server/public/assets/index-BsspRmsu.js rename to server/public/assets/index-BZaJy6qR.js index a0d8b3d3..b3a9414a 100644 --- a/server/public/assets/index-BsspRmsu.js +++ b/server/public/assets/index-BZaJy6qR.js @@ -9,4 +9,4 @@ Error generating stack: `+a.message+` `).replace(Mg,"")}function nm(e,t){return t=tm(t),tm(e)===t}function Te(e,t,n,a,u,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||wa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&wa(e,""+a);break;case"className":Ni(e,"class",a);break;case"tabIndex":Ni(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ni(e,n,a);break;case"style":tf(e,a,c);break;case"data":if(t!=="object"){Ni(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Te(e,t,"name",u.name,u,null),Te(e,t,"formEncType",u.formEncType,u,null),Te(e,t,"formMethod",u.formMethod,u,null),Te(e,t,"formTarget",u.formTarget,u,null)):(Te(e,t,"encType",u.encType,u,null),Te(e,t,"method",u.method,u,null),Te(e,t,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=nn);break;case"onScroll":a!=null&&ge("scroll",e);break;case"onScrollEnd":a!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=wi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":ge("beforetoggle",e),ge("toggle",e),ji(e,"popover",a);break;case"xlinkActuate":tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":tn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":tn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":tn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":tn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ji(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2x)break;var L=S.transferSize,V=S.initiatorType;L&&am(V)&&(S=S.responseEnd,d+=L*(S"u"?null:document;function pm(e,t,n){var a=nl;if(a&&typeof t=="string"&&t){var u=Ct(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),mm.has(u)||(mm.add(u),e={rel:e,crossOrigin:n,href:t},a.querySelector(u)===null&&(t=a.createElement("link"),lt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Qg(e){xn.D(e),pm("dns-prefetch",e,null)}function Gg(e,t){xn.C(e,t),pm("preconnect",e,t)}function Xg(e,t,n){xn.L(e,t,n);var a=nl;if(a&&e&&t){var u='link[rel="preload"][as="'+Ct(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ct(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ct(n.imageSizes)+'"]')):u+='[href="'+Ct(e)+'"]';var c=u;switch(t){case"style":c=al(e);break;case"script":c=ll(e)}kt.has(c)||(e=A({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),kt.set(c,e),a.querySelector(u)!==null||t==="style"&&a.querySelector(Il(c))||t==="script"&&a.querySelector(Pl(c))||(t=a.createElement("link"),lt(t,"link",e),Ie(t),a.head.appendChild(t)))}}function Kg(e,t){xn.m(e,t);var n=nl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Ct(a)+'"][href="'+Ct(e)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ll(e)}if(!kt.has(c)&&(e=A({rel:"modulepreload",href:e},t),kt.set(c,e),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Pl(c)))return}a=n.createElement("link"),lt(a,"link",e),Ie(a),n.head.appendChild(a)}}}function Zg(e,t,n){xn.S(e,t,n);var a=nl;if(a&&e){var u=ja(a).hoistableStyles,c=al(e);t=t||"default";var d=u.get(c);if(!d){var x={loading:0,preload:null};if(d=a.querySelector(Il(c)))x.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(c))&&gc(e,n);var S=d=a.createElement("link");Ie(S),lt(S,"link",e),S._p=new Promise(function(O,L){S.onload=O,S.onerror=L}),S.addEventListener("load",function(){x.loading|=1}),S.addEventListener("error",function(){x.loading|=2}),x.loading|=4,js(d,t,a)}d={type:"stylesheet",instance:d,count:1,state:x},u.set(c,d)}}}function Jg(e,t){xn.X(e,t);var n=nl;if(n&&e){var a=ja(n).hoistableScripts,u=ll(e),c=a.get(u);c||(c=n.querySelector(Pl(u)),c||(e=A({src:e,async:!0},t),(t=kt.get(u))&&vc(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function Fg(e,t){xn.M(e,t);var n=nl;if(n&&e){var a=ja(n).hoistableScripts,u=ll(e),c=a.get(u);c||(c=n.querySelector(Pl(u)),c||(e=A({src:e,async:!0,type:"module"},t),(t=kt.get(u))&&vc(e,t),c=n.createElement("script"),Ie(c),lt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function ym(e,t,n,a){var u=(u=ce.current)?Es(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=al(n.href),n=ja(u).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=al(n.href);var c=ja(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Il(e)))&&!c._p&&(d.instance=c,d.state.loading=5),kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kt.set(e,n),c||$g(u,e,n,d.state))),t&&a===null)throw Error(r(528,""));return d}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ll(n),n=ja(u).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function al(e){return'href="'+Ct(e)+'"'}function Il(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function $g(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),lt(t,"link",n),Ie(t),e.head.appendChild(t))}function ll(e){return'[src="'+Ct(e)+'"]'}function Pl(e){return"script[async]"+e}function vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Ct(n.href)+'"]');if(a)return t.instance=a,Ie(a),a;var u=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ie(a),lt(a,"style",u),js(a,n.precedence,e),t.instance=a;case"stylesheet":u=al(n.href);var c=e.querySelector(Il(u));if(c)return t.state.loading|=4,t.instance=c,Ie(c),c;a=gm(n),(u=kt.get(u))&&gc(a,u),c=(e.ownerDocument||e).createElement("link"),Ie(c);var d=c;return d._p=new Promise(function(x,S){d.onload=x,d.onerror=S}),lt(c,"link",a),t.state.loading|=4,js(c,n.precedence,e),t.instance=c;case"script":return c=ll(n.src),(u=e.querySelector(Pl(c)))?(t.instance=u,Ie(u),u):(a=n,(u=kt.get(c))&&(a=A({},n),vc(a,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ie(u),lt(u,"link",a),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,js(a,n.precedence,e));return t.instance}function js(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,d=0;d title"):null)}function Wg(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Am(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ig(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=al(a.href),c=t.querySelector(Il(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,Ie(c);return}c=t.ownerDocument||t,a=gm(a),(u=kt.get(u))&&gc(a,u),c=c.createElement("link"),Ie(c);var d=c;d._p=new Promise(function(x,S){d.onload=x,d.onerror=S}),lt(c,"link",a),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Cs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var xc=0;function Pg(e,t){return e.stylesheets&&e.count===0&&Ts(e,e.stylesheets),0xc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ws=null;function Ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ws=new Map,t.forEach(ev,e),ws=null,Cs.call(e))}function ev(e,t){if(!(t.state.loading&4)){var n=ws.get(e);if(n)var a=n.get(null);else{n=new Map,ws.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),wc.exports=gv(),wc.exports}var xv=vv();var Xm="popstate";function bv(l={}){function i(r,f){let{pathname:h,search:m,hash:v}=r.location;return Zc("",{pathname:h,search:m,hash:v},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(r,f){return typeof f=="string"?f:hi(f)}return Sv(i,s,null,l)}function Be(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Xt(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function Av(){return Math.random().toString(36).substring(2,10)}function Km(l,i){return{usr:l.state,key:l.key,idx:i}}function Zc(l,i,s=null,r){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?ul(i):i,state:s,key:i&&i.key||r||Av()}}function hi({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function ul(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function Sv(l,i,s,r={}){let{window:f=document.defaultView,v5Compat:h=!1}=r,m=f.history,v="POP",y=null,g=b();g==null&&(g=0,m.replaceState({...m.state,idx:g},""));function b(){return(m.state||{idx:null}).idx}function A(){v="POP";let j=b(),R=j==null?null:j-g;g=j,y&&y({action:v,location:E.location,delta:R})}function N(j,R){v="PUSH";let z=Zc(E.location,j,R);g=b()+1;let Q=Km(z,g),P=E.createHref(z);try{m.pushState(Q,"",P)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;f.location.assign(P)}h&&y&&y({action:v,location:E.location,delta:1})}function w(j,R){v="REPLACE";let z=Zc(E.location,j,R);g=b();let Q=Km(z,g),P=E.createHref(z);m.replaceState(Q,"",P),h&&y&&y({action:v,location:E.location,delta:0})}function T(j){return qv(j)}let E={get action(){return v},get location(){return l(f,m)},listen(j){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(Xm,A),y=j,()=>{f.removeEventListener(Xm,A),y=null}},createHref(j){return i(f,j)},createURL:T,encodeLocation(j){let R=T(j);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:N,replace:w,go(j){return m.go(j)}};return E}function qv(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Be(s,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:hi(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Rp(l,i,s="/"){return Ev(l,i,s,!1)}function Ev(l,i,s,r){let f=typeof i=="string"?ul(i):i,h=En(f.pathname||"/",s);if(h==null)return null;let m=Mp(l);jv(m);let v=null;for(let y=0;v==null&&y{let b={relativePath:g===void 0?m.path||"":g,caseSensitive:m.caseSensitive===!0,childrenIndex:v,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;Be(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let A=Sn([r,b.relativePath]),N=s.concat(b);m.children&&m.children.length>0&&(Be(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Mp(m.children,i,N,A,y)),!(m.path==null&&!m.index)&&i.push({path:A,score:_v(A,m.index),routesMeta:N})};return l.forEach((m,v)=>{if(m.path===""||!m.path?.includes("?"))h(m,v);else for(let y of _p(m.path))h(m,v,!0,y)}),i}function _p(l){let i=l.split("/");if(i.length===0)return[];let[s,...r]=i,f=s.endsWith("?"),h=s.replace(/\?$/,"");if(r.length===0)return f?[h,""]:[h];let m=_p(r.join("/")),v=[];return v.push(...m.map(y=>y===""?h:[h,y].join("/"))),f&&v.push(...m),v.map(y=>l.startsWith("/")&&y===""?"/":y)}function jv(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:Ov(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Nv=/^:[\w-]+$/,Cv=3,wv=2,Tv=1,Rv=10,Mv=-2,Zm=l=>l==="*";function _v(l,i){let s=l.split("/"),r=s.length;return s.some(Zm)&&(r+=Mv),i&&(r+=wv),s.filter(f=>!Zm(f)).reduce((f,h)=>f+(Nv.test(h)?Cv:h===""?Tv:Rv),r)}function Ov(l,i){return l.length===i.length&&l.slice(0,-1).every((r,f)=>r===i[f])?l[l.length-1]-i[i.length-1]:0}function Dv(l,i,s=!1){let{routesMeta:r}=l,f={},h="/",m=[];for(let v=0;v{if(b==="*"){let T=v[N]||"";m=h.slice(0,h.length-T.length).replace(/(.)\/+$/,"$1")}const w=v[N];return A&&!w?g[b]=void 0:g[b]=(w||"").replace(/%2F/g,"/"),g},{}),pathname:h,pathnameBase:m,pattern:l}}function kv(l,i=!1,s=!0){Xt(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,v,y)=>(r.push({paramName:v,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,i?void 0:"i"),r]}function zv(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Xt(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function En(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=l.charAt(s);return r&&r!=="/"?null:l.slice(s)||"/"}var Bv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Uv=l=>Bv.test(l);function Lv(l,i="/"){let{pathname:s,search:r="",hash:f=""}=typeof l=="string"?ul(l):l,h;if(s)if(Uv(s))h=s;else{if(s.includes("//")){let m=s;s=s.replace(/\/\/+/g,"/"),Xt(!1,`Pathnames cannot have embedded double slashes - normalizing ${m} -> ${s}`)}s.startsWith("/")?h=Jm(s.substring(1),"/"):h=Jm(s,i)}else h=i;return{pathname:h,search:Yv(r),hash:Qv(f)}}function Jm(l,i){let s=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function _c(l,i,s,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Hv(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Op(l){let i=Hv(l);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function Dp(l,i,s,r=!1){let f;typeof l=="string"?f=ul(l):(f={...l},Be(!f.pathname||!f.pathname.includes("?"),_c("?","pathname","search",f)),Be(!f.pathname||!f.pathname.includes("#"),_c("#","pathname","hash",f)),Be(!f.search||!f.search.includes("#"),_c("#","search","hash",f)));let h=l===""||f.pathname==="",m=h?"/":f.pathname,v;if(m==null)v=s;else{let A=i.length-1;if(!r&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),A-=1;f.pathname=N.join("/")}v=A>=0?i[A]:"/"}let y=Lv(f,v),g=m&&m!=="/"&&m.endsWith("/"),b=(h||m===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(g||b)&&(y.pathname+="/"),y}var Sn=l=>l.join("/").replace(/\/\/+/g,"/"),Vv=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Yv=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Qv=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Gv(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var kp=["POST","PUT","PATCH","DELETE"];new Set(kp);var Xv=["GET",...kp];new Set(Xv);var cl=p.createContext(null);cl.displayName="DataRouter";var ar=p.createContext(null);ar.displayName="DataRouterState";p.createContext(!1);var zp=p.createContext({isTransitioning:!1});zp.displayName="ViewTransition";var Kv=p.createContext(new Map);Kv.displayName="Fetchers";var Zv=p.createContext(null);Zv.displayName="Await";var Pt=p.createContext(null);Pt.displayName="Navigation";var pi=p.createContext(null);pi.displayName="Location";var jn=p.createContext({outlet:null,matches:[],isDataRoute:!1});jn.displayName="Route";var co=p.createContext(null);co.displayName="RouteError";function Jv(l,{relative:i}={}){Be(yi(),"useHref() may be used only in the context of a component.");let{basename:s,navigator:r}=p.useContext(Pt),{hash:f,pathname:h,search:m}=gi(l,{relative:i}),v=h;return s!=="/"&&(v=h==="/"?s:Sn([s,h])),r.createHref({pathname:v,search:m,hash:f})}function yi(){return p.useContext(pi)!=null}function ba(){return Be(yi(),"useLocation() may be used only in the context of a component."),p.useContext(pi).location}var Bp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Up(l){p.useContext(Pt).static||p.useLayoutEffect(l)}function Fv(){let{isDataRoute:l}=p.useContext(jn);return l?ux():$v()}function $v(){Be(yi(),"useNavigate() may be used only in the context of a component.");let l=p.useContext(cl),{basename:i,navigator:s}=p.useContext(Pt),{matches:r}=p.useContext(jn),{pathname:f}=ba(),h=JSON.stringify(Op(r)),m=p.useRef(!1);return Up(()=>{m.current=!0}),p.useCallback((y,g={})=>{if(Xt(m.current,Bp),!m.current)return;if(typeof y=="number"){s.go(y);return}let b=Dp(y,JSON.parse(h),f,g.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Sn([i,b.pathname])),(g.replace?s.replace:s.push)(b,g.state,g)},[i,s,h,f,l])}p.createContext(null);function gi(l,{relative:i}={}){let{matches:s}=p.useContext(jn),{pathname:r}=ba(),f=JSON.stringify(Op(s));return p.useMemo(()=>Dp(l,JSON.parse(f),r,i==="path"),[l,f,r,i])}function Wv(l,i){return Lp(l,i)}function Lp(l,i,s,r,f){Be(yi(),"useRoutes() may be used only in the context of a component.");let{navigator:h}=p.useContext(Pt),{matches:m}=p.useContext(jn),v=m[m.length-1],y=v?v.params:{},g=v?v.pathname:"/",b=v?v.pathnameBase:"/",A=v&&v.route;{let z=A&&A.path||"";Hp(g,!A||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${g}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let N=ba(),w;if(i){let z=typeof i=="string"?ul(i):i;Be(b==="/"||z.pathname?.startsWith(b),`When overriding the location using \`\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${z.pathname}" was given in the \`location\` prop.`),w=z}else w=N;let T=w.pathname||"/",E=T;if(b!=="/"){let z=b.replace(/^\//,"").split("/");E="/"+T.replace(/^\//,"").split("/").slice(z.length).join("/")}let j=Rp(l,{pathname:E});Xt(A||j!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Xt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`);let R=nx(j&&j.map(z=>Object.assign({},z,{params:Object.assign({},y,z.params),pathname:Sn([b,h.encodeLocation?h.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?b:Sn([b,h.encodeLocation?h.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),m,s,r,f);return i&&R?p.createElement(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},R):R}function Iv(){let l=rx(),i=Gv(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},h={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",l),m=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:h},"ErrorBoundary")," or"," ",p.createElement("code",{style:h},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},i),s?p.createElement("pre",{style:f},s):null,m)}var Pv=p.createElement(Iv,null),ex=class extends p.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){return this.state.error!==void 0?p.createElement(jn.Provider,{value:this.props.routeContext},p.createElement(co.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function tx({routeContext:l,match:i,children:s}){let r=p.useContext(cl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),p.createElement(jn.Provider,{value:l},s)}function nx(l,i=[],s=null,r=null,f=null){if(l==null){if(!s)return null;if(s.errors)l=s.matches;else if(i.length===0&&!s.initialized&&s.matches.length>0)l=s.matches;else return null}let h=l,m=s?.errors;if(m!=null){let b=h.findIndex(A=>A.route.id&&m?.[A.route.id]!==void 0);Be(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,b+1))}let v=!1,y=-1;if(s)for(let b=0;b=0?h=h.slice(0,y+1):h=[h[0]];break}}}let g=s&&r?(b,A)=>{r(b,{location:s.location,params:s.matches?.[0]?.params??{},errorInfo:A})}:void 0;return h.reduceRight((b,A,N)=>{let w,T=!1,E=null,j=null;s&&(w=m&&A.route.id?m[A.route.id]:void 0,E=A.route.errorElement||Pv,v&&(y<0&&N===0?(Hp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,j=null):y===N&&(T=!0,j=A.route.hydrateFallbackElement||null)));let R=i.concat(h.slice(0,N+1)),z=()=>{let Q;return w?Q=E:T?Q=j:A.route.Component?Q=p.createElement(A.route.Component,null):A.route.element?Q=A.route.element:Q=b,p.createElement(tx,{match:A,routeContext:{outlet:b,matches:R,isDataRoute:s!=null},children:Q})};return s&&(A.route.ErrorBoundary||A.route.errorElement||N===0)?p.createElement(ex,{location:s.location,revalidation:s.revalidation,component:E,error:w,children:z(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:g}):z()},null)}function oo(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ax(l){let i=p.useContext(cl);return Be(i,oo(l)),i}function lx(l){let i=p.useContext(ar);return Be(i,oo(l)),i}function ix(l){let i=p.useContext(jn);return Be(i,oo(l)),i}function fo(l){let i=ix(l),s=i.matches[i.matches.length-1];return Be(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function sx(){return fo("useRouteId")}function rx(){let l=p.useContext(co),i=lx("useRouteError"),s=fo("useRouteError");return l!==void 0?l:i.errors?.[s]}function ux(){let{router:l}=ax("useNavigate"),i=fo("useNavigate"),s=p.useRef(!1);return Up(()=>{s.current=!0}),p.useCallback(async(f,h={})=>{Xt(s.current,Bp),s.current&&(typeof f=="number"?l.navigate(f):await l.navigate(f,{fromRouteId:i,...h}))},[l,i])}var Fm={};function Hp(l,i,s){!i&&!Fm[l]&&(Fm[l]=!0,Xt(!1,s))}p.memo(cx);function cx({routes:l,future:i,state:s,unstable_onError:r}){return Lp(l,void 0,s,r,i)}function Xs(l){Be(!1,"A is only ever to be used as the child of element, never rendered directly. Please wrap your in a .")}function ox({basename:l="/",children:i=null,location:s,navigationType:r="POP",navigator:f,static:h=!1}){Be(!yi(),"You cannot render a inside another . You should never have more than one in your app.");let m=l.replace(/^\/*/,"/"),v=p.useMemo(()=>({basename:m,navigator:f,static:h,future:{}}),[m,f,h]);typeof s=="string"&&(s=ul(s));let{pathname:y="/",search:g="",hash:b="",state:A=null,key:N="default"}=s,w=p.useMemo(()=>{let T=En(y,m);return T==null?null:{location:{pathname:T,search:g,hash:b,state:A,key:N},navigationType:r}},[m,y,g,b,A,N,r]);return Xt(w!=null,` is not able to match the URL "${y}${g}${b}" because it does not start with the basename, so the won't render anything.`),w==null?null:p.createElement(Pt.Provider,{value:v},p.createElement(pi.Provider,{children:i,value:w}))}function fx({children:l,location:i}){return Wv(Jc(l),i)}function Jc(l,i=[]){let s=[];return p.Children.forEach(l,(r,f)=>{if(!p.isValidElement(r))return;let h=[...i,f];if(r.type===p.Fragment){s.push.apply(s,Jc(r.props.children,h));return}Be(r.type===Xs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a component. All component children of must be a or `),Be(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||h.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=Jc(r.props.children,h)),s.push(m)}),s}var Ks="get",Zs="application/x-www-form-urlencoded";function lr(l){return l!=null&&typeof l.tagName=="string"}function dx(l){return lr(l)&&l.tagName.toLowerCase()==="button"}function hx(l){return lr(l)&&l.tagName.toLowerCase()==="form"}function mx(l){return lr(l)&&l.tagName.toLowerCase()==="input"}function px(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function yx(l,i){return l.button===0&&(!i||i==="_self")&&!px(l)}var Bs=null;function gx(){if(Bs===null)try{new FormData(document.createElement("form"),0),Bs=!1}catch{Bs=!0}return Bs}var vx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Oc(l){return l!=null&&!vx.has(l)?(Xt(!1,`"${l}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${Zs}"`),null):l}function xx(l,i){let s,r,f,h,m;if(hx(l)){let v=l.getAttribute("action");r=v?En(v,i):null,s=l.getAttribute("method")||Ks,f=Oc(l.getAttribute("enctype"))||Zs,h=new FormData(l)}else if(dx(l)||mx(l)&&(l.type==="submit"||l.type==="image")){let v=l.form;if(v==null)throw new Error('Cannot submit a