From 868aa3218c4da99144e9942aaab3da6858ea46ab Mon Sep 17 00:00:00 2001 From: Olof Date: Thu, 3 Oct 2024 15:55:58 +0200 Subject: [PATCH] change api routes and mount ui on root --- Cargo.lock | 2 +- Cargo.toml | 2 +- odd-box.toml.backup | 61 +++++++++++++++++++ src/api/controllers/mod.rs | 16 ++--- src/api/controllers/settings.rs | 4 +- src/api/controllers/sites.rs | 12 ++-- src/api/mod.rs | 2 +- ...put-D9ysyiFG.js => args-input-hI3vUIGv.js} | 2 +- .../{index-fSmiwOPx.js => index-VhmgqZXc.js} | 40 ++++++------ ...azy-mgsMw_CY.js => index.lazy-Nx6U9FEN.js} | 2 +- ...-CaAaPN1K.js => new-site.lazy-YoQKICiq.js} | 2 +- ...G6.js => setting_descriptions-C0WjOK5n.js} | 2 +- web-ui/dist/assets/settings.lazy-CU84o0_U.js | 1 - web-ui/dist/assets/settings.lazy-DgHrAbe2.js | 1 + ...o8r.js => site._siteName.lazy-DUVUisPA.js} | 2 +- web-ui/dist/index.html | 6 +- web-ui/index.html | 2 +- web-ui/src/components/header/header.tsx | 4 +- web-ui/src/generated-api.ts | 52 ++++++++++------ web-ui/src/hooks/use-hosted-sites.ts | 2 +- web-ui/src/hooks/use-remote-sites.ts | 2 +- web-ui/src/hooks/use-settings-mutations.ts | 2 +- web-ui/src/hooks/use-settings.ts | 2 +- web-ui/src/hooks/use-site-mutations.ts | 18 +++--- web-ui/src/hooks/use-site-status.ts | 2 +- web-ui/src/main.tsx | 2 +- web-ui/vite.config.ts | 1 - 27 files changed, 159 insertions(+), 87 deletions(-) create mode 100644 odd-box.toml.backup rename web-ui/dist/assets/{args-input-D9ysyiFG.js => args-input-hI3vUIGv.js} (94%) rename web-ui/dist/assets/{index-fSmiwOPx.js => index-VhmgqZXc.js} (76%) rename web-ui/dist/assets/{index.lazy-mgsMw_CY.js => index.lazy-Nx6U9FEN.js} (97%) rename web-ui/dist/assets/{new-site.lazy-CaAaPN1K.js => new-site.lazy-YoQKICiq.js} (97%) rename web-ui/dist/assets/{setting_descriptions-Dwh6rKG6.js => setting_descriptions-C0WjOK5n.js} (99%) delete mode 100644 web-ui/dist/assets/settings.lazy-CU84o0_U.js create mode 100644 web-ui/dist/assets/settings.lazy-DgHrAbe2.js rename web-ui/dist/assets/{site._siteName.lazy-cX_wIo8r.js => site._siteName.lazy-DUVUisPA.js} (99%) diff --git a/Cargo.lock b/Cargo.lock index ffe3506..8618c10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1974,7 +1974,7 @@ dependencies = [ [[package]] name = "odd-box" -version = "0.1.7-preview" +version = "0.1.7-preview2" dependencies = [ "anyhow", "axum", diff --git a/Cargo.toml b/Cargo.toml index 0eab6b1..181cc29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "odd-box" description = "dead simple reverse proxy server" -version = "0.1.7-preview" +version = "0.1.7-preview2" edition = "2021" authors = ["Olof Blomqvist "] repository = "https://github.com/OlofBlomqvist/odd-box" diff --git a/odd-box.toml.backup b/odd-box.toml.backup new file mode 100644 index 0000000..08e2be8 --- /dev/null +++ b/odd-box.toml.backup @@ -0,0 +1,61 @@ +#:schema https://raw.githubusercontent.com/OlofBlomqvist/odd-box/main/odd-box-schema-v2.json +version = "V2" +alpn = false +http_port = 8080 +admin_api_port = 1234 +ip = "0.0.0.0" +tls_port = 4343 +auto_start = false +root_dir = "/tmp1" +log_level = "Error" +port_range_start = 4200 +default_log_format = "standard" +lets_encrypt_account_email = "" +env_vars = [ + { key = "some_key", value = "some_val" }, + { key = "another_key", value = "another_val" }, +] + +[[remote_target]] +host_name = "caddy-remote.localtest.me" +backends = [ + { address="127.0.0.1", port=9999}, + { address="127.0.0.1", port=8888}, + { address="127.0.0.1", port=10000} +] + +[[hosted_process]] +host_name = "caddy.localtest.me" +bin = "caddy" +args = [ + "run", + "--config", + "./CaddyTest1", + "--adapter", + "caddyfile" +] +port = 9999 + +[[hosted_process]] +host_name = "caddy2.localtest.me" +bin = "caddy" +args = [ + "run", + "--config", + "./CaddyTest2", + "--adapter", + "caddyfile" +] +port = 8888 + +[[hosted_process]] +host_name = "caddy3.localtest.me" +bin = "caddy" +args = [ + "run", + "--config", + "./CaddyTest3", + "--adapter", + "caddyfile" +] +port = 10000 \ No newline at end of file diff --git a/src/api/controllers/mod.rs b/src/api/controllers/mod.rs index 17c5df8..33734e0 100644 --- a/src/api/controllers/mod.rs +++ b/src/api/controllers/mod.rs @@ -10,17 +10,17 @@ pub mod settings; pub async fn routes(state:Arc) -> Router { let sites = Router::new() - .route("/sites", axum::routing::post(sites::update_handler)).with_state(state.clone()) - .route("/sites", axum::routing::get(sites::list_handler)).with_state(state.clone()) - .route("/sites", axum::routing::delete(sites::delete_handler)).with_state(state.clone()) - .route("/sites/start", axum::routing::put(sites::start_handler)).with_state(state.clone()) - .route("/sites/stop", axum::routing::put(sites::stop_handler)).with_state(state.clone()) - .route("/sites/status", axum::routing::get(sites::status_handler)).with_state(state.clone()) + .route("/api/sites", axum::routing::post(sites::update_handler)).with_state(state.clone()) + .route("/api/sites", axum::routing::get(sites::list_handler)).with_state(state.clone()) + .route("/api/sites", axum::routing::delete(sites::delete_handler)).with_state(state.clone()) + .route("/api/sites/start", axum::routing::put(sites::start_handler)).with_state(state.clone()) + .route("/api/sites/stop", axum::routing::put(sites::stop_handler)).with_state(state.clone()) + .route("/api/sites/status", axum::routing::get(sites::status_handler)).with_state(state.clone()) ; let settings = Router::new() - .route("/settings", axum::routing::post(settings::set_settings_handler)).with_state(state.clone()) - .route("/settings", axum::routing::get(settings::get_settings_handler)).with_state(state.clone()); + .route("/api/settings", axum::routing::post(settings::set_settings_handler)).with_state(state.clone()) + .route("/api/settings", axum::routing::get(settings::get_settings_handler)).with_state(state.clone()); sites.merge(settings) diff --git a/src/api/controllers/settings.rs b/src/api/controllers/settings.rs index fbfdcb3..9b3cbae 100644 --- a/src/api/controllers/settings.rs +++ b/src/api/controllers/settings.rs @@ -102,7 +102,7 @@ pub struct SaveGlobalConfig{ operation_id="settings", get, tag = "Settings", - path = "/settings", + path = "/api/settings", responses( (status = 200, description = "Successful Response", body = OddBoxConfigGlobalPart), (status = 500, description = "When something goes wrong", body = String), @@ -145,7 +145,7 @@ pub async fn get_settings_handler( operation_id="save-settings", post, tag = "Settings", - path = "/settings", + path = "/api/settings", request_body = SaveGlobalConfig, responses( (status = 200, description = "Successful Response"), diff --git a/src/api/controllers/sites.rs b/src/api/controllers/sites.rs index 433a27a..9a07a1e 100644 --- a/src/api/controllers/sites.rs +++ b/src/api/controllers/sites.rs @@ -72,7 +72,7 @@ pub struct StatusItem { operation_id="list", get, tag = "Site management", - path = "/sites", + path = "/api/sites", responses( (status = 200, description = "Successful Response", body = ListResponse), (status = 500, description = "When something goes wrong", body = String), @@ -97,7 +97,7 @@ pub async fn list_handler(state: axum::extract::State>) -> axum operation_id="status", get, tag = "Site management", - path = "/sites/status", + path = "/api/sites/status", responses( (status = 200, description = "Successful Response", body = StatusResponse), (status = 500, description = "When something goes wrong", body = String), @@ -152,7 +152,7 @@ pub struct UpdateQuery { params( UpdateQuery ), - path = "/sites", + path = "/api/sites", responses( (status = 200, description = "Successful Response", body = ()), (status = 500, description = "When something goes wrong", body = String), @@ -214,7 +214,7 @@ pub struct DeleteQueryParams { delete, tag = "Site management", params(DeleteQueryParams), - path = "/sites", + path = "/api/sites", responses( (status = 200, description = "Successful Response"), (status = 500, description = "When something goes wrong", body = String), @@ -303,7 +303,7 @@ pub struct StopQueryParams { put, tag = "Site management", params(StopQueryParams), - path = "/sites/stop", + path = "/api/sites/stop", responses( (status = 200, description = "Successful Response"), (status = 500, description = "When something goes wrong", body = String), @@ -344,7 +344,7 @@ pub struct StartQueryParams { put, tag = "Site management", params(StartQueryParams), - path = "/sites/start", + path = "/api/sites/start", responses( (status = 200, description = "Successful Response"), (status = 500, description = "When something goes wrong", body = String), diff --git a/src/api/mod.rs b/src/api/mod.rs index 0841873..fcbe7e1 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -107,7 +107,7 @@ pub async fn run(globally_shared_state: Arc,po // STATIC FILES FOR WEB-UI .route("/", get(|| async { serve_static_file(axum::extract::Path("index.html".to_string())).await })) - .route("/webui/*file", get(serve_static_file)); + .route("/*file", get(serve_static_file)); // in some cases one might want to allow CORS from a specific origin. this is not currently allowed to do from the config file // so we use an environment variable to set this. might change in the future if it becomes a common use case diff --git a/web-ui/dist/assets/args-input-D9ysyiFG.js b/web-ui/dist/assets/args-input-hI3vUIGv.js similarity index 94% rename from web-ui/dist/assets/args-input-D9ysyiFG.js rename to web-ui/dist/assets/args-input-hI3vUIGv.js index 0ed8236..a984f5b 100644 --- a/web-ui/dist/assets/args-input-D9ysyiFG.js +++ b/web-ui/dist/assets/args-input-hI3vUIGv.js @@ -1 +1 @@ -import{j as e,S as d,r as x}from"./index-fSmiwOPx.js";import{a as h,b as p,c as m,d as u,e as g,I as j,f,B as c,g as v,P as w}from"./setting_descriptions-Dwh6rKG6.js";const S=({show:r,value:l,originalValue:s,onClose:n,valueChanged:a,onAddArg:i,onRemoveArg:t})=>e.jsx(h,{open:r,onOpenChange:n,children:e.jsxs(p,{className:"bg-[#242424] border-l-[#ffffff10] w-full",children:[e.jsxs(m,{className:"text-left",children:[e.jsx(u,{className:"text-white",children:s!==""?"Edit argument":"New argument"}),e.jsx(g,{children:s===""?"Add a new argument":`Making changes to '${s}'`})]}),e.jsx(d,{marginTop:"10px",noBottomSeparator:!0,children:e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:e.jsx("div",{children:e.jsx(j,{withSaveButton:!0,placeholder:"Argument here..",originalValue:s,onSave:()=>{i(l,s),n()},type:"text",value:l,onChange:o=>a(o.target.value)})})})}),e.jsxs(f,{className:"flex flex-row gap-4",children:[s&&e.jsx(c,{onClick:()=>{t(s),n()},style:{width:"150px",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"5px",justifyContent:"center"},dangerButton:!0,children:"Delete"}),e.jsx(v,{asChild:!0,children:e.jsx(c,{type:"submit",children:"Close"})})]})]})}),y=({defaultKeys:r,onAddArg:l,onRemoveArg:s})=>{const[n,a]=x.useState({show:!1,value:"",originalValue:void 0}),i=()=>{a({show:!0,value:"",originalValue:""})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{background:"var(--color3)",color:"black",marginTop:"10px",borderRadius:"5px",overflow:"hidden"},children:[r==null?void 0:r.map(t=>e.jsx("div",{onClick:()=>{a({show:!0,value:t,originalValue:t})},className:"env-var-item",style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px"},children:e.jsx("p",{style:{zIndex:1,fontSize:".8rem"},children:t})},t)),e.jsx("div",{onClick:i,className:"env-var-item",style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px"},children:e.jsxs("div",{style:{zIndex:1,fontSize:".8rem",display:"flex",alignItems:"center",gap:"5px"},children:[e.jsx(w,{}),"New argument"]})})]}),e.jsx(S,{onAddArg:l,onRemoveArg:s,onClose:()=>a(t=>({...t,show:!1})),originalValue:n.originalValue,show:n.show,value:n.value,valueChanged:t=>a(o=>({...o,value:t}))})]})};export{y as A}; +import{j as e,S as d,r as x}from"./index-VhmgqZXc.js";import{a as h,b as p,c as m,d as u,e as g,I as j,f,B as c,g as v,P as w}from"./setting_descriptions-C0WjOK5n.js";const S=({show:r,value:l,originalValue:s,onClose:n,valueChanged:a,onAddArg:i,onRemoveArg:t})=>e.jsx(h,{open:r,onOpenChange:n,children:e.jsxs(p,{className:"bg-[#242424] border-l-[#ffffff10] w-full",children:[e.jsxs(m,{className:"text-left",children:[e.jsx(u,{className:"text-white",children:s!==""?"Edit argument":"New argument"}),e.jsx(g,{children:s===""?"Add a new argument":`Making changes to '${s}'`})]}),e.jsx(d,{marginTop:"10px",noBottomSeparator:!0,children:e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:e.jsx("div",{children:e.jsx(j,{withSaveButton:!0,placeholder:"Argument here..",originalValue:s,onSave:()=>{i(l,s),n()},type:"text",value:l,onChange:o=>a(o.target.value)})})})}),e.jsxs(f,{className:"flex flex-row gap-4",children:[s&&e.jsx(c,{onClick:()=>{t(s),n()},style:{width:"150px",whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:"5px",justifyContent:"center"},dangerButton:!0,children:"Delete"}),e.jsx(v,{asChild:!0,children:e.jsx(c,{type:"submit",children:"Close"})})]})]})}),y=({defaultKeys:r,onAddArg:l,onRemoveArg:s})=>{const[n,a]=x.useState({show:!1,value:"",originalValue:void 0}),i=()=>{a({show:!0,value:"",originalValue:""})};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:{background:"var(--color3)",color:"black",marginTop:"10px",borderRadius:"5px",overflow:"hidden"},children:[r==null?void 0:r.map(t=>e.jsx("div",{onClick:()=>{a({show:!0,value:t,originalValue:t})},className:"env-var-item",style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px"},children:e.jsx("p",{style:{zIndex:1,fontSize:".8rem"},children:t})},t)),e.jsx("div",{onClick:i,className:"env-var-item",style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"5px"},children:e.jsxs("div",{style:{zIndex:1,fontSize:".8rem",display:"flex",alignItems:"center",gap:"5px"},children:[e.jsx(w,{}),"New argument"]})})]}),e.jsx(S,{onAddArg:l,onRemoveArg:s,onClose:()=>a(t=>({...t,show:!1})),originalValue:n.originalValue,show:n.show,value:n.value,valueChanged:t=>a(o=>({...o,value:t}))})]})};export{y as A}; diff --git a/web-ui/dist/assets/index-fSmiwOPx.js b/web-ui/dist/assets/index-VhmgqZXc.js similarity index 76% rename from web-ui/dist/assets/index-fSmiwOPx.js rename to web-ui/dist/assets/index-VhmgqZXc.js index a1b4fa8..94953f1 100644 --- a/web-ui/dist/assets/index-fSmiwOPx.js +++ b/web-ui/dist/assets/index-VhmgqZXc.js @@ -1,5 +1,5 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/settings.lazy-CU84o0_U.js","assets/setting_descriptions-Dwh6rKG6.js","assets/setting_descriptions-BVqBB1H3.css","assets/new-site.lazy-CaAaPN1K.js","assets/args-input-D9ysyiFG.js","assets/index.lazy-mgsMw_CY.js","assets/index-8QctTHiC.css","assets/site._siteName.lazy-cX_wIo8r.js"])))=>i.map(i=>d[i]); -var dh=e=>{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||dh("Cannot "+n);var k=(e,t,n)=>(su(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?dh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),I=(e,t,n,r)=>(su(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(su(e,t,"access private method"),n);var Ts=(e,t,n,r)=>({set _(o){I(e,t,o,n)},get _(){return k(e,t,r)}});function W1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gm={exports:{}},yl={},qm={exports:{}},Z={};/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/settings.lazy-DgHrAbe2.js","assets/setting_descriptions-C0WjOK5n.js","assets/setting_descriptions-BVqBB1H3.css","assets/new-site.lazy-YoQKICiq.js","assets/args-input-hI3vUIGv.js","assets/index.lazy-Nx6U9FEN.js","assets/index-8QctTHiC.css","assets/site._siteName.lazy-DUVUisPA.js"])))=>i.map(i=>d[i]); +var ch=e=>{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||ch("Cannot "+n);var k=(e,t,n)=>(su(e,t,"read from private field"),n?n.call(e):t.get(e)),G=(e,t,n)=>t.has(e)?ch("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),I=(e,t,n,r)=>(su(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(su(e,t,"access private method"),n);var Ts=(e,t,n,r)=>({set _(o){I(e,t,o,n)},get _(){return k(e,t,r)}});function W1(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var Se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ss(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Km={exports:{}},yl={},Gm={exports:{}},Z={};/** * @license React * react.production.min.js * @@ -7,7 +7,7 @@ var dh=e=>{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||dh("Cannot "+n);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bs=Symbol.for("react.element"),H1=Symbol.for("react.portal"),V1=Symbol.for("react.fragment"),Q1=Symbol.for("react.strict_mode"),K1=Symbol.for("react.profiler"),G1=Symbol.for("react.provider"),q1=Symbol.for("react.context"),Y1=Symbol.for("react.forward_ref"),X1=Symbol.for("react.suspense"),Z1=Symbol.for("react.memo"),J1=Symbol.for("react.lazy"),fh=Symbol.iterator;function ex(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}var Ym={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xm=Object.assign,Zm={};function si(e,t,n){this.props=e,this.context=t,this.refs=Zm,this.updater=n||Ym}si.prototype.isReactComponent={};si.prototype.setState=function(e,t){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,t,"setState")};si.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jm(){}Jm.prototype=si.prototype;function Ad(e,t,n){this.props=e,this.context=t,this.refs=Zm,this.updater=n||Ym}var Fd=Ad.prototype=new Jm;Fd.constructor=Ad;Xm(Fd,si.prototype);Fd.isPureReactComponent=!0;var hh=Array.isArray,ev=Object.prototype.hasOwnProperty,Id={current:null},tv={key:!0,ref:!0,__self:!0,__source:!0};function nv(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)ev.call(t,r)&&!tv.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||dh("Cannot "+n);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ix=h,sx=Symbol.for("react.element"),ax=Symbol.for("react.fragment"),lx=Object.prototype.hasOwnProperty,ux=ix.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cx={key:!0,ref:!0,__self:!0,__source:!0};function iv(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)lx.call(t,r)&&!cx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:sx,type:e,key:i,ref:s,props:o,_owner:ux.current}}yl.Fragment=ax;yl.jsx=iv;yl.jsxs=iv;Gm.exports=yl;var f=Gm.exports,sc={},sv={exports:{}},mt={},av={exports:{}},lv={};/** + */var ix=h,sx=Symbol.for("react.element"),ax=Symbol.for("react.fragment"),lx=Object.prototype.hasOwnProperty,ux=ix.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cx={key:!0,ref:!0,__self:!0,__source:!0};function ov(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)lx.call(t,r)&&!cx.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:sx,type:e,key:i,ref:s,props:o,_owner:ux.current}}yl.Fragment=ax;yl.jsx=ov;yl.jsxs=ov;Km.exports=yl;var f=Km.exports,sc={},iv={exports:{}},mt={},sv={exports:{}},av={};/** * @license React * scheduler.production.min.js * @@ -23,7 +23,7 @@ var dh=e=>{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||dh("Cannot "+n);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,N){var T=R.length;R.push(N);e:for(;0>>1,_=R[W];if(0>>1;Wo(H,T))q<_&&0>o(J,H)?(R[W]=J,R[q]=T,W=q):(R[W]=H,R[V]=T,W=V);else if(q<_&&0>o(J,T))R[W]=J,R[q]=T,W=q;else break e}}return N}function o(R,N){var T=R.sortIndex-N.sortIndex;return T!==0?T:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,m=!1,w=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=R)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function b(R){if(v=!1,x(R),!w)if(n(l)!==null)w=!0,U(C);else{var N=n(u);N!==null&&K(b,N.startTime-R)}}function C(R,N){w=!1,v&&(v=!1,g(E),E=-1),m=!0;var T=p;try{for(x(N),d=n(l);d!==null&&(!(d.expirationTime>N)||R&&!F());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var _=W(d.expirationTime<=N);N=e.unstable_now(),typeof _=="function"?d.callback=_:d===n(l)&&r(l),x(N)}else r(l);d=n(l)}if(d!==null)var A=!0;else{var V=n(u);V!==null&&K(b,V.startTime-N),A=!1}return A}finally{d=null,p=T,m=!1}}var $=!1,P=null,E=-1,O=5,j=-1;function F(){return!(e.unstable_now()-jR||125W?(R.sortIndex=T,t(u,R),n(l)===null&&R===n(u)&&(v?(g(E),E=-1):v=!0,K(b,T-W))):(R.sortIndex=_,t(l,R),w||m||(w=!0,U(C))),R},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(R){var N=p;return function(){var T=p;p=N;try{return R.apply(this,arguments)}finally{p=T}}}})(lv);av.exports=lv;var dx=av.exports;/** + */(function(e){function t(R,N){var T=R.length;R.push(N);e:for(;0>>1,_=R[W];if(0>>1;Wo(H,T))q<_&&0>o(J,H)?(R[W]=J,R[q]=T,W=q):(R[W]=H,R[V]=T,W=V);else if(q<_&&0>o(J,T))R[W]=J,R[q]=T,W=q;else break e}}return N}function o(R,N){var T=R.sortIndex-N.sortIndex;return T!==0?T:R.id-N.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],c=1,d=null,p=3,m=!1,w=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(R){for(var N=n(u);N!==null;){if(N.callback===null)r(u);else if(N.startTime<=R)r(u),N.sortIndex=N.expirationTime,t(l,N);else break;N=n(u)}}function b(R){if(v=!1,x(R),!w)if(n(l)!==null)w=!0,U(C);else{var N=n(u);N!==null&&K(b,N.startTime-R)}}function C(R,N){w=!1,v&&(v=!1,g(E),E=-1),m=!0;var T=p;try{for(x(N),d=n(l);d!==null&&(!(d.expirationTime>N)||R&&!F());){var W=d.callback;if(typeof W=="function"){d.callback=null,p=d.priorityLevel;var _=W(d.expirationTime<=N);N=e.unstable_now(),typeof _=="function"?d.callback=_:d===n(l)&&r(l),x(N)}else r(l);d=n(l)}if(d!==null)var A=!0;else{var V=n(u);V!==null&&K(b,V.startTime-N),A=!1}return A}finally{d=null,p=T,m=!1}}var $=!1,P=null,E=-1,O=5,j=-1;function F(){return!(e.unstable_now()-jR||125W?(R.sortIndex=T,t(u,R),n(l)===null&&R===n(u)&&(v?(g(E),E=-1):v=!0,K(b,T-W))):(R.sortIndex=_,t(l,R),w||m||(w=!0,U(C))),R},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(R){var N=p;return function(){var T=p;p=N;try{return R.apply(this,arguments)}finally{p=T}}}})(av);sv.exports=av;var dx=sv.exports;/** * @license React * react-dom.production.min.js * @@ -31,14 +31,14 @@ var dh=e=>{throw TypeError(e)};var su=(e,t,n)=>t.has(e)||dh("Cannot "+n);var k=( * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var fx=h,pt=dx;function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ac=Object.prototype.hasOwnProperty,hx=/^[: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]*$/,mh={},vh={};function px(e){return ac.call(vh,e)?!0:ac.call(mh,e)?!1:hx.test(e)?vh[e]=!0:(mh[e]=!0,!1)}function mx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vx(e,t,n,r){if(t===null||typeof t>"u"||mx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Xe(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){Te[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var zd=/[\-:]([a-z])/g;function Ud(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 t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bd(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ac=Object.prototype.hasOwnProperty,hx=/^[: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]*$/,ph={},mh={};function px(e){return ac.call(mh,e)?!0:ac.call(ph,e)?!1:hx.test(e)?mh[e]=!0:(ph[e]=!0,!1)}function mx(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function vx(e,t,n,r){if(t===null||typeof t>"u"||mx(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Xe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Te={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Te[e]=new Xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Te[t]=new Xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Te[e]=new Xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Te[e]=new Xe(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){Te[e]=new Xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Te[e]=new Xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Te[e]=new Xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Te[e]=new Xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Te[e]=new Xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var zd=/[\-:]([a-z])/g;function Ud(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 t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zd,Ud);Te[t]=new Xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Te[e]=new Xe(e,1,!1,e.toLowerCase(),null,!1,!1)});Te.xlinkHref=new Xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Te[e]=new Xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bd(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.type!==0:r||!(2a||o[s]!==i[a]){var l=` -`+o[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ri(e):""}function gx(e){switch(e.tag){case 5:return Ri(e.type);case 16:return Ri("Lazy");case 13:return Ri("Suspense");case 19:return Ri("SuspenseList");case 0:case 2:case 15:return e=cu(e.type,!1),e;case 11:return e=cu(e.type.render,!1),e;case 1:return e=cu(e.type,!0),e;default:return""}}function dc(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 ao:return"Fragment";case so:return"Portal";case lc:return"Profiler";case Wd:return"StrictMode";case uc:return"Suspense";case cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dv:return(e.displayName||"Context")+".Consumer";case cv:return(e._context.displayName||"Context")+".Provider";case Hd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vd:return t=e.displayName||null,t!==null?t:dc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return dc(e(t))}catch{}}return null}function yx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dc(t);case 8:return t===Wd?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xx(e){var t=hv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fs(e){e._valueTracker||(e._valueTracker=xx(e))}function pv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ja(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 fc(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mv(e,t){t=t.checked,t!=null&&Bd(e,"checked",t,!1)}function hc(e,t){mv(e,t);var n=Jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _i=Array.isArray;function bo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mi={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},wx=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function xv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function wv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=xv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Sx=ye({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 gc(e,t){if(t){if(Sx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.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 xc=null;function Qd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wc=null,Eo=null,Co=null;function bh(e){if(e=ks(e)){if(typeof wc!="function")throw Error(L(280));var t=e.stateNode;t&&(t=El(t),wc(e.stateNode,e.type,t))}}function Sv(e){Eo?Co?Co.push(e):Co=[e]:Eo=e}function bv(){if(Eo){var e=Eo,t=Co;if(Co=Eo=null,bh(e),t)for(e=0;e>>=0,e===0?32:31-(Nx(e)/Lx|0)|0}var Ds=64,zs=4194304;function Oi(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 Ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Oi(a):(i&=s,i!==0&&(r=Oi(i)))}else s=n&~o,s!==0?r=Oi(s):i!==0&&(r=Oi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Es(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function Fx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fi),jh=" ",Nh=!1;function Bv(e,t){switch(e){case"keyup":return dw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function hw(e,t){switch(e){case"compositionend":return Wv(t);case"keypress":return t.which!==32?null:(Nh=!0,jh);case"textInput":return e=t.data,e===jh&&Nh?null:e;default:return null}}function pw(e,t){if(lo)return e==="compositionend"||!ef&&Bv(e,t)?(e=zv(),va=Xd=Un=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ah(n)}}function Kv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gv(){for(var e=window,t=ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ew(e){var t=Gv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Kv(n.ownerDocument.documentElement,n)){if(r!==null&&tf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Fh(n,i);var s=Fh(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,uo=null,Pc=null,Di=null,$c=!1;function Ih(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$c||uo==null||uo!==ja(r)||(r=uo,"selectionStart"in r&&tf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Di&&ts(Di,r)||(Di=r,r=Ia(Pc,"onSelect"),0ho||(e.current=Lc[ho],Lc[ho]=null,ho--)}function ue(e,t){ho++,Lc[ho]=e.current,e.current=t}var er={},Be=ur(er),nt=ur(!1),Lr=er;function qo(e,t){var n=e.type.contextTypes;if(!n)return er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function za(){fe(nt),fe(Be)}function Vh(e,t,n){if(Be.current!==er)throw Error(L(168));ue(Be,t),ue(nt,n)}function r0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,yx(e)||"Unknown",o));return ye({},n,r)}function Ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,Lr=Be.current,ue(Be,e),ue(nt,nt.current),!0}function Qh(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=r0(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe(Be),ue(Be,e)):fe(nt),ue(nt,n)}var on=null,Cl=!1,Cu=!1;function o0(e){on===null?on=[e]:on.push(e)}function Mw(e){Cl=!0,o0(e)}function cr(){if(!Cu&&on!==null){Cu=!0;var e=0,t=ie;try{var n=on;for(ie=1;e>=s,o-=s,an=1<<32-Lt(t)+o|n<E?(O=P,P=null):O=P.sibling;var j=p(g,P,x[E],b);if(j===null){P===null&&(P=O);break}e&&P&&j.alternate===null&&t(g,P),y=i(j,y,E),$===null?C=j:$.sibling=j,$=j,P=O}if(E===x.length)return n(g,P),he&&pr(g,E),C;if(P===null){for(;EE?(O=P,P=null):O=P.sibling;var F=p(g,P,j.value,b);if(F===null){P===null&&(P=O);break}e&&P&&F.alternate===null&&t(g,P),y=i(F,y,E),$===null?C=F:$.sibling=F,$=F,P=O}if(j.done)return n(g,P),he&&pr(g,E),C;if(P===null){for(;!j.done;E++,j=x.next())j=d(g,j.value,b),j!==null&&(y=i(j,y,E),$===null?C=j:$.sibling=j,$=j);return he&&pr(g,E),C}for(P=r(g,P);!j.done;E++,j=x.next())j=m(P,g,E,j.value,b),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?E:j.key),y=i(j,y,E),$===null?C=j:$.sibling=j,$=j);return e&&P.forEach(function(M){return t(g,M)}),he&&pr(g,E),C}function S(g,y,x,b){if(typeof x=="object"&&x!==null&&x.type===ao&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case As:e:{for(var C=x.key,$=y;$!==null;){if($.key===C){if(C=x.type,C===ao){if($.tag===7){n(g,$.sibling),y=o($,x.props.children),y.return=g,g=y;break e}}else if($.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===$n&&qh(C)===$.type){n(g,$.sibling),y=o($,x.props),y.ref=wi(g,$,x),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}x.type===ao?(y=jr(x.props.children,g.mode,b,x.key),y.return=g,g=y):(b=Ca(x.type,x.key,x.props,null,g.mode,b),b.ref=wi(g,y,x),b.return=g,g=b)}return s(g);case so:e:{for($=x.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Nu(x,g.mode,b),y.return=g,g=y}return s(g);case $n:return $=x._init,S(g,y,$(x._payload),b)}if(_i(x))return w(g,y,x,b);if(mi(x))return v(g,y,x,b);Ks(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=ju(x,g.mode,b),y.return=g,g=y),s(g)):n(g,y)}return S}var Xo=l0(!0),u0=l0(!1),Ha=ur(null),Va=null,vo=null,sf=null;function af(){sf=vo=Va=null}function lf(e){var t=Ha.current;fe(Ha),e._currentValue=t}function Ac(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Va=e,sf=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(sf!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Va===null)throw Error(L(308));vo=e,Va.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var wr=null;function uf(e){wr===null?wr=[e]:wr.push(e)}function c0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,hn(e,r)}function hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rn=!1;function cf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function d0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,hn(e,n)}return o=r.interleaved,o===null?(t.next=t,uf(r)):(t.next=o.next,o.next=t),r.interleaved=t,hn(e,n)}function ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gd(e,n)}}function Yh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qa(e,t,n,r){var o=e.updateQueue;Rn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var p=a.lane,m=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(p=t,m=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(m,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,p=typeof w=="function"?w.call(m,d,p):w,p==null)break e;d=ye({},d,p);break e;case 2:Rn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ar|=s,e.lanes=s,e.memoizedState=d}}function Xh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{ie=n,Pu.transition=r}}function R0(){return Ct().memoizedState}function Dw(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_0(e))O0(t,n);else if(n=c0(e,t,n,r),n!==null){var o=qe();Tt(n,e,r,o),j0(n,t,r)}}function zw(e,t,n){var r=qn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_0(e))O0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Mt(a,s)){var l=t.interleaved;l===null?(o.next=o,uf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=c0(e,t,o,r),n!==null&&(o=qe(),Tt(n,e,r,o),j0(n,t,r))}}function _0(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function O0(e,t){zi=Ga=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function j0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gd(e,n)}}var qa={readContext:Et,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Uw={readContext:Et,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Jh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wa(4194308,4,E0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dw.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Zh,useDebugValue:yf,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Zh(!1),t=e[0];return e=Iw.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=zt();if(he){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),_e===null)throw Error(L(349));Mr&30||m0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Jh(g0.bind(null,r,i,e),[e]),r.flags|=2048,us(9,v0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=_e.identifierPrefix;if(he){var n=ln,r=an;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{uu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ri(e):""}function gx(e){switch(e.tag){case 5:return Ri(e.type);case 16:return Ri("Lazy");case 13:return Ri("Suspense");case 19:return Ri("SuspenseList");case 0:case 2:case 15:return e=cu(e.type,!1),e;case 11:return e=cu(e.type.render,!1),e;case 1:return e=cu(e.type,!0),e;default:return""}}function dc(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 ao:return"Fragment";case so:return"Portal";case lc:return"Profiler";case Wd:return"StrictMode";case uc:return"Suspense";case cc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cv:return(e.displayName||"Context")+".Consumer";case uv:return(e._context.displayName||"Context")+".Provider";case Hd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Vd:return t=e.displayName||null,t!==null?t:dc(e.type)||"Memo";case $n:t=e._payload,e=e._init;try{return dc(e(t))}catch{}}return null}function yx(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return dc(t);case 8:return t===Wd?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fv(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xx(e){var t=fv(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fs(e){e._valueTracker||(e._valueTracker=xx(e))}function hv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fv(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ja(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 fc(e,t){var n=t.checked;return ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function gh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pv(e,t){t=t.checked,t!=null&&Bd(e,"checked",t,!1)}function hc(e,t){pv(e,t);var n=Jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pc(e,t.type,n):t.hasOwnProperty("defaultValue")&&pc(e,t.type,Jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function yh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pc(e,t,n){(t!=="number"||ja(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var _i=Array.isArray;function bo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Is.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function qi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Mi={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},wx=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){wx.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function yv(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function xv(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=yv(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Sx=ye({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 gc(e,t){if(t){if(Sx[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function yc(e,t){if(e.indexOf("-")===-1)return typeof t.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 xc=null;function Qd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wc=null,Eo=null,Co=null;function Sh(e){if(e=ks(e)){if(typeof wc!="function")throw Error(L(280));var t=e.stateNode;t&&(t=El(t),wc(e.stateNode,e.type,t))}}function wv(e){Eo?Co?Co.push(e):Co=[e]:Eo=e}function Sv(){if(Eo){var e=Eo,t=Co;if(Co=Eo=null,Sh(e),t)for(e=0;e>>=0,e===0?32:31-(Nx(e)/Lx|0)|0}var Ds=64,zs=4194304;function Oi(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 Ma(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~o;a!==0?r=Oi(a):(i&=s,i!==0&&(r=Oi(i)))}else s=n&~o,s!==0?r=Oi(s):i!==0&&(r=Oi(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Es(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lt(t),e[t]=n}function Fx(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fi),Oh=" ",jh=!1;function Uv(e,t){switch(e){case"keyup":return dw.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var lo=!1;function hw(e,t){switch(e){case"compositionend":return Bv(t);case"keypress":return t.which!==32?null:(jh=!0,Oh);case"textInput":return e=t.data,e===Oh&&jh?null:e;default:return null}}function pw(e,t){if(lo)return e==="compositionend"||!ef&&Uv(e,t)?(e=Dv(),va=Xd=Un=null,lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mh(n)}}function Qv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kv(){for(var e=window,t=ja();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ja(e.document)}return t}function tf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ew(e){var t=Kv(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qv(n.ownerDocument.documentElement,n)){if(r!==null&&tf(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ah(n,i);var s=Ah(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,uo=null,Pc=null,Di=null,$c=!1;function Fh(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$c||uo==null||uo!==ja(r)||(r=uo,"selectionStart"in r&&tf(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Di&&ts(Di,r)||(Di=r,r=Ia(Pc,"onSelect"),0ho||(e.current=Lc[ho],Lc[ho]=null,ho--)}function ue(e,t){ho++,Lc[ho]=e.current,e.current=t}var er={},Be=ur(er),nt=ur(!1),Lr=er;function qo(e,t){var n=e.type.contextTypes;if(!n)return er;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rt(e){return e=e.childContextTypes,e!=null}function za(){fe(nt),fe(Be)}function Hh(e,t,n){if(Be.current!==er)throw Error(L(168));ue(Be,t),ue(nt,n)}function n0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,yx(e)||"Unknown",o));return ye({},n,r)}function Ua(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||er,Lr=Be.current,ue(Be,e),ue(nt,nt.current),!0}function Vh(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=n0(e,t,Lr),r.__reactInternalMemoizedMergedChildContext=e,fe(nt),fe(Be),ue(Be,e)):fe(nt),ue(nt,n)}var on=null,Cl=!1,Cu=!1;function r0(e){on===null?on=[e]:on.push(e)}function Mw(e){Cl=!0,r0(e)}function cr(){if(!Cu&&on!==null){Cu=!0;var e=0,t=ie;try{var n=on;for(ie=1;e>=s,o-=s,an=1<<32-Lt(t)+o|n<E?(O=P,P=null):O=P.sibling;var j=p(g,P,x[E],b);if(j===null){P===null&&(P=O);break}e&&P&&j.alternate===null&&t(g,P),y=i(j,y,E),$===null?C=j:$.sibling=j,$=j,P=O}if(E===x.length)return n(g,P),he&&pr(g,E),C;if(P===null){for(;EE?(O=P,P=null):O=P.sibling;var F=p(g,P,j.value,b);if(F===null){P===null&&(P=O);break}e&&P&&F.alternate===null&&t(g,P),y=i(F,y,E),$===null?C=F:$.sibling=F,$=F,P=O}if(j.done)return n(g,P),he&&pr(g,E),C;if(P===null){for(;!j.done;E++,j=x.next())j=d(g,j.value,b),j!==null&&(y=i(j,y,E),$===null?C=j:$.sibling=j,$=j);return he&&pr(g,E),C}for(P=r(g,P);!j.done;E++,j=x.next())j=m(P,g,E,j.value,b),j!==null&&(e&&j.alternate!==null&&P.delete(j.key===null?E:j.key),y=i(j,y,E),$===null?C=j:$.sibling=j,$=j);return e&&P.forEach(function(M){return t(g,M)}),he&&pr(g,E),C}function S(g,y,x,b){if(typeof x=="object"&&x!==null&&x.type===ao&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case As:e:{for(var C=x.key,$=y;$!==null;){if($.key===C){if(C=x.type,C===ao){if($.tag===7){n(g,$.sibling),y=o($,x.props.children),y.return=g,g=y;break e}}else if($.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===$n&&Gh(C)===$.type){n(g,$.sibling),y=o($,x.props),y.ref=wi(g,$,x),y.return=g,g=y;break e}n(g,$);break}else t(g,$);$=$.sibling}x.type===ao?(y=jr(x.props.children,g.mode,b,x.key),y.return=g,g=y):(b=Ca(x.type,x.key,x.props,null,g.mode,b),b.ref=wi(g,y,x),b.return=g,g=b)}return s(g);case so:e:{for($=x.key;y!==null;){if(y.key===$)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=o(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=Nu(x,g.mode,b),y.return=g,g=y}return s(g);case $n:return $=x._init,S(g,y,$(x._payload),b)}if(_i(x))return w(g,y,x,b);if(mi(x))return v(g,y,x,b);Ks(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=o(y,x),y.return=g,g=y):(n(g,y),y=ju(x,g.mode,b),y.return=g,g=y),s(g)):n(g,y)}return S}var Xo=a0(!0),l0=a0(!1),Ha=ur(null),Va=null,vo=null,sf=null;function af(){sf=vo=Va=null}function lf(e){var t=Ha.current;fe(Ha),e._currentValue=t}function Ac(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Po(e,t){Va=e,sf=vo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(tt=!0),e.firstContext=null)}function Et(e){var t=e._currentValue;if(sf!==e)if(e={context:e,memoizedValue:t,next:null},vo===null){if(Va===null)throw Error(L(308));vo=e,Va.dependencies={lanes:0,firstContext:e}}else vo=vo.next=e;return t}var wr=null;function uf(e){wr===null?wr=[e]:wr.push(e)}function u0(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,uf(t)):(n.next=o.next,o.next=n),t.interleaved=n,hn(e,r)}function hn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Rn=!1;function cf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function un(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,ne&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,hn(e,n)}return o=r.interleaved,o===null?(t.next=t,uf(r)):(t.next=o.next,o.next=t),r.interleaved=t,hn(e,n)}function ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gd(e,n)}}function qh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Qa(e,t,n,r){var o=e.updateQueue;Rn=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==s&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;s=0,c=u=l=null,a=i;do{var p=a.lane,m=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:m,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var w=e,v=a;switch(p=t,m=n,v.tag){case 1:if(w=v.payload,typeof w=="function"){d=w.call(m,d,p);break e}d=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=v.payload,p=typeof w=="function"?w.call(m,d,p):w,p==null)break e;d=ye({},d,p);break e;case 2:Rn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=o.effects,p===null?o.effects=[a]:p.push(a))}else m={eventTime:m,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=m,l=d):c=c.next=m,s|=p;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;p=a,a=p.next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}while(!0);if(c===null&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Ar|=s,e.lanes=s,e.memoizedState=d}}function Yh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Pu.transition;Pu.transition={};try{e(!1),t()}finally{ie=n,Pu.transition=r}}function $0(){return Ct().memoizedState}function Dw(e,t,n){var r=qn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},R0(e))_0(t,n);else if(n=u0(e,t,n,r),n!==null){var o=qe();Tt(n,e,r,o),O0(n,t,r)}}function zw(e,t,n){var r=qn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(R0(e))_0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,a=i(s,n);if(o.hasEagerState=!0,o.eagerState=a,Mt(a,s)){var l=t.interleaved;l===null?(o.next=o,uf(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=u0(e,t,o,r),n!==null&&(o=qe(),Tt(n,e,r,o),O0(n,t,r))}}function R0(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function _0(e,t){zi=Ga=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function O0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gd(e,n)}}var qa={readContext:Et,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},Uw={readContext:Et,useCallback:function(e,t){return zt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,wa(4194308,4,b0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4194308,4,e,t)},useInsertionEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=zt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dw.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=zt();return e={current:e},t.memoizedState=e},useState:Xh,useDebugValue:yf,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=Xh(!1),t=e[0];return e=Iw.bind(null,e[1]),zt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ge,o=zt();if(he){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),_e===null)throw Error(L(349));Mr&30||p0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zh(v0.bind(null,r,i,e),[e]),r.flags|=2048,us(9,m0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zt(),t=_e.identifierPrefix;if(he){var n=ln,r=an;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=as++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qt]=t,e[os]=r,U0(e,t,!1,!1),t.stateNode=e;e:{switch(s=yc(n,r),n){case"dialog":de("cancel",e),de("close",e),o=r;break;case"iframe":case"object":case"embed":de("load",e),o=r;break;case"video":case"audio":for(o=0;oei&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Fe(t),null}else 2*be()-i.renderingStartTime>ei&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=ve.current,ue(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Cf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function qw(e,t){switch(rf(t),t.tag){case 1:return rt(t.type)&&za(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zo(),fe(nt),fe(Be),hf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ff(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Zo(),null;case 10:return lf(t.type._context),null;case 22:case 23:return Cf(),null;case 24:return null;default:return null}}var qs=!1,ze=!1,Yw=typeof WeakSet=="function"?WeakSet:Set,D=null;function go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Vc(e,t,n){try{n()}catch(r){we(e,t,r)}}var cp=!1;function Xw(e,t){if(Rc=Aa,e=Gv(),tf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_c={focusedElem:e,selectionRange:n},Aa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,S=w.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rt(t.type,v),S);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(b){we(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=cp,cp=!1,w}function Ui(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Vc(t,n,i)}o=o.next}while(o!==r)}}function $l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function H0(e){var t=e.alternate;t!==null&&(e.alternate=null,H0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[os],delete t[Nc],delete t[Lw],delete t[Tw])),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 V0(e){return e.tag===5||e.tag===3||e.tag===4}function dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||V0(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 Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Da));else if(r!==4&&(e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var je=null,Ot=!1;function Sn(e,t,n){for(n=n.child;n!==null;)Q0(e,t,n),n=n.sibling}function Q0(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:ze||go(n,t);case 6:var r=je,o=Ot;je=null,Sn(e,t,n),je=r,Ot=o,je!==null&&(Ot?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Ot?(e=je,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),Ji(e)):Eu(je,n.stateNode));break;case 4:r=je,o=Ot,je=n.stateNode.containerInfo,Ot=!0,Sn(e,t,n),je=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Vc(n,t,s),o=o.next}while(o!==r)}Sn(e,t,n);break;case 1:if(!ze&&(go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Sn(e,t,n),ze=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yw),t.forEach(function(r){var o=sS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jw(r/1960))-r,10e?16:e,Bn===null)var r=!1;else{if(e=Bn,Bn=null,Za=0,ne&6)throw Error(L(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lbe()-bf?Or(e,0):Sf|=n),ot(e,t)}function eg(e,t){t===0&&(e.mode&1?(t=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):t=1);var n=qe();e=hn(e,t),e!==null&&(Es(e,t,n),ot(e,n))}function iS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eg(e,n)}function sS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),eg(e,n)}var tg;tg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,Kw(e,t,n);tt=!!(e.flags&131072)}else tt=!1,he&&t.flags&1048576&&i0(t,Wa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sa(e,t),e=t.pendingProps;var o=qo(t,Be.current);Po(t,n),o=mf(null,t,r,e,o,n);var i=vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,Ua(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cf(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ic(t,r,e,n),t=Uc(null,t,r,!0,i,n)):(t.tag=0,he&&i&&nf(t),Ke(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=lS(r),e=Rt(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=ap(null,t,r,e,n);break e;case 11:t=ip(null,t,r,e,n);break e;case 14:t=sp(null,t,r,Rt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),ap(e,t,r,o,n);case 3:e:{if(I0(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,d0(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jo(Error(L(423)),t),t=lp(e,t,r,n,o);break e}else if(r!==o){o=Jo(Error(L(424)),t),t=lp(e,t,r,n,o);break e}else for(ct=Qn(t.stateNode.containerInfo.firstChild),ft=t,he=!0,jt=null,n=u0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yo(),r===o){t=pn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return f0(t),e===null&&Mc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Oc(r,o)?s=null:i!==null&&Oc(r,i)&&(t.flags|=32),F0(e,t),Ke(e,t,s,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return D0(e,t,n);case 4:return df(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xo(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),ip(e,t,r,o,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ue(Ha,r._currentValue),r._currentValue=s,i!==null)if(Mt(i.value,s)){if(i.children===o.children&&!nt.current){t=pn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=un(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ac(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(L(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ac(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ke(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Po(t,n),o=Et(o),r=r(o),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,o=Rt(r,t.pendingProps),o=Rt(r.type,o),sp(e,t,r,o,n);case 15:return M0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Sa(e,t),t.tag=1,rt(r)?(e=!0,Ua(t)):e=!1,Po(t,n),N0(t,r,o),Ic(t,r,o,n),Uc(null,t,r,!0,e,n);case 19:return z0(e,t,n);case 22:return A0(e,t,n)}throw Error(L(156,t.tag))};function ng(e,t){return _v(e,t)}function aS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new aS(e,t,n,r)}function Pf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lS(e){if(typeof e=="function")return Pf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hd)return 11;if(e===Vd)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ca(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Pf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ao:return jr(n.children,o,i,t);case Wd:s=8,o|=8;break;case lc:return e=St(12,n,t,o|2),e.elementType=lc,e.lanes=i,e;case uc:return e=St(13,n,t,o),e.elementType=uc,e.lanes=i,e;case cc:return e=St(19,n,t,o),e.elementType=cc,e.lanes=i,e;case fv:return _l(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cv:s=10;break e;case dv:s=9;break e;case Hd:s=11;break e;case Vd:s=14;break e;case $n:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=St(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jr(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=St(22,e,r,t),e.elementType=fv,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Nu(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uS(e,t,n,r,o){this.tag=t,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=fu(0),this.expirationTimes=fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $f(e,t,n,r,o,i,s,a,l){return e=new uS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=St(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cf(i),e}function cS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sg)}catch(e){console.error(e)}}sg(),sv.exports=mt;var Qr=sv.exports;const ag=Ss(Qr);var wp=Qr;sc.createRoot=wp.createRoot,sc.hydrateRoot=wp.hydrateRoot;const Sp="pushstate",bp="popstate",lg="beforeunload",ug=e=>(e.preventDefault(),e.returnValue=""),mS=()=>{removeEventListener(lg,ug,{capture:!0})};function cg(e){let t=e.getLocation();const n=new Set;let r=[];const o=()=>{t=e.getLocation(),n.forEach(s=>s())},i=async(s,a)=>{var l;if(!((a==null?void 0:a.ignoreBlocker)??!1)&&typeof document<"u"&&r.length){for(const c of r)if(!await c()){(l=e.onBlocked)==null||l.call(e,o);return}}s()};return{get location(){return t},subscribers:n,subscribe:s=>(n.add(s),()=>{n.delete(s)}),push:(s,a,l)=>{a=Hi(a),i(()=>{e.pushState(s,a),o()},l)},replace:(s,a,l)=>{a=Hi(a),i(()=>{e.replaceState(s,a),o()},l)},go:(s,a)=>{i(()=>{e.go(s),o()},a)},back:s=>{i(()=>{e.back(),o()},s)},forward:s=>{i(()=>{e.forward(),o()},s)},createHref:s=>e.createHref(s),block:s=>(r.push(s),r.length===1&&addEventListener(lg,ug,{capture:!0}),()=>{r=r.filter(a=>a!==s),r.length||mS()}),flush:()=>{var s;return(s=e.flush)==null?void 0:s.call(e)},destroy:()=>{var s;return(s=e.destroy)==null?void 0:s.call(e)},notify:o}}function Hi(e){return e||(e={}),{...e,key:dg()}}function vS(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState,o=v=>v,i=()=>Jc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);let s=i(),a;const l=()=>s;let u,c;const d=()=>{if(!u)return;(u.isPush?n:r).call(t.history,u.state,"",u.href),u=void 0,c=void 0,a=void 0},p=(v,S,g)=>{const y=o(S);c||(a=s),s=Jc(S,g),u={href:y,state:g,isPush:(u==null?void 0:u.isPush)||v==="push"},c||(c=Promise.resolve().then(()=>d()))},m=()=>{s=i(),w.notify()},w=cg({getLocation:l,pushState:(v,S)=>p("push",v,S),replaceState:(v,S)=>p("replace",v,S),back:()=>t.history.back(),forward:()=>t.history.forward(),go:v=>t.history.go(v),createHref:v=>o(v),flush:d,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Sp,m),t.removeEventListener(bp,m)},onBlocked:v=>{a&&s!==a&&(s=a,v())}});return t.addEventListener(Sp,m),t.addEventListener(bp,m),t.history.pushState=function(...v){const S=n.apply(t.history,v);return m(),S},t.history.replaceState=function(...v){const S=r.apply(t.history,v);return m(),S},w}function gS(e={initialEntries:["/"]}){const t=e.initialEntries;let n=e.initialIndex??t.length-1,r={key:dg()};return cg({getLocation:()=>Jc(t[n],r),pushState:(i,s)=>{r=s,t.splice,n{r=s,t[n]=i},back:()=>{r=Hi(r),n=Math.max(n-1,0)},forward:()=>{r=Hi(r),n=Math.min(n+1,t.length-1)},go:i=>{r=Hi(r),n=Math.min(Math.max(n+i,0),t.length-1)},createHref:i=>i})}function Jc(e,t){const n=e.indexOf("#"),r=e.indexOf("?");return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{}}}function dg(){return(Math.random()+1).toString(36).substring(7)}var yS="Invariant failed";function Ge(e,t){if(!e)throw new Error(yS)}const Lu=h.createContext(null);function fg(){return typeof document>"u"?Lu:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Lu,Lu)}function kt(e){const t=h.useContext(fg());return e==null||e.warn,t}var hg={exports:{}},pg={},mg={exports:{}},vg={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function _u(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Dc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Hw=typeof WeakMap=="function"?WeakMap:Map;function N0(e,t,n){n=un(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xa||(Xa=!0,qc=r),Dc(e,t)},n}function L0(e,t,n){n=un(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Dc(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Dc(e,t),typeof r!="function"&&(Gn===null?Gn=new Set([this]):Gn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function tp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Hw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=oS.bind(null,e,t,n),t.then(e,e))}function np(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function rp(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=un(-1,1),t.tag=2,Kn(n,t,1))),n.lanes|=1),e)}var Vw=yn.ReactCurrentOwner,tt=!1;function Ke(e,t,n,r){t.child=e===null?l0(t,null,n,r):Xo(t,e.child,n,r)}function op(e,t,n,r,o){n=n.render;var i=t.ref;return Po(t,o),r=mf(e,t,n,r,i,o),n=vf(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(he&&n&&nf(t),t.flags|=1,Ke(e,t,r,o),t.child)}function ip(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Pf(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,T0(e,t,i,r,o)):(e=Ca(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:ts,n(s,r)&&e.ref===t.ref)return pn(e,t,o)}return t.flags|=1,e=Yn(i,r),e.ref=t.ref,e.return=t,t.child=e}function T0(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ts(i,r)&&e.ref===t.ref)if(tt=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(tt=!0);else return t.lanes=e.lanes,pn(e,t,o)}return zc(e,t,n,r,o)}function M0(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ue(yo,lt),lt|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ue(yo,lt),lt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ue(yo,lt),lt|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ue(yo,lt),lt|=r;return Ke(e,t,o,n),t.child}function A0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function zc(e,t,n,r,o){var i=rt(n)?Lr:Be.current;return i=qo(t,i),Po(t,o),n=mf(e,t,n,r,i,o),r=vf(),e!==null&&!tt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pn(e,t,o)):(he&&r&&nf(t),t.flags|=1,Ke(e,t,n,o),t.child)}function sp(e,t,n,r,o){if(rt(n)){var i=!0;Ua(t)}else i=!1;if(Po(t,o),t.stateNode===null)Sa(e,t),j0(t,n,r),Ic(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Et(u):(u=rt(n)?Lr:Be.current,u=qo(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&ep(t,s,r,u),Rn=!1;var p=t.memoizedState;s.state=p,Qa(t,r,s,o),l=t.memoizedState,a!==r||p!==l||nt.current||Rn?(typeof c=="function"&&(Fc(t,n,c,r),l=t.memoizedState),(a=Rn||Jh(t,n,a,r,p,l,u))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,c0(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Rt(t.type,a),s.props=u,d=t.pendingProps,p=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Et(l):(l=rt(n)?Lr:Be.current,l=qo(t,l));var m=n.getDerivedStateFromProps;(c=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||p!==l)&&ep(t,s,r,l),Rn=!1,p=t.memoizedState,s.state=p,Qa(t,r,s,o);var w=t.memoizedState;a!==d||p!==w||nt.current||Rn?(typeof m=="function"&&(Fc(t,n,m,r),w=t.memoizedState),(u=Rn||Jh(t,n,u,r,p,w,l)||!1)?(c||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,w,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,w,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),s.props=r,s.state=w,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Uc(e,t,n,r,i,o)}function Uc(e,t,n,r,o,i){A0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&Vh(t,n,!1),pn(e,t,i);r=t.stateNode,Vw.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Xo(t,e.child,null,i),t.child=Xo(t,null,a,i)):Ke(e,t,a,i),t.memoizedState=r.state,o&&Vh(t,n,!0),t.child}function F0(e){var t=e.stateNode;t.pendingContext?Hh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hh(e,t.context,!1),df(e,t.containerInfo)}function ap(e,t,n,r,o){return Yo(),of(o),t.flags|=256,Ke(e,t,n,r),t.child}var Bc={dehydrated:null,treeContext:null,retryLane:0};function Wc(e){return{baseLanes:e,cachePool:null,transitions:null}}function I0(e,t,n){var r=t.pendingProps,o=ve.current,i=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ue(ve,o&1),e===null)return Mc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=_l(s,r,0,null),e=jr(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wc(n),t.memoizedState=Bc,e):xf(t,s));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return Qw(e,t,s,r,a,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Yn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?i=Yn(a,i):(i=jr(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?Wc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Bc,r}return i=e.child,e=i.sibling,r=Yn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function xf(e,t){return t=_l({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gs(e,t,n,r){return r!==null&&of(r),Xo(t,e.child,null,n),e=xf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qw(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=_u(Error(L(422))),Gs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=_l({mode:"visible",children:r.children},o,0,null),i=jr(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Xo(t,e.child,null,s),t.child.memoizedState=Wc(s),t.memoizedState=Bc,i);if(!(t.mode&1))return Gs(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,i=Error(L(419)),r=_u(i,r,void 0),Gs(e,t,s,r)}if(a=(s&e.childLanes)!==0,tt||a){if(r=_e,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,hn(e,o),Tt(r,e,o,-1))}return kf(),r=_u(Error(L(421))),Gs(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=iS.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,ct=Qn(o.nextSibling),ft=t,he=!0,jt=null,e!==null&&(xt[wt++]=an,xt[wt++]=ln,xt[wt++]=Tr,an=e.id,ln=e.overflow,Tr=t),t=xf(t,r.children),t.flags|=4096,t)}function lp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ac(e.return,t,n)}function Ou(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function D0(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ke(e,t,r.children,n),r=ve.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ue(ve,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Ka(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ou(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ka(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ou(t,!0,n,null,i);break;case"together":Ou(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Sa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ar|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(L(153));if(t.child!==null){for(e=t.child,n=Yn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Kw(e,t,n){switch(t.tag){case 3:F0(t),Yo();break;case 5:d0(t);break;case 1:rt(t.type)&&Ua(t);break;case 4:df(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ue(Ha,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ue(ve,ve.current&1),t.flags|=128,null):n&t.child.childLanes?I0(e,t,n):(ue(ve,ve.current&1),e=pn(e,t,n),e!==null?e.sibling:null);ue(ve,ve.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return D0(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ue(ve,ve.current),r)break;return null;case 22:case 23:return t.lanes=0,M0(e,t,n)}return pn(e,t,n)}var z0,Hc,U0,B0;z0=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Hc=function(){};U0=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Sr(Yt.current);var i=null;switch(n){case"input":o=fc(e,o),r=fc(e,r),i=[];break;case"select":o=ye({},o,{value:void 0}),r=ye({},r,{value:void 0}),i=[];break;case"textarea":o=mc(e,o),r=mc(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Da)}gc(n,r);var s;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var a=o[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Gi.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(a=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Gi.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&de("scroll",e),i||a===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};B0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Si(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gw(e,t,n){var r=t.pendingProps;switch(rf(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return rt(t.type)&&za(),Fe(t),null;case 3:return r=t.stateNode,Zo(),fe(nt),fe(Be),hf(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Qs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jt!==null&&(Zc(jt),jt=null))),Hc(e,t),Fe(t),null;case 5:ff(t);var o=Sr(ss.current);if(n=t.type,e!==null&&t.stateNode!=null)U0(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(L(166));return Fe(t),null}if(e=Sr(Yt.current),Qs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Qt]=t,r[os]=i,e=(t.mode&1)!==0,n){case"dialog":de("cancel",r),de("close",r);break;case"iframe":case"object":case"embed":de("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qt]=t,e[os]=r,z0(e,t,!1,!1),t.stateNode=e;e:{switch(s=yc(n,r),n){case"dialog":de("cancel",e),de("close",e),o=r;break;case"iframe":case"object":case"embed":de("load",e),o=r;break;case"video":case"audio":for(o=0;oei&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304)}else{if(!r)if(e=Ka(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Si(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Fe(t),null}else 2*be()-i.renderingStartTime>ei&&n!==1073741824&&(t.flags|=128,r=!0,Si(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=be(),t.sibling=null,n=ve.current,ue(ve,r?n&1|2:n&1),t):(Fe(t),null);case 22:case 23:return Cf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?lt&1073741824&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function qw(e,t){switch(rf(t),t.tag){case 1:return rt(t.type)&&za(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zo(),fe(nt),fe(Be),hf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ff(t),null;case 13:if(fe(ve),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));Yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ve),null;case 4:return Zo(),null;case 10:return lf(t.type._context),null;case 22:case 23:return Cf(),null;case 24:return null;default:return null}}var qs=!1,ze=!1,Yw=typeof WeakSet=="function"?WeakSet:Set,D=null;function go(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){we(e,t,r)}else n.current=null}function Vc(e,t,n){try{n()}catch(r){we(e,t,r)}}var up=!1;function Xw(e,t){if(Rc=Aa,e=Kv(),tf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var m;d!==n||o!==0&&d.nodeType!==3||(a=s+o),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=s),p===i&&++c===r&&(l=s),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(_c={focusedElem:e,selectionRange:n},Aa=!1,D=t;D!==null;)if(t=D,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,D=e;else for(;D!==null;){t=D;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var v=w.memoizedProps,S=w.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?v:Rt(t.type,v),S);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(b){we(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,D=e;break}D=t.return}return w=up,up=!1,w}function Ui(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Vc(t,n,i)}o=o.next}while(o!==r)}}function $l(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Qc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function W0(e){var t=e.alternate;t!==null&&(e.alternate=null,W0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Qt],delete t[os],delete t[Nc],delete t[Lw],delete t[Tw])),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 H0(e){return e.tag===5||e.tag===3||e.tag===4}function cp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||H0(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 Kc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Da));else if(r!==4&&(e=e.child,e!==null))for(Kc(e,t,n),e=e.sibling;e!==null;)Kc(e,t,n),e=e.sibling}function Gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gc(e,t,n),e=e.sibling;e!==null;)Gc(e,t,n),e=e.sibling}var je=null,Ot=!1;function Sn(e,t,n){for(n=n.child;n!==null;)V0(e,t,n),n=n.sibling}function V0(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:ze||go(n,t);case 6:var r=je,o=Ot;je=null,Sn(e,t,n),je=r,Ot=o,je!==null&&(Ot?(e=je,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):je.removeChild(n.stateNode));break;case 18:je!==null&&(Ot?(e=je,n=n.stateNode,e.nodeType===8?Eu(e.parentNode,n):e.nodeType===1&&Eu(e,n),Ji(e)):Eu(je,n.stateNode));break;case 4:r=je,o=Ot,je=n.stateNode.containerInfo,Ot=!0,Sn(e,t,n),je=r,Ot=o;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Vc(n,t,s),o=o.next}while(o!==r)}Sn(e,t,n);break;case 1:if(!ze&&(go(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){we(n,t,a)}Sn(e,t,n);break;case 21:Sn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,Sn(e,t,n),ze=r):Sn(e,t,n);break;default:Sn(e,t,n)}}function dp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Yw),t.forEach(function(r){var o=sS.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $t(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Jw(r/1960))-r,10e?16:e,Bn===null)var r=!1;else{if(e=Bn,Bn=null,Za=0,ne&6)throw Error(L(331));var o=ne;for(ne|=4,D=e.current;D!==null;){var i=D,s=i.child;if(D.flags&16){var a=i.deletions;if(a!==null){for(var l=0;lbe()-bf?Or(e,0):Sf|=n),ot(e,t)}function J0(e,t){t===0&&(e.mode&1?(t=zs,zs<<=1,!(zs&130023424)&&(zs=4194304)):t=1);var n=qe();e=hn(e,t),e!==null&&(Es(e,t,n),ot(e,n))}function iS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),J0(e,n)}function sS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),J0(e,n)}var eg;eg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||nt.current)tt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return tt=!1,Kw(e,t,n);tt=!!(e.flags&131072)}else tt=!1,he&&t.flags&1048576&&o0(t,Wa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Sa(e,t),e=t.pendingProps;var o=qo(t,Be.current);Po(t,n),o=mf(null,t,r,e,o,n);var i=vf();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rt(r)?(i=!0,Ua(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,cf(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ic(t,r,e,n),t=Uc(null,t,r,!0,i,n)):(t.tag=0,he&&i&&nf(t),Ke(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Sa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=lS(r),e=Rt(r,e),o){case 0:t=zc(null,t,r,e,n);break e;case 1:t=sp(null,t,r,e,n);break e;case 11:t=op(null,t,r,e,n);break e;case 14:t=ip(null,t,r,Rt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),zc(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),sp(e,t,r,o,n);case 3:e:{if(F0(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,c0(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jo(Error(L(423)),t),t=ap(e,t,r,n,o);break e}else if(r!==o){o=Jo(Error(L(424)),t),t=ap(e,t,r,n,o);break e}else for(ct=Qn(t.stateNode.containerInfo.firstChild),ft=t,he=!0,jt=null,n=l0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yo(),r===o){t=pn(e,t,n);break e}Ke(e,t,r,n)}t=t.child}return t;case 5:return d0(t),e===null&&Mc(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,Oc(r,o)?s=null:i!==null&&Oc(r,i)&&(t.flags|=32),A0(e,t),Ke(e,t,s,n),t.child;case 6:return e===null&&Mc(t),null;case 13:return I0(e,t,n);case 4:return df(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xo(t,null,r,n):Ke(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),op(e,t,r,o,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ue(Ha,r._currentValue),r._currentValue=s,i!==null)if(Mt(i.value,s)){if(i.children===o.children&&!nt.current){t=pn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){s=i.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=un(-1,n&-n),l.tag=2;var u=i.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}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),Ac(i.return,n,t),a.lanes|=n;break}l=l.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(L(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Ac(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Ke(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Po(t,n),o=Et(o),r=r(o),t.flags|=1,Ke(e,t,r,n),t.child;case 14:return r=t.type,o=Rt(r,t.pendingProps),o=Rt(r.type,o),ip(e,t,r,o,n);case 15:return T0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Rt(r,o),Sa(e,t),t.tag=1,rt(r)?(e=!0,Ua(t)):e=!1,Po(t,n),j0(t,r,o),Ic(t,r,o,n),Uc(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return M0(e,t,n)}throw Error(L(156,t.tag))};function tg(e,t){return Rv(e,t)}function aS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,n,r){return new aS(e,t,n,r)}function Pf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lS(e){if(typeof e=="function")return Pf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hd)return 11;if(e===Vd)return 14}return 2}function Yn(e,t){var n=e.alternate;return n===null?(n=St(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ca(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Pf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ao:return jr(n.children,o,i,t);case Wd:s=8,o|=8;break;case lc:return e=St(12,n,t,o|2),e.elementType=lc,e.lanes=i,e;case uc:return e=St(13,n,t,o),e.elementType=uc,e.lanes=i,e;case cc:return e=St(19,n,t,o),e.elementType=cc,e.lanes=i,e;case dv:return _l(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uv:s=10;break e;case cv:s=9;break e;case Hd:s=11;break e;case Vd:s=14;break e;case $n:s=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=St(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function jr(e,t,n,r){return e=St(7,e,r,t),e.lanes=n,e}function _l(e,t,n,r){return e=St(22,e,r,t),e.elementType=dv,e.lanes=n,e.stateNode={isHidden:!1},e}function ju(e,t,n){return e=St(6,e,null,t),e.lanes=n,e}function Nu(e,t,n){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uS(e,t,n,r,o){this.tag=t,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=fu(0),this.expirationTimes=fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $f(e,t,n,r,o,i,s,a,l){return e=new uS(e,t,n,a,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=St(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cf(i),e}function cS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ig)}catch(e){console.error(e)}}ig(),iv.exports=mt;var Qr=iv.exports;const sg=Ss(Qr);var xp=Qr;sc.createRoot=xp.createRoot,sc.hydrateRoot=xp.hydrateRoot;const wp="pushstate",Sp="popstate",ag="beforeunload",lg=e=>(e.preventDefault(),e.returnValue=""),mS=()=>{removeEventListener(ag,lg,{capture:!0})};function ug(e){let t=e.getLocation();const n=new Set;let r=[];const o=()=>{t=e.getLocation(),n.forEach(s=>s())},i=async(s,a)=>{var l;if(!((a==null?void 0:a.ignoreBlocker)??!1)&&typeof document<"u"&&r.length){for(const c of r)if(!await c()){(l=e.onBlocked)==null||l.call(e,o);return}}s()};return{get location(){return t},subscribers:n,subscribe:s=>(n.add(s),()=>{n.delete(s)}),push:(s,a,l)=>{a=Hi(a),i(()=>{e.pushState(s,a),o()},l)},replace:(s,a,l)=>{a=Hi(a),i(()=>{e.replaceState(s,a),o()},l)},go:(s,a)=>{i(()=>{e.go(s),o()},a)},back:s=>{i(()=>{e.back(),o()},s)},forward:s=>{i(()=>{e.forward(),o()},s)},createHref:s=>e.createHref(s),block:s=>(r.push(s),r.length===1&&addEventListener(ag,lg,{capture:!0}),()=>{r=r.filter(a=>a!==s),r.length||mS()}),flush:()=>{var s;return(s=e.flush)==null?void 0:s.call(e)},destroy:()=>{var s;return(s=e.destroy)==null?void 0:s.call(e)},notify:o}}function Hi(e){return e||(e={}),{...e,key:cg()}}function vS(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,r=t.history.replaceState,o=v=>v,i=()=>Jc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);let s=i(),a;const l=()=>s;let u,c;const d=()=>{if(!u)return;(u.isPush?n:r).call(t.history,u.state,"",u.href),u=void 0,c=void 0,a=void 0},p=(v,S,g)=>{const y=o(S);c||(a=s),s=Jc(S,g),u={href:y,state:g,isPush:(u==null?void 0:u.isPush)||v==="push"},c||(c=Promise.resolve().then(()=>d()))},m=()=>{s=i(),w.notify()},w=ug({getLocation:l,pushState:(v,S)=>p("push",v,S),replaceState:(v,S)=>p("replace",v,S),back:()=>t.history.back(),forward:()=>t.history.forward(),go:v=>t.history.go(v),createHref:v=>o(v),flush:d,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(wp,m),t.removeEventListener(Sp,m)},onBlocked:v=>{a&&s!==a&&(s=a,v())}});return t.addEventListener(wp,m),t.addEventListener(Sp,m),t.history.pushState=function(...v){const S=n.apply(t.history,v);return m(),S},t.history.replaceState=function(...v){const S=r.apply(t.history,v);return m(),S},w}function gS(e={initialEntries:["/"]}){const t=e.initialEntries;let n=e.initialIndex??t.length-1,r={key:cg()};return ug({getLocation:()=>Jc(t[n],r),pushState:(i,s)=>{r=s,t.splice,n{r=s,t[n]=i},back:()=>{r=Hi(r),n=Math.max(n-1,0)},forward:()=>{r=Hi(r),n=Math.min(n+1,t.length-1)},go:i=>{r=Hi(r),n=Math.min(Math.max(n+i,0),t.length-1)},createHref:i=>i})}function Jc(e,t){const n=e.indexOf("#"),r=e.indexOf("?");return{href:e,pathname:e.substring(0,n>0?r>0?Math.min(n,r):n:r>0?r:e.length),hash:n>-1?e.substring(n):"",search:r>-1?e.slice(r,n===-1?void 0:n):"",state:t||{}}}function cg(){return(Math.random()+1).toString(36).substring(7)}var yS="Invariant failed";function Ge(e,t){if(!e)throw new Error(yS)}const Lu=h.createContext(null);function dg(){return typeof document>"u"?Lu:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Lu,Lu)}function kt(e){const t=h.useContext(dg());return e==null||e.warn,t}var fg={exports:{}},hg={},pg={exports:{}},mg={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -46,7 +46,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var ti=h;function xS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:xS,SS=ti.useState,bS=ti.useEffect,ES=ti.useLayoutEffect,CS=ti.useDebugValue;function kS(e,t){var n=t(),r=SS({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ES(function(){o.value=n,o.getSnapshot=t,Tu(o)&&i({inst:o})},[e,n,t]),bS(function(){return Tu(o)&&i({inst:o}),e(function(){Tu(o)&&i({inst:o})})},[e]),CS(n),n}function Tu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function PS(e,t){return t()}var $S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PS:kS;vg.useSyncExternalStore=ti.useSyncExternalStore!==void 0?ti.useSyncExternalStore:$S;mg.exports=vg;var RS=mg.exports;/** + */var ti=h;function xS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var wS=typeof Object.is=="function"?Object.is:xS,SS=ti.useState,bS=ti.useEffect,ES=ti.useLayoutEffect,CS=ti.useDebugValue;function kS(e,t){var n=t(),r=SS({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ES(function(){o.value=n,o.getSnapshot=t,Tu(o)&&i({inst:o})},[e,n,t]),bS(function(){return Tu(o)&&i({inst:o}),e(function(){Tu(o)&&i({inst:o})})},[e]),CS(n),n}function Tu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wS(e,n)}catch{return!0}}function PS(e,t){return t()}var $S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?PS:kS;mg.useSyncExternalStore=ti.useSyncExternalStore!==void 0?ti.useSyncExternalStore:$S;pg.exports=mg;var RS=pg.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -54,7 +54,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Tl=h,_S=RS;function OS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jS=typeof Object.is=="function"?Object.is:OS,NS=_S.useSyncExternalStore,LS=Tl.useRef,TS=Tl.useEffect,MS=Tl.useMemo,AS=Tl.useDebugValue;pg.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=LS(null);if(i.current===null){var s={hasValue:!1,value:null};i.current=s}else s=i.current;i=MS(function(){function l(m){if(!u){if(u=!0,c=m,m=r(m),o!==void 0&&s.hasValue){var w=s.value;if(o(w,m))return d=w}return d=m}if(w=d,jS(c,m))return w;var v=r(m);return o!==void 0&&o(w,v)?w:(c=m,d=v)}var u=!1,c,d,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var a=NS(e,i[0],i[1]);return TS(function(){s.hasValue=!0,s.value=a},[a]),AS(a),a};hg.exports=pg;var FS=hg.exports;class IS{constructor(t,n){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=r=>{var o,i;this.listeners.add(r);const s=(i=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:i.call(o,r,this);return()=>{this.listeners.delete(r),s==null||s()}},this.setState=r=>{var o,i,s;const a=this.state;this.state=(o=this.options)!=null&&o.updateFn?this.options.updateFn(a)(r):r(a),(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),this._flush()},this._flush=()=>{if(this._batching)return;const r=++this._flushing;this.listeners.forEach(o=>{this._flushing===r&&o()})},this.batch=r=>{if(this._batching)return r();this._batching=!0,r(),this._batching=!1,this._flush()},this.state=t,this.options=n}}function DS(e,t=n=>n){return FS.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,zS)}function zS(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r{t.substring(0,1)==="?"&&(t=t.substring(1));const n=BS(t);for(const r in n){const o=n[r];if(typeof o=="string")try{n[r]=e(o)}catch{}}return n}}function QS(e,t){function n(r){if(typeof r=="object"&&r!==null)try{return e(r)}catch{}else if(typeof r=="string"&&typeof t=="function")try{return t(r),e(r)}catch{}return r}return r=>{r={...r},Object.keys(r).forEach(i=>{const s=r[i];typeof s>"u"||s===void 0?delete r[i]:r[i]=n(s)});const o=US(r).toString();return o?`?${o}`:""}}function tl(e){return e[e.length-1]}function KS(e){return typeof e=="function"}function xo(e,t){return KS(e)?e(t):e}function Vi(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Dt(e,t){if(e===t)return e;const n=t,r=kp(e)&&kp(n);if(r||nl(e)&&nl(n)){const o=r?e:Object.keys(e),i=o.length,s=r?n:Object.keys(n),a=s.length,l=r?[]:{};let u=0;for(let c=0;c"u")return!0;const n=t.prototype;return!(!Cp(n)||!n.hasOwnProperty("isPrototypeOf"))}function Cp(e){return Object.prototype.toString.call(e)==="[object Object]"}function kp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ro(e,t,n=!1){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(nl(e)&&nl(t)){const r=Object.keys(e).filter(i=>e[i]!==void 0),o=Object.keys(t).filter(i=>t[i]!==void 0);return!n&&r.length!==o.length?!1:!o.some(i=>!(i in e)||!Ro(e[i],t[i],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((r,o)=>!Ro(r,t[o],n)):!1}const Mu=typeof window<"u"?h.useLayoutEffect:h.useEffect;function oo(e){let t,n;const r=new Promise((o,i)=>{t=o,n=i});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,t(o),e==null||e(o)},r.reject=o=>{r.status="rejected",n(o)},r}function Pp(e){const t=h.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function Xn(e){return Ml(e.filter(Boolean).join("/"))}function Ml(e){return e.replace(/\/{2,}/g,"/")}function jf(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function br(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function ed(e){return br(jf(e))}function rl(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function GS(e,t,n){return rl(e,n)===rl(t,n)}function qS({basepath:e,base:t,to:n,trailingSlash:r="never"}){var o,i;t=t.replace(new RegExp(`^${e}`),"/"),n=n.replace(new RegExp(`^${e}`),"/");let s=ni(t);const a=ni(n);s.length>1&&((o=tl(s))==null?void 0:o.value)==="/"&&s.pop(),a.forEach((u,c)=>{u.value==="/"?c?c===a.length-1&&s.push(u):s=[u]:u.value===".."?s.pop():u.value==="."||s.push(u)}),s.length>1&&(((i=tl(s))==null?void 0:i.value)==="/"?r==="never"&&s.pop():r==="always"&&s.push({type:"pathname",value:"/"}));const l=Xn([e,...s.map(u=>u.value)]);return Ml(l)}function ni(e){if(!e)return[];e=Ml(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r==="$"||r==="*"?{type:"wildcard",value:r}:r.charAt(0)==="$"?{type:"param",value:r}:{type:"pathname",value:decodeURIComponent(r)})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Au({path:e,params:t,leaveWildcards:n,leaveParams:r}){const o=ni(e),i={};for(const[s,a]of Object.entries(t)){const l=typeof a=="string";["*","_splat"].includes(s)?i[s]=l?encodeURI(a):a:i[s]=l?encodeURIComponent(a):a}return Xn(o.map(s=>{if(s.type==="wildcard"){const a=i._splat;return n?`${s.value}${a??""}`:a}if(s.type==="param"){if(r){const a=i[s.value];return`${s.value}${a??""}`}return i[s.value.substring(1)]??"undefined"}return s.value}))}function Zs(e,t,n){const r=YS(e,t,n);if(!(n.to&&!r))return r??{}}function $p(e,t){switch(!0){case e==="/":return t;case t===e:return"";case t.length{for(let l=0;l=o.length-1,p=l>=i.length-1;if(c){if(c.type==="wildcard"){if(u!=null&&u.value){const m=decodeURI(Xn(o.slice(l).map(w=>w.value)));return s["*"]=m,s._splat=m,!0}return!1}if(c.type==="pathname"){if(c.value==="/"&&!(u!=null&&u.value))return!0;if(u){if(n.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)!=="$"&&(s[c.value.substring(1)]=decodeURIComponent(u.value))}}if(!d&&p)return s["**"]=Xn(o.slice(l+1).map(m=>m.value)),!!n.fuzzy&&(c==null?void 0:c.value)!=="/"}return!0})()?s:void 0}function vr(e){return!!(e!=null&&e.isRedirect)}function Rp(e){return!!(e!=null&&e.isRedirect)&&e.href}function Nf(e){const t=e.errorComponent??Al;return f.jsx(XS,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?h.createElement(t,{error:n,reset:r}):e.children})}class XS extends h.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Al({error:e}){const[t,n]=h.useState(!1);return f.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[f.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),f.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(r=>!r),children:t?"Hide Error":"Show Error"})]}),f.jsx("div",{style:{height:".25rem"}}),t?f.jsx("div",{children:f.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?f.jsx("code",{children:e.message}):null})}):null]})}function Le(e){const t=kt({warn:(e==null?void 0:e.router)===void 0});return DS(((e==null?void 0:e.router)||t).__store,e==null?void 0:e.select)}function Ut(e){return!!(e!=null&&e.isNotFound)}function ZS(e){const t=Le({select:n=>`not-found-${n.location.pathname}-${n.status}`});return f.jsx(Nf,{getResetKey:()=>t,onCatch:(n,r)=>{var o;if(Ut(n))(o=e.onCatch)==null||o.call(e,n,r);else throw n},errorComponent:({error:n})=>{var r;return(r=e.fallback)==null?void 0:r.call(e,n)},children:e.children})}function JS(){return f.jsx("p",{children:"Not Found"})}const eb=["component","errorComponent","pendingComponent","notFoundComponent"];function tb(e){return new nb(e)}class nb{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.subscribers=new Set,this.startReactTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info.");const r=this.options;this.options={...this.options,...n},this.isServer=this.options.isServer??typeof document>"u",(!this.basepath||n.basepath&&n.basepath!==r.basepath)&&(n.basepath===void 0||n.basepath===""||n.basepath==="/"?this.basepath="/":this.basepath=`/${ed(n.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?gS({initialEntries:[this.basepath||"/"]}):vS()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new IS(ib(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(o=>!["redirected"].includes(o.status))}}}))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999}),this.routesById[n.id]=n);const r=s=>{s.forEach((a,l)=>{a.init({originalIndex:l});const u=this.routesById[a.id];if(Ge(!u,`Duplicate routes found with id: ${String(a.id)}`),this.routesById[a.id]=a,!a.isRoot&&a.path){const d=br(a.fullPath);(!this.routesByPath[d]||a.fullPath.endsWith("/"))&&(this.routesByPath[d]=a)}const c=a.children;c!=null&&c.length&&r(c)})};r([this.routeTree]);const o=[];Object.values(this.routesById).forEach((s,a)=>{var l;if(s.isRoot||!s.path)return;const u=jf(s.fullPath),c=ni(u);for(;c.length>1&&((l=c[0])==null?void 0:l.value)==="/";)c.shift();const d=c.map(p=>p.value==="/"?.75:p.type==="param"?.5:p.type==="wildcard"?.25:1);o.push({child:s,trimmed:u,parsed:c,index:a,scores:d})}),this.flatRoutes=o.sort((s,a)=>{const l=Math.min(s.scores.length,a.scores.length);for(let u=0;ua.parsed[u].value?1:-1;return s.index-a.index}).map((s,a)=>(s.child.rank=a,s.child))},this.subscribe=(n,r)=>{const o={eventType:n,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=n=>{this.subscribers.forEach(r=>{r.eventType===n.type&&r.fn(n)})},this.parseLocation=n=>{const r=({pathname:a,search:l,hash:u,state:c})=>{const d=this.options.parseSearch(l),p=this.options.stringifySearch(d);return{pathname:a,searchStr:p,search:Dt(n==null?void 0:n.search,d),hash:u.split("#").reverse()[0]??"",href:`${a}${p}${u}`,state:Dt(n==null?void 0:n.state,c)}},o=r(this.history.location),{__tempLocation:i,__tempKey:s}=o.state;if(i&&(!s||s===this.tempLocationKey)){const a=r(i);return a.state.key=o.state.key,delete a.state.__tempLocation,{...a,maskedLocation:o}}return o},this.resolvePathWithBase=(n,r)=>qS({basepath:this.basepath,base:n,to:Ml(r),trailingSlash:this.options.trailingSlash}),this.matchRoutes=(n,r,o)=>{let i={};const s=this.flatRoutes.find(m=>{const w=Zs(this.basepath,br(n),{to:m.fullPath,caseSensitive:m.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});return w?(i=w,!0):!1});let a=s||this.routesById[De];const l=[a];let u=!1;for((s?s.path!=="/"&&i["**"]:br(n))&&(this.options.notFoundRoute?l.push(this.options.notFoundRoute):u=!0);a.parentRoute;)a=a.parentRoute,l.unshift(a);const c=(()=>{if(u){if(this.options.notFoundMode!=="root")for(let m=l.length-1;m>=0;m--){const w=l[m];if(w.children)return w.id}return De}})(),d=l.map(m=>{var w;let v;const S=((w=m.options.params)==null?void 0:w.parse)??m.options.parseParams;if(S)try{const g=S(i);Object.assign(i,g)}catch(g){if(v=new ob(g.message,{cause:g}),o!=null&&o.throwOnError)throw v;return v}}),p=[];return l.forEach((m,w)=>{var v,S,g,y,x,b,C,$,P,E;const O=p[w-1],[j,F]=(()=>{const N=(O==null?void 0:O.search)??r;try{const T=typeof m.options.validateSearch=="object"?m.options.validateSearch.parse:m.options.validateSearch,W=(T==null?void 0:T(N))??{};return[{...N,...W},void 0]}catch(T){const W=new rb(T.message,{cause:T});if(o!=null&&o.throwOnError)throw W;return[N,W]}})(),M=((S=(v=m.options).loaderDeps)==null?void 0:S.call(v,{search:j}))??"",z=M?JSON.stringify(M):"",B=Au({path:m.fullPath,params:i}),Q=Au({path:m.id,params:i,leaveWildcards:!0})+z,U=this.getMatch(Q),K=this.state.matches.find(N=>N.id===Q)?"stay":"enter";let R;if(U)R={...U,cause:K,params:i};else{const N=m.options.loader||m.options.beforeLoad||m.lazyFn?"pending":"success";R={id:Q,index:w,routeId:m.id,params:i,pathname:Xn([this.basepath,B]),updatedAt:Date.now(),search:{},searchError:void 0,status:N,isFetching:!1,error:void 0,paramsError:d[w],routeContext:void 0,context:void 0,abortController:new AbortController,fetchCount:0,cause:K,loaderDeps:M,invalid:!1,preload:!1,links:(y=(g=m.options).links)==null?void 0:y.call(g),scripts:(b=(x=m.options).scripts)==null?void 0:b.call(x),staticData:m.options.staticData||{},loadPromise:oo()}}R.status==="success"&&(R.meta=($=(C=m.options).meta)==null?void 0:$.call(C,{matches:p,match:R,params:R.params,loaderData:R.loaderData}),R.headers=(E=(P=m.options).headers)==null?void 0:E.call(P,{loaderData:R.loaderData})),o!=null&&o.preload||(R.globalNotFound=c===m.id),R.search=Dt(R.search,j),R.searchError=F,p.push(R)}),p},this.cancelMatch=n=>{const r=this.getMatch(n);r&&(r.abortController.abort(),clearTimeout(r.pendingTimeout))},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(r=>{this.cancelMatch(r.id)})},this.buildLocation=n=>{const r=(i={},s)=>{var a,l,u;const c=i._fromLocation!=null?this.matchRoutes(i._fromLocation.pathname,i.fromSearch||i._fromLocation.search):this.state.matches,d=i.from!=null?c.find(z=>Zs(this.basepath,br(z.pathname),{to:i.from,caseSensitive:!1,fuzzy:!1})):void 0,p=(d==null?void 0:d.pathname)||this.latestLocation.pathname;Ge(i.from==null||d!=null,"Could not find match for from: "+i.from);const m=((a=tl(c))==null?void 0:a.search)||this.latestLocation.search,w=s==null?void 0:s.filter(z=>c.find(B=>B.routeId===z.routeId)),v=this.routesById[(l=w==null?void 0:w.find(z=>z.pathname===p))==null?void 0:l.routeId];let S=i.to?this.resolvePathWithBase(p,`${i.to}`):this.resolvePathWithBase(p,(v==null?void 0:v.to)??p);const g={...(u=tl(c))==null?void 0:u.params};let y=(i.params??!0)===!0?g:{...g,...xo(i.params,g)};Object.keys(y).length>0&&(s==null||s.map(z=>{var B;const Q=this.looseRoutesById[z.routeId];return((B=Q==null?void 0:Q.options.params)==null?void 0:B.stringify)??Q.options.stringifyParams}).filter(Boolean).forEach(z=>{y={...y,...z(y)}})),S=Au({path:S,params:y??{},leaveWildcards:!1,leaveParams:n.leaveParams});const x=(w==null?void 0:w.map(z=>this.looseRoutesById[z.routeId].options.preSearchFilters??[]).flat().filter(Boolean))??[],b=(w==null?void 0:w.map(z=>this.looseRoutesById[z.routeId].options.postSearchFilters??[]).flat().filter(Boolean))??[],C=x.length?x.reduce((z,B)=>B(z),m):m,$=i.search===!0?C:i.search?xo(i.search,C):x.length?C:{},P=b.length?b.reduce((z,B)=>B(z),$):$,E=Dt(m,P),O=this.options.stringifySearch(E),j=i.hash===!0?this.latestLocation.hash:i.hash?xo(i.hash,this.latestLocation.hash):void 0,F=j?`#${j}`:"";let M=i.state===!0?this.latestLocation.state:i.state?xo(i.state,this.latestLocation.state):{};return M=Dt(this.latestLocation.state,M),{pathname:S,search:E,searchStr:O,state:M,hash:j??"",href:`${S}${O}${F}`,unmaskOnReload:i.unmaskOnReload}},o=(i={},s)=>{var a;const l=r(i);let u=s?r(s):void 0;if(!u){let w={};const v=(a=this.options.routeMasks)==null?void 0:a.find(S=>{const g=Zs(this.basepath,l.pathname,{to:S.from,caseSensitive:!1,fuzzy:!1});return g?(w=g,!0):!1});if(v){const{from:S,...g}=v;s={...Vi(n,["from"]),...g,params:w},u=r(s)}}const c=this.matchRoutes(l.pathname,l.search),d=u?this.matchRoutes(u.pathname,u.search):void 0,p=u?r(s,d):void 0,m=r(i,c);return p&&(m.maskedLocation=p),m};return n.mask?o(n,{...Vi(n,["from"]),...n.mask}):o(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:r,...o})=>{const i=()=>{o.state.key=this.latestLocation.state.key;const l=Ro(o.state,this.latestLocation.state);return delete o.state.key,l},s=this.latestLocation.href===o.href,a=this.commitLocationPromise;if(this.commitLocationPromise=oo(()=>{a==null||a.resolve()}),s&&i())this.load();else{let{maskedLocation:l,...u}=o;l&&(u={...l,state:{...l.state,__tempKey:void 0,__tempLocation:{...u,search:u.searchStr,state:{...u.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(u.unmaskOnReload??this.options.unmaskOnReload??!1)&&(u.state.__tempKey=this.tempLocationKey)),this.shouldViewTransition=n,this.history[o.replace?"replace":"push"](u.href,u.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:r,viewTransition:o,ignoreBlocker:i,...s}={})=>{const a=this.buildLocation(s);return this.commitLocation({...a,viewTransition:o,replace:n,resetScroll:r,ignoreBlocker:i})},this.navigate=({from:n,to:r,__isRedirect:o,...i})=>{const s=String(r);let a;try{new URL(`${s}`),a=!0}catch{}return Ge(!a),this.buildAndCommitLocation({...i,from:n,to:r})},this.load=async()=>{this.latestLocation=this.parseLocation(this.latestLocation),this.__store.setState(i=>({...i,loadedAt:Date.now()}));let n,r;const o=new Promise(i=>{this.startReactTransition(async()=>{var s;try{const a=this.latestLocation,l=this.state.resolvedLocation,u=l.href!==a.href;this.cancelMatches();let c;this.__store.batch(()=>{c=this.matchRoutes(a.pathname,a.search),this.__store.setState(d=>({...d,status:"pending",isLoading:!0,location:a,pendingMatches:c,cachedMatches:d.cachedMatches.filter(p=>!c.find(m=>m.id===p.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:l,toLocation:a,pathChanged:u}),this.emit({type:"onBeforeLoad",fromLocation:l,toLocation:a,pathChanged:u}),await this.loadMatches({matches:c,location:a,onReady:async()=>{this.startViewTransition(async()=>{let d,p,m;this.__store.batch(()=>{this.__store.setState(w=>{const v=w.matches,S=w.pendingMatches||w.matches;return d=v.filter(g=>!S.find(y=>y.id===g.id)),p=S.filter(g=>!v.find(y=>y.id===g.id)),m=v.filter(g=>S.find(y=>y.id===g.id)),{...w,isLoading:!1,matches:S,pendingMatches:void 0,cachedMatches:[...w.cachedMatches,...d.filter(g=>g.status!=="error")]}}),this.cleanCache()}),[[d,"onLeave"],[p,"onEnter"],[m,"onStay"]].forEach(([w,v])=>{w.forEach(S=>{var g,y;(y=(g=this.looseRoutesById[S.routeId].options)[v])==null||y.call(g,S)})})})}})}catch(a){Rp(a)?(n=a,this.isServer||this.navigate({...a,replace:!0,__isRedirect:!0})):Ut(a)&&(r=a),this.__store.setState(l=>({...l,statusCode:n?n.statusCode:r?404:l.matches.some(u=>u.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===o&&((s=this.commitLocationPromise)==null||s.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),i()})});for(this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise},this.startViewTransition=n=>{var r,o;const i=this.shouldViewTransition??this.options.defaultViewTransition;delete this.shouldViewTransition,(o=(r=i&&typeof document<"u"?document:void 0)==null?void 0:r.startViewTransition)!=null&&o.call(r,n)||n()},this.updateMatch=(n,r)=>{var o;let i;const s=(o=this.state.pendingMatches)==null?void 0:o.find(u=>u.id===n),a=this.state.matches.find(u=>u.id===n),l=s?"pendingMatches":a?"matches":"cachedMatches";return this.__store.setState(u=>{var c;return{...u,[l]:(c=u[l])==null?void 0:c.map(d=>d.id===n?i=r(d):d)}}),i},this.getMatch=n=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(r=>r.id===n),this.loadMatches=async({location:n,matches:r,preload:o,onReady:i,updateMatch:s=this.updateMatch})=>{let a,l=!1;const u=async()=>{l||(l=!0,await(i==null?void 0:i()))};!this.isServer&&!this.state.matches.length&&u();const c=(d,p)=>{var m,w,v;if(Rp(p))throw p;if(vr(p)||Ut(p)){if(s(d.id,S=>({...S,status:vr(p)?"redirected":Ut(p)?"notFound":"error",isFetching:!1,error:p,beforeLoadPromise:void 0,loaderPromise:void 0})),p.routeId||(p.routeId=d.routeId),(m=d.beforeLoadPromise)==null||m.resolve(),(w=d.loaderPromise)==null||w.resolve(),(v=d.loadPromise)==null||v.resolve(),vr(p))throw l=!0,p=this.resolveRedirect({...p,_fromLocation:n}),p;if(Ut(p))throw this._handleNotFound(r,p,{updateMatch:s}),p}};try{await new Promise((d,p)=>{(async()=>{var m,w,v;try{const S=(x,b,C)=>{var $,P;const{id:E,routeId:O}=r[x],j=this.looseRoutesById[O];if(b instanceof Promise)throw b;b.routerCode=C,a=a??x,c(this.getMatch(E),b);try{(P=($=j.options).onError)==null||P.call($,b)}catch(F){b=F,c(this.getMatch(E),b)}s(E,F=>{var M;return(M=F.beforeLoadPromise)==null||M.resolve(),{...F,error:b,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[x,{id:b,routeId:C}]of r.entries()){const $=this.getMatch(b);if($.beforeLoadPromise||$.loaderPromise)await $.beforeLoadPromise;else{try{s(b,A=>({...A,loadPromise:oo(()=>{var V;(V=A.loadPromise)==null||V.resolve()}),beforeLoadPromise:oo()}));const P=this.looseRoutesById[C],E=new AbortController,O=(m=r[x-1])==null?void 0:m.id,j=()=>O?this.getMatch(O).context??this.options.context??{}:this.options.context??{},F=P.options.pendingMs??this.options.defaultPendingMs,M=!!(i&&!this.isServer&&!o&&(P.options.loader||P.options.beforeLoad)&&typeof F=="number"&&F!==1/0&&(P.options.pendingComponent??this.options.defaultPendingComponent));let z;M&&(z=setTimeout(()=>{try{u()}catch{}},F));const{paramsError:B,searchError:Q}=this.getMatch(b);B&&S(x,B,"PARSE_PARAMS"),Q&&S(x,Q,"VALIDATE_SEARCH");const U=j();s(b,A=>({...A,isFetching:"beforeLoad",fetchCount:A.fetchCount+1,routeContext:Dt(A.routeContext,U),context:Dt(A.context,U),abortController:E,pendingTimeout:z}));const{search:K,params:R,routeContext:N,cause:T}=this.getMatch(b),W={search:K,abortController:E,params:R,preload:!!o,context:N,location:n,navigate:A=>this.navigate({...A,_fromLocation:n}),buildLocation:this.buildLocation,cause:o?"preload":T},_=await((v=(w=P.options).beforeLoad)==null?void 0:v.call(w,W))??{};(vr(_)||Ut(_))&&S(x,_,"BEFORE_LOAD"),s(b,A=>{const V={...A.routeContext,..._};return{...A,routeContext:Dt(A.routeContext,V),context:Dt(A.context,V),abortController:E}})}catch(P){S(x,P,"BEFORE_LOAD")}s(b,P=>{var E;return(E=P.beforeLoadPromise)==null||E.resolve(),{...P,beforeLoadPromise:void 0,isFetching:!1}})}}const g=r.slice(0,a),y=[];g.forEach(({id:x,routeId:b},C)=>{y.push((async()=>{const{loaderPromise:$}=this.getMatch(x);if($)await $;else{const P=y[C-1],E=this.looseRoutesById[b],O=()=>{const{params:N,loaderDeps:T,abortController:W,context:_,cause:A}=this.getMatch(x);return{params:N,deps:T,preload:!!o,parentMatchPromise:P,abortController:W,context:_,location:n,navigate:V=>this.navigate({...V,_fromLocation:n}),cause:o?"preload":A,route:E}},j=Date.now()-this.getMatch(x).updatedAt,F=o?E.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:E.options.staleTime??this.options.defaultStaleTime??0,M=E.options.shouldReload,z=typeof M=="function"?M(O()):M;s(x,N=>({...N,loaderPromise:oo(),preload:!!o&&!this.state.matches.find(T=>T.id===x)}));const B=async()=>{var N,T,W,_,A,V,H,q;try{const J=async()=>{const se=this.getMatch(x);se.minPendingPromise&&await se.minPendingPromise};try{E._lazyPromise=E._lazyPromise||(E.lazyFn?E.lazyFn().then(ae=>{Object.assign(E.options,ae.options)}):Promise.resolve());const se=this.getMatch(x).componentsPromise||E._lazyPromise.then(()=>Promise.all(eb.map(async ae=>{const st=E.options[ae];st!=null&&st.preload&&await st.preload()})));s(x,ae=>({...ae,isFetching:"loader",componentsPromise:se})),await E._lazyPromise;let pe=await((T=(N=E.options).loader)==null?void 0:T.call(N,O()));this.serializeLoaderData&&(pe=this.serializeLoaderData(pe,{router:this,match:this.getMatch(x)})),c(this.getMatch(x),pe),await J();const Oe=(_=(W=E.options).meta)==null?void 0:_.call(W,{matches:r,match:this.getMatch(x),params:this.getMatch(x).params,loaderData:pe}),me=(V=(A=E.options).headers)==null?void 0:V.call(A,{loaderData:pe});s(x,ae=>({...ae,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:pe,meta:Oe,headers:me}))}catch(se){let pe=se;await J(),c(this.getMatch(x),se);try{(q=(H=E.options).onError)==null||q.call(H,se)}catch(Oe){pe=Oe,c(this.getMatch(x),Oe)}s(x,Oe=>({...Oe,error:pe,status:"error",isFetching:!1}))}await this.getMatch(x).componentsPromise}catch(J){c(this.getMatch(x),J)}},{status:Q,invalid:U}=this.getMatch(x);Q==="success"&&(U||(z??j>F))?(async()=>{try{await B()}catch{}})():Q!=="success"&&await B();const{loaderPromise:K,loadPromise:R}=this.getMatch(x);K==null||K.resolve(),R==null||R.resolve()}s(x,P=>({...P,isFetching:!1,loaderPromise:void 0}))})())}),await Promise.all(y),d()}catch(S){p(S)}})()}),await u()}catch(d){if(vr(d)||Ut(d))throw Ut(d)&&!o&&await u(),d}return r},this.invalidate=()=>{const n=r=>({...r,invalid:!0,...r.status==="error"?{status:"pending",error:void 0}:{}});return this.__store.setState(r=>{var o;return{...r,matches:r.matches.map(n),cachedMatches:r.cachedMatches.map(n),pendingMatches:(o=r.pendingMatches)==null?void 0:o.map(n)}}),this.load()},this.resolveRedirect=n=>{const r=n;return r.href||(r.href=this.buildLocation(r).href),r},this.cleanCache=()=>{this.__store.setState(n=>({...n,cachedMatches:n.cachedMatches.filter(r=>{const o=this.looseRoutesById[r.routeId];if(!o.options.loader)return!1;const i=(r.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return r.status!=="error"&&Date.now()-r.updatedAt{const r=this.buildLocation(n);let o=this.matchRoutes(r.pathname,r.search,{throwOnError:!0,preload:!0});const i=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches].map(a=>[a.id,!0]));this.__store.batch(()=>{o.forEach(a=>{i[a.id]||this.__store.setState(l=>({...l,cachedMatches:[...l.cachedMatches,a]}))})});const s=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(a=>a.id));try{return o=await this.loadMatches({matches:o,location:r,preload:!0,updateMatch:(a,l)=>{s.has(a)?o=o.map(u=>u.id===a?l(u):u):this.updateMatch(a,l)}}),o}catch(a){if(vr(a))return await this.preloadRoute({...a,_fromLocation:r});console.error(a);return}},this.matchRoute=(n,r)=>{const o={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},i=this.buildLocation(o);if(r!=null&&r.pending&&this.state.status!=="pending")return!1;const a=((r==null?void 0:r.pending)===void 0?!this.state.isLoading:r.pending)?this.latestLocation:this.state.resolvedLocation,l=Zs(this.basepath,a.pathname,{...r,to:i.pathname});return!l||n.params&&!Ro(l,n.params,!0)?!1:l&&((r==null?void 0:r.includeSearch)??!0)?Ro(a.search,i.search,!0)?l:!1:l},this.dehydrate=()=>{var n;const r=((n=this.options.errorSerializer)==null?void 0:n.serialize)??sb;return{state:{dehydratedMatches:this.state.matches.map(o=>({...Vi(o,["id","status","updatedAt"]),error:o.error?{data:r(o.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=()=>{var n,r,o;let i;typeof document<"u"&&(i=this.options.transformer.parse((n=window.__TSR__)==null?void 0:n.dehydrated)),Ge(i),this.dehydratedData=i.payload,(o=(r=this.options).hydrate)==null||o.call(r,i.payload);const s=i.router.state,a=this.matchRoutes(this.state.location.pathname,this.state.location.search).map(l=>{const u=s.dehydratedMatches.find(c=>c.id===l.id);return Ge(u,`Could not find a client-side match for dehydrated match with id: ${l.id}!`),{...l,...u}});this.__store.setState(l=>({...l,matches:a})),this.manifest=i.router.manifest},this.injectedHtml=[],this.injectHtml=n=>{const r=()=>(this.injectedHtml=this.injectedHtml.filter(o=>o!==r),n);this.injectedHtml.push(r)},this.streamedKeys=new Set,this.getStreamedValue=n=>{var r;if(this.isServer)return;const o=(r=window.__TSR__)==null?void 0:r.streamedValues[n];if(o)return o.parsed||(o.parsed=this.options.transformer.parse(o.value)),o.parsed},this.streamValue=(n,r)=>{var o;this.streamedKeys.has(n),this.streamedKeys.add(n);const i=`__TSR__.streamedValues['${n}'] = { value: ${(o=this.serializer)==null?void 0:o.call(this,this.options.transformer.stringify(r))}}`;this.injectHtml(` - + +
diff --git a/web-ui/index.html b/web-ui/index.html index 16b96c2..ddd6777 100644 --- a/web-ui/index.html +++ b/web-ui/index.html @@ -2,7 +2,7 @@ - + ODDBOX diff --git a/web-ui/src/components/header/header.tsx b/web-ui/src/components/header/header.tsx index 0956097..e6b7ae5 100644 --- a/web-ui/src/components/header/header.tsx +++ b/web-ui/src/components/header/header.tsx @@ -11,7 +11,7 @@ const Header = () => {
{isBigScreen && ( - + )} {!isBigScreen && ( @@ -30,7 +30,7 @@ const Header = () => { target="_blank" href="https://github.com/OlofBlomqvist/odd-box" > - +
diff --git a/web-ui/src/generated-api.ts b/web-ui/src/generated-api.ts index 73ee3b7..f1015d3 100644 --- a/web-ui/src/generated-api.ts +++ b/web-ui/src/generated-api.ts @@ -117,6 +117,11 @@ export interface InProcessSiteConfig { dir?: string | null; /** This is mostly useful in case the target uses SNI sniffing/routing */ disable_tcp_tunnel_mode?: boolean | null; + /** + * If you want to use lets-encrypt for generating certificates automatically for this site. + * Defaults to false. This feature will disable tcp tunnel mode. + */ + enable_lets_encrypt?: boolean | null; env_vars?: EnvVar[] | null; /** * If you wish to exclude this site from the start_all command. @@ -181,6 +186,7 @@ export interface OddBoxConfigGlobalPart { */ http_port: number; ip: string; + lets_encrypt_account_email: string; log_level: BasicLogLevel; path: string; /** @@ -255,6 +261,7 @@ export interface OddBoxV2Config { */ http_port?: number | null; ip: string; + lets_encrypt_account_email?: string | null; log_level?: LogLevel | null; path?: string | null; /** @@ -287,6 +294,11 @@ export interface RemoteSiteConfig { capture_subdomains?: boolean | null; /** This is mostly useful in case the target uses SNI sniffing/routing */ disable_tcp_tunnel_mode?: boolean | null; + /** + * If you want to use lets-encrypt for generating certificates automatically for this site. + * Defaults to false. This feature will disable tcp tunnel mode. + */ + enable_lets_encrypt?: boolean | null; /** * If you wish to use the subdomain from the request in forwarded requests: * test.example.com -> internal.site @@ -313,6 +325,7 @@ export interface SaveGlobalConfig { */ http_port: number; ip: string; + lets_encrypt_account_email: string; log_level: BasicLogLevel; /** * @format int32 @@ -573,7 +586,7 @@ export class HttpClient { /** * @title ODD-BOX ADMIN-API 🤯 - * @version 0.1.1 + * @version 0.1.7-preview2 * @license * @externalDocs https://github.com/OlofBlomqvist/odd-box * @contact Olof Blomqvist @@ -581,18 +594,18 @@ export class HttpClient { * A basic management api for odd-box reverse proxy. */ export class Api extends HttpClient { - settings = { + api = { /** * No description * * @tags Settings * @name Settings * @summary Get global settings - * @request GET:/settings + * @request GET:/api/settings */ settings: (params: RequestParams = {}) => this.request({ - path: `/settings`, + path: `/api/settings`, method: "GET", format: "json", ...params, @@ -604,29 +617,28 @@ export class Api extends HttpClient this.request({ - path: `/settings`, + path: `/api/settings`, method: "POST", body: data, type: ContentType.Json, ...params, }), - }; - sites = { + /** * No description * * @tags Site management * @name List * @summary List all configured sites. - * @request GET:/sites + * @request GET:/api/sites */ list: (params: RequestParams = {}) => this.request({ - path: `/sites`, + path: `/api/sites`, method: "GET", format: "json", ...params, @@ -638,7 +650,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/sites`, + path: `/api/sites`, method: "POST", query: query, body: data, @@ -667,7 +679,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/sites`, + path: `/api/sites`, method: "DELETE", query: query, ...params, @@ -689,7 +701,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/sites/start`, + path: `/api/sites/start`, method: "PUT", query: query, ...params, @@ -711,11 +723,11 @@ export class Api extends HttpClient this.request({ - path: `/sites/status`, + path: `/api/sites/status`, method: "GET", format: "json", ...params, @@ -727,7 +739,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/sites/stop`, + path: `/api/sites/stop`, method: "PUT", query: query, ...params, diff --git a/web-ui/src/hooks/use-hosted-sites.ts b/web-ui/src/hooks/use-hosted-sites.ts index f84a4a0..3a97971 100644 --- a/web-ui/src/hooks/use-hosted-sites.ts +++ b/web-ui/src/hooks/use-hosted-sites.ts @@ -14,7 +14,7 @@ export const useHostedSites = () => { return useSuspenseQuery({ queryKey: ["sites"], - queryFn: apiClient.sites.list, + queryFn: apiClient.api.list, select: (res) => res.data.items.filter(checkIsHostedProcess).map((x) => x.HostedProcess), }); diff --git a/web-ui/src/hooks/use-remote-sites.ts b/web-ui/src/hooks/use-remote-sites.ts index 5f3e7ef..ee5ec78 100644 --- a/web-ui/src/hooks/use-remote-sites.ts +++ b/web-ui/src/hooks/use-remote-sites.ts @@ -14,7 +14,7 @@ export const useRemoteSites = () => { return useSuspenseQuery({ queryKey: ["sites"], - queryFn: apiClient.sites.list, + queryFn: apiClient.api.list, select: (res) => res.data.items.filter(checkIsRemoteSite).map((x) => x.RemoteSite), }); diff --git a/web-ui/src/hooks/use-settings-mutations.ts b/web-ui/src/hooks/use-settings-mutations.ts index 3d28ef2..960b02d 100644 --- a/web-ui/src/hooks/use-settings-mutations.ts +++ b/web-ui/src/hooks/use-settings-mutations.ts @@ -13,7 +13,7 @@ const useSettingsMutations = () => { const queryClient = useQueryClient(); const updateSettings = useMutation({ mutationKey: ["update-settings"], - mutationFn: apiClient.settings.saveSettings, + mutationFn: apiClient.api.saveSettings, onSettled: () => { queryClient.invalidateQueries({ queryKey: ["settings"] }); }, diff --git a/web-ui/src/hooks/use-settings.ts b/web-ui/src/hooks/use-settings.ts index 6a666e2..8152272 100644 --- a/web-ui/src/hooks/use-settings.ts +++ b/web-ui/src/hooks/use-settings.ts @@ -14,7 +14,7 @@ const useSettings = () => { return useSuspenseQuery({ queryKey: ["settings"], select: (response) => response.data, - queryFn: apiClient.settings.settings, + queryFn: apiClient.api.settings, }); }; diff --git a/web-ui/src/hooks/use-site-mutations.ts b/web-ui/src/hooks/use-site-mutations.ts index 7403e93..fb4569c 100644 --- a/web-ui/src/hooks/use-site-mutations.ts +++ b/web-ui/src/hooks/use-site-mutations.ts @@ -23,14 +23,14 @@ const useSiteMutations = () => { const startSite = useMutation({ mutationKey: ["start-site"], mutationFn: async ({ hostname }: { hostname: string }) => { - await apiClient.sites.start({ hostname }); + await apiClient.api.start({ hostname }); const isAllSitesRequest = hostname === "*"; await Sleep(isAllSitesRequest ? 3000 : 1000); if (!isAllSitesRequest) { - let newStates = (await apiClient.sites.status()).data; + let newStates = (await apiClient.api.status()).data; let thisSiteState = newStates.items.find( (x: any) => x.hostname === hostname )?.state; @@ -42,7 +42,7 @@ const useSiteMutations = () => { ) { retryAttempt++; await Sleep(1000); - newStates = (await apiClient.sites.status()).data; + newStates = (await apiClient.api.status()).data; thisSiteState = newStates.items.find( (x: any) => x.hostname === hostname @@ -62,14 +62,14 @@ const useSiteMutations = () => { const stopSite = useMutation({ mutationKey: ["stop-site"], mutationFn: async ({ hostname }: { hostname: string }) => { - await apiClient.sites.stop({ hostname }); + await apiClient.api.stop({ hostname }); const isAllSitesRequest = hostname === "*"; await Sleep(isAllSitesRequest ? 3000 : 1000); if (!isAllSitesRequest) { - let newStates = (await apiClient.sites.status()).data; + let newStates = (await apiClient.api.status()).data; let thisSiteState = newStates.items.find( (x: any) => x.hostname === hostname )?.state; @@ -82,7 +82,7 @@ const useSiteMutations = () => { ) { retryAttempt++; await Sleep(1000); - newStates = (await apiClient.sites.status()).data; + newStates = (await apiClient.api.status()).data; thisSiteState = newStates.items.find( (x: any) => x.hostname === hostname @@ -108,7 +108,7 @@ const useSiteMutations = () => { siteSettings: RemoteSiteConfig; hostname?: string; }) => { - return apiClient.sites.set( + return apiClient.api.set( { new_configuration: { RemoteSite: siteSettings, @@ -139,7 +139,7 @@ const useSiteMutations = () => { siteSettings: InProcessSiteConfig; hostname?: string; }) => { - return apiClient.sites.set( + return apiClient.api.set( { new_configuration: { HostedProcess: siteSettings, @@ -164,7 +164,7 @@ const useSiteMutations = () => { const deleteSite = useMutation({ mutationKey: ["delete-site"], mutationFn: async ({ hostname }: { hostname: string }) => { - await apiClient.sites.delete({ hostname }); + await apiClient.api.delete({ hostname }); }, onSuccess: () => { queryClient.invalidateQueries({ queryKey: ["sites"] }); diff --git a/web-ui/src/hooks/use-site-status.ts b/web-ui/src/hooks/use-site-status.ts index c613456..c927a6b 100644 --- a/web-ui/src/hooks/use-site-status.ts +++ b/web-ui/src/hooks/use-site-status.ts @@ -12,7 +12,7 @@ const useSiteStatus = () => { const apiClient = new Api({ baseUrl }); return useSuspenseQuery({ queryKey: ["site-status"], - queryFn: apiClient.sites.status, + queryFn: apiClient.api.status, select: (response) => { return response.data.items } diff --git a/web-ui/src/main.tsx b/web-ui/src/main.tsx index f25364b..a9db14d 100644 --- a/web-ui/src/main.tsx +++ b/web-ui/src/main.tsx @@ -17,7 +17,7 @@ declare module "@tanstack/react-router" { router: typeof router; } } -router.basepath = "/webui"; +//router.basepath = "/webui"; // Render the app const rootElement = document.getElementById("root")!; if (!rootElement.innerHTML) { diff --git a/web-ui/vite.config.ts b/web-ui/vite.config.ts index 112714f..b7f1a7d 100644 --- a/web-ui/vite.config.ts +++ b/web-ui/vite.config.ts @@ -5,7 +5,6 @@ import path from "path" // https://vitejs.dev/config/ export default defineConfig({ - base: '/webui/', plugins: [ react(), TanStackRouterVite()