From 098608ffef654c52706891d00913f6a1ef65c8f2 Mon Sep 17 00:00:00 2001 From: Gimel Dick Date: Fri, 11 Jul 2025 10:29:17 -0400 Subject: [PATCH 1/2] remove studio and use jvgraph --- jvcli/cli.py | 4 +- jvcli/commands/graph.py | 23 + jvcli/commands/studio.py | 258 ----------- jvcli/studio-auth/assets/index-Bh6lyeXA.js | 218 --------- jvcli/studio-auth/assets/index-DdMMONxd.css | 1 - jvcli/studio-auth/index.html | 15 - jvcli/studio-auth/jac_logo.png | Bin 14015 -> 0 bytes jvcli/studio-auth/tauri.svg | 6 - jvcli/studio-auth/vite.svg | 1 - jvcli/studio/assets/index-DDV79SDu.js | 213 --------- jvcli/studio/assets/index-DdMMONxd.css | 1 - jvcli/studio/index.html | 15 - jvcli/studio/jac_logo.png | Bin 14015 -> 0 bytes jvcli/studio/tauri.svg | 6 - jvcli/studio/vite.svg | 1 - setup.py | 1 + tests/test_cli.py | 2 +- tests/test_graph.py | 85 ++++ tests/test_studio.py | 475 -------------------- 19 files changed, 112 insertions(+), 1213 deletions(-) create mode 100644 jvcli/commands/graph.py delete mode 100644 jvcli/commands/studio.py delete mode 100644 jvcli/studio-auth/assets/index-Bh6lyeXA.js delete mode 100644 jvcli/studio-auth/assets/index-DdMMONxd.css delete mode 100644 jvcli/studio-auth/index.html delete mode 100644 jvcli/studio-auth/jac_logo.png delete mode 100644 jvcli/studio-auth/tauri.svg delete mode 100644 jvcli/studio-auth/vite.svg delete mode 100644 jvcli/studio/assets/index-DDV79SDu.js delete mode 100644 jvcli/studio/assets/index-DdMMONxd.css delete mode 100644 jvcli/studio/index.html delete mode 100644 jvcli/studio/jac_logo.png delete mode 100644 jvcli/studio/tauri.svg delete mode 100644 jvcli/studio/vite.svg create mode 100644 tests/test_graph.py delete mode 100644 tests/test_studio.py diff --git a/jvcli/cli.py b/jvcli/cli.py index 40fade3..47555f8 100644 --- a/jvcli/cli.py +++ b/jvcli/cli.py @@ -12,7 +12,7 @@ from jvcli.commands.publish import publish from jvcli.commands.server import server from jvcli.commands.startproject import startproject -from jvcli.commands.studio import studio +from jvcli.commands.graph import graph from jvcli.commands.update import update @@ -29,7 +29,7 @@ def jvcli() -> None: jvcli.add_command(download) jvcli.add_command(publish) jvcli.add_command(info) -jvcli.add_command(studio) +jvcli.add_command(graph) jvcli.add_command(client) jvcli.add_command(startproject) jvcli.add_command(clean) diff --git a/jvcli/commands/graph.py b/jvcli/commands/graph.py new file mode 100644 index 0000000..8e3a2da --- /dev/null +++ b/jvcli/commands/graph.py @@ -0,0 +1,23 @@ +"""JVGraph command group for deploying and interfacing with the Jivas Graph.""" + +import click +import subprocess + + +@click.group() +def graph() -> None: + """Group for managing Jivas Studio resources.""" + pass # pragma: no cover + + +@graph.command() +@click.option("--port", default=8989, help="Port for jvgraph to launch on.") +@click.option( + "--require-auth", default=False, help="Require authentication for jvgraph api." +) +def launch(port: int, require_auth: bool) -> None: + """Launch the Jivas Studio on the specified port.""" + # run jvgraph launch command as subprocess + subprocess.run( + ["jvgraph", "launch", "--port", str(port), "--require-auth", str(require_auth)] + ) diff --git a/jvcli/commands/studio.py b/jvcli/commands/studio.py deleted file mode 100644 index c7ce4b9..0000000 --- a/jvcli/commands/studio.py +++ /dev/null @@ -1,258 +0,0 @@ -"""Studio command group for deploying and interfacing with the Jivas Studio.""" - -import json -from pathlib import Path -from typing import Annotated - -import click -import jaclang # noqa: F401 -from bson import ObjectId -from fastapi import Depends, FastAPI, HTTPException -from fastapi.middleware.cors import CORSMiddleware -from fastapi.responses import JSONResponse -from fastapi.security import HTTPAuthorizationCredentials, HTTPBearer -from fastapi.staticfiles import StaticFiles -from jac_cloud.core.architype import NodeAnchor -from jac_cloud.jaseci.security import decrypt -from uvicorn import run - - -def get_nodes_and_edges( - nid: str, - current_depth: int, - depth: int, - nodes: list, - edges: list, - node_collection: NodeAnchor.Collection, - edge_collection: NodeAnchor.Collection, -) -> None: - """Get nodes and edges recursively.""" - if current_depth >= depth: - return - - outgoing_edges = edge_collection.find( - { - "$or": [ - {"source": nid}, - {"source": {"$regex": f"{nid}$"}}, - ] - } - ) - - for edge in outgoing_edges: - edges.append( - { - "id": edge["_id"], - "name": edge["name"], - "source": edge["source"], - "target": edge["target"], - "data": edge["architype"], - } - ) - - node_id = edge["target"].split(":")[-1] - connected_nodes = node_collection.find({"_id": ObjectId(node_id)}) - - for node in connected_nodes: - nodes.append( - { - "id": node["_id"], - "data": node["architype"], - "name": node["name"], - } - ) - - get_nodes_and_edges( - node["_id"], - current_depth + 1, - depth, - nodes, - edges, - node_collection, - edge_collection, - ) - - -# need this because endpoint annotation differs depending on require auth flag -class EndpointFactory: - """Factory for creating endpoints based on require_auth flag.""" - - @staticmethod - def create_endpoints(require_auth: bool, security: HTTPBearer | None) -> tuple: - """Create endpoints based on require_auth flag.""" - - def validate_auth(credentials: HTTPAuthorizationCredentials) -> None: - """Validate authentication token.""" - token = credentials.credentials - if not token or not decrypt(token): - raise HTTPException(status_code=401, detail="Invalid token") - - def get_graph_data(root: str) -> dict: - """Get graph nodes and edges data.""" - edge_collection = NodeAnchor.Collection.get_collection("edge") - node_collection = NodeAnchor.Collection.get_collection("node") - - nodes = [ - { - "id": node["_id"], - "data": node["architype"], - "name": node["name"], - } - for node in node_collection.find({"root": ObjectId(root)}) - ] - - edges = [ - { - "id": edge["_id"], - "name": edge["name"], - "source": edge["source"], - "target": edge["target"], - "data": edge["architype"], - } - for edge in edge_collection.find({"root": ObjectId(root)}) - ] - - return {"nodes": nodes, "edges": edges} - - def get_users_data() -> list: - """Get users data.""" - user_collection = NodeAnchor.Collection.get_collection("user") - return [ - { - "id": user["_id"], - "root_id": user["root_id"], - "email": user["email"], - } - for user in user_collection.find() - ] - - def get_node_connections(node_id: str, depth: int) -> dict: - nid = node_id.split(":")[-1] - current_depth = 0 - nodes: list = [] - edges: list = [] - - edge_collection = NodeAnchor.Collection.get_collection("edge") - node_collection = NodeAnchor.Collection.get_collection("node") - - get_nodes_and_edges( - nid, - current_depth, - depth, - nodes, - edges, - node_collection, - edge_collection, - ) - - return {"nodes": nodes, "edges": edges} - - if not require_auth: - - async def graph_endpoint(root: str) -> JSONResponse: - return JSONResponse( - content=json.loads(json.dumps(get_graph_data(root), default=str)) - ) - - async def users_endpoint() -> JSONResponse: - return JSONResponse( - content=json.loads(json.dumps(get_users_data(), default=str)) - ) - - async def node_endpoint(node_id: str, depth: int) -> JSONResponse: - return JSONResponse( - content=json.loads( - json.dumps(get_node_connections(node_id, depth), default=str) - ) - ) - - return graph_endpoint, users_endpoint, node_endpoint - - else: - - async def guarded_graph_endpoint( - root: str, - credentials: Annotated[HTTPAuthorizationCredentials, Depends(security)], - ) -> JSONResponse: - validate_auth(credentials) - return JSONResponse( - content=json.loads(json.dumps(get_graph_data(root), default=str)) - ) - - async def guarded_users_endpoint( - credentials: Annotated[HTTPAuthorizationCredentials, Depends(security)], - ) -> JSONResponse: - validate_auth(credentials) - return JSONResponse( - content=json.loads(json.dumps(get_users_data(), default=str)) - ) - - async def guarded_node_endpoint( - node_id: str, - depth: int, - credentials: Annotated[HTTPAuthorizationCredentials, Depends(security)], - ) -> JSONResponse: - validate_auth(credentials) - return JSONResponse( - content=json.loads( - json.dumps(get_node_connections(node_id, depth), default=str) - ) - ) - - return guarded_graph_endpoint, guarded_users_endpoint, guarded_node_endpoint - - -@click.group() -def studio() -> None: - """Group for managing Jivas Studio resources.""" - pass # pragma: no cover - - -@studio.command() -@click.option("--port", default=8989, help="Port for the studio to launch on.") -@click.option( - "--require-auth", default=False, help="Require authentication for studio api." -) -def launch(port: int, require_auth: bool) -> None: - """Launch the Jivas Studio on the specified port.""" - click.echo(f"Launching Jivas Studio on port {port}...") - - security = HTTPBearer() if require_auth else None - - get_graph, get_users, get_node = EndpointFactory.create_endpoints( - require_auth, security - ) - - app = FastAPI(title="Jivas Studio API") - - app.add_middleware( - CORSMiddleware, - allow_origins=["*"], - allow_credentials=True, - allow_methods=["*"], - allow_headers=["*"], - ) - - app.add_api_route("/graph", endpoint=get_graph, methods=["GET"]) - app.add_api_route("/users", endpoint=get_users, methods=["GET"]) - app.add_api_route("/graph/node", endpoint=get_node, methods=["GET"]) - - client_dir = ( - Path(__file__) - .resolve() - .parent.parent.joinpath("studio-auth" if require_auth else "studio") - ) - - app.mount( - "/", - StaticFiles(directory=client_dir, html=True), - name="studio", - ) - - app.mount( - "/graph", - StaticFiles(directory=client_dir, html=True), - name="studio_graph", - ) - - run(app, host="0.0.0.0", port=port) diff --git a/jvcli/studio-auth/assets/index-Bh6lyeXA.js b/jvcli/studio-auth/assets/index-Bh6lyeXA.js deleted file mode 100644 index 152cf90..0000000 --- a/jvcli/studio-auth/assets/index-Bh6lyeXA.js +++ /dev/null @@ -1,218 +0,0 @@ -var bP=e=>{throw TypeError(e)};var m1=(e,r,t)=>r.has(e)||bP("Cannot "+t);var I=(e,r,t)=>(m1(e,r,"read from private field"),t?t.call(e):r.get(e)),ye=(e,r,t)=>r.has(e)?bP("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),ae=(e,r,t,n)=>(m1(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t),Ce=(e,r,t)=>(m1(e,r,"access private method"),t);var Jv=(e,r,t,n)=>({set _(i){ae(e,r,i,t)},get _(){return I(e,r,n)}});function o7(e,r){for(var t=0;tn[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();function uD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cD={exports:{}},dy={},dD={exports:{}},Ie={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rh=Symbol.for("react.element"),a7=Symbol.for("react.portal"),s7=Symbol.for("react.fragment"),l7=Symbol.for("react.strict_mode"),u7=Symbol.for("react.profiler"),c7=Symbol.for("react.provider"),d7=Symbol.for("react.context"),f7=Symbol.for("react.forward_ref"),h7=Symbol.for("react.suspense"),v7=Symbol.for("react.memo"),p7=Symbol.for("react.lazy"),$P=Symbol.iterator;function m7(e){return e===null||typeof e!="object"?null:(e=$P&&e[$P]||e["@@iterator"],typeof e=="function"?e:null)}var fD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hD=Object.assign,vD={};function qc(e,r,t){this.props=e,this.context=r,this.refs=vD,this.updater=t||fD}qc.prototype.isReactComponent={};qc.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,r,"setState")};qc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pD(){}pD.prototype=qc.prototype;function mE(e,r,t){this.props=e,this.context=r,this.refs=vD,this.updater=t||fD}var gE=mE.prototype=new pD;gE.constructor=mE;hD(gE,qc.prototype);gE.isPureReactComponent=!0;var wP=Array.isArray,mD=Object.prototype.hasOwnProperty,yE={current:null},gD={key:!0,ref:!0,__self:!0,__source:!0};function yD(e,r,t){var n,i={},o=null,a=null;if(r!=null)for(n in r.ref!==void 0&&(a=r.ref),r.key!==void 0&&(o=""+r.key),r)mD.call(r,n)&&!gD.hasOwnProperty(n)&&(i[n]=r[n]);var s=arguments.length-2;if(s===1)i.children=t;else if(1>>1,K=O[G];if(0>>1;Gi(se,z))dei(ge,se)?(O[G]=ge,O[de]=z,G=de):(O[G]=se,O[le]=z,G=le);else if(dei(ge,z))O[G]=ge,O[de]=z,G=de;else break e}}return D}function i(O,D){var z=O.sortIndex-D.sortIndex;return z!==0?z:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,v=!1,p=!1,$=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(O){for(var D=t(u);D!==null;){if(D.callback===null)n(u);else if(D.startTime<=O)n(u),D.sortIndex=D.expirationTime,r(l,D);else break;D=t(u)}}function w(O){if(p=!1,y(O),!v)if(t(l)!==null)v=!0,M(S);else{var D=t(u);D!==null&&j(w,D.startTime-O)}}function S(O,D){v=!1,p&&(p=!1,m(C),C=-1),h=!0;var z=f;try{for(y(D),d=t(l);d!==null&&(!(d.expirationTime>D)||O&&!T());){var G=d.callback;if(typeof G=="function"){d.callback=null,f=d.priorityLevel;var K=G(d.expirationTime<=D);D=e.unstable_now(),typeof K=="function"?d.callback=K:d===t(l)&&n(l),y(D)}else n(l);d=t(l)}if(d!==null)var ee=!0;else{var le=t(u);le!==null&&j(w,le.startTime-D),ee=!1}return ee}finally{d=null,f=z,h=!1}}var E=!1,x=null,C=-1,k=5,P=-1;function T(){return!(e.unstable_now()-PO||125G?(O.sortIndex=z,r(u,O),t(l)===null&&O===t(u)&&(p?(m(C),C=-1):p=!0,j(w,z-G))):(O.sortIndex=K,r(l,O),v||h||(v=!0,M(S))),O},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(O){var D=f;return function(){var z=f;f=D;try{return O.apply(this,arguments)}finally{f=z}}}})(_D);SD.exports=_D;var P7=SD.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var O7=_,pn=P7;function q(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tw=Object.prototype.hasOwnProperty,T7=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_P={},EP={};function I7(e){return Tw.call(EP,e)?!0:Tw.call(_P,e)?!1:T7.test(e)?EP[e]=!0:(_P[e]=!0,!1)}function R7(e,r,t,n){if(t!==null&&t.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return n?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function M7(e,r,t,n){if(r===null||typeof r>"u"||R7(e,r,t,n))return!0;if(n)return!1;if(t!==null)switch(t.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function Rr(e,r,t,n,i,o,a){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=r,this.sanitizeURL=o,this.removeEmptyString=a}var or={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){or[e]=new Rr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];or[r]=new Rr(r,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){or[e]=new Rr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){or[e]=new Rr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){or[e]=new Rr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){or[e]=new Rr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){or[e]=new Rr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){or[e]=new Rr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){or[e]=new Rr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $E=/[\-:]([a-z])/g;function wE(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var r=e.replace($E,wE);or[r]=new Rr(r,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace($E,wE);or[r]=new Rr(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace($E,wE);or[r]=new Rr(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){or[e]=new Rr(e,1,!1,e.toLowerCase(),null,!1,!1)});or.xlinkHref=new Rr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){or[e]=new Rr(e,1,!1,e.toLowerCase(),null,!0,!0)});function SE(e,r,t,n){var i=or.hasOwnProperty(r)?or[r]:null;(i!==null?i.type!==0:n||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{b1=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?af(e):""}function N7(e){switch(e.tag){case 5:return af(e.type);case 16:return af("Lazy");case 13:return af("Suspense");case 19:return af("SuspenseList");case 0:case 2:case 15:return e=$1(e.type,!1),e;case 11:return e=$1(e.type.render,!1),e;case 1:return e=$1(e.type,!0),e;default:return""}}function Nw(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case yu:return"Fragment";case gu:return"Portal";case Iw:return"Profiler";case _E:return"StrictMode";case Rw:return"Suspense";case Mw:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case CD:return(e.displayName||"Context")+".Consumer";case xD:return(e._context.displayName||"Context")+".Provider";case EE:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xE:return r=e.displayName||null,r!==null?r:Nw(e.type)||"Memo";case ra:r=e._payload,e=e._init;try{return Nw(e(r))}catch{}}return null}function A7(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Nw(r);case 8:return r===_E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function Ba(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PD(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function D7(e){var r=PD(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),n=""+e[r];if(!e.hasOwnProperty(r)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,r,{enumerable:t.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function tp(e){e._valueTracker||(e._valueTracker=D7(e))}function OD(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var t=r.getValue(),n="";return e&&(n=PD(e)?e.checked?"true":"false":e.value),e=n,e!==t?(r.setValue(e),!0):!1}function Zm(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Aw(e,r){var t=r.checked;return ct({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function CP(e,r){var t=r.defaultValue==null?"":r.defaultValue,n=r.checked!=null?r.checked:r.defaultChecked;t=Ba(r.value!=null?r.value:t),e._wrapperState={initialChecked:n,initialValue:t,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function TD(e,r){r=r.checked,r!=null&&SE(e,"checked",r,!1)}function Dw(e,r){TD(e,r);var t=Ba(r.value),n=r.type;if(t!=null)n==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?Fw(e,r.type,t):r.hasOwnProperty("defaultValue")&&Fw(e,r.type,Ba(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function kP(e,r,t){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var n=r.type;if(!(n!=="submit"&&n!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,t||r===e.value||(e.value=r),e.defaultValue=r}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function Fw(e,r,t){(r!=="number"||Zm(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var sf=Array.isArray;function Hu(e,r,t,n){if(e=e.options,r){r={};for(var i=0;i"+r.valueOf().toString()+"",r=rp.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Vf(e,r){if(r){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=r;return}}e.textContent=r}var bf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},F7=["Webkit","ms","Moz","O"];Object.keys(bf).forEach(function(e){F7.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),bf[r]=bf[e]})});function ND(e,r,t){return r==null||typeof r=="boolean"||r===""?"":t||typeof r!="number"||r===0||bf.hasOwnProperty(e)&&bf[e]?(""+r).trim():r+"px"}function AD(e,r){e=e.style;for(var t in r)if(r.hasOwnProperty(t)){var n=t.indexOf("--")===0,i=ND(t,r[t],n);t==="float"&&(t="cssFloat"),n?e.setProperty(t,i):e[t]=i}}var j7=ct({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Bw(e,r){if(r){if(j7[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(q(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(q(61))}if(r.style!=null&&typeof r.style!="object")throw Error(q(62))}}function zw(e,r){if(e.indexOf("-")===-1)return typeof r.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hw=null;function CE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ww=null,Wu=null,Vu=null;function TP(e){if(e=Ah(e)){if(typeof Ww!="function")throw Error(q(280));var r=e.stateNode;r&&(r=my(r),Ww(e.stateNode,e.type,r))}}function DD(e){Wu?Vu?Vu.push(e):Vu=[e]:Wu=e}function FD(){if(Wu){var e=Wu,r=Vu;if(Vu=Wu=null,TP(e),r)for(e=0;e>>=0,e===0?32:31-(Y7(e)/X7|0)|0}var np=64,ip=4194304;function lf(e){switch(e&-e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ng(e,r){var t=e.pendingLanes;if(t===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=t&268435455;if(a!==0){var s=a&~i;s!==0?n=lf(s):(o&=a,o!==0&&(n=lf(o)))}else a=t&~i,a!==0?n=lf(a):o!==0&&(n=lf(o));if(n===0)return 0;if(r!==0&&r!==n&&!(r&i)&&(i=n&-n,o=r&-r,i>=o||i===16&&(o&4194240)!==0))return r;if(n&4&&(n|=t&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=n;0t;t++)r.push(e);return r}function Mh(e,r,t){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-pi(r),e[r]=t}function eW(e,r){var t=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=wf),LP=" ",BP=!1;function nF(e,r){switch(e){case"keyup":return PW.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iF(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bu=!1;function TW(e,r){switch(e){case"compositionend":return iF(r);case"keypress":return r.which!==32?null:(BP=!0,LP);case"textInput":return e=r.data,e===LP&&BP?null:e;default:return null}}function IW(e,r){if(bu)return e==="compositionend"||!NE&&nF(e,r)?(e=tF(),$m=IE=ya=null,bu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:t,offset:r-e};e=n}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=VP(t)}}function lF(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?lF(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function uF(){for(var e=window,r=Zm();r instanceof e.HTMLIFrameElement;){try{var t=typeof r.contentWindow.location.href=="string"}catch{t=!1}if(t)e=r.contentWindow;else break;r=Zm(e.document)}return r}function AE(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function BW(e){var r=uF(),t=e.focusedElem,n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&lF(t.ownerDocument.documentElement,t)){if(n!==null&&AE(t)){if(r=n.start,e=n.end,e===void 0&&(e=r),"selectionStart"in t)t.selectionStart=r,t.selectionEnd=Math.min(e,t.value.length);else if(e=(r=t.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var i=t.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=UP(t,o);var a=UP(t,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(r=r.createRange(),r.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(r),e.extend(a.node,a.offset)):(r.setEnd(a.node,a.offset),e.addRange(r)))}}for(r=[],e=t;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$u=null,Yw=null,_f=null,Xw=!1;function KP(e,r,t){var n=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Xw||$u==null||$u!==Zm(n)||(n=$u,"selectionStart"in n&&AE(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_f&&Xf(_f,n)||(_f=n,n=ag(Yw,"onSelect"),0_u||(e.current=rS[_u],rS[_u]=null,_u--)}function et(e,r){_u++,rS[_u]=e.current,e.current=r}var za={},vr=Qa(za),Yr=Qa(!1),tl=za;function yc(e,r){var t=e.type.contextTypes;if(!t)return za;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===r)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in t)i[o]=r[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xr(e){return e=e.childContextTypes,e!=null}function lg(){nt(Yr),nt(vr)}function ZP(e,r,t){if(vr.current!==za)throw Error(q(168));et(vr,r),et(Yr,t)}function yF(e,r,t){var n=e.stateNode;if(r=r.childContextTypes,typeof n.getChildContext!="function")return t;n=n.getChildContext();for(var i in n)if(!(i in r))throw Error(q(108,A7(e)||"Unknown",i));return ct({},t,n)}function ug(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||za,tl=vr.current,et(vr,e),et(Yr,Yr.current),!0}function eO(e,r,t){var n=e.stateNode;if(!n)throw Error(q(169));t?(e=yF(e,r,tl),n.__reactInternalMemoizedMergedChildContext=e,nt(Yr),nt(vr),et(vr,e)):nt(Yr),et(Yr,t)}var co=null,gy=!1,N1=!1;function bF(e){co===null?co=[e]:co.push(e)}function JW(e){gy=!0,bF(e)}function Ja(){if(!N1&&co!==null){N1=!0;var e=0,r=We;try{var t=co;for(We=1;e>=a,i-=a,vo=1<<32-pi(r)+i|t<C?(k=x,x=null):k=x.sibling;var P=f(m,x,y[C],w);if(P===null){x===null&&(x=k);break}e&&x&&P.alternate===null&&r(m,x),g=o(P,g,C),E===null?S=P:E.sibling=P,E=P,x=k}if(C===y.length)return t(m,x),ot&&gs(m,C),S;if(x===null){for(;CC?(k=x,x=null):k=x.sibling;var T=f(m,x,P.value,w);if(T===null){x===null&&(x=k);break}e&&x&&T.alternate===null&&r(m,x),g=o(T,g,C),E===null?S=T:E.sibling=T,E=T,x=k}if(P.done)return t(m,x),ot&&gs(m,C),S;if(x===null){for(;!P.done;C++,P=y.next())P=d(m,P.value,w),P!==null&&(g=o(P,g,C),E===null?S=P:E.sibling=P,E=P);return ot&&gs(m,C),S}for(x=n(m,x);!P.done;C++,P=y.next())P=h(x,m,C,P.value,w),P!==null&&(e&&P.alternate!==null&&x.delete(P.key===null?C:P.key),g=o(P,g,C),E===null?S=P:E.sibling=P,E=P);return e&&x.forEach(function(R){return r(m,R)}),ot&&gs(m,C),S}function $(m,g,y,w){if(typeof y=="object"&&y!==null&&y.type===yu&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case ep:e:{for(var S=y.key,E=g;E!==null;){if(E.key===S){if(S=y.type,S===yu){if(E.tag===7){t(m,E.sibling),g=i(E,y.props.children),g.return=m,m=g;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ra&&nO(S)===E.type){t(m,E.sibling),g=i(E,y.props),g.ref=Vd(m,E,y),g.return=m,m=g;break e}t(m,E);break}else r(m,E);E=E.sibling}y.type===yu?(g=Ws(y.props.children,m.mode,w,y.key),g.return=m,m=g):(w=Pm(y.type,y.key,y.props,null,m.mode,w),w.ref=Vd(m,g,y),w.return=m,m=w)}return a(m);case gu:e:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){t(m,g.sibling),g=i(g,y.children||[]),g.return=m,m=g;break e}else{t(m,g);break}else r(m,g);g=g.sibling}g=H1(y,m.mode,w),g.return=m,m=g}return a(m);case ra:return E=y._init,$(m,g,E(y._payload),w)}if(sf(y))return v(m,g,y,w);if(Ld(y))return p(m,g,y,w);dp(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(t(m,g.sibling),g=i(g,y),g.return=m,m=g):(t(m,g),g=z1(y,m.mode,w),g.return=m,m=g),a(m)):t(m,g)}return $}var $c=_F(!0),EF=_F(!1),fg=Qa(null),hg=null,Cu=null,LE=null;function BE(){LE=Cu=hg=null}function zE(e){var r=fg.current;nt(fg),e._currentValue=r}function oS(e,r,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,n!==null&&(n.childLanes|=r)):n!==null&&(n.childLanes&r)!==r&&(n.childLanes|=r),e===t)break;e=e.return}}function Ku(e,r){hg=e,LE=Cu=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&r&&(Gr=!0),e.firstContext=null)}function Ln(e){var r=e._currentValue;if(LE!==e)if(e={context:e,memoizedValue:r,next:null},Cu===null){if(hg===null)throw Error(q(308));Cu=e,hg.dependencies={lanes:0,firstContext:e}}else Cu=Cu.next=e;return r}var ks=null;function HE(e){ks===null?ks=[e]:ks.push(e)}function xF(e,r,t,n){var i=r.interleaved;return i===null?(t.next=t,HE(r)):(t.next=i.next,i.next=t),r.interleaved=t,Io(e,n)}function Io(e,r){e.lanes|=r;var t=e.alternate;for(t!==null&&(t.lanes|=r),t=e,e=e.return;e!==null;)e.childLanes|=r,t=e.alternate,t!==null&&(t.childLanes|=r),t=e,e=e.return;return t.tag===3?t.stateNode:null}var na=!1;function WE(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function CF(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function go(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function Pa(e,r,t){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,Ne&2){var i=n.pending;return i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r,Io(e,t)}return i=n.interleaved,i===null?(r.next=r,HE(n)):(r.next=i.next,i.next=r),n.interleaved=r,Io(e,t)}function Sm(e,r,t){if(r=r.updateQueue,r!==null&&(r=r.shared,(t&4194240)!==0)){var n=r.lanes;n&=e.pendingLanes,t|=n,r.lanes=t,PE(e,t)}}function iO(e,r){var t=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,t===n)){var i=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?i=o=a:o=o.next=a,t=t.next}while(t!==null);o===null?i=o=r:o=o.next=r}else i=o=r;t={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=r:e.next=r,t.lastBaseUpdate=r}function vg(e,r,t,n){var i=e.updateQueue;na=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,c=u=l=null,s=o;do{var f=s.lane,h=s.eventTime;if((n&f)===f){c!==null&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(f=r,h=t,p.tag){case 1:if(v=p.payload,typeof v=="function"){d=v.call(h,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,f=typeof v=="function"?v.call(h,d,f):v,f==null)break e;d=ct({},d,f);break e;case 2:na=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,l=d):c=c.next=h,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,r=i.shared.interleaved,r!==null){i=r;do a|=i.lane,i=i.next;while(i!==r)}else o===null&&(i.shared.lanes=0);il|=a,e.lanes=a,e.memoizedState=d}}function oO(e,r,t){if(e=r.effects,r.effects=null,e!==null)for(r=0;rt?t:4,e(!0);var n=D1.transition;D1.transition={};try{e(!1),r()}finally{We=t,D1.transition=n}}function WF(){return Bn().memoizedState}function rV(e,r,t){var n=Ta(e);if(t={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null},VF(e))UF(r,t);else if(t=xF(e,r,t,n),t!==null){var i=Pr();mi(t,e,n,i),KF(t,r,n)}}function nV(e,r,t){var n=Ta(e),i={lane:n,action:t,hasEagerState:!1,eagerState:null,next:null};if(VF(e))UF(r,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=r.lastRenderedReducer,o!==null))try{var a=r.lastRenderedState,s=o(a,t);if(i.hasEagerState=!0,i.eagerState=s,yi(s,a)){var l=r.interleaved;l===null?(i.next=i,HE(r)):(i.next=l.next,l.next=i),r.interleaved=i;return}}catch{}finally{}t=xF(e,r,i,n),t!==null&&(i=Pr(),mi(t,e,n,i),KF(t,r,n))}}function VF(e){var r=e.alternate;return e===ut||r!==null&&r===ut}function UF(e,r){Ef=mg=!0;var t=e.pending;t===null?r.next=r:(r.next=t.next,t.next=r),e.pending=r}function KF(e,r,t){if(t&4194240){var n=r.lanes;n&=e.pendingLanes,t|=n,r.lanes=t,PE(e,t)}}var gg={readContext:Ln,useCallback:lr,useContext:lr,useEffect:lr,useImperativeHandle:lr,useInsertionEffect:lr,useLayoutEffect:lr,useMemo:lr,useReducer:lr,useRef:lr,useState:lr,useDebugValue:lr,useDeferredValue:lr,useTransition:lr,useMutableSource:lr,useSyncExternalStore:lr,useId:lr,unstable_isNewReconciler:!1},iV={readContext:Ln,useCallback:function(e,r){return Ri().memoizedState=[e,r===void 0?null:r],e},useContext:Ln,useEffect:sO,useImperativeHandle:function(e,r,t){return t=t!=null?t.concat([e]):null,Em(4194308,4,jF.bind(null,r,e),t)},useLayoutEffect:function(e,r){return Em(4194308,4,e,r)},useInsertionEffect:function(e,r){return Em(4,2,e,r)},useMemo:function(e,r){var t=Ri();return r=r===void 0?null:r,e=e(),t.memoizedState=[e,r],e},useReducer:function(e,r,t){var n=Ri();return r=t!==void 0?t(r):r,n.memoizedState=n.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=rV.bind(null,ut,e),[n.memoizedState,e]},useRef:function(e){var r=Ri();return e={current:e},r.memoizedState=e},useState:aO,useDebugValue:QE,useDeferredValue:function(e){return Ri().memoizedState=e},useTransition:function(){var e=aO(!1),r=e[0];return e=tV.bind(null,e[1]),Ri().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,t){var n=ut,i=Ri();if(ot){if(t===void 0)throw Error(q(407));t=t()}else{if(t=r(),Vt===null)throw Error(q(349));nl&30||TF(n,r,t)}i.memoizedState=t;var o={value:t,getSnapshot:r};return i.queue=o,sO(RF.bind(null,n,o,e),[e]),n.flags|=2048,ih(9,IF.bind(null,n,o,t,r),void 0,null),t},useId:function(){var e=Ri(),r=Vt.identifierPrefix;if(ot){var t=po,n=vo;t=(n&~(1<<32-pi(n)-1)).toString(32)+t,r=":"+r+"R"+t,t=rh++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(t,{is:n.is}):(e=a.createElement(t),t==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,t),e[ji]=r,e[Zf]=n,rj(e,r,!1,!1),r.stateNode=e;e:{switch(a=zw(t,n),t){case"dialog":rt("cancel",e),rt("close",e),i=n;break;case"iframe":case"object":case"embed":rt("load",e),i=n;break;case"video":case"audio":for(i=0;i_c&&(r.flags|=128,n=!0,Ud(o,!1),r.lanes=4194304)}else{if(!n)if(e=pg(a),e!==null){if(r.flags|=128,n=!0,t=e.updateQueue,t!==null&&(r.updateQueue=t,r.flags|=4),Ud(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!ot)return ur(r),null}else 2*St()-o.renderingStartTime>_c&&t!==1073741824&&(r.flags|=128,n=!0,Ud(o,!1),r.lanes=4194304);o.isBackwards?(a.sibling=r.child,r.child=a):(t=o.last,t!==null?t.sibling=a:r.child=a,o.last=a)}return o.tail!==null?(r=o.tail,o.rendering=r,o.tail=r.sibling,o.renderingStartTime=St(),r.sibling=null,t=lt.current,et(lt,n?t&1|2:t&1),r):(ur(r),null);case 22:case 23:return nx(),n=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(r.flags|=8192),n&&r.mode&1?ln&1073741824&&(ur(r),r.subtreeFlags&6&&(r.flags|=8192)):ur(r),null;case 24:return null;case 25:return null}throw Error(q(156,r.tag))}function fV(e,r){switch(FE(r),r.tag){case 1:return Xr(r.type)&&lg(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return wc(),nt(Yr),nt(vr),KE(),e=r.flags,e&65536&&!(e&128)?(r.flags=e&-65537|128,r):null;case 5:return UE(r),null;case 13:if(nt(lt),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(q(340));bc()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return nt(lt),null;case 4:return wc(),null;case 10:return zE(r.type._context),null;case 22:case 23:return nx(),null;case 24:return null;default:return null}}var hp=!1,dr=!1,hV=typeof WeakSet=="function"?WeakSet:Set,ue=null;function ku(e,r){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){ht(e,r,n)}else t.current=null}function vS(e,r,t){try{t()}catch(n){ht(e,r,n)}}var yO=!1;function vV(e,r){if(Qw=ig,e=uF(),AE(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var n=t.getSelection&&t.getSelection();if(n&&n.rangeCount!==0){t=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==t||i!==0&&d.nodeType!==3||(s=a+i),d!==o||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===t&&++u===i&&(s=a),f===o&&++c===n&&(l=a),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}t=s===-1||l===-1?null:{start:s,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(Jw={focusedElem:e,selectionRange:t},ig=!1,ue=r;ue!==null;)if(r=ue,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,ue=e;else for(;ue!==null;){r=ue;try{var v=r.alternate;if(r.flags&1024)switch(r.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,$=v.memoizedState,m=r.stateNode,g=m.getSnapshotBeforeUpdate(r.elementType===r.type?p:ti(r.type,p),$);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=r.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){ht(r,r.return,w)}if(e=r.sibling,e!==null){e.return=r.return,ue=e;break}ue=r.return}return v=yO,yO=!1,v}function xf(e,r,t){var n=r.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&vS(r,t,o)}i=i.next}while(i!==n)}}function $y(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var t=r=r.next;do{if((t.tag&e)===e){var n=t.create;t.destroy=n()}t=t.next}while(t!==r)}}function pS(e){var r=e.ref;if(r!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof r=="function"?r(e):r.current=e}}function oj(e){var r=e.alternate;r!==null&&(e.alternate=null,oj(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[ji],delete r[Zf],delete r[tS],delete r[XW],delete r[QW])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function aj(e){return e.tag===5||e.tag===3||e.tag===4}function bO(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mS(e,r,t){var n=e.tag;if(n===5||n===6)e=e.stateNode,r?t.nodeType===8?t.parentNode.insertBefore(e,r):t.insertBefore(e,r):(t.nodeType===8?(r=t.parentNode,r.insertBefore(e,t)):(r=t,r.appendChild(e)),t=t._reactRootContainer,t!=null||r.onclick!==null||(r.onclick=sg));else if(n!==4&&(e=e.child,e!==null))for(mS(e,r,t),e=e.sibling;e!==null;)mS(e,r,t),e=e.sibling}function gS(e,r,t){var n=e.tag;if(n===5||n===6)e=e.stateNode,r?t.insertBefore(e,r):t.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(gS(e,r,t),e=e.sibling;e!==null;)gS(e,r,t),e=e.sibling}var tr=null,ii=!1;function Qo(e,r,t){for(t=t.child;t!==null;)sj(e,r,t),t=t.sibling}function sj(e,r,t){if(Ui&&typeof Ui.onCommitFiberUnmount=="function")try{Ui.onCommitFiberUnmount(fy,t)}catch{}switch(t.tag){case 5:dr||ku(t,r);case 6:var n=tr,i=ii;tr=null,Qo(e,r,t),tr=n,ii=i,tr!==null&&(ii?(e=tr,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):tr.removeChild(t.stateNode));break;case 18:tr!==null&&(ii?(e=tr,t=t.stateNode,e.nodeType===8?M1(e.parentNode,t):e.nodeType===1&&M1(e,t),qf(e)):M1(tr,t.stateNode));break;case 4:n=tr,i=ii,tr=t.stateNode.containerInfo,ii=!0,Qo(e,r,t),tr=n,ii=i;break;case 0:case 11:case 14:case 15:if(!dr&&(n=t.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&vS(t,r,a),i=i.next}while(i!==n)}Qo(e,r,t);break;case 1:if(!dr&&(ku(t,r),n=t.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(s){ht(t,r,s)}Qo(e,r,t);break;case 21:Qo(e,r,t);break;case 22:t.mode&1?(dr=(n=dr)||t.memoizedState!==null,Qo(e,r,t),dr=n):Qo(e,r,t);break;default:Qo(e,r,t)}}function $O(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new hV),r.forEach(function(n){var i=_V.bind(null,e,n);t.has(n)||(t.add(n),n.then(i,i))})}}function ei(e,r){var t=r.deletions;if(t!==null)for(var n=0;ni&&(i=a),n&=~o}if(n=i,n=St()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*mV(n/1960))-n,10e?16:e,ba===null)var n=!1;else{if(e=ba,ba=null,$g=0,Ne&6)throw Error(q(331));var i=Ne;for(Ne|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lSt()-tx?Hs(e,0):ex|=t),Qr(e,r)}function pj(e,r){r===0&&(e.mode&1?(r=ip,ip<<=1,!(ip&130023424)&&(ip=4194304)):r=1);var t=Pr();e=Io(e,r),e!==null&&(Mh(e,r,t),Qr(e,t))}function SV(e){var r=e.memoizedState,t=0;r!==null&&(t=r.retryLane),pj(e,t)}function _V(e,r){var t=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(t=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(r),pj(e,t)}var mj;mj=function(e,r,t){if(e!==null)if(e.memoizedProps!==r.pendingProps||Yr.current)Gr=!0;else{if(!(e.lanes&t)&&!(r.flags&128))return Gr=!1,cV(e,r,t);Gr=!!(e.flags&131072)}else Gr=!1,ot&&r.flags&1048576&&$F(r,dg,r.index);switch(r.lanes=0,r.tag){case 2:var n=r.type;xm(e,r),e=r.pendingProps;var i=yc(r,vr.current);Ku(r,t),i=qE(null,r,n,e,i,t);var o=YE();return r.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Xr(n)?(o=!0,ug(r)):o=!1,r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,WE(r),i.updater=by,r.stateNode=i,i._reactInternals=r,sS(r,n,e,t),r=cS(null,r,n,!0,o,t)):(r.tag=0,ot&&o&&DE(r),_r(null,r,i,t),r=r.child),r;case 16:n=r.elementType;e:{switch(xm(e,r),e=r.pendingProps,i=n._init,n=i(n._payload),r.type=n,i=r.tag=xV(n),e=ti(n,e),i){case 0:r=uS(null,r,n,e,t);break e;case 1:r=pO(null,r,n,e,t);break e;case 11:r=hO(null,r,n,e,t);break e;case 14:r=vO(null,r,n,ti(n.type,e),t);break e}throw Error(q(306,n,""))}return r;case 0:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),uS(e,r,n,i,t);case 1:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),pO(e,r,n,i,t);case 3:e:{if(ZF(r),e===null)throw Error(q(387));n=r.pendingProps,o=r.memoizedState,i=o.element,CF(e,r),vg(r,n,null,t);var a=r.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},r.updateQueue.baseState=o,r.memoizedState=o,r.flags&256){i=Sc(Error(q(423)),r),r=mO(e,r,n,t,i);break e}else if(n!==i){i=Sc(Error(q(424)),r),r=mO(e,r,n,t,i);break e}else for(cn=ka(r.stateNode.containerInfo.firstChild),fn=r,ot=!0,oi=null,t=EF(r,null,n,t),r.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(bc(),n===i){r=Ro(e,r,t);break e}_r(e,r,n,t)}r=r.child}return r;case 5:return kF(r),e===null&&iS(r),n=r.type,i=r.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Zw(n,i)?a=null:o!==null&&Zw(n,o)&&(r.flags|=32),JF(e,r),_r(e,r,a,t),r.child;case 6:return e===null&&iS(r),null;case 13:return ej(e,r,t);case 4:return VE(r,r.stateNode.containerInfo),n=r.pendingProps,e===null?r.child=$c(r,null,n,t):_r(e,r,n,t),r.child;case 11:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),hO(e,r,n,i,t);case 7:return _r(e,r,r.pendingProps,t),r.child;case 8:return _r(e,r,r.pendingProps.children,t),r.child;case 12:return _r(e,r,r.pendingProps.children,t),r.child;case 10:e:{if(n=r.type._context,i=r.pendingProps,o=r.memoizedProps,a=i.value,et(fg,n._currentValue),n._currentValue=a,o!==null)if(yi(o.value,a)){if(o.children===i.children&&!Yr.current){r=Ro(e,r,t);break e}}else for(o=r.child,o!==null&&(o.return=r);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=go(-1,t&-t),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=t,l=o.alternate,l!==null&&(l.lanes|=t),oS(o.return,t,r),s.lanes|=t;break}l=l.next}}else if(o.tag===10)a=o.type===r.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(q(341));a.lanes|=t,s=a.alternate,s!==null&&(s.lanes|=t),oS(a,t,r),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===r){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}_r(e,r,i.children,t),r=r.child}return r;case 9:return i=r.type,n=r.pendingProps.children,Ku(r,t),i=Ln(i),n=n(i),r.flags|=1,_r(e,r,n,t),r.child;case 14:return n=r.type,i=ti(n,r.pendingProps),i=ti(n.type,i),vO(e,r,n,i,t);case 15:return XF(e,r,r.type,r.pendingProps,t);case 17:return n=r.type,i=r.pendingProps,i=r.elementType===n?i:ti(n,i),xm(e,r),r.tag=1,Xr(n)?(e=!0,ug(r)):e=!1,Ku(r,t),GF(r,n,i),sS(r,n,i,t),cS(null,r,n,!0,e,t);case 19:return tj(e,r,t);case 22:return QF(e,r,t)}throw Error(q(156,r.tag))};function gj(e,r){return VD(e,r)}function EV(e,r,t,n){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nn(e,r,t,n){return new EV(e,r,t,n)}function ox(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xV(e){if(typeof e=="function")return ox(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EE)return 11;if(e===xE)return 14}return 2}function Ia(e,r){var t=e.alternate;return t===null?(t=Nn(e.tag,r,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=r,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,r=e.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Pm(e,r,t,n,i,o){var a=2;if(n=e,typeof e=="function")ox(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yu:return Ws(t.children,i,o,r);case _E:a=8,i|=8;break;case Iw:return e=Nn(12,t,r,i|2),e.elementType=Iw,e.lanes=o,e;case Rw:return e=Nn(13,t,r,i),e.elementType=Rw,e.lanes=o,e;case Mw:return e=Nn(19,t,r,i),e.elementType=Mw,e.lanes=o,e;case kD:return Sy(t,i,o,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xD:a=10;break e;case CD:a=9;break e;case EE:a=11;break e;case xE:a=14;break e;case ra:a=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return r=Nn(a,t,r,i),r.elementType=e,r.type=n,r.lanes=o,r}function Ws(e,r,t,n){return e=Nn(7,e,n,r),e.lanes=t,e}function Sy(e,r,t,n){return e=Nn(22,e,n,r),e.elementType=kD,e.lanes=t,e.stateNode={isHidden:!1},e}function z1(e,r,t){return e=Nn(6,e,null,r),e.lanes=t,e}function H1(e,r,t){return r=Nn(4,e.children!==null?e.children:[],e.key,r),r.lanes=t,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function CV(e,r,t,n,i){this.tag=r,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=S1(0),this.expirationTimes=S1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=S1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ax(e,r,t,n,i,o,a,s,l){return e=new CV(e,r,t,s,l),r===1?(r=1,o===!0&&(r|=8)):r=0,o=Nn(3,null,null,r),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},WE(o),e}function kV(e,r,t){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(wj)}catch(e){console.error(e)}}wj(),wD.exports=mn;var Fh=wD.exports;const cf=uD(Fh);var PO=Fh;Ow.createRoot=PO.createRoot,Ow.hydrateRoot=PO.hydrateRoot;var RV="Invariant failed";function di(e,r){if(!e)throw new Error(RV)}function qu(e){const r=e.resolvedLocation,t=e.location,n=(r==null?void 0:r.pathname)!==t.pathname,i=(r==null?void 0:r.href)!==t.href,o=(r==null?void 0:r.hash)!==t.hash;return{fromLocation:r,toLocation:t,pathChanged:n,hrefChanged:i,hashChanged:o}}function Pf(e){return e[e.length-1]}function MV(e){return typeof e=="function"}function df(e,r){return MV(e)?e(r):e}function SS(e,r){return r.reduce((t,n)=>(t[n]=e[n],t),{})}function Cn(e,r){if(e===r)return e;const t=r,n=TO(e)&&TO(t);if(n||_g(e)&&_g(t)){const i=n?e:Object.keys(e),o=i.length,a=n?t:Object.keys(t),s=a.length,l=n?[]:{};let u=0;for(let c=0;c"u")return!0;const t=r.prototype;return!(!OO(t)||!t.hasOwnProperty("isPrototypeOf"))}function OO(e){return Object.prototype.toString.call(e)==="[object Object]"}function TO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function IO(e,r){let t=Object.keys(e);return r&&(t=t.filter(n=>e[n]!==void 0)),t}function Of(e,r,t){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(_g(e)&&_g(r)){const n=(t==null?void 0:t.ignoreUndefined)??!0,i=IO(e,n),o=IO(r,n);return!(t!=null&&t.partial)&&i.length!==o.length?!1:o.every(a=>Of(e[a],r[a],t))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((n,i)=>!Of(n,r[i],t)):!1}function vu(e){let r,t;const n=new Promise((i,o)=>{r=i,t=o});return n.status="pending",n.resolve=i=>{n.status="resolved",n.value=i,r(i),e==null||e(i)},n.reject=i=>{n.status="rejected",t(i)},n}function NV(e){return/%[0-9A-Fa-f]{2}/.test(e)}function yo(e){return ky(e.filter(r=>r!==void 0).join("/"))}function ky(e){return e.replace(/\/{2,}/g,"/")}function cx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function Os(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function AV(e){return Os(cx(e))}function DV({basepath:e,base:r,to:t,trailingSlash:n="never",caseSensitive:i}){var o,a;r=Eg(e,r,i),t=Eg(e,t,i);let s=Ec(r);const l=Ec(t);s.length>1&&((o=Pf(s))==null?void 0:o.value)==="/"&&s.pop(),l.forEach((c,d)=>{c.value==="/"?d?d===l.length-1&&s.push(c):s=[c]:c.value===".."?s.pop():c.value==="."||s.push(c)}),s.length>1&&(((a=Pf(s))==null?void 0:a.value)==="/"?n==="never"&&s.pop():n==="always"&&s.push({type:"pathname",value:"/"}));const u=yo([e,...s.map(c=>c.value)]);return ky(u)}function Ec(e){if(!e)return[];e=ky(e);const r=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),r.push({type:"pathname",value:"/"})),!e)return r;const t=e.split("/").filter(Boolean);return r.push(...t.map(n=>n==="$"||n==="*"?{type:"wildcard",value:n}:n.charAt(0)==="$"?{type:"param",value:n}:{type:"pathname",value:decodeURI(n)})),e.slice(-1)==="/"&&(e=e.substring(1),r.push({type:"pathname",value:"/"})),r}function mp({path:e,params:r,leaveWildcards:t,leaveParams:n,decodeCharMap:i}){const o=Ec(e);function a(u){const c=r[u],d=typeof c=="string";return["*","_splat"].includes(u)?d?encodeURI(c):c:d?FV(c,i):c}const s={},l=yo(o.map(u=>{if(u.type==="wildcard"){s._splat=r._splat;const c=a("_splat");return t?`${u.value}${c??""}`:c}if(u.type==="param"){const c=u.value.substring(1);if(s[c]=r[c],n){const d=a(u.value);return`${u.value}${d??""}`}return a(c)??"undefined"}return u.value}));return{usedParams:s,interpolatedPath:l}}function FV(e,r){let t=encodeURIComponent(e);if(r)for(const[n,i]of r)t=t.replaceAll(n,i);return t}function gp(e,r,t){const n=jV(e,r,t);if(!(t.to&&!n))return n??{}}function Eg(e,r,t=!1){const n=t?e:e.toLowerCase(),i=t?r:r.toLowerCase();switch(!0){case n==="/":return r;case i===n:return"";case r.length{for(let l=0;l=i.length-1,f=l>=o.length-1;if(c){if(c.type==="wildcard"){const h=decodeURI(yo(i.slice(l).map(v=>v.value)));return a["*"]=h,a._splat=h,!0}if(c.type==="pathname"){if(c.value==="/"&&!(u!=null&&u.value))return!0;if(u){if(t.caseSensitive){if(c.value!==u.value)return!1}else if(c.value.toLowerCase()!==u.value.toLowerCase())return!1}}if(!u)return!1;if(c.type==="param"){if(u.value==="/")return!1;u.value.charAt(0)!=="$"&&(a[c.value.substring(1)]=decodeURIComponent(u.value))}}if(!d&&f)return a["**"]=yo(i.slice(l+1).map(h=>h.value)),!!t.fuzzy&&(c==null?void 0:c.value)!=="/"}return!0})()?a:void 0}function LV(e,r){let t,n,i,o="";for(t in e)if((i=e[t])!==void 0)if(Array.isArray(i))for(n=0;n{r.substring(0,1)==="?"&&(r=r.substring(1));const t=BV(r);for(const n in t){const i=t[n];if(typeof i=="string")try{t[n]=e(i)}catch{}}return t}}function VV(e,r){function t(n){if(typeof n=="object"&&n!==null)try{return e(n)}catch{}else if(typeof n=="string"&&typeof r=="function")try{return r(n),e(n)}catch{}return n}return n=>{n={...n},Object.keys(n).forEach(o=>{const a=n[o];typeof a>"u"||a===void 0?delete n[o]:n[o]=t(a)});const i=LV(n).toString();return i?`?${i}`:""}}const Ra="__TSR_index",MO="popstate",NO="beforeunload";function Sj(e){let r=e.getLocation();const t=new Set,n=a=>{r=e.getLocation(),t.forEach(s=>s({location:r,action:a}))},i=a=>{e.notifyOnIndexChange??!0?n(a):r=e.getLocation()},o=async({task:a,navigateOpts:s,...l})=>{var u,c;if((s==null?void 0:s.ignoreBlocker)??!1){a();return}const f=((u=e.getBlockers)==null?void 0:u.call(e))??[],h=l.type==="PUSH"||l.type==="REPLACE";if(typeof document<"u"&&f.length&&h)for(const v of f){const p=ah(l.path,l.state);if(await v.blockerFn({currentLocation:r,nextLocation:p,action:l.type})){(c=e.onBlocked)==null||c.call(e);return}}a()};return{get location(){return r},get length(){return e.getLength()},subscribers:t,subscribe:a=>(t.add(a),()=>{t.delete(a)}),push:(a,s,l)=>{const u=r.state[Ra];s=_S(u+1,s),o({task:()=>{e.pushState(a,s),n({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:a,state:s})},replace:(a,s,l)=>{const u=r.state[Ra];s=_S(u,s),o({task:()=>{e.replaceState(a,s),n({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:a,state:s})},go:(a,s)=>{o({task:()=>{e.go(a),i({type:"GO",index:a})},navigateOpts:s,type:"GO"})},back:a=>{o({task:()=>{e.back((a==null?void 0:a.ignoreBlocker)??!1),i({type:"BACK"})},navigateOpts:a,type:"BACK"})},forward:a=>{o({task:()=>{e.forward((a==null?void 0:a.ignoreBlocker)??!1),i({type:"FORWARD"})},navigateOpts:a,type:"FORWARD"})},canGoBack:()=>r.state[Ra]!==0,createHref:a=>e.createHref(a),block:a=>{var s;if(!e.setBlockers)return()=>{};const l=((s=e.getBlockers)==null?void 0:s.call(e))??[];return e.setBlockers([...l,a]),()=>{var u,c;const d=((u=e.getBlockers)==null?void 0:u.call(e))??[];(c=e.setBlockers)==null||c.call(e,d.filter(f=>f!==a))}},flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:n}}function _S(e,r){return r||(r={}),{...r,key:dx(),[Ra]:e}}function UV(e){var r;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let o=[];const a=()=>o,s=k=>o=k,l=k=>k,u=()=>ah(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);(r=t.history.state)!=null&&r.key||t.history.replaceState({[Ra]:0,key:dx()},"");let c=u(),d,f=!1,h=!1,v=!1,p=!1;const $=()=>c;let m,g;const y=()=>{m&&(C._ignoreSubscribers=!0,(m.isPush?t.history.pushState:t.history.replaceState)(m.state,"",m.href),C._ignoreSubscribers=!1,m=void 0,g=void 0,d=void 0)},w=(k,P,T)=>{const R=l(P);g||(d=c),c=ah(P,T),m={href:R,state:T,isPush:(m==null?void 0:m.isPush)||k==="push"},g||(g=Promise.resolve().then(()=>y()))},S=k=>{c=u(),C.notify({type:k})},E=async()=>{if(h){h=!1;return}const k=u(),P=k.state[Ra]-c.state[Ra],T=P===1,R=P===-1,N=!T&&!R||f;f=!1;const F=N?"GO":R?"BACK":"FORWARD",W=N?{type:"GO",index:P}:{type:R?"BACK":"FORWARD"};if(v)v=!1;else{const M=a();if(typeof document<"u"&&M.length){for(const j of M)if(await j.blockerFn({currentLocation:c,nextLocation:k,action:F})){h=!0,t.history.go(1),C.notify(W);return}}}c=u(),C.notify(W)},x=k=>{if(p){p=!1;return}let P=!1;const T=a();if(typeof document<"u"&&T.length)for(const R of T){const N=R.enableBeforeUnload??!0;if(N===!0){P=!0;break}if(typeof N=="function"&&N()===!0){P=!0;break}}if(P)return k.preventDefault(),k.returnValue=""},C=Sj({getLocation:$,getLength:()=>t.history.length,pushState:(k,P)=>w("push",k,P),replaceState:(k,P)=>w("replace",k,P),back:k=>(k&&(v=!0),p=!0,t.history.back()),forward:k=>{k&&(v=!0),p=!0,t.history.forward()},go:k=>{f=!0,t.history.go(k)},createHref:k=>l(k),flush:y,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(NO,x,{capture:!0}),t.removeEventListener(MO,E)},onBlocked:()=>{d&&c!==d&&(c=d)},getBlockers:a,setBlockers:s,notifyOnIndexChange:!1});return t.addEventListener(NO,x,{capture:!0}),t.addEventListener(MO,E),t.history.pushState=function(...k){const P=n.apply(t.history,k);return C._ignoreSubscribers||S("PUSH"),P},t.history.replaceState=function(...k){const P=i.apply(t.history,k);return C._ignoreSubscribers||S("REPLACE"),P},C}function KV(e={initialEntries:["/"]}){const r=e.initialEntries;let t=e.initialIndex?Math.min(Math.max(e.initialIndex,0),r.length-1):r.length-1;const n=r.map((o,a)=>_S(a,void 0));return Sj({getLocation:()=>ah(r[t],n[t]),getLength:()=>r.length,pushState:(o,a)=>{t{n[t]=a,r[t]=o},back:()=>{t=Math.max(t-1,0)},forward:()=>{t=Math.min(t+1,r.length-1)},go:o=>{t=Math.min(Math.max(t+o,0),r.length-1)},createHref:o=>o})}function ah(e,r){const t=e.indexOf("#"),n=e.indexOf("?");return{href:e,pathname:e.substring(0,t>0?n>0?Math.min(t,n):t:n>0?n:e.length),hash:t>-1?e.substring(t):"",search:n>-1?e.slice(n,t===-1?void 0:t):"",state:r||{[Ra]:0,key:dx()}}}function dx(){return(Math.random()+1).toString(36).substring(7)}function fx(e){const r=e.errorComponent??Py;return b.jsx(GV,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:t,reset:n})=>t?_.createElement(r,{error:t,reset:n}):e.children})}class GV extends _.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,t){t.error&&t.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,t){this.props.onCatch&&this.props.onCatch(r,t)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Py({error:e}){const[r,t]=_.useState(!1);return b.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[b.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[b.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),b.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>t(n=>!n),children:r?"Hide Error":"Show Error"})]}),b.jsx("div",{style:{height:".25rem"}}),r?b.jsx("div",{children:b.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?b.jsx("code",{children:e.message}):null})}):null]})}var _j={exports:{}},Ej={},xj={exports:{}},Cj={};/** - * @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 xc=_;function qV(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var YV=typeof Object.is=="function"?Object.is:qV,XV=xc.useState,QV=xc.useEffect,JV=xc.useLayoutEffect,ZV=xc.useDebugValue;function eU(e,r){var t=r(),n=XV({inst:{value:t,getSnapshot:r}}),i=n[0].inst,o=n[1];return JV(function(){i.value=t,i.getSnapshot=r,W1(i)&&o({inst:i})},[e,t,r]),QV(function(){return W1(i)&&o({inst:i}),e(function(){W1(i)&&o({inst:i})})},[e]),ZV(t),t}function W1(e){var r=e.getSnapshot;e=e.value;try{var t=r();return!YV(e,t)}catch{return!0}}function tU(e,r){return r()}var rU=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?tU:eU;Cj.useSyncExternalStore=xc.useSyncExternalStore!==void 0?xc.useSyncExternalStore:rU;xj.exports=Cj;var nU=xj.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 Oy=_,iU=nU;function oU(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var aU=typeof Object.is=="function"?Object.is:oU,sU=iU.useSyncExternalStore,lU=Oy.useRef,uU=Oy.useEffect,cU=Oy.useMemo,dU=Oy.useDebugValue;Ej.useSyncExternalStoreWithSelector=function(e,r,t,n,i){var o=lU(null);if(o.current===null){var a={hasValue:!1,value:null};o.current=a}else a=o.current;o=cU(function(){function l(h){if(!u){if(u=!0,c=h,h=n(h),i!==void 0&&a.hasValue){var v=a.value;if(i(v,h))return d=v}return d=h}if(v=d,aU(c,h))return v;var p=n(h);return i!==void 0&&i(v,p)?(c=h,v):(c=h,d=p)}var u=!1,c,d,f=t===void 0?null:t;return[function(){return l(r())},f===null?void 0:function(){return l(f())}]},[r,t,n,i]);var s=sU(e,o[0],o[1]);return uU(function(){a.hasValue=!0,a.value=s},[s]),dU(s),s};_j.exports=Ej;var fU=_j.exports;const Yu=new WeakMap,Om=new WeakMap,xg={current:[]};let V1=!1,Tf=0;const ff=new Set,yp=new Map;function kj(e){const r=Array.from(e).sort((t,n)=>t instanceof Xu&&t.options.deps.includes(n)?1:n instanceof Xu&&n.options.deps.includes(t)?-1:0);for(const t of r){if(xg.current.includes(t))continue;xg.current.push(t),t.recompute();const n=Om.get(t);if(n)for(const i of n){const o=Yu.get(i);o&&kj(o)}}}function hU(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function vU(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function Pj(e){if(Tf>0&&!yp.has(e)&&yp.set(e,e.prevState),ff.add(e),!(Tf>0)&&!V1)try{for(V1=!0;ff.size>0;){const r=Array.from(ff);ff.clear();for(const t of r){const n=yp.get(t)??t.prevState;t.prevState=n,hU(t)}for(const t of r){const n=Yu.get(t);n&&(xg.current.push(t),kj(n))}for(const t of r){const n=Yu.get(t);if(n)for(const i of n)vU(i)}}}finally{V1=!1,xg.current=[],yp.clear()}}function U1(e){Tf++;try{e()}finally{if(Tf--,Tf===0){const r=Array.from(ff)[0];r&&Pj(r)}}}class ES{constructor(r,t){this.listeners=new Set,this.subscribe=n=>{var i,o;this.listeners.add(n);const a=(o=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:o.call(i,n,this);return()=>{this.listeners.delete(n),a==null||a()}},this.setState=n=>{var i,o,a;this.prevState=this.state,this.state=(i=this.options)!=null&&i.updateFn?this.options.updateFn(this.prevState)(n):n(this.prevState),(a=(o=this.options)==null?void 0:o.onUpdate)==null||a.call(o),Pj(this)},this.prevState=r,this.state=r,this.options=t}}class Xu{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],n=[];for(const i of this.options.deps)t.push(i.prevState),n.push(i.state);return this.lastSeenDepValues=n,{prevDepVals:t,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,n;this.prevState=this.state;const{prevDepVals:i,currDepVals:o,prevVal:a}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:o,prevVal:a}),(n=(t=this.options).onUpdate)==null||n.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const o of this.options.deps)o instanceof Xu&&o.checkIfRecalculationNeededDeeply();let t=!1;const n=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let o=0;o(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var n,i;this.listeners.add(t);const o=(i=(n=this.options).onSubscribe)==null?void 0:i.call(n,t,this);return()=>{this.listeners.delete(t),o==null||o()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof Xu)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof ES){let n=Yu.get(t);n||(n=new Set,Yu.set(t,n)),n.add(this);let i=Om.get(this);i||(i=new Set,Om.set(this,i)),i.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof Xu)this.unregisterFromGraph(t.options.deps);else if(t instanceof ES){const n=Yu.get(t);n&&n.delete(this);const i=Om.get(this);i&&i.delete(t)}}}function pU(e,r=t=>t){return fU.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,mU)}function mU(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[n,i]of e)if(!r.has(n)||!Object.is(i,r.get(n)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}const t=Object.keys(e);if(t.length!==Object.keys(r).length)return!1;for(let n=0;n"u"?K1:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=K1,K1)}function Ho(e){const r=_.useContext(Oj());return e==null||e.warn,r}function hn(e){const r=Ho({warn:(e==null?void 0:e.router)===void 0}),t=(e==null?void 0:e.router)||r,n=_.useRef(void 0);return pU(t.__store,i=>{if(e!=null&&e.select){if(e.structuralSharing??t.options.defaultStructuralSharing){const o=Cn(n.current,e.select(i));return n.current=o,o}return e.select(i)}return i})}const Ty=_.createContext(void 0),gU=_.createContext(void 0);function Cc(e){const r=_.useContext(e.from?gU:Ty);return hn({select:n=>{const i=n.matches.find(o=>e.from?e.from===o.routeId:o.id===r);if(di(!((e.shouldThrow??!0)&&!i),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),i!==void 0)return e.select?e.select(i):i},structuralSharing:e.structuralSharing})}function yU(e){return Cc({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.loaderData):r.loaderData})}function bU(e){const{select:r,...t}=e;return Cc({...t,select:n=>r?r(n.loaderDeps):n.loaderDeps})}function $U(e){return Cc({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.params):r.params})}function hx(e){return Cc({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:r=>e.select?e.select(r.search):r.search})}function Pn(e){return!!(e!=null&&e.isNotFound)}function wU(e){const r=hn({select:t=>`not-found-${t.location.pathname}-${t.status}`});return b.jsx(fx,{getResetKey:()=>r,onCatch:(t,n)=>{var i;if(Pn(t))(i=e.onCatch)==null||i.call(e,t,n);else throw t},errorComponent:({error:t})=>{var n;if(Pn(t))return(n=e.fallback)==null?void 0:n.call(e,t);throw t},children:e.children})}function SU(){return b.jsx("p",{children:"Not Found"})}function _U(e){const{navigate:r}=Ho();return _.useCallback(t=>r({...t}),[r])}let Tj=class{constructor(r){this.init=t=>{var n,i;this.originalIndex=t.originalIndex;const o=this.options,a=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(i=(n=this.options).getParentRoute)==null?void 0:i.call(n),a?this._path=Br:di(this.parentRoute);let s=a?Br:o.path;s&&s!=="/"&&(s=cx(s));const l=(o==null?void 0:o.id)||s;let u=a?Br:yo([this.parentRoute.id===Br?"":this.parentRoute.id,l]);s===Br&&(s="/"),u!==Br&&(u=yo(["/",u]));const c=u===Br?"/":yo([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=c,this._to=c,this._ssr=(o==null?void 0:o.ssr)??t.defaultSsr??!0},this.updateLoader=t=>(Object.assign(this.options,t),this),this.update=t=>(Object.assign(this.options,t),this),this.lazy=t=>(this.lazyFn=t,this),this.useMatch=t=>Cc({select:t==null?void 0:t.select,from:this.id,structuralSharing:t==null?void 0:t.structuralSharing}),this.useRouteContext=t=>Cc({...t,from:this.id,select:n=>t!=null&&t.select?t.select(n.context):n.context}),this.useSearch=t=>hx({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useParams=t=>$U({select:t==null?void 0:t.select,structuralSharing:t==null?void 0:t.structuralSharing,from:this.id}),this.useLoaderDeps=t=>bU({...t,from:this.id}),this.useLoaderData=t=>yU({...t,from:this.id}),this.useNavigate=()=>_U({from:this.id}),this.options=r||{},this.isRoot=!(r!=null&&r.getParentRoute),di(!(r!=null&&r.id&&(r!=null&&r.path))),this.$$typeof=Symbol.for("react.memo")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}get ssr(){return this._ssr}addChildren(r){return this._addFileChildren(r)}_addFileChildren(r){return Array.isArray(r)&&(this.children=r),typeof r=="object"&&r!==null&&(this.children=Object.values(r)),this}};function EU(e){return new Tj(e)}class xU extends Tj{constructor(r){super(r)}addChildren(r){return super.addChildren(r),this}_addFileChildren(r){return super._addFileChildren(r),this}_addFileTypes(){return this}}function CU(e){return new xU(e)}function vx(e){return new kU(e,{silent:!0}).createRoute}class kU{constructor(r,t){this.path=r,this.createRoute=n=>{this.silent;const i=EU(n);return i.isRoot=!1,i},this.silent=t==null?void 0:t.silent}}function bs(e){return!!(e!=null&&e.isRedirect)}function G1(e){return!!(e!=null&&e.isRedirect)&&e.href}function Tm(e){return b.jsx(b.Fragment,{children:e.children})}function Ij(e,r,t){return r.options.notFoundComponent?b.jsx(r.options.notFoundComponent,{data:t}):e.options.defaultNotFoundComponent?b.jsx(e.options.defaultNotFoundComponent,{data:t}):b.jsx(SU,{})}const Rj={},PU=Rj.hasOwnProperty,Mj=(e,r)=>{for(const t in e)PU.call(e,t)&&r(t,e[t])},OU=(e,r)=>(r&&Mj(r,(t,n)=>{e[t]=n}),e),TU=(e,r)=>{const t=e.length;let n=-1;for(;++n"\\u"+("0000"+e).slice(-4),Gd=(e,r)=>{let t=e.toString(16);return r?t:t.toUpperCase()},jh=Rj.toString,IU=Array.isArray,RU=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),MU=e=>jh.call(e)=="[object Object]",NU=e=>typeof e=="string"||jh.call(e)=="[object String]",AU=e=>typeof e=="number"||jh.call(e)=="[object Number]",q1=e=>typeof e=="bigint",DU=e=>typeof e=="function",FU=e=>jh.call(e)=="[object Map]",jU=e=>jh.call(e)=="[object Set]",LU={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},BU=/[\\\b\f\n\r\t]/,zU=/[0-9]/,HU=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,WU=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,VU=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,$s=(e,r)=>{const t=()=>{u=l,++r.indentLevel,l=r.indent.repeat(r.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},i=r&&r.json;i&&(n.quotes="double",n.wrap=!0),r=OU(n,r),r.quotes!="single"&&r.quotes!="double"&&r.quotes!="backtick"&&(r.quotes="single");const o=r.quotes=="double"?'"':r.quotes=="backtick"?"`":"'",a=r.compact,s=r.lowercaseHex;let l=r.indent.repeat(r.indentLevel),u="";const c=r.__inline1__,d=r.__inline2__,f=a?"":` -`;let h,v=!0;const p=r.numbers=="binary",$=r.numbers=="octal",m=r.numbers=="decimal",g=r.numbers=="hexadecimal";if(i&&e&&DU(e.toJSON)&&(e=e.toJSON()),!NU(e)){if(FU(e))return e.size==0?"new Map()":(a||(r.__inline1__=!0,r.__inline2__=!1),"new Map("+$s(Array.from(e),r)+")");if(jU(e))return e.size==0?"new Set()":"new Set("+$s(Array.from(e),r)+")";if(RU(e))return e.length==0?"Buffer.from([])":"Buffer.from("+$s(Array.from(e),r)+")";if(IU(e))return h=[],r.wrap=!0,c&&(r.__inline1__=!1,r.__inline2__=!0),d||t(),TU(e,w=>{v=!1,d&&(r.__inline2__=!1),h.push((a||d?"":l)+$s(w,r))}),v?"[]":d?"["+h.join(", ")+"]":"["+f+h.join(","+f)+f+(a?"":u)+"]";if(AU(e)||q1(e)){if(i)return JSON.stringify(Number(e));let w;if(m)w=String(e);else if(g){let S=e.toString(16);s||(S=S.toUpperCase()),w="0x"+S}else p?w="0b"+e.toString(2):$&&(w="0o"+e.toString(8));return q1(e)?w+"n":w}else return q1(e)?i?JSON.stringify(Number(e)):e+"n":MU(e)?(h=[],r.wrap=!0,t(),Mj(e,(w,S)=>{v=!1,h.push((a?"":l)+$s(w,r)+":"+(a?"":" ")+$s(S,r))}),v?"{}":"{"+f+h.join(","+f)+f+(a?"":u)+"}"):i?JSON.stringify(e)||"null":String(e)}const y=r.escapeEverything?WU:VU;return h=e.replace(y,(w,S,E,x,C,k)=>{if(S){if(r.minimal)return S;const T=S.charCodeAt(0),R=S.charCodeAt(1);if(r.es6){const N=(T-55296)*1024+R-56320+65536;return"\\u{"+Gd(N,s)+"}"}return bp(Gd(T,s))+bp(Gd(R,s))}if(E)return bp(Gd(E.charCodeAt(0),s));if(w=="\0"&&!i&&!zU.test(k.charAt(C+1)))return"\\0";if(x)return x==o||r.escapeEverything?"\\"+x:x;if(BU.test(w))return LU[w];if(r.minimal&&!HU.test(w))return w;const P=Gd(w.charCodeAt(0),s);return i||P.length>2?bp(P):"\\x"+("00"+P).slice(-2)}),o=="`"&&(h=h.replace(/\$\{/g,"\\${")),r.isScriptContext&&(h=h.replace(/<\/(script|style)/gi,"<\\/$1").replace(/