diff --git a/PetSearch.API/Program.cs b/PetSearch.API/Program.cs index a00baa8..3d44f5c 100644 --- a/PetSearch.API/Program.cs +++ b/PetSearch.API/Program.cs @@ -16,13 +16,14 @@ // Add services to the container. builder.Services.AddControllers(); // Set up Database connection. -// Set up for EF service var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ?? throw new InvalidOperationException("Connection string 'DefaultConnection' not found."); +// Set up for EF service var serverVersion = new MySqlServerVersion(new Version(8, 0, 31)); builder.Services.AddDbContext( // Specify the database provider options => options.UseMySql(connectionString, serverVersion)); +// Set up Swagger builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(options => { @@ -32,6 +33,7 @@ options.SwaggerDoc("v1", new OpenApiInfo { Title = "Pet Search API", Version = "v1" }); }); +// Configure CORS for local development with React. builder.Services.AddCors(options => { options.AddPolicy(name: myAllowSpecificOrigins, @@ -42,6 +44,7 @@ }); // Add Strongly type configuration. builder.Services.Configure(builder.Configuration.GetSection("PetFinder")); +// Add HTTPClient to DI container. builder.Services.AddHttpClient(client => { client.BaseAddress = new Uri(petFinderUrl); @@ -60,32 +63,22 @@ using var context = scope.ServiceProvider.GetRequiredService(); context.Database.EnsureCreated(); } - -if (app.Environment.IsDevelopment()) -{ -} - -// Configure the HTTP request pipeline. -app.UseHttpsRedirection(); -// Expose swagger. -app.UseSwagger(); -app.UseSwaggerUI(config => { config.ConfigObject.AdditionalItems.Add("persistAuthorization", "true"); }); -// Global error handling middleware. -app.UseMiddleware(); -// Set up middleware to serve static content (React) -app.UseDefaultFiles(); -app.UseStaticFiles(); -// Move default middleware below the client-app middleware to short-circuit client-app routes. -app.UseRouting(); -if (app.Environment.IsDevelopment()) +app.UseHttpsRedirection(); // Configure the HTTP request pipeline. +app.UseSwagger(); // Expose swagger. +app.UseSwaggerUI(); // Show swagger UI @ /swagger/index.html +app.UseMiddleware(); // Global error handling middleware. +app.UseDefaultFiles(); // Serve default file from wwwroot w/o requesting URL file name. +app.UseStaticFiles(); // Set up middleware to serve static content (React). +app.UseRouting(); // Move default middleware below the client-app middleware to short-circuit client-app routes. +if (app.Environment.IsDevelopment()) // Use cors configuration to develop with our client app. { - // Use cors configuration to develop with our client app. app.UseCors(myAllowSpecificOrigins); } app.UseAuthorization(); app.MapControllers(); -// Tell our server how to handle paths that it doesnt know of but React does. -app.MapFallbackToController("Index", "Fallback"); +app.MapFallbackToController("Index", + "Fallback"); // Tell our server how to handle paths that it doesnt know of but React does. +// End up setting up middleware to the pipeline. app.Run(); \ No newline at end of file diff --git a/PetSearch.API/wwwroot/assets/LocationModal-a2e87842.js b/PetSearch.API/wwwroot/assets/LocationModal-9c56cd4d.js similarity index 99% rename from PetSearch.API/wwwroot/assets/LocationModal-a2e87842.js rename to PetSearch.API/wwwroot/assets/LocationModal-9c56cd4d.js index 0b78d92..fb3e9fa 100644 --- a/PetSearch.API/wwwroot/assets/LocationModal-a2e87842.js +++ b/PetSearch.API/wwwroot/assets/LocationModal-9c56cd4d.js @@ -1,4 +1,4 @@ -import{b as i,f as H,V as Pe,W as De,X as jt,Y as ct,j as p,_ as s,Z as io,n as ne,k as re,x as ae,o as T,p as de,g as oe,$ as dt,i as se,a0 as lo,a1 as Wt,t as ao,a2 as we,d as pt,a3 as st,w as Bt,a4 as uo,a5 as co,a6 as Ct,T as _t,a7 as po,a8 as We,a9 as fo,P as Dt,aa as St,ab as mo,q as Rt,ac as ho,E as Ht,F as Ut,J as It}from"./index-09e4fc66.js";var A={};/** +import{b as i,f as H,V as Pe,W as De,X as jt,Y as ct,j as p,_ as s,Z as io,n as ne,k as re,x as ae,o as T,p as de,g as oe,$ as dt,i as se,a0 as lo,a1 as Wt,t as ao,a2 as we,d as pt,a3 as st,w as Bt,a4 as uo,a5 as co,a6 as Ct,T as _t,a7 as po,a8 as We,a9 as fo,P as Dt,aa as St,ab as mo,q as Rt,ac as ho,E as Ht,F as Ut,J as It}from"./index-578f2bf2.js";var A={};/** * @license React * react-is.production.min.js * diff --git a/PetSearch.API/wwwroot/assets/PetPage-31450494.js b/PetSearch.API/wwwroot/assets/PetPage-7ee6db32.js similarity index 98% rename from PetSearch.API/wwwroot/assets/PetPage-31450494.js rename to PetSearch.API/wwwroot/assets/PetPage-7ee6db32.js index 8509a78..f5ceb0e 100644 --- a/PetSearch.API/wwwroot/assets/PetPage-31450494.js +++ b/PetSearch.API/wwwroot/assets/PetPage-7ee6db32.js @@ -1 +1 @@ -import{E as c,F as d,j as e,T as s,I as v,b as P,P as _,M as R,z as A,G as L,H as O,J as B}from"./index-09e4fc66.js";import{u as H,G as l,S as o,A as S}from"./index-850a9108.js";var x={},T=d;Object.defineProperty(x,"__esModule",{value:!0});var b=x.default=void 0,E=T(c()),q=e,G=(0,E.default)((0,q.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");b=x.default=G;const V="/api/",F=async t=>{const a=await fetch(V+t,{method:"GET"});if(!a.ok){const n=await a.json();throw new Error(n.statusText)}return await a.json()},J={revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1};function U(t){const{data:a,error:r,isLoading:n}=H(`pets/${t}`,i=>F(i),J);return{petData:a,error:r,isLoading:n}}function W(){return e.jsxs(l,{container:!0,justifyContent:"center",columnSpacing:4,rowSpacing:4,alignItems:"center",children:[e.jsx(l,{item:!0,xs:12,textAlign:"center",mt:2,children:e.jsx(s,{variant:"h2",children:e.jsx(o,{})})}),e.jsx(l,{item:!0,marginTop:"0",children:e.jsx(o,{width:300,height:300})}),e.jsxs(l,{item:!0,textAlign:"center",children:[e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"})]}),e.jsxs(l,{item:!0,textAlign:"center",xs:12,children:[e.jsx(s,{variant:"h4",children:"Description"}),e.jsx(s,{variant:"body1",children:e.jsx(o,{})})]})]})}function K(t){return e.jsx(s,{variant:"h2",children:t.name})}var h={},Q=d;Object.defineProperty(h,"__esModule",{value:!0});var y=h.default=void 0,X=Q(c()),p=e,Y=(0,X.default)([(0,p.jsx)("path",{d:"m16.17 19-2-2H6l3-4 2.25 3 .82-1.1L5 7.83V19zM7.83 5 19 16.17V5z",opacity:".3"},"0"),(0,p.jsx)("path",{d:"M19 5v11.17l2 2V5c0-1.1-.9-2-2-2H5.83l2 2H19zM2.81 2.81 1.39 4.22 3 5.83V19c0 1.1.9 2 2 2h13.17l1.61 1.61 1.41-1.41L2.81 2.81zM5 19V7.83l7.07 7.07-.82 1.1L9 13l-3 4h8.17l2 2H5z"},"1")],"HideImageTwoTone");y=h.default=Y;var j={},Z=d;Object.defineProperty(j,"__esModule",{value:!0});var C=j.default=void 0,ee=Z(c()),te=e,ae=(0,ee.default)((0,te.jsx)("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12zm18 0c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8 8 3.58 8 8zM8 12l4-4 1.41 1.41L11.83 11H16v2h-4.17l1.59 1.59L12 16l-4-4z"}),"ArrowCircleLeftOutlined");C=j.default=ae;var m={},ne=d;Object.defineProperty(m,"__esModule",{value:!0});var I=m.default=void 0,re=ne(c()),ie=e,se=(0,re.default)((0,ie.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zM4 12c0-4.42 3.58-8 8-8s8 3.58 8 8-3.58 8-8 8-8-3.58-8-8zm12 0-4 4-1.41-1.41L12.17 13H8v-2h4.17l-1.59-1.59L12 8l4 4z"}),"ArrowCircleRightOutlined");I=m.default=se;const le={opacity:"0.7","&:hover":{opacity:"0.9"}};function D(t){return e.jsx(v,{"aria-label":"next-image",color:"primary",onClick:t.onClickNavigation,sx:le,children:t.children})}var f={},oe=d;Object.defineProperty(f,"__esModule",{value:!0});var $=f.default=void 0,ce=oe(c()),de=e,ue=(0,ce.default)((0,de.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"}),"Circle");$=f.default=ue;var g={},ve=d;Object.defineProperty(g,"__esModule",{value:!0});var N=g.default=void 0,xe=ve(c()),he=e,je=(0,xe.default)((0,he.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CircleOutlined");N=g.default=je;const me="_navDots_6qhvl_1",fe={navDots:me};function ge(t,a,r){const n=Array(t);for(let i=0;ir(i),sx:_e,children:e.jsx(N,{fontSize:"medium",color:"primary"})})},i);return n}const _e={"&:hover":{backgroundColor:"rgb(189,189,189,0.4)"}};function pe(t){return e.jsx("div",{className:fe.navDots,children:e.jsx("menu",{children:ge(t.totalNavDots,t.currentIndex,t.onSelectDotNav)})})}const De="_imageContainer_g8rbm_1",Se="_blankImage_g8rbm_18",be="_imgNavButtons_g8rbm_25",u={imageContainer:De,blankImage:Se,imgNavButtons:be};function ye(t){const[a,r]=P.useState(0);if(t.photos.length<1)return e.jsx(_,{elevation:4,children:e.jsx("div",{className:u.blankImage,children:e.jsx(y,{fontSize:"large",color:"primary"})})});const n=a>0,i=a{r(n?a-1:t.photos.length-1)},M=()=>{r(i?a+1:0)},k=w=>{r(w)};return e.jsx(_,{elevation:4,children:e.jsxs("div",{className:u.imageContainer,children:[e.jsx("img",{src:t.photos[a].full,alt:t.name,sizes:"500px"}),t.photos.length>1&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.imgNavButtons,children:[e.jsx(D,{onClickNavigation:z,children:e.jsx(C,{fontSize:"large"})}),e.jsx(D,{onClickNavigation:M,children:e.jsx(I,{fontSize:"large"})})]}),e.jsx(pe,{totalNavDots:t.photos.length,currentIndex:a,onSelectDotNav:k})]})]})})}function Ce(t){return e.jsxs(s,{variant:"body1",component:"section",children:[e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Age"})}),t.petData.age,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Size"})}),t.petData.size,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Gender"})}),t.petData.gender,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Status"})}),t.petData.status]})}function Ie(t){if(!t)return"No description provided.";const a=document.createElement("div");return a.innerHTML=t,a.textContent}function $e(t){const a=Ie(t.description);return e.jsxs("section",{children:[e.jsx(s,{variant:"h4",children:"Description"}),e.jsx(s,{variant:"body1",children:a}),e.jsx(R,{href:t.url,children:"More at PetFinder.com."})]})}function Ne(t){return e.jsxs(l,{container:!0,justifyContent:"center",columnSpacing:4,rowSpacing:3,alignItems:"center",children:[e.jsx(l,{item:!0,xs:12,textAlign:"center",mt:2,children:e.jsx(K,{name:t.petData.name})}),e.jsx(l,{item:!0,children:e.jsx(ye,{name:t.petData.name,photos:t.petData.photos})}),e.jsx(l,{item:!0,textAlign:"center",children:e.jsx(Ce,{petData:t.petData})}),e.jsx(l,{item:!0,textAlign:"center",xs:12,children:e.jsx($e,{description:t.petData.description,url:t.petData.url})})]})}function ze(t){const{petData:a,error:r,isLoading:n}=U(t.id);return r&&!n?e.jsx(S,{severity:"error",children:r.message?r.message:"Could not fetch pet data."}):n||!a?e.jsx(W,{}):e.jsx(Ne,{petData:a})}function we(){const t=A(),{state:a}=L(),r=O(),n=t.id??"error";return n==="error"||Number.isNaN(parseInt(n))?e.jsx("main",{children:e.jsx(S,{severity:"error",children:"Invalid pet id entered."})}):e.jsxs("main",{children:[(a==null?void 0:a.fromSearch)&&e.jsx(B,{startIcon:e.jsx(b,{}),onClick:()=>r(-1),size:"large",children:"Back to search results"}),e.jsx(ze,{id:n})]})}export{we as default}; +import{E as c,F as d,j as e,T as s,I as v,b as P,P as _,M as R,z as A,G as L,H as O,J as B}from"./index-578f2bf2.js";import{u as H,G as l,S as o,A as S}from"./index-361cb345.js";var x={},T=d;Object.defineProperty(x,"__esModule",{value:!0});var b=x.default=void 0,E=T(c()),q=e,G=(0,E.default)((0,q.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");b=x.default=G;const V="/api/",F=async t=>{const a=await fetch(V+t,{method:"GET"});if(!a.ok){const n=await a.json();throw new Error(n.statusText)}return await a.json()},J={revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1};function U(t){const{data:a,error:r,isLoading:n}=H(`pets/${t}`,i=>F(i),J);return{petData:a,error:r,isLoading:n}}function W(){return e.jsxs(l,{container:!0,justifyContent:"center",columnSpacing:4,rowSpacing:4,alignItems:"center",children:[e.jsx(l,{item:!0,xs:12,textAlign:"center",mt:2,children:e.jsx(s,{variant:"h2",children:e.jsx(o,{})})}),e.jsx(l,{item:!0,marginTop:"0",children:e.jsx(o,{width:300,height:300})}),e.jsxs(l,{item:!0,textAlign:"center",children:[e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"}),e.jsx(o,{width:100,variant:"text"})]}),e.jsxs(l,{item:!0,textAlign:"center",xs:12,children:[e.jsx(s,{variant:"h4",children:"Description"}),e.jsx(s,{variant:"body1",children:e.jsx(o,{})})]})]})}function K(t){return e.jsx(s,{variant:"h2",children:t.name})}var h={},Q=d;Object.defineProperty(h,"__esModule",{value:!0});var y=h.default=void 0,X=Q(c()),p=e,Y=(0,X.default)([(0,p.jsx)("path",{d:"m16.17 19-2-2H6l3-4 2.25 3 .82-1.1L5 7.83V19zM7.83 5 19 16.17V5z",opacity:".3"},"0"),(0,p.jsx)("path",{d:"M19 5v11.17l2 2V5c0-1.1-.9-2-2-2H5.83l2 2H19zM2.81 2.81 1.39 4.22 3 5.83V19c0 1.1.9 2 2 2h13.17l1.61 1.61 1.41-1.41L2.81 2.81zM5 19V7.83l7.07 7.07-.82 1.1L9 13l-3 4h8.17l2 2H5z"},"1")],"HideImageTwoTone");y=h.default=Y;var j={},Z=d;Object.defineProperty(j,"__esModule",{value:!0});var C=j.default=void 0,ee=Z(c()),te=e,ae=(0,ee.default)((0,te.jsx)("path",{d:"M2 12c0 5.52 4.48 10 10 10s10-4.48 10-10S17.52 2 12 2 2 6.48 2 12zm18 0c0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8 8 3.58 8 8zM8 12l4-4 1.41 1.41L11.83 11H16v2h-4.17l1.59 1.59L12 16l-4-4z"}),"ArrowCircleLeftOutlined");C=j.default=ae;var m={},ne=d;Object.defineProperty(m,"__esModule",{value:!0});var I=m.default=void 0,re=ne(c()),ie=e,se=(0,re.default)((0,ie.jsx)("path",{d:"M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12s4.48 10 10 10 10-4.48 10-10zM4 12c0-4.42 3.58-8 8-8s8 3.58 8 8-3.58 8-8 8-8-3.58-8-8zm12 0-4 4-1.41-1.41L12.17 13H8v-2h4.17l-1.59-1.59L12 8l4 4z"}),"ArrowCircleRightOutlined");I=m.default=se;const le={opacity:"0.7","&:hover":{opacity:"0.9"}};function D(t){return e.jsx(v,{"aria-label":"next-image",color:"primary",onClick:t.onClickNavigation,sx:le,children:t.children})}var f={},oe=d;Object.defineProperty(f,"__esModule",{value:!0});var $=f.default=void 0,ce=oe(c()),de=e,ue=(0,ce.default)((0,de.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2z"}),"Circle");$=f.default=ue;var g={},ve=d;Object.defineProperty(g,"__esModule",{value:!0});var N=g.default=void 0,xe=ve(c()),he=e,je=(0,xe.default)((0,he.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CircleOutlined");N=g.default=je;const me="_navDots_6qhvl_1",fe={navDots:me};function ge(t,a,r){const n=Array(t);for(let i=0;ir(i),sx:_e,children:e.jsx(N,{fontSize:"medium",color:"primary"})})},i);return n}const _e={"&:hover":{backgroundColor:"rgb(189,189,189,0.4)"}};function pe(t){return e.jsx("div",{className:fe.navDots,children:e.jsx("menu",{children:ge(t.totalNavDots,t.currentIndex,t.onSelectDotNav)})})}const De="_imageContainer_g8rbm_1",Se="_blankImage_g8rbm_18",be="_imgNavButtons_g8rbm_25",u={imageContainer:De,blankImage:Se,imgNavButtons:be};function ye(t){const[a,r]=P.useState(0);if(t.photos.length<1)return e.jsx(_,{elevation:4,children:e.jsx("div",{className:u.blankImage,children:e.jsx(y,{fontSize:"large",color:"primary"})})});const n=a>0,i=a{r(n?a-1:t.photos.length-1)},M=()=>{r(i?a+1:0)},k=w=>{r(w)};return e.jsx(_,{elevation:4,children:e.jsxs("div",{className:u.imageContainer,children:[e.jsx("img",{src:t.photos[a].full,alt:t.name,sizes:"500px"}),t.photos.length>1&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:u.imgNavButtons,children:[e.jsx(D,{onClickNavigation:z,children:e.jsx(C,{fontSize:"large"})}),e.jsx(D,{onClickNavigation:M,children:e.jsx(I,{fontSize:"large"})})]}),e.jsx(pe,{totalNavDots:t.photos.length,currentIndex:a,onSelectDotNav:k})]})]})})}function Ce(t){return e.jsxs(s,{variant:"body1",component:"section",children:[e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Age"})}),t.petData.age,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Size"})}),t.petData.size,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Gender"})}),t.petData.gender,e.jsx(s,{variant:"subtitle1",children:e.jsx("b",{children:"Status"})}),t.petData.status]})}function Ie(t){if(!t)return"No description provided.";const a=document.createElement("div");return a.innerHTML=t,a.textContent}function $e(t){const a=Ie(t.description);return e.jsxs("section",{children:[e.jsx(s,{variant:"h4",children:"Description"}),e.jsx(s,{variant:"body1",children:a}),e.jsx(R,{href:t.url,children:"More at PetFinder.com."})]})}function Ne(t){return e.jsxs(l,{container:!0,justifyContent:"center",columnSpacing:4,rowSpacing:3,alignItems:"center",children:[e.jsx(l,{item:!0,xs:12,textAlign:"center",mt:2,children:e.jsx(K,{name:t.petData.name})}),e.jsx(l,{item:!0,children:e.jsx(ye,{name:t.petData.name,photos:t.petData.photos})}),e.jsx(l,{item:!0,textAlign:"center",children:e.jsx(Ce,{petData:t.petData})}),e.jsx(l,{item:!0,textAlign:"center",xs:12,children:e.jsx($e,{description:t.petData.description,url:t.petData.url})})]})}function ze(t){const{petData:a,error:r,isLoading:n}=U(t.id);return r&&!n?e.jsx(S,{severity:"error",children:r.message?r.message:"Could not fetch pet data."}):n||!a?e.jsx(W,{}):e.jsx(Ne,{petData:a})}function we(){const t=A(),{state:a}=L(),r=O(),n=t.id??"error";return n==="error"||Number.isNaN(parseInt(n))?e.jsx("main",{children:e.jsx(S,{severity:"error",children:"Invalid pet id entered."})}):e.jsxs("main",{children:[(a==null?void 0:a.fromSearch)&&e.jsx(B,{startIcon:e.jsx(b,{}),onClick:()=>r(-1),size:"large",children:"Back to search results"}),e.jsx(ze,{id:n})]})}export{we as default}; diff --git a/PetSearch.API/wwwroot/assets/PetSearchPage-c5bb19e4.js b/PetSearch.API/wwwroot/assets/PetSearchPage-5387079e.js similarity index 99% rename from PetSearch.API/wwwroot/assets/PetSearchPage-c5bb19e4.js rename to PetSearch.API/wwwroot/assets/PetSearchPage-5387079e.js index 8346da3..fbfd946 100644 --- a/PetSearch.API/wwwroot/assets/PetSearchPage-c5bb19e4.js +++ b/PetSearch.API/wwwroot/assets/PetSearchPage-5387079e.js @@ -1 +1 @@ -import{c as st,s as nt,u as rt,_ as u,h as G,r as D,a as it,d as ct,m as lt,b as C,e as dt,f as L,j as s,g as S,i as I,k as T,l as H,n as F,o as P,T as U,p as B,P as pt,B as Y,q as ut,t as V,v as z,w as gt,x as _,M as ft,L as vt,C as xt,D as yt,y as mt,z as ht,A as bt}from"./index-09e4fc66.js";import{u as Ct,a as Pt,G as W,S as $t,A as tt}from"./index-850a9108.js";const Rt=["component","direction","spacing","divider","children","className","useFlexGap"],jt=st(),At=nt("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function kt(t){return rt({props:t,name:"MuiStack",defaultTheme:jt})}function Mt(t,e){const a=C.Children.toArray(t).filter(Boolean);return a.reduce((o,i,r)=>(o.push(i),r({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Nt=({ownerState:t,theme:e})=>{let a=u({display:"flex",flexDirection:"column"},G({theme:e},D({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){const o=it(e),i=Object.keys(e.breakpoints.values).reduce((n,d)=>((typeof t.spacing=="object"&&t.spacing[d]!=null||typeof t.direction=="object"&&t.direction[d]!=null)&&(n[d]=!0),n),{}),r=D({values:t.direction,base:i}),l=D({values:t.spacing,base:i});typeof r=="object"&&Object.keys(r).forEach((n,d,h)=>{if(!r[n]){const f=d>0?r[h[d-1]]:"column";r[n]=f}}),a=ct(a,G({theme:e},l,(n,d)=>t.useFlexGap?{gap:H(o,n)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${St(d?r[d]:t.direction)}`]:H(o,n)}}))}return a=lt(e.breakpoints,a),a};function Lt(t={}){const{createStyledComponent:e=At,useThemeProps:a=kt,componentName:o="MuiStack"}=t,i=()=>I({root:["root"]},n=>T(o,n),{}),r=e(Nt);return C.forwardRef(function(n,d){const h=a(n),b=dt(h),{component:f="div",direction:v="column",spacing:g=0,divider:j,children:$,className:x,useFlexGap:A=!1}=b,y=L(b,Rt),N={direction:v,spacing:g,useFlexGap:A},R=i();return s.jsx(r,u({as:f,ownerState:N,ref:d,className:S(R.root,x)},y,{children:j?Mt($,j):$}))})}function zt(t){return T("MuiAlertTitle",t)}F("MuiAlertTitle",["root"]);const It=["className"],Tt=t=>{const{classes:e}=t;return I({root:["root"]},zt,e)},Bt=P(U,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fontWeight:t.typography.fontWeightMedium,marginTop:-2})),Ot=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiAlertTitle"}),{className:i}=o,r=L(o,It),l=o,c=Tt(l);return s.jsx(Bt,u({gutterBottom:!0,component:"div",ownerState:l,ref:a,className:S(c.root,i)},r))}),wt=Ot;function _t(t){return T("MuiCard",t)}F("MuiCard",["root"]);const Ut=["className","raised"],Ft=t=>{const{classes:e}=t;return I({root:["root"]},_t,e)},Vt=P(pt,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"})),Dt=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiCard"}),{className:i,raised:r=!1}=o,l=L(o,Ut),c=u({},o,{raised:r}),n=Ft(c);return s.jsx(Vt,u({className:S(n.root,i),elevation:r?8:void 0,ref:a,ownerState:c},l))}),Et=Dt;function Wt(t){return T("MuiCardActionArea",t)}const Gt=F("MuiCardActionArea",["root","focusVisible","focusHighlight"]),E=Gt,Ht=["children","className","focusVisibleClassName"],Qt=t=>{const{classes:e}=t;return I({root:["root"],focusHighlight:["focusHighlight"]},Wt,e)},qt=P(Y,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${E.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${E.focusVisible} .${E.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}})),Zt=P("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(t,e)=>e.focusHighlight})(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})})),Jt=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiCardActionArea"}),{children:i,className:r,focusVisibleClassName:l}=o,c=L(o,Ht),n=o,d=Qt(n);return s.jsxs(qt,u({className:S(d.root,r),focusVisibleClassName:S(l,d.focusVisible),ref:a,ownerState:n},c,{children:[i,s.jsx(Zt,{className:d.focusHighlight,ownerState:n})]}))}),Kt=Jt;function Xt(t){return T("MuiPagination",t)}F("MuiPagination",["root","ul","outlined","text"]);const Yt=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function te(t={}){const{boundaryCount:e=1,componentName:a="usePagination",count:o=1,defaultPage:i=1,disabled:r=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:n,page:d,showFirstButton:h=!1,showLastButton:b=!1,siblingCount:f=1}=t,v=L(t,Yt),[g,j]=ut({controlled:d,default:i,name:a,state:"page"}),$=(p,M)=>{d||j(M),n&&n(p,M)},x=(p,M)=>{const at=M-p+1;return Array.from({length:at},(we,ot)=>p+ot)},A=x(1,Math.min(e,o)),y=x(Math.max(o-e+1,e+1),o),N=Math.max(Math.min(g-f,o-e-f*2-1),e+2),R=Math.min(Math.max(g+f,e+f*2+2),y.length>0?y[0]-2:o-1),O=[...h?["first"]:[],...c?[]:["previous"],...A,...N>e+2?["start-ellipsis"]:e+1e?[o-e]:[],...y,...l?[]:["next"],...b?["last"]:[]],w=p=>{switch(p){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return o;default:return null}},k=O.map(p=>typeof p=="number"?{onClick:M=>{$(M,p)},type:"page",page:p,selected:p===g,disabled:r,"aria-current":p===g?"true":void 0}:{onClick:M=>{$(M,w(p))},type:p,page:w(p),selected:!1,disabled:r||p.indexOf("ellipsis")===-1&&(p==="next"||p==="last"?g>=o:g<=1)});return u({items:k},v)}function ee(t){return T("MuiPaginationItem",t)}const ae=F("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),m=ae,Q=V(s.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),q=V(s.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Z=V(s.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),J=V(s.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),oe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],et=(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant],e[`size${_(a.size)}`],a.variant==="text"&&e[`text${_(a.color)}`],a.variant==="outlined"&&e[`outlined${_(a.color)}`],a.shape==="rounded"&&e.rounded,a.type==="page"&&e.page,(a.type==="start-ellipsis"||a.type==="end-ellipsis")&&e.ellipsis,(a.type==="previous"||a.type==="next")&&e.previousNext,(a.type==="first"||a.type==="last")&&e.firstLast]},se=t=>{const{classes:e,color:a,disabled:o,selected:i,size:r,shape:l,type:c,variant:n}=t,d={root:["root",`size${_(r)}`,n,l,a!=="standard"&&`${n}${_(a)}`,o&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return I(d,ee,e)},ne=P("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:et})(({theme:t,ownerState:e})=>u({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${m.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),re=P(Y,{name:"MuiPaginationItem",slot:"Root",overridesResolver:et})(({theme:t,ownerState:e})=>u({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${m.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${m.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:z(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${m.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${m.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},e.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},e.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>u({},e.variant==="text"&&{[`&.${m.selected}`]:u({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},[`&.${m.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{[`&.${m.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},e.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${m.selected}`]:u({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:z(t.palette[e.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:z(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${m.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),ie=P("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>u({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},e.size==="small"&&{fontSize:t.typography.pxToRem(18)},e.size==="large"&&{fontSize:t.typography.pxToRem(22)})),ce=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiPaginationItem"}),{className:i,color:r="standard",component:l,components:c={},disabled:n=!1,page:d,selected:h=!1,shape:b="circular",size:f="medium",slots:v={},type:g="page",variant:j="text"}=o,$=L(o,oe),x=u({},o,{color:r,disabled:n,selected:h,shape:b,size:f,type:g,variant:j}),A=gt(),y=se(x),R=(A.direction==="rtl"?{previous:v.next||c.next||J,next:v.previous||c.previous||Z,last:v.first||c.first||Q,first:v.last||c.last||q}:{previous:v.previous||c.previous||Z,next:v.next||c.next||J,first:v.first||c.first||Q,last:v.last||c.last||q})[g];return g==="start-ellipsis"||g==="end-ellipsis"?s.jsx(ne,{ref:a,ownerState:x,className:S(y.root,i),children:"…"}):s.jsxs(re,u({ref:a,ownerState:x,component:l,disabled:n,className:S(y.root,i)},$,{children:[g==="page"&&d,R?s.jsx(ie,{as:R,ownerState:x,className:y.icon}):null]}))}),le=ce,de=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],pe=t=>{const{classes:e,variant:a}=t;return I({root:["root",a],ul:["ul"]},Xt,e)},ue=P("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant]]}})({}),ge=P("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function fe(t,e,a){return t==="page"?`${a?"":"Go to "}page ${e}`:`Go to ${t} page`}const ve=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:r,color:l="standard",count:c=1,defaultPage:n=1,disabled:d=!1,getItemAriaLabel:h=fe,hideNextButton:b=!1,hidePrevButton:f=!1,renderItem:v=k=>s.jsx(le,u({},k)),shape:g="circular",showFirstButton:j=!1,showLastButton:$=!1,siblingCount:x=1,size:A="medium",variant:y="text"}=o,N=L(o,de),{items:R}=te(u({},o,{componentName:"Pagination"})),O=u({},o,{boundaryCount:i,color:l,count:c,defaultPage:n,disabled:d,getItemAriaLabel:h,hideNextButton:b,hidePrevButton:f,renderItem:v,shape:g,showFirstButton:j,showLastButton:$,siblingCount:x,size:A,variant:y}),w=pe(O);return s.jsx(ue,u({"aria-label":"pagination navigation",className:S(w.root,r),ownerState:O,ref:a},N,{children:s.jsx(ge,{className:w.ul,ownerState:O,children:R.map((k,p)=>s.jsx("li",{children:v(u({},k,{color:l,"aria-label":h(k.type,k.page,k.selected),shape:g,size:A,variant:y}))},p))})}))}),xe=ve,ye=Lt({createStyledComponent:P("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>B({props:t,name:"MuiStack"})}),me=ye,he="/api/",be=20,Ce=async t=>{const e=await fetch(he+t,{method:"GET"});if(!e.ok){const o=await e.json();throw new Error((o==null?void 0:o.message)||e.statusText)}return await e.json()},Pe={revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1};function $e(t){const e=C.useRef(1),a=C.useRef(1),{data:o,error:i,isLoading:r}=Ct(t,l=>Ce(l),Pe);return o!=null&&o.pagination&&(a.current!==o.pagination.total_pages&&(a.current=o.pagination.total_pages),e.current!==o.pagination.current_page&&(e.current=o.pagination.current_page)),{petListData:o==null?void 0:o.pets,error:i,isLoading:r,currentPage:e.current,totalPages:a.current,itemsPerPage:be}}const Re={textAlign:"center",marginBottom:"1rem",marginTop:"2rem"},je={textAlign:"center",marginBottom:"20px"};function Ae(t){return s.jsxs(s.Fragment,{children:[s.jsxs(U,{sx:Re,variant:"h2",children:["Adoptable ",t.petType,"s within 50 mile",t.petType.length>1?"s":"","."]}),s.jsxs(U,{sx:je,variant:"subtitle1",children:["Zip Code: ",t.zipCode]})]})}const ke={paddingTop:"2rem"};function Me(t){return s.jsx(me,{spacing:2,direction:"row",justifyContent:"center",alignItems:"center",children:s.jsx(xe,{count:t.totalPages,page:t.currentPage,color:"primary",showFirstButton:!0,onChange:t.onPageChange,disabled:t.isLoading,size:"large",sx:ke,variant:"outlined"})})}const Se="_imageContainer_pbgyy_1",Ne={imageContainer:Se},K={fontSize:"300px",color:"primary"},Le={marginBottom:"16px",textAlign:"center"},ze={marginBottom:"6px",textAlign:"center"};function Ie(t){var l;const{mutate:e}=Pt();async function a(){await e(`pets/${t.pet.id}`,t.pet)}const o=((l=t.pet.primary_photo_cropped)==null?void 0:l.small)??null,i=t.pet.distance?t.pet.distance.toFixed(1):"0";let r="";return i!=="0"&&(r=`${i} miles away`),s.jsx(W,{item:!0,children:s.jsx(ft,{component:vt,style:{textDecoration:"none"},to:`/pets/${t.pet.id}`,state:{fromSearch:!0},preventScrollReset:!1,children:s.jsx(Kt,{onClick:a,children:s.jsxs(Et,{sx:{maxWidth:"300px"},elevation:3,children:[o?s.jsx("div",{className:Ne.imageContainer,children:s.jsx("img",{src:o,alt:t.pet.name,loading:"lazy",decoding:"async"})}):t.pet.type=="Cat"?s.jsx(xt,{sx:K}):s.jsx(yt,{sx:K}),s.jsx(U,{variant:"h6",noWrap:!0,sx:ze,children:t.pet.name}),s.jsxs(U,{sx:Le,children:[t.pet.age," ",t.pet.gender,s.jsx("br",{}),r]})]})})})},t.pet.id)}function Te(t){const e=new Array(t);for(let a=0;as.jsx(Ie,{pet:e},"pet-id-"+a))})}function Oe(t){const{petListData:e,error:a,isLoading:o,currentPage:i,totalPages:r,itemsPerPage:l}=$e(t.searchQueryURL),c=t.searchParams.get("type"),n=t.searchParams.get("location");return a?s.jsxs(tt,{severity:"error",children:["Failed to retrieve ",c," data..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Ae,{petType:c,zipCode:n}),s.jsx(Be,{petData:e,isLoading:o,itemsPerPage:l}),s.jsx(Me,{currentPage:i,totalPages:r,isLoading:o,onPageChange:t.onPageChange})]})}const X=new Map().set("dogs","dog").set("cats","cat");function Fe(){const{zipCode:t}=C.useContext(mt),e=ht(),[a,o]=bt(),i=e.petType??"";if(!X.has(i))return s.jsxs(tt,{severity:"error",children:[s.jsx(wt,{children:"Error"}),"Pet Type: ",i," not supported."]});const r=(h,b)=>{const f=new URLSearchParams(a);f.set("page",b.toString()),o(f)},l=a.get("location")??t,c=a.get("page")??"1",n=new URLSearchParams;n.append("type",X.get(i)),n.append("location",l),n.append("page",c);const d="pets?"+n.toString();return s.jsx(Oe,{searchParams:n,searchQueryURL:d,onPageChange:r})}export{Fe as default}; +import{c as st,s as nt,u as rt,_ as u,h as G,r as D,a as it,d as ct,m as lt,b as C,e as dt,f as L,j as s,g as S,i as I,k as T,l as H,n as F,o as P,T as U,p as B,P as pt,B as Y,q as ut,t as V,v as z,w as gt,x as _,M as ft,L as vt,C as xt,D as yt,y as mt,z as ht,A as bt}from"./index-578f2bf2.js";import{u as Ct,a as Pt,G as W,S as $t,A as tt}from"./index-361cb345.js";const Rt=["component","direction","spacing","divider","children","className","useFlexGap"],jt=st(),At=nt("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root});function kt(t){return rt({props:t,name:"MuiStack",defaultTheme:jt})}function Mt(t,e){const a=C.Children.toArray(t).filter(Boolean);return a.reduce((o,i,r)=>(o.push(i),r({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],Nt=({ownerState:t,theme:e})=>{let a=u({display:"flex",flexDirection:"column"},G({theme:e},D({values:t.direction,breakpoints:e.breakpoints.values}),o=>({flexDirection:o})));if(t.spacing){const o=it(e),i=Object.keys(e.breakpoints.values).reduce((n,d)=>((typeof t.spacing=="object"&&t.spacing[d]!=null||typeof t.direction=="object"&&t.direction[d]!=null)&&(n[d]=!0),n),{}),r=D({values:t.direction,base:i}),l=D({values:t.spacing,base:i});typeof r=="object"&&Object.keys(r).forEach((n,d,h)=>{if(!r[n]){const f=d>0?r[h[d-1]]:"column";r[n]=f}}),a=ct(a,G({theme:e},l,(n,d)=>t.useFlexGap?{gap:H(o,n)}:{"& > :not(style) + :not(style)":{margin:0,[`margin${St(d?r[d]:t.direction)}`]:H(o,n)}}))}return a=lt(e.breakpoints,a),a};function Lt(t={}){const{createStyledComponent:e=At,useThemeProps:a=kt,componentName:o="MuiStack"}=t,i=()=>I({root:["root"]},n=>T(o,n),{}),r=e(Nt);return C.forwardRef(function(n,d){const h=a(n),b=dt(h),{component:f="div",direction:v="column",spacing:g=0,divider:j,children:$,className:x,useFlexGap:A=!1}=b,y=L(b,Rt),N={direction:v,spacing:g,useFlexGap:A},R=i();return s.jsx(r,u({as:f,ownerState:N,ref:d,className:S(R.root,x)},y,{children:j?Mt($,j):$}))})}function zt(t){return T("MuiAlertTitle",t)}F("MuiAlertTitle",["root"]);const It=["className"],Tt=t=>{const{classes:e}=t;return I({root:["root"]},zt,e)},Bt=P(U,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fontWeight:t.typography.fontWeightMedium,marginTop:-2})),Ot=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiAlertTitle"}),{className:i}=o,r=L(o,It),l=o,c=Tt(l);return s.jsx(Bt,u({gutterBottom:!0,component:"div",ownerState:l,ref:a,className:S(c.root,i)},r))}),wt=Ot;function _t(t){return T("MuiCard",t)}F("MuiCard",["root"]);const Ut=["className","raised"],Ft=t=>{const{classes:e}=t;return I({root:["root"]},_t,e)},Vt=P(pt,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"})),Dt=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiCard"}),{className:i,raised:r=!1}=o,l=L(o,Ut),c=u({},o,{raised:r}),n=Ft(c);return s.jsx(Vt,u({className:S(n.root,i),elevation:r?8:void 0,ref:a,ownerState:c},l))}),Et=Dt;function Wt(t){return T("MuiCardActionArea",t)}const Gt=F("MuiCardActionArea",["root","focusVisible","focusHighlight"]),E=Gt,Ht=["children","className","focusVisibleClassName"],Qt=t=>{const{classes:e}=t;return I({root:["root"],focusHighlight:["focusHighlight"]},Wt,e)},qt=P(Y,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${E.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${E.focusVisible} .${E.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}})),Zt=P("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(t,e)=>e.focusHighlight})(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})})),Jt=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiCardActionArea"}),{children:i,className:r,focusVisibleClassName:l}=o,c=L(o,Ht),n=o,d=Qt(n);return s.jsxs(qt,u({className:S(d.root,r),focusVisibleClassName:S(l,d.focusVisible),ref:a,ownerState:n},c,{children:[i,s.jsx(Zt,{className:d.focusHighlight,ownerState:n})]}))}),Kt=Jt;function Xt(t){return T("MuiPagination",t)}F("MuiPagination",["root","ul","outlined","text"]);const Yt=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function te(t={}){const{boundaryCount:e=1,componentName:a="usePagination",count:o=1,defaultPage:i=1,disabled:r=!1,hideNextButton:l=!1,hidePrevButton:c=!1,onChange:n,page:d,showFirstButton:h=!1,showLastButton:b=!1,siblingCount:f=1}=t,v=L(t,Yt),[g,j]=ut({controlled:d,default:i,name:a,state:"page"}),$=(p,M)=>{d||j(M),n&&n(p,M)},x=(p,M)=>{const at=M-p+1;return Array.from({length:at},(we,ot)=>p+ot)},A=x(1,Math.min(e,o)),y=x(Math.max(o-e+1,e+1),o),N=Math.max(Math.min(g-f,o-e-f*2-1),e+2),R=Math.min(Math.max(g+f,e+f*2+2),y.length>0?y[0]-2:o-1),O=[...h?["first"]:[],...c?[]:["previous"],...A,...N>e+2?["start-ellipsis"]:e+1e?[o-e]:[],...y,...l?[]:["next"],...b?["last"]:[]],w=p=>{switch(p){case"first":return 1;case"previous":return g-1;case"next":return g+1;case"last":return o;default:return null}},k=O.map(p=>typeof p=="number"?{onClick:M=>{$(M,p)},type:"page",page:p,selected:p===g,disabled:r,"aria-current":p===g?"true":void 0}:{onClick:M=>{$(M,w(p))},type:p,page:w(p),selected:!1,disabled:r||p.indexOf("ellipsis")===-1&&(p==="next"||p==="last"?g>=o:g<=1)});return u({items:k},v)}function ee(t){return T("MuiPaginationItem",t)}const ae=F("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),m=ae,Q=V(s.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),q=V(s.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Z=V(s.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),J=V(s.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),oe=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],et=(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant],e[`size${_(a.size)}`],a.variant==="text"&&e[`text${_(a.color)}`],a.variant==="outlined"&&e[`outlined${_(a.color)}`],a.shape==="rounded"&&e.rounded,a.type==="page"&&e.page,(a.type==="start-ellipsis"||a.type==="end-ellipsis")&&e.ellipsis,(a.type==="previous"||a.type==="next")&&e.previousNext,(a.type==="first"||a.type==="last")&&e.firstLast]},se=t=>{const{classes:e,color:a,disabled:o,selected:i,size:r,shape:l,type:c,variant:n}=t,d={root:["root",`size${_(r)}`,n,l,a!=="standard"&&`${n}${_(a)}`,o&&"disabled",i&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[c]],icon:["icon"]};return I(d,ee,e)},ne=P("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:et})(({theme:t,ownerState:e})=>u({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",[`&.${m.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),re=P(Y,{name:"MuiPaginationItem",slot:"Root",overridesResolver:et})(({theme:t,ownerState:e})=>u({},t.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,[`&.${m.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${m.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.selected}`]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:z(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${m.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},[`&.${m.disabled}`]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},e.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},e.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:t.typography.pxToRem(15)},e.shape==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>u({},e.variant==="text"&&{[`&.${m.selected}`]:u({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},[`&.${m.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{[`&.${m.disabled}`]:{color:(t.vars||t).palette.action.disabled}})},e.variant==="outlined"&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${m.selected}`]:u({},e.color!=="standard"&&{color:(t.vars||t).palette[e.color].main,border:`1px solid ${t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:z(t.palette[e.color].main,.5)}`,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:z(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${m.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:z(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{[`&.${m.disabled}`]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),ie=P("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>u({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},e.size==="small"&&{fontSize:t.typography.pxToRem(18)},e.size==="large"&&{fontSize:t.typography.pxToRem(22)})),ce=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiPaginationItem"}),{className:i,color:r="standard",component:l,components:c={},disabled:n=!1,page:d,selected:h=!1,shape:b="circular",size:f="medium",slots:v={},type:g="page",variant:j="text"}=o,$=L(o,oe),x=u({},o,{color:r,disabled:n,selected:h,shape:b,size:f,type:g,variant:j}),A=gt(),y=se(x),R=(A.direction==="rtl"?{previous:v.next||c.next||J,next:v.previous||c.previous||Z,last:v.first||c.first||Q,first:v.last||c.last||q}:{previous:v.previous||c.previous||Z,next:v.next||c.next||J,first:v.first||c.first||Q,last:v.last||c.last||q})[g];return g==="start-ellipsis"||g==="end-ellipsis"?s.jsx(ne,{ref:a,ownerState:x,className:S(y.root,i),children:"…"}):s.jsxs(re,u({ref:a,ownerState:x,component:l,disabled:n,className:S(y.root,i)},$,{children:[g==="page"&&d,R?s.jsx(ie,{as:R,ownerState:x,className:y.icon}):null]}))}),le=ce,de=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],pe=t=>{const{classes:e,variant:a}=t;return I({root:["root",a],ul:["ul"]},Xt,e)},ue=P("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:a}=t;return[e.root,e[a.variant]]}})({}),ge=P("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function fe(t,e,a){return t==="page"?`${a?"":"Go to "}page ${e}`:`Go to ${t} page`}const ve=C.forwardRef(function(e,a){const o=B({props:e,name:"MuiPagination"}),{boundaryCount:i=1,className:r,color:l="standard",count:c=1,defaultPage:n=1,disabled:d=!1,getItemAriaLabel:h=fe,hideNextButton:b=!1,hidePrevButton:f=!1,renderItem:v=k=>s.jsx(le,u({},k)),shape:g="circular",showFirstButton:j=!1,showLastButton:$=!1,siblingCount:x=1,size:A="medium",variant:y="text"}=o,N=L(o,de),{items:R}=te(u({},o,{componentName:"Pagination"})),O=u({},o,{boundaryCount:i,color:l,count:c,defaultPage:n,disabled:d,getItemAriaLabel:h,hideNextButton:b,hidePrevButton:f,renderItem:v,shape:g,showFirstButton:j,showLastButton:$,siblingCount:x,size:A,variant:y}),w=pe(O);return s.jsx(ue,u({"aria-label":"pagination navigation",className:S(w.root,r),ownerState:O,ref:a},N,{children:s.jsx(ge,{className:w.ul,ownerState:O,children:R.map((k,p)=>s.jsx("li",{children:v(u({},k,{color:l,"aria-label":h(k.type,k.page,k.selected),shape:g,size:A,variant:y}))},p))})}))}),xe=ve,ye=Lt({createStyledComponent:P("div",{name:"MuiStack",slot:"Root",overridesResolver:(t,e)=>e.root}),useThemeProps:t=>B({props:t,name:"MuiStack"})}),me=ye,he="/api/",be=20,Ce=async t=>{const e=await fetch(he+t,{method:"GET"});if(!e.ok){const o=await e.json();throw new Error((o==null?void 0:o.message)||e.statusText)}return await e.json()},Pe={revalidateOnFocus:!1,revalidateIfStale:!1,revalidateOnReconnect:!1};function $e(t){const e=C.useRef(1),a=C.useRef(1),{data:o,error:i,isLoading:r}=Ct(t,l=>Ce(l),Pe);return o!=null&&o.pagination&&(a.current!==o.pagination.total_pages&&(a.current=o.pagination.total_pages),e.current!==o.pagination.current_page&&(e.current=o.pagination.current_page)),{petListData:o==null?void 0:o.pets,error:i,isLoading:r,currentPage:e.current,totalPages:a.current,itemsPerPage:be}}const Re={textAlign:"center",marginBottom:"1rem",marginTop:"2rem"},je={textAlign:"center",marginBottom:"20px"};function Ae(t){return s.jsxs(s.Fragment,{children:[s.jsxs(U,{sx:Re,variant:"h2",children:["Adoptable ",t.petType,"s within 50 mile",t.petType.length>1?"s":"","."]}),s.jsxs(U,{sx:je,variant:"subtitle1",children:["Zip Code: ",t.zipCode]})]})}const ke={paddingTop:"2rem"};function Me(t){return s.jsx(me,{spacing:2,direction:"row",justifyContent:"center",alignItems:"center",children:s.jsx(xe,{count:t.totalPages,page:t.currentPage,color:"primary",showFirstButton:!0,onChange:t.onPageChange,disabled:t.isLoading,size:"large",sx:ke,variant:"outlined"})})}const Se="_imageContainer_pbgyy_1",Ne={imageContainer:Se},K={fontSize:"300px",color:"primary"},Le={marginBottom:"16px",textAlign:"center"},ze={marginBottom:"6px",textAlign:"center"};function Ie(t){var l;const{mutate:e}=Pt();async function a(){await e(`pets/${t.pet.id}`,t.pet)}const o=((l=t.pet.primary_photo_cropped)==null?void 0:l.small)??null,i=t.pet.distance?t.pet.distance.toFixed(1):"0";let r="";return i!=="0"&&(r=`${i} miles away`),s.jsx(W,{item:!0,children:s.jsx(ft,{component:vt,style:{textDecoration:"none"},to:`/pets/${t.pet.id}`,state:{fromSearch:!0},preventScrollReset:!1,children:s.jsx(Kt,{onClick:a,children:s.jsxs(Et,{sx:{maxWidth:"300px"},elevation:3,children:[o?s.jsx("div",{className:Ne.imageContainer,children:s.jsx("img",{src:o,alt:t.pet.name,loading:"lazy",decoding:"async"})}):t.pet.type=="Cat"?s.jsx(xt,{sx:K}):s.jsx(yt,{sx:K}),s.jsx(U,{variant:"h6",noWrap:!0,sx:ze,children:t.pet.name}),s.jsxs(U,{sx:Le,children:[t.pet.age," ",t.pet.gender,s.jsx("br",{}),r]})]})})})},t.pet.id)}function Te(t){const e=new Array(t);for(let a=0;as.jsx(Ie,{pet:e},"pet-id-"+a))})}function Oe(t){const{petListData:e,error:a,isLoading:o,currentPage:i,totalPages:r,itemsPerPage:l}=$e(t.searchQueryURL),c=t.searchParams.get("type"),n=t.searchParams.get("location");return a?s.jsxs(tt,{severity:"error",children:["Failed to retrieve ",c," data..."]}):s.jsxs(s.Fragment,{children:[s.jsx(Ae,{petType:c,zipCode:n}),s.jsx(Be,{petData:e,isLoading:o,itemsPerPage:l}),s.jsx(Me,{currentPage:i,totalPages:r,isLoading:o,onPageChange:t.onPageChange})]})}const X=new Map().set("dogs","dog").set("cats","cat");function Fe(){const{zipCode:t}=C.useContext(mt),e=ht(),[a,o]=bt(),i=e.petType??"";if(!X.has(i))return s.jsxs(tt,{severity:"error",children:[s.jsx(wt,{children:"Error"}),"Pet Type: ",i," not supported."]});const r=(h,b)=>{const f=new URLSearchParams(a);f.set("page",b.toString()),o(f)},l=a.get("location")??t,c=a.get("page")??"1",n=new URLSearchParams;n.append("type",X.get(i)),n.append("location",l),n.append("page",c);const d="pets?"+n.toString();return s.jsx(Oe,{searchParams:n,searchQueryURL:d,onPageChange:r})}export{Fe as default}; diff --git a/PetSearch.API/wwwroot/assets/PetSearchPage-f7f4102a.css b/PetSearch.API/wwwroot/assets/PetSearchPage-f7f4102a.css index 6c40214..1ae1612 100644 --- a/PetSearch.API/wwwroot/assets/PetSearchPage-f7f4102a.css +++ b/PetSearch.API/wwwroot/assets/PetSearchPage-f7f4102a.css @@ -1,11 +1 @@ -._imageContainer_pbgyy_1 { - width: 300px; - height: 300px; - overflow: hidden; - display: flex; - justify-content: center -} - -._imageContainer_pbgyy_1 img { - object-fit: cover -} +._imageContainer_pbgyy_1{width:300px;height:300px;overflow:hidden;display:flex;justify-content:center}._imageContainer_pbgyy_1 img{object-fit:cover} diff --git a/PetSearch.API/wwwroot/assets/index-09e4fc66.js b/PetSearch.API/wwwroot/assets/index-09e4fc66.js deleted file mode 100644 index f002f97..0000000 --- a/PetSearch.API/wwwroot/assets/index-09e4fc66.js +++ /dev/null @@ -1,292 +0,0 @@ -function cm(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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)}})();function Bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Up={exports:{}},ca={},Wp={exports:{}},J={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var $i=Symbol.for("react.element"),fm=Symbol.for("react.portal"),pm=Symbol.for("react.fragment"),hm=Symbol.for("react.strict_mode"),mm=Symbol.for("react.profiler"),gm=Symbol.for("react.provider"),vm=Symbol.for("react.context"),ym=Symbol.for("react.forward_ref"),xm=Symbol.for("react.suspense"),Sm=Symbol.for("react.memo"),wm=Symbol.for("react.lazy"),wd=Symbol.iterator;function km(e){return e===null||typeof e!="object"?null:(e=wd&&e[wd]||e["@@iterator"],typeof e=="function"?e:null)}var Vp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Hp=Object.assign,Kp={};function mo(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}mo.prototype.isReactComponent={};mo.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")};mo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Gp(){}Gp.prototype=mo.prototype;function Zu(e,t,n){this.props=e,this.context=t,this.refs=Kp,this.updater=n||Vp}var Ju=Zu.prototype=new Gp;Ju.constructor=Zu;Hp(Ju,mo.prototype);Ju.isPureReactComponent=!0;var kd=Array.isArray,Qp=Object.prototype.hasOwnProperty,qu={current:null},Yp={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Qp.call(t,r)&&!Yp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,ae=N[re];if(0>>1;reo(ve,A))Reo(zt,ve)?(N[re]=zt,N[Re]=A,re=Re):(N[re]=ve,N[Z]=A,re=Z);else if(Reo(zt,A))N[re]=zt,N[Re]=A,re=Re;else break e}}return D}function o(N,D){var A=N.sortIndex-D.sortIndex;return A!==0?A:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,p=3,S=!1,y=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=N)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function f(N){if(v=!1,g(N),!y)if(n(s)!==null)y=!0,ee(C);else{var D=n(u);D!==null&&Se(f,D.startTime-N)}}function C(N,D){y=!1,v&&(v=!1,m(O),O=-1),S=!0;var A=p;try{for(g(D),d=n(s);d!==null&&(!(d.expirationTime>D)||N&&!F());){var re=d.callback;if(typeof re=="function"){d.callback=null,p=d.priorityLevel;var ae=re(d.expirationTime<=D);D=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(s)&&r(s),g(D)}else r(s);d=n(s)}if(d!==null)var et=!0;else{var Z=n(u);Z!==null&&Se(f,Z.startTime-D),et=!1}return et}finally{d=null,p=A,S=!1}}var P=!1,E=null,O=-1,I=5,$=-1;function F(){return!(e.unstable_now()-$N||125re?(N.sortIndex=A,t(u,N),n(s)===null&&N===n(u)&&(v?(m(O),O=-1):v=!0,Se(f,A-re))):(N.sortIndex=ae,t(s,N),y||S||(y=!0,ee(C))),N},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(N){var D=p;return function(){var A=p;p=D;try{return N.apply(this,arguments)}finally{p=A}}}})(e0);qp.exports=e0;var Om=qp.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var t0=x,xt=Om;function M(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"),Ws=Object.prototype.hasOwnProperty,zm=/^[: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]*$/,Ed={},Rd={};function Lm(e){return Ws.call(Rd,e)?!0:Ws.call(Ed,e)?!1:zm.test(e)?Rd[e]=!0:(Ed[e]=!0,!1)}function Im(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 Dm(e,t,n,r){if(t===null||typeof t>"u"||Im(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 ot(e,t,n,r,o,i,l){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=l}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new ot(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){Ge[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var tc=/[\-:]([a-z])/g;function nc(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(tc,nc);Ge[t]=new ot(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(tc,nc);Ge[t]=new ot(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(tc,nc);Ge[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var s=` -`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{ds=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wo(e):""}function jm(e){switch(e.tag){case 5:return Wo(e.type);case 16:return Wo("Lazy");case 13:return Wo("Suspense");case 19:return Wo("SuspenseList");case 0:case 2:case 15:return e=fs(e.type,!1),e;case 11:return e=fs(e.type.render,!1),e;case 1:return e=fs(e.type,!0),e;default:return""}}function Gs(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 Ir:return"Fragment";case Lr:return"Portal";case Vs:return"Profiler";case oc:return"StrictMode";case Hs:return"Suspense";case Ks:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case o0:return(e.displayName||"Context")+".Consumer";case r0:return(e._context.displayName||"Context")+".Provider";case ic:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lc:return t=e.displayName||null,t!==null?t:Gs(e.type)||"Memo";case Tn:t=e._payload,e=e._init;try{return Gs(e(t))}catch{}}return null}function Am(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 Gs(t);case 8:return t===oc?"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 Un(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function l0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fm(e){var t=l0(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ji(e){e._valueTracker||(e._valueTracker=Fm(e))}function a0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=l0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ol(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 Qs(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Un(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 s0(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function Ys(e,t){s0(e,t);var n=Un(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")?Xs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Xs(e,t.type,Un(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Td(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 Xs(e,t,n){(t!=="number"||Ol(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Vo=Array.isArray;function Yr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=qi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ui(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qo={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},Bm=["Webkit","ms","Moz","O"];Object.keys(Qo).forEach(function(e){Bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qo[t]=Qo[e]})});function f0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qo.hasOwnProperty(e)&&Qo[e]?(""+t).trim():t+"px"}function p0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=f0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Um=Ee({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 qs(e,t){if(t){if(Um[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function eu(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 tu=null;function ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nu=null,Xr=null,Zr=null;function $d(e){if(e=zi(e)){if(typeof nu!="function")throw Error(M(280));var t=e.stateNode;t&&(t=ma(t),nu(e.stateNode,e.type,t))}}function h0(e){Xr?Zr?Zr.push(e):Zr=[e]:Xr=e}function m0(){if(Xr){var e=Xr,t=Zr;if(Zr=Xr=null,$d(e),t)for(e=0;e>>=0,e===0?32:31-(qm(e)/eg|0)|0}var el=64,tl=4194304;function Ho(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 Dl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Ho(a):(i&=l,i!==0&&(r=Ho(i)))}else l=n&~o,l!==0?r=Ho(l):i!==0&&(r=Ho(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 Ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function og(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=Xo),Fd=String.fromCharCode(32),Bd=!1;function L0(e,t){switch(e){case"keyup":return Ng.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function zg(e,t){switch(e){case"compositionend":return I0(t);case"keypress":return t.which!==32?null:(Bd=!0,Fd);case"textInput":return e=t.data,e===Fd&&Bd?null:e;default:return null}}function Lg(e,t){if(Dr)return e==="compositionend"||!mc&&L0(e,t)?(e=O0(),wl=fc=Nn=null,Dr=!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=Hd(n)}}function F0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?F0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function B0(){for(var e=window,t=Ol();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ol(e.document)}return t}function gc(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 Vg(e){var t=B0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&F0(n.ownerDocument.documentElement,n)){if(r!==null&&gc(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=Kd(n,i);var l=Kd(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,jr=null,su=null,Jo=null,uu=!1;function Gd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uu||jr==null||jr!==Ol(r)||(r=jr,"selectionStart"in r&&gc(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}),Jo&&mi(Jo,r)||(Jo=r,r=Fl(su,"onSelect"),0Br||(e.current=mu[Br],mu[Br]=null,Br--)}function he(e,t){Br++,mu[Br]=e.current,e.current=t}var Wn={},qe=Hn(Wn),st=Hn(!1),ar=Wn;function io(e,t){var n=e.type.contextTypes;if(!n)return Wn;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 ut(e){return e=e.childContextTypes,e!=null}function Ul(){ge(st),ge(qe)}function ef(e,t,n){if(qe.current!==Wn)throw Error(M(168));he(qe,t),he(st,n)}function X0(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(M(108,Am(e)||"Unknown",o));return Ee({},n,r)}function Wl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wn,ar=qe.current,he(qe,e),he(st,st.current),!0}function tf(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=X0(e,t,ar),r.__reactInternalMemoizedMergedChildContext=e,ge(st),ge(qe),he(qe,e)):ge(st),he(st,n)}var un=null,ga=!1,Ps=!1;function Z0(e){un===null?un=[e]:un.push(e)}function nv(e){ga=!0,Z0(e)}function Kn(){if(!Ps&&un!==null){Ps=!0;var e=0,t=ce;try{var n=un;for(ce=1;e>=l,o-=l,cn=1<<32-Ut(t)+o|n<O?(I=E,E=null):I=E.sibling;var $=p(m,E,g[O],f);if($===null){E===null&&(E=I);break}e&&E&&$.alternate===null&&t(m,E),h=i($,h,O),P===null?C=$:P.sibling=$,P=$,E=I}if(O===g.length)return n(m,E),xe&&Qn(m,O),C;if(E===null){for(;OO?(I=E,E=null):I=E.sibling;var F=p(m,E,$.value,f);if(F===null){E===null&&(E=I);break}e&&E&&F.alternate===null&&t(m,E),h=i(F,h,O),P===null?C=F:P.sibling=F,P=F,E=I}if($.done)return n(m,E),xe&&Qn(m,O),C;if(E===null){for(;!$.done;O++,$=g.next())$=d(m,$.value,f),$!==null&&(h=i($,h,O),P===null?C=$:P.sibling=$,P=$);return xe&&Qn(m,O),C}for(E=r(m,E);!$.done;O++,$=g.next())$=S(E,m,O,$.value,f),$!==null&&(e&&$.alternate!==null&&E.delete($.key===null?O:$.key),h=i($,h,O),P===null?C=$:P.sibling=$,P=$);return e&&E.forEach(function(U){return t(m,U)}),xe&&Qn(m,O),C}function k(m,h,g,f){if(typeof g=="object"&&g!==null&&g.type===Ir&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Zi:e:{for(var C=g.key,P=h;P!==null;){if(P.key===C){if(C=g.type,C===Ir){if(P.tag===7){n(m,P.sibling),h=o(P,g.props.children),h.return=m,m=h;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Tn&&uf(C)===P.type){n(m,P.sibling),h=o(P,g.props),h.ref=Lo(m,P,g),h.return=m,m=h;break e}n(m,P);break}else t(m,P);P=P.sibling}g.type===Ir?(h=lr(g.props.children,m.mode,f,g.key),h.return=m,m=h):(f=_l(g.type,g.key,g.props,null,m.mode,f),f.ref=Lo(m,h,g),f.return=m,m=f)}return l(m);case Lr:e:{for(P=g.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=zs(g,m.mode,f),h.return=m,m=h}return l(m);case Tn:return P=g._init,k(m,h,P(g._payload),f)}if(Vo(g))return y(m,h,g,f);if(Mo(g))return v(m,h,g,f);sl(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,g),h.return=m,m=h):(n(m,h),h=Os(g,m.mode,f),h.return=m,m=h),l(m)):n(m,h)}return k}var ao=ih(!0),lh=ih(!1),Li={},tn=Hn(Li),xi=Hn(Li),Si=Hn(Li);function tr(e){if(e===Li)throw Error(M(174));return e}function Rc(e,t){switch(he(Si,t),he(xi,e),he(tn,Li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Js(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Js(t,e)}ge(tn),he(tn,t)}function so(){ge(tn),ge(xi),ge(Si)}function ah(e){tr(Si.current);var t=tr(tn.current),n=Js(t,e.type);t!==n&&(he(xi,e),he(tn,n))}function Pc(e){xi.current===e&&(ge(tn),ge(xi))}var ke=Hn(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bs=[];function bc(){for(var e=0;en?n:4,e(!0);var r=Ts.transition;Ts.transition={};try{e(!1),t()}finally{ce=n,Ts.transition=r}}function Ch(){return Ot().memoizedState}function lv(e,t,n){var r=Fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Eh(e))Rh(t,n);else if(n=th(e,t,n,r),n!==null){var o=nt();Wt(n,e,r,o),Ph(n,t,r)}}function av(e,t,n){var r=Fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Eh(e))Rh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Vt(a,l)){var s=t.interleaved;s===null?(o.next=o,Cc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=th(e,t,o,r),n!==null&&(o=nt(),Wt(n,e,r,o),Ph(n,t,r))}}function Eh(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Rh(e,t){qo=Xl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ph(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,uc(e,n)}}var Zl={readContext:Nt,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},sv={readContext:Nt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:df,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Rl(4194308,4,yh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();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=lv.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:cf,useDebugValue:Nc,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=cf(!1),t=e[0];return e=iv.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=Qt();if(xe){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Fe===null)throw Error(M(349));ur&30||ch(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,df(fh.bind(null,r,i,e),[e]),r.flags|=2048,Ci(9,dh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Fe.identifierPrefix;if(xe){var n=dn,r=cn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wi++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Zt]=t,e[yi]=r,Lh(e,t,!1,!1),t.stateNode=e;e:{switch(l=eu(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;oco&&(t.flags|=128,r=!0,Io(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Io(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>co&&n!==1073741824&&(t.flags|=128,r=!0,Io(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=ke.current,he(ke,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return jc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function gv(e,t){switch(yc(t),t.tag){case 1:return ut(t.type)&&Ul(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return so(),ge(st),ge(qe),bc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pc(t),null;case 13:if(ge(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(ke),null;case 4:return so(),null;case 10:return kc(t.type._context),null;case 22:case 23:return jc(),null;case 24:return null;default:return null}}var cl=!1,Je=!1,vv=typeof WeakSet=="function"?WeakSet:Set,L=null;function Hr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function bu(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Sf=!1;function yv(e,t){if(cu=jl,e=B0(),gc(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 l=0,a=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var S;d!==n||o!==0&&d.nodeType!==3||(a=l+o),d!==i||r!==0&&d.nodeType!==3||(s=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(S=d.firstChild)!==null;)p=d,d=S;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=l),p===i&&++c===r&&(s=l),(S=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=S}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(du={focusedElem:e,selectionRange:n},jl=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,k=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:jt(t.type,v),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(f){Te(t,t.return,f)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=Sf,Sf=!1,y}function ei(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&&bu(t,n,i)}o=o.next}while(o!==r)}}function xa(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 Tu(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 jh(e){var t=e.alternate;t!==null&&(e.alternate=null,jh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[yi],delete t[hu],delete t[ev],delete t[tv])),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 Ah(e){return e.tag===5||e.tag===3||e.tag===4}function wf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ah(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 _u(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=Bl));else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function Mu(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(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}var Ve=null,Ft=!1;function Pn(e,t,n){for(n=n.child;n!==null;)Fh(e,t,n),n=n.sibling}function Fh(e,t,n){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(da,n)}catch{}switch(n.tag){case 5:Je||Hr(n,t);case 6:var r=Ve,o=Ft;Ve=null,Pn(e,t,n),Ve=r,Ft=o,Ve!==null&&(Ft?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Ft?(e=Ve,n=n.stateNode,e.nodeType===8?Rs(e.parentNode,n):e.nodeType===1&&Rs(e,n),pi(e)):Rs(Ve,n.stateNode));break;case 4:r=Ve,o=Ft,Ve=n.stateNode.containerInfo,Ft=!0,Pn(e,t,n),Ve=r,Ft=o;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&bu(n,t,l),o=o.next}while(o!==r)}Pn(e,t,n);break;case 1:if(!Je&&(Hr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Te(n,t,a)}Pn(e,t,n);break;case 21:Pn(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,Pn(e,t,n),Je=r):Pn(e,t,n);break;default:Pn(e,t,n)}}function kf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vv),t.forEach(function(r){var o=bv.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sv(r/1960))-r,10e?16:e,On===null)var r=!1;else{if(e=On,On=null,ea=0,q&6)throw Error(M(331));var o=q;for(q|=4,L=e.current;L!==null;){var i=L,l=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s_e()-Ic?ir(e,0):Lc|=n),ct(e,t)}function Qh(e,t){t===0&&(e.mode&1?(t=tl,tl<<=1,!(tl&130023424)&&(tl=4194304)):t=1);var n=nt();e=yn(e,t),e!==null&&(Ni(e,t,n),ct(e,n))}function Pv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qh(e,n)}function bv(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(M(314))}r!==null&&r.delete(t),Qh(e,n)}var Yh;Yh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return at=!1,hv(e,t,n);at=!!(e.flags&131072)}else at=!1,xe&&t.flags&1048576&&J0(t,Hl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pl(e,t),e=t.pendingProps;var o=io(t,qe.current);qr(t,n),o=_c(null,t,r,e,o,n);var i=Mc();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,ut(r)?(i=!0,Wl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ec(t),o.updater=va,t.stateNode=o,o._reactInternals=t,Su(t,r,e,n),t=Cu(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&vc(t),tt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=_v(r),e=jt(r,e),o){case 0:t=ku(null,t,r,e,n);break e;case 1:t=vf(null,t,r,e,n);break e;case 11:t=mf(null,t,r,e,n);break e;case 14:t=gf(null,t,r,jt(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),ku(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),vf(e,t,r,o,n);case 3:e:{if(Nh(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,nh(e,t),Ql(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=uo(Error(M(423)),t),t=yf(e,t,r,n,o);break e}else if(r!==o){o=uo(Error(M(424)),t),t=yf(e,t,r,n,o);break e}else for(gt=Dn(t.stateNode.containerInfo.firstChild),vt=t,xe=!0,Bt=null,n=lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(lo(),r===o){t=xn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return ah(t),e===null&&vu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,fu(r,o)?l=null:i!==null&&fu(r,i)&&(t.flags|=32),$h(e,t),tt(e,t,l,n),t.child;case 6:return e===null&&vu(t),null;case 13:return Oh(e,t,n);case 4:return Rc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ao(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),mf(e,t,r,o,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,he(Kl,r._currentValue),r._currentValue=l,i!==null)if(Vt(i.value,l)){if(i.children===o.children&&!st.current){t=xn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=pn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),yu(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(M(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),yu(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,qr(t,n),o=Nt(o),r=r(o),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,o=jt(r,t.pendingProps),o=jt(r.type,o),gf(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:jt(r,o),Pl(e,t),t.tag=1,ut(r)?(e=!0,Wl(t)):e=!1,qr(t,n),oh(t,r,o),Su(t,r,o,n),Cu(null,t,r,!0,e,n);case 19:return zh(e,t,n);case 22:return Mh(e,t,n)}throw Error(M(156,t.tag))};function Xh(e,t){return k0(e,t)}function Tv(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 Mt(e,t,n,r){return new Tv(e,t,n,r)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _v(e){if(typeof e=="function")return Fc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ic)return 11;if(e===lc)return 14}return 2}function Bn(e,t){var n=e.alternate;return n===null?(n=Mt(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 _l(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Fc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ir:return lr(n.children,o,i,t);case oc:l=8,o|=8;break;case Vs:return e=Mt(12,n,t,o|2),e.elementType=Vs,e.lanes=i,e;case Hs:return e=Mt(13,n,t,o),e.elementType=Hs,e.lanes=i,e;case Ks:return e=Mt(19,n,t,o),e.elementType=Ks,e.lanes=i,e;case i0:return wa(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case r0:l=10;break e;case o0:l=9;break e;case ic:l=11;break e;case lc:l=14;break e;case Tn:l=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=Mt(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function lr(e,t,n,r){return e=Mt(7,e,r,t),e.lanes=n,e}function wa(e,t,n,r){return e=Mt(22,e,r,t),e.elementType=i0,e.lanes=n,e.stateNode={isHidden:!1},e}function Os(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function zs(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mv(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=hs(0),this.expirationTimes=hs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,r,o,i,l,a,s){return e=new Mv(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ec(i),e}function $v(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e1)}catch(e){console.error(e)}}e1(),Jp.exports=St;var Hc=Jp.exports;const pl=Bp(Hc);var Mf=Hc;Us.createRoot=Mf.createRoot,Us.hydrateRoot=Mf.hydrateRoot;/** - * @remix-run/router v1.6.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function fo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dv(){return Math.random().toString(36).substr(2,8)}function Nf(e,t){return{usr:e.state,key:e.key,idx:t}}function Ri(e,t,n,r){return n===void 0&&(n=null),le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Cn(t):t,{state:n,key:t&&t.key||r||Dv()})}function fr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Cn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function jv(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=$e.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(le({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=$e.Pop;let k=c(),m=k==null?null:k-u;u=k,s&&s({action:a,location:v.location,delta:m})}function p(k,m){a=$e.Push;let h=Ri(v.location,k,m);n&&n(h,k),u=c()+1;let g=Nf(h,u),f=v.createHref(h);try{l.pushState(g,"",f)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(f)}i&&s&&s({action:a,location:v.location,delta:1})}function S(k,m){a=$e.Replace;let h=Ri(v.location,k,m);n&&n(h,k),u=c();let g=Nf(h,u),f=v.createHref(h);l.replaceState(g,"",f),i&&s&&s({action:a,location:v.location,delta:0})}function y(k){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof k=="string"?k:fr(k);return X(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return a},get location(){return e(o,l)},listen(k){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener($f,d),s=k,()=>{o.removeEventListener($f,d),s=null}},createHref(k){return t(o,k)},createURL:y,encodeLocation(k){let m=y(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:S,go(k){return l.go(k)}};return v}var Le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Le||(Le={}));const Av=new Set(["lazy","caseSensitive","path","id","index","children"]);function Fv(e){return e.index===!0}function Lu(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(X(o.index!==!0||!o.children,"Cannot specify children on an index route"),X(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Fv(o)){let s=le({},o,t(o),{id:a});return r[a]=s,s}else{let s=le({},o,t(o),{id:a,children:void 0});return r[a]=s,o.children&&(s.children=Lu(o.children,t,l,r)),s}})}function Gr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Cn(t):t,o=yo(r.pathname||"/",n);if(o==null)return null;let i=t1(e);Bv(i);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=hn([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(X(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),t1(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Qv(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of n1(i.path))o(i,l,s)}),t}function n1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=n1(r.join("/")),a=[];return a.push(...l.map(s=>s===""?i:[i,s].join("/"))),o&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Bv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Uv=/^:\w+$/,Wv=3,Vv=2,Hv=1,Kv=10,Gv=-2,Of=e=>e==="*";function Qv(e,t){let n=e.split("/"),r=n.length;return n.some(Of)&&(r+=Gv),t&&(r+=Vv),n.filter(o=>!Of(o)).reduce((o,i)=>o+(Uv.test(i)?Wv:i===""?Hv:Kv),r)}function Yv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Xv(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let p=a[d]||"";l=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=ey(a[d]||"",c),u},{}),pathname:i,pathnameBase:l,pattern:e}}function Jv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),fo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function qv(e){try{return decodeURI(e)}catch(t){return fo(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ey(e,t){try{return decodeURIComponent(e)}catch(n){return fo(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function yo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ty(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Cn(e):e;return{pathname:n?n.startsWith("/")?n:ny(n,t):t,search:oy(r),hash:iy(o)}}function ny(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ls(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ii(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Pa(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Cn(e):(o=le({},e),X(!o.pathname||!o.pathname.includes("?"),Ls("?","pathname","search",o)),X(!o.pathname||!o.pathname.includes("#"),Ls("#","pathname","hash",o)),X(!o.search||!o.search.includes("#"),Ls("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let d=t.length-1;if(l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}a=d>=0?t[d]:"/"}let s=ty(o,a),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const hn=e=>e.join("/").replace(/\/\/+/g,"/"),ry=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iy=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Kc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function r1(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const o1=["post","put","patch","delete"],ly=new Set(o1),ay=["get",...o1],sy=new Set(ay),uy=new Set([301,302,303,307,308]),cy=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},dy={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},zf={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},i1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fy=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function py(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;X(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=b=>({hasErrorBoundary:R(b)})}else o=fy;let i={},l=Lu(e.routes,o,void 0,i),a,s=e.basename||"/",u=le({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,p=null,S=null,y=null,v=e.hydrationData!=null,k=Gr(l,e.history.location,s),m=null;if(k==null){let R=At(404,{pathname:e.history.location.pathname}),{matches:b,route:_}=Bf(l);k=b,m={[_.id]:R}}let h=!k.some(R=>R.route.lazy)&&(!k.some(R=>R.route.loader)||e.hydrationData!=null),g,f={historyAction:e.history.action,location:e.history.location,matches:k,initialized:h,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},C=$e.Pop,P=!1,E,O=!1,I=!1,$=[],F=[],U=new Map,ne=0,K=-1,G=new Map,ee=new Set,Se=new Map,N=new Map,D=new Map,A=!1;function re(){return c=e.history.listen(R=>{let{action:b,location:_,delta:z}=R;if(A){A=!1;return}fo(D.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=bo({currentLocation:f.location,nextLocation:_,historyAction:b});if(B&&z!=null){A=!0,e.history.go(z*-1),Rr(B,{state:"blocked",location:_,proceed(){Rr(B,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(z)},reset(){It(B),Z({blockers:new Map(g.state.blockers)})}});return}return Rt(b,_)}),f.initialized||Rt($e.Pop,f.location),g}function ae(){c&&c(),d.clear(),E&&E.abort(),f.fetchers.forEach((R,b)=>Po(b)),f.blockers.forEach((R,b)=>It(b))}function et(R){return d.add(R),()=>d.delete(R)}function Z(R){f=le({},f,R),d.forEach(b=>b(f))}function ve(R,b){var _,z;let B=f.actionData!=null&&f.navigation.formMethod!=null&&sn(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=R.state)==null?void 0:_._isRedirect)!==!0,W;b.actionData?Object.keys(b.actionData).length>0?W=b.actionData:W=null:B?W=f.actionData:W=null;let V=b.loaderData?Ff(f.loaderData,b.loaderData,b.matches||[],b.errors):f.loaderData;for(let[j]of D)It(j);let H=P===!0||f.navigation.formMethod!=null&&sn(f.navigation.formMethod)&&((z=R.state)==null?void 0:z._isRedirect)!==!0;a&&(l=a,a=void 0),Z(le({},b,{actionData:W,loaderData:V,historyAction:C,location:R,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:Hi(R,b.matches||f.matches),preventScrollReset:H,blockers:new Map(f.blockers)})),O||C===$e.Pop||(C===$e.Push?e.history.push(R,R.state):C===$e.Replace&&e.history.replace(R,R.state)),C=$e.Pop,P=!1,O=!1,I=!1,$=[],F=[]}async function Re(R,b){if(typeof R=="number"){e.history.go(R);return}let _=Iu(f.location,f.matches,s,u.v7_prependBasename,R,b==null?void 0:b.fromRouteId,b==null?void 0:b.relative),{path:z,submission:B,error:W}=Lf(u.v7_normalizeFormMethod,!1,_,b),V=f.location,H=Ri(f.location,z,b&&b.state);H=le({},H,e.history.encodeLocation(H));let j=b&&b.replace!=null?b.replace:void 0,te=$e.Push;j===!0?te=$e.Replace:j===!1||B!=null&&sn(B.formMethod)&&B.formAction===f.location.pathname+f.location.search&&(te=$e.Replace);let fe=b&&"preventScrollReset"in b?b.preventScrollReset===!0:void 0,Qe=bo({currentLocation:V,nextLocation:H,historyAction:te});if(Qe){Rr(Qe,{state:"blocked",location:H,proceed(){Rr(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),Re(R,b)},reset(){It(Qe),Z({blockers:new Map(f.blockers)})}});return}return await Rt(te,H,{submission:B,pendingError:W,preventScrollReset:fe,replace:b&&b.replace})}function zt(){if(Me(),Z({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){Rt(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}Rt(C||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function Rt(R,b,_){E&&E.abort(),E=null,C=R,O=(_&&_.startUninterruptedRevalidation)===!0,Vi(f.location,f.matches),P=(_&&_.preventScrollReset)===!0;let z=a||l,B=_&&_.overrideNavigation,W=Gr(z,b,s);if(!W){let je=At(404,{pathname:b.pathname}),{matches:Ue,route:Kt}=Bf(z);To(),ve(b,{matches:Ue,loaderData:{},errors:{[Kt.id]:je}});return}if(f.initialized&&!I&&yy(f.location,b)&&!(_&&_.submission&&sn(_.submission.formMethod))){ve(b,{matches:W});return}E=new AbortController;let V=Ao(e.history,b,E.signal,_&&_.submission),H,j;if(_&&_.pendingError)j={[Qr(W).route.id]:_.pendingError};else if(_&&_.submission&&sn(_.submission.formMethod)){let je=await pt(V,b,_.submission,W,{replace:_.replace});if(je.shortCircuited)return;H=je.pendingActionData,j=je.pendingActionError,B=le({state:"loading",location:b},_.submission),V=new Request(V.url,{signal:V.signal})}let{shortCircuited:te,loaderData:fe,errors:Qe}=await Co(V,b,W,B,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,H,j);te||(E=null,ve(b,le({matches:W},H?{actionData:H}:{},{loaderData:fe,errors:Qe})))}async function pt(R,b,_,z,B){Me();let W=le({state:"submitting",location:b},_);Z({navigation:W});let V,H=Du(z,b);if(!H.route.action&&!H.route.lazy)V={type:Le.error,error:At(405,{method:R.method,pathname:b.pathname,routeId:H.route.id})};else if(V=await jo("action",R,H,z,i,o,s),R.signal.aborted)return{shortCircuited:!0};if(to(V)){let j;return B&&B.replace!=null?j=B.replace:j=V.location===f.location.pathname+f.location.search,await Lt(f,V,{submission:_,replace:j}),{shortCircuited:!0}}if(ri(V)){let j=Qr(z,H.route.id);return(B&&B.replace)!==!0&&(C=$e.Push),{pendingActionData:{},pendingActionError:{[j.route.id]:V.error}}}if(nr(V))throw At(400,{type:"defer-action"});return{pendingActionData:{[H.route.id]:V.data}}}async function Co(R,b,_,z,B,W,V,H,j){let te=z;te||(te=le({state:"loading",location:b,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},B));let fe=B||W?B||W:te.formMethod&&te.formAction&&te.formData&&te.formEncType?{formMethod:te.formMethod,formAction:te.formAction,formData:te.formData,formEncType:te.formEncType}:void 0,Qe=a||l,[je,Ue]=If(e.history,f,_,fe,b,I,$,F,Se,Qe,s,H,j);if(To(we=>!(_&&_.some(Pt=>Pt.route.id===we))||je&&je.some(Pt=>Pt.route.id===we)),je.length===0&&Ue.length===0){let we=Ui();return ve(b,le({matches:_,loaderData:{},errors:j||null},H?{actionData:H}:{},we?{fetchers:new Map(f.fetchers)}:{})),{shortCircuited:!0}}if(!O){Ue.forEach(Pt=>{let Pr=f.fetchers.get(Pt.key),We={state:"loading",data:Pr&&Pr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(Pt.key,We)});let we=H||f.actionData;Z(le({navigation:te},we?Object.keys(we).length===0?{actionData:null}:{actionData:we}:{},Ue.length>0?{fetchers:new Map(f.fetchers)}:{}))}K=++ne,Ue.forEach(we=>{we.controller&&U.set(we.key,we.controller)});let Kt=()=>Ue.forEach(we=>Ht(we.key));E&&E.signal.addEventListener("abort",Kt);let{results:_o,loaderResults:os,fetcherResults:Gi}=await kr(f.matches,_,je,Ue,R);if(R.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",Kt),Ue.forEach(we=>U.delete(we.key));let ln=Uf(_o);if(ln)return await Lt(f,ln,{replace:V}),{shortCircuited:!0};let{loaderData:Qi,errors:is}=Af(f,_,je,os,j,Ue,Gi,N);N.forEach((we,Pt)=>{we.subscribe(Pr=>{(Pr||we.done)&&N.delete(Pt)})});let ls=Ui(),as=Wi(K),Yi=ls||as||Ue.length>0;return le({loaderData:Qi,errors:is},Yi?{fetchers:new Map(f.fetchers)}:{})}function Sr(R){return f.fetchers.get(R)||dy}function Rn(R,b,_,z){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(R)&&Ht(R);let B=a||l,W=Iu(f.location,f.matches,s,u.v7_prependBasename,_,b,z==null?void 0:z.relative),V=Gr(B,W,s);if(!V){Ro(R,b,At(404,{pathname:W}));return}let{path:H,submission:j}=Lf(u.v7_normalizeFormMethod,!0,W,z),te=Du(V,H);if(P=(z&&z.preventScrollReset)===!0,j&&sn(j.formMethod)){wr(R,b,H,te,V,j);return}Se.set(R,{routeId:b,path:H}),Eo(R,b,H,te,V,j)}async function wr(R,b,_,z,B,W){if(Me(),Se.delete(R),!z.route.action&&!z.route.lazy){let We=At(405,{method:W.formMethod,pathname:_,routeId:b});Ro(R,b,We);return}let V=f.fetchers.get(R),H=le({state:"submitting"},W,{data:V&&V.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(R,H),Z({fetchers:new Map(f.fetchers)});let j=new AbortController,te=Ao(e.history,_,j.signal,W);U.set(R,j);let fe=await jo("action",te,z,B,i,o,s);if(te.signal.aborted){U.get(R)===j&&U.delete(R);return}if(to(fe)){U.delete(R),ee.add(R);let We=le({state:"loading"},W,{data:void 0," _hasFetcherDoneAnything ":!0});return f.fetchers.set(R,We),Z({fetchers:new Map(f.fetchers)}),Lt(f,fe,{submission:W,isFetchActionRedirect:!0})}if(ri(fe)){Ro(R,b,fe.error);return}if(nr(fe))throw At(400,{type:"defer-action"});let Qe=f.navigation.location||f.location,je=Ao(e.history,Qe,j.signal),Ue=a||l,Kt=f.navigation.state!=="idle"?Gr(Ue,f.navigation.location,s):f.matches;X(Kt,"Didn't find any matches after fetcher action");let _o=++ne;G.set(R,_o);let os=le({state:"loading",data:fe.data},W,{" _hasFetcherDoneAnything ":!0});f.fetchers.set(R,os);let[Gi,ln]=If(e.history,f,Kt,W,Qe,I,$,F,Se,Ue,s,{[z.route.id]:fe.data},void 0);ln.filter(We=>We.key!==R).forEach(We=>{let ss=We.key,Sd=f.fetchers.get(ss),um={state:"loading",data:Sd&&Sd.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(ss,um),We.controller&&U.set(ss,We.controller)}),Z({fetchers:new Map(f.fetchers)});let Qi=()=>ln.forEach(We=>Ht(We.key));j.signal.addEventListener("abort",Qi);let{results:is,loaderResults:ls,fetcherResults:as}=await kr(f.matches,Kt,Gi,ln,je);if(j.signal.aborted)return;j.signal.removeEventListener("abort",Qi),G.delete(R),U.delete(R),ln.forEach(We=>U.delete(We.key));let Yi=Uf(is);if(Yi)return Lt(f,Yi);let{loaderData:we,errors:Pt}=Af(f,f.matches,Gi,ls,void 0,ln,as,N);if(f.fetchers.has(R)){let We={state:"idle",data:fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(R,We)}let Pr=Wi(_o);f.navigation.state==="loading"&&_o>K?(X(C,"Expected pending action"),E&&E.abort(),ve(f.navigation.location,{matches:Kt,loaderData:we,errors:Pt,fetchers:new Map(f.fetchers)})):(Z(le({errors:Pt,loaderData:Ff(f.loaderData,we,Kt,Pt)},Pr||ln.length>0?{fetchers:new Map(f.fetchers)}:{})),I=!1)}async function Eo(R,b,_,z,B,W){let V=f.fetchers.get(R),H=le({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W,{data:V&&V.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(R,H),Z({fetchers:new Map(f.fetchers)});let j=new AbortController,te=Ao(e.history,_,j.signal);U.set(R,j);let fe=await jo("loader",te,z,B,i,o,s);if(nr(fe)&&(fe=await u1(fe,te.signal,!0)||fe),U.get(R)===j&&U.delete(R),te.signal.aborted)return;if(to(fe)){ee.add(R),await Lt(f,fe);return}if(ri(fe)){let je=Qr(f.matches,b);f.fetchers.delete(R),Z({fetchers:new Map(f.fetchers),errors:{[je.route.id]:fe.error}});return}X(!nr(fe),"Unhandled fetcher deferred data");let Qe={state:"idle",data:fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(R,Qe),Z({fetchers:new Map(f.fetchers)})}async function Lt(R,b,_){let{submission:z,replace:B,isFetchActionRedirect:W}=_===void 0?{}:_;b.revalidate&&(I=!0);let V=Ri(R.location,b.location,le({_isRedirect:!0},W?{_isFetchActionRedirect:!0}:{}));if(X(V,"Expected a location on the redirect navigation"),i1.test(b.location)&&n){let je=e.history.createURL(b.location),Ue=yo(je.pathname,s)==null;if(t.location.origin!==je.origin||Ue){B?t.location.replace(b.location):t.location.assign(b.location);return}}E=null;let H=B===!0?$e.Replace:$e.Push,{formMethod:j,formAction:te,formEncType:fe,formData:Qe}=R.navigation;!z&&j&&te&&Qe&&fe&&(z={formMethod:j,formAction:te,formEncType:fe,formData:Qe}),cy.has(b.status)&&z&&sn(z.formMethod)?await Rt(H,V,{submission:le({},z,{formAction:b.location}),preventScrollReset:P}):W?await Rt(H,V,{overrideNavigation:{state:"loading",location:V,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:z,preventScrollReset:P}):await Rt(H,V,{overrideNavigation:{state:"loading",location:V,formMethod:z?z.formMethod:void 0,formAction:z?z.formAction:void 0,formEncType:z?z.formEncType:void 0,formData:z?z.formData:void 0},preventScrollReset:P})}async function kr(R,b,_,z,B){let W=await Promise.all([..._.map(j=>jo("loader",B,j,b,i,o,s)),...z.map(j=>j.matches&&j.match&&j.controller?jo("loader",Ao(e.history,j.path,j.controller.signal),j.match,j.matches,i,o,s):{type:Le.error,error:At(404,{pathname:j.path})})]),V=W.slice(0,_.length),H=W.slice(_.length);return await Promise.all([Wf(R,_,V,V.map(()=>B.signal),!1,f.loaderData),Wf(R,z.map(j=>j.match),H,z.map(j=>j.controller?j.controller.signal:null),!0)]),{results:W,loaderResults:V,fetcherResults:H}}function Me(){I=!0,$.push(...To()),Se.forEach((R,b)=>{U.has(b)&&(F.push(b),Ht(b))})}function Ro(R,b,_){let z=Qr(f.matches,b);Po(R),Z({errors:{[z.route.id]:_},fetchers:new Map(f.fetchers)})}function Po(R){let b=f.fetchers.get(R);U.has(R)&&!(b&&b.state==="loading"&&G.has(R))&&Ht(R),Se.delete(R),G.delete(R),ee.delete(R),f.fetchers.delete(R)}function Ht(R){let b=U.get(R);X(b,"Expected fetch controller: "+R),b.abort(),U.delete(R)}function Cr(R){for(let b of R){let z={state:"idle",data:Sr(b).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(b,z)}}function Ui(){let R=[],b=!1;for(let _ of ee){let z=f.fetchers.get(_);X(z,"Expected fetcher: "+_),z.state==="loading"&&(ee.delete(_),R.push(_),b=!0)}return Cr(R),b}function Wi(R){let b=[];for(let[_,z]of G)if(z0}function Er(R,b){let _=f.blockers.get(R)||zf;return D.get(R)!==b&&D.set(R,b),_}function It(R){f.blockers.delete(R),D.delete(R)}function Rr(R,b){let _=f.blockers.get(R)||zf;X(_.state==="unblocked"&&b.state==="blocked"||_.state==="blocked"&&b.state==="blocked"||_.state==="blocked"&&b.state==="proceeding"||_.state==="blocked"&&b.state==="unblocked"||_.state==="proceeding"&&b.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+b.state),f.blockers.set(R,b),Z({blockers:new Map(f.blockers)})}function bo(R){let{currentLocation:b,nextLocation:_,historyAction:z}=R;if(D.size===0)return;D.size>1&&fo(!1,"A router only supports one blocker at a time");let B=Array.from(D.entries()),[W,V]=B[B.length-1],H=f.blockers.get(W);if(!(H&&H.state==="proceeding")&&V({currentLocation:b,nextLocation:_,historyAction:z}))return W}function To(R){let b=[];return N.forEach((_,z)=>{(!R||R(z))&&(_.cancel(),b.push(z),N.delete(z))}),b}function Q(R,b,_){if(p=R,y=b,S=_||(z=>z.key),!v&&f.navigation===Is){v=!0;let z=Hi(f.location,f.matches);z!=null&&Z({restoreScrollPosition:z})}return()=>{p=null,y=null,S=null}}function Vi(R,b){if(p&&S&&y){let _=b.map(B=>Vf(B,f.loaderData)),z=S(R,_)||R.key;p[z]=y()}}function Hi(R,b){if(p&&S&&y){let _=b.map(W=>Vf(W,f.loaderData)),z=S(R,_)||R.key,B=p[z];if(typeof B=="number")return B}return null}function Ki(R){i={},a=Lu(R,o,void 0,i)}return g={get basename(){return s},get state(){return f},get routes(){return l},initialize:re,subscribe:et,enableScrollRestoration:Q,navigate:Re,fetch:Rn,revalidate:zt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Sr,deleteFetcher:Po,dispose:ae,getBlocker:Er,deleteBlocker:It,_internalFetchControllers:U,_internalActiveDeferreds:N,_internalSetRoutes:Ki},g}function hy(e){return e!=null&&"formData"in e}function Iu(e,t,n,r,o,i,l){let a,s;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){s=c;break}}else a=t,s=t[t.length-1];let u=Pa(o||".",Ii(a).map(c=>c.pathnameBase),yo(e.pathname,n)||e.pathname,l==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Gc(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:hn([n,u.pathname])),fr(u)}function Lf(e,t,n,r){if(!r||!hy(r))return{path:n};if(r.formMethod&&!wy(r.formMethod))return{path:n,error:At(405,{method:r.formMethod})};let o;if(r.formData){let a=r.formMethod||"get";if(o={formMethod:e?a.toUpperCase():a.toLowerCase(),formAction:s1(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},sn(o.formMethod))return{path:n,submission:o}}let i=Cn(n),l=a1(r.formData);return t&&i.search&&Gc(i.search)&&l.append("index",""),i.search="?"+l,{path:fr(i),submission:o}}function my(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function If(e,t,n,r,o,i,l,a,s,u,c,d,p){let S=p?Object.values(p)[0]:d?Object.values(d)[0]:void 0,y=e.createURL(t.location),v=e.createURL(o),k=p?Object.keys(p)[0]:void 0,h=my(n,k).filter((f,C)=>{if(f.route.lazy)return!0;if(f.route.loader==null)return!1;if(gy(t.loaderData,t.matches[C],f)||l.some(O=>O===f.route.id))return!0;let P=t.matches[C],E=f;return Df(f,le({currentUrl:y,currentParams:P.params,nextUrl:v,nextParams:E.params},r,{actionResult:S,defaultShouldRevalidate:i||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||l1(P,E)}))}),g=[];return s.forEach((f,C)=>{if(!n.some(I=>I.route.id===f.routeId))return;let P=Gr(u,f.path,c);if(!P){g.push({key:C,routeId:f.routeId,path:f.path,matches:null,match:null,controller:null});return}let E=Du(P,f.path);if(a.includes(C)){g.push({key:C,routeId:f.routeId,path:f.path,matches:P,match:E,controller:new AbortController});return}Df(E,le({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:i}))&&g.push({key:C,routeId:f.routeId,path:f.path,matches:P,match:E,controller:new AbortController})}),[h,g]}function gy(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function l1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Df(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function jf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];X(o,"No route found in manifest");let i={};for(let l in r){let s=o[l]!==void 0&&l!=="hasErrorBoundary";fo(!s,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!Av.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,le({},t(o),{lazy:void 0}))}async function jo(e,t,n,r,o,i,l,a,s,u){a===void 0&&(a=!1),s===void 0&&(s=!1);let c,d,p,S=k=>{let m,h=new Promise((g,f)=>m=f);return p=()=>m(),t.signal.addEventListener("abort",p),Promise.race([k({request:t,params:n.params,context:u}),h])};try{let k=n.route[e];if(n.route.lazy)if(k)d=(await Promise.all([S(k),jf(n.route,i,o)]))[0];else if(await jf(n.route,i,o),k=n.route[e],k)d=await S(k);else if(e==="action"){let m=new URL(t.url),h=m.pathname+m.search;throw At(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:Le.data,data:void 0};else if(k)d=await S(k);else{let m=new URL(t.url),h=m.pathname+m.search;throw At(404,{pathname:h})}X(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(k){c=Le.error,d=k}finally{p&&t.signal.removeEventListener("abort",p)}if(Sy(d)){let k=d.status;if(uy.has(k)){let g=d.headers.get("Location");if(X(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!i1.test(g))g=Iu(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,g);else if(!a){let f=new URL(t.url),C=g.startsWith("//")?new URL(f.protocol+g):new URL(g),P=yo(C.pathname,l)!=null;C.origin===f.origin&&P&&(g=C.pathname+C.search+C.hash)}if(a)throw d.headers.set("Location",g),d;return{type:Le.redirect,status:k,location:g,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:c||Le.data,response:d};let m,h=d.headers.get("Content-Type");return h&&/\bapplication\/json\b/.test(h)?m=await d.json():m=await d.text(),c===Le.error?{type:c,error:new Kc(k,d.statusText,m),headers:d.headers}:{type:Le.data,data:m,statusCode:d.status,headers:d.headers}}if(c===Le.error)return{type:c,error:d};if(xy(d)){var y,v;return{type:Le.deferred,deferredData:d,statusCode:(y=d.init)==null?void 0:y.status,headers:((v=d.init)==null?void 0:v.headers)&&new Headers(d.init.headers)}}return{type:Le.data,data:d}}function Ao(e,t,n,r){let o=e.createURL(s1(t)).toString(),i={signal:n};if(r&&sn(r.formMethod)){let{formMethod:l,formEncType:a,formData:s}=r;i.method=l.toUpperCase(),i.body=a==="application/x-www-form-urlencoded"?a1(s):s}return new Request(o,i)}function a1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function vy(e,t,n,r,o){let i={},l=null,a,s=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(X(!to(c),"Cannot handle redirect results in processLoaderData"),ri(c)){let S=Qr(e,p),y=c.error;r&&(y=Object.values(r)[0],r=void 0),l=l||{},l[S.route.id]==null&&(l[S.route.id]=y),i[p]=void 0,s||(s=!0,a=r1(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else nr(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:u}}function Af(e,t,n,r,o,i,l,a){let{loaderData:s,errors:u}=vy(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Bf(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function At(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"&&(a="defer() is not supported in actions")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Kc(e||500,l,new Error(a),!0)}function Uf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(to(n))return n}}function s1(e){let t=typeof e=="string"?Cn(e):e;return fr(le({},t,{hash:""}))}function yy(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function nr(e){return e.type===Le.deferred}function ri(e){return e.type===Le.error}function to(e){return(e&&e.type)===Le.redirect}function xy(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Sy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function wy(e){return sy.has(e.toLowerCase())}function sn(e){return ly.has(e.toLowerCase())}async function Wf(e,t,n,r,o,i){for(let l=0;ld.route.id===s.route.id),c=u!=null&&!l1(u,s)&&(i&&i[s.route.id])!==void 0;if(nr(a)&&(o||c)){let d=r[l];X(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await u1(a,d,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function u1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Le.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Le.error,error:o}}return{type:Le.data,data:e.deferredData.data}}}function Gc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Vf(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Du(e,t){let n=typeof t=="string"?Cn(t).search:t.search;if(e[e.length-1].route.index&&Gc(n||""))return e[e.length-1];let r=Ii(e);return r[r.length-1]}/** - * React Router v6.12.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ra(){return ra=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),l=x.useRef(!1);return d1(()=>{l.current=!0}),x.useCallback(function(s,u){if(u===void 0&&(u={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let c=Pa(s,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:hn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const Ey=x.createContext(null);function Ry(e){let t=x.useContext(on).outlet;return t&&x.createElement(Ey.Provider,{value:e},t)}function p8(){let{matches:e}=x.useContext(on),t=e[e.length-1];return t?t.params:{}}function f1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=x.useContext(on),{pathname:o}=xr(),i=JSON.stringify(Ii(r).map(l=>l.pathnameBase));return x.useMemo(()=>Pa(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Py(e,t,n){So()||X(!1);let{navigator:r}=x.useContext(xo),{matches:o}=x.useContext(on),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=xr(),u;if(t){var c;let v=typeof t=="string"?Cn(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||X(!1),u=v}else u=s;let d=u.pathname||"/",p=a==="/"?d:d.slice(a.length)||"/",S=Gr(e,{pathname:p}),y=$y(S&&S.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:hn([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:hn([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&y?x.createElement(ba.Provider,{value:{location:ra({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$e.Pop}},y):y}function by(){let e=Iy(),t=r1(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,i)}const Ty=x.createElement(by,null);class _y extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?x.createElement(on.Provider,{value:this.props.routeContext},x.createElement(c1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function My(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(Di);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(on.Provider,{value:t},r)}function $y(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=i.findIndex(s=>s.route.id&&(l==null?void 0:l[s.route.id]));a>=0||X(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,s,u)=>{let c=s.route.id?l==null?void 0:l[s.route.id]:null,d=null;n&&(d=s.route.errorElement||Ty);let p=t.concat(i.slice(0,u+1)),S=()=>{let y;return c?y=d:s.route.Component?y=x.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=a,x.createElement(My,{match:s,routeContext:{outlet:a,matches:p,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?x.createElement(_y,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:S(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):S()},null)}var ju;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(ju||(ju={}));var pr;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(pr||(pr={}));function Ny(e){let t=x.useContext(Di);return t||X(!1),t}function Xc(e){let t=x.useContext(Qc);return t||X(!1),t}function Oy(e){let t=x.useContext(on);return t||X(!1),t}function p1(e){let t=Oy(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function zy(){return Xc(pr.UseNavigation).navigation}function Ly(){let{matches:e,loaderData:t}=Xc(pr.UseMatches);return x.useMemo(()=>e.map(n=>{let{pathname:r,params:o}=n;return{id:n.route.id,pathname:r,params:o,data:t[n.route.id],handle:n.route.handle}}),[e,t])}function Iy(){var e;let t=x.useContext(c1),n=Xc(pr.UseRouteError),r=p1(pr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Dy(){let{router:e}=Ny(ju.UseNavigateStable),t=p1(pr.UseNavigateStable),n=x.useRef(!1);return d1(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ra({fromRouteId:t},i)))},[e,t])}const Hf="startTransition";function jy(e){let{fallbackElement:t,router:n}=e,[r,o]=x.useState(n.state),i=x.useCallback(u=>{Hf in ai?ai[Hf](()=>o(u)):o(u)},[o]);x.useLayoutEffect(()=>n.subscribe(i),[n,i]);let l=x.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:u=>n.navigate(u),push:(u,c,d)=>n.navigate(u,{state:c,preventScrollReset:d==null?void 0:d.preventScrollReset}),replace:(u,c,d)=>n.navigate(u,{replace:!0,state:c,preventScrollReset:d==null?void 0:d.preventScrollReset})}),[n]),a=n.basename||"/",s=x.useMemo(()=>({router:n,navigator:l,static:!1,basename:a}),[n,l,a]);return x.createElement(x.Fragment,null,x.createElement(Di.Provider,{value:s},x.createElement(Qc.Provider,{value:r},x.createElement(Uy,{basename:a,location:r.location,navigationType:r.historyAction,navigator:l},r.initialized?x.createElement(Ay,{routes:n.routes,state:r}):t))),null)}function Ay(e){let{routes:t,state:n}=e;return Py(t,void 0,n)}function Fy(e){let{to:t,replace:n,state:r,relative:o}=e;So()||X(!1);let{matches:i}=x.useContext(on),{pathname:l}=xr(),a=Yc(),s=Pa(t,Ii(i).map(c=>c.pathnameBase),l,o==="path"),u=JSON.stringify(s);return x.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:o}),[a,u,o,n,r]),null}function By(e){return Ry(e.context)}function Uy(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$e.Pop,navigator:i,static:l=!1}=e;So()&&X(!1);let a=t.replace(/^\/*/,"/"),s=x.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof r=="string"&&(r=Cn(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:S="default"}=r,y=x.useMemo(()=>{let v=yo(u,a);return v==null?null:{location:{pathname:v,search:c,hash:d,state:p,key:S},navigationType:o}},[a,u,c,d,p,S,o]);return y==null?null:x.createElement(xo.Provider,{value:s},x.createElement(ba.Provider,{children:n,value:y}))}var Kf;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Kf||(Kf={}));new Promise(()=>{});function Wy(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:x.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.12.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Hy(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ky(e,t){return e.button===0&&(!t||t==="_self")&&!Hy(e)}function Au(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Gy(e,t){let n=Au(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const Qy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Yy(e,t){return py({basename:t==null?void 0:t.basename,future:Pi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Iv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Xy(),routes:e,mapRouteProperties:Wy}).initialize()}function Xy(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Pi({},t,{errors:Zy(t.errors)})),t}function Zy(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Kc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){let i=new Error(o.message);i.stack="",n[r]=i}else n[r]=o;return n}const Jy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",qy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h1=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:s,to:u,preventScrollReset:c}=t,d=Vy(t,Qy),{basename:p}=x.useContext(xo),S,y=!1;if(typeof u=="string"&&qy.test(u)&&(S=u,Jy))try{let h=new URL(window.location.href),g=u.startsWith("//")?new URL(h.protocol+u):new URL(u),f=yo(g.pathname,p);g.origin===h.origin&&f!=null?u=f+g.search+g.hash:y=!0}catch{}let v=ky(u,{relative:o}),k=r2(u,{replace:l,state:a,target:s,preventScrollReset:c,relative:o});function m(h){r&&r(h),h.defaultPrevented||k(h)}return x.createElement("a",Pi({},d,{href:S||v,onClick:y||i?r:m,ref:n,target:s}))});function e2(e){let{getKey:t,storageKey:n}=e;return i2({getKey:t,storageKey:n}),null}var Fu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Fu||(Fu={}));var Bu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Bu||(Bu={}));function t2(e){let t=x.useContext(Di);return t||X(!1),t}function n2(e){let t=x.useContext(Qc);return t||X(!1),t}function r2(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,a=Yc(),s=xr(),u=f1(e,{relative:l});return x.useCallback(c=>{if(Ky(c,n)){c.preventDefault();let d=r!==void 0?r:fr(s)===fr(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[s,a,u,r,o,n,e,i,l])}function o2(e){let t=x.useRef(Au(e)),n=x.useRef(!1),r=xr(),o=x.useMemo(()=>Gy(r.search,n.current?null:t.current),[r.search]),i=Yc(),l=x.useCallback((a,s)=>{const u=Au(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,s)},[i,o]);return[o,l]}const Gf="react-router-scroll-positions";let hl={};function i2(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=t2(Fu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=n2(Bu.UseScrollRestoration),l=xr(),a=Ly(),s=zy();x.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),l2(x.useCallback(()=>{if(s.state==="idle"){let u=(t?t(l,a):null)||l.key;hl[u]=window.scrollY}sessionStorage.setItem(n||Gf,JSON.stringify(hl)),window.history.scrollRestoration="auto"},[n,t,s.state,l,a])),typeof document<"u"&&(x.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(n||Gf);u&&(hl=JSON.parse(u))}catch{}},[n]),x.useLayoutEffect(()=>{let u=r==null?void 0:r.enableScrollRestoration(hl,()=>window.scrollY,t);return()=>u&&u()},[r,t]),x.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let u=document.getElementById(l.hash.slice(1));if(u){u.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function l2(e,t){let{capture:n}=t||{};x.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const a2="modulepreload",s2=function(e){return"/"+e},Qf={},Zc=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=s2(i),i in Qf)return;Qf[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":a2,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},u2={black:"#000",white:"#fff"},bi=u2,c2={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Tr=c2,d2={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_r=d2,f2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Mr=f2,p2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},$r=p2,h2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Nr=h2,m2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Fo=m2,g2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},v2=g2;function Jn(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function m1(e){if(!Jn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=m1(e[n])}),t}function nn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Jn(e)&&Jn(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Jn(t[o])&&o in e&&Jn(e[o])?r[o]=nn(e[o],t[o],n):n.clone?r[o]=Jn(t[o])?m1(t[o]):t[o]:r[o]=t[o])}),r}function hr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function y2(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function x2(e,t){return()=>null}function S2(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function mn(e){return e&&e.ownerDocument||document}function Ta(e){return mn(e).defaultView||window}function w2(e,t){return()=>null}function oa(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const k2=typeof window<"u"?x.useLayoutEffect:x.useEffect,ia=k2;let Yf=0;function C2(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Yf+=1,n(`mui-${Yf}`))},[t]),r}const Xf=ai["useId".toString()];function E2(e){if(Xf!==void 0){const t=Xf();return e??t}return C2(e)}function R2(e,t,n,r,o){return null}function P2({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,l]=x.useState(t),a=o?e:i,s=x.useCallback(u=>{o||l(u)},[]);return[a,s]}function rr(e){const t=x.useRef(e);return ia(()=>{t.current=e}),x.useCallback((...n)=>(0,t.current)(...n),[])}function Sn(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{oa(n,t)})},e)}let _a=!0,Wu=!1,Zf;const b2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function T2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&b2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _2(e){e.metaKey||e.altKey||e.ctrlKey||(_a=!0)}function Ds(){_a=!1}function M2(){this.visibilityState==="hidden"&&Wu&&(_a=!0)}function $2(e){e.addEventListener("keydown",_2,!0),e.addEventListener("mousedown",Ds,!0),e.addEventListener("pointerdown",Ds,!0),e.addEventListener("touchstart",Ds,!0),e.addEventListener("visibilitychange",M2,!0)}function N2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return _a||T2(t)}function Jc(){const e=x.useCallback(o=>{o!=null&&$2(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Wu=!0,window.clearTimeout(Zf),Zf=window.setTimeout(()=>{Wu=!1},100),t.current=!1,!0):!1}function r(o){return N2(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function O2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function qc(e,t){const n={...t};return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]={...i},Object.keys(o).forEach(l=>{n[r][l]=qc(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kt(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const Jf=e=>e,z2=()=>{let e=Jf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Jf}}},L2=z2(),ed=L2,I2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ft(e,t,n="Mui"){const r=I2[t];return r?`${n}-${r}`:`${ed.generate(e)}-${t}`}function Ct(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ft(e,o,n)}),r}const mr="$$material";function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function g1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var D2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,j2=g1(function(e){return D2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function A2(e){if(e.sheet)return e.sheet;for(var t=0;t0?He(wo,--dt):0,po--,Ne===10&&(po=1,$a--),Ne}function yt(){return Ne=dt2||_i(Ne)>3?"":" "}function J2(e,t){for(;--t&&yt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return ji(e,Ml()+(t<6&&rn()==32&&yt()==32))}function Hu(e){for(;yt();)switch(Ne){case e:return dt;case 34:case 39:e!==34&&e!==39&&Hu(Ne);break;case 40:e===41&&Hu(e);break;case 92:yt();break}return dt}function q2(e,t){for(;yt()&&e+Ne!==47+10;)if(e+Ne===42+42&&rn()===47)break;return"/*"+ji(t,dt-1)+"*"+Ma(e===47?e:yt())}function e3(e){for(;!_i(rn());)yt();return ji(e,dt)}function t3(e){return k1(Nl("",null,null,null,[""],e=w1(e),0,[0],e))}function Nl(e,t,n,r,o,i,l,a,s){for(var u=0,c=0,d=l,p=0,S=0,y=0,v=1,k=1,m=1,h=0,g="",f=o,C=i,P=r,E=g;k;)switch(y=h,h=yt()){case 40:if(y!=108&&He(E,d-1)==58){Vu(E+=ie($l(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=$l(h);break;case 9:case 10:case 13:case 32:E+=Z2(y);break;case 92:E+=J2(Ml()-1,7);continue;case 47:switch(rn()){case 42:case 47:ml(n3(q2(yt(),Ml()),t,n),s);break;default:E+="/"}break;case 123*v:a[u++]=Yt(E)*m;case 125*v:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+c:m==-1&&(E=ie(E,/\f/g,"")),S>0&&Yt(E)-d&&ml(S>32?ep(E+";",r,n,d-1):ep(ie(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(ml(P=qf(E,t,n,u,c,o,a,g,f=[],C=[],d),i),h===123)if(c===0)Nl(E,t,P,P,f,i,d,a,C);else switch(p===99&&He(E,3)===110?100:p){case 100:case 108:case 109:case 115:Nl(e,P,P,r&&ml(qf(e,P,P,0,0,o,a,g,o,f=[],d),C),o,C,d,a,r?f:C);break;default:Nl(E,P,P,P,[""],C,0,a,C)}}u=c=S=0,v=m=1,g=E="",d=l;break;case 58:d=1+Yt(E),S=y;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&X2()==125)continue}switch(E+=Ma(h),h*v){case 38:m=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(Yt(E)-1)*m,m=1;break;case 64:rn()===45&&(E+=$l(yt())),p=rn(),c=d=Yt(g=E+=e3(Ml())),h++;break;case 45:y===45&&Yt(E)==2&&(v=0)}}return i}function qf(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,p=o===0?i:[""],S=rd(p),y=0,v=0,k=0;y0?p[m]+" "+h:ie(h,/&\f/g,p[m])))&&(s[k++]=g);return Na(e,t,n,o===0?td:a,s,u,c)}function n3(e,t,n){return Na(e,t,n,v1,Ma(Y2()),Ti(e,2,-2),0)}function ep(e,t,n,r){return Na(e,t,n,nd,Ti(e,0,r),Ti(e,r+1,-1),r)}function no(e,t){for(var n="",r=rd(e),o=0;o6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+la+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vu(e,"stretch")?C1(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Yt(e)-3-(~Vu(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(He(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ze+e+e}return e}var d3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case nd:t.return=C1(t.value,t.length);break;case y1:return no([Bo(t,{value:ie(t.value,"@","@"+oe)})],o);case td:if(t.length)return Q2(t.props,function(i){switch(G2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return no([Bo(t,{props:[ie(i,/:(read-\w+)/,":"+la+"$1")]})],o);case"::placeholder":return no([Bo(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Bo(t,{props:[ie(i,/:(plac\w+)/,":"+la+"$1")]}),Bo(t,{props:[ie(i,/:(plac\w+)/,Ze+"input-$1")]})],o)}return""})}},f3=[d3],p3=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var k=v.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||f3,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var k=v.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var R3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},P3=/[A-Z]|^ms/g,b3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,M1=function(t){return t.charCodeAt(1)===45},np=function(t){return t!=null&&typeof t!="boolean"},js=g1(function(e){return M1(e)?e:e.replace(P3,"-$&").toLowerCase()}),rp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(b3,function(r,o,i){return Xt={name:o,styles:i,next:Xt},o})}return R3[t]!==1&&!M1(t)&&typeof n=="number"&&n!==0?n+"px":n};function Mi(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Xt={name:n.name,styles:n.styles,next:Xt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Xt={name:r.name,styles:r.styles,next:Xt},r=r.next;var o=n.styles+";";return o}return T3(e,t,n)}case"function":{if(e!==void 0){var i=Xt,l=n(e);return Xt=i,Mi(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function T3(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?N3:O3},ap=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},z3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return T1(n,r,o),M3(function(){return _1(n,r,o)}),null},L3=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=ap(t,n,r),s=a||lp(o),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,S=1;St(D3(o)?n:o):t;return w.jsx($3,{styles:r})}/** - * @mui/styled-engine v5.13.2 - * - * @license MIT - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */function z1(e,t){return Ku(e,t)}const A3=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},F3=["values","unit","step"],B3=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function U3(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,F3),i=B3(t),l=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function s(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,S){const y=l.indexOf(S);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:S)-r/100}${n})`}function c(p){return l.indexOf(p)+1`@media (min-width:${ud[e]}px)`};function wn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||sp;return t.reduce((l,a,s)=>(l[i.up(i.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const i=r.breakpoints||sp;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||ud).indexOf(a)!==-1){const s=i.up(a);l[s]=n(t[a],a)}else{const s=a;l[s]=t[s]}return l},{})}return n(t)}function L1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function I1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function h8(e,...t){const n=L1(e),r=[n,...t].reduce((o,i)=>nn(o,i),{});return I1(Object.keys(n),r)}function H3(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function m8({values:e,breakpoints:t,base:n}){const r=n||H3(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,s)=>(Array.isArray(e)?(l[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function ho(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function aa(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=ho(e,n)||r,t&&(o=t(o,r,e)),o}function ue(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],s=l.theme,u=ho(s,r)||{};return wn(l,a,d=>{let p=aa(u,o,d);return d===p&&typeof d=="string"&&(p=aa(u,o,`${t}${d==="default"?"":Y(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function K3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const G3={m:"margin",p:"padding"},Q3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},up={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Y3=K3(e=>{if(e.length>2)if(up[e])e=up[e];else return[e];const[t,n]=e.split(""),r=G3[t],o=Q3[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),cd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cd,...dd];function Fi(e,t,n,r){var o;const i=(o=ho(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function D1(e){return Fi(e,"spacing",8)}function Bi(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function X3(e,t){return n=>e.reduce((r,o)=>(r[o]=Bi(t,n),r),{})}function Z3(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Y3(n),i=X3(o,r),l=e[n];return wn(e,l,i)}function j1(e,t){const n=D1(e.theme);return Object.keys(e).map(r=>Z3(e,t,r,n)).reduce(oi,{})}function Pe(e){return j1(e,cd)}Pe.propTypes={};Pe.filterProps=cd;function be(e){return j1(e,dd)}be.propTypes={};be.filterProps=dd;function J3(e=8){if(e.mui)return e;const t=D1({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Va(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?oi(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Jt(e){return typeof e!="number"?e:`${e}px solid`}const q3=ue({prop:"border",themeKey:"borders",transform:Jt}),e4=ue({prop:"borderTop",themeKey:"borders",transform:Jt}),t4=ue({prop:"borderRight",themeKey:"borders",transform:Jt}),n4=ue({prop:"borderBottom",themeKey:"borders",transform:Jt}),r4=ue({prop:"borderLeft",themeKey:"borders",transform:Jt}),o4=ue({prop:"borderColor",themeKey:"palette"}),i4=ue({prop:"borderTopColor",themeKey:"palette"}),l4=ue({prop:"borderRightColor",themeKey:"palette"}),a4=ue({prop:"borderBottomColor",themeKey:"palette"}),s4=ue({prop:"borderLeftColor",themeKey:"palette"}),Ha=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Fi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Bi(t,r)});return wn(e,e.borderRadius,n)}return null};Ha.propTypes={};Ha.filterProps=["borderRadius"];Va(q3,e4,t4,n4,r4,o4,i4,l4,a4,s4,Ha);const Ka=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Fi(e.theme,"spacing",8),n=r=>({gap:Bi(t,r)});return wn(e,e.gap,n)}return null};Ka.propTypes={};Ka.filterProps=["gap"];const Ga=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Fi(e.theme,"spacing",8),n=r=>({columnGap:Bi(t,r)});return wn(e,e.columnGap,n)}return null};Ga.propTypes={};Ga.filterProps=["columnGap"];const Qa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Fi(e.theme,"spacing",8),n=r=>({rowGap:Bi(t,r)});return wn(e,e.rowGap,n)}return null};Qa.propTypes={};Qa.filterProps=["rowGap"];const u4=ue({prop:"gridColumn"}),c4=ue({prop:"gridRow"}),d4=ue({prop:"gridAutoFlow"}),f4=ue({prop:"gridAutoColumns"}),p4=ue({prop:"gridAutoRows"}),h4=ue({prop:"gridTemplateColumns"}),m4=ue({prop:"gridTemplateRows"}),g4=ue({prop:"gridTemplateAreas"}),v4=ue({prop:"gridArea"});Va(Ka,Ga,Qa,u4,c4,d4,f4,p4,h4,m4,g4,v4);function ro(e,t){return t==="grey"?t:e}const y4=ue({prop:"color",themeKey:"palette",transform:ro}),x4=ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ro}),S4=ue({prop:"backgroundColor",themeKey:"palette",transform:ro});Va(y4,x4,S4);function mt(e){return e<=1&&e!==0?`${e*100}%`:e}const w4=ue({prop:"width",transform:mt}),fd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||ud[n]||mt(n)}};return wn(e,e.maxWidth,t)}return null};fd.filterProps=["maxWidth"];const k4=ue({prop:"minWidth",transform:mt}),C4=ue({prop:"height",transform:mt}),E4=ue({prop:"maxHeight",transform:mt}),R4=ue({prop:"minHeight",transform:mt});ue({prop:"size",cssProperty:"width",transform:mt});ue({prop:"size",cssProperty:"height",transform:mt});const P4=ue({prop:"boxSizing"});Va(w4,fd,k4,C4,E4,R4,P4);const b4={border:{themeKey:"borders",transform:Jt},borderTop:{themeKey:"borders",transform:Jt},borderRight:{themeKey:"borders",transform:Jt},borderBottom:{themeKey:"borders",transform:Jt},borderLeft:{themeKey:"borders",transform:Jt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ha},color:{themeKey:"palette",transform:ro},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ro},backgroundColor:{themeKey:"palette",transform:ro},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ka},rowGap:{style:Qa},columnGap:{style:Ga},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mt},maxWidth:{style:fd},minWidth:{transform:mt},height:{transform:mt},maxHeight:{transform:mt},minHeight:{transform:mt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ya=b4;function T4(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _4(e,t){return typeof e=="function"?e(t):e}function M4(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=ho(o,u)||{};return d?d(l):wn(l,r,y=>{let v=aa(p,c,y);return y===v&&typeof y=="string"&&(v=aa(p,c,`${n}${y==="default"?"":Y(y)}`,y)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Ya;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=L1(i.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(S=>{const y=_4(u[S],i);if(y!=null)if(typeof y=="object")if(l[S])p=oi(p,e(S,y,i,l));else{const v=wn({theme:i},y,k=>({[S]:k}));T4(v,y)?p[S]=t({sx:y,theme:i}):p=oi(p,v)}else p=oi(p,e(S,y,i,l))}),I1(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const A1=M4();A1.filterProps=["sx"];const Xa=A1,$4=["breakpoints","palette","spacing","shape"];function Za(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=se(e,$4),a=U3(n),s=J3(o);let u=nn({breakpoints:a,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:s,shape:T({},V3,i)},l);return u=t.reduce((c,d)=>nn(c,d),u),u.unstable_sxConfig=T({},Ya,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return Xa({sx:d,theme:this})},u}function N4(e){return Object.keys(e).length===0}function F1(e=null){const t=x.useContext(Wa);return!t||N4(t)?e:t}const O4=Za();function Ja(e=O4){return F1(e)}function z4({styles:e,themeId:t,defaultTheme:n={}}){const r=Ja(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(j3,{styles:o})}const L4=["sx"],I4=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ya;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function B1(e){const{sx:t}=e,n=se(e,L4),{systemProps:r,otherProps:o}=I4(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return Jn(a)?T({},r,a):r}:i=T({},r,t),T({},o,{sx:i})}function U1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Xa);return x.forwardRef(function(s,u){const c=Ja(n),d=B1(s),{className:p,component:S="div"}=d,y=se(d,D4);return w.jsx(i,T({as:S,ref:u,className:pe(p,o?o(r):r),theme:t&&c[t]||c},y))})}const A4=["variant"];function cp(e){return e.length===0}function W1(e){const{variant:t}=e,n=se(e,A4);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=cp(r)?e[o]:Y(e[o]):r+=`${cp(r)?o:Y(o)}${Y(e[o].toString())}`}),r}const F4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function B4(e){return Object.keys(e).length===0}function U4(e){return typeof e=="string"&&e.charCodeAt(0)>96}const W4=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,V4=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=W1(o.props);r[i]=o.style}),r},H4=(e,t,n,r)=>{var o,i;const{ownerState:l={}}=e,a=[],s=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return s&&s.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{l[d]!==u.props[d]&&e[d]!==u.props[d]&&(c=!1)}),c&&a.push(t[W1(u.props)])}),a};function ii(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const K4=Za();function Uo({defaultTheme:e,theme:t,themeId:n}){return B4(t)?e:t[n]||t}function V1(e={}){const{themeId:t,defaultTheme:n=K4,rootShouldForwardProp:r=ii,slotShouldForwardProp:o=ii}=e,i=l=>Xa(T({},l,{theme:Uo(T({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{A3(l,f=>f.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p}=a,S=se(a,F4),y=c!==void 0?c:u&&u!=="Root"||!1,v=d||!1;let k,m=ii;u==="Root"?m=r:u?m=o:U4(l)&&(m=void 0);const h=z1(l,T({shouldForwardProp:m,label:k},S)),g=(f,...C)=>{const P=C?C.map($=>typeof $=="function"&&$.__emotion_real!==$?F=>$(T({},F,{theme:Uo(T({},F,{defaultTheme:n,themeId:t}))})):$):[];let E=f;s&&p&&P.push($=>{const F=Uo(T({},$,{defaultTheme:n,themeId:t})),U=W4(s,F);if(U){const ne={};return Object.entries(U).forEach(([K,G])=>{ne[K]=typeof G=="function"?G(T({},$,{theme:F})):G}),p($,ne)}return null}),s&&!y&&P.push($=>{const F=Uo(T({},$,{defaultTheme:n,themeId:t}));return H4($,V4(s,F),F,s)}),v||P.push(i);const O=P.length-C.length;if(Array.isArray(f)&&O>0){const $=new Array(O).fill("");E=[...f,...$],E.raw=[...f.raw,...$]}else typeof f=="function"&&f.__emotion_real!==f&&(E=$=>f(T({},$,{theme:Uo(T({},$,{defaultTheme:n,themeId:t}))})));const I=h(E,...P);return l.muiName&&(I.muiName=l.muiName),I};return h.withConfig&&(g.withConfig=h.withConfig),g}}const G4=V1(),Q4=G4;function Y4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:qc(t.components[n].defaultProps,r)}function H1({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ja(n);return r&&(o=o[r]||o),Y4({theme:o,name:t,props:e})}function pd(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function X4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function gr(e){if(e.type)return e;if(e.charAt(0)==="#")return gr(X4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(hr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(hr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function qa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Z4(e){e=gr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),qa({type:a,values:s})}function dp(e){e=gr(e);let t=e.type==="hsl"||e.type==="hsla"?gr(Z4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function J4(e,t){const n=dp(e),r=dp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fn(e,t){return e=gr(e),t=pd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qa(e)}function q4(e,t){if(e=gr(e),t=pd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qa(e)}function e5(e,t){if(e=gr(e),t=pd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qa(e)}const t5=x.createContext(null),K1=t5;function G1(){return x.useContext(K1)}const n5=typeof Symbol=="function"&&Symbol.for,r5=n5?Symbol.for("mui.nested"):"__THEME_NESTED__";function o5(e,t){return typeof t=="function"?t(e):{...e,...t}}function i5(e){const{children:t,theme:n}=e,r=G1(),o=x.useMemo(()=>{const i=r===null?n:o5(r,n);return i!=null&&(i[r5]=r!==null),i},[n,r]);return w.jsx(K1.Provider,{value:o,children:t})}const fp={};function pp(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),l=e?T({},t,{[e]:i}):i;return r?()=>l:l}return e?T({},t,{[e]:n}):T({},t,n)},[e,t,n,r])}function l5(e){const{children:t,theme:n,themeId:r}=e,o=F1(fp),i=G1()||fp,l=pp(r,o,n),a=pp(r,i,n,!0);return w.jsx(i5,{theme:a,children:w.jsx(Wa.Provider,{value:l,children:t})})}const a5=["className","component","disableGutters","fixed","maxWidth","classes"],s5=Za(),u5=Q4("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Y(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),c5=e=>H1({props:e,name:"MuiContainer",defaultTheme:s5}),d5=(e,t)=>{const n=s=>ft(t,s),{classes:r,fixed:o,disableGutters:i,maxWidth:l}=e,a={root:["root",l&&`maxWidth${Y(String(l))}`,o&&"fixed",i&&"disableGutters"]};return kt(a,n,r)};function f5(e={}){const{createStyledComponent:t=u5,useThemeProps:n=c5,componentName:r="MuiContainer"}=e,o=t(({theme:l,ownerState:a})=>T({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}),({theme:l,ownerState:a})=>a.fixed&&Object.keys(l.breakpoints.values).reduce((s,u)=>{const c=u,d=l.breakpoints.values[c];return d!==0&&(s[l.breakpoints.up(c)]={maxWidth:`${d}${l.breakpoints.unit}`}),s},{}),({theme:l,ownerState:a})=>T({},a.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[l.breakpoints.up(a.maxWidth)]:{maxWidth:`${l.breakpoints.values[a.maxWidth]}${l.breakpoints.unit}`}}));return x.forwardRef(function(a,s){const u=n(a),{className:c,component:d="div",disableGutters:p=!1,fixed:S=!1,maxWidth:y="lg"}=u,v=se(u,a5),k=T({},u,{component:d,disableGutters:p,fixed:S,maxWidth:y}),m=d5(k,r);return w.jsx(o,T({as:d,ownerState:k,className:pe(m.root,c),ref:s},v))})}function p5(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const h5=["mode","contrastThreshold","tonalOffset"],hp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:bi.white,default:bi.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},As={text:{primary:bi.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:bi.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function mp(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=e5(e.main,o):t==="dark"&&(e.dark=q4(e.main,i)))}function m5(e="light"){return e==="dark"?{main:Mr[200],light:Mr[50],dark:Mr[400]}:{main:Mr[700],light:Mr[400],dark:Mr[800]}}function g5(e="light"){return e==="dark"?{main:_r[200],light:_r[50],dark:_r[400]}:{main:_r[500],light:_r[300],dark:_r[700]}}function v5(e="light"){return e==="dark"?{main:Tr[500],light:Tr[300],dark:Tr[700]}:{main:Tr[700],light:Tr[400],dark:Tr[800]}}function y5(e="light"){return e==="dark"?{main:$r[400],light:$r[300],dark:$r[700]}:{main:$r[700],light:$r[500],dark:$r[900]}}function x5(e="light"){return e==="dark"?{main:Nr[400],light:Nr[300],dark:Nr[700]}:{main:Nr[800],light:Nr[500],dark:Nr[900]}}function S5(e="light"){return e==="dark"?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:"#ed6c02",light:Fo[500],dark:Fo[900]}}function w5(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,h5),i=e.primary||m5(t),l=e.secondary||g5(t),a=e.error||v5(t),s=e.info||y5(t),u=e.success||x5(t),c=e.warning||S5(t);function d(v){return J4(v,As.text.primary)>=n?As.text.primary:hp.text.primary}const p=({color:v,name:k,mainShade:m=500,lightShade:h=300,darkShade:g=700})=>{if(v=T({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(hr(11,k?` (${k})`:"",m));if(typeof v.main!="string")throw new Error(hr(12,k?` (${k})`:"",JSON.stringify(v.main)));return mp(v,"light",h,r),mp(v,"dark",g,r),v.contrastText||(v.contrastText=d(v.main)),v},S={dark:As,light:hp};return nn(T({common:T({},bi),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:v2,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},S[t]),o)}const k5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C5(e){return Math.round(e*1e5)/1e5}const gp={textTransform:"uppercase"},vp='"Roboto", "Helvetica", "Arial", sans-serif';function E5(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=vp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=se(n,k5),S=o/14,y=d||(m=>`${m/u*S}rem`),v=(m,h,g,f,C)=>T({fontFamily:r,fontWeight:m,fontSize:y(h),lineHeight:g},r===vp?{letterSpacing:`${C5(f/h)}em`}:{},C,c),k={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(l,48,1.167,0),h4:v(l,34,1.235,.25),h5:v(l,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(l,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(l,16,1.5,.15),body2:v(l,14,1.43,.15),button:v(a,14,1.75,.4,gp),caption:v(l,12,1.66,.4),overline:v(l,12,2.66,1,gp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nn(T({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},k),p,{clone:!1})}const R5=.2,P5=.14,b5=.12;function ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${R5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${P5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${b5})`].join(",")}const T5=["none",ye(0,2,1,-1,0,1,1,0,0,1,3,0),ye(0,3,1,-2,0,2,2,0,0,1,5,0),ye(0,3,3,-2,0,3,4,0,0,1,8,0),ye(0,2,4,-1,0,4,5,0,0,1,10,0),ye(0,3,5,-1,0,5,8,0,0,1,14,0),ye(0,3,5,-1,0,6,10,0,0,1,18,0),ye(0,4,5,-2,0,7,10,1,0,2,16,1),ye(0,5,5,-3,0,8,10,1,0,3,14,2),ye(0,5,6,-3,0,9,12,1,0,3,16,2),ye(0,6,6,-3,0,10,14,1,0,4,18,3),ye(0,6,7,-4,0,11,15,1,0,4,20,3),ye(0,7,8,-4,0,12,17,2,0,5,22,4),ye(0,7,8,-4,0,13,19,2,0,5,24,4),ye(0,7,9,-4,0,14,21,2,0,5,26,4),ye(0,8,9,-5,0,15,22,2,0,6,28,5),ye(0,8,10,-5,0,16,24,2,0,6,30,5),ye(0,8,11,-5,0,17,26,2,0,6,32,5),ye(0,9,11,-5,0,18,28,2,0,7,34,6),ye(0,9,12,-6,0,19,29,2,0,7,36,6),ye(0,10,13,-6,0,20,31,3,0,8,38,7),ye(0,10,13,-6,0,21,33,3,0,8,40,7),ye(0,10,14,-6,0,22,35,3,0,8,42,7),ye(0,11,14,-7,0,23,36,3,0,9,44,8),ye(0,11,15,-7,0,24,38,3,0,9,46,8)],_5=T5,M5=["duration","easing","delay"],$5={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},N5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function yp(e){return`${Math.round(e)}ms`}function O5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function z5(e){const t=T({},$5,e.easing),n=T({},N5,e.duration);return T({getAutoHeightDuration:O5,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return se(i,M5),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:yp(l)} ${a} ${typeof s=="string"?s:yp(s)}`).join(",")}},e,{easing:t,duration:n})}const L5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},I5=L5,D5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function es(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=se(e,D5);if(e.vars)throw new Error(hr(18));const a=w5(r),s=Za(e);let u=nn(s,{mixins:p5(s.breakpoints,n),palette:a,shadows:_5.slice(),typography:E5(a,i),transitions:z5(o),zIndex:T({},I5)});return u=nn(u,l),u=t.reduce((c,d)=>nn(c,d),u),u.unstable_sxConfig=T({},Ya,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return Xa({sx:d,theme:this})},u}function xp(e){return String(parseFloat(e)).length===String(e).length}function j5(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Gn(e){return parseFloat(e)}function A5(e){return(t,n)=>{const r=j5(t);if(r===n)return t;let o=Gn(t);r!=="px"&&(r==="em"||r==="rem")&&(o=Gn(t)*Gn(e));let i=o;if(n!=="px")if(n==="em")i=o/Gn(e);else if(n==="rem")i=o/Gn(e);else return t;return parseFloat(i.toFixed(5))+n}}function F5({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),l[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),l}function Sp(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:o=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,l=T({},e);l.typography=T({},l.typography);const a=l.typography,s=A5(a.htmlFontSize),u=n.map(c=>l.breakpoints.values[c]);return i.forEach(c=>{const d=a[c],p=parseFloat(s(d.fontSize,"rem"));if(p<=1)return;const S=p,y=1+(S-1)/o;let{lineHeight:v}=d;if(!xp(v)&&!r)throw new Error(hr(6));xp(v)||(v=parseFloat(s(v,"rem"))/parseFloat(p));let k=null;r||(k=m=>F5({size:m,grid:B5({pixels:4,lineHeight:v,htmlFontSize:a.htmlFontSize})})),a[c]=T({},d,U5({cssProperty:"fontSize",min:y,max:S,unit:"rem",breakpoints:u,transform:k}))}),l}const W5=es(),ts=W5;function V5(){const e=Ja(ts);return e[mr]||e}function it({props:e,name:t}){return H1({props:e,name:t,defaultTheme:ts,themeId:mr})}const Q1=e=>ii(e)&&e!=="classes",g8=ii,H5=V1({themeId:mr,defaultTheme:ts,rootShouldForwardProp:Q1}),ze=H5,K5=["theme"];function G5(e){let{theme:t}=e,n=se(e,K5);const r=t[mr];return w.jsx(l5,T({},n,{themeId:r?mr:void 0,theme:r||t}))}const Q5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},wp=Q5;function Y1(e){return typeof e=="string"}function Y5(e,t,n){return e===void 0||Y1(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}const X5={disableDefaultClasses:!1},Z5=x.createContext(X5);function J5(e){const{disableDefaultClasses:t}=x.useContext(Z5);return n=>t?"":e(n)}function q5(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Gu(e,t){return typeof e=="function"?e(t):e}function kp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function ex(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const S=pe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return S.length>0&&(v.className=S),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const l=q5(T({},o,r)),a=kp(r),s=kp(o),u=t(l),c=pe(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=T({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},u,n,s,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const tx=["elementType","externalSlotProps","ownerState"];function Cp(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=se(e,tx),l=Gu(r,o),{props:a,internalRef:s}=ex(T({},i,{externalSlotProps:l})),u=Sn(s,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Y5(n,T({},a,{ref:u}),o)}const nx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rx(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ox(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function ix(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ox(e))}function lx(e){const t=[],n=[];return Array.from(e.querySelectorAll(nx)).forEach((r,o)=>{const i=rx(r);i===-1||!ix(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function ax(){return!0}function sx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=lx,isEnabled:l=ax,open:a}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),S=x.useRef(!1),y=x.useRef(null),v=Sn(t.ref,y),k=x.useRef(null);x.useEffect(()=>{!a||!y.current||(S.current=!n)},[n,a]),x.useEffect(()=>{if(!a||!y.current)return;const g=mn(y.current);return y.current.contains(g.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),S.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),x.useEffect(()=>{if(!a||!y.current)return;const g=mn(y.current),f=E=>{const{current:O}=y;if(O!==null){if(!g.hasFocus()||r||!l()||s.current){s.current=!1;return}if(!O.contains(g.activeElement)){if(E&&p.current!==E.target||g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!S.current)return;let F=[];if((g.activeElement===u.current||g.activeElement===c.current)&&(F=i(y.current)),F.length>0){var I,$;const U=!!((I=k.current)!=null&&I.shiftKey&&(($=k.current)==null?void 0:$.key)==="Tab"),ne=F[0],K=F[F.length-1];typeof ne!="string"&&typeof K!="string"&&(U?K.focus():ne.focus())}else O.focus()}}},C=E=>{k.current=E,!(r||!l()||E.key!=="Tab")&&g.activeElement===y.current&&E.shiftKey&&(s.current=!0,c.current&&c.current.focus())};g.addEventListener("focusin",f),g.addEventListener("keydown",C,!0);const P=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&f(null)},50);return()=>{clearInterval(P),g.removeEventListener("focusin",f),g.removeEventListener("keydown",C,!0)}},[n,r,o,l,a,i]);const m=g=>{d.current===null&&(d.current=g.relatedTarget),S.current=!0,p.current=g.target;const f=t.props.onFocus;f&&f(g)},h=g=>{d.current===null&&(d.current=g.relatedTarget),S.current=!0};return w.jsxs(x.Fragment,{children:[w.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:v,onFocus:m}),w.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}function ux(e){return typeof e=="function"?e():e}const cx=x.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=x.useState(null),s=Sn(x.isValidElement(r)?r.ref:null,n);if(ia(()=>{i||a(ux(o)||document.body)},[o,i]),ia(()=>{if(l&&!i)return oa(n,l),()=>{oa(n,null)}},[n,l,i]),i){if(x.isValidElement(r)){const u={ref:s};return x.cloneElement(r,u)}return w.jsx(x.Fragment,{children:r})}return w.jsx(x.Fragment,{children:l&&Hc.createPortal(r,l)})}),dx=cx;function fx(e){const t=mn(e);return t.body===e?Ta(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function li(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ep(e){return parseInt(Ta(e).getComputedStyle(e).paddingRight,10)||0}function px(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Rp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=i.indexOf(l)===-1,s=!px(l);a&&s&&li(l,o)})}function Fs(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function hx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(fx(r)){const l=O2(mn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Ep(r)+l}px`;const a=mn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${Ep(s)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=mn(r).body;else{const l=r.parentElement,a=Ta(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function mx(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class gx{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&li(t.modalRef,!1);const o=mx(n);Rp(n,t.mount,t.modalRef,o,!0);const i=Fs(this.containers,l=>l.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Fs(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=hx(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Fs(this.containers,l=>l.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&li(t.modalRef,n),Rp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&li(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function vx(e){return ft("MuiModal",e)}Ct("MuiModal",["root","hidden","backdrop"]);const yx=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],xx=e=>{const{open:t,exited:n}=e;return kt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},J5(vx))};function Sx(e){return typeof e=="function"?e():e}function wx(e){return e?e.props.hasOwnProperty("in"):!1}const kx=new gx,Cx=x.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:l=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:S=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:k=kx,onBackdropClick:m,onClose:h,onKeyDown:g,open:f,onTransitionEnter:C,onTransitionExited:P,slotProps:E={},slots:O={}}=t,I=se(t,yx),$=k,[F,U]=x.useState(!f),ne=x.useRef({}),K=x.useRef(null),G=x.useRef(null),ee=Sn(G,n),Se=wx(i),N=(r=t["aria-hidden"])!=null?r:!0,D=()=>mn(K.current),A=()=>(ne.current.modalRef=G.current,ne.current.mountNode=K.current,ne.current),re=()=>{$.mount(A(),{disableScrollLock:S}),G.current&&(G.current.scrollTop=0)},ae=rr(()=>{const Me=Sx(a)||D().body;$.add(A(),Me),G.current&&re()}),et=x.useCallback(()=>$.isTopModal(A()),[$]),Z=rr(Me=>{K.current=Me,!(!Me||!G.current)&&(f&&et()?re():li(G.current,N))}),ve=x.useCallback(()=>{$.remove(A(),N)},[$,N]);x.useEffect(()=>()=>{ve()},[ve]),x.useEffect(()=>{f?ae():(!Se||!l)&&ve()},[f,ve,Se,l,ae]);const Re=T({},t,{closeAfterTransition:l,disableAutoFocus:s,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:p,disableScrollLock:S,exited:F,hideBackdrop:y,keepMounted:v}),zt=xx(Re),Rt=()=>{U(!1),C&&C()},pt=()=>{U(!0),P&&P(),l&&ve()},Co=Me=>{Me.target===Me.currentTarget&&(m&&m(Me),h&&h(Me,"backdropClick"))},Sr=Me=>{g&&g(Me),!(Me.key!=="Escape"||!et())&&(c||(Me.stopPropagation(),h&&h(Me,"escapeKeyDown")))},Rn={};i.props.tabIndex===void 0&&(Rn.tabIndex="-1"),Se&&(Rn.onEnter=Uu(Rt,i.props.onEnter),Rn.onExited=Uu(pt,i.props.onExited));const wr=(o=O.root)!=null?o:"div",Eo=Cp({elementType:wr,externalSlotProps:E.root,externalForwardedProps:I,additionalProps:{ref:ee,role:"presentation",onKeyDown:Sr},className:zt.root,ownerState:Re}),Lt=O.backdrop,kr=Cp({elementType:Lt,externalSlotProps:E.backdrop,additionalProps:{"aria-hidden":!0,onClick:Co,open:f},className:zt.backdrop,ownerState:Re});return!v&&!f&&(!Se||F)?null:w.jsx(dx,{ref:Z,container:a,disablePortal:d,children:w.jsxs(wr,T({},Eo,{children:[!y&&Lt?w.jsx(Lt,T({},kr)):null,w.jsx(sx,{disableEnforceFocus:u,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:et,open:f,children:x.cloneElement(i,Rn)})]}))})}),Ex=Cx;function Rx(e){return ft("MuiSvgIcon",e)}Ct("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Px=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bx=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Y(t)}`,`fontSize${Y(n)}`]};return kt(o,Rx,r)},Tx=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,a,s,u,c,d,p,S,y,v,k,m,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(S=(e.vars||e).palette)==null||(y=S[t.color])==null?void 0:y.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(k=v.action)==null?void 0:k.active,disabled:(m=(e.vars||e).palette)==null||(h=m.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),X1=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,S=se(r,Px),y=T({},r,{color:l,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p}),v={};c||(v.viewBox=p);const k=bx(y);return w.jsxs(Tx,T({as:a,className:pe(k.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},v,S,{ownerState:y,children:[o,d?w.jsx("title",{children:d}):null]}))});X1.muiName="SvgIcon";const sa=X1;function _x(e,t){function n(r,o){return w.jsx(sa,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=sa.muiName,x.memo(x.forwardRef(n))}const Mx={configure:e=>{ed.configure(e)}},$x=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Y,createChainedFunction:Uu,createSvgIcon:_x,debounce:y2,deprecatedPropType:x2,isMuiElement:S2,ownerDocument:mn,ownerWindow:Ta,requirePropFactory:w2,setRef:oa,unstable_ClassNameGenerator:Mx,unstable_useEnhancedEffect:ia,unstable_useId:E2,unsupportedProp:R2,useControlled:P2,useEventCallback:rr,useForkRef:Sn,useIsFocusVisible:Jc},Symbol.toStringTag,{value:"Module"}));function Qu(e,t){return Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Qu(e,t)}function Z1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qu(e,t)}const Pp={disabled:!1},ua=qt.createContext(null);var Nx=function(t){return t.scrollTop},Go="unmounted",Xn="exited",Zn="entering",zr="entered",Yu="exiting",En=function(e){Z1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=Xn,i.appearStatus=Zn):s=zr:r.unmountOnExit||r.mountOnEnter?s=Go:s=Xn,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===Go?{status:Xn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==Zn&&l!==zr&&(i=Zn):(l===Zn||l===zr)&&(i=Yu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Zn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:pl.findDOMNode(this);l&&Nx(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xn&&this.setState({status:Go})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,s=this.props.nodeRef?[a]:[pl.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!l||Pp.disabled){this.safeSetState({status:zr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Zn},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:zr},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:pl.findDOMNode(this);if(!i||Pp.disabled){this.safeSetState({status:Xn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Yu},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Xn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:pl.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Go)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return qt.createElement(ua.Provider,{value:null},typeof l=="function"?l(o,a):qt.cloneElement(qt.Children.only(l),a))},t}(qt.Component);En.contextType=ua;En.propTypes={};function Or(){}En.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Or,onEntering:Or,onEntered:Or,onExit:Or,onExiting:Or,onExited:Or};En.UNMOUNTED=Go;En.EXITED=Xn;En.ENTERING=Zn;En.ENTERED=zr;En.EXITING=Yu;const Ox=En;function zx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hd(e,t){var n=function(i){return t&&x.isValidElement(i)?t(i):i},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Lx(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var s in t){if(r[s])for(l=0;le.scrollTop;function bp(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:l.transitionDelay}}function Ux(e){return ft("MuiPaper",e)}Ct("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Wx=["className","component","elevation","square","variant"],Vx=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kt(i,Ux,o)},Hx=ze("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${fn("#fff",wp(t.elevation))}, ${fn("#fff",wp(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Kx=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:a=!1,variant:s="elevation"}=r,u=se(r,Wx),c=T({},r,{component:i,elevation:l,square:a,variant:s}),d=Vx(c);return w.jsx(Hx,T({as:i,ownerState:c,className:pe(d.root,o),ref:n},u))}),J1=Kx;function Gx(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},y=pe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),x.useEffect(()=>{if(!a&&s!=null){const v=setTimeout(s,u);return()=>{clearTimeout(v)}}},[s,a,u]),w.jsx("span",{className:p,style:S,children:w.jsx("span",{className:y})})}const Qx=Ct("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bt=Qx,Yx=["center","classes","className"];let ns=e=>e,Tp,_p,Mp,$p;const Xu=550,Xx=80,Zx=Ai(Tp||(Tp=ns` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),Jx=Ai(_p||(_p=ns` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),qx=Ai(Mp||(Mp=ns` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),e6=ze("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),t6=ze(Gx,{name:"MuiTouchRipple",slot:"Ripple"})($p||($p=ns` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),bt.rippleVisible,Zx,Xu,({theme:e})=>e.transitions.easing.easeInOut,bt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bt.child,bt.childLeaving,Jx,Xu,({theme:e})=>e.transitions.easing.easeInOut,bt.childPulsate,qx,({theme:e})=>e.transitions.easing.easeInOut),n6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=se(r,Yx),[s,u]=x.useState([]),c=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const p=x.useRef(!1),S=x.useRef(null),y=x.useRef(null),v=x.useRef(null);x.useEffect(()=>()=>{clearTimeout(S.current)},[]);const k=x.useCallback(f=>{const{pulsate:C,rippleX:P,rippleY:E,rippleSize:O,cb:I}=f;u($=>[...$,w.jsx(t6,{classes:{ripple:pe(i.ripple,bt.ripple),rippleVisible:pe(i.rippleVisible,bt.rippleVisible),ripplePulsate:pe(i.ripplePulsate,bt.ripplePulsate),child:pe(i.child,bt.child),childLeaving:pe(i.childLeaving,bt.childLeaving),childPulsate:pe(i.childPulsate,bt.childPulsate)},timeout:Xu,pulsate:C,rippleX:P,rippleY:E,rippleSize:O},c.current)]),c.current+=1,d.current=I},[i]),m=x.useCallback((f={},C={},P=()=>{})=>{const{pulsate:E=!1,center:O=o||C.pulsate,fakeElement:I=!1}=C;if((f==null?void 0:f.type)==="mousedown"&&p.current){p.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(p.current=!0);const $=I?null:v.current,F=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,ne,K;if(O||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)U=Math.round(F.width/2),ne=Math.round(F.height/2);else{const{clientX:G,clientY:ee}=f.touches&&f.touches.length>0?f.touches[0]:f;U=Math.round(G-F.left),ne=Math.round(ee-F.top)}if(O)K=Math.sqrt((2*F.width**2+F.height**2)/3),K%2===0&&(K+=1);else{const G=Math.max(Math.abs(($?$.clientWidth:0)-U),U)*2+2,ee=Math.max(Math.abs(($?$.clientHeight:0)-ne),ne)*2+2;K=Math.sqrt(G**2+ee**2)}f!=null&&f.touches?y.current===null&&(y.current=()=>{k({pulsate:E,rippleX:U,rippleY:ne,rippleSize:K,cb:P})},S.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},Xx)):k({pulsate:E,rippleX:U,rippleY:ne,rippleSize:K,cb:P})},[o,k]),h=x.useCallback(()=>{m({},{pulsate:!0})},[m]),g=x.useCallback((f,C)=>{if(clearTimeout(S.current),(f==null?void 0:f.type)==="touchend"&&y.current){y.current(),y.current=null,S.current=setTimeout(()=>{g(f,C)});return}y.current=null,u(P=>P.length>0?P.slice(1):P),d.current=C},[]);return x.useImperativeHandle(n,()=>({pulsate:h,start:m,stop:g}),[h,m,g]),w.jsx(e6,T({className:pe(bt.root,i.root,l),ref:v},a,{children:w.jsx(Fx,{component:null,exit:!0,children:s})}))}),r6=n6;function o6(e){return ft("MuiButtonBase",e)}const i6=Ct("MuiButtonBase",["root","disabled","focusVisible"]),l6=i6,a6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],s6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=kt({root:["root",t&&"disabled",n&&"focusVisible"]},o6,o);return n&&r&&(l.root+=` ${r}`),l},u6=ze("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${l6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),c6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:S="a",onBlur:y,onClick:v,onContextMenu:k,onDragLeave:m,onFocus:h,onFocusVisible:g,onKeyDown:f,onKeyUp:C,onMouseDown:P,onMouseLeave:E,onMouseUp:O,onTouchEnd:I,onTouchMove:$,onTouchStart:F,tabIndex:U=0,TouchRippleProps:ne,touchRippleRef:K,type:G}=r,ee=se(r,a6),Se=x.useRef(null),N=x.useRef(null),D=Sn(N,K),{isFocusVisibleRef:A,onFocus:re,onBlur:ae,ref:et}=Jc(),[Z,ve]=x.useState(!1);u&&Z&&ve(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{ve(!0),Se.current.focus()}}),[]);const[Re,zt]=x.useState(!1);x.useEffect(()=>{zt(!0)},[]);const Rt=Re&&!c&&!u;x.useEffect(()=>{Z&&p&&!c&&Re&&N.current.pulsate()},[c,p,Z,Re]);function pt(Q,Vi,Hi=d){return rr(Ki=>(Vi&&Vi(Ki),!Hi&&N.current&&N.current[Q](Ki),!0))}const Co=pt("start",P),Sr=pt("stop",k),Rn=pt("stop",m),wr=pt("stop",O),Eo=pt("stop",Q=>{Z&&Q.preventDefault(),E&&E(Q)}),Lt=pt("start",F),kr=pt("stop",I),Me=pt("stop",$),Ro=pt("stop",Q=>{ae(Q),A.current===!1&&ve(!1),y&&y(Q)},!1),Po=rr(Q=>{Se.current||(Se.current=Q.currentTarget),re(Q),A.current===!0&&(ve(!0),g&&g(Q)),h&&h(Q)}),Ht=()=>{const Q=Se.current;return s&&s!=="button"&&!(Q.tagName==="A"&&Q.href)},Cr=x.useRef(!1),Ui=rr(Q=>{p&&!Cr.current&&Z&&N.current&&Q.key===" "&&(Cr.current=!0,N.current.stop(Q,()=>{N.current.start(Q)})),Q.target===Q.currentTarget&&Ht()&&Q.key===" "&&Q.preventDefault(),f&&f(Q),Q.target===Q.currentTarget&&Ht()&&Q.key==="Enter"&&!u&&(Q.preventDefault(),v&&v(Q))}),Wi=rr(Q=>{p&&Q.key===" "&&N.current&&Z&&!Q.defaultPrevented&&(Cr.current=!1,N.current.stop(Q,()=>{N.current.pulsate(Q)})),C&&C(Q),v&&Q.target===Q.currentTarget&&Ht()&&Q.key===" "&&!Q.defaultPrevented&&v(Q)});let Er=s;Er==="button"&&(ee.href||ee.to)&&(Er=S);const It={};Er==="button"?(It.type=G===void 0?"button":G,It.disabled=u):(!ee.href&&!ee.to&&(It.role="button"),u&&(It["aria-disabled"]=u));const Rr=Sn(n,et,Se),bo=T({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:Z}),To=s6(bo);return w.jsxs(u6,T({as:Er,className:pe(To.root,a),ownerState:bo,onBlur:Ro,onClick:v,onContextMenu:Sr,onFocus:Po,onKeyDown:Ui,onKeyUp:Wi,onMouseDown:Co,onMouseLeave:Eo,onMouseUp:wr,onDragLeave:Rn,onTouchEnd:kr,onTouchMove:Me,onTouchStart:Lt,ref:Rr,tabIndex:u?-1:U,type:G},It,ee,{children:[l,Rt?w.jsx(r6,T({ref:D,center:i},ne)):null]}))}),q1=c6;function d6(e){return ft("MuiIconButton",e)}const f6=Ct("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),p6=f6,h6=["edge","children","className","color","disabled","disableFocusRipple","size"],m6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${Y(r)}`,o&&`edge${Y(o)}`,`size${Y(i)}`]};return kt(l,d6,t)},g6=ze(q1,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:fn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),v6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,h6),p=T({},r,{edge:o,color:a,disabled:s,disableFocusRipple:u,size:c}),S=m6(p);return w.jsx(g6,T({className:pe(S.root,l),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,ownerState:p},d,{children:i}))}),y6=v6;function x6(e){return ft("MuiTypography",e)}Ct("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const S6=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],w6=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${Y(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return kt(a,x6,l)},k6=ze("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Np={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},C6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},E6=e=>C6[e]||e,R6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiTypography"}),o=E6(r.color),i=B1(T({},r,{color:o})),{align:l="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:S=Np}=i,y=se(i,S6),v=T({},i,{align:l,color:o,className:a,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:S}),k=s||(d?"p":S[p]||Np[p])||"span",m=w6(v);return w.jsx(k6,T({as:k,ref:n,ownerState:v,className:pe(m.root,a)},y))}),ko=R6;function P6(e){return ft("MuiAppBar",e)}Ct("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const b6=["className","color","enableColorOnDark","position"],T6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Y(t)}`,`position${Y(n)}`]};return kt(o,P6,r)},gl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,_6=ze(J1,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Y(n.position)}`],t[`color${Y(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:gl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:gl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:gl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:gl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),M6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed"}=r,s=se(r,b6),u=T({},r,{color:i,position:a,enableColorOnDark:l}),c=T6(u);return w.jsx(_6,T({square:!0,component:"header",ownerState:u,elevation:4,className:pe(c.root,o,a==="fixed"&&"mui-fixed"),ref:n},s))}),$6=M6;function N6(e){return w.jsx(z4,T({},e,{defaultTheme:ts,themeId:mr}))}const O6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],z6={entering:{opacity:1},entered:{opacity:1}},L6=x.forwardRef(function(t,n){const r=V5(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:S,onExited:y,onExiting:v,style:k,timeout:m=o,TransitionComponent:h=Ox}=t,g=se(t,O6),f=x.useRef(null),C=Sn(f,a.ref,n),P=K=>G=>{if(K){const ee=f.current;G===void 0?K(ee):K(ee,G)}},E=P(p),O=P((K,G)=>{Bx(K);const ee=bp({style:k,timeout:m,easing:s},{mode:"enter"});K.style.webkitTransition=r.transitions.create("opacity",ee),K.style.transition=r.transitions.create("opacity",ee),c&&c(K,G)}),I=P(d),$=P(v),F=P(K=>{const G=bp({style:k,timeout:m,easing:s},{mode:"exit"});K.style.webkitTransition=r.transitions.create("opacity",G),K.style.transition=r.transitions.create("opacity",G),S&&S(K)}),U=P(y),ne=K=>{i&&i(f.current,K)};return w.jsx(h,T({appear:l,in:u,nodeRef:f,onEnter:O,onEntered:I,onEntering:E,onExit:F,onExited:U,onExiting:$,addEndListener:ne,timeout:m},g,{children:(K,G)=>x.cloneElement(a,T({style:T({opacity:0,visibility:K==="exited"&&!u?"hidden":void 0},z6[K],k,a.props.style),ref:C},G))}))}),I6=L6;function D6(e){return ft("MuiBackdrop",e)}Ct("MuiBackdrop",["root","invisible"]);const j6=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],A6=e=>{const{classes:t,invisible:n}=e;return kt({root:["root",n&&"invisible"]},D6,t)},F6=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),B6=x.forwardRef(function(t,n){var r,o,i;const l=it({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:S,slotProps:y={},slots:v={},TransitionComponent:k=I6,transitionDuration:m}=l,h=se(l,j6),g=T({},l,{component:u,invisible:p}),f=A6(g),C=(r=y.root)!=null?r:d.root;return w.jsx(k,T({in:S,timeout:m},h,{children:w.jsx(F6,T({"aria-hidden":!0},C,{as:(o=(i=v.root)!=null?i:c.Root)!=null?o:u,className:pe(f.root,s,C==null?void 0:C.className),ownerState:T({},g,C==null?void 0:C.ownerState),classes:f,ref:n,children:a}))}))}),U6=B6,W6=es(),V6=j4({themeId:mr,defaultTheme:W6,defaultClassName:"MuiBox-root",generateClassName:ed.generate}),gd=V6;function H6(e){return ft("MuiButton",e)}const K6=Ct("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),vl=K6,G6=x.createContext({}),Q6=G6,Y6=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],X6=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${Y(t)}`,`size${Y(o)}`,`${i}Size${Y(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Y(o)}`],endIcon:["endIcon",`iconSize${Y(o)}`]},s=kt(a,H6,l);return T({},l,s)},em=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Z6=ze(q1,{shouldForwardProp:e=>Q1(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Y(n.color)}`],t[`size${Y(n.size)}`],t[`${n.variant}Size${Y(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:fn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${vl.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${vl.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${fn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vl.disabled}`]:{boxShadow:"none"}}),J6=ze("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},em(e))),q6=ze("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},em(e))),e9=x.forwardRef(function(t,n){const r=x.useContext(Q6),o=qc(r,t),i=it({props:o,name:"MuiButton"}),{children:l,color:a="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:S,focusVisibleClassName:y,fullWidth:v=!1,size:k="medium",startIcon:m,type:h,variant:g="text"}=i,f=se(i,Y6),C=T({},i,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:v,size:k,type:h,variant:g}),P=X6(C),E=m&&w.jsx(J6,{className:P.startIcon,ownerState:C,children:m}),O=S&&w.jsx(q6,{className:P.endIcon,ownerState:C,children:S});return w.jsxs(Z6,T({ownerState:C,className:pe(r.className,P.root,u),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:pe(P.focusVisible,y),ref:n,type:h},f,{classes:P,children:[E,l,O]}))}),tm=e9;function t9(e){return ft("MuiCircularProgress",e)}Ct("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const n9=["className","color","disableShrink","size","style","thickness","value","variant"];let rs=e=>e,Op,zp,Lp,Ip;const bn=44,r9=Ai(Op||(Op=rs` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),o9=Ai(zp||(zp=rs` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),i9=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Y(r)}`],svg:["svg"],circle:["circle",`circle${Y(n)}`,o&&"circleDisableShrink"]};return kt(i,t9,t)},l9=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&sd(Lp||(Lp=rs` - animation: ${0} 1.4s linear infinite; - `),r9)),a9=ze("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),s9=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Y(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&sd(Ip||(Ip=rs` - animation: ${0} 1.4s ease-in-out infinite; - `),o9)),u9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=se(r,n9),S=T({},r,{color:i,disableShrink:l,size:a,thickness:u,value:c,variant:d}),y=i9(S),v={},k={},m={};if(d==="determinate"){const h=2*Math.PI*((bn-u)/2);v.strokeDasharray=h.toFixed(3),m["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*h).toFixed(3)}px`,k.transform="rotate(-90deg)"}return w.jsx(l9,T({className:pe(y.root,o),style:T({width:a,height:a},k,s),ownerState:S,ref:n,role:"progressbar"},m,p,{children:w.jsx(a9,{className:y.svg,ownerState:S,viewBox:`${bn/2} ${bn/2} ${bn} ${bn}`,children:w.jsx(s9,{className:y.circle,style:v,ownerState:S,cx:bn,cy:bn,r:(bn-u)/2,fill:"none",strokeWidth:u})})}))}),nm=u9,c9=f5({createStyledComponent:ze("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Y(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})}),d9=c9,f9=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),p9=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),h9=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var u;o[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let i=T({html:f9(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},p9(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const l=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return l&&(i=[i,l]),i};function m9(e){const t=it({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return w.jsxs(x.Fragment,{children:[w.jsx(N6,{styles:o=>h9(o,r)}),n]})}const g9=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],v9=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),y9=ze(U6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),x9=x.forwardRef(function(t,n){var r,o,i,l,a,s;const u=it({name:"MuiModal",props:t}),{BackdropComponent:c=y9,BackdropProps:d,classes:p,className:S,closeAfterTransition:y=!1,children:v,container:k,component:m,components:h={},componentsProps:g={},disableAutoFocus:f=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:P=!1,disablePortal:E=!1,disableRestoreFocus:O=!1,disableScrollLock:I=!1,hideBackdrop:$=!1,keepMounted:F=!1,onBackdropClick:U,onClose:ne,open:K,slotProps:G,slots:ee,theme:Se}=u,N=se(u,g9),[D,A]=x.useState(!0),re={container:k,closeAfterTransition:y,disableAutoFocus:f,disableEnforceFocus:C,disableEscapeKeyDown:P,disablePortal:E,disableRestoreFocus:O,disableScrollLock:I,hideBackdrop:$,keepMounted:F,onBackdropClick:U,onClose:ne,open:K},ae=T({},u,re,{exited:D}),et=(r=(o=ee==null?void 0:ee.root)!=null?o:h.Root)!=null?r:v9,Z=(i=(l=ee==null?void 0:ee.backdrop)!=null?l:h.Backdrop)!=null?i:c,ve=(a=G==null?void 0:G.root)!=null?a:g.root,Re=(s=G==null?void 0:G.backdrop)!=null?s:g.backdrop;return w.jsx(Ex,T({slots:{root:et,backdrop:Z},slotProps:{root:()=>T({},Gu(ve,ae),!Y1(et)&&{as:m,theme:Se},{className:pe(S,ve==null?void 0:ve.className,p==null?void 0:p.root,!ae.open&&ae.exited&&(p==null?void 0:p.hidden))}),backdrop:()=>T({},d,Gu(Re,ae),{className:pe(Re==null?void 0:Re.className,d==null?void 0:d.className,p==null?void 0:p.backdrop)})},onTransitionEnter:()=>A(!1),onTransitionExited:()=>A(!0),ref:n},N,re,{children:v}))}),S9=x9;function w9(e){return ft("MuiLink",e)}const k9=Ct("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),C9=k9,rm={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},E9=e=>rm[e]||e,R9=({theme:e,ownerState:t})=>{const n=E9(t.color),r=ho(e,`palette.${n}`,!1)||t.color,o=ho(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fn(r,.4)},P9=R9,b9=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],T9=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Y(o)}`,n==="button"&&"button",r&&"focusVisible"]};return kt(i,w9,t)},_9=ze(ko,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Y(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:P9({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${C9.focusVisible}`]:{outline:"auto"}})),M9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:l="a",onBlur:a,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,S=se(r,b9),{isFocusVisibleRef:y,onBlur:v,onFocus:k,ref:m}=Jc(),[h,g]=x.useState(!1),f=Sn(n,m),C=I=>{v(I),y.current===!1&&g(!1),a&&a(I)},P=I=>{k(I),y.current===!0&&g(!0),s&&s(I)},E=T({},r,{color:i,component:l,focusVisible:h,underline:c,variant:d}),O=T9(E);return w.jsx(_9,T({color:i,className:pe(O.root,o),classes:u,component:l,onBlur:C,onFocus:P,ref:f,ownerState:E,variant:d,sx:[...Object.keys(rm).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},S))}),$9=M9;function N9(e){return ft("MuiToolbar",e)}Ct("MuiToolbar",["root","gutters","regular","dense"]);const O9=["className","component","disableGutters","variant"],z9=e=>{const{classes:t,disableGutters:n,variant:r}=e;return kt({root:["root",!n&&"gutters",r]},N9,t)},L9=ze("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),I9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular"}=r,s=se(r,O9),u=T({},r,{component:i,disableGutters:l,variant:a}),c=z9(u);return w.jsx(L9,T({as:i,className:pe(c.root,o),ref:n,ownerState:u},s))}),D9=I9,j9=es({palette:{mode:"light",primary:{main:"#009680",light:"#4db6a4",dark:"#004d3a",contrastText:"#FFF"},secondary:{main:"#c3212d",light:"#ca6469",dark:"#960017"},info:{main:"#22b4ec",light:"#5bcbef",dark:"#006296"},success:{main:"#17a840",light:"#4fc366",dark:"#008529"}}}),A9=es({palette:{mode:"dark",primary:{main:"#b2dfd7",light:"#e0f2f0",dark:"#80cbbe"},secondary:{main:"#f3c6cc",light:"#fae8eb",dark:"#db8e92"},info:{main:"#b6e9f7",light:"#e2f7fc",dark:"#87daf3"},success:{main:"#c4e9c9",light:"#e6f6e9",dark:"#9ddba6"},text:{primary:"#80cbbe"}}}),vd=x.createContext(null),F9="92101";function B9(e){const[t,n]=x.useState(F9);return w.jsx(vd.Provider,{value:{zipCode:t,setZipCode:n},children:e.children})}var yd={},om={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(om);var im=om.exports,Bs={};const U9=dm($x);var Dp;function lm(){return Dp||(Dp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=U9}(Bs)),Bs}var W9=im;Object.defineProperty(yd,"__esModule",{value:!0});var am=yd.default=void 0,V9=W9(lm()),H9=w,K9=(0,V9.default)((0,H9.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");am=yd.default=K9;var xd={},G9=im;Object.defineProperty(xd,"__esModule",{value:!0});var sm=xd.default=void 0,Q9=G9(lm()),Y9=w,X9=(0,Q9.default)((0,Y9.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightMode");sm=xd.default=X9;const Z9=x.lazy(()=>Zc(()=>import("./LocationModal-a2e87842.js"),[]));function J9(e){const[t,n]=x.useState(!1),r=()=>n(!0),o=()=>n(!1),i=l=>{n(!1),e.onZipCodeChange(l)};return w.jsxs("div",{children:[w.jsx(tm,{onClick:r,color:"inherit",children:w.jsxs(ko,{children:["ZIP Code: ",e.currentZip]})}),w.jsx(S9,{open:t,onClose:o,"aria-labelledby":"modal-modal-title",children:w.jsx("div",{children:w.jsx(x.Suspense,{fallback:w.jsx(nm,{}),children:w.jsx(Z9,{onSubmit:i,onClose:o})})})})]})}function q9(e){const[t,n]=o2(),{zipCode:r,setZipCode:o}=x.useContext(vd),i=a=>{o(a);const s=new URLSearchParams(t);t.has("page")&&s.set("page","1"),s.set("location",a),n(s)},l=e.isDarkMode?"Light Mode":"Dark Mode";return w.jsx(gd,{sx:{flexGrow:1},children:w.jsx($6,{position:"static",children:w.jsxs(D9,{children:[w.jsx(ko,{variant:"h6",component:"div",sx:{flexGrow:1},children:w.jsx(tm,{component:h1,to:"/",color:"inherit",sx:{textDecoration:"none"},children:"PetSearch"})}),w.jsx(J9,{onZipCodeChange:i,currentZip:r}),w.jsx(y6,{onClick:e.onToggleDarkMode,color:"inherit",title:l,children:e.isDarkMode?w.jsx(sm,{}):w.jsx(am,{})})]})})})}const e8={paddingBottom:"2rem"};function t8(){const[e,t]=x.useState(!0),n=()=>{t(o=>!o)},r=x.useMemo(()=>Sp(e?A9:j9),[e]);return w.jsxs(G5,{theme:r,children:[w.jsx(m9,{}),w.jsxs(B9,{children:[w.jsx(q9,{isDarkMode:e,onToggleDarkMode:n}),w.jsxs(d9,{maxWidth:"xl",sx:e8,children:[w.jsx(e2,{}),w.jsx(By,{})]})]})]})}const n8={padding:"3rem",borderRadius:"30px",borderStyle:"solid",borderColor:"transparent",borderWidth:"4px","&:hover":{borderColor:"#00a693"}},r8={fontSize:"2rem",color:"primary",textAlign:"center",paddingTop:"10px",textTransform:"capitalize"};function jp(e){const t=`/search/${e.petType}?location=${e.location}`;return w.jsx($9,{sx:{textDecoration:"none"},component:h1,to:t,children:w.jsxs(J1,{sx:n8,elevation:10,children:[e.children,w.jsx(ko,{sx:r8,children:e.petType})]})})}function o8(e){return w.jsxs(sa,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:[w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 - c-2.384-0.503-4.347-2.255-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.731 - c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 - c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 - c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 - c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsxs("g",{children:[w.jsx("path",{d:`M423.791,344.933c-0.729-0.191-1.481-0.313-2.246-0.359c-1.147-0.069-2.324,0.031-3.499,0.32 - c-6.264,1.543-10.097,7.877-8.555,14.141c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987 - c1.858,1.099,3.892,1.613,5.902,1.613c4.008,0,7.912-2.057,10.086-5.761c1.254-2.135,2.426-4.305,3.513-6.504 - c1.087-2.199,2.09-4.429,3.009-6.684c0.612-1.503,1.187-3.018,1.724-4.544c2.417-6.864,4.068-13.936,4.939-21.109 - c0.097-0.797,0.184-1.595,0.261-2.394c0.155-1.599,0.271-3.201,0.349-4.807c0.155-3.212,0.155-6.436-0.002-9.664 - c-0.078-1.614-0.196-3.228-0.353-4.842c-0.235-2.421-0.559-4.841-0.972-7.255c-0.275-1.61-0.59-3.217-0.945-4.821 - c-0.177-0.802-0.365-1.603-0.562-2.403c-0.328-1.332-0.883-2.545-1.598-3.629c-0.336-0.509-0.698-0.996-1.104-1.441 - c-0.254-0.279-0.521-0.544-0.799-0.796c-0.445-0.402-0.926-0.758-1.425-1.087C426.199,345.795,425.031,345.258,423.791,344.933z`}),w.jsx("path",{d:`M490.036,373.97c0.012-0.222,0.035-0.456,0.035-0.69V145.848c0-11.862-4.616-23.011-12.995-31.367 - c-8.391-8.368-19.517-12.984-31.355-12.984c-24.46,0-44.351,19.891-44.351,44.351v88.432L300.106,170.32 - c5.843-16.455,8.952-33.739,8.952-50.965V24.273C309.058,10.892,298.166,0,284.785,0c-6.159,0-12.037,2.314-16.536,6.509 - c-0.105,0.094-0.199,0.187-0.304,0.292l-41.405,41.406c-18.605-10.436-39.512-15.917-61.051-15.917 - c-21.538,0-42.457,5.481-61.051,15.917L63.032,6.802c-0.105-0.105-0.199-0.199-0.304-0.292C58.229,2.314,52.351,0,46.192,0 - C32.811,0,21.919,10.892,21.919,24.273v95.082c0,38.133,15.204,76.617,41.698,105.588c10.506,11.488,22.251,21.001,34.861,28.398 - c-0.619,7.573-0.83,15.263-0.619,22.952c0.923,34.452,10.202,68.331,26.821,98.296v66.368h-0.444 - c-19.587,0-35.527,15.929-35.527,35.515v13.077c0,12.376,10.074,22.45,22.438,22.45h60.49c15.228,0,28.223-9.77,33.05-23.373 - h12.224v0.257c0,12.738,10.366,23.116,23.104,23.116h133.648c34.522,0,67.315-16.653,87.696-44.526 - c0.012,0,0.012-0.012,0.012-0.012c2.185-2.968,4.254-6.124,6.159-9.396c0.035-0.047,0.058-0.093,0.094-0.14 - c0.07-0.128,0.152-0.257,0.234-0.397C483.596,431.293,490.725,402.415,490.036,373.97z M80.854,209.166 - c-2.419-2.653-4.721-5.399-6.918-8.227l8.449-0.713c6.428-0.549,11.207-6.206,10.658-12.633 - c-0.538-6.439-6.194-11.207-12.633-10.658l-20.603,1.741c-2.115-4.16-3.997-8.426-5.668-12.762l25.734,3.412 - c0.514,0.07,1.028,0.093,1.543,0.093c5.773,0,10.798-4.266,11.57-10.144c0.853-6.404-3.646-12.283-10.05-13.124l-35.656-4.733 - c-1.297-7.304-1.987-14.69-1.987-22.064V24.273c0-0.491,0.409-0.9,0.9-0.9c0.082,0,0.304,0,0.538,0.175l47.693,47.705 - c3.95,3.938,10.121,4.546,14.76,1.449c16.688-11.149,36.158-17.039,56.306-17.039c20.136,0,39.617,5.89,56.306,17.039 - c4.64,3.097,10.81,2.489,14.76-1.449l47.693-47.705c0.234-0.175,0.456-0.175,0.538-0.175c0.491,0,0.9,0.409,0.9,0.9v95.082 - c0,7.374-0.678,14.76-1.987,22.064l-35.667,4.733c-6.393,0.841-10.892,6.72-10.05,13.124c0.783,5.878,5.797,10.144,11.57,10.144 - c0.514,0,1.028-0.035,1.554-0.094l25.734-3.412c-1.659,4.336-3.553,8.601-5.668,12.762l-20.615-1.741 - c-6.439-0.549-12.084,4.219-12.633,10.658c-0.538,6.428,4.231,12.084,10.658,12.633l8.461,0.713 - c-2.197,2.828-4.499,5.574-6.918,8.227c-23.174,25.325-53.232,39.267-84.634,39.267S104.029,234.491,80.854,209.166z - M447.871,445.41l-5.539,8.484c-16.022,21.749-41.674,34.732-68.67,34.732H240.282V475c0-7.514,6.1-13.627,13.615-13.627h34.581 - c4.125,0,7.935-2.174,10.05-5.726c2.104-3.541,2.185-7.935,0.21-11.558c-6.766-12.411-10.343-26.505-10.343-40.739 - c0-47.027,38.25-85.277,85.265-85.277c6.451,0,11.687-5.236,11.687-11.687c0-6.463-5.236-11.687-11.687-11.687 - c-59.905,0-108.638,48.733-108.638,108.65c0,11.803,1.928,23.525,5.656,34.651h-16.782c-17.027,0-31.39,11.57-35.679,27.253 - h-11.523v-74.712c0-6.463-5.236-11.687-11.687-11.687c-6.463,0-11.687,5.224-11.687,11.687v86.399 - c0,6.439-5.247,11.687-11.687,11.687h-59.555v-12.154c0-6.696,5.458-12.142,12.154-12.142h12.131 - c6.451,0,11.687-5.236,11.687-11.687v-77.949c0.631-2.781,0.269-5.797-1.274-8.461c-15.87-27.405-24.705-58.725-25.547-90.571 - c-0.105-3.88-0.082-7.76,0.047-11.616c14.164,5.107,29.041,7.76,44.21,7.76c38.051,0,74.221-16.642,101.872-46.863 - c9.151-10.004,16.946-21.129,23.233-32.991l110.8,69.979C465.05,302.109,485.431,382.677,447.871,445.41z M466.698,295.413 - L466.698,295.413c-10.6-17.284-24.67-32.898-41.955-45.765v-103.8c0-11.57,9.408-20.977,20.977-20.977 - c5.598,0,10.868,2.185,14.842,6.147c3.95,3.95,6.135,9.221,6.135,14.83V295.413z`})]})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 - c-2.384-0.503-4.347-2.256-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.732 - c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 - c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 - c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 - c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{id:"SVGCleanerId_0",children:w.jsx("g",{children:w.jsx("path",{d:`M432.187,353.448c-1.543-6.264-7.877-10.097-14.141-8.555c-6.264,1.543-10.097,7.877-8.555,14.141 - c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987c1.858,1.099,3.892,1.613,5.902,1.613 - c4.008,0,7.912-2.057,10.086-5.761C434.606,405.699,438.498,379.054,432.187,353.448z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 - c-2.384-0.503-4.347-2.256-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.732 - c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 - c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 - c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 - c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M432.187,353.448c-1.543-6.264-7.877-10.097-14.141-8.555c-6.264,1.543-10.097,7.877-8.555,14.141 - c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987c1.858,1.099,3.892,1.613,5.902,1.613 - c4.008,0,7.912-2.057,10.086-5.761C434.606,405.699,438.498,379.054,432.187,353.448z`})})})]})}function i8(e){return w.jsxs(sa,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:[w.jsx("g",{children:w.jsx("g",{children:w.jsxs("g",{children:[w.jsx("path",{d:`M311.685,119.296c-7.076,0-12.817,5.741-12.817,12.817c0,7.087,5.741,12.829,12.817,12.829 - c7.087,0,12.829-5.741,12.829-12.829C324.513,125.037,318.772,119.296,311.685,119.296z`}),w.jsx("path",{d:`M301.297,195.435c-5.134-2.954-11.685-1.191-14.639,3.943c-1.572,2.728-4.526,4.443-7.695,4.455 - c-0.012,0-0.012,0-0.024,0h-0.048c-3.157-0.012-6.099-1.727-7.683-4.455c-0.917-1.584-2.228-2.966-3.931-3.943 - c-5.134-2.954-11.685-1.191-14.639,3.943c-1.584,2.74-4.55,4.455-7.731,4.455s-6.135-1.715-7.719-4.455 - c-2.954-5.134-9.506-6.897-14.639-3.943c-5.134,2.954-6.885,9.517-3.931,14.639c3.538,6.158,9.112,10.756,15.569,13.21v26.313 - c0,15.295,12.436,27.73,27.73,27.73s27.742-12.436,27.742-27.73v-26.313c6.468-2.442,12.031-7.052,15.581-13.21 - C308.194,204.952,306.431,198.389,301.297,195.435z M268.218,249.597c0,3.466-2.823,6.289-6.301,6.289 - c-3.466,0-6.289-2.823-6.289-6.289v-26.313c2.216-0.834,4.336-1.918,6.301-3.252c1.953,1.334,4.074,2.418,6.289,3.264V249.597z`}),w.jsx("path",{d:`M428.788,449.559h-0.953c1.549-6.111,2.347-12.424,2.347-18.773c0-17.391-6.027-34.401-16.95-47.897 - c-8.731-10.756-20.262-18.94-33.15-23.645v-58.355c0-14.913-2.716-29.362-8.076-43.049c0-0.012,0-0.012,0-0.012 - c11.078-19.19,16.927-41.036,16.843-63.739l-0.012-26.468v-0.357l0.012-0.25v-0.048l-0.524-128.134 - c-0.048-10.423-4.157-20.19-11.542-27.516C369.432,4.014,359.676,0,349.325,0h-0.167c-10.423,0.048-20.202,4.145-27.54,11.542 - l-31.816,32.078c-9.041-2.025-18.368-3.061-27.861-3.061h-0.536c-9.732,0.036-19.214,1.191-28.326,3.323l-32.126-31.852 - c-7.349-7.302-17.105-11.316-27.456-11.316h-0.167c-10.423,0.048-20.202,4.145-27.528,11.531 - c-7.338,7.397-11.352,17.2-11.316,27.635l0.524,127.407v27.79c0.083,22.323,5.908,43.752,16.736,62.596 - c-1.703,4.324-3.145,8.731-4.312,13.198c-1.167,4.467-2.073,9.005-2.716,13.603l-42.68-42.691 - c-2.239-2.239-5.265-3.49-8.433-3.49c-3.157,0-6.182,1.251-8.422,3.49c-40.857,40.869-40.857,107.36,0,148.217l13.567,13.579 - c-3.311,8.636-5.051,17.868-5.051,27.206c0,6.349,0.798,12.662,2.347,18.773h-0.953c-15.807,0-28.671,12.865-28.671,28.671 - v14.294c0,10.744,8.731,19.476,19.476,19.476h352.086c10.744,0,19.476-8.731,19.476-19.476V478.23 - C457.459,462.424,444.595,449.559,428.788,449.559z M94.224,267.668l49.374,49.374v42.286 - c-12.555,4.622-23.823,12.555-32.436,22.954l-9.124-9.124C73.319,344.438,70.711,299.353,94.224,267.668z M90.246,488.177v-9.946 - c0-2.668,2.18-4.848,4.848-4.848h18.32c4.205,0,8.1-2.216,10.244-5.837c2.144-3.609,2.227-8.1,0.214-11.781 - c-4.157-7.6-6.349-16.236-6.349-24.979c0-8.052,1.894-15.807,5.289-22.763c0.476-0.965,0.977-1.918,1.501-2.847v-0.012 - c4.574-8.064,11.221-14.878,19.285-19.595c0,0,0,88.468,0.024,102.607H90.246z M338.533,28.314 - c5.896-5.944,15.533-5.98,21.477-0.083c2.871,2.847,4.467,6.659,4.491,10.709l0.226,54.043 - c-4.014-5.503-8.493-10.721-13.424-15.616c-10.732-10.649-23.013-19.142-36.354-25.277L338.533,28.314z M261.965,64.335h0.012 - c12.96,0.06,25.384,2.406,36.843,6.825c-13.71,2.74-26.48,9.065-37.01,18.404c-10.458-9.267-23.109-15.569-36.724-18.344 - C236.557,66.801,249.005,64.395,261.965,64.335z M158.309,39.785c-0.012-4.062,1.549-7.874,4.407-10.756 - c2.859-2.883,6.659-4.467,10.709-4.491h0.06c4.038,0,7.826,1.56,10.697,4.407l23.871,23.68 - c-19.845,9.351-36.891,23.704-49.517,41.405L158.309,39.785z M356.258,488.177L356.258,488.177h-32.34V375.409 - c0-6.575-5.336-11.912-11.912-11.912s-11.912,5.336-11.912,11.912v112.768h-76.449V375.409c0-6.575-5.336-11.912-11.912-11.912 - s-11.912,5.336-11.912,11.912v112.768h-32.364c-0.024-13.591-0.036-187.287-0.036-187.287c0-6.611,0.691-13.103,2.013-19.428 - c1.001,1.096,2.037,2.156,3.109,3.216c23.942,23.752,55.663,36.807,89.361,36.807h0.536 - c33.901-0.143,65.717-13.472,89.588-37.546c0.774-0.774,1.513-1.549,2.251-2.335c1.298,6.289,1.977,12.734,1.977,19.285V488.177z - M365.026,194.982h-0.012c-0.226,56.557-46.205,102.452-102.667,102.679h-0.429c-56.652,0-102.857-45.979-103.084-102.679 - v-27.671c0.048-30.16,13.174-57.367,34.008-76.223l16.188-0.048h0.203c17.129,0,33.317,7.552,44.395,20.714 - c2.12,2.525,5.146,3.824,8.207,3.824c2.43,0,4.884-0.822,6.897-2.513c0.476-0.405,0.905-0.846,1.298-1.31 - c5.539-6.587,12.352-11.757,19.916-15.295c7.576-3.538,15.902-5.42,24.467-5.42l16.748,0.048 - c1.143,1.036,2.263,2.096,3.371,3.192c19.535,19.38,30.363,45.193,30.494,72.721V194.982z M433.636,488.177h-53.555V385.45 - c15.831,9.184,26.277,26.396,26.277,45.336c0,8.743-2.192,17.379-6.349,24.979c-2.013,3.681-1.93,8.159,0.214,11.781 - c2.144,3.621,6.039,5.837,10.244,5.837h18.32c2.668,0,4.848,2.18,4.848,4.848V488.177z`}),w.jsx("path",{d:`M220.18,142.454c1.584-1.306,2.848-2.985,3.66-4.902c0.195-0.462,0.355-0.941,0.496-1.429 - c0.327-1.131,0.512-2.323,0.512-3.559c0-1.772-0.359-3.46-1.008-4.995c-0.325-0.767-0.722-1.497-1.183-2.179 - c-0.691-1.024-1.527-1.942-2.477-2.726c-0.634-0.523-1.318-0.986-2.045-1.381s-1.497-0.721-2.3-0.971 - c-1.205-0.375-2.487-0.577-3.816-0.577c-1.327,0-2.606,0.202-3.81,0.577c-0.803,0.25-1.571,0.576-2.298,0.971 - c-2.542,1.382-4.566,3.6-5.701,6.286c-0.649,1.535-1.008,3.223-1.008,4.995l0,0v0c0,3.98,1.817,7.538,4.665,9.889 - c0.633,0.523,1.317,0.985,2.044,1.38c1.453,0.789,3.075,1.306,4.798,1.481c0.431,0.044,0.868,0.066,1.31,0.066 - c1.329,0,2.61-0.202,3.816-0.576c0.804-0.25,1.573-0.576,2.3-0.971S219.547,142.977,220.18,142.454z`}),w.jsx("path",{d:`M256.521,175.578h10.649c6.587,0,11.912-5.325,11.912-11.912c0-6.575-5.325-11.912-11.912-11.912h-10.649 - c-6.587,0-11.912,5.336-11.912,11.912C244.609,170.254,249.934,175.578,256.521,175.578z`})]})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M212.019,119.736c-7.076,0-12.817,5.741-12.817,12.829c0,7.076,5.741,12.817,12.817,12.817 - c7.087,0,12.829-5.741,12.829-12.817C224.848,125.478,219.107,119.736,212.019,119.736z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M311.684,119.296c-7.076,0-12.817,5.741-12.817,12.817c0,7.087,5.741,12.829,12.817,12.829 - c7.087,0,12.829-5.741,12.829-12.829C324.513,125.037,318.772,119.296,311.684,119.296z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M267.17,151.755h-10.649c-6.587,0-11.912,5.336-11.912,11.912c0,6.587,5.325,11.912,11.912,11.912h10.649 - c6.587,0,11.912-5.325,11.912-11.912C279.082,157.091,273.757,151.755,267.17,151.755z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M301.297,195.435c-5.134-2.954-11.685-1.191-14.639,3.943c-1.572,2.728-4.526,4.443-7.695,4.455c-0.012,0-0.012,0-0.024,0 - h-0.048c-3.157-0.012-6.099-1.727-7.683-4.455c-0.917-1.584-2.228-2.966-3.931-3.943c-5.134-2.954-11.685-1.191-14.639,3.943 - c-1.584,2.74-4.55,4.455-7.731,4.455s-6.135-1.715-7.719-4.455c-2.954-5.134-9.506-6.897-14.639-3.943 - c-5.134,2.954-6.885,9.517-3.931,14.639c3.538,6.158,9.112,10.756,15.569,13.21v26.313c0,15.295,12.436,27.73,27.73,27.73 - s27.742-12.436,27.742-27.73v-26.313c6.468-2.442,12.031-7.052,15.581-13.21C308.194,204.952,306.431,198.389,301.297,195.435z - M268.218,249.597c0,3.466-2.823,6.289-6.301,6.289c-3.466,0-6.289-2.823-6.289-6.289v-26.313 - c2.216-0.834,4.336-1.918,6.301-3.252c1.953,1.334,4.074,2.418,6.289,3.264V249.597z`})})})]})}const Ap={fontSize:"150px"},l8={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"2rem"},a8={textAlign:"center",marginBottom:"40px",marginTop:"40px"};function s8(){const{zipCode:e}=x.useContext(vd);return w.jsxs("main",{children:[w.jsx(ko,{sx:a8,variant:"h2",children:"Find your next companion!"}),w.jsxs(gd,{sx:l8,children:[w.jsx(jp,{petType:"cats",location:e,children:w.jsx(o8,{sx:Ap})}),w.jsx(jp,{petType:"dogs",location:e,children:w.jsx(i8,{sx:Ap})})]})]})}const u8={textAlign:"center"};function Fp(e){return w.jsxs(w.Fragment,{children:[w.jsxs(ko,{variant:"h4",textAlign:"center",mb:2,children:["Loading ",e.pageName," page..."]}),w.jsx(gd,{display:"flex",justifyContent:"center",children:w.jsx(nm,{sx:u8})})]})}const c8=x.lazy(()=>Zc(()=>import("./PetSearchPage-c5bb19e4.js"),["assets/PetSearchPage-c5bb19e4.js","assets/index-850a9108.js","assets/PetSearchPage-f7f4102a.css"])),d8=x.lazy(()=>Zc(()=>import("./PetPage-31450494.js"),["assets/PetPage-31450494.js","assets/index-850a9108.js","assets/PetPage-5b81f285.css"])),f8=Yy([{path:"/",element:w.jsx(t8,{}),children:[{path:"/",element:w.jsx(s8,{})},{path:"/search/:petType",element:w.jsx(x.Suspense,{fallback:w.jsx(Fp,{pageName:"search"}),children:w.jsx(c8,{})})},{path:"/pets/:id",element:w.jsx(x.Suspense,{fallback:w.jsx(Fp,{pageName:"pet"}),children:w.jsx(d8,{})})},{path:"*",element:w.jsx(Fy,{replace:!0,to:"/not-found"})}]}]);Us.createRoot(document.getElementById("root")).render(w.jsx(x.StrictMode,{children:w.jsx(jy,{router:f8})}));export{Y1 as $,o2 as A,q1 as B,o8 as C,i8 as D,lm as E,im as F,xr as G,Yc as H,y6 as I,tm as J,q4 as K,h1 as L,$9 as M,e5 as N,Ai as O,J1 as P,j5 as Q,Gn as R,sd as S,ko as T,qt as U,Sn as V,Ta as W,y2 as X,ia as Y,Hc as Z,T as _,D1 as a,N6 as a0,hr as a1,Q1 as a2,S2 as a3,Ox as a4,Bx as a5,bp as a6,O2 as a7,mn as a8,S9 as a9,Cp as aa,g8 as ab,E2 as ac,x as b,Za as c,nn as d,B1 as e,se as f,pe as g,wn as h,kt as i,w as j,ft as k,Bi as l,h8 as m,Ct as n,ze as o,it as p,P2 as q,m8 as r,Q4 as s,_x as t,H1 as u,fn as v,V5 as w,Y as x,vd as y,p8 as z}; diff --git a/PetSearch.API/wwwroot/assets/index-850a9108.js b/PetSearch.API/wwwroot/assets/index-361cb345.js similarity index 99% rename from PetSearch.API/wwwroot/assets/index-850a9108.js rename to PetSearch.API/wwwroot/assets/index-361cb345.js index 5b83090..aeb5949 100644 --- a/PetSearch.API/wwwroot/assets/index-850a9108.js +++ b/PetSearch.API/wwwroot/assets/index-361cb345.js @@ -1,4 +1,4 @@ -import{n as It,k as Mt,t as ut,j as b,o as nt,P as ye,x as ce,K as qt,N as Zt,_ as O,b as S,p as Nt,f as Vt,I as Ae,g as kt,i as Dt,w as Te,e as $e,r as ht,h as Lt,O as le,Q as Oe,R as Ie,v as Me,S as Xt,U as ue}from"./index-09e4fc66.js";function Ne(t){return Mt("MuiAlert",t)}const Ve=It("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Jt=Ve,ke=ut(b.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),De=ut(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Le=ut(b.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),We=ut(b.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ze=ut(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Pe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],je=t=>{const{variant:e,color:o,severity:s,classes:n}=t,r={root:["root",`${e}${ce(o||s)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Dt(r,Ne,n)},Be=nt(ye,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[o.variant],e[`${o.variant}${ce(o.color||o.severity)}`]]}})(({theme:t,ownerState:e})=>{const o=t.palette.mode==="light"?qt:Zt,s=t.palette.mode==="light"?Zt:qt,n=e.color||e.severity;return O({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},n&&e.variant==="standard"&&{color:t.vars?t.vars.palette.Alert[`${n}Color`]:o(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:s(t.palette[n].light,.9),[`& .${Jt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}},n&&e.variant==="outlined"&&{color:t.vars?t.vars.palette.Alert[`${n}Color`]:o(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${Jt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}},n&&e.variant==="filled"&&O({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}))}),Ue=nt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Fe=nt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Yt=nt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Qt={success:b.jsx(ke,{fontSize:"inherit"}),warning:b.jsx(De,{fontSize:"inherit"}),error:b.jsx(Le,{fontSize:"inherit"}),info:b.jsx(We,{fontSize:"inherit"})},Ge=S.forwardRef(function(e,o){var s,n,r,i,l,u;const d=Nt({props:e,name:"MuiAlert"}),{action:c,children:f,className:m,closeText:h="Close",color:x,components:R={},componentsProps:a={},icon:T,iconMapping:L=Qt,onClose:V,role:k="alert",severity:M="success",slotProps:v={},slots:p={},variant:W="standard"}=d,I=Vt(d,Pe),_=O({},d,{color:x,severity:M,variant:W}),j=je(_),Z=(s=(n=p.closeButton)!=null?n:R.CloseButton)!=null?s:Ae,N=(r=(i=p.closeIcon)!=null?i:R.CloseIcon)!=null?r:ze,ot=(l=v.closeButton)!=null?l:a.closeButton,H=(u=v.closeIcon)!=null?u:a.closeIcon;return b.jsxs(Be,O({role:k,elevation:0,ownerState:_,className:kt(j.root,m),ref:o},I,{children:[T!==!1?b.jsx(Ue,{ownerState:_,className:j.icon,children:T||L[M]||Qt[M]}):null,b.jsx(Fe,{ownerState:_,className:j.message,children:f}),c!=null?b.jsx(Yt,{ownerState:_,className:j.action,children:c}):null,c==null&&V?b.jsx(Yt,{ownerState:_,className:j.action,children:b.jsx(Z,O({size:"small","aria-label":h,title:h,color:"inherit",onClick:V},ot,{children:b.jsx(N,O({fontSize:"small"},H))}))}):null]}))}),Qn=Ge,He=S.createContext(),te=He;function Ke(t){return Mt("MuiGrid",t)}const qe=[0,1,2,3,4,5,6,7,8,9,10],Ze=["column-reverse","column","row-reverse","row"],Xe=["nowrap","wrap-reverse","wrap"],rt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],at=It("MuiGrid",["root","container","item","zeroMinWidth",...qe.map(t=>`spacing-xs-${t}`),...Ze.map(t=>`direction-xs-${t}`),...Xe.map(t=>`wrap-xs-${t}`),...rt.map(t=>`grid-xs-${t}`),...rt.map(t=>`grid-sm-${t}`),...rt.map(t=>`grid-md-${t}`),...rt.map(t=>`grid-lg-${t}`),...rt.map(t=>`grid-xl-${t}`)]),Je=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function tt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function Ye({theme:t,ownerState:e}){let o;return t.breakpoints.keys.reduce((s,n)=>{let r={};if(e[n]&&(o=e[n]),!o)return s;if(o===!0)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=ht({values:e.columns,breakpoints:t.breakpoints.values}),l=typeof i=="object"?i[n]:i;if(l==null)return s;const u=`${Math.round(o/l*1e8)/1e6}%`;let d={};if(e.container&&e.item&&e.columnSpacing!==0){const c=t.spacing(e.columnSpacing);if(c!=="0px"){const f=`calc(${u} + ${tt(c)})`;d={flexBasis:f,maxWidth:f}}}r=O({flexBasis:u,flexGrow:0,maxWidth:u},d)}return t.breakpoints.values[n]===0?Object.assign(s,r):s[t.breakpoints.up(n)]=r,s},{})}function Qe({theme:t,ownerState:e}){const o=ht({values:e.direction,breakpoints:t.breakpoints.values});return Lt({theme:t},o,s=>{const n={flexDirection:s};return s.indexOf("column")===0&&(n[`& > .${at.item}`]={maxWidth:"none"}),n})}function de({breakpoints:t,values:e}){let o="";Object.keys(e).forEach(n=>{o===""&&e[n]!==0&&(o=n)});const s=Object.keys(t).sort((n,r)=>t[n]-t[r]);return s.slice(0,s.indexOf(o))}function tn({theme:t,ownerState:e}){const{container:o,rowSpacing:s}=e;let n={};if(o&&s!==0){const r=ht({values:s,breakpoints:t.breakpoints.values});let i;typeof r=="object"&&(i=de({breakpoints:t.breakpoints.values,values:r})),n=Lt({theme:t},r,(l,u)=>{var d;const c=t.spacing(l);return c!=="0px"?{marginTop:`-${tt(c)}`,[`& > .${at.item}`]:{paddingTop:tt(c)}}:(d=i)!=null&&d.includes(u)?{}:{marginTop:0,[`& > .${at.item}`]:{paddingTop:0}}})}return n}function en({theme:t,ownerState:e}){const{container:o,columnSpacing:s}=e;let n={};if(o&&s!==0){const r=ht({values:s,breakpoints:t.breakpoints.values});let i;typeof r=="object"&&(i=de({breakpoints:t.breakpoints.values,values:r})),n=Lt({theme:t},r,(l,u)=>{var d;const c=t.spacing(l);return c!=="0px"?{width:`calc(100% + ${tt(c)})`,marginLeft:`-${tt(c)}`,[`& > .${at.item}`]:{paddingLeft:tt(c)}}:(d=i)!=null&&d.includes(u)?{}:{width:"100%",marginLeft:0,[`& > .${at.item}`]:{paddingLeft:0}}})}return n}function nn(t,e,o={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[o[`spacing-xs-${String(t)}`]];const s=[];return e.forEach(n=>{const r=t[n];Number(r)>0&&s.push(o[`spacing-${n}-${String(r)}`])}),s}const on=nt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t,{container:s,direction:n,item:r,spacing:i,wrap:l,zeroMinWidth:u,breakpoints:d}=o;let c=[];s&&(c=nn(i,d,e));const f=[];return d.forEach(m=>{const h=o[m];h&&f.push(e[`grid-${m}-${String(h)}`])}),[e.root,s&&e.container,r&&e.item,u&&e.zeroMinWidth,...c,n!=="row"&&e[`direction-xs-${String(n)}`],l!=="wrap"&&e[`wrap-xs-${String(l)}`],...f]}})(({ownerState:t})=>O({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Qe,tn,en,Ye);function sn(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const o=[];return e.forEach(s=>{const n=t[s];if(Number(n)>0){const r=`spacing-${s}-${String(n)}`;o.push(r)}}),o}const rn=t=>{const{classes:e,container:o,direction:s,item:n,spacing:r,wrap:i,zeroMinWidth:l,breakpoints:u}=t;let d=[];o&&(d=sn(r,u));const c=[];u.forEach(m=>{const h=t[m];h&&c.push(`grid-${m}-${String(h)}`)});const f={root:["root",o&&"container",n&&"item",l&&"zeroMinWidth",...d,s!=="row"&&`direction-xs-${String(s)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...c]};return Dt(f,Ke,e)},an=S.forwardRef(function(e,o){const s=Nt({props:e,name:"MuiGrid"}),{breakpoints:n}=Te(),r=$e(s),{className:i,columns:l,columnSpacing:u,component:d="div",container:c=!1,direction:f="row",item:m=!1,rowSpacing:h,spacing:x=0,wrap:R="wrap",zeroMinWidth:a=!1}=r,T=Vt(r,Je),L=h||x,V=u||x,k=S.useContext(te),M=c?l||12:k,v={},p=O({},T);n.keys.forEach(_=>{T[_]!=null&&(v[_]=T[_],delete p[_])});const W=O({},r,{columns:M,container:c,direction:f,item:m,rowSpacing:L,columnSpacing:V,wrap:R,zeroMinWidth:a,spacing:x},v,{breakpoints:n.keys}),I=rn(W);return b.jsx(te.Provider,{value:M,children:b.jsx(on,O({ownerState:W,className:kt(I.root,i),as:d,ref:o},p))})}),to=an;function cn(t){return Mt("MuiSkeleton",t)}It("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const ln=["animation","className","component","height","style","variant","width"];let gt=t=>t,ee,ne,oe,se;const un=t=>{const{classes:e,variant:o,animation:s,hasChildren:n,width:r,height:i}=t;return Dt({root:["root",o,s,n&&"withChildren",n&&!r&&"fitContent",n&&!i&&"heightAuto"]},cn,e)},dn=le(ee||(ee=gt` +import{n as It,k as Mt,t as ut,j as b,o as nt,P as ye,x as ce,K as qt,N as Zt,_ as O,b as S,p as Nt,f as Vt,I as Ae,g as kt,i as Dt,w as Te,e as $e,r as ht,h as Lt,O as le,Q as Oe,R as Ie,v as Me,S as Xt,U as ue}from"./index-578f2bf2.js";function Ne(t){return Mt("MuiAlert",t)}const Ve=It("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Jt=Ve,ke=ut(b.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),De=ut(b.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Le=ut(b.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),We=ut(b.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),ze=ut(b.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Pe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],je=t=>{const{variant:e,color:o,severity:s,classes:n}=t,r={root:["root",`${e}${ce(o||s)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Dt(r,Ne,n)},Be=nt(ye,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t;return[e.root,e[o.variant],e[`${o.variant}${ce(o.color||o.severity)}`]]}})(({theme:t,ownerState:e})=>{const o=t.palette.mode==="light"?qt:Zt,s=t.palette.mode==="light"?Zt:qt,n=e.color||e.severity;return O({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},n&&e.variant==="standard"&&{color:t.vars?t.vars.palette.Alert[`${n}Color`]:o(t.palette[n].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${n}StandardBg`]:s(t.palette[n].light,.9),[`& .${Jt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}},n&&e.variant==="outlined"&&{color:t.vars?t.vars.palette.Alert[`${n}Color`]:o(t.palette[n].light,.6),border:`1px solid ${(t.vars||t).palette[n].light}`,[`& .${Jt.icon}`]:t.vars?{color:t.vars.palette.Alert[`${n}IconColor`]}:{color:t.palette[n].main}},n&&e.variant==="filled"&&O({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[`${n}FilledColor`],backgroundColor:t.vars.palette.Alert[`${n}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)}))}),Ue=nt("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Fe=nt("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Yt=nt("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Qt={success:b.jsx(ke,{fontSize:"inherit"}),warning:b.jsx(De,{fontSize:"inherit"}),error:b.jsx(Le,{fontSize:"inherit"}),info:b.jsx(We,{fontSize:"inherit"})},Ge=S.forwardRef(function(e,o){var s,n,r,i,l,u;const d=Nt({props:e,name:"MuiAlert"}),{action:c,children:f,className:m,closeText:h="Close",color:x,components:R={},componentsProps:a={},icon:T,iconMapping:L=Qt,onClose:V,role:k="alert",severity:M="success",slotProps:v={},slots:p={},variant:W="standard"}=d,I=Vt(d,Pe),_=O({},d,{color:x,severity:M,variant:W}),j=je(_),Z=(s=(n=p.closeButton)!=null?n:R.CloseButton)!=null?s:Ae,N=(r=(i=p.closeIcon)!=null?i:R.CloseIcon)!=null?r:ze,ot=(l=v.closeButton)!=null?l:a.closeButton,H=(u=v.closeIcon)!=null?u:a.closeIcon;return b.jsxs(Be,O({role:k,elevation:0,ownerState:_,className:kt(j.root,m),ref:o},I,{children:[T!==!1?b.jsx(Ue,{ownerState:_,className:j.icon,children:T||L[M]||Qt[M]}):null,b.jsx(Fe,{ownerState:_,className:j.message,children:f}),c!=null?b.jsx(Yt,{ownerState:_,className:j.action,children:c}):null,c==null&&V?b.jsx(Yt,{ownerState:_,className:j.action,children:b.jsx(Z,O({size:"small","aria-label":h,title:h,color:"inherit",onClick:V},ot,{children:b.jsx(N,O({fontSize:"small"},H))}))}):null]}))}),Qn=Ge,He=S.createContext(),te=He;function Ke(t){return Mt("MuiGrid",t)}const qe=[0,1,2,3,4,5,6,7,8,9,10],Ze=["column-reverse","column","row-reverse","row"],Xe=["nowrap","wrap-reverse","wrap"],rt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],at=It("MuiGrid",["root","container","item","zeroMinWidth",...qe.map(t=>`spacing-xs-${t}`),...Ze.map(t=>`direction-xs-${t}`),...Xe.map(t=>`wrap-xs-${t}`),...rt.map(t=>`grid-xs-${t}`),...rt.map(t=>`grid-sm-${t}`),...rt.map(t=>`grid-md-${t}`),...rt.map(t=>`grid-lg-${t}`),...rt.map(t=>`grid-xl-${t}`)]),Je=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function tt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function Ye({theme:t,ownerState:e}){let o;return t.breakpoints.keys.reduce((s,n)=>{let r={};if(e[n]&&(o=e[n]),!o)return s;if(o===!0)r={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(o==="auto")r={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=ht({values:e.columns,breakpoints:t.breakpoints.values}),l=typeof i=="object"?i[n]:i;if(l==null)return s;const u=`${Math.round(o/l*1e8)/1e6}%`;let d={};if(e.container&&e.item&&e.columnSpacing!==0){const c=t.spacing(e.columnSpacing);if(c!=="0px"){const f=`calc(${u} + ${tt(c)})`;d={flexBasis:f,maxWidth:f}}}r=O({flexBasis:u,flexGrow:0,maxWidth:u},d)}return t.breakpoints.values[n]===0?Object.assign(s,r):s[t.breakpoints.up(n)]=r,s},{})}function Qe({theme:t,ownerState:e}){const o=ht({values:e.direction,breakpoints:t.breakpoints.values});return Lt({theme:t},o,s=>{const n={flexDirection:s};return s.indexOf("column")===0&&(n[`& > .${at.item}`]={maxWidth:"none"}),n})}function de({breakpoints:t,values:e}){let o="";Object.keys(e).forEach(n=>{o===""&&e[n]!==0&&(o=n)});const s=Object.keys(t).sort((n,r)=>t[n]-t[r]);return s.slice(0,s.indexOf(o))}function tn({theme:t,ownerState:e}){const{container:o,rowSpacing:s}=e;let n={};if(o&&s!==0){const r=ht({values:s,breakpoints:t.breakpoints.values});let i;typeof r=="object"&&(i=de({breakpoints:t.breakpoints.values,values:r})),n=Lt({theme:t},r,(l,u)=>{var d;const c=t.spacing(l);return c!=="0px"?{marginTop:`-${tt(c)}`,[`& > .${at.item}`]:{paddingTop:tt(c)}}:(d=i)!=null&&d.includes(u)?{}:{marginTop:0,[`& > .${at.item}`]:{paddingTop:0}}})}return n}function en({theme:t,ownerState:e}){const{container:o,columnSpacing:s}=e;let n={};if(o&&s!==0){const r=ht({values:s,breakpoints:t.breakpoints.values});let i;typeof r=="object"&&(i=de({breakpoints:t.breakpoints.values,values:r})),n=Lt({theme:t},r,(l,u)=>{var d;const c=t.spacing(l);return c!=="0px"?{width:`calc(100% + ${tt(c)})`,marginLeft:`-${tt(c)}`,[`& > .${at.item}`]:{paddingLeft:tt(c)}}:(d=i)!=null&&d.includes(u)?{}:{width:"100%",marginLeft:0,[`& > .${at.item}`]:{paddingLeft:0}}})}return n}function nn(t,e,o={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[o[`spacing-xs-${String(t)}`]];const s=[];return e.forEach(n=>{const r=t[n];Number(r)>0&&s.push(o[`spacing-${n}-${String(r)}`])}),s}const on=nt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:o}=t,{container:s,direction:n,item:r,spacing:i,wrap:l,zeroMinWidth:u,breakpoints:d}=o;let c=[];s&&(c=nn(i,d,e));const f=[];return d.forEach(m=>{const h=o[m];h&&f.push(e[`grid-${m}-${String(h)}`])}),[e.root,s&&e.container,r&&e.item,u&&e.zeroMinWidth,...c,n!=="row"&&e[`direction-xs-${String(n)}`],l!=="wrap"&&e[`wrap-xs-${String(l)}`],...f]}})(({ownerState:t})=>O({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),Qe,tn,en,Ye);function sn(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const o=[];return e.forEach(s=>{const n=t[s];if(Number(n)>0){const r=`spacing-${s}-${String(n)}`;o.push(r)}}),o}const rn=t=>{const{classes:e,container:o,direction:s,item:n,spacing:r,wrap:i,zeroMinWidth:l,breakpoints:u}=t;let d=[];o&&(d=sn(r,u));const c=[];u.forEach(m=>{const h=t[m];h&&c.push(`grid-${m}-${String(h)}`)});const f={root:["root",o&&"container",n&&"item",l&&"zeroMinWidth",...d,s!=="row"&&`direction-xs-${String(s)}`,i!=="wrap"&&`wrap-xs-${String(i)}`,...c]};return Dt(f,Ke,e)},an=S.forwardRef(function(e,o){const s=Nt({props:e,name:"MuiGrid"}),{breakpoints:n}=Te(),r=$e(s),{className:i,columns:l,columnSpacing:u,component:d="div",container:c=!1,direction:f="row",item:m=!1,rowSpacing:h,spacing:x=0,wrap:R="wrap",zeroMinWidth:a=!1}=r,T=Vt(r,Je),L=h||x,V=u||x,k=S.useContext(te),M=c?l||12:k,v={},p=O({},T);n.keys.forEach(_=>{T[_]!=null&&(v[_]=T[_],delete p[_])});const W=O({},r,{columns:M,container:c,direction:f,item:m,rowSpacing:L,columnSpacing:V,wrap:R,zeroMinWidth:a,spacing:x},v,{breakpoints:n.keys}),I=rn(W);return b.jsx(te.Provider,{value:M,children:b.jsx(on,O({ownerState:W,className:kt(I.root,i),as:d,ref:o},p))})}),to=an;function cn(t){return Mt("MuiSkeleton",t)}It("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const ln=["animation","className","component","height","style","variant","width"];let gt=t=>t,ee,ne,oe,se;const un=t=>{const{classes:e,variant:o,animation:s,hasChildren:n,width:r,height:i}=t;return Dt({root:["root",o,s,n&&"withChildren",n&&!r&&"fitContent",n&&!i&&"heightAuto"]},cn,e)},dn=le(ee||(ee=gt` 0% { opacity: 1; } diff --git a/PetSearch.API/wwwroot/assets/index-578f2bf2.js b/PetSearch.API/wwwroot/assets/index-578f2bf2.js new file mode 100644 index 0000000..bc922d3 --- /dev/null +++ b/PetSearch.API/wwwroot/assets/index-578f2bf2.js @@ -0,0 +1,292 @@ +function fm(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 l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).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)}})();function Vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Hp={exports:{}},da={},Kp={exports:{}},J={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ni=Symbol.for("react.element"),hm=Symbol.for("react.portal"),mm=Symbol.for("react.fragment"),gm=Symbol.for("react.strict_mode"),vm=Symbol.for("react.profiler"),ym=Symbol.for("react.provider"),xm=Symbol.for("react.context"),Sm=Symbol.for("react.forward_ref"),wm=Symbol.for("react.suspense"),km=Symbol.for("react.memo"),Cm=Symbol.for("react.lazy"),Ed=Symbol.iterator;function Em(e){return e===null||typeof e!="object"?null:(e=Ed&&e[Ed]||e["@@iterator"],typeof e=="function"?e:null)}var Gp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Qp=Object.assign,Yp={};function vo(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}vo.prototype.isReactComponent={};vo.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")};vo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Xp(){}Xp.prototype=vo.prototype;function qu(e,t,n){this.props=e,this.context=t,this.refs=Yp,this.updater=n||Gp}var ec=qu.prototype=new Xp;ec.constructor=qu;Qp(ec,vo.prototype);ec.isPureReactComponent=!0;var Rd=Array.isArray,Zp=Object.prototype.hasOwnProperty,tc={current:null},Jp={key:!0,ref:!0,__self:!0,__source:!0};function qp(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Zp.call(t,r)&&!Jp.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1>>1,ae=N[re];if(0>>1;reo(ve,A))Reo(Lt,ve)?(N[re]=Lt,N[Re]=A,re=Re):(N[re]=ve,N[Z]=A,re=Z);else if(Reo(Lt,A))N[re]=Lt,N[Re]=A,re=Re;else break e}}return D}function o(N,D){var A=N.sortIndex-D.sortIndex;return A!==0?A:N.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,a=l.now();e.unstable_now=function(){return l.now()-a}}var s=[],u=[],c=1,d=null,p=3,S=!1,y=!1,v=!1,k=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=N)r(u),D.sortIndex=D.expirationTime,t(s,D);else break;D=n(u)}}function f(N){if(v=!1,g(N),!y)if(n(s)!==null)y=!0,ee(C);else{var D=n(u);D!==null&&Se(f,D.startTime-N)}}function C(N,D){y=!1,v&&(v=!1,m(O),O=-1),S=!0;var A=p;try{for(g(D),d=n(s);d!==null&&(!(d.expirationTime>D)||N&&!F());){var re=d.callback;if(typeof re=="function"){d.callback=null,p=d.priorityLevel;var ae=re(d.expirationTime<=D);D=e.unstable_now(),typeof ae=="function"?d.callback=ae:d===n(s)&&r(s),g(D)}else r(s);d=n(s)}if(d!==null)var et=!0;else{var Z=n(u);Z!==null&&Se(f,Z.startTime-D),et=!1}return et}finally{d=null,p=A,S=!1}}var P=!1,E=null,O=-1,j=5,$=-1;function F(){return!(e.unstable_now()-$N||125re?(N.sortIndex=A,t(u,N),n(s)===null&&N===n(u)&&(v?(m(O),O=-1):v=!0,Se(f,A-re))):(N.sortIndex=ae,t(s,N),y||S||(y=!0,ee(C))),N},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(N){var D=p;return function(){var A=p;p=D;try{return N.apply(this,arguments)}finally{p=A}}}})(rh);nh.exports=rh;var Lm=nh.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var oh=x,St=Lm;function M(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"),Hs=Object.prototype.hasOwnProperty,jm=/^[: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]*$/,bd={},Td={};function Dm(e){return Hs.call(Td,e)?!0:Hs.call(bd,e)?!1:jm.test(e)?Td[e]=!0:(bd[e]=!0,!1)}function Im(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 Am(e,t,n,r){if(t===null||typeof t>"u"||Im(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 ot(e,t,n,r,o,i,l){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=l}var Ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ge[e]=new ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ge[t]=new ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ge[e]=new ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ge[e]=new ot(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){Ge[e]=new ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ge[e]=new ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ge[e]=new ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ge[e]=new ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ge[e]=new ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var rc=/[\-:]([a-z])/g;function oc(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(rc,oc);Ge[t]=new ot(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(rc,oc);Ge[t]=new ot(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(rc,oc);Ge[t]=new ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!1,!1)});Ge.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ge[e]=new ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function ic(e,t,n,r){var o=Ge.hasOwnProperty(t)?Ge[t]:null;(o!==null?o.type!==0:r||!(2a||o[l]!==i[a]){var s=` +`+o[l].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}while(1<=l&&0<=a);break}}}finally{ps=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Vo(e):""}function Fm(e){switch(e.tag){case 5:return Vo(e.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 2:case 15:return e=hs(e.type,!1),e;case 11:return e=hs(e.type.render,!1),e;case 1:return e=hs(e.type,!0),e;default:return""}}function Ys(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 Ir:return"Fragment";case Dr:return"Portal";case Ks:return"Profiler";case lc:return"StrictMode";case Gs:return"Suspense";case Qs:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ah:return(e.displayName||"Context")+".Consumer";case lh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sc:return t=e.displayName||null,t!==null?t:Ys(e.type)||"Memo";case _n:t=e._payload,e=e._init;try{return Ys(e(t))}catch{}}return null}function Bm(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 Ys(t);case 8:return t===lc?"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 Wn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Um(e){var t=uh(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(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qi(e){e._valueTracker||(e._valueTracker=Um(e))}function ch(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zl(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 Xs(e,t){var n=t.checked;return Ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Md(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Wn(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 dh(e,t){t=t.checked,t!=null&&ic(e,"checked",t,!1)}function Zs(e,t){dh(e,t);var n=Wn(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")?Js(e,t.type,n):t.hasOwnProperty("defaultValue")&&Js(e,t.type,Wn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $d(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 Js(e,t,n){(t!=="number"||zl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ho=Array.isArray;function Zr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=el.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ci(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yo={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},Wm=["Webkit","ms","Moz","O"];Object.keys(Yo).forEach(function(e){Wm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yo[t]=Yo[e]})});function mh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yo.hasOwnProperty(e)&&Yo[e]?(""+t).trim():t+"px"}function gh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=mh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Vm=Ee({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 tu(e,t){if(t){if(Vm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function nu(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 ru=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ou=null,Jr=null,qr=null;function zd(e){if(e=Li(e)){if(typeof ou!="function")throw Error(M(280));var t=e.stateNode;t&&(t=ga(t),ou(e.stateNode,e.type,t))}}function vh(e){Jr?qr?qr.push(e):qr=[e]:Jr=e}function yh(){if(Jr){var e=Jr,t=qr;if(qr=Jr=null,zd(e),t)for(e=0;e>>=0,e===0?32:31-(tg(e)/ng|0)|0}var tl=64,nl=4194304;function Ko(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 Il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var a=l&~o;a!==0?r=Ko(a):(i&=l,i!==0&&(r=Ko(i)))}else l=n&~o,l!==0?r=Ko(l):i!==0&&(r=Ko(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 Oi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wt(t),e[t]=n}function lg(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=Zo),Wd=String.fromCharCode(32),Vd=!1;function Ih(e,t){switch(e){case"keyup":return zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ah(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function jg(e,t){switch(e){case"compositionend":return Ah(t);case"keypress":return t.which!==32?null:(Vd=!0,Wd);case"textInput":return e=t.data,e===Wd&&Vd?null:e;default:return null}}function Dg(e,t){if(Ar)return e==="compositionend"||!vc&&Ih(e,t)?(e=jh(),kl=hc=On=null,Ar=!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=Qd(n)}}function Wh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vh(){for(var e=window,t=zl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=zl(e.document)}return t}function yc(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 Kg(e){var t=Vh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Wh(n.ownerDocument.documentElement,n)){if(r!==null&&yc(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=Yd(n,i);var l=Yd(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,Fr=null,cu=null,qo=null,du=!1;function Xd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;du||Fr==null||Fr!==zl(r)||(r=Fr,"selectionStart"in r&&yc(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}),qo&&gi(qo,r)||(qo=r,r=Bl(cu,"onSelect"),0Wr||(e.current=vu[Wr],vu[Wr]=null,Wr--)}function he(e,t){Wr++,vu[Wr]=e.current,e.current=t}var Vn={},qe=Gn(Vn),st=Gn(!1),ur=Vn;function ao(e,t){var n=e.type.contextTypes;if(!n)return Vn;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 ut(e){return e=e.childContextTypes,e!=null}function Wl(){ge(st),ge(qe)}function rf(e,t,n){if(qe.current!==Vn)throw Error(M(168));he(qe,t),he(st,n)}function qh(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(M(108,Bm(e)||"Unknown",o));return Ee({},n,r)}function Vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vn,ur=qe.current,he(qe,e),he(st,st.current),!0}function of(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=qh(e,t,ur),r.__reactInternalMemoizedMergedChildContext=e,ge(st),ge(qe),he(qe,e)):ge(st),he(st,n)}var cn=null,va=!1,Ts=!1;function e0(e){cn===null?cn=[e]:cn.push(e)}function ov(e){va=!0,e0(e)}function Qn(){if(!Ts&&cn!==null){Ts=!0;var e=0,t=ce;try{var n=cn;for(ce=1;e>=l,o-=l,dn=1<<32-Wt(t)+o|n<O?(j=E,E=null):j=E.sibling;var $=p(m,E,g[O],f);if($===null){E===null&&(E=j);break}e&&E&&$.alternate===null&&t(m,E),h=i($,h,O),P===null?C=$:P.sibling=$,P=$,E=j}if(O===g.length)return n(m,E),xe&&Xn(m,O),C;if(E===null){for(;OO?(j=E,E=null):j=E.sibling;var F=p(m,E,$.value,f);if(F===null){E===null&&(E=j);break}e&&E&&F.alternate===null&&t(m,E),h=i(F,h,O),P===null?C=F:P.sibling=F,P=F,E=j}if($.done)return n(m,E),xe&&Xn(m,O),C;if(E===null){for(;!$.done;O++,$=g.next())$=d(m,$.value,f),$!==null&&(h=i($,h,O),P===null?C=$:P.sibling=$,P=$);return xe&&Xn(m,O),C}for(E=r(m,E);!$.done;O++,$=g.next())$=S(E,m,O,$.value,f),$!==null&&(e&&$.alternate!==null&&E.delete($.key===null?O:$.key),h=i($,h,O),P===null?C=$:P.sibling=$,P=$);return e&&E.forEach(function(U){return t(m,U)}),xe&&Xn(m,O),C}function k(m,h,g,f){if(typeof g=="object"&&g!==null&&g.type===Ir&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ji:e:{for(var C=g.key,P=h;P!==null;){if(P.key===C){if(C=g.type,C===Ir){if(P.tag===7){n(m,P.sibling),h=o(P,g.props.children),h.return=m,m=h;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===_n&&ff(C)===P.type){n(m,P.sibling),h=o(P,g.props),h.ref=jo(m,P,g),h.return=m,m=h;break e}n(m,P);break}else t(m,P);P=P.sibling}g.type===Ir?(h=sr(g.props.children,m.mode,f,g.key),h.return=m,m=h):(f=Ml(g.type,g.key,g.props,null,m.mode,f),f.ref=jo(m,h,g),f.return=m,m=f)}return l(m);case Dr:e:{for(P=g.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(m,h.sibling),h=o(h,g.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=js(g,m.mode,f),h.return=m,m=h}return l(m);case _n:return P=g._init,k(m,h,P(g._payload),f)}if(Ho(g))return y(m,h,g,f);if($o(g))return v(m,h,g,f);ul(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(m,h.sibling),h=o(h,g),h.return=m,m=h):(n(m,h),h=Ls(g,m.mode,f),h.return=m,m=h),l(m)):n(m,h)}return k}var uo=s0(!0),u0=s0(!1),ji={},nn=Gn(ji),Si=Gn(ji),wi=Gn(ji);function rr(e){if(e===ji)throw Error(M(174));return e}function bc(e,t){switch(he(wi,t),he(Si,e),he(nn,ji),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=eu(t,e)}ge(nn),he(nn,t)}function co(){ge(nn),ge(Si),ge(wi)}function c0(e){rr(wi.current);var t=rr(nn.current),n=eu(t,e.type);t!==n&&(he(Si,e),he(nn,n))}function Tc(e){Si.current===e&&(ge(nn),ge(Si))}var ke=Gn(0);function Xl(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _s=[];function _c(){for(var e=0;e<_s.length;e++)_s[e]._workInProgressVersionPrimary=null;_s.length=0}var Rl=Cn.ReactCurrentDispatcher,Ms=Cn.ReactCurrentBatchConfig,dr=0,Ce=null,je=null,Ae=null,Zl=!1,ei=!1,ki=0,lv=0;function Ye(){throw Error(M(321))}function Mc(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Ms.transition;Ms.transition={};try{e(!1),t()}finally{ce=n,Ms.transition=r}}function P0(){return zt().memoizedState}function sv(e,t,n){var r=Bn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b0(e))T0(t,n);else if(n=o0(e,t,n,r),n!==null){var o=nt();Vt(n,e,r,o),_0(n,t,r)}}function uv(e,t,n){var r=Bn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b0(e))T0(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,a=i(l,n);if(o.hasEagerState=!0,o.eagerState=a,Ht(a,l)){var s=t.interleaved;s===null?(o.next=o,Rc(t)):(o.next=s.next,s.next=o),t.interleaved=o;return}}catch{}finally{}n=o0(e,t,o,r),n!==null&&(o=nt(),Vt(n,e,r,o),_0(n,t,r))}}function b0(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function T0(e,t){ei=Zl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dc(e,n)}}var Jl={readContext:Ot,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useInsertionEffect:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useSyncExternalStore:Ye,useId:Ye,unstable_isNewReconciler:!1},cv={readContext:Ot,useCallback:function(e,t){return Yt().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:hf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Pl(4194308,4,w0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Pl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Pl(4,2,e,t)},useMemo:function(e,t){var n=Yt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yt();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=sv.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Yt();return e={current:e},t.memoizedState=e},useState:pf,useDebugValue:zc,useDeferredValue:function(e){return Yt().memoizedState=e},useTransition:function(){var e=pf(!1),t=e[0];return e=av.bind(null,e[1]),Yt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ce,o=Yt();if(xe){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Fe===null)throw Error(M(349));dr&30||p0(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,hf(m0.bind(null,r,i,e),[e]),r.flags|=2048,Ei(9,h0.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Yt(),t=Fe.identifierPrefix;if(xe){var n=fn,r=dn;n=(r&~(1<<32-Wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ki++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Jt]=t,e[xi]=r,I0(e,t,!1,!1),t.stateNode=e;e:{switch(l=nu(n,r),n){case"dialog":me("cancel",e),me("close",e),o=r;break;case"iframe":case"object":case"embed":me("load",e),o=r;break;case"video":case"audio":for(o=0;opo&&(t.flags|=128,r=!0,Do(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Do(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!xe)return Xe(t),null}else 2*_e()-i.renderingStartTime>po&&n!==1073741824&&(t.flags|=128,r=!0,Do(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=_e(),t.sibling=null,n=ke.current,he(ke,r?n&1|2:n&1),t):(Xe(t),null);case 22:case 23:return Fc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function yv(e,t){switch(Sc(t),t.tag){case 1:return ut(t.type)&&Wl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return co(),ge(st),ge(qe),_c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tc(t),null;case 13:if(ge(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));so()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ge(ke),null;case 4:return co(),null;case 10:return Ec(t.type._context),null;case 22:case 23:return Fc(),null;case 24:return null;default:return null}}var dl=!1,Je=!1,xv=typeof WeakSet=="function"?WeakSet:Set,L=null;function Gr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Te(e,t,r)}else n.current=null}function _u(e,t,n){try{n()}catch(r){Te(e,t,r)}}var Cf=!1;function Sv(e,t){if(fu=Al,e=Vh(),yc(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 l=0,a=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var S;d!==n||o!==0&&d.nodeType!==3||(a=l+o),d!==i||r!==0&&d.nodeType!==3||(s=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(S=d.firstChild)!==null;)p=d,d=S;for(;;){if(d===e)break t;if(p===n&&++u===o&&(a=l),p===i&&++c===r&&(s=l),(S=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=S}n=a===-1||s===-1?null:{start:a,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(pu={focusedElem:e,selectionRange:n},Al=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,k=y.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:At(t.type,v),k);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(f){Te(t,t.return,f)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=Cf,Cf=!1,y}function ti(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&&_u(t,n,i)}o=o.next}while(o!==r)}}function Sa(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 Mu(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 B0(e){var t=e.alternate;t!==null&&(e.alternate=null,B0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Jt],delete t[xi],delete t[gu],delete t[nv],delete t[rv])),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 U0(e){return e.tag===5||e.tag===3||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||U0(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 $u(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=Ul));else if(r!==4&&(e=e.child,e!==null))for($u(e,t,n),e=e.sibling;e!==null;)$u(e,t,n),e=e.sibling}function Nu(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(Nu(e,t,n),e=e.sibling;e!==null;)Nu(e,t,n),e=e.sibling}var Ve=null,Bt=!1;function bn(e,t,n){for(n=n.child;n!==null;)W0(e,t,n),n=n.sibling}function W0(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(fa,n)}catch{}switch(n.tag){case 5:Je||Gr(n,t);case 6:var r=Ve,o=Bt;Ve=null,bn(e,t,n),Ve=r,Bt=o,Ve!==null&&(Bt?(e=Ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ve.removeChild(n.stateNode));break;case 18:Ve!==null&&(Bt?(e=Ve,n=n.stateNode,e.nodeType===8?bs(e.parentNode,n):e.nodeType===1&&bs(e,n),hi(e)):bs(Ve,n.stateNode));break;case 4:r=Ve,o=Bt,Ve=n.stateNode.containerInfo,Bt=!0,bn(e,t,n),Ve=r,Bt=o;break;case 0:case 11:case 14:case 15:if(!Je&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&_u(n,t,l),o=o.next}while(o!==r)}bn(e,t,n);break;case 1:if(!Je&&(Gr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Te(n,t,a)}bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:n.mode&1?(Je=(r=Je)||n.memoizedState!==null,bn(e,t,n),Je=r):bn(e,t,n);break;default:bn(e,t,n)}}function Rf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xv),t.forEach(function(r){var o=_v.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function It(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=_e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kv(r/1960))-r,10e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,ta=0,q&6)throw Error(M(331));var o=q;for(q|=4,L=e.current;L!==null;){var i=L,l=i.child;if(L.flags&16){var a=i.deletions;if(a!==null){for(var s=0;s_e()-Ic?ar(e,0):Dc|=n),ct(e,t)}function Z0(e,t){t===0&&(e.mode&1?(t=nl,nl<<=1,!(nl&130023424)&&(nl=4194304)):t=1);var n=nt();e=xn(e,t),e!==null&&(Oi(e,t,n),ct(e,n))}function Tv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Z0(e,n)}function _v(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(M(314))}r!==null&&r.delete(t),Z0(e,n)}var J0;J0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||st.current)at=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return at=!1,gv(e,t,n);at=!!(e.flags&131072)}else at=!1,xe&&t.flags&1048576&&t0(t,Kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bl(e,t),e=t.pendingProps;var o=ao(t,qe.current);to(t,n),o=$c(null,t,r,e,o,n);var i=Nc();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,ut(r)?(i=!0,Vl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pc(t),o.updater=ya,t.stateNode=o,o._reactInternals=t,ku(t,r,e,n),t=Ru(null,t,r,!0,i,n)):(t.tag=0,xe&&i&&xc(t),tt(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bl(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=$v(r),e=At(r,e),o){case 0:t=Eu(null,t,r,e,n);break e;case 1:t=Sf(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=xf(null,t,r,At(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),Eu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),Sf(e,t,r,o,n);case 3:e:{if(L0(t),e===null)throw Error(M(387));r=t.pendingProps,i=t.memoizedState,o=i.element,i0(e,t),Yl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=fo(Error(M(423)),t),t=wf(e,t,r,n,o);break e}else if(r!==o){o=fo(Error(M(424)),t),t=wf(e,t,r,n,o);break e}else for(gt=In(t.stateNode.containerInfo.firstChild),yt=t,xe=!0,Ut=null,n=u0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(so(),r===o){t=Sn(e,t,n);break e}tt(e,t,r,n)}t=t.child}return t;case 5:return c0(t),e===null&&xu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,hu(r,o)?l=null:i!==null&&hu(r,i)&&(t.flags|=32),z0(e,t),tt(e,t,l,n),t.child;case 6:return e===null&&xu(t),null;case 13:return j0(e,t,n);case 4:return bc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):tt(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),yf(e,t,r,o,n);case 7:return tt(e,t,t.pendingProps,n),t.child;case 8:return tt(e,t,t.pendingProps.children,n),t.child;case 12:return tt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,he(Gl,r._currentValue),r._currentValue=l,i!==null)if(Ht(i.value,l)){if(i.children===o.children&&!st.current){t=Sn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var a=i.dependencies;if(a!==null){l=i.child;for(var s=a.firstContext;s!==null;){if(s.context===r){if(i.tag===1){s=hn(-1,n&-n),s.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Su(i.return,n,t),a.lanes|=n;break}s=s.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(M(341));l.lanes|=n,a=l.alternate,a!==null&&(a.lanes|=n),Su(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}tt(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,to(t,n),o=Ot(o),r=r(o),t.flags|=1,tt(e,t,r,n),t.child;case 14:return r=t.type,o=At(r,t.pendingProps),o=At(r.type,o),xf(e,t,r,o,n);case 15:return N0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:At(r,o),bl(e,t),t.tag=1,ut(r)?(e=!0,Vl(t)):e=!1,to(t,n),a0(t,r,o),ku(t,r,o,n),Ru(null,t,r,!0,e,n);case 19:return D0(e,t,n);case 22:return O0(e,t,n)}throw Error(M(156,t.tag))};function q0(e,t){return Rh(e,t)}function Mv(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 $t(e,t,n,r){return new Mv(e,t,n,r)}function Uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $v(e){if(typeof e=="function")return Uc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===sc)return 14}return 2}function Un(e,t){var n=e.alternate;return n===null?(n=$t(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 Ml(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Uc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Ir:return sr(n.children,o,i,t);case lc:l=8,o|=8;break;case Ks:return e=$t(12,n,t,o|2),e.elementType=Ks,e.lanes=i,e;case Gs:return e=$t(13,n,t,o),e.elementType=Gs,e.lanes=i,e;case Qs:return e=$t(19,n,t,o),e.elementType=Qs,e.lanes=i,e;case sh:return ka(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lh:l=10;break e;case ah:l=9;break e;case ac:l=11;break e;case sc:l=14;break e;case _n:l=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=$t(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function sr(e,t,n,r){return e=$t(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=$t(22,e,r,t),e.elementType=sh,e.lanes=n,e.stateNode={isHidden:!1},e}function Ls(e,t,n){return e=$t(6,e,null,t),e.lanes=n,e}function js(e,t,n){return t=$t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nv(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=gs(0),this.expirationTimes=gs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,r,o,i,l,a,s){return e=new Nv(e,t,n,a,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=$t(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pc(i),e}function Ov(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r1)}catch(e){console.error(e)}}r1(),th.exports=wt;var Gc=th.exports;const hl=Vp(Gc);var Of=Gc;Vs.createRoot=Of.createRoot,Vs.hydrateRoot=Of.hydrateRoot;/** + * @remix-run/router v1.6.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function le(){return le=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function ho(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Av(){return Math.random().toString(36).substr(2,8)}function Lf(e,t){return{usr:e.state,key:e.key,idx:t}}function Pi(e,t,n,r){return n===void 0&&(n=null),le({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?En(t):t,{state:n,key:t&&t.key||r||Av()})}function hr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function En(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fv(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,a=$e.Pop,s=null,u=c();u==null&&(u=0,l.replaceState(le({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function d(){a=$e.Pop;let k=c(),m=k==null?null:k-u;u=k,s&&s({action:a,location:v.location,delta:m})}function p(k,m){a=$e.Push;let h=Pi(v.location,k,m);n&&n(h,k),u=c()+1;let g=Lf(h,u),f=v.createHref(h);try{l.pushState(g,"",f)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(f)}i&&s&&s({action:a,location:v.location,delta:1})}function S(k,m){a=$e.Replace;let h=Pi(v.location,k,m);n&&n(h,k),u=c();let g=Lf(h,u),f=v.createHref(h);l.replaceState(g,"",f),i&&s&&s({action:a,location:v.location,delta:0})}function y(k){let m=o.location.origin!=="null"?o.location.origin:o.location.href,h=typeof k=="string"?k:hr(k);return X(m,"No window.location.(origin|href) available to create URL for href: "+h),new URL(h,m)}let v={get action(){return a},get location(){return e(o,l)},listen(k){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(zf,d),s=k,()=>{o.removeEventListener(zf,d),s=null}},createHref(k){return t(o,k)},createURL:y,encodeLocation(k){let m=y(k);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:p,replace:S,go(k){return l.go(k)}};return v}var Le;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Le||(Le={}));const Bv=new Set(["lazy","caseSensitive","path","id","index","children"]);function Uv(e){return e.index===!0}function Du(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let l=[...n,i],a=typeof o.id=="string"?o.id:l.join("-");if(X(o.index!==!0||!o.children,"Cannot specify children on an index route"),X(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Uv(o)){let s=le({},o,t(o),{id:a});return r[a]=s,s}else{let s=le({},o,t(o),{id:a,children:void 0});return r[a]=s,o.children&&(s.children=Du(o.children,t,l,r)),s}})}function Yr(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?En(t):t,o=So(r.pathname||"/",n);if(o==null)return null;let i=o1(e);Wv(i);let l=null;for(let a=0;l==null&&a{let s={relativePath:a===void 0?i.path||"":a,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};s.relativePath.startsWith("/")&&(X(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let u=mn([r,s.relativePath]),c=n.concat(s);i.children&&i.children.length>0&&(X(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),o1(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:Xv(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var a;if(i.path===""||!((a=i.path)!=null&&a.includes("?")))o(i,l);else for(let s of i1(i.path))o(i,l,s)}),t}function i1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=i1(r.join("/")),a=[];return a.push(...l.map(s=>s===""?i:[i,s].join("/"))),o&&a.push(...l),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function Wv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Zv(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Vv=/^:\w+$/,Hv=3,Kv=2,Gv=1,Qv=10,Yv=-2,jf=e=>e==="*";function Xv(e,t){let n=e.split("/"),r=n.length;return n.some(jf)&&(r+=Yv),t&&(r+=Kv),n.filter(o=>!jf(o)).reduce((o,i)=>o+(Vv.test(i)?Hv:i===""?Gv:Qv),r)}function Zv(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Jv(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{if(c==="*"){let p=a[d]||"";l=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=ny(a[d]||"",c),u},{}),pathname:i,pathnameBase:l,pattern:e}}function ey(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ho(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(l,a)=>(r.push(a),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ty(e){try{return decodeURI(e)}catch(t){return ho(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ny(e,t){try{return decodeURIComponent(e)}catch(n){return ho(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function So(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ry(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?En(e):e;return{pathname:n?n.startsWith("/")?n:oy(n,t):t,search:ly(r),hash:ay(o)}}function oy(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ds(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Di(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ba(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=En(e):(o=le({},e),X(!o.pathname||!o.pathname.includes("?"),Ds("?","pathname","search",o)),X(!o.pathname||!o.pathname.includes("#"),Ds("#","pathname","hash",o)),X(!o.search||!o.search.includes("#"),Ds("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,a;if(r||l==null)a=n;else{let d=t.length-1;if(l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),d-=1;o.pathname=p.join("/")}a=d>=0?t[d]:"/"}let s=ry(o,a),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}const mn=e=>e.join("/").replace(/\/\/+/g,"/"),iy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ly=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ay=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Qc{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Yc(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const l1=["post","put","patch","delete"],sy=new Set(l1),uy=["get",...l1],cy=new Set(uy),dy=new Set([301,302,303,307,308]),fy=new Set([307,308]),Is={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},py={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Df={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},a1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,hy=e=>({hasErrorBoundary:!!e.hasErrorBoundary});function my(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;X(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;o=b=>({hasErrorBoundary:R(b)})}else o=hy;let i={},l=Du(e.routes,o,void 0,i),a,s=e.basename||"/",u=le({v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,d=new Set,p=null,S=null,y=null,v=e.hydrationData!=null,k=Yr(l,e.history.location,s),m=null;if(k==null){let R=Ft(404,{pathname:e.history.location.pathname}),{matches:b,route:_}=Vf(l);k=b,m={[_.id]:R}}let h=!k.some(R=>R.route.lazy)&&(!k.some(R=>R.route.loader)||e.hydrationData!=null),g,f={historyAction:e.history.action,location:e.history.location,matches:k,initialized:h,navigation:Is,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||m,fetchers:new Map,blockers:new Map},C=$e.Pop,P=!1,E,O=!1,j=!1,$=[],F=[],U=new Map,ne=0,K=-1,G=new Map,ee=new Set,Se=new Map,N=new Map,D=new Map,A=!1;function re(){return c=e.history.listen(R=>{let{action:b,location:_,delta:z}=R;if(A){A=!1;return}ho(D.size===0||z!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let B=To({currentLocation:f.location,nextLocation:_,historyAction:b});if(B&&z!=null){A=!0,e.history.go(z*-1),br(B,{state:"blocked",location:_,proceed(){br(B,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(z)},reset(){Dt(B),Z({blockers:new Map(g.state.blockers)})}});return}return Pt(b,_)}),f.initialized||Pt($e.Pop,f.location),g}function ae(){c&&c(),d.clear(),E&&E.abort(),f.fetchers.forEach((R,b)=>bo(b)),f.blockers.forEach((R,b)=>Dt(b))}function et(R){return d.add(R),()=>d.delete(R)}function Z(R){f=le({},f,R),d.forEach(b=>b(f))}function ve(R,b){var _,z;let B=f.actionData!=null&&f.navigation.formMethod!=null&&un(f.navigation.formMethod)&&f.navigation.state==="loading"&&((_=R.state)==null?void 0:_._isRedirect)!==!0,W;b.actionData?Object.keys(b.actionData).length>0?W=b.actionData:W=null:B?W=f.actionData:W=null;let V=b.loaderData?Wf(f.loaderData,b.loaderData,b.matches||[],b.errors):f.loaderData;for(let[I]of D)Dt(I);let H=P===!0||f.navigation.formMethod!=null&&un(f.navigation.formMethod)&&((z=R.state)==null?void 0:z._isRedirect)!==!0;a&&(l=a,a=void 0),Z(le({},b,{actionData:W,loaderData:V,historyAction:C,location:R,initialized:!0,navigation:Is,revalidation:"idle",restoreScrollPosition:Ki(R,b.matches||f.matches),preventScrollReset:H,blockers:new Map(f.blockers)})),O||C===$e.Pop||(C===$e.Push?e.history.push(R,R.state):C===$e.Replace&&e.history.replace(R,R.state)),C=$e.Pop,P=!1,O=!1,j=!1,$=[],F=[]}async function Re(R,b){if(typeof R=="number"){e.history.go(R);return}let _=Iu(f.location,f.matches,s,u.v7_prependBasename,R,b==null?void 0:b.fromRouteId,b==null?void 0:b.relative),{path:z,submission:B,error:W}=If(u.v7_normalizeFormMethod,!1,_,b),V=f.location,H=Pi(f.location,z,b&&b.state);H=le({},H,e.history.encodeLocation(H));let I=b&&b.replace!=null?b.replace:void 0,te=$e.Push;I===!0?te=$e.Replace:I===!1||B!=null&&un(B.formMethod)&&B.formAction===f.location.pathname+f.location.search&&(te=$e.Replace);let fe=b&&"preventScrollReset"in b?b.preventScrollReset===!0:void 0,Qe=To({currentLocation:V,nextLocation:H,historyAction:te});if(Qe){br(Qe,{state:"blocked",location:H,proceed(){br(Qe,{state:"proceeding",proceed:void 0,reset:void 0,location:H}),Re(R,b)},reset(){Dt(Qe),Z({blockers:new Map(f.blockers)})}});return}return await Pt(te,H,{submission:B,pendingError:W,preventScrollReset:fe,replace:b&&b.replace})}function Lt(){if(Me(),Z({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){Pt(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}Pt(C||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation})}}async function Pt(R,b,_){E&&E.abort(),E=null,C=R,O=(_&&_.startUninterruptedRevalidation)===!0,Hi(f.location,f.matches),P=(_&&_.preventScrollReset)===!0;let z=a||l,B=_&&_.overrideNavigation,W=Yr(z,b,s);if(!W){let Ie=Ft(404,{pathname:b.pathname}),{matches:Ue,route:Gt}=Vf(z);_o(),ve(b,{matches:Ue,loaderData:{},errors:{[Gt.id]:Ie}});return}if(f.initialized&&!j&&Sy(f.location,b)&&!(_&&_.submission&&un(_.submission.formMethod))){ve(b,{matches:W});return}E=new AbortController;let V=Fo(e.history,b,E.signal,_&&_.submission),H,I;if(_&&_.pendingError)I={[Xr(W).route.id]:_.pendingError};else if(_&&_.submission&&un(_.submission.formMethod)){let Ie=await pt(V,b,_.submission,W,{replace:_.replace});if(Ie.shortCircuited)return;H=Ie.pendingActionData,I=Ie.pendingActionError,B=le({state:"loading",location:b},_.submission),V=new Request(V.url,{signal:V.signal})}let{shortCircuited:te,loaderData:fe,errors:Qe}=await Eo(V,b,W,B,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,H,I);te||(E=null,ve(b,le({matches:W},H?{actionData:H}:{},{loaderData:fe,errors:Qe})))}async function pt(R,b,_,z,B){Me();let W=le({state:"submitting",location:b},_);Z({navigation:W});let V,H=Au(z,b);if(!H.route.action&&!H.route.lazy)V={type:Le.error,error:Ft(405,{method:R.method,pathname:b.pathname,routeId:H.route.id})};else if(V=await Ao("action",R,H,z,i,o,s),R.signal.aborted)return{shortCircuited:!0};if(ro(V)){let I;return B&&B.replace!=null?I=B.replace:I=V.location===f.location.pathname+f.location.search,await jt(f,V,{submission:_,replace:I}),{shortCircuited:!0}}if(oi(V)){let I=Xr(z,H.route.id);return(B&&B.replace)!==!0&&(C=$e.Push),{pendingActionData:{},pendingActionError:{[I.route.id]:V.error}}}if(or(V))throw Ft(400,{type:"defer-action"});return{pendingActionData:{[H.route.id]:V.data}}}async function Eo(R,b,_,z,B,W,V,H,I){let te=z;te||(te=le({state:"loading",location:b,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},B));let fe=B||W?B||W:te.formMethod&&te.formAction&&te.formData&&te.formEncType?{formMethod:te.formMethod,formAction:te.formAction,formData:te.formData,formEncType:te.formEncType}:void 0,Qe=a||l,[Ie,Ue]=Af(e.history,f,_,fe,b,j,$,F,Se,Qe,s,H,I);if(_o(we=>!(_&&_.some(bt=>bt.route.id===we))||Ie&&Ie.some(bt=>bt.route.id===we)),Ie.length===0&&Ue.length===0){let we=Wi();return ve(b,le({matches:_,loaderData:{},errors:I||null},H?{actionData:H}:{},we?{fetchers:new Map(f.fetchers)}:{})),{shortCircuited:!0}}if(!O){Ue.forEach(bt=>{let Tr=f.fetchers.get(bt.key),We={state:"loading",data:Tr&&Tr.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(bt.key,We)});let we=H||f.actionData;Z(le({navigation:te},we?Object.keys(we).length===0?{actionData:null}:{actionData:we}:{},Ue.length>0?{fetchers:new Map(f.fetchers)}:{}))}K=++ne,Ue.forEach(we=>{we.controller&&U.set(we.key,we.controller)});let Gt=()=>Ue.forEach(we=>Kt(we.key));E&&E.signal.addEventListener("abort",Gt);let{results:Mo,loaderResults:ls,fetcherResults:Qi}=await Er(f.matches,_,Ie,Ue,R);if(R.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener("abort",Gt),Ue.forEach(we=>U.delete(we.key));let an=Hf(Mo);if(an)return await jt(f,an,{replace:V}),{shortCircuited:!0};let{loaderData:Yi,errors:as}=Uf(f,_,Ie,ls,I,Ue,Qi,N);N.forEach((we,bt)=>{we.subscribe(Tr=>{(Tr||we.done)&&N.delete(bt)})});let ss=Wi(),us=Vi(K),Xi=ss||us||Ue.length>0;return le({loaderData:Yi,errors:as},Xi?{fetchers:new Map(f.fetchers)}:{})}function kr(R){return f.fetchers.get(R)||py}function Pn(R,b,_,z){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");U.has(R)&&Kt(R);let B=a||l,W=Iu(f.location,f.matches,s,u.v7_prependBasename,_,b,z==null?void 0:z.relative),V=Yr(B,W,s);if(!V){Po(R,b,Ft(404,{pathname:W}));return}let{path:H,submission:I}=If(u.v7_normalizeFormMethod,!0,W,z),te=Au(V,H);if(P=(z&&z.preventScrollReset)===!0,I&&un(I.formMethod)){Cr(R,b,H,te,V,I);return}Se.set(R,{routeId:b,path:H}),Ro(R,b,H,te,V,I)}async function Cr(R,b,_,z,B,W){if(Me(),Se.delete(R),!z.route.action&&!z.route.lazy){let We=Ft(405,{method:W.formMethod,pathname:_,routeId:b});Po(R,b,We);return}let V=f.fetchers.get(R),H=le({state:"submitting"},W,{data:V&&V.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(R,H),Z({fetchers:new Map(f.fetchers)});let I=new AbortController,te=Fo(e.history,_,I.signal,W);U.set(R,I);let fe=await Ao("action",te,z,B,i,o,s);if(te.signal.aborted){U.get(R)===I&&U.delete(R);return}if(ro(fe)){U.delete(R),ee.add(R);let We=le({state:"loading"},W,{data:void 0," _hasFetcherDoneAnything ":!0});return f.fetchers.set(R,We),Z({fetchers:new Map(f.fetchers)}),jt(f,fe,{submission:W,isFetchActionRedirect:!0})}if(oi(fe)){Po(R,b,fe.error);return}if(or(fe))throw Ft(400,{type:"defer-action"});let Qe=f.navigation.location||f.location,Ie=Fo(e.history,Qe,I.signal),Ue=a||l,Gt=f.navigation.state!=="idle"?Yr(Ue,f.navigation.location,s):f.matches;X(Gt,"Didn't find any matches after fetcher action");let Mo=++ne;G.set(R,Mo);let ls=le({state:"loading",data:fe.data},W,{" _hasFetcherDoneAnything ":!0});f.fetchers.set(R,ls);let[Qi,an]=Af(e.history,f,Gt,W,Qe,j,$,F,Se,Ue,s,{[z.route.id]:fe.data},void 0);an.filter(We=>We.key!==R).forEach(We=>{let cs=We.key,Cd=f.fetchers.get(cs),dm={state:"loading",data:Cd&&Cd.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(cs,dm),We.controller&&U.set(cs,We.controller)}),Z({fetchers:new Map(f.fetchers)});let Yi=()=>an.forEach(We=>Kt(We.key));I.signal.addEventListener("abort",Yi);let{results:as,loaderResults:ss,fetcherResults:us}=await Er(f.matches,Gt,Qi,an,Ie);if(I.signal.aborted)return;I.signal.removeEventListener("abort",Yi),G.delete(R),U.delete(R),an.forEach(We=>U.delete(We.key));let Xi=Hf(as);if(Xi)return jt(f,Xi);let{loaderData:we,errors:bt}=Uf(f,f.matches,Qi,ss,void 0,an,us,N);if(f.fetchers.has(R)){let We={state:"idle",data:fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(R,We)}let Tr=Vi(Mo);f.navigation.state==="loading"&&Mo>K?(X(C,"Expected pending action"),E&&E.abort(),ve(f.navigation.location,{matches:Gt,loaderData:we,errors:bt,fetchers:new Map(f.fetchers)})):(Z(le({errors:bt,loaderData:Wf(f.loaderData,we,Gt,bt)},Tr||an.length>0?{fetchers:new Map(f.fetchers)}:{})),j=!1)}async function Ro(R,b,_,z,B,W){let V=f.fetchers.get(R),H=le({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},W,{data:V&&V.data," _hasFetcherDoneAnything ":!0});f.fetchers.set(R,H),Z({fetchers:new Map(f.fetchers)});let I=new AbortController,te=Fo(e.history,_,I.signal);U.set(R,I);let fe=await Ao("loader",te,z,B,i,o,s);if(or(fe)&&(fe=await d1(fe,te.signal,!0)||fe),U.get(R)===I&&U.delete(R),te.signal.aborted)return;if(ro(fe)){ee.add(R),await jt(f,fe);return}if(oi(fe)){let Ie=Xr(f.matches,b);f.fetchers.delete(R),Z({fetchers:new Map(f.fetchers),errors:{[Ie.route.id]:fe.error}});return}X(!or(fe),"Unhandled fetcher deferred data");let Qe={state:"idle",data:fe.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(R,Qe),Z({fetchers:new Map(f.fetchers)})}async function jt(R,b,_){let{submission:z,replace:B,isFetchActionRedirect:W}=_===void 0?{}:_;b.revalidate&&(j=!0);let V=Pi(R.location,b.location,le({_isRedirect:!0},W?{_isFetchActionRedirect:!0}:{}));if(X(V,"Expected a location on the redirect navigation"),a1.test(b.location)&&n){let Ie=e.history.createURL(b.location),Ue=So(Ie.pathname,s)==null;if(t.location.origin!==Ie.origin||Ue){B?t.location.replace(b.location):t.location.assign(b.location);return}}E=null;let H=B===!0?$e.Replace:$e.Push,{formMethod:I,formAction:te,formEncType:fe,formData:Qe}=R.navigation;!z&&I&&te&&Qe&&fe&&(z={formMethod:I,formAction:te,formEncType:fe,formData:Qe}),fy.has(b.status)&&z&&un(z.formMethod)?await Pt(H,V,{submission:le({},z,{formAction:b.location}),preventScrollReset:P}):W?await Pt(H,V,{overrideNavigation:{state:"loading",location:V,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:z,preventScrollReset:P}):await Pt(H,V,{overrideNavigation:{state:"loading",location:V,formMethod:z?z.formMethod:void 0,formAction:z?z.formAction:void 0,formEncType:z?z.formEncType:void 0,formData:z?z.formData:void 0},preventScrollReset:P})}async function Er(R,b,_,z,B){let W=await Promise.all([..._.map(I=>Ao("loader",B,I,b,i,o,s)),...z.map(I=>I.matches&&I.match&&I.controller?Ao("loader",Fo(e.history,I.path,I.controller.signal),I.match,I.matches,i,o,s):{type:Le.error,error:Ft(404,{pathname:I.path})})]),V=W.slice(0,_.length),H=W.slice(_.length);return await Promise.all([Kf(R,_,V,V.map(()=>B.signal),!1,f.loaderData),Kf(R,z.map(I=>I.match),H,z.map(I=>I.controller?I.controller.signal:null),!0)]),{results:W,loaderResults:V,fetcherResults:H}}function Me(){j=!0,$.push(..._o()),Se.forEach((R,b)=>{U.has(b)&&(F.push(b),Kt(b))})}function Po(R,b,_){let z=Xr(f.matches,b);bo(R),Z({errors:{[z.route.id]:_},fetchers:new Map(f.fetchers)})}function bo(R){let b=f.fetchers.get(R);U.has(R)&&!(b&&b.state==="loading"&&G.has(R))&&Kt(R),Se.delete(R),G.delete(R),ee.delete(R),f.fetchers.delete(R)}function Kt(R){let b=U.get(R);X(b,"Expected fetch controller: "+R),b.abort(),U.delete(R)}function Rr(R){for(let b of R){let z={state:"idle",data:kr(b).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};f.fetchers.set(b,z)}}function Wi(){let R=[],b=!1;for(let _ of ee){let z=f.fetchers.get(_);X(z,"Expected fetcher: "+_),z.state==="loading"&&(ee.delete(_),R.push(_),b=!0)}return Rr(R),b}function Vi(R){let b=[];for(let[_,z]of G)if(z0}function Pr(R,b){let _=f.blockers.get(R)||Df;return D.get(R)!==b&&D.set(R,b),_}function Dt(R){f.blockers.delete(R),D.delete(R)}function br(R,b){let _=f.blockers.get(R)||Df;X(_.state==="unblocked"&&b.state==="blocked"||_.state==="blocked"&&b.state==="blocked"||_.state==="blocked"&&b.state==="proceeding"||_.state==="blocked"&&b.state==="unblocked"||_.state==="proceeding"&&b.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+b.state),f.blockers.set(R,b),Z({blockers:new Map(f.blockers)})}function To(R){let{currentLocation:b,nextLocation:_,historyAction:z}=R;if(D.size===0)return;D.size>1&&ho(!1,"A router only supports one blocker at a time");let B=Array.from(D.entries()),[W,V]=B[B.length-1],H=f.blockers.get(W);if(!(H&&H.state==="proceeding")&&V({currentLocation:b,nextLocation:_,historyAction:z}))return W}function _o(R){let b=[];return N.forEach((_,z)=>{(!R||R(z))&&(_.cancel(),b.push(z),N.delete(z))}),b}function Q(R,b,_){if(p=R,y=b,S=_||(z=>z.key),!v&&f.navigation===Is){v=!0;let z=Ki(f.location,f.matches);z!=null&&Z({restoreScrollPosition:z})}return()=>{p=null,y=null,S=null}}function Hi(R,b){if(p&&S&&y){let _=b.map(B=>Gf(B,f.loaderData)),z=S(R,_)||R.key;p[z]=y()}}function Ki(R,b){if(p&&S&&y){let _=b.map(W=>Gf(W,f.loaderData)),z=S(R,_)||R.key,B=p[z];if(typeof B=="number")return B}return null}function Gi(R){i={},a=Du(R,o,void 0,i)}return g={get basename(){return s},get state(){return f},get routes(){return l},initialize:re,subscribe:et,enableScrollRestoration:Q,navigate:Re,fetch:Pn,revalidate:Lt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:kr,deleteFetcher:bo,dispose:ae,getBlocker:Pr,deleteBlocker:Dt,_internalFetchControllers:U,_internalActiveDeferreds:N,_internalSetRoutes:Gi},g}function gy(e){return e!=null&&"formData"in e}function Iu(e,t,n,r,o,i,l){let a,s;if(i!=null&&l!=="path"){a=[];for(let c of t)if(a.push(c),c.route.id===i){s=c;break}}else a=t,s=t[t.length-1];let u=ba(o||".",Di(a).map(c=>c.pathnameBase),So(e.pathname,n)||e.pathname,l==="path");return o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Xc(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:mn([n,u.pathname])),hr(u)}function If(e,t,n,r){if(!r||!gy(r))return{path:n};if(r.formMethod&&!Cy(r.formMethod))return{path:n,error:Ft(405,{method:r.formMethod})};let o;if(r.formData){let a=r.formMethod||"get";if(o={formMethod:e?a.toUpperCase():a.toLowerCase(),formAction:c1(n),formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:r.formData},un(o.formMethod))return{path:n,submission:o}}let i=En(n),l=u1(r.formData);return t&&i.search&&Xc(i.search)&&l.append("index",""),i.search="?"+l,{path:hr(i),submission:o}}function vy(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Af(e,t,n,r,o,i,l,a,s,u,c,d,p){let S=p?Object.values(p)[0]:d?Object.values(d)[0]:void 0,y=e.createURL(t.location),v=e.createURL(o),k=p?Object.keys(p)[0]:void 0,h=vy(n,k).filter((f,C)=>{if(f.route.lazy)return!0;if(f.route.loader==null)return!1;if(yy(t.loaderData,t.matches[C],f)||l.some(O=>O===f.route.id))return!0;let P=t.matches[C],E=f;return Ff(f,le({currentUrl:y,currentParams:P.params,nextUrl:v,nextParams:E.params},r,{actionResult:S,defaultShouldRevalidate:i||y.pathname+y.search===v.pathname+v.search||y.search!==v.search||s1(P,E)}))}),g=[];return s.forEach((f,C)=>{if(!n.some(j=>j.route.id===f.routeId))return;let P=Yr(u,f.path,c);if(!P){g.push({key:C,routeId:f.routeId,path:f.path,matches:null,match:null,controller:null});return}let E=Au(P,f.path);if(a.includes(C)){g.push({key:C,routeId:f.routeId,path:f.path,matches:P,match:E,controller:new AbortController});return}Ff(E,le({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:S,defaultShouldRevalidate:i}))&&g.push({key:C,routeId:f.routeId,path:f.path,matches:P,match:E,controller:new AbortController})}),[h,g]}function yy(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function s1(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Ff(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Bf(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];X(o,"No route found in manifest");let i={};for(let l in r){let s=o[l]!==void 0&&l!=="hasErrorBoundary";ho(!s,'Route "'+o.id+'" has a static property "'+l+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+l+'" will be ignored.')),!s&&!Bv.has(l)&&(i[l]=r[l])}Object.assign(o,i),Object.assign(o,le({},t(o),{lazy:void 0}))}async function Ao(e,t,n,r,o,i,l,a,s,u){a===void 0&&(a=!1),s===void 0&&(s=!1);let c,d,p,S=k=>{let m,h=new Promise((g,f)=>m=f);return p=()=>m(),t.signal.addEventListener("abort",p),Promise.race([k({request:t,params:n.params,context:u}),h])};try{let k=n.route[e];if(n.route.lazy)if(k)d=(await Promise.all([S(k),Bf(n.route,i,o)]))[0];else if(await Bf(n.route,i,o),k=n.route[e],k)d=await S(k);else if(e==="action"){let m=new URL(t.url),h=m.pathname+m.search;throw Ft(405,{method:t.method,pathname:h,routeId:n.route.id})}else return{type:Le.data,data:void 0};else if(k)d=await S(k);else{let m=new URL(t.url),h=m.pathname+m.search;throw Ft(404,{pathname:h})}X(d!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(k){c=Le.error,d=k}finally{p&&t.signal.removeEventListener("abort",p)}if(ky(d)){let k=d.status;if(dy.has(k)){let g=d.headers.get("Location");if(X(g,"Redirects returned/thrown from loaders/actions must have a Location header"),!a1.test(g))g=Iu(new URL(t.url),r.slice(0,r.indexOf(n)+1),l,!0,g);else if(!a){let f=new URL(t.url),C=g.startsWith("//")?new URL(f.protocol+g):new URL(g),P=So(C.pathname,l)!=null;C.origin===f.origin&&P&&(g=C.pathname+C.search+C.hash)}if(a)throw d.headers.set("Location",g),d;return{type:Le.redirect,status:k,location:g,revalidate:d.headers.get("X-Remix-Revalidate")!==null}}if(s)throw{type:c||Le.data,response:d};let m,h=d.headers.get("Content-Type");return h&&/\bapplication\/json\b/.test(h)?m=await d.json():m=await d.text(),c===Le.error?{type:c,error:new Qc(k,d.statusText,m),headers:d.headers}:{type:Le.data,data:m,statusCode:d.status,headers:d.headers}}if(c===Le.error)return{type:c,error:d};if(wy(d)){var y,v;return{type:Le.deferred,deferredData:d,statusCode:(y=d.init)==null?void 0:y.status,headers:((v=d.init)==null?void 0:v.headers)&&new Headers(d.init.headers)}}return{type:Le.data,data:d}}function Fo(e,t,n,r){let o=e.createURL(c1(t)).toString(),i={signal:n};if(r&&un(r.formMethod)){let{formMethod:l,formEncType:a,formData:s}=r;i.method=l.toUpperCase(),i.body=a==="application/x-www-form-urlencoded"?u1(s):s}return new Request(o,i)}function u1(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function xy(e,t,n,r,o){let i={},l=null,a,s=!1,u={};return n.forEach((c,d)=>{let p=t[d].route.id;if(X(!ro(c),"Cannot handle redirect results in processLoaderData"),oi(c)){let S=Xr(e,p),y=c.error;r&&(y=Object.values(r)[0],r=void 0),l=l||{},l[S.route.id]==null&&(l[S.route.id]=y),i[p]=void 0,s||(s=!0,a=Yc(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else or(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(a=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(l=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:l,statusCode:a||200,loaderHeaders:u}}function Uf(e,t,n,r,o,i,l,a){let{loaderData:s,errors:u}=xy(t,n,r,o,a);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Vf(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ft(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,l="Unknown Server Error",a="Unknown @remix-run/router error";return e===400?(l="Bad Request",o&&n&&r?a="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"&&(a="defer() is not supported in actions")):e===403?(l="Forbidden",a='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",a='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?a="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(a='Invalid request method "'+o.toUpperCase()+'"')),new Qc(e||500,l,new Error(a),!0)}function Hf(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(ro(n))return n}}function c1(e){let t=typeof e=="string"?En(e):e;return hr(le({},t,{hash:""}))}function Sy(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function or(e){return e.type===Le.deferred}function oi(e){return e.type===Le.error}function ro(e){return(e&&e.type)===Le.redirect}function wy(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function ky(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Cy(e){return cy.has(e.toLowerCase())}function un(e){return sy.has(e.toLowerCase())}async function Kf(e,t,n,r,o,i){for(let l=0;ld.route.id===s.route.id),c=u!=null&&!s1(u,s)&&(i&&i[s.route.id])!==void 0;if(or(a)&&(o||c)){let d=r[l];X(d,"Expected an AbortSignal for revalidating fetcher deferred result"),await d1(a,d,o).then(p=>{p&&(n[l]=p||n[l])})}}}async function d1(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Le.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Le.error,error:o}}return{type:Le.data,data:e.deferredData.data}}}function Xc(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Gf(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function Au(e,t){let n=typeof t=="string"?En(t).search:t.search;if(e[e.length-1].route.index&&Xc(n||""))return e[e.length-1];let r=Di(e);return r[r.length-1]}/** + * React Router v6.12.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function oa(){return oa=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),l=x.useRef(!1);return p1(()=>{l.current=!0}),x.useCallback(function(s,u){if(u===void 0&&(u={}),!l.current)return;if(typeof s=="number"){n.go(s);return}let c=ba(s,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:mn([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,i,o,e])}const Py=x.createContext(null);function by(e){let t=x.useContext(ln).outlet;return t&&x.createElement(Py.Provider,{value:e},t)}function m8(){let{matches:e}=x.useContext(ln),t=e[e.length-1];return t?t.params:{}}function h1(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=x.useContext(ln),{pathname:o}=wr(),i=JSON.stringify(Di(r).map(l=>l.pathnameBase));return x.useMemo(()=>ba(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function Ty(e,t,n){ko()||X(!1);let{navigator:r}=x.useContext(wo),{matches:o}=x.useContext(ln),i=o[o.length-1],l=i?i.params:{};i&&i.pathname;let a=i?i.pathnameBase:"/";i&&i.route;let s=wr(),u;if(t){var c;let v=typeof t=="string"?En(t):t;a==="/"||(c=v.pathname)!=null&&c.startsWith(a)||X(!1),u=v}else u=s;let d=u.pathname||"/",p=a==="/"?d:d.slice(a.length)||"/",S=Yr(e,{pathname:p}),y=Oy(S&&S.map(v=>Object.assign({},v,{params:Object.assign({},l,v.params),pathname:mn([a,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?a:mn([a,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n);return t&&y?x.createElement(Ta.Provider,{value:{location:oa({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:$e.Pop}},y):y}function _y(){let e=g1(),t=Yc(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,i)}const My=x.createElement(_y,null);class $y extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?x.createElement(ln.Provider,{value:this.props.routeContext},x.createElement(f1.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ny(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(Ii);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement(ln.Provider,{value:t},r)}function Oy(e,t,n){var r;if(t===void 0&&(t=[]),n===void 0&&(n=null),e==null){var o;if((o=n)!=null&&o.errors)e=n.matches;else return null}let i=e,l=(r=n)==null?void 0:r.errors;if(l!=null){let a=i.findIndex(s=>s.route.id&&(l==null?void 0:l[s.route.id]));a>=0||X(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,s,u)=>{let c=s.route.id?l==null?void 0:l[s.route.id]:null,d=null;n&&(d=s.route.errorElement||My);let p=t.concat(i.slice(0,u+1)),S=()=>{let y;return c?y=d:s.route.Component?y=x.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=a,x.createElement(Ny,{match:s,routeContext:{outlet:a,matches:p,isDataRoute:n!=null},children:y})};return n&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?x.createElement($y,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:S(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):S()},null)}var Fu;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"})(Fu||(Fu={}));var mr;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"})(mr||(mr={}));function zy(e){let t=x.useContext(Ii);return t||X(!1),t}function qc(e){let t=x.useContext(Zc);return t||X(!1),t}function Ly(e){let t=x.useContext(ln);return t||X(!1),t}function m1(e){let t=Ly(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function jy(){return qc(mr.UseNavigation).navigation}function Dy(){let{matches:e,loaderData:t}=qc(mr.UseMatches);return x.useMemo(()=>e.map(n=>{let{pathname:r,params:o}=n;return{id:n.route.id,pathname:r,params:o,data:t[n.route.id],handle:n.route.handle}}),[e,t])}function g1(){var e;let t=x.useContext(f1),n=qc(mr.UseRouteError),r=m1(mr.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function Iy(){let{router:e}=zy(Fu.UseNavigateStable),t=m1(mr.UseNavigateStable),n=x.useRef(!1);return p1(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,oa({fromRouteId:t},i)))},[e,t])}const Qf="startTransition";function Ay(e){let{fallbackElement:t,router:n}=e,[r,o]=x.useState(n.state),i=x.useCallback(u=>{Qf in si?si[Qf](()=>o(u)):o(u)},[o]);x.useLayoutEffect(()=>n.subscribe(i),[n,i]);let l=x.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:u=>n.navigate(u),push:(u,c,d)=>n.navigate(u,{state:c,preventScrollReset:d==null?void 0:d.preventScrollReset}),replace:(u,c,d)=>n.navigate(u,{replace:!0,state:c,preventScrollReset:d==null?void 0:d.preventScrollReset})}),[n]),a=n.basename||"/",s=x.useMemo(()=>({router:n,navigator:l,static:!1,basename:a}),[n,l,a]);return x.createElement(x.Fragment,null,x.createElement(Ii.Provider,{value:s},x.createElement(Zc.Provider,{value:r},x.createElement(Wy,{basename:a,location:r.location,navigationType:r.historyAction,navigator:l},r.initialized?x.createElement(Fy,{routes:n.routes,state:r}):t))),null)}function Fy(e){let{routes:t,state:n}=e;return Ty(t,void 0,n)}function By(e){let{to:t,replace:n,state:r,relative:o}=e;ko()||X(!1);let{matches:i}=x.useContext(ln),{pathname:l}=wr(),a=Jc(),s=ba(t,Di(i).map(c=>c.pathnameBase),l,o==="path"),u=JSON.stringify(s);return x.useEffect(()=>a(JSON.parse(u),{replace:n,state:r,relative:o}),[a,u,o,n,r]),null}function Uy(e){return by(e.context)}function Wy(e){let{basename:t="/",children:n=null,location:r,navigationType:o=$e.Pop,navigator:i,static:l=!1}=e;ko()&&X(!1);let a=t.replace(/^\/*/,"/"),s=x.useMemo(()=>({basename:a,navigator:i,static:l}),[a,i,l]);typeof r=="string"&&(r=En(r));let{pathname:u="/",search:c="",hash:d="",state:p=null,key:S="default"}=r,y=x.useMemo(()=>{let v=So(u,a);return v==null?null:{location:{pathname:v,search:c,hash:d,state:p,key:S},navigationType:o}},[a,u,c,d,p,S,o]);return y==null?null:x.createElement(wo.Provider,{value:s},x.createElement(Ta.Provider,{children:n,value:y}))}var Yf;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(Yf||(Yf={}));new Promise(()=>{});function Vy(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:x.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.12.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Ky(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Gy(e,t){return e.button===0&&(!t||t==="_self")&&!Ky(e)}function Bu(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Qy(e,t){let n=Bu(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}const Yy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Xy(e,t){return my({basename:t==null?void 0:t.basename,future:bi({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Iv({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Zy(),routes:e,mapRouteProperties:Vy}).initialize()}function Zy(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=bi({},t,{errors:Jy(t.errors)})),t}function Jy(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new Qc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){let i=new Error(o.message);i.stack="",n[r]=i}else n[r]=o;return n}const qy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",e2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_a=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:l,state:a,target:s,to:u,preventScrollReset:c}=t,d=Hy(t,Yy),{basename:p}=x.useContext(wo),S,y=!1;if(typeof u=="string"&&e2.test(u)&&(S=u,qy))try{let h=new URL(window.location.href),g=u.startsWith("//")?new URL(h.protocol+u):new URL(u),f=So(g.pathname,p);g.origin===h.origin&&f!=null?u=f+g.search+g.hash:y=!0}catch{}let v=Ey(u,{relative:o}),k=o2(u,{replace:l,state:a,target:s,preventScrollReset:c,relative:o});function m(h){r&&r(h),h.defaultPrevented||k(h)}return x.createElement("a",bi({},d,{href:S||v,onClick:y||i?r:m,ref:n,target:s}))});function t2(e){let{getKey:t,storageKey:n}=e;return l2({getKey:t,storageKey:n}),null}var Uu;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(Uu||(Uu={}));var Wu;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Wu||(Wu={}));function n2(e){let t=x.useContext(Ii);return t||X(!1),t}function r2(e){let t=x.useContext(Zc);return t||X(!1),t}function o2(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:l}=t===void 0?{}:t,a=Jc(),s=wr(),u=h1(e,{relative:l});return x.useCallback(c=>{if(Gy(c,n)){c.preventDefault();let d=r!==void 0?r:hr(s)===hr(u);a(e,{replace:d,state:o,preventScrollReset:i,relative:l})}},[s,a,u,r,o,n,e,i,l])}function i2(e){let t=x.useRef(Bu(e)),n=x.useRef(!1),r=wr(),o=x.useMemo(()=>Qy(r.search,n.current?null:t.current),[r.search]),i=Jc(),l=x.useCallback((a,s)=>{const u=Bu(typeof a=="function"?a(o):a);n.current=!0,i("?"+u,s)},[i,o]);return[o,l]}const Xf="react-router-scroll-positions";let ml={};function l2(e){let{getKey:t,storageKey:n}=e===void 0?{}:e,{router:r}=n2(Uu.UseScrollRestoration),{restoreScrollPosition:o,preventScrollReset:i}=r2(Wu.UseScrollRestoration),l=wr(),a=Dy(),s=jy();x.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),a2(x.useCallback(()=>{if(s.state==="idle"){let u=(t?t(l,a):null)||l.key;ml[u]=window.scrollY}sessionStorage.setItem(n||Xf,JSON.stringify(ml)),window.history.scrollRestoration="auto"},[n,t,s.state,l,a])),typeof document<"u"&&(x.useLayoutEffect(()=>{try{let u=sessionStorage.getItem(n||Xf);u&&(ml=JSON.parse(u))}catch{}},[n]),x.useLayoutEffect(()=>{let u=r==null?void 0:r.enableScrollRestoration(ml,()=>window.scrollY,t);return()=>u&&u()},[r,t]),x.useLayoutEffect(()=>{if(o!==!1){if(typeof o=="number"){window.scrollTo(0,o);return}if(l.hash){let u=document.getElementById(l.hash.slice(1));if(u){u.scrollIntoView();return}}i!==!0&&window.scrollTo(0,0)}},[l,o,i]))}function a2(e,t){let{capture:n}=t||{};x.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,n])}const s2="modulepreload",u2=function(e){return"/"+e},Zf={},ed=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=u2(i),i in Zf)return;Zf[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":s2,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},c2={black:"#000",white:"#fff"},Ti=c2,d2={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Mr=d2,f2={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},$r=f2,p2={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Nr=p2,h2={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Or=h2,m2={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},zr=m2,g2={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Bo=g2,v2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},y2=v2;function er(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function v1(e){if(!er(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=v1(e[n])}),t}function rn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return er(e)&&er(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(er(t[o])&&o in e&&er(e[o])?r[o]=rn(e[o],t[o],n):n.clone?r[o]=er(t[o])?v1(t[o]):t[o]:r[o]=t[o])}),r}function gr(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function x2(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function S2(e,t){return()=>null}function w2(e,t){return x.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function gn(e){return e&&e.ownerDocument||document}function Ma(e){return gn(e).defaultView||window}function k2(e,t){return()=>null}function ia(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const C2=typeof window<"u"?x.useLayoutEffect:x.useEffect,la=C2;let Jf=0;function E2(e){const[t,n]=x.useState(e),r=e||t;return x.useEffect(()=>{t==null&&(Jf+=1,n(`mui-${Jf}`))},[t]),r}const qf=si["useId".toString()];function R2(e){if(qf!==void 0){const t=qf();return e??t}return E2(e)}function P2(e,t,n,r,o){return null}function b2({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=x.useRef(e!==void 0),[i,l]=x.useState(t),a=o?e:i,s=x.useCallback(u=>{o||l(u)},[]);return[a,s]}function ir(e){const t=x.useRef(e);return la(()=>{t.current=e}),x.useCallback((...n)=>(0,t.current)(...n),[])}function wn(...e){return x.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ia(n,t)})},e)}let $a=!0,Hu=!1,ep;const T2={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _2(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&T2[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function M2(e){e.metaKey||e.altKey||e.ctrlKey||($a=!0)}function As(){$a=!1}function $2(){this.visibilityState==="hidden"&&Hu&&($a=!0)}function N2(e){e.addEventListener("keydown",M2,!0),e.addEventListener("mousedown",As,!0),e.addEventListener("pointerdown",As,!0),e.addEventListener("touchstart",As,!0),e.addEventListener("visibilitychange",$2,!0)}function O2(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return $a||_2(t)}function td(){const e=x.useCallback(o=>{o!=null&&N2(o.ownerDocument)},[]),t=x.useRef(!1);function n(){return t.current?(Hu=!0,window.clearTimeout(ep),ep=window.setTimeout(()=>{Hu=!1},100),t.current=!1,!0):!1}function r(o){return O2(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function z2(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function nd(e,t){const n={...t};return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]={...i},Object.keys(o).forEach(l=>{n[r][l]=nd(o[l],i[l])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ct(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,l)=>{if(l){const a=t(l);a!==""&&i.push(a),n&&n[l]&&i.push(n[l])}return i},[]).join(" ")}),r}const tp=e=>e,L2=()=>{let e=tp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tp}}},j2=L2(),rd=j2,D2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ft(e,t,n="Mui"){const r=D2[t];return r?`${n}-${r}`:`${rd.generate(e)}-${t}`}function Et(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ft(e,o,n)}),r}const vr="$$material";function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function y1(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var I2=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,A2=y1(function(e){return I2.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function F2(e){if(e.sheet)return e.sheet;for(var t=0;t0?He(Co,--dt):0,mo--,Ne===10&&(mo=1,Oa--),Ne}function xt(){return Ne=dt2||Mi(Ne)>3?"":" "}function q2(e,t){for(;--t&&xt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return Ai(e,$l()+(t<6&&on()==32&&xt()==32))}function Gu(e){for(;xt();)switch(Ne){case e:return dt;case 34:case 39:e!==34&&e!==39&&Gu(Ne);break;case 40:e===41&&Gu(e);break;case 92:xt();break}return dt}function e3(e,t){for(;xt()&&e+Ne!==47+10;)if(e+Ne===42+42&&on()===47)break;return"/*"+Ai(t,dt-1)+"*"+Na(e===47?e:xt())}function t3(e){for(;!Mi(on());)xt();return Ai(e,dt)}function n3(e){return E1(Ol("",null,null,null,[""],e=C1(e),0,[0],e))}function Ol(e,t,n,r,o,i,l,a,s){for(var u=0,c=0,d=l,p=0,S=0,y=0,v=1,k=1,m=1,h=0,g="",f=o,C=i,P=r,E=g;k;)switch(y=h,h=xt()){case 40:if(y!=108&&He(E,d-1)==58){Ku(E+=ie(Nl(h),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:E+=Nl(h);break;case 9:case 10:case 13:case 32:E+=J2(y);break;case 92:E+=q2($l()-1,7);continue;case 47:switch(on()){case 42:case 47:gl(r3(e3(xt(),$l()),t,n),s);break;default:E+="/"}break;case 123*v:a[u++]=Xt(E)*m;case 125*v:case 59:case 0:switch(h){case 0:case 125:k=0;case 59+c:m==-1&&(E=ie(E,/\f/g,"")),S>0&&Xt(E)-d&&gl(S>32?rp(E+";",r,n,d-1):rp(ie(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(gl(P=np(E,t,n,u,c,o,a,g,f=[],C=[],d),i),h===123)if(c===0)Ol(E,t,P,P,f,i,d,a,C);else switch(p===99&&He(E,3)===110?100:p){case 100:case 108:case 109:case 115:Ol(e,P,P,r&&gl(np(e,P,P,0,0,o,a,g,o,f=[],d),C),o,C,d,a,r?f:C);break;default:Ol(E,P,P,P,[""],C,0,a,C)}}u=c=S=0,v=m=1,g=E="",d=l;break;case 58:d=1+Xt(E),S=y;default:if(v<1){if(h==123)--v;else if(h==125&&v++==0&&Z2()==125)continue}switch(E+=Na(h),h*v){case 38:m=c>0?1:(E+="\f",-1);break;case 44:a[u++]=(Xt(E)-1)*m,m=1;break;case 64:on()===45&&(E+=Nl(xt())),p=on(),c=d=Xt(g=E+=t3($l())),h++;break;case 45:y===45&&Xt(E)==2&&(v=0)}}return i}function np(e,t,n,r,o,i,l,a,s,u,c){for(var d=o-1,p=o===0?i:[""],S=ld(p),y=0,v=0,k=0;y0?p[m]+" "+h:ie(h,/&\f/g,p[m])))&&(s[k++]=g);return za(e,t,n,o===0?od:a,s,u,c)}function r3(e,t,n){return za(e,t,n,x1,Na(X2()),_i(e,2,-2),0)}function rp(e,t,n,r){return za(e,t,n,id,_i(e,0,r),_i(e,r+1,-1),r)}function oo(e,t){for(var n="",r=ld(e),o=0;o6)switch(He(e,t+1)){case 109:if(He(e,t+4)!==45)break;case 102:return ie(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+aa+(He(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ku(e,"stretch")?R1(ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(He(e,t+1)!==115)break;case 6444:switch(He(e,Xt(e)-3-(~Ku(e,"!important")&&10))){case 107:return ie(e,":",":"+oe)+e;case 101:return ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+oe+(He(e,14)===45?"inline-":"")+"box$3$1"+oe+"$2$3$1"+Ze+"$2box$3")+e}break;case 5936:switch(He(e,t+11)){case 114:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+Ze+ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return oe+e+Ze+e+e}return e}var f3=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case id:t.return=R1(t.value,t.length);break;case S1:return oo([Uo(t,{value:ie(t.value,"@","@"+oe)})],o);case od:if(t.length)return Y2(t.props,function(i){switch(Q2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oo([Uo(t,{props:[ie(i,/:(read-\w+)/,":"+aa+"$1")]})],o);case"::placeholder":return oo([Uo(t,{props:[ie(i,/:(plac\w+)/,":"+oe+"input-$1")]}),Uo(t,{props:[ie(i,/:(plac\w+)/,":"+aa+"$1")]}),Uo(t,{props:[ie(i,/:(plac\w+)/,Ze+"input-$1")]})],o)}return""})}},p3=[f3],h3=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var k=v.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var o=t.stylisPlugins||p3,i={},l,a=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(v){for(var k=v.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var P3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},b3=/[A-Z]|^ms/g,T3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,N1=function(t){return t.charCodeAt(1)===45},ip=function(t){return t!=null&&typeof t!="boolean"},Fs=y1(function(e){return N1(e)?e:e.replace(b3,"-$&").toLowerCase()}),lp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(T3,function(r,o,i){return Zt={name:o,styles:i,next:Zt},o})}return P3[t]!==1&&!N1(t)&&typeof n=="number"&&n!==0?n+"px":n};function $i(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Zt={name:n.name,styles:n.styles,next:Zt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Zt={name:r.name,styles:r.styles,next:Zt},r=r.next;var o=n.styles+";";return o}return _3(e,t,n)}case"function":{if(e!==void 0){var i=Zt,l=n(e);return Zt=i,$i(e,t,l)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function _3(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?O3:z3},cp=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(l){return t.__emotion_forwardProp(l)&&i(l)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},L3=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return M1(n,r,o),$3(function(){return $1(n,r,o)}),null},j3=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,l;n!==void 0&&(i=n.label,l=n.target);var a=cp(t,n,r),s=a||up(o),u=!s("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var p=c.length,S=1;St(I3(o)?n:o):t;return w.jsx(N3,{styles:r})}/** + * @mui/styled-engine v5.13.2 + * + * @license MIT + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */function j1(e,t){return Qu(e,t)}const F3=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},B3=["values","unit","step"],U3=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>T({},n,{[r.key]:r.val}),{})};function W3(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=se(e,B3),i=U3(t),l=Object.keys(i);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function s(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,S){const y=l.indexOf(S);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(y!==-1&&typeof t[l[y]]=="number"?t[l[y]]:S)-r/100}${n})`}function c(p){return l.indexOf(p)+1`@media (min-width:${fd[e]}px)`};function kn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||dp;return t.reduce((l,a,s)=>(l[i.up(i.keys[s])]=n(t[s]),l),{})}if(typeof t=="object"){const i=r.breakpoints||dp;return Object.keys(t).reduce((l,a)=>{if(Object.keys(i.values||fd).indexOf(a)!==-1){const s=i.up(a);l[s]=n(t[a],a)}else{const s=a;l[s]=t[s]}return l},{})}return n(t)}function D1(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function I1(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function g8(e,...t){const n=D1(e),r=[n,...t].reduce((o,i)=>rn(o,i),{});return I1(Object.keys(n),r)}function K3(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function v8({values:e,breakpoints:t,base:n}){const r=n||K3(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((l,a,s)=>(Array.isArray(e)?(l[a]=e[s]!=null?e[s]:e[i],i=s):typeof e=="object"?(l[a]=e[a]!=null?e[a]:e[i],i=a):l[a]=e,l),{})}function go(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function sa(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=go(e,n)||r,t&&(o=t(o,r,e)),o}function ue(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=l=>{if(l[t]==null)return null;const a=l[t],s=l.theme,u=go(s,r)||{};return kn(l,a,d=>{let p=sa(u,o,d);return d===p&&typeof d=="string"&&(p=sa(u,o,`${t}${d==="default"?"":Y(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function G3(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Q3={m:"margin",p:"padding"},Y3={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},X3=G3(e=>{if(e.length>2)if(fp[e])e=fp[e];else return[e];const[t,n]=e.split(""),r=Q3[t],o=Y3[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),pd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...pd,...hd];function Bi(e,t,n,r){var o;const i=(o=go(e,t,!1))!=null?o:n;return typeof i=="number"?l=>typeof l=="string"?l:i*l:Array.isArray(i)?l=>typeof l=="string"?l:i[l]:typeof i=="function"?i:()=>{}}function A1(e){return Bi(e,"spacing",8)}function Ui(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Z3(e,t){return n=>e.reduce((r,o)=>(r[o]=Ui(t,n),r),{})}function J3(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=X3(n),i=Z3(o,r),l=e[n];return kn(e,l,i)}function F1(e,t){const n=A1(e.theme);return Object.keys(e).map(r=>J3(e,t,r,n)).reduce(ii,{})}function Pe(e){return F1(e,pd)}Pe.propTypes={};Pe.filterProps=pd;function be(e){return F1(e,hd)}be.propTypes={};be.filterProps=hd;function q3(e=8){if(e.mui)return e;const t=A1({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const l=t(i);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Ka(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ii(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function qt(e){return typeof e!="number"?e:`${e}px solid`}const e4=ue({prop:"border",themeKey:"borders",transform:qt}),t4=ue({prop:"borderTop",themeKey:"borders",transform:qt}),n4=ue({prop:"borderRight",themeKey:"borders",transform:qt}),r4=ue({prop:"borderBottom",themeKey:"borders",transform:qt}),o4=ue({prop:"borderLeft",themeKey:"borders",transform:qt}),i4=ue({prop:"borderColor",themeKey:"palette"}),l4=ue({prop:"borderTopColor",themeKey:"palette"}),a4=ue({prop:"borderRightColor",themeKey:"palette"}),s4=ue({prop:"borderBottomColor",themeKey:"palette"}),u4=ue({prop:"borderLeftColor",themeKey:"palette"}),Ga=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Bi(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ui(t,r)});return kn(e,e.borderRadius,n)}return null};Ga.propTypes={};Ga.filterProps=["borderRadius"];Ka(e4,t4,n4,r4,o4,i4,l4,a4,s4,u4,Ga);const Qa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({gap:Ui(t,r)});return kn(e,e.gap,n)}return null};Qa.propTypes={};Qa.filterProps=["gap"];const Ya=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({columnGap:Ui(t,r)});return kn(e,e.columnGap,n)}return null};Ya.propTypes={};Ya.filterProps=["columnGap"];const Xa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Bi(e.theme,"spacing",8),n=r=>({rowGap:Ui(t,r)});return kn(e,e.rowGap,n)}return null};Xa.propTypes={};Xa.filterProps=["rowGap"];const c4=ue({prop:"gridColumn"}),d4=ue({prop:"gridRow"}),f4=ue({prop:"gridAutoFlow"}),p4=ue({prop:"gridAutoColumns"}),h4=ue({prop:"gridAutoRows"}),m4=ue({prop:"gridTemplateColumns"}),g4=ue({prop:"gridTemplateRows"}),v4=ue({prop:"gridTemplateAreas"}),y4=ue({prop:"gridArea"});Ka(Qa,Ya,Xa,c4,d4,f4,p4,h4,m4,g4,v4,y4);function io(e,t){return t==="grey"?t:e}const x4=ue({prop:"color",themeKey:"palette",transform:io}),S4=ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:io}),w4=ue({prop:"backgroundColor",themeKey:"palette",transform:io});Ka(x4,S4,w4);function mt(e){return e<=1&&e!==0?`${e*100}%`:e}const k4=ue({prop:"width",transform:mt}),md=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||fd[n]||mt(n)}};return kn(e,e.maxWidth,t)}return null};md.filterProps=["maxWidth"];const C4=ue({prop:"minWidth",transform:mt}),E4=ue({prop:"height",transform:mt}),R4=ue({prop:"maxHeight",transform:mt}),P4=ue({prop:"minHeight",transform:mt});ue({prop:"size",cssProperty:"width",transform:mt});ue({prop:"size",cssProperty:"height",transform:mt});const b4=ue({prop:"boxSizing"});Ka(k4,md,C4,E4,R4,P4,b4);const T4={border:{themeKey:"borders",transform:qt},borderTop:{themeKey:"borders",transform:qt},borderRight:{themeKey:"borders",transform:qt},borderBottom:{themeKey:"borders",transform:qt},borderLeft:{themeKey:"borders",transform:qt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ga},color:{themeKey:"palette",transform:io},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:io},backgroundColor:{themeKey:"palette",transform:io},p:{style:be},pt:{style:be},pr:{style:be},pb:{style:be},pl:{style:be},px:{style:be},py:{style:be},padding:{style:be},paddingTop:{style:be},paddingRight:{style:be},paddingBottom:{style:be},paddingLeft:{style:be},paddingX:{style:be},paddingY:{style:be},paddingInline:{style:be},paddingInlineStart:{style:be},paddingInlineEnd:{style:be},paddingBlock:{style:be},paddingBlockStart:{style:be},paddingBlockEnd:{style:be},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Qa},rowGap:{style:Xa},columnGap:{style:Ya},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mt},maxWidth:{style:md},minWidth:{transform:mt},height:{transform:mt},maxHeight:{transform:mt},minHeight:{transform:mt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Za=T4;function _4(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function M4(e,t){return typeof e=="function"?e(t):e}function $4(){function e(n,r,o,i){const l={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:s=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=go(o,u)||{};return d?d(l):kn(l,r,y=>{let v=sa(p,c,y);return y===v&&typeof y=="string"&&(v=sa(p,c,`${n}${y==="default"?"":Y(y)}`,y)),s===!1?v:{[s]:v}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const l=(r=i.unstable_sxConfig)!=null?r:Za;function a(s){let u=s;if(typeof s=="function")u=s(i);else if(typeof s!="object")return s;if(!u)return null;const c=D1(i.breakpoints),d=Object.keys(c);let p=c;return Object.keys(u).forEach(S=>{const y=M4(u[S],i);if(y!=null)if(typeof y=="object")if(l[S])p=ii(p,e(S,y,i,l));else{const v=kn({theme:i},y,k=>({[S]:k}));_4(v,y)?p[S]=t({sx:y,theme:i}):p=ii(p,v)}else p=ii(p,e(S,y,i,l))}),I1(d,p)}return Array.isArray(o)?o.map(a):a(o)}return t}const B1=$4();B1.filterProps=["sx"];const Ja=B1,N4=["breakpoints","palette","spacing","shape"];function qa(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,l=se(e,N4),a=W3(n),s=q3(o);let u=rn({breakpoints:a,direction:"ltr",components:{},palette:T({mode:"light"},r),spacing:s,shape:T({},H3,i)},l);return u=t.reduce((c,d)=>rn(c,d),u),u.unstable_sxConfig=T({},Za,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return Ja({sx:d,theme:this})},u}function O4(e){return Object.keys(e).length===0}function U1(e=null){const t=x.useContext(Ha);return!t||O4(t)?e:t}const z4=qa();function es(e=z4){return U1(e)}function L4({styles:e,themeId:t,defaultTheme:n={}}){const r=es(n),o=typeof e=="function"?e(t&&r[t]||r):e;return w.jsx(A3,{styles:o})}const j4=["sx"],D4=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Za;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function W1(e){const{sx:t}=e,n=se(e,j4),{systemProps:r,otherProps:o}=D4(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...l)=>{const a=t(...l);return er(a)?T({},r,a):r}:i=T({},r,t),T({},o,{sx:i})}function V1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ta!=="theme"&&a!=="sx"&&a!=="as"})(Ja);return x.forwardRef(function(s,u){const c=es(n),d=W1(s),{className:p,component:S="div"}=d,y=se(d,I4);return w.jsx(i,T({as:S,ref:u,className:pe(p,o?o(r):r),theme:t&&c[t]||c},y))})}const F4=["variant"];function pp(e){return e.length===0}function H1(e){const{variant:t}=e,n=se(e,F4);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=pp(r)?e[o]:Y(e[o]):r+=`${pp(r)?o:Y(o)}${Y(e[o].toString())}`}),r}const B4=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function U4(e){return Object.keys(e).length===0}function W4(e){return typeof e=="string"&&e.charCodeAt(0)>96}const V4=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,H4=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=H1(o.props);r[i]=o.style}),r},K4=(e,t,n,r)=>{var o,i;const{ownerState:l={}}=e,a=[],s=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return s&&s.forEach(u=>{let c=!0;Object.keys(u.props).forEach(d=>{l[d]!==u.props[d]&&e[d]!==u.props[d]&&(c=!1)}),c&&a.push(t[H1(u.props)])}),a};function li(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const G4=qa();function Wo({defaultTheme:e,theme:t,themeId:n}){return U4(t)?e:t[n]||t}function K1(e={}){const{themeId:t,defaultTheme:n=G4,rootShouldForwardProp:r=li,slotShouldForwardProp:o=li}=e,i=l=>Ja(T({},l,{theme:Wo(T({},l,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(l,a={})=>{F3(l,f=>f.filter(C=>!(C!=null&&C.__mui_systemSx)));const{name:s,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:p}=a,S=se(a,B4),y=c!==void 0?c:u&&u!=="Root"||!1,v=d||!1;let k,m=li;u==="Root"?m=r:u?m=o:W4(l)&&(m=void 0);const h=j1(l,T({shouldForwardProp:m,label:k},S)),g=(f,...C)=>{const P=C?C.map($=>typeof $=="function"&&$.__emotion_real!==$?F=>$(T({},F,{theme:Wo(T({},F,{defaultTheme:n,themeId:t}))})):$):[];let E=f;s&&p&&P.push($=>{const F=Wo(T({},$,{defaultTheme:n,themeId:t})),U=V4(s,F);if(U){const ne={};return Object.entries(U).forEach(([K,G])=>{ne[K]=typeof G=="function"?G(T({},$,{theme:F})):G}),p($,ne)}return null}),s&&!y&&P.push($=>{const F=Wo(T({},$,{defaultTheme:n,themeId:t}));return K4($,H4(s,F),F,s)}),v||P.push(i);const O=P.length-C.length;if(Array.isArray(f)&&O>0){const $=new Array(O).fill("");E=[...f,...$],E.raw=[...f.raw,...$]}else typeof f=="function"&&f.__emotion_real!==f&&(E=$=>f(T({},$,{theme:Wo(T({},$,{defaultTheme:n,themeId:t}))})));const j=h(E,...P);return l.muiName&&(j.muiName=l.muiName),j};return h.withConfig&&(g.withConfig=h.withConfig),g}}const Q4=K1(),Y4=Q4;function X4(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:nd(t.components[n].defaultProps,r)}function G1({props:e,name:t,defaultTheme:n,themeId:r}){let o=es(n);return r&&(o=o[r]||o),X4({theme:o,name:t,props:e})}function gd(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Z4(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yr(e){if(e.type)return e;if(e.charAt(0)==="#")return yr(Z4(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(gr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(gr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function ts(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function J4(e){e=yr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),l=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const s=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(a+="a",s.push(t[3])),ts({type:a,values:s})}function hp(e){e=yr(e);let t=e.type==="hsl"||e.type==="hsla"?yr(J4(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function q4(e,t){const n=hp(e),r=hp(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function pn(e,t){return e=yr(e),t=gd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ts(e)}function e5(e,t){if(e=yr(e),t=gd(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ts(e)}function t5(e,t){if(e=yr(e),t=gd(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ts(e)}const n5=x.createContext(null),Q1=n5;function Y1(){return x.useContext(Q1)}const r5=typeof Symbol=="function"&&Symbol.for,o5=r5?Symbol.for("mui.nested"):"__THEME_NESTED__";function i5(e,t){return typeof t=="function"?t(e):{...e,...t}}function l5(e){const{children:t,theme:n}=e,r=Y1(),o=x.useMemo(()=>{const i=r===null?n:i5(r,n);return i!=null&&(i[o5]=r!==null),i},[n,r]);return w.jsx(Q1.Provider,{value:o,children:t})}const mp={};function gp(e,t,n,r=!1){return x.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),l=e?T({},t,{[e]:i}):i;return r?()=>l:l}return e?T({},t,{[e]:n}):T({},t,n)},[e,t,n,r])}function a5(e){const{children:t,theme:n,themeId:r}=e,o=U1(mp),i=Y1()||mp,l=gp(r,o,n),a=gp(r,i,n,!0);return w.jsx(l5,{theme:a,children:w.jsx(Ha.Provider,{value:l,children:t})})}const s5=["className","component","disableGutters","fixed","maxWidth","classes"],u5=qa(),c5=Y4("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Y(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),d5=e=>G1({props:e,name:"MuiContainer",defaultTheme:u5}),f5=(e,t)=>{const n=s=>ft(t,s),{classes:r,fixed:o,disableGutters:i,maxWidth:l}=e,a={root:["root",l&&`maxWidth${Y(String(l))}`,o&&"fixed",i&&"disableGutters"]};return Ct(a,n,r)};function p5(e={}){const{createStyledComponent:t=c5,useThemeProps:n=d5,componentName:r="MuiContainer"}=e,o=t(({theme:l,ownerState:a})=>T({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}),({theme:l,ownerState:a})=>a.fixed&&Object.keys(l.breakpoints.values).reduce((s,u)=>{const c=u,d=l.breakpoints.values[c];return d!==0&&(s[l.breakpoints.up(c)]={maxWidth:`${d}${l.breakpoints.unit}`}),s},{}),({theme:l,ownerState:a})=>T({},a.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[l.breakpoints.up(a.maxWidth)]:{maxWidth:`${l.breakpoints.values[a.maxWidth]}${l.breakpoints.unit}`}}));return x.forwardRef(function(a,s){const u=n(a),{className:c,component:d="div",disableGutters:p=!1,fixed:S=!1,maxWidth:y="lg"}=u,v=se(u,s5),k=T({},u,{component:d,disableGutters:p,fixed:S,maxWidth:y}),m=f5(k,r);return w.jsx(o,T({as:d,ownerState:k,className:pe(m.root,c),ref:s},v))})}function h5(e,t){return T({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const m5=["mode","contrastThreshold","tonalOffset"],vp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ti.white,default:Ti.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Bs={text:{primary:Ti.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ti.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yp(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=t5(e.main,o):t==="dark"&&(e.dark=e5(e.main,i)))}function g5(e="light"){return e==="dark"?{main:Nr[200],light:Nr[50],dark:Nr[400]}:{main:Nr[700],light:Nr[400],dark:Nr[800]}}function v5(e="light"){return e==="dark"?{main:$r[200],light:$r[50],dark:$r[400]}:{main:$r[500],light:$r[300],dark:$r[700]}}function y5(e="light"){return e==="dark"?{main:Mr[500],light:Mr[300],dark:Mr[700]}:{main:Mr[700],light:Mr[400],dark:Mr[800]}}function x5(e="light"){return e==="dark"?{main:Or[400],light:Or[300],dark:Or[700]}:{main:Or[700],light:Or[500],dark:Or[900]}}function S5(e="light"){return e==="dark"?{main:zr[400],light:zr[300],dark:zr[700]}:{main:zr[800],light:zr[500],dark:zr[900]}}function w5(e="light"){return e==="dark"?{main:Bo[400],light:Bo[300],dark:Bo[700]}:{main:"#ed6c02",light:Bo[500],dark:Bo[900]}}function k5(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=se(e,m5),i=e.primary||g5(t),l=e.secondary||v5(t),a=e.error||y5(t),s=e.info||x5(t),u=e.success||S5(t),c=e.warning||w5(t);function d(v){return q4(v,Bs.text.primary)>=n?Bs.text.primary:vp.text.primary}const p=({color:v,name:k,mainShade:m=500,lightShade:h=300,darkShade:g=700})=>{if(v=T({},v),!v.main&&v[m]&&(v.main=v[m]),!v.hasOwnProperty("main"))throw new Error(gr(11,k?` (${k})`:"",m));if(typeof v.main!="string")throw new Error(gr(12,k?` (${k})`:"",JSON.stringify(v.main)));return yp(v,"light",h,r),yp(v,"dark",g,r),v.contrastText||(v.contrastText=d(v.main)),v},S={dark:Bs,light:vp};return rn(T({common:T({},Ti),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:y2,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},S[t]),o)}const C5=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function E5(e){return Math.round(e*1e5)/1e5}const xp={textTransform:"uppercase"},Sp='"Roboto", "Helvetica", "Arial", sans-serif';function R5(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Sp,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:l=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=se(n,C5),S=o/14,y=d||(m=>`${m/u*S}rem`),v=(m,h,g,f,C)=>T({fontFamily:r,fontWeight:m,fontSize:y(h),lineHeight:g},r===Sp?{letterSpacing:`${E5(f/h)}em`}:{},C,c),k={h1:v(i,96,1.167,-1.5),h2:v(i,60,1.2,-.5),h3:v(l,48,1.167,0),h4:v(l,34,1.235,.25),h5:v(l,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(l,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(l,16,1.5,.15),body2:v(l,14,1.43,.15),button:v(a,14,1.75,.4,xp),caption:v(l,12,1.66,.4),overline:v(l,12,2.66,1,xp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rn(T({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:l,fontWeightMedium:a,fontWeightBold:s},k),p,{clone:!1})}const P5=.2,b5=.14,T5=.12;function ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${P5})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${b5})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${T5})`].join(",")}const _5=["none",ye(0,2,1,-1,0,1,1,0,0,1,3,0),ye(0,3,1,-2,0,2,2,0,0,1,5,0),ye(0,3,3,-2,0,3,4,0,0,1,8,0),ye(0,2,4,-1,0,4,5,0,0,1,10,0),ye(0,3,5,-1,0,5,8,0,0,1,14,0),ye(0,3,5,-1,0,6,10,0,0,1,18,0),ye(0,4,5,-2,0,7,10,1,0,2,16,1),ye(0,5,5,-3,0,8,10,1,0,3,14,2),ye(0,5,6,-3,0,9,12,1,0,3,16,2),ye(0,6,6,-3,0,10,14,1,0,4,18,3),ye(0,6,7,-4,0,11,15,1,0,4,20,3),ye(0,7,8,-4,0,12,17,2,0,5,22,4),ye(0,7,8,-4,0,13,19,2,0,5,24,4),ye(0,7,9,-4,0,14,21,2,0,5,26,4),ye(0,8,9,-5,0,15,22,2,0,6,28,5),ye(0,8,10,-5,0,16,24,2,0,6,30,5),ye(0,8,11,-5,0,17,26,2,0,6,32,5),ye(0,9,11,-5,0,18,28,2,0,7,34,6),ye(0,9,12,-6,0,19,29,2,0,7,36,6),ye(0,10,13,-6,0,20,31,3,0,8,38,7),ye(0,10,13,-6,0,21,33,3,0,8,40,7),ye(0,10,14,-6,0,22,35,3,0,8,42,7),ye(0,11,14,-7,0,23,36,3,0,9,44,8),ye(0,11,15,-7,0,24,38,3,0,9,46,8)],M5=_5,$5=["duration","easing","delay"],N5={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},O5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wp(e){return`${Math.round(e)}ms`}function z5(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function L5(e){const t=T({},N5,e.easing),n=T({},O5,e.duration);return T({getAutoHeightDuration:z5,create:(o=["all"],i={})=>{const{duration:l=n.standard,easing:a=t.easeInOut,delay:s=0}=i;return se(i,$5),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof l=="string"?l:wp(l)} ${a} ${typeof s=="string"?s:wp(s)}`).join(",")}},e,{easing:t,duration:n})}const j5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},D5=j5,I5=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ns(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,l=se(e,I5);if(e.vars)throw new Error(gr(18));const a=k5(r),s=qa(e);let u=rn(s,{mixins:h5(s.breakpoints,n),palette:a,shadows:M5.slice(),typography:R5(a,i),transitions:L5(o),zIndex:T({},D5)});return u=rn(u,l),u=t.reduce((c,d)=>rn(c,d),u),u.unstable_sxConfig=T({},Za,l==null?void 0:l.unstable_sxConfig),u.unstable_sx=function(d){return Ja({sx:d,theme:this})},u}function kp(e){return String(parseFloat(e)).length===String(e).length}function A5(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Yn(e){return parseFloat(e)}function F5(e){return(t,n)=>{const r=A5(t);if(r===n)return t;let o=Yn(t);r!=="px"&&(r==="em"||r==="rem")&&(o=Yn(t)*Yn(e));let i=o;if(n!=="px")if(n==="em")i=o/Yn(e);else if(n==="rem")i=o/Yn(e);else return t;return parseFloat(i.toFixed(5))+n}}function B5({size:e,grid:t}){const n=e-e%t,r=n+t;return e-n{let u=t+a*s;i!==null&&(u=i(u)),l[`@media (min-width:${s}px)`]={[e]:`${Math.round(u*1e4)/1e4}${r}`}}),l}function Cp(e,t={}){const{breakpoints:n=["sm","md","lg"],disableAlign:r=!1,factor:o=2,variants:i=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,l=T({},e);l.typography=T({},l.typography);const a=l.typography,s=F5(a.htmlFontSize),u=n.map(c=>l.breakpoints.values[c]);return i.forEach(c=>{const d=a[c],p=parseFloat(s(d.fontSize,"rem"));if(p<=1)return;const S=p,y=1+(S-1)/o;let{lineHeight:v}=d;if(!kp(v)&&!r)throw new Error(gr(6));kp(v)||(v=parseFloat(s(v,"rem"))/parseFloat(p));let k=null;r||(k=m=>B5({size:m,grid:U5({pixels:4,lineHeight:v,htmlFontSize:a.htmlFontSize})})),a[c]=T({},d,W5({cssProperty:"fontSize",min:y,max:S,unit:"rem",breakpoints:u,transform:k}))}),l}const V5=ns(),rs=V5;function H5(){const e=es(rs);return e[vr]||e}function it({props:e,name:t}){return G1({props:e,name:t,defaultTheme:rs,themeId:vr})}const X1=e=>li(e)&&e!=="classes",y8=li,K5=K1({themeId:vr,defaultTheme:rs,rootShouldForwardProp:X1}),ze=K5,G5=["theme"];function Q5(e){let{theme:t}=e,n=se(e,G5);const r=t[vr];return w.jsx(a5,T({},n,{themeId:r?vr:void 0,theme:r||t}))}const Y5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Ep=Y5;function Z1(e){return typeof e=="string"}function X5(e,t,n){return e===void 0||Z1(e)?t:T({},t,{ownerState:T({},t.ownerState,n)})}const Z5={disableDefaultClasses:!1},J5=x.createContext(Z5);function q5(e){const{disableDefaultClasses:t}=x.useContext(J5);return n=>t?"":e(n)}function ex(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Yu(e,t){return typeof e=="function"?e(t):e}function Rp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tx(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const S=pe(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),y=T({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),v=T({},n,o,r);return S.length>0&&(v.className=S),Object.keys(y).length>0&&(v.style=y),{props:v,internalRef:void 0}}const l=ex(T({},o,r)),a=Rp(r),s=Rp(o),u=t(l),c=pe(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=T({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=T({},u,n,s,a);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const nx=["elementType","externalSlotProps","ownerState"];function Pp(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=se(e,nx),l=Yu(r,o),{props:a,internalRef:s}=tx(T({},i,{externalSlotProps:l})),u=wn(s,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return X5(n,T({},a,{ref:u}),o)}const rx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ox(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function ix(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function lx(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ix(e))}function ax(e){const t=[],n=[];return Array.from(e.querySelectorAll(rx)).forEach((r,o)=>{const i=ox(r);i===-1||!lx(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function sx(){return!0}function ux(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=ax,isEnabled:l=sx,open:a}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),S=x.useRef(!1),y=x.useRef(null),v=wn(t.ref,y),k=x.useRef(null);x.useEffect(()=>{!a||!y.current||(S.current=!n)},[n,a]),x.useEffect(()=>{if(!a||!y.current)return;const g=gn(y.current);return y.current.contains(g.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex","-1"),S.current&&y.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[a]),x.useEffect(()=>{if(!a||!y.current)return;const g=gn(y.current),f=E=>{const{current:O}=y;if(O!==null){if(!g.hasFocus()||r||!l()||s.current){s.current=!1;return}if(!O.contains(g.activeElement)){if(E&&p.current!==E.target||g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!S.current)return;let F=[];if((g.activeElement===u.current||g.activeElement===c.current)&&(F=i(y.current)),F.length>0){var j,$;const U=!!((j=k.current)!=null&&j.shiftKey&&(($=k.current)==null?void 0:$.key)==="Tab"),ne=F[0],K=F[F.length-1];typeof ne!="string"&&typeof K!="string"&&(U?K.focus():ne.focus())}else O.focus()}}},C=E=>{k.current=E,!(r||!l()||E.key!=="Tab")&&g.activeElement===y.current&&E.shiftKey&&(s.current=!0,c.current&&c.current.focus())};g.addEventListener("focusin",f),g.addEventListener("keydown",C,!0);const P=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&f(null)},50);return()=>{clearInterval(P),g.removeEventListener("focusin",f),g.removeEventListener("keydown",C,!0)}},[n,r,o,l,a,i]);const m=g=>{d.current===null&&(d.current=g.relatedTarget),S.current=!0,p.current=g.target;const f=t.props.onFocus;f&&f(g)},h=g=>{d.current===null&&(d.current=g.relatedTarget),S.current=!0};return w.jsxs(x.Fragment,{children:[w.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:v,onFocus:m}),w.jsx("div",{tabIndex:a?0:-1,onFocus:h,ref:c,"data-testid":"sentinelEnd"})]})}function cx(e){return typeof e=="function"?e():e}const dx=x.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[l,a]=x.useState(null),s=wn(x.isValidElement(r)?r.ref:null,n);if(la(()=>{i||a(cx(o)||document.body)},[o,i]),la(()=>{if(l&&!i)return ia(n,l),()=>{ia(n,null)}},[n,l,i]),i){if(x.isValidElement(r)){const u={ref:s};return x.cloneElement(r,u)}return w.jsx(x.Fragment,{children:r})}return w.jsx(x.Fragment,{children:l&&Gc.createPortal(r,l)})}),fx=dx;function px(e){const t=gn(e);return t.body===e?Ma(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ai(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function bp(e){return parseInt(Ma(e).getComputedStyle(e).paddingRight,10)||0}function hx(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Tp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,l=>{const a=i.indexOf(l)===-1,s=!hx(l);a&&s&&ai(l,o)})}function Us(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function mx(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(px(r)){const l=z2(gn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${bp(r)+l}px`;const a=gn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${bp(s)+l}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=gn(r).body;else{const l=r.parentElement,a=Ma(r);i=(l==null?void 0:l.nodeName)==="HTML"&&a.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:l,property:a})=>{i?l.style.setProperty(a,i):l.style.removeProperty(a)})}}function gx(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class vx{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ai(t.modalRef,!1);const o=gx(n);Tp(n,t.mount,t.modalRef,o,!0);const i=Us(this.containers,l=>l.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Us(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=mx(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Us(this.containers,l=>l.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&ai(t.modalRef,n),Tp(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=i.modals[i.modals.length-1];l.modalRef&&ai(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function yx(e){return ft("MuiModal",e)}Et("MuiModal",["root","hidden","backdrop"]);const xx=["children","closeAfterTransition","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],Sx=e=>{const{open:t,exited:n}=e;return Ct({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},q5(yx))};function wx(e){return typeof e=="function"?e():e}function kx(e){return e?e.props.hasOwnProperty("in"):!1}const Cx=new vx,Ex=x.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:l=!1,container:a,disableAutoFocus:s=!1,disableEnforceFocus:u=!1,disableEscapeKeyDown:c=!1,disablePortal:d=!1,disableRestoreFocus:p=!1,disableScrollLock:S=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:k=Cx,onBackdropClick:m,onClose:h,onKeyDown:g,open:f,onTransitionEnter:C,onTransitionExited:P,slotProps:E={},slots:O={}}=t,j=se(t,xx),$=k,[F,U]=x.useState(!f),ne=x.useRef({}),K=x.useRef(null),G=x.useRef(null),ee=wn(G,n),Se=kx(i),N=(r=t["aria-hidden"])!=null?r:!0,D=()=>gn(K.current),A=()=>(ne.current.modalRef=G.current,ne.current.mountNode=K.current,ne.current),re=()=>{$.mount(A(),{disableScrollLock:S}),G.current&&(G.current.scrollTop=0)},ae=ir(()=>{const Me=wx(a)||D().body;$.add(A(),Me),G.current&&re()}),et=x.useCallback(()=>$.isTopModal(A()),[$]),Z=ir(Me=>{K.current=Me,!(!Me||!G.current)&&(f&&et()?re():ai(G.current,N))}),ve=x.useCallback(()=>{$.remove(A(),N)},[$,N]);x.useEffect(()=>()=>{ve()},[ve]),x.useEffect(()=>{f?ae():(!Se||!l)&&ve()},[f,ve,Se,l,ae]);const Re=T({},t,{closeAfterTransition:l,disableAutoFocus:s,disableEnforceFocus:u,disableEscapeKeyDown:c,disablePortal:d,disableRestoreFocus:p,disableScrollLock:S,exited:F,hideBackdrop:y,keepMounted:v}),Lt=Sx(Re),Pt=()=>{U(!1),C&&C()},pt=()=>{U(!0),P&&P(),l&&ve()},Eo=Me=>{Me.target===Me.currentTarget&&(m&&m(Me),h&&h(Me,"backdropClick"))},kr=Me=>{g&&g(Me),!(Me.key!=="Escape"||!et())&&(c||(Me.stopPropagation(),h&&h(Me,"escapeKeyDown")))},Pn={};i.props.tabIndex===void 0&&(Pn.tabIndex="-1"),Se&&(Pn.onEnter=Vu(Pt,i.props.onEnter),Pn.onExited=Vu(pt,i.props.onExited));const Cr=(o=O.root)!=null?o:"div",Ro=Pp({elementType:Cr,externalSlotProps:E.root,externalForwardedProps:j,additionalProps:{ref:ee,role:"presentation",onKeyDown:kr},className:Lt.root,ownerState:Re}),jt=O.backdrop,Er=Pp({elementType:jt,externalSlotProps:E.backdrop,additionalProps:{"aria-hidden":!0,onClick:Eo,open:f},className:Lt.backdrop,ownerState:Re});return!v&&!f&&(!Se||F)?null:w.jsx(fx,{ref:Z,container:a,disablePortal:d,children:w.jsxs(Cr,T({},Ro,{children:[!y&&jt?w.jsx(jt,T({},Er)):null,w.jsx(ux,{disableEnforceFocus:u,disableAutoFocus:s,disableRestoreFocus:p,isEnabled:et,open:f,children:x.cloneElement(i,Pn)})]}))})}),Rx=Ex;function Px(e){return ft("MuiSvgIcon",e)}Et("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const bx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Tx=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Y(t)}`,`fontSize${Y(n)}`]};return Ct(o,Px,r)},_x=ze("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,l,a,s,u,c,d,p,S,y,v,k,m,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((l=e.typography)==null||(a=l.pxToRem)==null?void 0:a.call(l,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(S=(e.vars||e).palette)==null||(y=S[t.color])==null?void 0:y.main)!=null?p:{action:(v=(e.vars||e).palette)==null||(k=v.action)==null?void 0:k.active,disabled:(m=(e.vars||e).palette)==null||(h=m.action)==null?void 0:h.disabled,inherit:void 0}[t.color]}}),J1=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:l="inherit",component:a="svg",fontSize:s="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,S=se(r,bx),y=T({},r,{color:l,component:a,fontSize:s,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p}),v={};c||(v.viewBox=p);const k=Tx(y);return w.jsxs(_x,T({as:a,className:pe(k.root,i),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},v,S,{ownerState:y,children:[o,d?w.jsx("title",{children:d}):null]}))});J1.muiName="SvgIcon";const ua=J1;function Mx(e,t){function n(r,o){return w.jsx(ua,T({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ua.muiName,x.memo(x.forwardRef(n))}const $x={configure:e=>{rd.configure(e)}},Nx=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Y,createChainedFunction:Vu,createSvgIcon:Mx,debounce:x2,deprecatedPropType:S2,isMuiElement:w2,ownerDocument:gn,ownerWindow:Ma,requirePropFactory:k2,setRef:ia,unstable_ClassNameGenerator:$x,unstable_useEnhancedEffect:la,unstable_useId:R2,unsupportedProp:P2,useControlled:b2,useEventCallback:ir,useForkRef:wn,useIsFocusVisible:td},Symbol.toStringTag,{value:"Module"}));function Xu(e,t){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Xu(e,t)}function q1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xu(e,t)}const _p={disabled:!1},ca=en.createContext(null);var Ox=function(t){return t.scrollTop},Qo="unmounted",Jn="exited",qn="entering",jr="entered",Zu="exiting",Rn=function(e){q1(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,a=l&&!l.isMounting?r.enter:r.appear,s;return i.appearStatus=null,r.in?a?(s=Jn,i.appearStatus=qn):s=jr:r.unmountOnExit||r.mountOnEnter?s=Qo:s=Jn,i.state={status:s},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===Qo?{status:Jn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==qn&&l!==jr&&(i=qn):(l===qn||l===jr)&&(i=Zu)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,a;return i=l=a=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,a=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:a}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===qn){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:hl.findDOMNode(this);l&&Ox(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jn&&this.setState({status:Qo})},n.performEnter=function(o){var i=this,l=this.props.enter,a=this.context?this.context.isMounting:o,s=this.props.nodeRef?[a]:[hl.findDOMNode(this),a],u=s[0],c=s[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!o&&!l||_p.disabled){this.safeSetState({status:jr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:qn},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:jr},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),a=this.props.nodeRef?void 0:hl.findDOMNode(this);if(!i||_p.disabled){this.safeSetState({status:Jn},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Zu},function(){o.props.onExiting(a),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Jn},function(){o.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,l=!0;return this.nextCallback=function(a){l&&(l=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:hl.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!l||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Qo)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=se(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return en.createElement(ca.Provider,{value:null},typeof l=="function"?l(o,a):en.cloneElement(en.Children.only(l),a))},t}(en.Component);Rn.contextType=ca;Rn.propTypes={};function Lr(){}Rn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lr,onEntering:Lr,onEntered:Lr,onExit:Lr,onExiting:Lr,onExited:Lr};Rn.UNMOUNTED=Qo;Rn.EXITED=Jn;Rn.ENTERING=qn;Rn.ENTERED=jr;Rn.EXITING=Zu;const zx=Rn;function Lx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vd(e,t){var n=function(i){return t&&x.isValidElement(i)?t(i):i},r=Object.create(null);return e&&x.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jx(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,a={};for(var s in t){if(r[s])for(l=0;le.scrollTop;function Mp(e,t){var n,r;const{timeout:o,easing:i,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=l.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:l.transitionDelay}}function Wx(e){return ft("MuiPaper",e)}Et("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Vx=["className","component","elevation","square","variant"],Hx=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ct(i,Wx,o)},Kx=ze("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return T({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&T({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${pn("#fff",Ep(t.elevation))}, ${pn("#fff",Ep(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Gx=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:l=1,square:a=!1,variant:s="elevation"}=r,u=se(r,Vx),c=T({},r,{component:i,elevation:l,square:a,variant:s}),d=Hx(c);return w.jsx(Kx,T({as:i,ownerState:c,className:pe(d.root,o),ref:n},u))}),em=Gx;function Qx(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:l,in:a,onExited:s,timeout:u}=e,[c,d]=x.useState(!1),p=pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),S={width:l,height:l,top:-(l/2)+i,left:-(l/2)+o},y=pe(n.child,c&&n.childLeaving,r&&n.childPulsate);return!a&&!c&&d(!0),x.useEffect(()=>{if(!a&&s!=null){const v=setTimeout(s,u);return()=>{clearTimeout(v)}}},[s,a,u]),w.jsx("span",{className:p,style:S,children:w.jsx("span",{className:y})})}const Yx=Et("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Tt=Yx,Xx=["center","classes","className"];let os=e=>e,$p,Np,Op,zp;const Ju=550,Zx=80,Jx=Fi($p||($p=os` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),qx=Fi(Np||(Np=os` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),e6=Fi(Op||(Op=os` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),t6=ze("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),n6=ze(Qx,{name:"MuiTouchRipple",slot:"Ripple"})(zp||(zp=os` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),Tt.rippleVisible,Jx,Ju,({theme:e})=>e.transitions.easing.easeInOut,Tt.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Tt.child,Tt.childLeaving,qx,Ju,({theme:e})=>e.transitions.easing.easeInOut,Tt.childPulsate,e6,({theme:e})=>e.transitions.easing.easeInOut),r6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:l}=r,a=se(r,Xx),[s,u]=x.useState([]),c=x.useRef(0),d=x.useRef(null);x.useEffect(()=>{d.current&&(d.current(),d.current=null)},[s]);const p=x.useRef(!1),S=x.useRef(null),y=x.useRef(null),v=x.useRef(null);x.useEffect(()=>()=>{clearTimeout(S.current)},[]);const k=x.useCallback(f=>{const{pulsate:C,rippleX:P,rippleY:E,rippleSize:O,cb:j}=f;u($=>[...$,w.jsx(n6,{classes:{ripple:pe(i.ripple,Tt.ripple),rippleVisible:pe(i.rippleVisible,Tt.rippleVisible),ripplePulsate:pe(i.ripplePulsate,Tt.ripplePulsate),child:pe(i.child,Tt.child),childLeaving:pe(i.childLeaving,Tt.childLeaving),childPulsate:pe(i.childPulsate,Tt.childPulsate)},timeout:Ju,pulsate:C,rippleX:P,rippleY:E,rippleSize:O},c.current)]),c.current+=1,d.current=j},[i]),m=x.useCallback((f={},C={},P=()=>{})=>{const{pulsate:E=!1,center:O=o||C.pulsate,fakeElement:j=!1}=C;if((f==null?void 0:f.type)==="mousedown"&&p.current){p.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(p.current=!0);const $=j?null:v.current,F=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let U,ne,K;if(O||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)U=Math.round(F.width/2),ne=Math.round(F.height/2);else{const{clientX:G,clientY:ee}=f.touches&&f.touches.length>0?f.touches[0]:f;U=Math.round(G-F.left),ne=Math.round(ee-F.top)}if(O)K=Math.sqrt((2*F.width**2+F.height**2)/3),K%2===0&&(K+=1);else{const G=Math.max(Math.abs(($?$.clientWidth:0)-U),U)*2+2,ee=Math.max(Math.abs(($?$.clientHeight:0)-ne),ne)*2+2;K=Math.sqrt(G**2+ee**2)}f!=null&&f.touches?y.current===null&&(y.current=()=>{k({pulsate:E,rippleX:U,rippleY:ne,rippleSize:K,cb:P})},S.current=setTimeout(()=>{y.current&&(y.current(),y.current=null)},Zx)):k({pulsate:E,rippleX:U,rippleY:ne,rippleSize:K,cb:P})},[o,k]),h=x.useCallback(()=>{m({},{pulsate:!0})},[m]),g=x.useCallback((f,C)=>{if(clearTimeout(S.current),(f==null?void 0:f.type)==="touchend"&&y.current){y.current(),y.current=null,S.current=setTimeout(()=>{g(f,C)});return}y.current=null,u(P=>P.length>0?P.slice(1):P),d.current=C},[]);return x.useImperativeHandle(n,()=>({pulsate:h,start:m,stop:g}),[h,m,g]),w.jsx(t6,T({className:pe(Tt.root,i.root,l),ref:v},a,{children:w.jsx(Bx,{component:null,exit:!0,children:s})}))}),o6=r6;function i6(e){return ft("MuiButtonBase",e)}const l6=Et("MuiButtonBase",["root","disabled","focusVisible"]),a6=l6,s6=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],u6=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,l=Ct({root:["root",t&&"disabled",n&&"focusVisible"]},i6,o);return n&&r&&(l.root+=` ${r}`),l},c6=ze("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${a6.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),d6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:l,className:a,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:S="a",onBlur:y,onClick:v,onContextMenu:k,onDragLeave:m,onFocus:h,onFocusVisible:g,onKeyDown:f,onKeyUp:C,onMouseDown:P,onMouseLeave:E,onMouseUp:O,onTouchEnd:j,onTouchMove:$,onTouchStart:F,tabIndex:U=0,TouchRippleProps:ne,touchRippleRef:K,type:G}=r,ee=se(r,s6),Se=x.useRef(null),N=x.useRef(null),D=wn(N,K),{isFocusVisibleRef:A,onFocus:re,onBlur:ae,ref:et}=td(),[Z,ve]=x.useState(!1);u&&Z&&ve(!1),x.useImperativeHandle(o,()=>({focusVisible:()=>{ve(!0),Se.current.focus()}}),[]);const[Re,Lt]=x.useState(!1);x.useEffect(()=>{Lt(!0)},[]);const Pt=Re&&!c&&!u;x.useEffect(()=>{Z&&p&&!c&&Re&&N.current.pulsate()},[c,p,Z,Re]);function pt(Q,Hi,Ki=d){return ir(Gi=>(Hi&&Hi(Gi),!Ki&&N.current&&N.current[Q](Gi),!0))}const Eo=pt("start",P),kr=pt("stop",k),Pn=pt("stop",m),Cr=pt("stop",O),Ro=pt("stop",Q=>{Z&&Q.preventDefault(),E&&E(Q)}),jt=pt("start",F),Er=pt("stop",j),Me=pt("stop",$),Po=pt("stop",Q=>{ae(Q),A.current===!1&&ve(!1),y&&y(Q)},!1),bo=ir(Q=>{Se.current||(Se.current=Q.currentTarget),re(Q),A.current===!0&&(ve(!0),g&&g(Q)),h&&h(Q)}),Kt=()=>{const Q=Se.current;return s&&s!=="button"&&!(Q.tagName==="A"&&Q.href)},Rr=x.useRef(!1),Wi=ir(Q=>{p&&!Rr.current&&Z&&N.current&&Q.key===" "&&(Rr.current=!0,N.current.stop(Q,()=>{N.current.start(Q)})),Q.target===Q.currentTarget&&Kt()&&Q.key===" "&&Q.preventDefault(),f&&f(Q),Q.target===Q.currentTarget&&Kt()&&Q.key==="Enter"&&!u&&(Q.preventDefault(),v&&v(Q))}),Vi=ir(Q=>{p&&Q.key===" "&&N.current&&Z&&!Q.defaultPrevented&&(Rr.current=!1,N.current.stop(Q,()=>{N.current.pulsate(Q)})),C&&C(Q),v&&Q.target===Q.currentTarget&&Kt()&&Q.key===" "&&!Q.defaultPrevented&&v(Q)});let Pr=s;Pr==="button"&&(ee.href||ee.to)&&(Pr=S);const Dt={};Pr==="button"?(Dt.type=G===void 0?"button":G,Dt.disabled=u):(!ee.href&&!ee.to&&(Dt.role="button"),u&&(Dt["aria-disabled"]=u));const br=wn(n,et,Se),To=T({},r,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:U,focusVisible:Z}),_o=u6(To);return w.jsxs(c6,T({as:Pr,className:pe(_o.root,a),ownerState:To,onBlur:Po,onClick:v,onContextMenu:kr,onFocus:bo,onKeyDown:Wi,onKeyUp:Vi,onMouseDown:Eo,onMouseLeave:Ro,onMouseUp:Cr,onDragLeave:Pn,onTouchEnd:Er,onTouchMove:Me,onTouchStart:jt,ref:br,tabIndex:u?-1:U,type:G},Dt,ee,{children:[l,Pt?w.jsx(o6,T({ref:D,center:i},ne)):null]}))}),tm=d6;function f6(e){return ft("MuiIconButton",e)}const p6=Et("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),h6=p6,m6=["edge","children","className","color","disabled","disableFocusRipple","size"],g6=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${Y(r)}`,o&&`edge${Y(o)}`,`size${Y(i)}`]};return Ct(l,f6,t)},v6=ze(tm,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(({theme:e,ownerState:t})=>T({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:pn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return T({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&T({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":T({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${h6.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),y6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:l,color:a="default",disabled:s=!1,disableFocusRipple:u=!1,size:c="medium"}=r,d=se(r,m6),p=T({},r,{edge:o,color:a,disabled:s,disableFocusRipple:u,size:c}),S=g6(p);return w.jsx(v6,T({className:pe(S.root,l),centerRipple:!0,focusRipple:!u,disabled:s,ref:n,ownerState:p},d,{children:i}))}),x6=y6;function S6(e){return ft("MuiTypography",e)}Et("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const w6=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],k6=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:l}=e,a={root:["root",i,e.align!=="inherit"&&`align${Y(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ct(a,S6,l)},C6=ze("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>T({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),Lp={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E6={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},R6=e=>E6[e]||e,P6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiTypography"}),o=R6(r.color),i=W1(T({},r,{color:o})),{align:l="inherit",className:a,component:s,gutterBottom:u=!1,noWrap:c=!1,paragraph:d=!1,variant:p="body1",variantMapping:S=Lp}=i,y=se(i,w6),v=T({},i,{align:l,color:o,className:a,component:s,gutterBottom:u,noWrap:c,paragraph:d,variant:p,variantMapping:S}),k=s||(d?"p":S[p]||Lp[p])||"span",m=k6(v);return w.jsx(C6,T({as:k,ref:n,ownerState:v,className:pe(m.root,a)},y))}),vt=P6;function b6(e){return ft("MuiAppBar",e)}Et("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const T6=["className","color","enableColorOnDark","position"],_6=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Y(t)}`,`position${Y(n)}`]};return Ct(o,b6,r)},vl=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,M6=ze(em,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Y(n.position)}`],t[`color${Y(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return T({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&T({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&T({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&T({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:vl(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:vl(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:vl(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:vl(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),$6=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:l=!1,position:a="fixed"}=r,s=se(r,T6),u=T({},r,{color:i,position:a,enableColorOnDark:l}),c=_6(u);return w.jsx(M6,T({square:!0,component:"header",ownerState:u,elevation:4,className:pe(c.root,o,a==="fixed"&&"mui-fixed"),ref:n},s))}),N6=$6;function O6(e){return w.jsx(L4,T({},e,{defaultTheme:rs,themeId:vr}))}const z6=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],L6={entering:{opacity:1},entered:{opacity:1}},j6=x.forwardRef(function(t,n){const r=H5(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:l=!0,children:a,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:S,onExited:y,onExiting:v,style:k,timeout:m=o,TransitionComponent:h=zx}=t,g=se(t,z6),f=x.useRef(null),C=wn(f,a.ref,n),P=K=>G=>{if(K){const ee=f.current;G===void 0?K(ee):K(ee,G)}},E=P(p),O=P((K,G)=>{Ux(K);const ee=Mp({style:k,timeout:m,easing:s},{mode:"enter"});K.style.webkitTransition=r.transitions.create("opacity",ee),K.style.transition=r.transitions.create("opacity",ee),c&&c(K,G)}),j=P(d),$=P(v),F=P(K=>{const G=Mp({style:k,timeout:m,easing:s},{mode:"exit"});K.style.webkitTransition=r.transitions.create("opacity",G),K.style.transition=r.transitions.create("opacity",G),S&&S(K)}),U=P(y),ne=K=>{i&&i(f.current,K)};return w.jsx(h,T({appear:l,in:u,nodeRef:f,onEnter:O,onEntered:j,onEntering:E,onExit:F,onExited:U,onExiting:$,addEndListener:ne,timeout:m},g,{children:(K,G)=>x.cloneElement(a,T({style:T({opacity:0,visibility:K==="exited"&&!u?"hidden":void 0},L6[K],k,a.props.style),ref:C},G))}))}),D6=j6;function I6(e){return ft("MuiBackdrop",e)}Et("MuiBackdrop",["root","invisible"]);const A6=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],F6=e=>{const{classes:t,invisible:n}=e;return Ct({root:["root",n&&"invisible"]},I6,t)},B6=ze("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>T({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),U6=x.forwardRef(function(t,n){var r,o,i;const l=it({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:u="div",components:c={},componentsProps:d={},invisible:p=!1,open:S,slotProps:y={},slots:v={},TransitionComponent:k=D6,transitionDuration:m}=l,h=se(l,A6),g=T({},l,{component:u,invisible:p}),f=F6(g),C=(r=y.root)!=null?r:d.root;return w.jsx(k,T({in:S,timeout:m},h,{children:w.jsx(B6,T({"aria-hidden":!0},C,{as:(o=(i=v.root)!=null?i:c.Root)!=null?o:u,className:pe(f.root,s,C==null?void 0:C.className),ownerState:T({},g,C==null?void 0:C.ownerState),classes:f,ref:n,children:a}))}))}),W6=U6,V6=ns(),H6=A4({themeId:vr,defaultTheme:V6,defaultClassName:"MuiBox-root",generateClassName:rd.generate}),Hn=H6;function K6(e){return ft("MuiButton",e)}const G6=Et("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),yl=G6,Q6=x.createContext({}),Y6=Q6,X6=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Z6=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:l}=e,a={root:["root",i,`${i}${Y(t)}`,`size${Y(o)}`,`${i}Size${Y(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Y(o)}`],endIcon:["endIcon",`iconSize${Y(o)}`]},s=Ct(a,K6,l);return T({},l,s)},nm=e=>T({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),J6=ze(tm,{shouldForwardProp:e=>X1(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Y(n.color)}`],t[`size${Y(n.size)}`],t[`${n.variant}Size${Y(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return T({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":T({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yl.focusVisible}`]:T({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yl.disabled}`]:T({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yl.disabled}`]:{boxShadow:"none"}}),q6=ze("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},nm(e))),e9=ze("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Y(n.size)}`]]}})(({ownerState:e})=>T({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},nm(e))),t9=x.forwardRef(function(t,n){const r=x.useContext(Y6),o=nd(r,t),i=it({props:o,name:"MuiButton"}),{children:l,color:a="primary",component:s="button",className:u,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:S,focusVisibleClassName:y,fullWidth:v=!1,size:k="medium",startIcon:m,type:h,variant:g="text"}=i,f=se(i,X6),C=T({},i,{color:a,component:s,disabled:c,disableElevation:d,disableFocusRipple:p,fullWidth:v,size:k,type:h,variant:g}),P=Z6(C),E=m&&w.jsx(q6,{className:P.startIcon,ownerState:C,children:m}),O=S&&w.jsx(e9,{className:P.endIcon,ownerState:C,children:S});return w.jsxs(J6,T({ownerState:C,className:pe(r.className,P.root,u),component:s,disabled:c,focusRipple:!p,focusVisibleClassName:pe(P.focusVisible,y),ref:n,type:h},f,{classes:P,children:[E,l,O]}))}),rm=t9;function n9(e){return ft("MuiCircularProgress",e)}Et("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const r9=["className","color","disableShrink","size","style","thickness","value","variant"];let is=e=>e,jp,Dp,Ip,Ap;const Tn=44,o9=Fi(jp||(jp=is` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),i9=Fi(Dp||(Dp=is` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),l9=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Y(r)}`],svg:["svg"],circle:["circle",`circle${Y(n)}`,o&&"circleDisableShrink"]};return Ct(i,n9,t)},a9=ze("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(({ownerState:e,theme:t})=>T({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&dd(Ip||(Ip=is` + animation: ${0} 1.4s linear infinite; + `),o9)),s9=ze("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),u9=ze("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Y(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>T({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&dd(Ap||(Ap=is` + animation: ${0} 1.4s ease-in-out infinite; + `),i9)),c9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:l=!1,size:a=40,style:s,thickness:u=3.6,value:c=0,variant:d="indeterminate"}=r,p=se(r,r9),S=T({},r,{color:i,disableShrink:l,size:a,thickness:u,value:c,variant:d}),y=l9(S),v={},k={},m={};if(d==="determinate"){const h=2*Math.PI*((Tn-u)/2);v.strokeDasharray=h.toFixed(3),m["aria-valuenow"]=Math.round(c),v.strokeDashoffset=`${((100-c)/100*h).toFixed(3)}px`,k.transform="rotate(-90deg)"}return w.jsx(a9,T({className:pe(y.root,o),style:T({width:a,height:a},k,s),ownerState:S,ref:n,role:"progressbar"},m,p,{children:w.jsx(s9,{className:y.svg,ownerState:S,viewBox:`${Tn/2} ${Tn/2} ${Tn} ${Tn}`,children:w.jsx(u9,{className:y.circle,style:v,ownerState:S,cx:Tn,cy:Tn,r:(Tn-u)/2,fill:"none",strokeWidth:u})})}))}),om=c9,d9=p5({createStyledComponent:ze("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Y(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>it({props:e,name:"MuiContainer"})}),f9=d9,p9=(e,t)=>T({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),h9=e=>T({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),m9=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var u;o[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(u=s.palette)==null?void 0:u.mode}});let i=T({html:p9(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:T({margin:0},h9(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const l=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return l&&(i=[i,l]),i};function g9(e){const t=it({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return w.jsxs(x.Fragment,{children:[w.jsx(O6,{styles:o=>m9(o,r)}),n]})}const v9=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],y9=ze("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>T({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),x9=ze(W6,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),S9=x.forwardRef(function(t,n){var r,o,i,l,a,s;const u=it({name:"MuiModal",props:t}),{BackdropComponent:c=x9,BackdropProps:d,classes:p,className:S,closeAfterTransition:y=!1,children:v,container:k,component:m,components:h={},componentsProps:g={},disableAutoFocus:f=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:P=!1,disablePortal:E=!1,disableRestoreFocus:O=!1,disableScrollLock:j=!1,hideBackdrop:$=!1,keepMounted:F=!1,onBackdropClick:U,onClose:ne,open:K,slotProps:G,slots:ee,theme:Se}=u,N=se(u,v9),[D,A]=x.useState(!0),re={container:k,closeAfterTransition:y,disableAutoFocus:f,disableEnforceFocus:C,disableEscapeKeyDown:P,disablePortal:E,disableRestoreFocus:O,disableScrollLock:j,hideBackdrop:$,keepMounted:F,onBackdropClick:U,onClose:ne,open:K},ae=T({},u,re,{exited:D}),et=(r=(o=ee==null?void 0:ee.root)!=null?o:h.Root)!=null?r:y9,Z=(i=(l=ee==null?void 0:ee.backdrop)!=null?l:h.Backdrop)!=null?i:c,ve=(a=G==null?void 0:G.root)!=null?a:g.root,Re=(s=G==null?void 0:G.backdrop)!=null?s:g.backdrop;return w.jsx(Rx,T({slots:{root:et,backdrop:Z},slotProps:{root:()=>T({},Yu(ve,ae),!Z1(et)&&{as:m,theme:Se},{className:pe(S,ve==null?void 0:ve.className,p==null?void 0:p.root,!ae.open&&ae.exited&&(p==null?void 0:p.hidden))}),backdrop:()=>T({},d,Yu(Re,ae),{className:pe(Re==null?void 0:Re.className,d==null?void 0:d.className,p==null?void 0:p.backdrop)})},onTransitionEnter:()=>A(!1),onTransitionExited:()=>A(!0),ref:n},N,re,{children:v}))}),w9=S9;function k9(e){return ft("MuiLink",e)}const C9=Et("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),E9=C9,im={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},R9=e=>im[e]||e,P9=({theme:e,ownerState:t})=>{const n=R9(t.color),r=go(e,`palette.${n}`,!1)||t.color,o=go(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:pn(r,.4)},b9=P9,T9=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],_9=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Y(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ct(i,k9,t)},M9=ze(vt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Y(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>T({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&T({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:b9({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${E9.focusVisible}`]:{outline:"auto"}})),$9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:l="a",onBlur:a,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=r,S=se(r,T9),{isFocusVisibleRef:y,onBlur:v,onFocus:k,ref:m}=td(),[h,g]=x.useState(!1),f=wn(n,m),C=j=>{v(j),y.current===!1&&g(!1),a&&a(j)},P=j=>{k(j),y.current===!0&&g(!0),s&&s(j)},E=T({},r,{color:i,component:l,focusVisible:h,underline:c,variant:d}),O=_9(E);return w.jsx(M9,T({color:i,className:pe(O.root,o),classes:u,component:l,onBlur:C,onFocus:P,ref:f,ownerState:E,variant:d,sx:[...Object.keys(im).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},S))}),xd=$9;function N9(e){return ft("MuiToolbar",e)}Et("MuiToolbar",["root","gutters","regular","dense"]);const O9=["className","component","disableGutters","variant"],z9=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Ct({root:["root",!n&&"gutters",r]},N9,t)},L9=ze("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>T({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),j9=x.forwardRef(function(t,n){const r=it({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:l=!1,variant:a="regular"}=r,s=se(r,O9),u=T({},r,{component:i,disableGutters:l,variant:a}),c=z9(u);return w.jsx(L9,T({as:i,className:pe(c.root,o),ref:n,ownerState:u},s))}),D9=j9,I9=ns({palette:{mode:"light",primary:{main:"#009680",light:"#4db6a4",dark:"#004d3a",contrastText:"#FFF"},secondary:{main:"#c3212d",light:"#ca6469",dark:"#960017"},info:{main:"#22b4ec",light:"#5bcbef",dark:"#006296"},success:{main:"#17a840",light:"#4fc366",dark:"#008529"}}}),A9=ns({palette:{mode:"dark",primary:{main:"#b2dfd7",light:"#e0f2f0",dark:"#80cbbe"},secondary:{main:"#f3c6cc",light:"#fae8eb",dark:"#db8e92"},info:{main:"#b6e9f7",light:"#e2f7fc",dark:"#87daf3"},success:{main:"#c4e9c9",light:"#e6f6e9",dark:"#9ddba6"},text:{primary:"#80cbbe"}}}),Sd=x.createContext(null),F9="92101";function B9(e){const[t,n]=x.useState(F9);return w.jsx(Sd.Provider,{value:{zipCode:t,setZipCode:n},children:e.children})}var wd={},lm={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(lm);var am=lm.exports,Ws={};const U9=pm(Nx);var Fp;function sm(){return Fp||(Fp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=U9}(Ws)),Ws}var W9=am;Object.defineProperty(wd,"__esModule",{value:!0});var um=wd.default=void 0,V9=W9(sm()),H9=w,K9=(0,V9.default)((0,H9.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkMode");um=wd.default=K9;var kd={},G9=am;Object.defineProperty(kd,"__esModule",{value:!0});var cm=kd.default=void 0,Q9=G9(sm()),Y9=w,X9=(0,Q9.default)((0,Y9.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z"}),"LightMode");cm=kd.default=X9;const Z9=x.lazy(()=>ed(()=>import("./LocationModal-9c56cd4d.js"),[]));function J9(e){const[t,n]=x.useState(!1),r=()=>n(!0),o=()=>n(!1),i=l=>{n(!1),e.onZipCodeChange(l)};return w.jsxs("div",{children:[w.jsx(rm,{onClick:r,color:"inherit",children:w.jsxs(vt,{children:["ZIP Code: ",e.currentZip]})}),w.jsx(w9,{open:t,onClose:o,"aria-labelledby":"modal-modal-title",children:w.jsx(Hn,{display:"flex",justifyContent:"center",marginTop:7,children:w.jsx(x.Suspense,{fallback:w.jsx(om,{}),children:w.jsx(Z9,{onSubmit:i,onClose:o})})})})]})}function q9(e){const[t,n]=i2(),{zipCode:r,setZipCode:o}=x.useContext(Sd),i=a=>{o(a);const s=new URLSearchParams(t);t.has("page")&&s.set("page","1"),s.set("location",a),n(s)},l=e.isDarkMode?"Light Mode":"Dark Mode";return w.jsx(Hn,{sx:{flexGrow:1},children:w.jsx(N6,{position:"static",children:w.jsxs(D9,{children:[w.jsx(vt,{variant:"h6",component:"div",sx:{flexGrow:1},children:w.jsx(rm,{component:_a,to:"/",color:"inherit",sx:{textDecoration:"none"},children:"PetSearch"})}),w.jsx(J9,{onZipCodeChange:i,currentZip:r}),w.jsx(x6,{onClick:e.onToggleDarkMode,color:"inherit",title:l,children:e.isDarkMode?w.jsx(cm,{}):w.jsx(um,{})})]})})})}const e8={paddingBottom:"2rem"};function t8(){const[e,t]=x.useState(!0),n=()=>{t(o=>!o)},r=x.useMemo(()=>Cp(e?A9:I9),[e]);return w.jsxs(Q5,{theme:r,children:[w.jsx(g9,{}),w.jsxs(B9,{children:[w.jsx(q9,{isDarkMode:e,onToggleDarkMode:n}),w.jsxs(f9,{maxWidth:"xl",sx:e8,children:[w.jsx(t2,{}),w.jsx(Uy,{})]})]})]})}function n8(){var n;const e=g1();console.log(e);let t;return Yc(e)?t=((n=e.error)==null?void 0:n.message)||e.statusText:e instanceof Error?t=e.message:t="",w.jsxs(w.Fragment,{children:[w.jsxs(Hn,{textAlign:"center",children:[w.jsx(vt,{variant:"h1",children:"Oops!"}),w.jsx(vt,{variant:"body1",paragraph:!0,children:"Sorry, an unexpected error has occurred."}),w.jsx(vt,{variant:"body2",children:w.jsx("i",{children:t})})]}),w.jsx(Hn,{textAlign:"center",children:w.jsx(xd,{sx:{textDecoration:"none"},component:_a,to:"/",children:"Take Me Home"})})]})}const r8={padding:"3rem",borderRadius:"30px",borderStyle:"solid",borderColor:"transparent",borderWidth:"4px","&:hover":{borderColor:"#00a693"}},o8={fontSize:"2rem",color:"primary",textAlign:"center",paddingTop:"10px",textTransform:"capitalize"};function Bp(e){const t=`/search/${e.petType}?location=${e.location}`;return w.jsx(xd,{sx:{textDecoration:"none"},component:_a,to:t,children:w.jsxs(em,{sx:r8,elevation:10,children:[e.children,w.jsx(vt,{sx:o8,children:e.petType})]})})}function i8(e){return w.jsxs(ua,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:[w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 + c-2.384-0.503-4.347-2.255-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.731 + c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 + c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 + c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 + c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsxs("g",{children:[w.jsx("path",{d:`M423.791,344.933c-0.729-0.191-1.481-0.313-2.246-0.359c-1.147-0.069-2.324,0.031-3.499,0.32 + c-6.264,1.543-10.097,7.877-8.555,14.141c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987 + c1.858,1.099,3.892,1.613,5.902,1.613c4.008,0,7.912-2.057,10.086-5.761c1.254-2.135,2.426-4.305,3.513-6.504 + c1.087-2.199,2.09-4.429,3.009-6.684c0.612-1.503,1.187-3.018,1.724-4.544c2.417-6.864,4.068-13.936,4.939-21.109 + c0.097-0.797,0.184-1.595,0.261-2.394c0.155-1.599,0.271-3.201,0.349-4.807c0.155-3.212,0.155-6.436-0.002-9.664 + c-0.078-1.614-0.196-3.228-0.353-4.842c-0.235-2.421-0.559-4.841-0.972-7.255c-0.275-1.61-0.59-3.217-0.945-4.821 + c-0.177-0.802-0.365-1.603-0.562-2.403c-0.328-1.332-0.883-2.545-1.598-3.629c-0.336-0.509-0.698-0.996-1.104-1.441 + c-0.254-0.279-0.521-0.544-0.799-0.796c-0.445-0.402-0.926-0.758-1.425-1.087C426.199,345.795,425.031,345.258,423.791,344.933z`}),w.jsx("path",{d:`M490.036,373.97c0.012-0.222,0.035-0.456,0.035-0.69V145.848c0-11.862-4.616-23.011-12.995-31.367 + c-8.391-8.368-19.517-12.984-31.355-12.984c-24.46,0-44.351,19.891-44.351,44.351v88.432L300.106,170.32 + c5.843-16.455,8.952-33.739,8.952-50.965V24.273C309.058,10.892,298.166,0,284.785,0c-6.159,0-12.037,2.314-16.536,6.509 + c-0.105,0.094-0.199,0.187-0.304,0.292l-41.405,41.406c-18.605-10.436-39.512-15.917-61.051-15.917 + c-21.538,0-42.457,5.481-61.051,15.917L63.032,6.802c-0.105-0.105-0.199-0.199-0.304-0.292C58.229,2.314,52.351,0,46.192,0 + C32.811,0,21.919,10.892,21.919,24.273v95.082c0,38.133,15.204,76.617,41.698,105.588c10.506,11.488,22.251,21.001,34.861,28.398 + c-0.619,7.573-0.83,15.263-0.619,22.952c0.923,34.452,10.202,68.331,26.821,98.296v66.368h-0.444 + c-19.587,0-35.527,15.929-35.527,35.515v13.077c0,12.376,10.074,22.45,22.438,22.45h60.49c15.228,0,28.223-9.77,33.05-23.373 + h12.224v0.257c0,12.738,10.366,23.116,23.104,23.116h133.648c34.522,0,67.315-16.653,87.696-44.526 + c0.012,0,0.012-0.012,0.012-0.012c2.185-2.968,4.254-6.124,6.159-9.396c0.035-0.047,0.058-0.093,0.094-0.14 + c0.07-0.128,0.152-0.257,0.234-0.397C483.596,431.293,490.725,402.415,490.036,373.97z M80.854,209.166 + c-2.419-2.653-4.721-5.399-6.918-8.227l8.449-0.713c6.428-0.549,11.207-6.206,10.658-12.633 + c-0.538-6.439-6.194-11.207-12.633-10.658l-20.603,1.741c-2.115-4.16-3.997-8.426-5.668-12.762l25.734,3.412 + c0.514,0.07,1.028,0.093,1.543,0.093c5.773,0,10.798-4.266,11.57-10.144c0.853-6.404-3.646-12.283-10.05-13.124l-35.656-4.733 + c-1.297-7.304-1.987-14.69-1.987-22.064V24.273c0-0.491,0.409-0.9,0.9-0.9c0.082,0,0.304,0,0.538,0.175l47.693,47.705 + c3.95,3.938,10.121,4.546,14.76,1.449c16.688-11.149,36.158-17.039,56.306-17.039c20.136,0,39.617,5.89,56.306,17.039 + c4.64,3.097,10.81,2.489,14.76-1.449l47.693-47.705c0.234-0.175,0.456-0.175,0.538-0.175c0.491,0,0.9,0.409,0.9,0.9v95.082 + c0,7.374-0.678,14.76-1.987,22.064l-35.667,4.733c-6.393,0.841-10.892,6.72-10.05,13.124c0.783,5.878,5.797,10.144,11.57,10.144 + c0.514,0,1.028-0.035,1.554-0.094l25.734-3.412c-1.659,4.336-3.553,8.601-5.668,12.762l-20.615-1.741 + c-6.439-0.549-12.084,4.219-12.633,10.658c-0.538,6.428,4.231,12.084,10.658,12.633l8.461,0.713 + c-2.197,2.828-4.499,5.574-6.918,8.227c-23.174,25.325-53.232,39.267-84.634,39.267S104.029,234.491,80.854,209.166z + M447.871,445.41l-5.539,8.484c-16.022,21.749-41.674,34.732-68.67,34.732H240.282V475c0-7.514,6.1-13.627,13.615-13.627h34.581 + c4.125,0,7.935-2.174,10.05-5.726c2.104-3.541,2.185-7.935,0.21-11.558c-6.766-12.411-10.343-26.505-10.343-40.739 + c0-47.027,38.25-85.277,85.265-85.277c6.451,0,11.687-5.236,11.687-11.687c0-6.463-5.236-11.687-11.687-11.687 + c-59.905,0-108.638,48.733-108.638,108.65c0,11.803,1.928,23.525,5.656,34.651h-16.782c-17.027,0-31.39,11.57-35.679,27.253 + h-11.523v-74.712c0-6.463-5.236-11.687-11.687-11.687c-6.463,0-11.687,5.224-11.687,11.687v86.399 + c0,6.439-5.247,11.687-11.687,11.687h-59.555v-12.154c0-6.696,5.458-12.142,12.154-12.142h12.131 + c6.451,0,11.687-5.236,11.687-11.687v-77.949c0.631-2.781,0.269-5.797-1.274-8.461c-15.87-27.405-24.705-58.725-25.547-90.571 + c-0.105-3.88-0.082-7.76,0.047-11.616c14.164,5.107,29.041,7.76,44.21,7.76c38.051,0,74.221-16.642,101.872-46.863 + c9.151-10.004,16.946-21.129,23.233-32.991l110.8,69.979C465.05,302.109,485.431,382.677,447.871,445.41z M466.698,295.413 + L466.698,295.413c-10.6-17.284-24.67-32.898-41.955-45.765v-103.8c0-11.57,9.408-20.977,20.977-20.977 + c5.598,0,10.868,2.185,14.842,6.147c3.95,3.95,6.135,9.221,6.135,14.83V295.413z`})]})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 + c-2.384-0.503-4.347-2.256-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.732 + c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 + c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 + c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 + c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{id:"SVGCleanerId_0",children:w.jsx("g",{children:w.jsx("path",{d:`M432.187,353.448c-1.543-6.264-7.877-10.097-14.141-8.555c-6.264,1.543-10.097,7.877-8.555,14.141 + c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987c1.858,1.099,3.892,1.613,5.902,1.613 + c4.008,0,7.912-2.057,10.086-5.761C434.606,405.699,438.498,379.054,432.187,353.448z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"93.001",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("circle",{cx:"237.985",cy:"122.066",r:"11.429"})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M199.706,166.954c-2.863-5.06-9.291-6.825-14.339-3.95c-1.017,0.573-2.676,1.18-4.78,0.736 + c-2.384-0.503-4.347-2.256-5.095-4.569l-0.012,0.012c-1.017-3.085-3.412-5.656-6.72-6.743c-5.528-1.8-11.465,1.215-13.264,6.732 + c-0.76,2.314-2.711,4.067-5.107,4.569c-2.092,0.444-3.751-0.164-4.78-0.736c-5.049-2.875-11.464-1.11-14.339,3.95 + c-2.863,5.049-1.099,11.465,3.95,14.339c4.219,2.396,8.964,3.635,13.755,3.635c1.905,0,3.833-0.199,5.738-0.596 + c3.95-0.83,7.608-2.513,10.763-4.838c3.167,2.326,6.837,4.008,10.798,4.838c1.893,0.397,3.822,0.596,5.738,0.596 + c4.78,0,9.525-1.239,13.743-3.635C200.805,178.419,202.581,172.003,199.706,166.954z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M432.187,353.448c-1.543-6.264-7.877-10.097-14.141-8.555c-6.264,1.543-10.097,7.877-8.555,14.141 + c4.85,19.657,1.858,40.12-8.414,57.603c-3.272,5.563-1.414,12.727,4.16,15.987c1.858,1.099,3.892,1.613,5.902,1.613 + c4.008,0,7.912-2.057,10.086-5.761C434.606,405.699,438.498,379.054,432.187,353.448z`})})})]})}function l8(e){return w.jsxs(ua,{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",...e,children:[w.jsx("g",{children:w.jsx("g",{children:w.jsxs("g",{children:[w.jsx("path",{d:`M311.685,119.296c-7.076,0-12.817,5.741-12.817,12.817c0,7.087,5.741,12.829,12.817,12.829 + c7.087,0,12.829-5.741,12.829-12.829C324.513,125.037,318.772,119.296,311.685,119.296z`}),w.jsx("path",{d:`M301.297,195.435c-5.134-2.954-11.685-1.191-14.639,3.943c-1.572,2.728-4.526,4.443-7.695,4.455 + c-0.012,0-0.012,0-0.024,0h-0.048c-3.157-0.012-6.099-1.727-7.683-4.455c-0.917-1.584-2.228-2.966-3.931-3.943 + c-5.134-2.954-11.685-1.191-14.639,3.943c-1.584,2.74-4.55,4.455-7.731,4.455s-6.135-1.715-7.719-4.455 + c-2.954-5.134-9.506-6.897-14.639-3.943c-5.134,2.954-6.885,9.517-3.931,14.639c3.538,6.158,9.112,10.756,15.569,13.21v26.313 + c0,15.295,12.436,27.73,27.73,27.73s27.742-12.436,27.742-27.73v-26.313c6.468-2.442,12.031-7.052,15.581-13.21 + C308.194,204.952,306.431,198.389,301.297,195.435z M268.218,249.597c0,3.466-2.823,6.289-6.301,6.289 + c-3.466,0-6.289-2.823-6.289-6.289v-26.313c2.216-0.834,4.336-1.918,6.301-3.252c1.953,1.334,4.074,2.418,6.289,3.264V249.597z`}),w.jsx("path",{d:`M428.788,449.559h-0.953c1.549-6.111,2.347-12.424,2.347-18.773c0-17.391-6.027-34.401-16.95-47.897 + c-8.731-10.756-20.262-18.94-33.15-23.645v-58.355c0-14.913-2.716-29.362-8.076-43.049c0-0.012,0-0.012,0-0.012 + c11.078-19.19,16.927-41.036,16.843-63.739l-0.012-26.468v-0.357l0.012-0.25v-0.048l-0.524-128.134 + c-0.048-10.423-4.157-20.19-11.542-27.516C369.432,4.014,359.676,0,349.325,0h-0.167c-10.423,0.048-20.202,4.145-27.54,11.542 + l-31.816,32.078c-9.041-2.025-18.368-3.061-27.861-3.061h-0.536c-9.732,0.036-19.214,1.191-28.326,3.323l-32.126-31.852 + c-7.349-7.302-17.105-11.316-27.456-11.316h-0.167c-10.423,0.048-20.202,4.145-27.528,11.531 + c-7.338,7.397-11.352,17.2-11.316,27.635l0.524,127.407v27.79c0.083,22.323,5.908,43.752,16.736,62.596 + c-1.703,4.324-3.145,8.731-4.312,13.198c-1.167,4.467-2.073,9.005-2.716,13.603l-42.68-42.691 + c-2.239-2.239-5.265-3.49-8.433-3.49c-3.157,0-6.182,1.251-8.422,3.49c-40.857,40.869-40.857,107.36,0,148.217l13.567,13.579 + c-3.311,8.636-5.051,17.868-5.051,27.206c0,6.349,0.798,12.662,2.347,18.773h-0.953c-15.807,0-28.671,12.865-28.671,28.671 + v14.294c0,10.744,8.731,19.476,19.476,19.476h352.086c10.744,0,19.476-8.731,19.476-19.476V478.23 + C457.459,462.424,444.595,449.559,428.788,449.559z M94.224,267.668l49.374,49.374v42.286 + c-12.555,4.622-23.823,12.555-32.436,22.954l-9.124-9.124C73.319,344.438,70.711,299.353,94.224,267.668z M90.246,488.177v-9.946 + c0-2.668,2.18-4.848,4.848-4.848h18.32c4.205,0,8.1-2.216,10.244-5.837c2.144-3.609,2.227-8.1,0.214-11.781 + c-4.157-7.6-6.349-16.236-6.349-24.979c0-8.052,1.894-15.807,5.289-22.763c0.476-0.965,0.977-1.918,1.501-2.847v-0.012 + c4.574-8.064,11.221-14.878,19.285-19.595c0,0,0,88.468,0.024,102.607H90.246z M338.533,28.314 + c5.896-5.944,15.533-5.98,21.477-0.083c2.871,2.847,4.467,6.659,4.491,10.709l0.226,54.043 + c-4.014-5.503-8.493-10.721-13.424-15.616c-10.732-10.649-23.013-19.142-36.354-25.277L338.533,28.314z M261.965,64.335h0.012 + c12.96,0.06,25.384,2.406,36.843,6.825c-13.71,2.74-26.48,9.065-37.01,18.404c-10.458-9.267-23.109-15.569-36.724-18.344 + C236.557,66.801,249.005,64.395,261.965,64.335z M158.309,39.785c-0.012-4.062,1.549-7.874,4.407-10.756 + c2.859-2.883,6.659-4.467,10.709-4.491h0.06c4.038,0,7.826,1.56,10.697,4.407l23.871,23.68 + c-19.845,9.351-36.891,23.704-49.517,41.405L158.309,39.785z M356.258,488.177L356.258,488.177h-32.34V375.409 + c0-6.575-5.336-11.912-11.912-11.912s-11.912,5.336-11.912,11.912v112.768h-76.449V375.409c0-6.575-5.336-11.912-11.912-11.912 + s-11.912,5.336-11.912,11.912v112.768h-32.364c-0.024-13.591-0.036-187.287-0.036-187.287c0-6.611,0.691-13.103,2.013-19.428 + c1.001,1.096,2.037,2.156,3.109,3.216c23.942,23.752,55.663,36.807,89.361,36.807h0.536 + c33.901-0.143,65.717-13.472,89.588-37.546c0.774-0.774,1.513-1.549,2.251-2.335c1.298,6.289,1.977,12.734,1.977,19.285V488.177z + M365.026,194.982h-0.012c-0.226,56.557-46.205,102.452-102.667,102.679h-0.429c-56.652,0-102.857-45.979-103.084-102.679 + v-27.671c0.048-30.16,13.174-57.367,34.008-76.223l16.188-0.048h0.203c17.129,0,33.317,7.552,44.395,20.714 + c2.12,2.525,5.146,3.824,8.207,3.824c2.43,0,4.884-0.822,6.897-2.513c0.476-0.405,0.905-0.846,1.298-1.31 + c5.539-6.587,12.352-11.757,19.916-15.295c7.576-3.538,15.902-5.42,24.467-5.42l16.748,0.048 + c1.143,1.036,2.263,2.096,3.371,3.192c19.535,19.38,30.363,45.193,30.494,72.721V194.982z M433.636,488.177h-53.555V385.45 + c15.831,9.184,26.277,26.396,26.277,45.336c0,8.743-2.192,17.379-6.349,24.979c-2.013,3.681-1.93,8.159,0.214,11.781 + c2.144,3.621,6.039,5.837,10.244,5.837h18.32c2.668,0,4.848,2.18,4.848,4.848V488.177z`}),w.jsx("path",{d:`M220.18,142.454c1.584-1.306,2.848-2.985,3.66-4.902c0.195-0.462,0.355-0.941,0.496-1.429 + c0.327-1.131,0.512-2.323,0.512-3.559c0-1.772-0.359-3.46-1.008-4.995c-0.325-0.767-0.722-1.497-1.183-2.179 + c-0.691-1.024-1.527-1.942-2.477-2.726c-0.634-0.523-1.318-0.986-2.045-1.381s-1.497-0.721-2.3-0.971 + c-1.205-0.375-2.487-0.577-3.816-0.577c-1.327,0-2.606,0.202-3.81,0.577c-0.803,0.25-1.571,0.576-2.298,0.971 + c-2.542,1.382-4.566,3.6-5.701,6.286c-0.649,1.535-1.008,3.223-1.008,4.995l0,0v0c0,3.98,1.817,7.538,4.665,9.889 + c0.633,0.523,1.317,0.985,2.044,1.38c1.453,0.789,3.075,1.306,4.798,1.481c0.431,0.044,0.868,0.066,1.31,0.066 + c1.329,0,2.61-0.202,3.816-0.576c0.804-0.25,1.573-0.576,2.3-0.971S219.547,142.977,220.18,142.454z`}),w.jsx("path",{d:`M256.521,175.578h10.649c6.587,0,11.912-5.325,11.912-11.912c0-6.575-5.325-11.912-11.912-11.912h-10.649 + c-6.587,0-11.912,5.336-11.912,11.912C244.609,170.254,249.934,175.578,256.521,175.578z`})]})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M212.019,119.736c-7.076,0-12.817,5.741-12.817,12.829c0,7.076,5.741,12.817,12.817,12.817 + c7.087,0,12.829-5.741,12.829-12.817C224.848,125.478,219.107,119.736,212.019,119.736z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M311.684,119.296c-7.076,0-12.817,5.741-12.817,12.817c0,7.087,5.741,12.829,12.817,12.829 + c7.087,0,12.829-5.741,12.829-12.829C324.513,125.037,318.772,119.296,311.684,119.296z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M267.17,151.755h-10.649c-6.587,0-11.912,5.336-11.912,11.912c0,6.587,5.325,11.912,11.912,11.912h10.649 + c6.587,0,11.912-5.325,11.912-11.912C279.082,157.091,273.757,151.755,267.17,151.755z`})})}),w.jsx("g",{children:w.jsx("g",{children:w.jsx("path",{d:`M301.297,195.435c-5.134-2.954-11.685-1.191-14.639,3.943c-1.572,2.728-4.526,4.443-7.695,4.455c-0.012,0-0.012,0-0.024,0 + h-0.048c-3.157-0.012-6.099-1.727-7.683-4.455c-0.917-1.584-2.228-2.966-3.931-3.943c-5.134-2.954-11.685-1.191-14.639,3.943 + c-1.584,2.74-4.55,4.455-7.731,4.455s-6.135-1.715-7.719-4.455c-2.954-5.134-9.506-6.897-14.639-3.943 + c-5.134,2.954-6.885,9.517-3.931,14.639c3.538,6.158,9.112,10.756,15.569,13.21v26.313c0,15.295,12.436,27.73,27.73,27.73 + s27.742-12.436,27.742-27.73v-26.313c6.468-2.442,12.031-7.052,15.581-13.21C308.194,204.952,306.431,198.389,301.297,195.435z + M268.218,249.597c0,3.466-2.823,6.289-6.301,6.289c-3.466,0-6.289-2.823-6.289-6.289v-26.313 + c2.216-0.834,4.336-1.918,6.301-3.252c1.953,1.334,4.074,2.418,6.289,3.264V249.597z`})})})]})}const Up={fontSize:"150px"},a8={display:"flex",flexWrap:"wrap",justifyContent:"center",gap:"2rem"},s8={textAlign:"center",marginBottom:"40px",marginTop:"40px"};function u8(){const{zipCode:e}=x.useContext(Sd);return w.jsxs("main",{children:[w.jsx(vt,{sx:s8,variant:"h2",children:"Find your next companion!"}),w.jsxs(Hn,{sx:a8,children:[w.jsx(Bp,{petType:"cats",location:e,children:w.jsx(i8,{sx:Up})}),w.jsx(Bp,{petType:"dogs",location:e,children:w.jsx(l8,{sx:Up})})]})]})}const c8={textAlign:"center"};function Wp(e){return w.jsxs(w.Fragment,{children:[w.jsxs(vt,{variant:"h4",textAlign:"center",mb:2,children:["Loading ",e.pageName," page..."]}),w.jsx(Hn,{display:"flex",justifyContent:"center",children:w.jsx(om,{sx:c8})})]})}function d8(){return w.jsxs(w.Fragment,{children:[w.jsxs(Hn,{textAlign:"center",children:[w.jsx(vt,{variant:"h1",children:"Oops!"}),w.jsx(vt,{variant:"h2",children:"404"}),w.jsx(vt,{variant:"h4",children:"Page Not Found"}),w.jsx(vt,{variant:"body1",paragraph:!0,children:"The page you are looking for does not exist."})]}),w.jsx(Hn,{textAlign:"center",children:w.jsx(xd,{sx:{textDecoration:"none"},component:_a,to:"/",children:"Take Me Home"})})]})}const f8=x.lazy(()=>ed(()=>import("./PetSearchPage-5387079e.js"),["assets/PetSearchPage-5387079e.js","assets/index-361cb345.js","assets/PetSearchPage-f7f4102a.css"])),p8=x.lazy(()=>ed(()=>import("./PetPage-7ee6db32.js"),["assets/PetPage-7ee6db32.js","assets/index-361cb345.js","assets/PetPage-5b81f285.css"])),h8=Xy([{path:"/",element:w.jsx(t8,{}),errorElement:w.jsx(n8,{}),children:[{path:"/",element:w.jsx(u8,{})},{path:"/search/:petType",element:w.jsx(x.Suspense,{fallback:w.jsx(Wp,{pageName:"search"}),children:w.jsx(f8,{})})},{path:"/pets/:id",element:w.jsx(x.Suspense,{fallback:w.jsx(Wp,{pageName:"pet"}),children:w.jsx(p8,{})})},{path:"/not-found",element:w.jsx(d8,{})},{path:"*",element:w.jsx(By,{replace:!0,to:"/not-found"})}]}]);Vs.createRoot(document.getElementById("root")).render(w.jsx(x.StrictMode,{children:w.jsx(Ay,{router:h8})}));export{Z1 as $,i2 as A,tm as B,i8 as C,l8 as D,sm as E,am as F,wr as G,Jc as H,x6 as I,rm as J,e5 as K,_a as L,xd as M,t5 as N,Fi as O,em as P,A5 as Q,Yn as R,dd as S,vt as T,en as U,wn as V,Ma as W,x2 as X,la as Y,Gc as Z,T as _,A1 as a,O6 as a0,gr as a1,X1 as a2,w2 as a3,zx as a4,Ux as a5,Mp as a6,z2 as a7,gn as a8,w9 as a9,Pp as aa,y8 as ab,R2 as ac,x as b,qa as c,rn as d,W1 as e,se as f,pe as g,kn as h,Ct as i,w as j,ft as k,Ui as l,g8 as m,Et as n,ze as o,it as p,b2 as q,v8 as r,Y4 as s,Mx as t,G1 as u,pn as v,H5 as w,Y as x,Sd as y,m8 as z}; diff --git a/PetSearch.API/wwwroot/index.html b/PetSearch.API/wwwroot/index.html index 6f1aece..f12cbac 100644 --- a/PetSearch.API/wwwroot/index.html +++ b/PetSearch.API/wwwroot/index.html @@ -2,24 +2,24 @@ - - - - - - - - - - - - Pet Search - + + + + + + + + + + + + Pet Search + -
- +
+ diff --git a/PetSearch.API/wwwroot/meta/safari-pinned-tab.svg b/PetSearch.API/wwwroot/meta/safari-pinned-tab.svg index 80d9664..9d3c83b 100644 --- a/PetSearch.API/wwwroot/meta/safari-pinned-tab.svg +++ b/PetSearch.API/wwwroot/meta/safari-pinned-tab.svg @@ -1,42 +1,42 @@ + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> - - Created by potrace 1.14, written by Peter Selinger 2001-2017 - - - + +Created by potrace 1.14, written by Peter Selinger 2001-2017 + + + - - - - - + diff --git a/pet-search-client/.env.development b/pet-search-client/.env.development index 615fd8d..06a1171 100644 --- a/pet-search-client/.env.development +++ b/pet-search-client/.env.development @@ -1 +1 @@ -VITE_API_URL=http://localhost:5185/api/ \ No newline at end of file +VITE_API_URL=http://localhost:5090/api/ diff --git a/pet-search-client/src/components/layout/LocationButton.tsx b/pet-search-client/src/components/layout/LocationButton.tsx index dcf2bcb..4eab4f7 100644 --- a/pet-search-client/src/components/layout/LocationButton.tsx +++ b/pet-search-client/src/components/layout/LocationButton.tsx @@ -1,5 +1,5 @@ import { Suspense, lazy, useState } from "react"; -import { Button, Modal, Typography, CircularProgress } from "@mui/material"; +import {Button, Modal, Typography, CircularProgress, Box} from "@mui/material"; // Our component. const LocationModal = lazy(() => import("./LocationModal")); @@ -26,11 +26,11 @@ export default function LocationButton(props: Props) { ZIP Code: {props.currentZip} -
+ }> -
+
); diff --git a/pet-search-client/src/pages/ErrorPage.tsx b/pet-search-client/src/pages/ErrorPage.tsx new file mode 100644 index 0000000..4c5cb9d --- /dev/null +++ b/pet-search-client/src/pages/ErrorPage.tsx @@ -0,0 +1,31 @@ +import {isRouteErrorResponse, Link, useRouteError} from "react-router-dom"; +import {Box, Link as MuiLink, Typography} from "@mui/material"; + +export default function ErrorPage() { + const error: unknown = useRouteError(); + console.log(error); + + let errorMsg: string; + if (isRouteErrorResponse(error)) { + errorMsg = error.error?.message || error.statusText; + } else if (error instanceof Error) { + errorMsg = error.message; + } else { + errorMsg = ""; + } + + return ( + <> + + Oops! + Sorry, an unexpected error has occurred. + {errorMsg} + + + + Take Me Home + + + + ) +} diff --git a/pet-search-client/src/pages/NotFoundPage.tsx b/pet-search-client/src/pages/NotFoundPage.tsx new file mode 100644 index 0000000..da71cb9 --- /dev/null +++ b/pet-search-client/src/pages/NotFoundPage.tsx @@ -0,0 +1,20 @@ +import {Box, Link as MuiLink, Typography} from "@mui/material"; +import {Link} from "react-router-dom"; + +export default function NotFoundPage() { + return ( + <> + + Oops! + 404 + Page Not Found + The page you are looking for does not exist. + + + + Take Me Home + + + + ) +} diff --git a/pet-search-client/src/router/Routes.tsx b/pet-search-client/src/router/Routes.tsx index 2aa2eb1..7ebd75e 100644 --- a/pet-search-client/src/router/Routes.tsx +++ b/pet-search-client/src/router/Routes.tsx @@ -2,8 +2,10 @@ import {lazy, Suspense} from "react"; import {createBrowserRouter, Navigate} from "react-router-dom"; // Our imports. import App from "../App"; +import ErrorPage from "../pages/ErrorPage.tsx"; import HomePage from "../pages/HomePage"; import LoadingPage from "../pages/LoadingPage.tsx"; +import NotFoundPage from "../pages/NotFoundPage.tsx"; const PetSearchPage = lazy(() => import("../pages/PetSearchPage")) const PetPage = lazy(() => import("../pages/PetPage")) @@ -12,6 +14,7 @@ const router = createBrowserRouter([ { path: "/", element: , + errorElement: , children: [ { path: "/", @@ -31,6 +34,10 @@ const router = createBrowserRouter([ }, + { + path: "/not-found", + element: + }, {path: "*", element: }, ], },