@attabot/product-app 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,39 @@
1
- (function(c,L){typeof exports=="object"&&typeof module<"u"?module.exports=L(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],L):(c=typeof globalThis<"u"?globalThis:c||self,c.ProductApp=L(c["react/jsx-runtime"],c.React,c.ReactDOM))})(this,(function(c,L,yo){"use strict";var rl=typeof document<"u"?document.currentScript:null;function Kd(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=Kd(L),ay=Kd(yo);function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(this,arguments)}var Vn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Vn||(Vn={}));const Xd="popstate";function ly(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return ol("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:xo(i)}return dy(t,n,null,e)}function Ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Rt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function cy(){return Math.random().toString(36).substr(2,8)}function Jd(e,t){return{usr:e.state,key:e.key,idx:t}}function ol(e,t,n,r){return n===void 0&&(n=null),bo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ir(t):t,{state:n,key:t&&t.key||r||cy()})}function xo(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 Ir(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 dy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Vn.Pop,d=null,p=u();p==null&&(p=0,a.replaceState(bo({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=Vn.Pop;let m=u(),y=m==null?null:m-p;p=m,d&&d({action:l,location:f.location,delta:y})}function x(m,y){l=Vn.Push;let w=ol(f.location,m,y);p=u()+1;let S=Jd(w,p),v=f.createHref(w);try{a.pushState(S,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(v)}s&&d&&d({action:l,location:f.location,delta:1})}function b(m,y){l=Vn.Replace;let w=ol(f.location,m,y);p=u();let S=Jd(w,p),v=f.createHref(w);a.replaceState(S,"",v),s&&d&&d({action:l,location:f.location,delta:0})}function g(m){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof m=="string"?m:xo(m);return w=w.replace(/ $/,"%20"),Ie(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let f={get action(){return l},get location(){return e(i,a)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(Xd,h),d=m,()=>{i.removeEventListener(Xd,h),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let y=g(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:x,replace:b,go(m){return a.go(m)}};return f}var Qd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qd||(Qd={}));function uy(e,t,n){return n===void 0&&(n="/"),py(e,t,n)}function py(e,t,n,r){let i=typeof t=="string"?Ir(t):t,s=Un(i.pathname||"/",n);if(s==null)return null;let a=Zd(e);fy(a);let l=null;for(let d=0;l==null&&d<a.length;++d){let p=Ey(s);l=wy(a[d],p)}return l}function Zd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let d={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};d.relativePath.startsWith("/")&&(Ie(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let p=An([r,d.relativePath]),u=n.concat(d);s.children&&s.children.length>0&&(Ie(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),Zd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:vy(p,s.index),routesMeta:u})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let d of eu(s.path))i(s,a,d)}),t}function eu(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=eu(r.join("/")),l=[];return l.push(...a.map(d=>d===""?s:[s,d].join("/"))),i&&l.push(...a),l.map(d=>e.startsWith("/")&&d===""?"/":d)}function fy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Sy(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hy=/^:[\w-]+$/,gy=3,my=2,yy=1,by=10,xy=-2,tu=e=>e==="*";function vy(e,t){let n=e.split("/"),r=n.length;return n.some(tu)&&(r+=xy),t&&(r+=my),n.filter(i=>!tu(i)).reduce((i,s)=>i+(hy.test(s)?gy:s===""?yy:by),r)}function Sy(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function wy(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let l=0;l<r.length;++l){let d=r[l],p=l===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=il({path:d.relativePath,caseSensitive:d.caseSensitive,end:p},u),x=d.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:An([s,h.pathname]),pathnameBase:Ay(An([s,h.pathnameBase])),route:x}),h.pathnameBase!=="/"&&(s=An([s,h.pathnameBase]))}return a}function il(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Cy(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:x,isOptional:b}=u;if(x==="*"){let f=l[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[h];return b&&!g?p[x]=void 0:p[x]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function Cy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Rt(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,d)=>(r.push({paramName:l,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Ey(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Rt(!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 Un(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)||"/"}const Ty=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Py=e=>Ty.test(e);function Oy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ir(e):e,s;if(n)if(Py(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),Rt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=nu(n.substring(1),"/"):s=nu(n,t)}else s=t;return{pathname:s,search:Iy(r),hash:Ny(i)}}function nu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function sl(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 <Link to="..."> and the router will parse it for you.'}function ky(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ru(e,t){let n=ky(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ou(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ir(e):(i=bo({},e),Ie(!i.pathname||!i.pathname.includes("?"),sl("?","pathname","search",i)),Ie(!i.pathname||!i.pathname.includes("#"),sl("#","pathname","hash",i)),Ie(!i.search||!i.search.includes("#"),sl("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let x=a.split("/");for(;x[0]==="..";)x.shift(),h-=1;i.pathname=x.join("/")}l=h>=0?t[h]:"/"}let d=Oy(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(p||u)&&(d.pathname+="/"),d}const An=e=>e.join("/").replace(/\/\/+/g,"/"),Ay=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Iy=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ny=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iu=["post","put","patch","delete"];new Set(iu);const My=["get",...iu];new Set(My);function vo(){return vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vo.apply(this,arguments)}const So=T.createContext(null);process.env.NODE_ENV!=="production"&&(So.displayName="DataRouter");const al=T.createContext(null);process.env.NODE_ENV!=="production"&&(al.displayName="DataRouterState");const Dy=T.createContext(null);process.env.NODE_ENV!=="production"&&(Dy.displayName="Await");const Qt=T.createContext(null);process.env.NODE_ENV!=="production"&&(Qt.displayName="Navigation");const wo=T.createContext(null);process.env.NODE_ENV!=="production"&&(wo.displayName="Location");const In=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(In.displayName="Route");const ll=T.createContext(null);process.env.NODE_ENV!=="production"&&(ll.displayName="RouteError");function _y(e,t){let{relative:n}=t===void 0?{}:t;Co()||(process.env.NODE_ENV!=="production"?Ie(!1,"useHref() may be used only in the context of a <Router> component."):Ie(!1));let{basename:r,navigator:i}=T.useContext(Qt),{hash:s,pathname:a,search:l}=Eo(e,{relative:n}),d=a;return r!=="/"&&(d=a==="/"?r:An([r,a])),i.createHref({pathname:d,search:l,hash:s})}function Co(){return T.useContext(wo)!=null}function bt(){return Co()||(process.env.NODE_ENV!=="production"?Ie(!1,"useLocation() may be used only in the context of a <Router> component."):Ie(!1)),T.useContext(wo).location}const su="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function au(e){T.useContext(Qt).static||T.useLayoutEffect(e)}function xt(){let{isDataRoute:e}=T.useContext(In);return e?Ky():$y()}function $y(){Co()||(process.env.NODE_ENV!=="production"?Ie(!1,"useNavigate() may be used only in the context of a <Router> component."):Ie(!1));let e=T.useContext(So),{basename:t,future:n,navigator:r}=T.useContext(Qt),{matches:i}=T.useContext(In),{pathname:s}=bt(),a=JSON.stringify(ru(i,n.v7_relativeSplatPath)),l=T.useRef(!1);return au(()=>{l.current=!0}),T.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&Rt(l.current,su),!l.current)return;if(typeof p=="number"){r.go(p);return}let h=ou(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:An([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}function Eo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(Qt),{matches:i}=T.useContext(In),{pathname:s}=bt(),a=JSON.stringify(ru(i,r.v7_relativeSplatPath));return T.useMemo(()=>ou(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function zy(e,t){return Ly(e,t)}function Ly(e,t,n,r){Co()||(process.env.NODE_ENV!=="production"?Ie(!1,"useRoutes() may be used only in the context of a <Router> component."):Ie(!1));let{navigator:i}=T.useContext(Qt),{matches:s}=T.useContext(In),a=s[s.length-1],l=a?a.params:{},d=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";du(d,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
1
+ (function(a,j){typeof exports=="object"&&typeof module<"u"?module.exports=j(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],j):(a=typeof globalThis<"u"?globalThis:a||self,a.ProductApp=j(a["react/jsx-runtime"],a.React,a.ReactDOM))})(this,(function(a,j,vo){"use strict";var pl=typeof document<"u"?document.currentScript:null;function tp(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const T=tp(j),uy=tp(vo);function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(this,arguments)}var Rn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rn||(Rn={}));const np="popstate";function fy(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:l,hash:c}=r.location;return ul("",{pathname:s,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:wo(i)}return gy(t,n,null,e)}function Me(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ht(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function hy(){return Math.random().toString(36).substr(2,8)}function rp(e,t){return{usr:e.state,key:e.key,idx:t}}function ul(e,t,n,r){return n===void 0&&(n=null),So({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Mr(t):t,{state:n,key:t&&t.key||r||hy()})}function wo(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 Mr(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 gy(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,c=Rn.Pop,d=null,u=p();u==null&&(u=0,l.replaceState(So({},l.state,{idx:u}),""));function p(){return(l.state||{idx:null}).idx}function h(){c=Rn.Pop;let m=p(),x=m==null?null:m-u;u=m,d&&d({action:c,location:f.location,delta:x})}function y(m,x){c=Rn.Push;let w=ul(f.location,m,x);u=p()+1;let S=rp(w,u),v=f.createHref(w);try{l.pushState(S,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(v)}s&&d&&d({action:c,location:f.location,delta:1})}function b(m,x){c=Rn.Replace;let w=ul(f.location,m,x);u=p();let S=rp(w,u),v=f.createHref(w);l.replaceState(S,"",v),s&&d&&d({action:c,location:f.location,delta:0})}function g(m){let x=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof m=="string"?m:wo(m);return w=w.replace(/ $/,"%20"),Me(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let f={get action(){return c},get location(){return e(i,l)},listen(m){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(np,h),d=m,()=>{i.removeEventListener(np,h),d=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let x=g(m);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:y,replace:b,go(m){return l.go(m)}};return f}var op;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(op||(op={}));function my(e,t,n){return n===void 0&&(n="/"),yy(e,t,n)}function yy(e,t,n,r){let i=typeof t=="string"?Mr(t):t,s=qn(i.pathname||"/",n);if(s==null)return null;let l=ip(e);by(l);let c=null;for(let d=0;c==null&&d<l.length;++d){let u=Ay(s);c=Py(l[d],u)}return c}function ip(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,l,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(Me(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let u=In([r,d.relativePath]),p=n.concat(d);s.children&&s.children.length>0&&(Me(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),ip(s.children,t,p,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Ty(u,s.index),routesMeta:p})};return e.forEach((s,l)=>{var c;if(s.path===""||!((c=s.path)!=null&&c.includes("?")))i(s,l);else for(let d of sp(s.path))i(s,l,d)}),t}function sp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=sp(r.join("/")),c=[];return c.push(...l.map(d=>d===""?s:[s,d].join("/"))),i&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function by(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ky(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xy=/^:[\w-]+$/,vy=3,Sy=2,wy=1,Cy=10,Ey=-2,ap=e=>e==="*";function Ty(e,t){let n=e.split("/"),r=n.length;return n.some(ap)&&(r+=Ey),t&&(r+=Sy),n.filter(i=>!ap(i)).reduce((i,s)=>i+(xy.test(s)?vy:s===""?wy:Cy),r)}function ky(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Py(e,t,n){let{routesMeta:r}=e,i={},s="/",l=[];for(let c=0;c<r.length;++c){let d=r[c],u=c===r.length-1,p=s==="/"?t:t.slice(s.length)||"/",h=fl({path:d.relativePath,caseSensitive:d.caseSensitive,end:u},p),y=d.route;if(!h)return null;Object.assign(i,h.params),l.push({params:i,pathname:In([s,h.pathname]),pathnameBase:Dy(In([s,h.pathnameBase])),route:y}),h.pathnameBase!=="/"&&(s=In([s,h.pathnameBase]))}return l}function fl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Oy(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((u,p,h)=>{let{paramName:y,isOptional:b}=p;if(y==="*"){let f=c[h]||"";l=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=c[h];return b&&!g?u[y]=void 0:u[y]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:l,pattern:e}}function Oy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Ht(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Ay(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ht(!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 qn(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)||"/"}const Iy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ny=e=>Iy.test(e);function Fy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Mr(e):e,s;if(n)if(Ny(n))s=n;else{if(n.includes("//")){let l=n;n=n.replace(/\/\/+/g,"/"),Ht(!1,"Pathnames cannot have embedded double slashes - normalizing "+(l+" -> "+n))}n.startsWith("/")?s=lp(n.substring(1),"/"):s=lp(n,t)}else s=t;return{pathname:s,search:_y(r),hash:$y(i)}}function lp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function hl(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 <Link to="..."> and the router will parse it for you.'}function My(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function cp(e,t){let n=My(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function dp(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Mr(e):(i=So({},e),Me(!i.pathname||!i.pathname.includes("?"),hl("?","pathname","search",i)),Me(!i.pathname||!i.pathname.includes("#"),hl("#","pathname","hash",i)),Me(!i.search||!i.search.includes("#"),hl("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,c;if(l==null)c=n;else{let h=t.length-1;if(!r&&l.startsWith("..")){let y=l.split("/");for(;y[0]==="..";)y.shift(),h-=1;i.pathname=y.join("/")}c=h>=0?t[h]:"/"}let d=Fy(i,c),u=l&&l!=="/"&&l.endsWith("/"),p=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(u||p)&&(d.pathname+="/"),d}const In=e=>e.join("/").replace(/\/\/+/g,"/"),Dy=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),_y=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$y=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function zy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const pp=["post","put","patch","delete"];new Set(pp);const Ly=["get",...pp];new Set(Ly);function Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}const Eo=T.createContext(null);process.env.NODE_ENV!=="production"&&(Eo.displayName="DataRouter");const gl=T.createContext(null);process.env.NODE_ENV!=="production"&&(gl.displayName="DataRouterState");const By=T.createContext(null);process.env.NODE_ENV!=="production"&&(By.displayName="Await");const Zt=T.createContext(null);process.env.NODE_ENV!=="production"&&(Zt.displayName="Navigation");const To=T.createContext(null);process.env.NODE_ENV!=="production"&&(To.displayName="Location");const Nn=T.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Nn.displayName="Route");const ml=T.createContext(null);process.env.NODE_ENV!=="production"&&(ml.displayName="RouteError");function jy(e,t){let{relative:n}=t===void 0?{}:t;ko()||(process.env.NODE_ENV!=="production"?Me(!1,"useHref() may be used only in the context of a <Router> component."):Me(!1));let{basename:r,navigator:i}=T.useContext(Zt),{hash:s,pathname:l,search:c}=Po(e,{relative:n}),d=l;return r!=="/"&&(d=l==="/"?r:In([r,l])),i.createHref({pathname:d,search:c,hash:s})}function ko(){return T.useContext(To)!=null}function vt(){return ko()||(process.env.NODE_ENV!=="production"?Me(!1,"useLocation() may be used only in the context of a <Router> component."):Me(!1)),T.useContext(To).location}const up="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fp(e){T.useContext(Zt).static||T.useLayoutEffect(e)}function St(){let{isDataRoute:e}=T.useContext(Nn);return e?eb():Wy()}function Wy(){ko()||(process.env.NODE_ENV!=="production"?Me(!1,"useNavigate() may be used only in the context of a <Router> component."):Me(!1));let e=T.useContext(Eo),{basename:t,future:n,navigator:r}=T.useContext(Zt),{matches:i}=T.useContext(Nn),{pathname:s}=vt(),l=JSON.stringify(cp(i,n.v7_relativeSplatPath)),c=T.useRef(!1);return fp(()=>{c.current=!0}),T.useCallback(function(u,p){if(p===void 0&&(p={}),process.env.NODE_ENV!=="production"&&Ht(c.current,up),!c.current)return;if(typeof u=="number"){r.go(u);return}let h=dp(u,JSON.parse(l),s,p.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:In([t,h.pathname])),(p.replace?r.replace:r.push)(h,p.state,p)},[t,r,l,s,e])}function Po(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=T.useContext(Zt),{matches:i}=T.useContext(Nn),{pathname:s}=vt(),l=JSON.stringify(cp(i,r.v7_relativeSplatPath));return T.useMemo(()=>dp(e,JSON.parse(l),s,n==="path"),[e,l,s,n])}function Vy(e,t){return Uy(e,t)}function Uy(e,t,n,r){ko()||(process.env.NODE_ENV!=="production"?Me(!1,"useRoutes() may be used only in the context of a <Router> component."):Me(!1));let{navigator:i}=T.useContext(Zt),{matches:s}=T.useContext(Nn),l=s[s.length-1],c=l?l.params:{},d=l?l.pathname:"/",u=l?l.pathnameBase:"/",p=l&&l.route;if(process.env.NODE_ENV!=="production"){let w=p&&p.path||"";mp(d,!p||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+d+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
2
 
3
- `+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=bt(),x;if(t){var b;let w=typeof t=="string"?Ir(t):t;p==="/"||(b=w.pathname)!=null&&b.startsWith(p)||(process.env.NODE_ENV!=="production"?Ie(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):Ie(!1)),x=w}else x=h;let g=x.pathname||"/",f=g;if(p!=="/"){let w=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=uy(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Rt(u||m!=null,'No routes matched location "'+x.pathname+x.search+x.hash+'" '),process.env.NODE_ENV!=="production"&&Rt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+x.pathname+x.search+x.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let y=Vy(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:An([p,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:An([p,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?T.createElement(wo.Provider,{value:{location:vo({pathname:"/",search:"",hash:"",state:null,key:"default"},x),navigationType:Vn.Pop}},y):y}function jy(){let e=Gy(),t=Fy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,a)}const By=T.createElement(jy,null);class Wy extends T.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!==void 0?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!==void 0?T.createElement(In.Provider,{value:this.props.routeContext},T.createElement(ll.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ry(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(So);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(In.Provider,{value:t},r)}function Vy(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?Ie(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):Ie(!1)),a=a.slice(0,Math.min(a.length,u+1))}let d=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:x,errors:b}=n,g=h.route.loader&&x[h.route.id]===void 0&&(!b||b[h.route.id]===void 0);if(h.route.lazy||g){d=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,x)=>{let b,g=!1,f=null,m=null;n&&(b=l&&h.route.id?l[h.route.id]:void 0,f=h.route.errorElement||By,d&&(p<0&&x===0?(du("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===x&&(g=!0,m=h.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,x+1)),w=()=>{let S;return b?S=f:g?S=m:h.route.Component?S=T.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=u,T.createElement(Ry,{match:h,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||x===0)?T.createElement(Wy,{location:n.location,revalidation:n.revalidation,component:f,error:b,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var lu=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(lu||{}),To=(function(e){return 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",e})(To||{});function cl(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Uy(e){let t=T.useContext(So);return t||(process.env.NODE_ENV!=="production"?Ie(!1,cl(e)):Ie(!1)),t}function Hy(e){let t=T.useContext(al);return t||(process.env.NODE_ENV!=="production"?Ie(!1,cl(e)):Ie(!1)),t}function qy(e){let t=T.useContext(In);return t||(process.env.NODE_ENV!=="production"?Ie(!1,cl(e)):Ie(!1)),t}function dl(e){let t=qy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Ie(!1,e+' can only be used on routes that contain a unique "id"'):Ie(!1)),n.route.id}function Yy(){return dl(To.UseRouteId)}function Gy(){var e;let t=T.useContext(ll),n=Hy(To.UseRouteError),r=dl(To.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ky(){let{router:e}=Uy(lu.UseNavigateStable),t=dl(To.UseNavigateStable),n=T.useRef(!1);return au(()=>{n.current=!0}),T.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Rt(n.current,su),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,vo({fromRouteId:t},s)))},[e,t])}const cu={};function du(e,t,n){!t&&!cu[e]&&(cu[e]=!0,process.env.NODE_ENV!=="production"&&Rt(!1,n))}const uu={};function Xy(e,t){process.env.NODE_ENV!=="production"&&!uu[t]&&(uu[t]=!0,console.warn(t))}const pu=(e,t,n)=>Xy(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Jy(e,t){e?.v7_startTransition===void 0&&pu("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&pu("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Hn(e){process.env.NODE_ENV!=="production"?Ie(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Ie(!1)}function Qy(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Vn.Pop,navigator:s,static:a=!1,future:l}=e;Co()&&(process.env.NODE_ENV!=="production"?Ie(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Ie(!1));let d=t.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:d,navigator:s,static:a,future:vo({v7_relativeSplatPath:!1},l)}),[d,l,s,a]);typeof r=="string"&&(r=Ir(r));let{pathname:u="/",search:h="",hash:x="",state:b=null,key:g="default"}=r,f=T.useMemo(()=>{let m=Un(u,d);return m==null?null:{location:{pathname:m,search:h,hash:x,state:b,key:g},navigationType:i}},[d,u,h,x,b,g,i]);return process.env.NODE_ENV!=="production"&&Rt(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+u+h+x+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:T.createElement(Qt.Provider,{value:p},T.createElement(wo.Provider,{children:n,value:f}))}function Zy(e){let{children:t,location:n}=e;return zy(ul(t),n)}new Promise(()=>{});function ul(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let s=[...t,i];if(r.type===T.Fragment){n.push.apply(n,ul(r.props.children,s));return}r.type!==Hn&&(process.env.NODE_ENV!=="production"?Ie(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Ie(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Ie(!1,"An index route cannot have child routes."):Ie(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ul(r.props.children,s)),n.push(a)}),n}function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nr.apply(this,arguments)}function pl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const qi="get",Yi="application/x-www-form-urlencoded";function Gi(e){return e!=null&&typeof e.tagName=="string"}function eb(e){return Gi(e)&&e.tagName.toLowerCase()==="button"}function tb(e){return Gi(e)&&e.tagName.toLowerCase()==="form"}function nb(e){return Gi(e)&&e.tagName.toLowerCase()==="input"}function rb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ob(e,t){return e.button===0&&(!t||t==="_self")&&!rb(e)}function fl(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(i=>[n,i]):[[n,r]])},[]))}function ib(e,t){let n=fl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Ki=null;function sb(){if(Ki===null)try{new FormData(document.createElement("form"),0),Ki=!1}catch{Ki=!0}return Ki}const ab=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function hl(e){return e!=null&&!ab.has(e)?(process.env.NODE_ENV!=="production"&&Rt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Yi+'"')),null):e}function lb(e,t){let n,r,i,s,a;if(tb(e)){let l=e.getAttribute("action");r=l?Un(l,t):null,n=e.getAttribute("method")||qi,i=hl(e.getAttribute("enctype"))||Yi,s=new FormData(e)}else if(eb(e)||nb(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||l.getAttribute("action");if(r=d?Un(d,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||qi,i=hl(e.getAttribute("formenctype"))||hl(l.getAttribute("enctype"))||Yi,s=new FormData(l,e),!sb()){let{name:p,type:u,value:h}=e;if(u==="image"){let x=p?p+".":"";s.append(x+"x","0"),s.append(x+"y","0")}else p&&s.append(p,h)}}else{if(Gi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=qi,r=null,i=Yi,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const cb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],db=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ub=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],pb="6";try{window.__reactRouterVersion=pb}catch{}const fu=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(fu.displayName="ViewTransition");const fb=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(fb.displayName="Fetchers");const hu=T["startTransition"];function hb(e){let{basename:t,children:n,future:r,window:i}=e,s=T.useRef();s.current==null&&(s.current=ly({window:i,v5Compat:!0}));let a=s.current,[l,d]=T.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=T.useCallback(h=>{p&&hu?hu(()=>d(h)):d(h)},[d,p]);return T.useLayoutEffect(()=>a.listen(u),[a,u]),T.useEffect(()=>Jy(r),[r]),T.createElement(Qy,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const gb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",mb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gu=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:d,to:p,preventScrollReset:u,viewTransition:h}=t,x=pl(t,cb),{basename:b}=T.useContext(Qt),g,f=!1;if(typeof p=="string"&&mb.test(p)&&(g=p,gb))try{let S=new URL(window.location.href),v=p.startsWith("//")?new URL(S.protocol+p):new URL(p),C=Un(v.pathname,b);v.origin===S.origin&&C!=null?p=C+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Rt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=_y(p,{relative:i}),y=vb(p,{replace:a,state:l,target:d,preventScrollReset:u,relative:i,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||y(S)}return T.createElement("a",Nr({},x,{href:g||m,onClick:f||s?r:w,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(gu.displayName="Link");const yb=T.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:d,viewTransition:p,children:u}=t,h=pl(t,db),x=Eo(d,{relative:h.relative}),b=bt(),g=T.useContext(al),{navigator:f,basename:m}=T.useContext(Qt),y=g!=null&&Ob(x)&&p===!0,w=f.encodeLocation?f.encodeLocation(x).pathname:x.pathname,S=b.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase()),v&&m&&(v=Un(v,m)||v);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let P=S===w||!a&&S.startsWith(w)&&S.charAt(C)==="/",O=v!=null&&(v===w||!a&&v.startsWith(w)&&v.charAt(w.length)==="/"),D={isActive:P,isPending:O,isTransitioning:y},N=P?r:void 0,I;typeof s=="function"?I=s(D):I=[s,P?"active":null,O?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let F=typeof l=="function"?l(D):l;return T.createElement(gu,Nr({},h,{"aria-current":N,className:I,ref:n,style:F,to:d,viewTransition:p}),typeof u=="function"?u(D):u)});process.env.NODE_ENV!=="production"&&(yb.displayName="NavLink");const bb=T.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=qi,action:d,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:x}=e,b=pl(e,ub),g=Tb(),f=Pb(d,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",y=w=>{if(p&&p(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,v=S?.getAttribute("formmethod")||l;g(S||w.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:x})};return T.createElement("form",Nr({ref:t,method:m,action:f,onSubmit:i?p:y},b))});process.env.NODE_ENV!=="production"&&(bb.displayName="Form"),process.env.NODE_ENV;var Xi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Xi||(Xi={}));var mu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mu||(mu={}));function xb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function yu(e){let t=T.useContext(So);return t||(process.env.NODE_ENV!=="production"?Ie(!1,xb(e)):Ie(!1)),t}function vb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,d=xt(),p=bt(),u=Eo(e,{relative:a});return T.useCallback(h=>{if(ob(h,n)){h.preventDefault();let x=r!==void 0?r:xo(p)===xo(u);d(e,{replace:x,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,d,u,r,i,n,e,s,a,l])}function Sb(e){process.env.NODE_ENV!=="production"&&Rt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=T.useRef(fl(e)),n=T.useRef(!1),r=bt(),i=T.useMemo(()=>ib(r.search,n.current?null:t.current),[r.search]),s=xt(),a=T.useCallback((l,d)=>{const p=fl(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,d)},[s,i]);return[i,a]}function wb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Cb=0,Eb=()=>"__"+String(++Cb)+"__";function Tb(){let{router:e}=yu(Xi.UseSubmit),{basename:t}=T.useContext(Qt),n=Yy();return T.useCallback(function(r,i){i===void 0&&(i={}),wb();let{action:s,method:a,encType:l,formData:d,body:p}=lb(r,t);if(i.navigate===!1){let u=i.fetcherKey||Eb();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:p,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Pb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=T.useContext(Qt),i=T.useContext(In);i||(process.env.NODE_ENV!=="production"?Ie(!1,"useFormAction must be used inside a RouteContext"):Ie(!1));let[s]=i.matches.slice(-1),a=Nr({},Eo(e||".",{relative:n})),l=bt();if(e==null){a.search=l.search;let d=new URLSearchParams(a.search),p=d.getAll("index");if(p.some(h=>h==="")){d.delete("index"),p.filter(x=>x).forEach(x=>d.append("index",x));let h=d.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:An([r,a.pathname])),xo(a)}function Ob(e,t){t===void 0&&(t={});let n=T.useContext(fu);n==null&&(process.env.NODE_ENV!=="production"?Ie(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Ie(!1));let{basename:r}=yu(Xi.useViewTransitionState),i=Eo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Un(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Un(n.nextLocation.pathname,r)||n.nextLocation.pathname;return il(i.pathname,a)!=null||il(i.pathname,s)!=null}function bu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ji={exports:{}},gl={};var xu;function kb(){if(xu)return gl;xu=1;var e=L;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return gl.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(C){if(!y){if(y=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var y=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},gl}var ml={};var vu;function Ab(){return vu||(vu=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=L,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;ml.useSyncExternalStoreWithSelector=function(d,p,u,h,x){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(C){if(!y){if(y=!0,w=C,C=h(C),x!==void 0&&g.hasValue){var P=g.value;if(x(P,C))return S=P}return S=C}if(P=S,n(w,C))return P;var O=h(C);return x!==void 0&&x(P,O)?(w=C,P):(w=C,S=O)}var y=!1,w,S,v=u===void 0?null:u;return[function(){return m(p())},v===null?void 0:function(){return m(v())}]},[p,u,h,x]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ml}var Su;function Ib(){return Su||(Su=1,process.env.NODE_ENV==="production"?Ji.exports=kb():Ji.exports=Ab()),Ji.exports}var Nb=Ib();function Fb(e){e()}function Mb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Fb(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var wu={notify(){},get:()=>[]};function Db(e,t){let n,r=wu,i=0,s=!1;function a(f){u();const m=r.subscribe(f);let y=!1;return()=>{y||(y=!0,m(),h())}}function l(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(d),r=Mb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=wu)}function x(){s||(s=!0,u())}function b(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:d,isSubscribed:p,trySubscribe:x,tryUnsubscribe:b,getListeners:()=>r};return g}var _b=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$b=_b(),zb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Lb=zb(),jb=()=>$b||Lb?T.useLayoutEffect:T.useEffect,Bb=jb(),Wb=Symbol.for("react-redux-context"),Rb=typeof globalThis<"u"?globalThis:{};function Vb(){if(!T.createContext)return{};const e=Rb[Wb]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var qn=Vb();function Ub(e){const{children:t,context:n,serverState:r,store:i}=e,s=T.useMemo(()=>{const d=Db(i),p={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=T.useMemo(()=>i.getState(),[i]);Bb(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),a!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,a]);const l=n||qn;return T.createElement(l.Provider,{value:s},t)}var Hb=Ub;function yl(e=qn){return function(){const n=T.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Cu=yl();function Eu(e=qn){const t=e===qn?Cu:yl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var qb=Eu();function Yb(e=qn){const t=e===qn?qb:Eu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var $t=Yb(),Gb=(e,t)=>e===t;function Kb(e=qn){const t=e===qn?Cu:yl(e),n=(r,i={})=>{const{equalityFn:s=Gb}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:d,getServerState:p}=a,u=T.useRef(!0),h=T.useCallback({[r.name](b){const g=r(b);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:y}=a,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:y,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&u.current){const v=r(b);if(!s(g,v)){let C;try{throw new Error}catch(P){({stack:C}=P)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
4
- Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:b,selected:g,selected2:v,stack:C})}}if((w==="always"||w==="once"&&u.current)&&g===b){let v;try{throw new Error}catch(C){({stack:v}=C)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
5
- Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:v})}u.current&&(u.current=!1)}return g}}[r.name],[r]),x=Nb.useSyncExternalStoreWithSelector(d.addNestedSub,l.getState,p||l.getState,h,s);return T.useDebugValue(x),x};return Object.assign(n,{withTypes:()=>n}),n}var Le=Kb(),Po={},Tu;function Xb(){if(Tu)return Po;Tu=1,Po.__esModule=!0,Po.PersistGate=void 0;var e=t(L);function t(b){if(b&&b.__esModule)return b;var g={};if(b!=null){for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(b,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=b[f]}}return g.default=b,g}function n(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(b)}function r(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function i(b,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}function s(b,g,f){return g&&i(b.prototype,g),b}function a(b,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(b)}function l(b){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(b)}function d(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function p(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),g&&u(b,g)}function u(b,g){return u=Object.setPrototypeOf||function(m,y){return m.__proto__=y,m},u(b,g)}function h(b,g,f){return g in b?Object.defineProperty(b,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[g]=f,b}var x=(function(b){p(g,b);function g(){var f,m;r(this,g);for(var y=arguments.length,w=new Array(y),S=0;S<y;S++)w[S]=arguments[S];return m=a(this,(f=l(g)).call.apply(f,[this].concat(w))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var v=m.props.persistor,C=v.getState(),P=C.bootstrapped;P&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Po.PersistGate=x,h(x,"defaultProps",{children:null,loading:null}),Po}var Jb=Xb();function gt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Qb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pu=Qb,bl=()=>Math.random().toString(36).substring(7).split("").join("."),Zb={INIT:`@@redux/INIT${bl()}`,REPLACE:`@@redux/REPLACE${bl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${bl()}`},sr=Zb;function Oo(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function e0(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(r0(e))return"date";if(n0(e))return"error";const n=t0(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function t0(e){return typeof e.constructor=="function"?e.constructor.name:null}function n0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function r0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Yn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=e0(e)),t}function xl(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?gt(2):`Expected the root reducer to be a function. Instead, received: '${Yn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?gt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?gt(1):`Expected the enhancer to be a function. Instead, received: '${Yn(n)}'`);return n(xl)(e,t)}let r=e,i=t,s=new Map,a=s,l=0,d=!1;function p(){a===s&&(a=new Map,s.forEach((m,y)=>{a.set(y,m)}))}function u(){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(4):`Expected the listener to be a function. Instead, received: '${Yn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;p();const w=l++;return a.set(w,m),function(){if(y){if(d)throw new Error(process.env.NODE_ENV==="production"?gt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,p(),a.delete(w),s=null}}}function x(m){if(!Oo(m))throw new Error(process.env.NODE_ENV==="production"?gt(7):`Actions must be plain objects. Instead, the actual type was: '${Yn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?gt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?gt(17):`Action "type" property must be a string. Instead, the actual type was: '${Yn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?gt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=a).forEach(w=>{w()}),m}function b(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?gt(10):`Expected the nextReducer to be a function. Instead, received: '${Yn(m)}`);r=m,x({type:sr.REPLACE})}function g(){const m=h;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?gt(11):`Expected the observer to be an object. Instead, received: '${Yn(y)}'`);function w(){const v=y;v.next&&v.next(u())}return w(),{unsubscribe:m(w)}},[Pu](){return this}}}return x({type:sr.INIT}),{dispatch:x,subscribe:h,getState:u,replaceReducer:b,[Pu]:g}}function Ou(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function o0(e,t,n,r){const i=Object.keys(t),s=n&&n.type===sr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Oo(e))return`The ${s} has unexpected type of "${Yn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===sr.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function i0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:sr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:sr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?gt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${sr.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function ku(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Ou(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{i0(n)}catch(a){s=a}return function(l={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=o0(l,n,d,i);h&&Ou(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const x=r[h],b=n[x],g=l[x],f=b(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?gt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${x}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[x]=f,p=p||f!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function Qi(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function s0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?gt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(d,...p)=>s(d,...p)},l=e.map(d=>d(a));return s=Qi(...l)(i.dispatch),{...i,dispatch:s}}}function Au(e){return Oo(e)&&"type"in e&&typeof e.type=="string"}var Iu=Symbol.for("immer-nothing"),Nu=Symbol.for("immer-draftable"),Et=Symbol.for("immer-state"),a0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function zt(e,...t){if(process.env.NODE_ENV!=="production"){const n=a0[e],r=ar(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Lt=Object,Fr=Lt.getPrototypeOf,Zi="constructor",es="prototype",vl="configurable",ts="enumerable",ns="writable",ko="value",Nn=e=>!!e&&!!e[Et];function Zt(e){return e?Mu(e)||os(e)||!!e[Nu]||!!e[Zi]?.[Nu]||is(e)||ss(e):!1}var l0=Lt[es][Zi].toString(),Fu=new WeakMap;function Mu(e){if(!e||!wl(e))return!1;const t=Fr(e);if(t===null||t===Lt[es])return!0;const n=Lt.hasOwnProperty.call(t,Zi)&&t[Zi];if(n===Object)return!0;if(!ar(n))return!1;let r=Fu.get(n);return r===void 0&&(r=Function.toString.call(n),Fu.set(n,r)),r===l0}function Ao(e,t,n=!0){Io(e)===0?(n?Reflect.ownKeys(e):Lt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Io(e){const t=e[Et];return t?t.type_:os(e)?1:is(e)?2:ss(e)?3:0}var Du=(e,t,n=Io(e))=>n===2?e.has(t):Lt[es].hasOwnProperty.call(e,t),Sl=(e,t,n=Io(e))=>n===2?e.get(t):e[t],rs=(e,t,n,r=Io(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function c0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var os=Array.isArray,is=e=>e instanceof Map,ss=e=>e instanceof Set,wl=e=>typeof e=="object",ar=e=>typeof e=="function",Cl=e=>typeof e=="boolean",Fn=e=>e.copy_||e.base_,El=e=>e.modified_?e.copy_:e.base_;function Tl(e,t){if(is(e))return new Map(e);if(ss(e))return new Set(e);if(os(e))return Array[es].slice.call(e);const n=Mu(e);if(t===!0||t==="class_only"&&!n){const r=Lt.getOwnPropertyDescriptors(e);delete r[Et];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[ns]===!1&&(l[ns]=!0,l[vl]=!0),(l.get||l.set)&&(r[a]={[vl]:!0,[ns]:!0,[ts]:l[ts],[ko]:e[a]})}return Lt.create(Fr(e),r)}else{const r=Fr(e);if(r!==null&&n)return{...e};const i=Lt.create(r);return Lt.assign(i,e)}}function Pl(e,t=!1){return ls(e)||Nn(e)||!Zt(e)||(Io(e)>1&&Lt.defineProperties(e,{set:as,add:as,clear:as,delete:as}),Lt.freeze(e),t&&Ao(e,(n,r)=>{Pl(r,!0)},!1)),e}function d0(){zt(2)}var as={[ko]:d0};function ls(e){return e===null||!wl(e)?!0:Lt.isFrozen(e)}var cs="MapSet",Ol="Patches",_u={};function Mr(e){const t=_u[e];return t||zt(0,e),t}var u0=e=>!!_u[e],No,$u=()=>No,p0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:u0(cs)?Mr(cs):void 0});function zu(e,t){t&&(e.patchPlugin_=Mr(Ol),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kl(e){Al(e),e.drafts_.forEach(f0),e.drafts_=null}function Al(e){e===No&&(No=e.parent_)}var Lu=e=>No=p0(No,e);function f0(e){const t=e[Et];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ju(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Et].modified_&&(kl(t),zt(4)),Zt(e)&&(e=Bu(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Et].base_,e,t)}else e=Bu(t,n);return h0(t,e,!0),kl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Iu?e:void 0}function Bu(e,t){if(ls(t))return t;const n=t[Et];if(!n)return Il(t,e.handledSet_,e);if(!ds(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Vu(n,e)}return n.copy_}function h0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Pl(t,n)}function Wu(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ds=(e,t)=>e.scope_===t,g0=[];function Ru(e,t,n,r){const i=Fn(e),s=e.type_;if(r!==void 0&&Sl(i,r,s)===t){rs(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Ao(i,(d,p)=>{if(Nn(p)){const u=l.get(p)||[];u.push(d),l.set(p,u)}})}const a=e.draftLocations_.get(t)??g0;for(const l of a)rs(i,l,n,s)}function m0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!ds(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=El(s);Ru(e,s.draft_??s,a,n),Vu(s,i)})}function Vu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}Wu(e)}}function y0(e,t,n){const{scope_:r}=e;if(Nn(n)){const i=n[Et];ds(i,r)&&i.callbacks_.push(function(){us(e);const a=El(i);Ru(e,n,a,t)})}else Zt(n)&&e.callbacks_.push(function(){const s=Fn(e);Sl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Il(Sl(e.copy_,t,e.type_),r.handledSet_,r)})}function Il(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Nn(e)||t.has(e)||!Zt(e)||ls(e)||(t.add(e),Ao(e,(r,i)=>{if(Nn(i)){const s=i[Et];if(ds(s,n)){const a=El(s);rs(e,r,a,e.type_),Wu(s)}}else Zt(i)&&Il(i,t,n)})),e}function b0(e,t){const n=os(e),r={type_:n?1:0,scope_:t?t.scope_:$u(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=Nl;n&&(i=[r],s=Fo);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var Nl={get(e,t){if(t===Et)return e;const n=Fn(e);if(!Du(n,t,e.type_))return x0(e,n,t);const r=n[t];if(e.finalized_||!Zt(r))return r;if(r===Fl(e.base_,t)){us(e);const i=e.type_===1?+t:t,s=Dl(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Fn(e)},ownKeys(e){return Reflect.ownKeys(Fn(e))},set(e,t,n){const r=Uu(Fn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Fl(Fn(e),t),s=i?.[Et];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(c0(n,i)&&(n!==void 0||Du(e.base_,t,e.type_)))return!0;us(e),Ml(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),y0(e,t,n)),!0},deleteProperty(e,t){return us(e),Fl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ml(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Fn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ns]:!0,[vl]:e.type_!==1||t!=="length",[ts]:r[ts],[ko]:n[t]}},defineProperty(){zt(11)},getPrototypeOf(e){return Fr(e.base_)},setPrototypeOf(){zt(12)}},Fo={};Ao(Nl,(e,t)=>{Fo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Fo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&zt(13),Fo.set.call(this,e,t,void 0)},Fo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&zt(14),Nl.set.call(this,e[0],t,n,e[0])};function Fl(e,t){const n=e[Et];return(n?Fn(n):e)[t]}function x0(e,t,n){const r=Uu(t,n);return r?ko in r?r[ko]:r.get?.call(e.draft_):void 0}function Uu(e,t){if(!(t in e))return;let n=Fr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Fr(n)}}function Ml(e){e.modified_||(e.modified_=!0,e.parent_&&Ml(e.parent_))}function us(e){e.copy_||(e.assigned_=new Map,e.copy_=Tl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var v0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(ar(t)&&!ar(n)){const s=n;n=t;const a=this;return function(d=s,...p){return a.produce(d,u=>n.call(this,u,...p))}}ar(n)||zt(6),r!==void 0&&!ar(r)&&zt(7);let i;if(Zt(t)){const s=Lu(this),a=Dl(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?kl(s):Al(s)}return zu(s,r),ju(i,s)}else if(!t||!wl(t)){if(i=n(t),i===void 0&&(i=t),i===Iu&&(i=void 0),this.autoFreeze_&&Pl(i,!0),r){const s=[],a=[];Mr(Ol).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else zt(1,t)},this.produceWithPatches=(t,n)=>{if(ar(t))return(a,...l)=>this.produceWithPatches(a,d=>t(d,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},Cl(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Cl(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Cl(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Zt(e)||zt(8),Nn(e)&&(e=S0(e));const t=Lu(this),n=Dl(t,e,void 0);return n[Et].isManual_=!0,Al(t),n}finishDraft(e,t){const n=e&&e[Et];(!n||!n.isManual_)&&zt(9);const{scope_:r}=n;return zu(r,t),ju(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Mr(Ol).applyPatches_;return Nn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Dl(e,t,n,r){const[i,s]=is(t)?Mr(cs).proxyMap_(t,n):ss(t)?Mr(cs).proxySet_(t,n):b0(t,n);return(n?.scope_??$u()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?m0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=d;s.modified_&&p&&p.generatePatches_(s,[],d)}),i}function S0(e){return Nn(e)||zt(10,e),Hu(e)}function Hu(e){if(!Zt(e)||ls(e))return e;const t=e[Et];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Tl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Tl(e,!0);return Ao(n,(i,s)=>{rs(n,i,Hu(s))},r),t&&(t.finalized_=!1),n}var w0=new v0,qu=w0.produce,C0=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
3
+ `+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=vt(),y;if(t){var b;let w=typeof t=="string"?Mr(t):t;u==="/"||(b=w.pathname)!=null&&b.startsWith(u)||(process.env.NODE_ENV!=="production"?Me(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):Me(!1)),y=w}else y=h;let g=y.pathname||"/",f=g;if(u!=="/"){let w=u.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=my(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&Ht(p||m!=null,'No routes matched location "'+y.pathname+y.search+y.hash+'" '),process.env.NODE_ENV!=="production"&&Ht(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,'Matched leaf route at location "'+y.pathname+y.search+y.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let x=Gy(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},c,w.params),pathname:In([u,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:In([u,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&x?T.createElement(To.Provider,{value:{location:Co({pathname:"/",search:"",hash:"",state:null,key:"default"},y),navigationType:Rn.Pop}},x):x}function Hy(){let e=Zy(),t=zy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),l=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:s},"ErrorBoundary")," or"," ",T.createElement("code",{style:s},"errorElement")," prop on your route."))),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,l)}const Ry=T.createElement(Hy,null);class qy extends T.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!==void 0?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!==void 0?T.createElement(Nn.Provider,{value:this.props.routeContext},T.createElement(ml.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Yy(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(Eo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(Nn.Provider,{value:t},r)}function Gy(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(i=n)==null?void 0:i.errors;if(c!=null){let p=l.findIndex(h=>h.route.id&&c?.[h.route.id]!==void 0);p>=0||(process.env.NODE_ENV!=="production"?Me(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(c).join(",")):Me(!1)),l=l.slice(0,Math.min(l.length,p+1))}let d=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let p=0;p<l.length;p++){let h=l[p];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=p),h.route.id){let{loaderData:y,errors:b}=n,g=h.route.loader&&y[h.route.id]===void 0&&(!b||b[h.route.id]===void 0);if(h.route.lazy||g){d=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((p,h,y)=>{let b,g=!1,f=null,m=null;n&&(b=c&&h.route.id?c[h.route.id]:void 0,f=h.route.errorElement||Ry,d&&(u<0&&y===0?(mp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):u===y&&(g=!0,m=h.route.hydrateFallbackElement||null)));let x=t.concat(l.slice(0,y+1)),w=()=>{let S;return b?S=f:g?S=m:h.route.Component?S=T.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=p,T.createElement(Yy,{match:h,routeContext:{outlet:p,matches:x,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||y===0)?T.createElement(qy,{location:n.location,revalidation:n.revalidation,component:f,error:b,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):w()},null)}var hp=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(hp||{}),Oo=(function(e){return 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",e})(Oo||{});function yl(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Ky(e){let t=T.useContext(Eo);return t||(process.env.NODE_ENV!=="production"?Me(!1,yl(e)):Me(!1)),t}function Xy(e){let t=T.useContext(gl);return t||(process.env.NODE_ENV!=="production"?Me(!1,yl(e)):Me(!1)),t}function Jy(e){let t=T.useContext(Nn);return t||(process.env.NODE_ENV!=="production"?Me(!1,yl(e)):Me(!1)),t}function bl(e){let t=Jy(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?Me(!1,e+' can only be used on routes that contain a unique "id"'):Me(!1)),n.route.id}function Qy(){return bl(Oo.UseRouteId)}function Zy(){var e;let t=T.useContext(ml),n=Xy(Oo.UseRouteError),r=bl(Oo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function eb(){let{router:e}=Ky(hp.UseNavigateStable),t=bl(Oo.UseNavigateStable),n=T.useRef(!1);return fp(()=>{n.current=!0}),T.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&Ht(n.current,up),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Co({fromRouteId:t},s)))},[e,t])}const gp={};function mp(e,t,n){!t&&!gp[e]&&(gp[e]=!0,process.env.NODE_ENV!=="production"&&Ht(!1,n))}const yp={};function tb(e,t){process.env.NODE_ENV!=="production"&&!yp[t]&&(yp[t]=!0,console.warn(t))}const bp=(e,t,n)=>tb(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function nb(e,t){e?.v7_startTransition===void 0&&bp("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&bp("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Yn(e){process.env.NODE_ENV!=="production"?Me(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):Me(!1)}function rb(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Rn.Pop,navigator:s,static:l=!1,future:c}=e;ko()&&(process.env.NODE_ENV!=="production"?Me(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):Me(!1));let d=t.replace(/^\/*/,"/"),u=T.useMemo(()=>({basename:d,navigator:s,static:l,future:Co({v7_relativeSplatPath:!1},c)}),[d,c,s,l]);typeof r=="string"&&(r=Mr(r));let{pathname:p="/",search:h="",hash:y="",state:b=null,key:g="default"}=r,f=T.useMemo(()=>{let m=qn(p,d);return m==null?null:{location:{pathname:m,search:h,hash:y,state:b,key:g},navigationType:i}},[d,p,h,y,b,g,i]);return process.env.NODE_ENV!=="production"&&Ht(f!=null,'<Router basename="'+d+'"> is not able to match the URL '+('"'+p+h+y+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:T.createElement(Zt.Provider,{value:u},T.createElement(To.Provider,{children:n,value:f}))}function ob(e){let{children:t,location:n}=e;return Vy(xl(t),n)}new Promise(()=>{});function xl(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;let s=[...t,i];if(r.type===T.Fragment){n.push.apply(n,xl(r.props.children,s));return}r.type!==Yn&&(process.env.NODE_ENV!=="production"?Me(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):Me(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?Me(!1,"An index route cannot have child routes."):Me(!1));let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=xl(r.props.children,s)),n.push(l)}),n}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dr.apply(this,arguments)}function vl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Ji="get",Qi="application/x-www-form-urlencoded";function Zi(e){return e!=null&&typeof e.tagName=="string"}function ib(e){return Zi(e)&&e.tagName.toLowerCase()==="button"}function sb(e){return Zi(e)&&e.tagName.toLowerCase()==="form"}function ab(e){return Zi(e)&&e.tagName.toLowerCase()==="input"}function lb(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cb(e,t){return e.button===0&&(!t||t==="_self")&&!lb(e)}function Sl(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(i=>[n,i]):[[n,r]])},[]))}function db(e,t){let n=Sl(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let es=null;function pb(){if(es===null)try{new FormData(document.createElement("form"),0),es=!1}catch{es=!0}return es}const ub=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wl(e){return e!=null&&!ub.has(e)?(process.env.NODE_ENV!=="production"&&Ht(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Qi+'"')),null):e}function fb(e,t){let n,r,i,s,l;if(sb(e)){let c=e.getAttribute("action");r=c?qn(c,t):null,n=e.getAttribute("method")||Ji,i=wl(e.getAttribute("enctype"))||Qi,s=new FormData(e)}else if(ib(e)||ab(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||c.getAttribute("action");if(r=d?qn(d,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Ji,i=wl(e.getAttribute("formenctype"))||wl(c.getAttribute("enctype"))||Qi,s=new FormData(c,e),!pb()){let{name:u,type:p,value:h}=e;if(p==="image"){let y=u?u+".":"";s.append(y+"x","0"),s.append(y+"y","0")}else u&&s.append(u,h)}}else{if(Zi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ji,r=null,i=Qi,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}const hb=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],gb=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],mb=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],yb="6";try{window.__reactRouterVersion=yb}catch{}const xp=T.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(xp.displayName="ViewTransition");const bb=T.createContext(new Map);process.env.NODE_ENV!=="production"&&(bb.displayName="Fetchers");const vp=T["startTransition"];function xb(e){let{basename:t,children:n,future:r,window:i}=e,s=T.useRef();s.current==null&&(s.current=fy({window:i,v5Compat:!0}));let l=s.current,[c,d]=T.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},p=T.useCallback(h=>{u&&vp?vp(()=>d(h)):d(h)},[d,u]);return T.useLayoutEffect(()=>l.listen(p),[l,p]),T.useEffect(()=>nb(r),[r]),T.createElement(rb,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}process.env.NODE_ENV;const vb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Sb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sp=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:l,state:c,target:d,to:u,preventScrollReset:p,viewTransition:h}=t,y=vl(t,hb),{basename:b}=T.useContext(Zt),g,f=!1;if(typeof u=="string"&&Sb.test(u)&&(g=u,vb))try{let S=new URL(window.location.href),v=u.startsWith("//")?new URL(S.protocol+u):new URL(u),C=qn(v.pathname,b);v.origin===S.origin&&C!=null?u=C+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&Ht(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=jy(u,{relative:i}),x=Tb(u,{replace:l,state:c,target:d,preventScrollReset:p,relative:i,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||x(S)}return T.createElement("a",Dr({},y,{href:g||m,onClick:f||s?r:w,ref:n,target:d}))});process.env.NODE_ENV!=="production"&&(Sp.displayName="Link");const wb=T.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:l=!1,style:c,to:d,viewTransition:u,children:p}=t,h=vl(t,gb),y=Po(d,{relative:h.relative}),b=vt(),g=T.useContext(gl),{navigator:f,basename:m}=T.useContext(Zt),x=g!=null&&Fb(y)&&u===!0,w=f.encodeLocation?f.encodeLocation(y).pathname:y.pathname,S=b.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(S=S.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase()),v&&m&&(v=qn(v,m)||v);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let k=S===w||!l&&S.startsWith(w)&&S.charAt(C)==="/",A=v!=null&&(v===w||!l&&v.startsWith(w)&&v.charAt(w.length)==="/"),z={isActive:k,isPending:A,isTransitioning:x},M=k?r:void 0,$;typeof s=="function"?$=s(z):$=[s,k?"active":null,A?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let I=typeof c=="function"?c(z):c;return T.createElement(Sp,Dr({},h,{"aria-current":M,className:$,ref:n,style:I,to:d,viewTransition:u}),typeof p=="function"?p(z):p)});process.env.NODE_ENV!=="production"&&(wb.displayName="NavLink");const Cb=T.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:l,method:c=Ji,action:d,onSubmit:u,relative:p,preventScrollReset:h,viewTransition:y}=e,b=vl(e,mb),g=Ib(),f=Nb(d,{relative:p}),m=c.toLowerCase()==="get"?"get":"post",x=w=>{if(u&&u(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,v=S?.getAttribute("formmethod")||c;g(S||w.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:l,relative:p,preventScrollReset:h,viewTransition:y})};return T.createElement("form",Dr({ref:t,method:m,action:f,onSubmit:i?u:x},b))});process.env.NODE_ENV!=="production"&&(Cb.displayName="Form"),process.env.NODE_ENV;var ts;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ts||(ts={}));var wp;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wp||(wp={}));function Eb(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Cp(e){let t=T.useContext(Eo);return t||(process.env.NODE_ENV!=="production"?Me(!1,Eb(e)):Me(!1)),t}function Tb(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:l,viewTransition:c}=t===void 0?{}:t,d=St(),u=vt(),p=Po(e,{relative:l});return T.useCallback(h=>{if(cb(h,n)){h.preventDefault();let y=r!==void 0?r:wo(u)===wo(p);d(e,{replace:y,state:i,preventScrollReset:s,relative:l,viewTransition:c})}},[u,d,p,r,i,n,e,s,l,c])}function kb(e){process.env.NODE_ENV!=="production"&&Ht(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=T.useRef(Sl(e)),n=T.useRef(!1),r=vt(),i=T.useMemo(()=>db(r.search,n.current?null:t.current),[r.search]),s=St(),l=T.useCallback((c,d)=>{const u=Sl(typeof c=="function"?c(i):c);n.current=!0,s("?"+u,d)},[s,i]);return[i,l]}function Pb(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let Ob=0,Ab=()=>"__"+String(++Ob)+"__";function Ib(){let{router:e}=Cp(ts.UseSubmit),{basename:t}=T.useContext(Zt),n=Qy();return T.useCallback(function(r,i){i===void 0&&(i={}),Pb();let{action:s,method:l,encType:c,formData:d,body:u}=fb(r,t);if(i.navigate===!1){let p=i.fetcherKey||Ab();e.fetch(p,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||l,formEncType:i.encType||c,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:d,body:u,formMethod:i.method||l,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Nb(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=T.useContext(Zt),i=T.useContext(Nn);i||(process.env.NODE_ENV!=="production"?Me(!1,"useFormAction must be used inside a RouteContext"):Me(!1));let[s]=i.matches.slice(-1),l=Dr({},Po(e||".",{relative:n})),c=vt();if(e==null){l.search=c.search;let d=new URLSearchParams(l.search),u=d.getAll("index");if(u.some(h=>h==="")){d.delete("index"),u.filter(y=>y).forEach(y=>d.append("index",y));let h=d.toString();l.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:In([r,l.pathname])),wo(l)}function Fb(e,t){t===void 0&&(t={});let n=T.useContext(xp);n==null&&(process.env.NODE_ENV!=="production"?Me(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):Me(!1));let{basename:r}=Cp(ts.useViewTransitionState),i=Po(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=qn(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=qn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return fl(i.pathname,l)!=null||fl(i.pathname,s)!=null}function Ep(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ns={exports:{}},Cl={};var Tp;function Mb(){if(Tp)return Cl;Tp=1;var e=j;function t(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return Cl.useSyncExternalStoreWithSelector=function(d,u,p,h,y){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=l(function(){function m(C){if(!x){if(x=!0,w=C,C=h(C),y!==void 0&&g.hasValue){var k=g.value;if(y(k,C))return S=k}return S=C}if(k=S,n(w,C))return k;var A=h(C);return y!==void 0&&y(k,A)?(w=C,k):(w=C,S=A)}var x=!1,w,S,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},Cl}var El={};var kp;function Db(){return kp||(kp=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=j,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,l=t.useMemo,c=t.useDebugValue;El.useSyncExternalStoreWithSelector=function(d,u,p,h,y){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=l(function(){function m(C){if(!x){if(x=!0,w=C,C=h(C),y!==void 0&&g.hasValue){var k=g.value;if(y(k,C))return S=k}return S=C}if(k=S,n(w,C))return k;var A=h(C);return y!==void 0&&y(k,A)?(w=C,k):(w=C,S=A)}var x=!1,w,S,v=p===void 0?null:p;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,p,h,y]);var f=r(d,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),c(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),El}var Pp;function _b(){return Pp||(Pp=1,process.env.NODE_ENV==="production"?ns.exports=Mb():ns.exports=Db()),ns.exports}var $b=_b();function zb(e){e()}function Lb(){let e=null,t=null;return{clear(){e=null,t=null},notify(){zb(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Op={notify(){},get:()=>[]};function Bb(e,t){let n,r=Op,i=0,s=!1;function l(f){p();const m=r.subscribe(f);let x=!1;return()=>{x||(x=!0,m(),h())}}function c(){r.notify()}function d(){g.onStateChange&&g.onStateChange()}function u(){return s}function p(){i++,n||(n=e.subscribe(d),r=Lb())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Op)}function y(){s||(s=!0,p())}function b(){s&&(s=!1,h())}const g={addNestedSub:l,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:u,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>r};return g}var jb=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wb=jb(),Vb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ub=Vb(),Hb=()=>Wb||Ub?T.useLayoutEffect:T.useEffect,Rb=Hb(),qb=Symbol.for("react-redux-context"),Yb=typeof globalThis<"u"?globalThis:{};function Gb(){if(!T.createContext)return{};const e=Yb[qb]??=new Map;let t=e.get(T.createContext);return t||(t=T.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(T.createContext,t)),t}var Gn=Gb();function Kb(e){const{children:t,context:n,serverState:r,store:i}=e,s=T.useMemo(()=>{const d=Bb(i),u={store:i,subscription:d,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:p="once",stabilityCheck:h="once"}=e;return Object.assign(u,{stabilityCheck:h,identityFunctionCheck:p})}},[i,r]),l=T.useMemo(()=>i.getState(),[i]);Rb(()=>{const{subscription:d}=s;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[s,l]);const c=n||Gn;return T.createElement(c.Provider,{value:s},t)}var Xb=Kb;function Tl(e=Gn){return function(){const n=T.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Ap=Tl();function Ip(e=Gn){const t=e===Gn?Ap:Tl(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Jb=Ip();function Qb(e=Gn){const t=e===Gn?Jb:Ip(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var zt=Qb(),Zb=(e,t)=>e===t;function e0(e=Gn){const t=e===Gn?Ap:Tl(e),n=(r,i={})=>{const{equalityFn:s=Zb}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const l=t(),{store:c,subscription:d,getServerState:u}=l,p=T.useRef(!0),h=T.useCallback({[r.name](b){const g=r(b);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:x}=l,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:x,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&p.current){const v=r(b);if(!s(g,v)){let C;try{throw new Error}catch(k){({stack:C}=k)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
4
+ Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:b,selected:g,selected2:v,stack:C})}}if((w==="always"||w==="once"&&p.current)&&g===b){let v;try{throw new Error}catch(C){({stack:v}=C)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
5
+ Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:v})}p.current&&(p.current=!1)}return g}}[r.name],[r]),y=$b.useSyncExternalStoreWithSelector(d.addNestedSub,c.getState,u||c.getState,h,s);return T.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var je=e0(),Ao={},Np;function t0(){if(Np)return Ao;Np=1,Ao.__esModule=!0,Ao.PersistGate=void 0;var e=t(j);function t(b){if(b&&b.__esModule)return b;var g={};if(b!=null){for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(b,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=b[f]}}return g.default=b,g}function n(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(b)}function r(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function i(b,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}function s(b,g,f){return g&&i(b.prototype,g),b}function l(b,g){return g&&(n(g)==="object"||typeof g=="function")?g:d(b)}function c(b){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},c(b)}function d(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function u(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),g&&p(b,g)}function p(b,g){return p=Object.setPrototypeOf||function(m,x){return m.__proto__=x,m},p(b,g)}function h(b,g,f){return g in b?Object.defineProperty(b,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[g]=f,b}var y=(function(b){u(g,b);function g(){var f,m;r(this,g);for(var x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];return m=l(this,(f=c(g)).call.apply(f,[this].concat(w))),h(d(m),"state",{bootstrapped:!1}),h(d(m),"_unsubscribe",void 0),h(d(m),"handlePersistorState",function(){var v=m.props.persistor,C=v.getState(),k=C.bootstrapped;k&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return Ao.PersistGate=y,h(y,"defaultProps",{children:null,loading:null}),Ao}var n0=t0();function bt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var r0=typeof Symbol=="function"&&Symbol.observable||"@@observable",Fp=r0,kl=()=>Math.random().toString(36).substring(7).split("").join("."),o0={INIT:`@@redux/INIT${kl()}`,REPLACE:`@@redux/REPLACE${kl()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${kl()}`},ar=o0;function Io(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function i0(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(l0(e))return"date";if(a0(e))return"error";const n=s0(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function s0(e){return typeof e.constructor=="function"?e.constructor.name:null}function a0(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function l0(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Kn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=i0(e)),t}function Pl(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?bt(2):`Expected the root reducer to be a function. Instead, received: '${Kn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?bt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?bt(1):`Expected the enhancer to be a function. Instead, received: '${Kn(n)}'`);return n(Pl)(e,t)}let r=e,i=t,s=new Map,l=s,c=0,d=!1;function u(){l===s&&(l=new Map,s.forEach((m,x)=>{l.set(x,m)}))}function p(){if(d)throw new Error(process.env.NODE_ENV==="production"?bt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?bt(4):`Expected the listener to be a function. Instead, received: '${Kn(m)}'`);if(d)throw new Error(process.env.NODE_ENV==="production"?bt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let x=!0;u();const w=c++;return l.set(w,m),function(){if(x){if(d)throw new Error(process.env.NODE_ENV==="production"?bt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,u(),l.delete(w),s=null}}}function y(m){if(!Io(m))throw new Error(process.env.NODE_ENV==="production"?bt(7):`Actions must be plain objects. Instead, the actual type was: '${Kn(m)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof m.type>"u")throw new Error(process.env.NODE_ENV==="production"?bt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof m.type!="string")throw new Error(process.env.NODE_ENV==="production"?bt(17):`Action "type" property must be a string. Instead, the actual type was: '${Kn(m.type)}'. Value was: '${m.type}' (stringified)`);if(d)throw new Error(process.env.NODE_ENV==="production"?bt(9):"Reducers may not dispatch actions.");try{d=!0,i=r(i,m)}finally{d=!1}return(s=l).forEach(w=>{w()}),m}function b(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?bt(10):`Expected the nextReducer to be a function. Instead, received: '${Kn(m)}`);r=m,y({type:ar.REPLACE})}function g(){const m=h;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?bt(11):`Expected the observer to be an object. Instead, received: '${Kn(x)}'`);function w(){const v=x;v.next&&v.next(p())}return w(),{unsubscribe:m(w)}},[Fp](){return this}}}return y({type:ar.INIT}),{dispatch:y,subscribe:h,getState:p,replaceReducer:b,[Fp]:g}}function Mp(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function c0(e,t,n,r){const i=Object.keys(t),s=n&&n.type===ar.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Io(e))return`The ${s} has unexpected type of "${Kn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const l=Object.keys(e).filter(c=>!t.hasOwnProperty(c)&&!r[c]);if(l.forEach(c=>{r[c]=!0}),!(n&&n.type===ar.REPLACE)&&l.length>0)return`Unexpected ${l.length>1?"keys":"key"} "${l.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function d0(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:ar.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?bt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:ar.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?bt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${ar.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function Dp(e){const t=Object.keys(e),n={};for(let l=0;l<t.length;l++){const c=t[l];process.env.NODE_ENV!=="production"&&typeof e[c]>"u"&&Mp(`No reducer provided for key "${c}"`),typeof e[c]=="function"&&(n[c]=e[c])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{d0(n)}catch(l){s=l}return function(c={},d){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=c0(c,n,d,i);h&&Mp(h)}let u=!1;const p={};for(let h=0;h<r.length;h++){const y=r[h],b=n[y],g=c[y],f=b(g,d);if(typeof f>"u"){const m=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?bt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${y}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}p[y]=f,u=u||f!==g}return u=u||r.length!==Object.keys(c).length,u?p:c}}function rs(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function p0(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?bt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const l={getState:i.getState,dispatch:(d,...u)=>s(d,...u)},c=e.map(d=>d(l));return s=rs(...c)(i.dispatch),{...i,dispatch:s}}}function _p(e){return Io(e)&&"type"in e&&typeof e.type=="string"}var $p=Symbol.for("immer-nothing"),zp=Symbol.for("immer-draftable"),Pt=Symbol.for("immer-state"),u0=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Lt(e,...t){if(process.env.NODE_ENV!=="production"){const n=u0[e],r=lr(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Bt=Object,_r=Bt.getPrototypeOf,os="constructor",is="prototype",Ol="configurable",ss="enumerable",as="writable",No="value",Fn=e=>!!e&&!!e[Pt];function en(e){return e?Bp(e)||cs(e)||!!e[zp]||!!e[os]?.[zp]||ds(e)||ps(e):!1}var f0=Bt[is][os].toString(),Lp=new WeakMap;function Bp(e){if(!e||!Il(e))return!1;const t=_r(e);if(t===null||t===Bt[is])return!0;const n=Bt.hasOwnProperty.call(t,os)&&t[os];if(n===Object)return!0;if(!lr(n))return!1;let r=Lp.get(n);return r===void 0&&(r=Function.toString.call(n),Lp.set(n,r)),r===f0}function Fo(e,t,n=!0){Mo(e)===0?(n?Reflect.ownKeys(e):Bt.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function Mo(e){const t=e[Pt];return t?t.type_:cs(e)?1:ds(e)?2:ps(e)?3:0}var jp=(e,t,n=Mo(e))=>n===2?e.has(t):Bt[is].hasOwnProperty.call(e,t),Al=(e,t,n=Mo(e))=>n===2?e.get(t):e[t],ls=(e,t,n,r=Mo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function h0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var cs=Array.isArray,ds=e=>e instanceof Map,ps=e=>e instanceof Set,Il=e=>typeof e=="object",lr=e=>typeof e=="function",Nl=e=>typeof e=="boolean",Mn=e=>e.copy_||e.base_,Fl=e=>e.modified_?e.copy_:e.base_;function Ml(e,t){if(ds(e))return new Map(e);if(ps(e))return new Set(e);if(cs(e))return Array[is].slice.call(e);const n=Bp(e);if(t===!0||t==="class_only"&&!n){const r=Bt.getOwnPropertyDescriptors(e);delete r[Pt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const l=i[s],c=r[l];c[as]===!1&&(c[as]=!0,c[Ol]=!0),(c.get||c.set)&&(r[l]={[Ol]:!0,[as]:!0,[ss]:c[ss],[No]:e[l]})}return Bt.create(_r(e),r)}else{const r=_r(e);if(r!==null&&n)return{...e};const i=Bt.create(r);return Bt.assign(i,e)}}function Dl(e,t=!1){return fs(e)||Fn(e)||!en(e)||(Mo(e)>1&&Bt.defineProperties(e,{set:us,add:us,clear:us,delete:us}),Bt.freeze(e),t&&Fo(e,(n,r)=>{Dl(r,!0)},!1)),e}function g0(){Lt(2)}var us={[No]:g0};function fs(e){return e===null||!Il(e)?!0:Bt.isFrozen(e)}var hs="MapSet",_l="Patches",Wp={};function $r(e){const t=Wp[e];return t||Lt(0,e),t}var m0=e=>!!Wp[e],Do,Vp=()=>Do,y0=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:m0(hs)?$r(hs):void 0});function Up(e,t){t&&(e.patchPlugin_=$r(_l),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function $l(e){zl(e),e.drafts_.forEach(b0),e.drafts_=null}function zl(e){e===Do&&(Do=e.parent_)}var Hp=e=>Do=y0(Do,e);function b0(e){const t=e[Pt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Rp(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Pt].modified_&&($l(t),Lt(4)),en(e)&&(e=qp(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[Pt].base_,e,t)}else e=qp(t,n);return x0(t,e,!0),$l(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$p?e:void 0}function qp(e,t){if(fs(t))return t;const n=t[Pt];if(!n)return Ll(t,e.handledSet_,e);if(!gs(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Kp(n,e)}return n.copy_}function x0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Dl(t,n)}function Yp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gs=(e,t)=>e.scope_===t,v0=[];function Gp(e,t,n,r){const i=Mn(e),s=e.type_;if(r!==void 0&&Al(i,r,s)===t){ls(i,r,n,s);return}if(!e.draftLocations_){const c=e.draftLocations_=new Map;Fo(i,(d,u)=>{if(Fn(u)){const p=c.get(u)||[];p.push(d),c.set(u,p)}})}const l=e.draftLocations_.get(t)??v0;for(const c of l)ls(i,c,n,s)}function S0(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!gs(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const l=Fl(s);Gp(e,s.draft_??s,l,n),Kp(s,i)})}function Kp(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}Yp(e)}}function w0(e,t,n){const{scope_:r}=e;if(Fn(n)){const i=n[Pt];gs(i,r)&&i.callbacks_.push(function(){ms(e);const l=Fl(i);Gp(e,n,l,t)})}else en(n)&&e.callbacks_.push(function(){const s=Mn(e);Al(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ll(Al(e.copy_,t,e.type_),r.handledSet_,r)})}function Ll(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Fn(e)||t.has(e)||!en(e)||fs(e)||(t.add(e),Fo(e,(r,i)=>{if(Fn(i)){const s=i[Pt];if(gs(s,n)){const l=Fl(s);ls(e,r,l,e.type_),Yp(s)}}else en(i)&&Ll(i,t,n)})),e}function C0(e,t){const n=cs(e),r={type_:n?1:0,scope_:t?t.scope_:Vp(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=Bl;n&&(i=[r],s=_o);const{revoke:l,proxy:c}=Proxy.revocable(i,s);return r.draft_=c,r.revoke_=l,[c,r]}var Bl={get(e,t){if(t===Pt)return e;const n=Mn(e);if(!jp(n,t,e.type_))return E0(e,n,t);const r=n[t];if(e.finalized_||!en(r))return r;if(r===jl(e.base_,t)){ms(e);const i=e.type_===1?+t:t,s=Vl(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Mn(e)},ownKeys(e){return Reflect.ownKeys(Mn(e))},set(e,t,n){const r=Xp(Mn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=jl(Mn(e),t),s=i?.[Pt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(h0(n,i)&&(n!==void 0||jp(e.base_,t,e.type_)))return!0;ms(e),Wl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),w0(e,t,n)),!0},deleteProperty(e,t){return ms(e),jl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Wl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Mn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[as]:!0,[Ol]:e.type_!==1||t!=="length",[ss]:r[ss],[No]:n[t]}},defineProperty(){Lt(11)},getPrototypeOf(e){return _r(e.base_)},setPrototypeOf(){Lt(12)}},_o={};Fo(Bl,(e,t)=>{_o[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),_o.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Lt(13),_o.set.call(this,e,t,void 0)},_o.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Lt(14),Bl.set.call(this,e[0],t,n,e[0])};function jl(e,t){const n=e[Pt];return(n?Mn(n):e)[t]}function E0(e,t,n){const r=Xp(t,n);return r?No in r?r[No]:r.get?.call(e.draft_):void 0}function Xp(e,t){if(!(t in e))return;let n=_r(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=_r(n)}}function Wl(e){e.modified_||(e.modified_=!0,e.parent_&&Wl(e.parent_))}function ms(e){e.copy_||(e.assigned_=new Map,e.copy_=Ml(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var T0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(lr(t)&&!lr(n)){const s=n;n=t;const l=this;return function(d=s,...u){return l.produce(d,p=>n.call(this,p,...u))}}lr(n)||Lt(6),r!==void 0&&!lr(r)&&Lt(7);let i;if(en(t)){const s=Hp(this),l=Vl(s,t,void 0);let c=!0;try{i=n(l),c=!1}finally{c?$l(s):zl(s)}return Up(s,r),Rp(i,s)}else if(!t||!Il(t)){if(i=n(t),i===void 0&&(i=t),i===$p&&(i=void 0),this.autoFreeze_&&Dl(i,!0),r){const s=[],l=[];$r(_l).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:l}),r(s,l)}return i}else Lt(1,t)},this.produceWithPatches=(t,n)=>{if(lr(t))return(l,...c)=>this.produceWithPatches(l,d=>t(d,...c));let r,i;return[this.produce(t,n,(l,c)=>{r=l,i=c}),r,i]},Nl(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Nl(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Nl(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){en(e)||Lt(8),Fn(e)&&(e=k0(e));const t=Hp(this),n=Vl(t,e,void 0);return n[Pt].isManual_=!0,zl(t),n}finishDraft(e,t){const n=e&&e[Pt];(!n||!n.isManual_)&&Lt(9);const{scope_:r}=n;return Up(r,t),Rp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=$r(_l).applyPatches_;return Fn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Vl(e,t,n,r){const[i,s]=ds(t)?$r(hs).proxyMap_(t,n):ps(t)?$r(hs).proxySet_(t,n):C0(t,n);return(n?.scope_??Vp()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?S0(n,s,r):s.callbacks_.push(function(d){d.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:u}=d;s.modified_&&u&&u.generatePatches_(s,[],d)}),i}function k0(e){return Fn(e)||Lt(10,e),Jp(e)}function Jp(e){if(!en(e)||fs(e))return e;const t=e[Pt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ml(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ml(e,!0);return Fo(n,(i,s)=>{ls(n,i,Jp(s))},r),t&&(t.finalized_=!1),n}var P0=new T0,Qp=P0.produce,O0=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
6
6
  \`createSelector([state => state.todos], todos => todos)\`
7
7
  This could lead to inefficient memoization and unnecessary re-renders.
8
- Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},E0=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...i);if(!(l.apply(null,s)===l.apply(null,a))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
8
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},A0=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:l}=e,c=r(()=>({}),...i);if(!(c.apply(null,s)===c.apply(null,l))){let u;try{throw new Error}catch(p){({stack:u}=p)}console.warn(`An input selector returned a different result when passed same arguments.
9
9
  This means your output selector will likely run more frequently than intended.
10
10
  Avoid returning a new reference inside your input selector, e.g.
11
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},T0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function P0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function O0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function k0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Yu=e=>Array.isArray(e)?e:[e];function A0(e){const t=Array.isArray(e[0])?e[0]:e;return k0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Gu(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var I0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...T0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:C0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:E0}}},N0=class{constructor(e){this.value=e}deref(){return this.value}},F0=typeof WeakRef<"u"?WeakRef:N0,M0=0,Ku=1;function ps(){return{s:M0,v:void 0,o:null,p:null}}function Xu(e,t={}){let n=ps();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let l=n;const{length:d}=arguments;for(let h=0,x=d;h<x;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(b);f===void 0?(l=ps(),g.set(b,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(b);f===void 0?(l=ps(),g.set(b,l)):l=f}}const p=l;let u;if(l.s===Ku)u=l.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new F0(u):u}return p.s=Ku,p.v=u,u}return a.clearCache=()=>{n=ps(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function D0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,l,d={},p=i.pop();typeof p=="object"&&(d=p,p=i.pop()),P0(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...d},{memoize:h,memoizeOptions:x=[],argsMemoize:b=Xu,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,m=Yu(x),y=Yu(g),w=A0(i),S=h(function(){return s++,p.apply(null,arguments)},...m);let v=!0;const C=b(function(){a++;const O=Gu(w,arguments);if(l=S.apply(null,O),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:D,inputStabilityCheck:N}=I0(v,f);if(D.shouldRun&&D.run(p,O,l),N.shouldRun){const I=Gu(w,arguments);N.run({inputSelectorResults:O,inputSelectorResultsCopy:I},{memoize:h,memoizeOptions:m},arguments)}v&&(v=!1)}return l},...y);return Object.assign(C,{resultFunc:p,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var _0=D0(Xu),$0=Object.assign((e,t=_0)=>{O0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,l,d)=>(a[n[d]]=l,a),{}))},{withTypes:()=>$0});function Ju(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var z0=Ju(),L0=Ju,j0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qi:Qi.apply(null,arguments)},Qu=e=>e&&typeof e.match=="function";function Mo(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>Au(r)&&r.type===e,n}function B0(e){return typeof e=="function"&&"type"in e&&Qu(e)}function W0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
- Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function R0(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=B0}=e;return()=>n=>r=>(t(r)&&console.warn(W0(r.type)),n(r))}function Zu(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
11
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:l,stack:u})}},I0={inputStabilityCheck:"once",identityFunctionCheck:"once"};function N0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function F0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function M0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Zp=e=>Array.isArray(e)?e:[e];function D0(e){const t=Array.isArray(e[0])?e[0]:e;return M0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function eu(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var _0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...I0,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:O0},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:A0}}},$0=class{constructor(e){this.value=e}deref(){return this.value}},z0=typeof WeakRef<"u"?WeakRef:$0,L0=0,tu=1;function ys(){return{s:L0,v:void 0,o:null,p:null}}function nu(e,t={}){let n=ys();const{resultEqualityCheck:r}=t;let i,s=0;function l(){let c=n;const{length:d}=arguments;for(let h=0,y=d;h<y;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let g=c.o;g===null&&(c.o=g=new WeakMap);const f=g.get(b);f===void 0?(c=ys(),g.set(b,c)):c=f}else{let g=c.p;g===null&&(c.p=g=new Map);const f=g.get(b);f===void 0?(c=ys(),g.set(b,c)):c=f}}const u=c;let p;if(c.s===tu)p=c.v;else if(p=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,p)&&(p=h,s!==0&&s--),i=typeof p=="object"&&p!==null||typeof p=="function"?new z0(p):p}return u.s=tu,u.v=p,p}return l.clearCache=()=>{n=ys(),l.resetResultsCount()},l.resultsCount=()=>s,l.resetResultsCount=()=>{s=0},l}function B0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,l=0,c,d={},u=i.pop();typeof u=="object"&&(d=u,u=i.pop()),N0(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const p={...n,...d},{memoize:h,memoizeOptions:y=[],argsMemoize:b=nu,argsMemoizeOptions:g=[],devModeChecks:f={}}=p,m=Zp(y),x=Zp(g),w=D0(i),S=h(function(){return s++,u.apply(null,arguments)},...m);let v=!0;const C=b(function(){l++;const A=eu(w,arguments);if(c=S.apply(null,A),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:z,inputStabilityCheck:M}=_0(v,f);if(z.shouldRun&&z.run(u,A,c),M.shouldRun){const $=eu(w,arguments);M.run({inputSelectorResults:A,inputSelectorResultsCopy:$},{memoize:h,memoizeOptions:m},arguments)}v&&(v=!1)}return c},...x);return Object.assign(C,{resultFunc:u,memoizedResultFunc:S,dependencies:w,dependencyRecomputations:()=>l,resetDependencyRecomputations:()=>{l=0},lastResult:()=>c,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var j0=B0(nu),W0=Object.assign((e,t=j0)=>{F0(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((l,c,d)=>(l[n[d]]=c,l),{}))},{withTypes:()=>W0});function ru(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var V0=ru(),U0=ru,H0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?rs:rs.apply(null,arguments)},ou=e=>e&&typeof e.match=="function";function $o(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Xe(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>_p(r)&&r.type===e,n}function R0(e){return typeof e=="function"&&"type"in e&&ou(e)}function q0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
12
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function Y0(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=R0}=e;return()=>n=>r=>(t(r)&&console.warn(q0(r.type)),n(r))}function iu(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
13
13
  If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
14
- It is disabled in production builds, so you don't need to worry about that.`)}}}var ep=class Hi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Hi.prototype)}static get[Symbol.species](){return Hi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Hi(...t[0].concat(this)):new Hi(...t.concat(this))}};function tp(e){return Zt(e)?qu(e,()=>{}):e}function fs(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function V0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function U0(e,t,n){const r=np(e,t,n);return{detectMutations(){return rp(e,t,r,n)}}}function np(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const a=t.length>0;for(const l in n){const d=r?r+"."+l:l;a&&t.some(u=>u instanceof RegExp?u.test(d):d===u)||(s.children[l]=np(e,t,n[l],d))}}return s}function rp(e,t=[],n,r,i=!1,s=""){const a=n?n.value:void 0,l=a===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(a)||e(r))return{wasMutated:!1};const d={};for(let u in n.children)d[u]=!0;for(let u in r)d[u]=!0;const p=t.length>0;for(let u in d){const h=s?s+"."+u:u;if(p&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const x=rp(e,t,n.children[u],r[u],l,h);if(x.wasMutated)return x}return{wasMutated:!1}}function H0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,d,p,u){return JSON.stringify(l,n(d,u),p)},n=function(l,d){let p=[],u=[];return d||(d=function(h,x){return p[0]===x?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(x)).join(".")+"]"}),function(h,x){if(p.length>0){var b=p.indexOf(this);~b?p.splice(b+1):p.push(this),~b?u.splice(b,1/0,h):u.push(h),~p.indexOf(x)&&(x=d.call(this,h,x))}else p.push(x);return l==null?x:l.call(this,h,x)}},{isImmutable:r=V0,ignoredPaths:i,warnAfter:s=32}=e;const a=U0.bind(null,r,i);return({getState:l})=>{let d=l(),p=a(d),u;return h=>x=>{const b=Zu(s,"ImmutableStateInvariantMiddleware");b.measureTime(()=>{if(d=l(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(x);return b.measureTime(()=>{if(d=l(),u=p.detectMutations(),p=a(d),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ge(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(x)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),b.warnIfExceeded(),g}}}}function op(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Oo(e)}function _l(e,t="",n=op,r,i=[],s){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const l=r!=null?r(e):Object.entries(e),d=i.length>0;for(const[p,u]of l){const h=t?t+"."+p:p;if(!(d&&i.some(b=>b instanceof RegExp?b.test(h):h===b))){if(!n(u))return{keyPath:h,value:u};if(typeof u=="object"&&(a=_l(u,h,n,r,i,s),a))return a}}return s&&ip(e)&&s.add(e),!1}function ip(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!ip(t))return!1;return!0}function q0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=op,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:d=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>x=>b=>{if(!Au(b))return x(b);const g=x(b),f=Zu(a,"SerializableStateInvariantMiddleware");return!d&&!(r.length&&r.indexOf(b.type)!==-1)&&f.measureTime(()=>{const m=_l(b,"",t,n,i,u);if(m){const{keyPath:y,value:w}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,w,`
14
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var su=class Xi extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Xi.prototype)}static get[Symbol.species](){return Xi}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Xi(...t[0].concat(this)):new Xi(...t.concat(this))}};function au(e){return en(e)?Qp(e,()=>{}):e}function bs(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function G0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function K0(e,t,n){const r=lu(e,t,n);return{detectMutations(){return cu(e,t,r,n)}}}function lu(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const l=t.length>0;for(const c in n){const d=r?r+"."+c:c;l&&t.some(p=>p instanceof RegExp?p.test(d):d===p)||(s.children[c]=lu(e,t,n[c],d))}}return s}function cu(e,t=[],n,r,i=!1,s=""){const l=n?n.value:void 0,c=l===r;if(i&&!c&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(l)||e(r))return{wasMutated:!1};const d={};for(let p in n.children)d[p]=!0;for(let p in r)d[p]=!0;const u=t.length>0;for(let p in d){const h=s?s+"."+p:p;if(u&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const y=cu(e,t,n.children[p],r[p],c,h);if(y.wasMutated)return y}return{wasMutated:!1}}function X0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(c,d,u,p){return JSON.stringify(c,n(d,p),u)},n=function(c,d){let u=[],p=[];return d||(d=function(h,y){return u[0]===y?"[Circular ~]":"[Circular ~."+p.slice(0,u.indexOf(y)).join(".")+"]"}),function(h,y){if(u.length>0){var b=u.indexOf(this);~b?u.splice(b+1):u.push(this),~b?p.splice(b,1/0,h):p.push(h),~u.indexOf(y)&&(y=d.call(this,h,y))}else u.push(y);return c==null?y:c.call(this,h,y)}},{isImmutable:r=G0,ignoredPaths:i,warnAfter:s=32}=e;const l=K0.bind(null,r,i);return({getState:c})=>{let d=c(),u=l(d),p;return h=>y=>{const b=iu(s,"ImmutableStateInvariantMiddleware");b.measureTime(()=>{if(d=c(),p=u.detectMutations(),u=l(d),p.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Xe(19):`A state mutation was detected between dispatches, in the path '${p.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(y);return b.measureTime(()=>{if(d=c(),p=u.detectMutations(),u=l(d),p.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Xe(20):`A state mutation was detected inside a dispatch, in the path: ${p.path||""}. Take a look at the reducer(s) handling the action ${t(y)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),b.warnIfExceeded(),g}}}}function du(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Io(e)}function Ul(e,t="",n=du,r,i=[],s){let l;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const c=r!=null?r(e):Object.entries(e),d=i.length>0;for(const[u,p]of c){const h=t?t+"."+u:u;if(!(d&&i.some(b=>b instanceof RegExp?b.test(h):h===b))){if(!n(p))return{keyPath:h,value:p};if(typeof p=="object"&&(l=Ul(p,h,n,r,i,s),l))return l}}return s&&pu(e)&&s.add(e),!1}function pu(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!pu(t))return!1;return!0}function J0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=du,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:l=32,ignoreState:c=!1,ignoreActions:d=!1,disableCache:u=!1}=e,p=!u&&WeakSet?new WeakSet:void 0;return h=>y=>b=>{if(!_p(b))return y(b);const g=y(b),f=iu(l,"SerializableStateInvariantMiddleware");return!d&&!(r.length&&r.indexOf(b.type)!==-1)&&f.measureTime(()=>{const m=Ul(b,"",t,n,i,p);if(m){const{keyPath:x,value:w}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${x}\`. Value:`,w,`
15
15
  Take a look at the logic that dispatched this action: `,b,`
16
16
  (See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
17
- (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(f.measureTime(()=>{const m=h.getState(),y=_l(m,"",t,n,s,u);if(y){const{keyPath:w,value:S}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,S,`
17
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),c||(f.measureTime(()=>{const m=h.getState(),x=Ul(m,"",t,n,s,p);if(x){const{keyPath:w,value:S}=x;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,S,`
18
18
  Take a look at the reducer(s) handling this action type: ${b.type}.
19
- (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function hs(e){return typeof e=="boolean"}var Y0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new ep;if(n&&(hs(n)?a.push(z0):a.push(L0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};hs(r)||(l=r),a.unshift(H0(l))}if(i){let l={};hs(i)||(l=i),a.push(q0(l))}if(s){let l={};hs(s)||(l=s),a.unshift(R0(l))}}return a},G0="RTK_autoBatch",sp=e=>t=>{setTimeout(t,e)},K0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const l=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10):e.type==="callback"?e.queueNotification:sp(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),x=r.subscribe(h);return l.add(u),()=>{x(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[G0],s=!i,s&&(a||(a=!0,d(p))),r.dispatch(u)}finally{i=!0}}})},X0=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new ep(e);return r&&i.push(K0(typeof r=="object"?r:void 0)),i};function J0(e){const t=Y0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Oo(n))d=ku(n);else throw new Error(process.env.NODE_ENV==="production"?Ge(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Ge(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Ge(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=Qi;i&&(u=j0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=s0(...p),x=X0(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Ge(5):"`enhancers` field must be a callback");let b=typeof l=="function"?l(x):x();if(process.env.NODE_ENV!=="production"&&!Array.isArray(b))throw new Error(process.env.NODE_ENV==="production"?Ge(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&b.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ge(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!b.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...b);return xl(d,a,g)}function ap(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ge(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ge(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof s=="string"?s:s.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ge(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ge(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ge(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function Q0(e){return typeof e=="function"}function Z0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=ap(t),s;if(Q0(e))s=()=>tp(e());else{const l=tp(e);s=()=>l}function a(l=s(),d){let p=[n[d.type],...r.filter(({matcher:u})=>u(d)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(Nn(u)){const b=h(u,d);return b===void 0?u:b}else{if(Zt(u))return qu(u,x=>h(x,d));{const x=h(u,d);if(x===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return x}}return u},l)}return a.getInitialState=s,a}var ex=(e,t)=>Qu(e)?e.match(t):e(t);function tx(...e){return t=>e.some(n=>ex(n,t))}var nx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rx=(e=21)=>{let t="",n=e;for(;n--;)t+=nx[Math.random()*64|0];return t},ox=["name","message","stack","code"],$l=class{constructor(e,t){this.payload=e,this.meta=t}_type},lp=class{constructor(e,t){this.payload=e,this.meta=t}_type},ix=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of ox)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},cp="External signal was aborted",ht=(()=>{function e(t,n,r){const i=Mo(t+"/fulfilled",(d,p,u,h)=>({payload:d,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=Mo(t+"/pending",(d,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:d,requestStatus:"pending"}})),a=Mo(t+"/rejected",(d,p,u,h,x)=>({payload:h,error:(r&&r.serializeError||ix)(d||"Rejected"),meta:{...x||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function l(d,{signal:p}={}){return(u,h,x)=>{const b=r?.idGenerator?r.idGenerator(d):rx(),g=new AbortController;let f,m;function y(S){m=S,g.abort()}p&&(p.aborted?y(cp):p.addEventListener("abort",()=>y(cp),{once:!0}));const w=(async function(){let S;try{let C=r?.condition?.(d,{getState:h,extra:x});if(ax(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((O,D)=>{f=()=>{D({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(b,d,r?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:x}))),S=await Promise.race([P,Promise.resolve(n(d,{dispatch:u,getState:h,extra:x,requestId:b,signal:g.signal,abort:y,rejectWithValue:(O,D)=>new $l(O,D),fulfillWithValue:(O,D)=>new lp(O,D)})).then(O=>{if(O instanceof $l)throw O;return O instanceof lp?i(O.payload,b,d,O.meta):i(O,b,d)})])}catch(C){S=C instanceof $l?a(null,b,d,C.payload,C.meta):a(C,b,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S})();return Object.assign(w,{abort:y,requestId:b,arg:d,unwrap(){return w.then(sx)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:tx(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function sx(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ax(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var lx=Symbol.for("rtk-slice-createasyncthunk");function cx(e,t){return`${e}/${t}`}function dx({creators:e}={}){const t=e?.asyncThunk?.[lx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(px()):r.reducers)||{},l=Object.keys(a),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(S,v){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Ge(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ge(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=v,p},addMatcher(S,v){return d.sliceMatchers.push({matcher:S,reducer:v}),p},exposeAction(S,v){return d.actionCreators[S]=v,p},exposeCaseReducer(S,v){return d.sliceCaseReducersByName[S]=v,p}};l.forEach(S=>{const v=a[S],C={reducerName:S,type:cx(i,S),createNotation:typeof r.reducers=="function"};hx(v)?mx(C,v,p,t):fx(C,v,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ge(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},v=[],C=void 0]=typeof r.extraReducers=="function"?ap(r.extraReducers):[r.extraReducers],P={...S,...d.sliceCaseReducersByType};return Z0(r.initialState,O=>{for(let D in P)O.addCase(D,P[D]);for(let D of d.sliceMatchers)O.addMatcher(D.matcher,D.reducer);for(let D of v)O.addMatcher(D.matcher,D.reducer);C&&O.addDefaultCase(C)})}const h=S=>S,x=new Map,b=new WeakMap;let g;function f(S,v){return g||(g=u()),g(S,v)}function m(){return g||(g=u()),g.getInitialState()}function y(S,v=!1){function C(O){let D=O[S];if(typeof D>"u"){if(v)D=fs(b,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(15):"selectSlice returned undefined for an uninjected slice reducer")}return D}function P(O=h){const D=fs(x,v,()=>new WeakMap);return fs(D,O,()=>{const N={};for(const[I,F]of Object.entries(r.selectors??{}))N[I]=ux(F,O,()=>fs(b,O,m),v);return N})}return{reducerPath:S,getSelectors:P,get selectors(){return P(C)},selectSlice:C}}const w={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...y(s),injectInto(S,{reducerPath:v,...C}={}){const P=v??s;return S.inject({reducerPath:P,reducer:f},C),{...w,...y(P,!0)}}};return w}}function ux(e,t,n,r){function i(s,...a){let l=t(s);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ge(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var dp=dx();function px(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function fx({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!gx(r))throw new Error(process.env.NODE_ENV==="production"?Ge(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?Mo(e,a):Mo(e))}function hx(e){return e._reducerDefinitionType==="asyncThunk"}function gx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function mx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ge(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:l,rejected:d,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),d&&r.addCase(h.rejected,d),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||gs,pending:l||gs,rejected:d||gs,settled:p||gs})}function gs(){}function Ge(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zl="persist:",up="persist/FLUSH",Ll="persist/REHYDRATE",pp="persist/PAUSE",fp="persist/PERSIST",hp="persist/PURGE",gp="persist/REGISTER",yx=-1;function Do(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Do=function(n){return typeof n}:Do=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Do(e)}function mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mp(n,!0).forEach(function(r){xx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vx(e,t,n,r){var i=r.debug,s=bx({},n);return e&&Do(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&Do(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Sx(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:zl).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(C){return C}:typeof e.serialize=="function"?l=e.serialize:l=wx;var d=e.writeFailHandler||null,p={},u={},h=[],x=null,b=null,g=function(C){Object.keys(C).forEach(function(P){y(P)&&p[P]!==C[P]&&h.indexOf(P)===-1&&h.push(P)}),Object.keys(p).forEach(function(P){C[P]===void 0&&y(P)&&h.indexOf(P)===-1&&p[P]!==void 0&&h.push(P)}),x===null&&(x=setInterval(f,i)),p=C};function f(){if(h.length===0){x&&clearInterval(x),x=null;return}var v=h.shift(),C=r.reduce(function(P,O){return O.in(P,v,p)},p[v]);if(C!==void 0)try{u[v]=l(C)}catch(P){console.error("redux-persist/createPersistoid: error serializing state",P)}else delete u[v];h.length===0&&m()}function m(){Object.keys(u).forEach(function(v){p[v]===void 0&&delete u[v]}),b=a.setItem(s,l(u)).catch(w)}function y(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function w(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var S=function(){for(;h.length!==0;)f();return b||Promise.resolve()};return{update:g,flush:S}}function wx(e){return JSON.stringify(e)}function Cx(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:zl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(l){return l}:typeof e.deserialize=="function"?s=e.deserialize:s=Ex,r.getItem(n).then(function(a){if(a)try{var l={},d=s(a);return Object.keys(d).forEach(function(p){l[p]=t.reduceRight(function(u,h){return h.out(u,p,d)},s(d[p]))}),l}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function Ex(e){return JSON.parse(e)}function Tx(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:zl).concat(e.key);return t.removeItem(n,Px)}function Px(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yp(n,!0).forEach(function(r){Ox(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ox(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kx(e,t){if(e==null)return{};var n=Ax(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ax(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ix=5e3;function Nx(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:yx;e.debug;var r=e.stateReconciler===void 0?vx:e.stateReconciler,i=e.getStoredState||Cx,s=e.timeout!==void 0?e.timeout:Ix,a=null,l=!1,d=!0,p=function(h){return h._persist.rehydrated&&a&&!d&&a.update(h),h};return function(u,h){var x=u||{},b=x._persist,g=kx(x,["_persist"]),f=g;if(h.type===fp){var m=!1,y=function(D,N){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),D,N),m||(h.rehydrate(e.key,D,N),m=!0)};if(s&&setTimeout(function(){!m&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,a||(a=Sx(e)),b)return Mn({},t(f,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(O){var D=e.migrate||function(N,I){return Promise.resolve(N)};D(O,n).then(function(N){y(N)},function(N){process.env.NODE_ENV!=="production"&&N&&console.error("redux-persist: migration error",N),y(void 0,N)})},function(O){y(void 0,O)}),Mn({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===hp)return l=!0,h.result(Tx(e)),Mn({},t(f,h),{_persist:b});if(h.type===up)return h.result(a&&a.flush()),Mn({},t(f,h),{_persist:b});if(h.type===pp)d=!0;else if(h.type===Ll){if(l)return Mn({},f,{_persist:Mn({},b,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),S=h.payload,v=r!==!1&&S!==void 0?r(S,u,w,e):w,C=Mn({},v,{_persist:Mn({},b,{rehydrated:!0})});return p(C)}}}if(!b)return t(u,h);var P=t(f,h);return P===f?u:p(Mn({},P,{_persist:b}))}}function bp(e){return Dx(e)||Mx(e)||Fx()}function Fx(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Mx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Dx(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function xp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xp(n,!0).forEach(function(r){_x(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vp={registry:[],bootstrapped:!1},$x=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vp,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case gp:return jl({},t,{registry:[].concat(bp(t.registry),[n.key])});case Ll:var r=t.registry.indexOf(n.key),i=bp(t.registry);return i.splice(r,1),jl({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function zx(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=xl($x,vp,void 0),a=function(u){s.dispatch({type:gp,key:u})},l=function(u,h,x){var b={type:Ll,payload:h,err:x,key:u};e.dispatch(b),s.dispatch(b)},d=jl({},s,{purge:function(){var u=[];return e.dispatch({type:hp,result:function(x){u.push(x)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:up,result:function(x){u.push(x)}}),Promise.all(u)},pause:function(){e.dispatch({type:pp})},persist:function(){e.dispatch({type:fp,register:a,rehydrate:l})}});return d.persist(),d}function Sp(e,t){return function(){return e.apply(t,arguments)}}const{toString:Lx}=Object.prototype,{getPrototypeOf:Bl}=Object,{iterator:ms,toStringTag:wp}=Symbol,ys=(e=>t=>{const n=Lx.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),en=e=>(e=e.toLowerCase(),t=>ys(t)===e),bs=e=>t=>typeof t===e,{isArray:Dr}=Array,_r=bs("undefined");function _o(e){return e!==null&&!_r(e)&&e.constructor!==null&&!_r(e.constructor)&&It(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Cp=en("ArrayBuffer");function jx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Cp(e.buffer),t}const Bx=bs("string"),It=bs("function"),Ep=bs("number"),$o=e=>e!==null&&typeof e=="object",Wx=e=>e===!0||e===!1,xs=e=>{if(ys(e)!=="object")return!1;const t=Bl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(wp in e)&&!(ms in e)},Rx=e=>{if(!$o(e)||_o(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Vx=en("Date"),Ux=en("File"),Hx=en("Blob"),qx=en("FileList"),Yx=e=>$o(e)&&It(e.pipe),Gx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||It(e.append)&&((t=ys(e))==="formdata"||t==="object"&&It(e.toString)&&e.toString()==="[object FormData]"))},Kx=en("URLSearchParams"),[Xx,Jx,Qx,Zx]=["ReadableStream","Request","Response","Headers"].map(en),ev=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Dr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(_o(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function Tp(e,t){if(_o(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pp=e=>!_r(e)&&e!==lr;function Wl(){const{caseless:e,skipUndefined:t}=Pp(this)&&this||{},n={},r=(i,s)=>{const a=e&&Tp(n,s)||s;xs(n[a])&&xs(i)?n[a]=Wl(n[a],i):xs(i)?n[a]=Wl({},i):Dr(i)?n[a]=i.slice():(!t||!_r(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&zo(arguments[i],r);return n}const tv=(e,t,n,{allOwnKeys:r}={})=>(zo(t,(i,s)=>{n&&It(i)?e[s]=Sp(i,n):e[s]=i},{allOwnKeys:r}),e),nv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ov=(e,t,n,r)=>{let i,s,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Bl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sv=e=>{if(!e)return null;if(Dr(e))return e;let t=e.length;if(!Ep(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},av=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bl(Uint8Array)),lv=(e,t)=>{const r=(e&&e[ms]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},cv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},dv=en("HTMLFormElement"),uv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Op=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pv=en("RegExp"),kp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};zo(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},fv=e=>{kp(e,(t,n)=>{if(It(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(It(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},hv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Dr(e)?r(e):r(String(e).split(t)),n},gv=()=>{},mv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yv(e){return!!(e&&It(e.append)&&e[wp]==="FormData"&&e[ms])}const bv=e=>{const t=new Array(10),n=(r,i)=>{if($o(r)){if(t.indexOf(r)>=0)return;if(_o(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Dr(r)?[]:{};return zo(r,(a,l)=>{const d=n(a,i+1);!_r(d)&&(s[l]=d)}),t[i]=void 0,s}}return r};return n(e,0)},xv=en("AsyncFunction"),vv=e=>e&&($o(e)||It(e))&&It(e.then)&&It(e.catch),Ap=((e,t)=>e?setImmediate:t?((n,r)=>(lr.addEventListener("message",({source:i,data:s})=>{i===lr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),lr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",It(lr.postMessage)),Sv=typeof queueMicrotask<"u"?queueMicrotask.bind(lr):typeof process<"u"&&process.nextTick||Ap,H={isArray:Dr,isArrayBuffer:Cp,isBuffer:_o,isFormData:Gx,isArrayBufferView:jx,isString:Bx,isNumber:Ep,isBoolean:Wx,isObject:$o,isPlainObject:xs,isEmptyObject:Rx,isReadableStream:Xx,isRequest:Jx,isResponse:Qx,isHeaders:Zx,isUndefined:_r,isDate:Vx,isFile:Ux,isBlob:Hx,isRegExp:pv,isFunction:It,isStream:Yx,isURLSearchParams:Kx,isTypedArray:av,isFileList:qx,forEach:zo,merge:Wl,extend:tv,trim:ev,stripBOM:nv,inherits:rv,toFlatObject:ov,kindOf:ys,kindOfTest:en,endsWith:iv,toArray:sv,forEachEntry:lv,matchAll:cv,isHTMLForm:dv,hasOwnProperty:Op,hasOwnProp:Op,reduceDescriptors:kp,freezeMethods:fv,toObjectSet:hv,toCamelCase:uv,noop:gv,toFiniteNumber:mv,findKey:Tp,global:lr,isContextDefined:Pp,isSpecCompliantForm:yv,toJSONObject:bv,isAsyncFn:xv,isThenable:vv,setImmediate:Ap,asap:Sv,isIterable:e=>e!=null&&It(e[ms])};function Oe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}H.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const Ip=Oe.prototype,Np={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Np[e]={value:e}}),Object.defineProperties(Oe,Np),Object.defineProperty(Ip,"isAxiosError",{value:!0}),Oe.from=(e,t,n,r,i,s)=>{const a=Object.create(Ip);H.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const l=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Oe.call(a,l,d,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const wv=null;function Rl(e){return H.isPlainObject(e)||H.isArray(e)}function Fp(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Mp(e,t,n){return e?e.concat(t).map(function(i,s){return i=Fp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Cv(e){return H.isArray(e)&&!e.some(Rl)}const Ev=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function vs(e,t,n){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=H.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!H.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(H.isDate(g))return g.toISOString();if(H.isBoolean(g))return g.toString();if(!d&&H.isBlob(g))throw new Oe("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(g)||H.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,m){let y=g;if(g&&!m&&typeof g=="object"){if(H.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(H.isArray(g)&&Cv(g)||(H.isFileList(g)||H.endsWith(f,"[]"))&&(y=H.toArray(g)))return f=Fp(f),y.forEach(function(S,v){!(H.isUndefined(S)||S===null)&&t.append(a===!0?Mp([f],v,s):a===null?f:f+"[]",p(S))}),!1}return Rl(g)?!0:(t.append(Mp(m,f,s),p(g)),!1)}const h=[],x=Object.assign(Ev,{defaultVisitor:u,convertValue:p,isVisitable:Rl});function b(g,f){if(!H.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),H.forEach(g,function(y,w){(!(H.isUndefined(y)||y===null)&&i.call(t,y,H.isString(w)?w.trim():w,f,x))===!0&&b(y,f?f.concat(w):[w])}),h.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Dp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Vl(e,t){this._pairs=[],e&&vs(e,this,t)}const _p=Vl.prototype;_p.append=function(t,n){this._pairs.push([t,n])},_p.toString=function(t){const n=t?function(r){return t.call(this,r,Dp)}:Dp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Tv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $p(e,t,n){if(!t)return e;const r=n&&n.encode||Tv;H.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=H.isURLSearchParams(t)?t.toString():new Vl(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class zp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Lp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Vl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ul=typeof window<"u"&&typeof document<"u",Hl=typeof navigator=="object"&&navigator||void 0,Ov=Ul&&(!Hl||["ReactNative","NativeScript","NS"].indexOf(Hl.product)<0),kv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Av=Ul&&window.location.href||"http://localhost",vt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ul,hasStandardBrowserEnv:Ov,hasStandardBrowserWebWorkerEnv:kv,navigator:Hl,origin:Av},Symbol.toStringTag,{value:"Module"})),...Pv};function Iv(e,t){return vs(e,new vt.classes.URLSearchParams,{visitor:function(n,r,i,s){return vt.isNode&&H.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Nv(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fv(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function jp(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),d=s>=n.length;return a=!a&&H.isArray(i)?i.length:a,d?(H.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!H.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&H.isArray(i[a])&&(i[a]=Fv(i[a])),!l)}if(H.isFormData(e)&&H.isFunction(e.entries)){const n={};return H.forEachEntry(e,(r,i)=>{t(Nv(r),i,n,0)}),n}return null}function Mv(e,t,n){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Lo={transitional:Lp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=H.isObject(t);if(s&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return i?JSON.stringify(jp(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Iv(t,this.formSerializer).toString();if((l=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return vs(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Mv(t)):t}],transformResponse:[function(t){const n=this.transitional||Lo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Oe.from(l,Oe.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vt.classes.FormData,Blob:vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{Lo.headers[e]={}});const Dv=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),_v=e=>{const t={};let n,r,i;return e&&e.split(`
20
- `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Dv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bp=Symbol("internals");function jo(e){return e&&String(e).trim().toLowerCase()}function Ss(e){return e===!1||e==null?e:H.isArray(e)?e.map(Ss):String(e)}function $v(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const zv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ql(e,t,n,r,i){if(H.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function Lv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jv(e,t){const n=H.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,a){return this[r].call(this,t,i,s,a)},configurable:!0})})}let Nt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,d,p){const u=jo(d);if(!u)throw new Error("header name must be a non-empty string");const h=H.findKey(i,u);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||d]=Ss(l))}const a=(l,d)=>H.forEach(l,(p,u)=>s(p,u,d));if(H.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(H.isString(t)&&(t=t.trim())&&!zv(t))a(_v(t),n);else if(H.isObject(t)&&H.isIterable(t)){let l={},d,p;for(const u of t){if(!H.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(d=l[p])?H.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=jo(t),t){const r=H.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return $v(i);if(H.isFunction(n))return n.call(this,i,r);if(H.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=jo(t),t){const r=H.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ql(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=jo(a),a){const l=H.findKey(r,a);l&&(!n||ql(r,r[l],l,n))&&(delete r[l],i=!0)}}return H.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||ql(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return H.forEach(this,(i,s)=>{const a=H.findKey(r,s);if(a){n[a]=Ss(i),delete n[s];return}const l=t?Lv(s):String(s).trim();l!==s&&delete n[s],n[l]=Ss(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return H.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&H.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
21
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Bp]=this[Bp]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=jo(a);r[l]||(jv(i,a),r[l]=!0)}return H.isArray(t)?t.forEach(s):s(t),this}};Nt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(Nt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),H.freezeMethods(Nt);function Yl(e,t){const n=this||Lo,r=t||n,i=Nt.from(r.headers);let s=r.data;return H.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Wp(e){return!!(e&&e.__CANCEL__)}function $r(e,t,n){Oe.call(this,e??"canceled",Oe.ERR_CANCELED,t,n),this.name="CanceledError"}H.inherits($r,Oe,{__CANCEL__:!0});function Rp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Oe("Request failed with status code "+n.status,[Oe.ERR_BAD_REQUEST,Oe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Bv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const p=Date.now(),u=r[s];a||(a=p),n[i]=d,r[i]=p;let h=s,x=0;for(;h!==i;)x+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const b=u&&p-u;return b?Math.round(x*1e3/b):void 0}}function Rv(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const ws=(e,t,n=3)=>{let r=0;const i=Wv(50,250);return Rv(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,d=a-r,p=i(d),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:d,rate:p||void 0,estimated:p&&l&&u?(l-a)/p:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},Vp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Up=e=>(...t)=>H.asap(()=>e(...t)),Vv=vt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,vt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(vt.origin),vt.navigator&&/(msie|trident)/i.test(vt.navigator.userAgent)):()=>!0,Uv=vt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];H.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),H.isString(r)&&l.push(`path=${r}`),H.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),H.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Hv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hp(e,t,n){let r=!Hv(t);return e&&(r||n==!1)?qv(e,t):t}const qp=e=>e instanceof Nt?{...e}:e;function cr(e,t){t=t||{};const n={};function r(p,u,h,x){return H.isPlainObject(p)&&H.isPlainObject(u)?H.merge.call({caseless:x},p,u):H.isPlainObject(u)?H.merge({},u):H.isArray(u)?u.slice():u}function i(p,u,h,x){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p,h,x)}else return r(p,u,h,x)}function s(p,u){if(!H.isUndefined(u))return r(void 0,u)}function a(p,u){if(H.isUndefined(u)){if(!H.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const d={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(p,u,h)=>i(qp(p),qp(u),h,!0)};return H.forEach(Object.keys({...e,...t}),function(u){const h=d[u]||i,x=h(e[u],t[u],u);H.isUndefined(x)&&h!==l||(n[u]=x)}),n}const Yp=e=>{const t=cr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Nt.from(a),t.url=$p(Hp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),H.isFormData(n)){if(vt.hasStandardBrowserEnv||vt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(H.isFunction(n.getHeaders)){const d=n.getHeaders(),p=["content-type","content-length"];Object.entries(d).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(vt.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(t)),r||r!==!1&&Vv(t.url))){const d=i&&s&&Uv.read(s);d&&a.set(i,d)}return t},Yv=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Yp(e);let s=i.data;const a=Nt.from(i.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:p}=i,u,h,x,b,g;function f(){b&&b(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const S=Nt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};Rp(function(O){n(O),f()},function(O){r(O),f()},C),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new Oe("Request aborted",Oe.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const C=v&&v.message?v.message:"Network Error",P=new Oe(C,Oe.ERR_NETWORK,e,m);P.event=v||null,r(P),m=null},m.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Lp;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Oe(v,C.clarifyTimeoutError?Oe.ETIMEDOUT:Oe.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&H.forEach(a.toJSON(),function(v,C){m.setRequestHeader(C,v)}),H.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),p&&([x,g]=ws(p,!0),m.addEventListener("progress",x)),d&&m.upload&&([h,b]=ws(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(u=S=>{m&&(r(!S||S.type?new $r(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=Bv(i.url);if(w&&vt.protocols.indexOf(w)===-1){r(new Oe("Unsupported protocol "+w+":",Oe.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Gv=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,l();const u=p instanceof Error?p:this.reason;r.abort(u instanceof Oe?u:new $r(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Oe(`timeout ${t} of ms exceeded`,Oe.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>H.asap(l),d}},Kv=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Xv=async function*(e,t){for await(const n of Jv(e))yield*Kv(n,t)},Jv=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Gp=(e,t,n,r)=>{const i=Xv(e,t);let s=0,a,l=d=>{a||(a=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:p,value:u}=await i.next();if(p){l(),d.close();return}let h=u.byteLength;if(n){let x=s+=h;n(x)}d.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(d){return l(d),i.return()}},{highWaterMark:2})},Kp=64*1024,{isFunction:Cs}=H,Qv=(({Request:e,Response:t})=>({Request:e,Response:t}))(H.global),{ReadableStream:Xp,TextEncoder:Jp}=H.global,Qp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Zv=e=>{e=H.merge.call({skipUndefined:!0},Qv,e);const{fetch:t,Request:n,Response:r}=e,i=t?Cs(t):typeof fetch=="function",s=Cs(n),a=Cs(r);if(!i)return!1;const l=i&&Cs(Xp),d=i&&(typeof Jp=="function"?(g=>f=>g.encode(f))(new Jp):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&l&&Qp(()=>{let g=!1;const f=new n(vt.origin,{body:new Xp,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&l&&Qp(()=>H.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let y=f&&f[g];if(y)return y.call(f);throw new Oe(`Response type '${g}' is not supported`,Oe.ERR_NOT_SUPPORT,m)})});const x=async g=>{if(g==null)return 0;if(H.isBlob(g))return g.size;if(H.isSpecCompliantForm(g))return(await new n(vt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(H.isArrayBufferView(g)||H.isArrayBuffer(g))return g.byteLength;if(H.isURLSearchParams(g)&&(g=g+""),H.isString(g))return(await d(g)).byteLength},b=async(g,f)=>{const m=H.toFiniteNumber(g.getContentLength());return m??x(f)};return async g=>{let{url:f,method:m,data:y,signal:w,cancelToken:S,timeout:v,onDownloadProgress:C,onUploadProgress:P,responseType:O,headers:D,withCredentials:N="same-origin",fetchOptions:I}=Yp(g),F=t||fetch;O=O?(O+"").toLowerCase():"text";let E=Gv([w,S&&S.toAbortSignal()],v),A=null;const M=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let B;try{if(P&&p&&m!=="get"&&m!=="head"&&(B=await b(D,y))!==0){let V=new n(f,{method:"POST",body:y,duplex:"half"}),G;if(H.isFormData(y)&&(G=V.headers.get("content-type"))&&D.setContentType(G),V.body){const[K,ee]=Vp(B,ws(Up(P)));y=Gp(V.body,Kp,K,ee)}}H.isString(N)||(N=N?"include":"omit");const $=s&&"credentials"in n.prototype,j={...I,signal:E,method:m.toUpperCase(),headers:D.normalize().toJSON(),body:y,duplex:"half",credentials:$?N:void 0};A=s&&new n(f,j);let _=await(s?F(A,I):F(f,j));const R=u&&(O==="stream"||O==="response");if(u&&(C||R&&M)){const V={};["status","statusText","headers"].forEach(Q=>{V[Q]=_[Q]});const G=H.toFiniteNumber(_.headers.get("content-length")),[K,ee]=C&&Vp(G,ws(Up(C),!0))||[];_=new r(Gp(_.body,Kp,K,()=>{ee&&ee(),M&&M()}),V)}O=O||"text";let z=await h[H.findKey(h,O)||"text"](_,g);return!R&&M&&M(),await new Promise((V,G)=>{Rp(V,G,{data:z,headers:Nt.from(_.headers),status:_.status,statusText:_.statusText,config:g,request:A})})}catch($){throw M&&M(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new Oe("Network Error",Oe.ERR_NETWORK,g,A),{cause:$.cause||$}):Oe.from($,$&&$.code,g,A)}}},e1=new Map,Zp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,l=a,d,p,u=e1;for(;l--;)d=s[l],p=u.get(d),p===void 0&&u.set(d,p=l?new Map:Zv(t)),u=p;return p};Zp();const Gl={http:wv,xhr:Yv,fetch:{get:Zp}};H.forEach(Gl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ef=e=>`- ${e}`,t1=e=>H.isFunction(e)||e===null||e===!1;function n1(e,t){e=H.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!t1(r)&&(i=Gl[(l=String(r)).toLowerCase()],i===void 0))throw new Oe(`Unknown adapter '${l}'`);if(i&&(H.isFunction(i)||(i=i.get(t))))break;s[l||"#"+a]=i}if(!i){const a=Object.entries(s).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
22
- `+a.map(ef).join(`
23
- `):" "+ef(a[0]):"as no adapter specified";throw new Oe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const tf={getAdapter:n1,adapters:Gl};function Kl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $r(null,e)}function nf(e){return Kl(e),e.headers=Nt.from(e.headers),e.data=Yl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tf.getAdapter(e.adapter||Lo.adapter,e)(e).then(function(r){return Kl(e),r.data=Yl.call(e,e.transformResponse,r),r.headers=Nt.from(r.headers),r},function(r){return Wp(r)||(Kl(e),r&&r.response&&(r.response.data=Yl.call(e,e.transformResponse,r.response),r.response.headers=Nt.from(r.response.headers))),Promise.reject(r)})}const rf="1.13.2",Es={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Es[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const of={};Es.transitional=function(t,n,r){function i(s,a){return"[Axios v"+rf+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Oe(i(a," has been removed"+(n?" in "+n:"")),Oe.ERR_DEPRECATED);return n&&!of[a]&&(of[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},Es.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function r1(e,t,n){if(typeof e!="object")throw new Oe("options must be an object",Oe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const l=e[s],d=l===void 0||a(l,s,e);if(d!==!0)throw new Oe("option "+s+" must be "+d,Oe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Oe("Unknown option "+s,Oe.ERR_BAD_OPTION)}}const Ts={assertOptions:r1,validators:Es},cn=Ts.validators;let dr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new zp,response:new zp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
24
- `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=cr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Ts.assertOptions(r,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),i!=null&&(H.isFunction(i)?n.paramsSerializer={serialize:i}:Ts.assertOptions(i,{encode:cn.function,serialize:cn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ts.assertOptions(n,{baseUrl:cn.spelling("baseURL"),withXsrfToken:cn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&H.merge(s.common,s[n.method]);s&&H.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Nt.concat(a,s);const l=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,x;if(!d){const g=[nf.bind(this),void 0];for(g.unshift(...l),g.push(...p),x=g.length,u=Promise.resolve(n);h<x;)u=u.then(g[h++],g[h++]);return u}x=l.length;let b=n;for(;h<x;){const g=l[h++],f=l[h++];try{b=g(b)}catch(m){f.call(this,m);break}}try{u=nf.call(this,b)}catch(g){return Promise.reject(g)}for(h=0,x=p.length;h<x;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=cr(this.defaults,t);const n=Hp(t.baseURL,t.url,t.allowAbsoluteUrls);return $p(n,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){dr.prototype[t]=function(n,r){return this.request(cr(r||{},{method:t,url:n,data:(r||{}).data}))}}),H.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(cr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}dr.prototype[t]=n(),dr.prototype[t+"Form"]=n(!0)});let o1=class sy{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new $r(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new sy(function(i){t=i}),cancel:t}}};function i1(e){return function(n){return e.apply(null,n)}}function s1(e){return H.isObject(e)&&e.isAxiosError===!0}const Xl={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Xl).forEach(([e,t])=>{Xl[t]=e});function sf(e){const t=new dr(e),n=Sp(dr.prototype.request,t);return H.extend(n,dr.prototype,t,{allOwnKeys:!0}),H.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return sf(cr(e,i))},n}const tt=sf(Lo);tt.Axios=dr,tt.CanceledError=$r,tt.CancelToken=o1,tt.isCancel=Wp,tt.VERSION=rf,tt.toFormData=vs,tt.AxiosError=Oe,tt.Cancel=tt.CanceledError,tt.all=function(t){return Promise.all(t)},tt.spread=i1,tt.isAxiosError=s1,tt.mergeConfig=cr,tt.AxiosHeaders=Nt,tt.formToJSON=e=>jp(H.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=tf.getAdapter,tt.HttpStatusCode=Xl,tt.default=tt;const{Axios:n5,AxiosError:r5,CanceledError:o5,isCancel:i5,CancelToken:s5,VERSION:a5,all:l5,Cancel:c5,isAxiosError:d5,spread:u5,toFormData:p5,AxiosHeaders:f5,HttpStatusCode:h5,formToJSON:g5,getAdapter:m5,mergeConfig:y5}=tt;function Ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var a1={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Jl(e,t){function n(i,s,a){if(!(typeof document>"u")){a=Ps({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var d in a)a[d]&&(l+="; "+d,a[d]!==!0&&(l+="="+a[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var d=s[l].split("="),p=d.slice(1).join("=");try{var u=decodeURIComponent(d[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ps({},s,{expires:-1}))},withAttributes:function(i){return Jl(this.converter,Ps({},this.attributes,i))},withConverter:function(i){return Jl(Ps({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Dn=Jl(a1,{path:"/"});const l1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let zr="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:rl&&rl.tagName.toUpperCase()==="SCRIPT"&&rl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&l1?.VITE_API_URL)zr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(zr=process.env.VITE_API_URL)}}catch{}const c1=e=>{zr=e,st.defaults.baseURL=zr},d1=e=>{e?Dn.set("token",e,{secure:!0,sameSite:"Strict"}):Dn.remove("token")},u1=()=>Dn.get("token")||null,st=tt.create({baseURL:zr,transformRequest:[function(e,t){const n=u1();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let Ql=!1,Zl=null;st.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Dn.get("refreshToken");if(r)try{Ql||(Ql=!0,Zl=tt.post(`${zr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await Zl,{token:s,refreshToken:a}=i.data;return Dn.set("token",s,{secure:!0,sameSite:"Strict"}),Dn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,st(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Dn.remove("token"),Dn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{Ql=!1,Zl=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Dn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Bo=ht("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await st.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Os=ht("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await st.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),Lr=ht("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await st.get("/auth/verify"),r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,a=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),l=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[a,l].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),Ft=ht("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await st.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),jr=ht("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),ur=ht("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),_n=ht("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await st.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),ks=ht("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,createdById:i,createdByName:s,products:a},{rejectWithValue:l})=>{try{return(await st.post("/catalogues",{name:e,slug:t,description:n,storeCode:Array.isArray(r)?r:[r],createdById:i,createdByName:s,products:Array.isArray(a)?a:[]})).data}catch(d){const p=d.response?.data?.message||d.message||"Failed to create catalog";return l(p)}}),Wo=ht("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,a={name:t,slug:n,status:r===!0||r==="Active"};return(await st.put(s,a)).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to update catalog";return i(a)}}),As=ht("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await st.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),Is=ht("dashboard/createOsaRequest",async({storeCodes:e,createdBy:t,createdByName:n,products:r},{rejectWithValue:i})=>{try{return(await st.post("/osa/request",{storeCodes:Array.isArray(e)?e:[e],createdBy:t??null,createdByName:n??"",products:Array.isArray(r)?r:[]})).data}catch(s){const a=s.response?.data?.message||s.message||"Failed to create OSA request";return i(a)}}),af=dp({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Bo.pending,t=>{t.loading=!0,t.error=null}).addCase(Bo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Bo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Os.pending,t=>{t.loading=!0}).addCase(Os.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Os.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(Ft.pending,t=>{t.loading=!0}).addCase(Ft.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Ft.rejected,t=>{t.loading=!1}),e.addCase(Lr.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Lr.fulfilled,(t,n)=>{t.loading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(Lr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(ur.pending,t=>{t.loading=!0,t.error=null}).addCase(ur.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(ur.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(jr.pending,t=>{t.loading=!0,t.error=null}).addCase(jr.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(a=>{const l=a.id??a.storeCode??a.storeId,d=a.name??a.storeName??a.storel??"",p=a.storeCode??a.id??l;return{id:l,name:d,storeCode:p}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(jr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase(_n.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(_n.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=i;const s=(x,b=0)=>{if(x==null||x==="")return b;const g=Number(x);return Number.isFinite(g)?g:b},a={};i.forEach(x=>{if(!x)return;const b=x.categoryName||"Uncategorized";a[b]||(a[b]=[]),a[b].push({...x,stock:s(x.stock),inventory:s(x.inventory),inShelf:s(x.inShelf)})});const l=Object.values(a).flat(),d=Object.keys(a).length,p=l.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:p},t.productsByCategory=a;const u=r.pagination||{},h=typeof u.totalCount=="number"?u.totalCount:Object.values(a).reduce((x,b)=>x+b.length,0);t.pagination={currentPage:typeof u.currentPage=="number"?u.currentPage:1,limit:typeof u.limit=="number"?u.limit:20,totalCount:h,totalPages:typeof u.totalPages=="number"?u.totalPages:1,hasNextPage:typeof u.hasNextPage=="boolean"?u.hasNextPage:!1}}).addCase(_n.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}),e.addCase(ks.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(ks.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(ks.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Wo.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Wo.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Wo.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(As.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(As.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(As.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(Is.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(Is.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(Is.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:x5,clearCreateCatalogError:p1,clearUpdateCatalogError:v5,clearDeleteCatalogError:S5,clearCreateOsaRequestError:f1}=af.actions,h1=af.reducer,Ro=ht("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,p,u,h]=l;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const x={tenantId:a,type:d,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await st.post("/ftp/sync/test-connection",x)).data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),Vo=ht("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await st.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),Br=ht("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}try{const r=await st.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),Uo=ht("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await st.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Ho=ht("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await st.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),qo=ht("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");const r=`/integrations/${e}`,i=await st.patch(r,t);if(i.status>=200&&i.status<300)return i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),tn=ht("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await st.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),ec={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},lf=dp({name:"productSettings",initialState:ec,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=ec.syncData}},extraReducers:e=>{e.addCase(Ro.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(Ro.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Ho.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Ho.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Ho.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(tn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(tn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(tn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(Vo.pending,t=>{t.loading=!0,t.error=null}).addCase(Vo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=ec.syncData}).addCase(Vo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Br.pending,t=>{t.loading=!0,t.error=null}).addCase(Br.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Br.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Uo.pending,t=>{t.loading=!0,t.error=null}).addCase(Uo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(qo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(qo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(qo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:w5,clearTestConnectionResult:C5,clearSaveResult:g1,clearAll:E5,clearTestConnectionData:T5,clearUpdateDetailsResult:P5,clearSyncNowResult:O5,setFtpSyncData:Ns,clearFtpSyncData:k5,clearMappingColumnsError:A5,clearMappingColumns:I5,clearSharedCataloguesError:N5,clearSharedCatalogues:F5,clearUpdateIntegrationByChannelIdResult:M5}=lf.actions,m1=lf.reducer;var Fs={},Ms={},cf;function y1(){if(cf)return Ms;cf=1,Ms.__esModule=!0,Ms.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],l="redux-persist ".concat(s," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return Ms}var df;function b1(){if(df)return Fs;df=1,Fs.__esModule=!0,Fs.default=n;var e=t(y1());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,d){l(i.getItem(a))})},setItem:function(a,l){return new Promise(function(d,p){d(i.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,d){l(i.removeItem(a))})}}}return Fs}var x1=b1();const v1={key:"auth",storage:typeof window<"u"?bu(x1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},S1=ku({dashboard:h1,productSettings:m1}),w1=Nx(v1,S1),uf=J0({reducer:w1,middleware:e=>e({serializableCheck:!1})}),C1=zx(uf),E1=L.createContext(null),T1=({children:e,apiUrl:t,authToken:n})=>(L.useEffect(()=>{t&&c1(t)},[t]),L.useEffect(()=>{d1(n||null)},[n]),c.jsx(E1.Provider,{value:{apiUrl:t},children:e})),Yo={black:"#000",white:"#fff"},Wr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Rr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Vr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Ur={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Hr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Go={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},P1={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"};function dn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ko="$$material";function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(null,arguments)}function O1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function k1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var A1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(k1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=O1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),St="-ms-",_s="-moz-",$e="-webkit-",pf="comm",tc="rule",nc="decl",I1="@import",ff="@keyframes",N1="@layer",F1=Math.abs,$s=String.fromCharCode,M1=Object.assign;function D1(e,t){return mt(e,0)^45?(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3):0}function hf(e){return e.trim()}function _1(e,t){return(e=t.exec(e))?e[0]:e}function ze(e,t,n){return e.replace(t,n)}function rc(e,t){return e.indexOf(t)}function mt(e,t){return e.charCodeAt(t)|0}function Xo(e,t,n){return e.slice(t,n)}function un(e){return e.length}function oc(e){return e.length}function zs(e,t){return t.push(e),e}function $1(e,t){return e.map(t).join("")}var Ls=1,qr=1,gf=0,Mt=0,ct=0,Yr="";function js(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Ls,column:qr,length:a,return:""}}function Jo(e,t){return M1(js("",null,null,"",null,null,0),e,{length:-e.length},t)}function z1(){return ct}function L1(){return ct=Mt>0?mt(Yr,--Mt):0,qr--,ct===10&&(qr=1,Ls--),ct}function jt(){return ct=Mt<gf?mt(Yr,Mt++):0,qr++,ct===10&&(qr=1,Ls++),ct}function pn(){return mt(Yr,Mt)}function Bs(){return Mt}function Qo(e,t){return Xo(Yr,e,t)}function Zo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function mf(e){return Ls=qr=1,gf=un(Yr=e),Mt=0,[]}function yf(e){return Yr="",e}function Ws(e){return hf(Qo(Mt-1,ic(e===91?e+2:e===40?e+1:e)))}function j1(e){for(;(ct=pn())&&ct<33;)jt();return Zo(e)>2||Zo(ct)>3?"":" "}function B1(e,t){for(;--t&&jt()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return Qo(e,Bs()+(t<6&&pn()==32&&jt()==32))}function ic(e){for(;jt();)switch(ct){case e:return Mt;case 34:case 39:e!==34&&e!==39&&ic(ct);break;case 40:e===41&&ic(e);break;case 92:jt();break}return Mt}function W1(e,t){for(;jt()&&e+ct!==57;)if(e+ct===84&&pn()===47)break;return"/*"+Qo(t,Mt-1)+"*"+$s(e===47?e:jt())}function R1(e){for(;!Zo(pn());)jt();return Qo(e,Mt)}function V1(e){return yf(Rs("",null,null,null,[""],e=mf(e),0,[0],e))}function Rs(e,t,n,r,i,s,a,l,d){for(var p=0,u=0,h=a,x=0,b=0,g=0,f=1,m=1,y=1,w=0,S="",v=i,C=s,P=r,O=S;m;)switch(g=w,w=jt()){case 40:if(g!=108&&mt(O,h-1)==58){rc(O+=ze(Ws(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:O+=Ws(w);break;case 9:case 10:case 13:case 32:O+=j1(g);break;case 92:O+=B1(Bs()-1,7);continue;case 47:switch(pn()){case 42:case 47:zs(U1(W1(jt(),Bs()),t,n),d);break;default:O+="/"}break;case 123*f:l[p++]=un(O)*y;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:y==-1&&(O=ze(O,/\f/g,"")),b>0&&un(O)-h&&zs(b>32?xf(O+";",r,n,h-1):xf(ze(O," ","")+";",r,n,h-2),d);break;case 59:O+=";";default:if(zs(P=bf(O,t,n,p,u,i,l,S,v=[],C=[],h),s),w===123)if(u===0)Rs(O,t,P,P,v,s,h,l,C);else switch(x===99&&mt(O,3)===110?100:x){case 100:case 108:case 109:case 115:Rs(e,P,P,r&&zs(bf(e,P,P,0,0,i,l,S,i,v=[],h),C),i,C,h,l,r?v:C);break;default:Rs(O,P,P,P,[""],C,0,l,C)}}p=u=b=0,f=y=1,S=O="",h=a;break;case 58:h=1+un(O),b=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&L1()==125)continue}switch(O+=$s(w),w*f){case 38:y=u>0?1:(O+="\f",-1);break;case 44:l[p++]=(un(O)-1)*y,y=1;break;case 64:pn()===45&&(O+=Ws(jt())),x=pn(),u=h=un(S=O+=R1(Bs())),w++;break;case 45:g===45&&un(O)==2&&(f=0)}}return s}function bf(e,t,n,r,i,s,a,l,d,p,u){for(var h=i-1,x=i===0?s:[""],b=oc(x),g=0,f=0,m=0;g<r;++g)for(var y=0,w=Xo(e,h+1,h=F1(f=a[g])),S=e;y<b;++y)(S=hf(f>0?x[y]+" "+w:ze(w,/&\f/g,x[y])))&&(d[m++]=S);return js(e,t,n,i===0?tc:l,d,p,u)}function U1(e,t,n){return js(e,t,n,pf,$s(z1()),Xo(e,2,-2),0)}function xf(e,t,n,r){return js(e,t,n,nc,Xo(e,0,r),Xo(e,r+1,-1),r)}function Gr(e,t){for(var n="",r=oc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function H1(e,t,n,r){switch(e.type){case N1:if(e.children.length)break;case I1:case nc:return e.return=e.return||e.value;case pf:return"";case ff:return e.return=e.value+"{"+Gr(e.children,r)+"}";case tc:e.value=e.props.join(",")}return un(n=Gr(e.children,r))?e.return=e.value+"{"+n+"}":""}function q1(e){var t=oc(e);return function(n,r,i,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,s)||"";return a}}function Y1(e){return function(t){t.root||(t=t.return)&&e(t)}}function vf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var G1=function(t,n,r){for(var i=0,s=0;i=s,s=pn(),i===38&&s===12&&(n[r]=1),!Zo(s);)jt();return Qo(t,Mt)},K1=function(t,n){var r=-1,i=44;do switch(Zo(i)){case 0:i===38&&pn()===12&&(n[r]=1),t[r]+=G1(Mt-1,n,r);break;case 2:t[r]+=Ws(i);break;case 4:if(i===44){t[++r]=pn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=$s(i)}while(i=jt());return t},X1=function(t,n){return yf(K1(mf(t),n))},Sf=new WeakMap,J1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Sf.get(r))&&!i){Sf.set(t,!0);for(var s=[],a=X1(n,s),l=r.props,d=0,p=0;d<a.length;d++)for(var u=0;u<l.length;u++,p++)t.props[p]=s[d]?a[d].replace(/&\f/g,l[u]):l[u]+" "+a[d]}}},Q1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function wf(e,t){switch(D1(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+_s+e+St+e+e;case 6828:case 4268:return $e+e+St+e+e;case 6165:return $e+e+St+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+St+"flex-$1$2")+e;case 5443:return $e+e+St+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+St+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+St+ze(e,"shrink","negative")+e;case 5292:return $e+e+St+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+St+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+St+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(e)-1-t>6)switch(mt(e,t+1)){case 109:if(mt(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+_s+(mt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rc(e,"stretch")?wf(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(mt(e,t+1)!==115)break;case 6444:switch(mt(e,un(e)-3-(~rc(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(mt(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+St+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return $e+e+St+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+St+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+St+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+St+e+e}return e}var Z1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case nc:t.return=wf(t.value,t.length);break;case ff:return Gr([Jo(t,{value:ze(t.value,"@","@"+$e)})],i);case tc:if(t.length)return $1(t.props,function(s){switch(_1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Gr([Jo(t,{props:[ze(s,/:(read-\w+)/,":"+_s+"$1")]})],i);case"::placeholder":return Gr([Jo(t,{props:[ze(s,/:(plac\w+)/,":"+$e+"input-$1")]}),Jo(t,{props:[ze(s,/:(plac\w+)/,":"+_s+"$1")]}),Jo(t,{props:[ze(s,/:(plac\w+)/,St+"input-$1")]})],i)}return""})}},eS=[Z1],tS=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(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||eS,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)s[m[y]]=!0;l.push(f)});var d,p=[J1,Q1];{var u,h=[H1,Y1(function(f){u.insert(f)})],x=q1(p.concat(i,h)),b=function(m){return Gr(V1(m),x)};d=function(m,y,w,S){u=w,b(m?m+"{"+y.styles+"}":y.styles),S&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new A1({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(l),g},Vs={exports:{}},je={};var Cf;function nS(){if(Cf)return je;Cf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var P=C.$$typeof;switch(P){case t:switch(C=C.type,C){case d:case p:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case g:case b:case a:return C;default:return P}}case n:return P}}}function v(C){return S(C)===p}return je.AsyncMode=d,je.ConcurrentMode=p,je.ContextConsumer=l,je.ContextProvider=a,je.Element=t,je.ForwardRef=u,je.Fragment=r,je.Lazy=g,je.Memo=b,je.Portal=n,je.Profiler=s,je.StrictMode=i,je.Suspense=h,je.isAsyncMode=function(C){return v(C)||S(C)===d},je.isConcurrentMode=v,je.isContextConsumer=function(C){return S(C)===l},je.isContextProvider=function(C){return S(C)===a},je.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},je.isForwardRef=function(C){return S(C)===u},je.isFragment=function(C){return S(C)===r},je.isLazy=function(C){return S(C)===g},je.isMemo=function(C){return S(C)===b},je.isPortal=function(C){return S(C)===n},je.isProfiler=function(C){return S(C)===s},je.isStrictMode=function(C){return S(C)===i},je.isSuspense=function(C){return S(C)===h},je.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===p||C===s||C===i||C===h||C===x||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===b||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===m||C.$$typeof===y||C.$$typeof===w||C.$$typeof===f)},je.typeOf=S,je}var Be={};var Ef;function rS(){return Ef||(Ef=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,x=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(U){return typeof U=="string"||typeof U=="function"||U===r||U===p||U===s||U===i||U===h||U===x||typeof U=="object"&&U!==null&&(U.$$typeof===g||U.$$typeof===b||U.$$typeof===a||U.$$typeof===l||U.$$typeof===u||U.$$typeof===m||U.$$typeof===y||U.$$typeof===w||U.$$typeof===f)}function v(U){if(typeof U=="object"&&U!==null){var de=U.$$typeof;switch(de){case t:var re=U.type;switch(re){case d:case p:case r:case s:case i:case h:return re;default:var oe=re&&re.$$typeof;switch(oe){case l:case u:case g:case b:case a:return oe;default:return de}}case n:return de}}}var C=d,P=p,O=l,D=a,N=t,I=u,F=r,E=g,A=b,M=n,B=s,$=i,j=h,_=!1;function R(U){return _||(_=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(U)||v(U)===d}function z(U){return v(U)===p}function V(U){return v(U)===l}function G(U){return v(U)===a}function K(U){return typeof U=="object"&&U!==null&&U.$$typeof===t}function ee(U){return v(U)===u}function Q(U){return v(U)===r}function J(U){return v(U)===g}function ae(U){return v(U)===b}function se(U){return v(U)===n}function le(U){return v(U)===s}function q(U){return v(U)===i}function ne(U){return v(U)===h}Be.AsyncMode=C,Be.ConcurrentMode=P,Be.ContextConsumer=O,Be.ContextProvider=D,Be.Element=N,Be.ForwardRef=I,Be.Fragment=F,Be.Lazy=E,Be.Memo=A,Be.Portal=M,Be.Profiler=B,Be.StrictMode=$,Be.Suspense=j,Be.isAsyncMode=R,Be.isConcurrentMode=z,Be.isContextConsumer=V,Be.isContextProvider=G,Be.isElement=K,Be.isForwardRef=ee,Be.isFragment=Q,Be.isLazy=J,Be.isMemo=ae,Be.isPortal=se,Be.isProfiler=le,Be.isStrictMode=q,Be.isSuspense=ne,Be.isValidElementType=S,Be.typeOf=v})()),Be}var Tf;function sc(){return Tf||(Tf=1,process.env.NODE_ENV==="production"?Vs.exports=nS():Vs.exports=rS()),Vs.exports}var ac,Pf;function oS(){if(Pf)return ac;Pf=1;var e=sc(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var l=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,x=Object.prototype;function b(g,f,m){if(typeof f!="string"){if(x){var y=h(f);y&&y!==x&&b(g,y,m)}var w=d(f);p&&(w=w.concat(p(f)));for(var S=a(g),v=a(f),C=0;C<w.length;++C){var P=w[C];if(!n[P]&&!(m&&m[P])&&!(v&&v[P])&&!(S&&S[P])){var O=u(f,P);try{l(g,P,O)}catch{}}}}return g}return ac=b,ac}oS();var iS=!0;function Of(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var lc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||iS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},cc=function(t,n,r){lc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function sS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 aS={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,scale: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},lS=/[A-Z]|^ms/g,cS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kf=function(t){return t.charCodeAt(1)===45},Af=function(t){return t!=null&&typeof t!="boolean"},dc=vf(function(e){return kf(e)?e:e.replace(lS,"-$&").toLowerCase()}),If=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cS,function(r,i,s){return fn={name:i,styles:s,next:fn},i})}return aS[t]!==1&&!kf(t)&&typeof n=="number"&&n!==0?n+"px":n};function ei(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return fn={name:i.name,styles:i.styles,next:fn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)fn={name:a.name,styles:a.styles,next:fn},a=a.next;var l=s.styles+";";return l}return dS(e,t,n)}case"function":{if(e!==void 0){var d=fn,p=n(e);return fn=d,ei(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function dS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ei(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Af(l)&&(r+=dc(s)+":"+If(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var d=0;d<a.length;d++)Af(a[d])&&(r+=dc(s)+":"+If(s,a[d])+";");else{var p=ei(e,t,a);switch(s){case"animation":case"animationName":{r+=dc(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var Nf=/label:\s*([^\s;{]+)\s*(;|$)/g,fn;function ti(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";fn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=ei(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=ei(n,t,e[l]),r){var d=s;i+=d[l]}Nf.lastIndex=0;for(var p="",u;(u=Nf.exec(i))!==null;)p+="-"+u[1];var h=sS(i)+p;return{name:h,styles:i,next:fn}}var uS=function(t){return t()},Ff=T.useInsertionEffect?T.useInsertionEffect:!1,Mf=Ff||uS,Df=Ff||T.useLayoutEffect,_f=T.createContext(typeof HTMLElement<"u"?tS({key:"css"}):null);_f.Provider;var uc=function(t){return L.forwardRef(function(n,r){var i=L.useContext(_f);return t(n,i,r)})},Us=T.createContext({}),pc={}.hasOwnProperty,fc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",pS=function(t,n){var r={};for(var i in n)pc.call(n,i)&&(r[i]=n[i]);return r[fc]=t,r},fS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return lc(n,r,i),Mf(function(){return cc(n,r,i)}),null},hS=uc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[fc],s=[r],a="";typeof e.className=="string"?a=Of(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=ti(s,void 0,T.useContext(Us));a+=t.key+"-"+l.name;var d={};for(var p in e)pc.call(e,p)&&p!=="css"&&p!==fc&&(d[p]=e[p]);return d.className=a,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(fS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),T.createElement(i,d))}),gS=hS,$f=function(t,n){var r=arguments;if(n==null||!pc.call(n,"css"))return T.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=gS,s[1]=pS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})($f||($f={}));var mS=uc(function(e,t){var n=e.styles,r=ti([n],void 0,T.useContext(Us)),i=T.useRef();return Df(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),d!==null&&(l=!0,d.setAttribute("data-emotion",s),a.hydrate([d])),i.current=[a,l],function(){a.flush()}},[t]),Df(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&cc(t,r.next,!0),a.tags.length){var d=a.tags[a.tags.length-1].nextElementSibling;a.before=d,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ti(t)}function Gn(){var e=Kr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var yS=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,bS=vf(function(e){return yS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xS=bS,vS=function(t){return t!=="theme"},zf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xS:vS},Lf=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},SS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return lc(n,r,i),Mf(function(){return cc(n,r,i)}),null},wS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=Lf(t,n,r),d=l||zf(i),p=!d("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var x=u[0];h.push(x[0]);for(var b=u.length,g=1;g<b;g++)h.push(u[g],x[g])}var f=uc(function(m,y,w){var S=p&&m.as||i,v="",C=[],P=m;if(m.theme==null){P={};for(var O in m)P[O]=m[O];P.theme=T.useContext(Us)}typeof m.className=="string"?v=Of(y.registered,C,m.className):m.className!=null&&(v=m.className+" ");var D=ti(h.concat(C),y.registered,P);v+=y.key+"-"+D.name,a!==void 0&&(v+=" "+a);var N=p&&l===void 0?zf(S):d,I={};for(var F in m)p&&F==="as"||N(F)&&(I[F]=m[F]);return I.className=v,w&&(I.ref=w),T.createElement(T.Fragment,null,T.createElement(SS,{cache:y,serialized:D,isStringTag:typeof S=="string"}),T.createElement(S,I))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,y){var w=e(m,Ds({},n,y,{shouldForwardProp:Lf(f,y,!0)}));return w.apply(void 0,h)},f}},CS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],hc=wS.bind(null);CS.forEach(function(e){hc[e]=hc(e)});var Hs={exports:{}};var gc,jf;function ES(){if(jf)return gc;jf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var d=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return gc=i()?Object.assign:function(s,a){for(var l,d=r(s),p,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(d[h]=l[h]);if(e){p=e(l);for(var x=0;x<p.length;x++)n.call(l,p[x])&&(d[p[x]]=l[p[x]])}}return d},gc}var mc,Bf;function yc(){if(Bf)return mc;Bf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mc=e,mc}var bc,Wf;function Rf(){return Wf||(Wf=1,bc=Function.call.bind(Object.prototype.hasOwnProperty)),bc}var xc,Vf;function TS(){if(Vf)return xc;Vf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=yc(),n={},r=Rf();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,d,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var x=Error((d||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw x.name="Invariant Violation",x}h=s[u](a,u,d,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var b=p?p():"";e("Failed "+l+" type: "+h.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},xc=i,xc}var vc,Uf;function PS(){if(Uf)return vc;Uf=1;var e=sc(),t=ES(),n=yc(),r=Rf(),i=TS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var d="Warning: "+l;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return vc=function(l,d){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(z){var V=z&&(p&&z[p]||z[u]);if(typeof V=="function")return V}var x="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:w(),arrayOf:S,element:v(),elementType:C(),instanceOf:P,node:I(),objectOf:D,oneOf:O,oneOfType:N,shape:E,exact:A};function g(z,V){return z===V?z!==0||1/z===1/V:z!==z&&V!==V}function f(z,V){this.message=z,this.data=V&&typeof V=="object"?V:{},this.stack=""}f.prototype=Error.prototype;function m(z){if(process.env.NODE_ENV!=="production")var V={},G=0;function K(Q,J,ae,se,le,q,ne){if(se=se||x,q=q||ae,ne!==n){if(d){var U=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw U.name="Invariant Violation",U}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=se+":"+ae;!V[de]&&G<3&&(s("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+se+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[de]=!0,G++)}}return J[ae]==null?Q?J[ae]===null?new f("The "+le+" `"+q+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new f("The "+le+" `"+q+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:z(J,ae,se,le,q)}var ee=K.bind(null,!1);return ee.isRequired=K.bind(null,!0),ee}function y(z){function V(G,K,ee,Q,J,ae){var se=G[K],le=$(se);if(le!==z){var q=j(se);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+q+"` supplied to `"+ee+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return m(V)}function w(){return m(a)}function S(z){function V(G,K,ee,Q,J){if(typeof z!="function")return new f("Property `"+J+"` of component `"+ee+"` has invalid PropType notation inside arrayOf.");var ae=G[K];if(!Array.isArray(ae)){var se=$(ae);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+ee+"`, expected an array."))}for(var le=0;le<ae.length;le++){var q=z(ae,le,ee,Q,J+"["+le+"]",n);if(q instanceof Error)return q}return null}return m(V)}function v(){function z(V,G,K,ee,Q){var J=V[G];if(!l(J)){var ae=$(J);return new f("Invalid "+ee+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return m(z)}function C(){function z(V,G,K,ee,Q){var J=V[G];if(!e.isValidElementType(J)){var ae=$(J);return new f("Invalid "+ee+" `"+Q+"` of type "+("`"+ae+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return m(z)}function P(z){function V(G,K,ee,Q,J){if(!(G[K]instanceof z)){var ae=z.name||x,se=R(G[K]);return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+ee+"`, expected ")+("instance of `"+ae+"`."))}return null}return m(V)}function O(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function V(G,K,ee,Q,J){for(var ae=G[K],se=0;se<z.length;se++)if(g(ae,z[se]))return null;var le=JSON.stringify(z,function(ne,U){var de=j(U);return de==="symbol"?String(U):U});return new f("Invalid "+Q+" `"+J+"` of value `"+String(ae)+"` "+("supplied to `"+ee+"`, expected one of "+le+"."))}return m(V)}function D(z){function V(G,K,ee,Q,J){if(typeof z!="function")return new f("Property `"+J+"` of component `"+ee+"` has invalid PropType notation inside objectOf.");var ae=G[K],se=$(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type "+("`"+se+"` supplied to `"+ee+"`, expected an object."));for(var le in ae)if(r(ae,le)){var q=z(ae,le,ee,Q,J+"."+le,n);if(q instanceof Error)return q}return null}return m(V)}function N(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<z.length;V++){var G=z[V];if(typeof G!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+_(G)+" at index "+V+"."),a}function K(ee,Q,J,ae,se){for(var le=[],q=0;q<z.length;q++){var ne=z[q],U=ne(ee,Q,J,ae,se,n);if(U==null)return null;U.data&&r(U.data,"expectedType")&&le.push(U.data.expectedType)}var de=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new f("Invalid "+ae+" `"+se+"` supplied to "+("`"+J+"`"+de+"."))}return m(K)}function I(){function z(V,G,K,ee,Q){return M(V[G])?null:new f("Invalid "+ee+" `"+Q+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return m(z)}function F(z,V,G,K,ee){return new f((z||"React class")+": "+V+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ee+"`.")}function E(z){function V(G,K,ee,Q,J){var ae=G[K],se=$(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+ee+"`, expected `object`."));for(var le in z){var q=z[le];if(typeof q!="function")return F(ee,Q,J,le,j(q));var ne=q(ae,le,ee,Q,J+"."+le,n);if(ne)return ne}return null}return m(V)}function A(z){function V(G,K,ee,Q,J){var ae=G[K],se=$(ae);if(se!=="object")return new f("Invalid "+Q+" `"+J+"` of type `"+se+"` "+("supplied to `"+ee+"`, expected `object`."));var le=t({},G[K],z);for(var q in le){var ne=z[q];if(r(z,q)&&typeof ne!="function")return F(ee,Q,J,q,j(ne));if(!ne)return new f("Invalid "+Q+" `"+J+"` key `"+q+"` supplied to `"+ee+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
25
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var U=ne(ae,q,ee,Q,J+"."+q,n);if(U)return U}return null}return m(V)}function M(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(M);if(z===null||l(z))return!0;var V=h(z);if(V){var G=V.call(z),K;if(V!==z.entries){for(;!(K=G.next()).done;)if(!M(K.value))return!1}else for(;!(K=G.next()).done;){var ee=K.value;if(ee&&!M(ee[1]))return!1}}else return!1;return!0;default:return!1}}function B(z,V){return z==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function $(z){var V=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":B(V,z)?"symbol":V}function j(z){if(typeof z>"u"||z===null)return""+z;var V=$(z);if(V==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return V}function _(z){var V=j(z);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function R(z){return!z.constructor||!z.constructor.name?x:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},vc}var Sc,Hf;function OS(){if(Hf)return Sc;Hf=1;var e=yc();function t(){}function n(){}return n.resetWarningCache=t,Sc=function(){function r(a,l,d,p,u,h){if(h!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Sc}var qf;function kS(){if(qf)return Hs.exports;if(qf=1,process.env.NODE_ENV!=="production"){var e=sc(),t=!0;Hs.exports=PS()(e.isElement,t)}else Hs.exports=OS()();return Hs.exports}var AS=kS();const o=bu(AS);function IS(e){return e==null||Object.keys(e).length===0}function Yf(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(IS(i)?n:i):t;return c.jsx(mS,{styles:r})}process.env.NODE_ENV!=="production"&&(Yf.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function Gf(e,t){const n=hc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
26
- `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function NS(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Kf=[];function Kn(e){return Kf[0]=e,ti(Kf)}var qs={exports:{}},Ve={};var Xf;function FS(){if(Xf)return Ve;Xf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return Ve.ContextConsumer=s,Ve.ContextProvider=a,Ve.Element=e,Ve.ForwardRef=l,Ve.Fragment=n,Ve.Lazy=h,Ve.Memo=u,Ve.Portal=t,Ve.Profiler=i,Ve.StrictMode=r,Ve.Suspense=d,Ve.SuspenseList=p,Ve.isContextConsumer=function(f){return g(f)===s},Ve.isContextProvider=function(f){return g(f)===a},Ve.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ve.isForwardRef=function(f){return g(f)===l},Ve.isFragment=function(f){return g(f)===n},Ve.isLazy=function(f){return g(f)===h},Ve.isMemo=function(f){return g(f)===u},Ve.isPortal=function(f){return g(f)===t},Ve.isProfiler=function(f){return g(f)===i},Ve.isStrictMode=function(f){return g(f)===r},Ve.isSuspense=function(f){return g(f)===d},Ve.isSuspenseList=function(f){return g(f)===p},Ve.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},Ve.typeOf=g,Ve}var Ue={};var Jf;function MS(){return Jf||(Jf=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ue.ContextConsumer=a,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=d,Ue.Fragment=r,Ue.Lazy=x,Ue.Memo=h,Ue.Portal=n,Ue.Profiler=s,Ue.StrictMode=i,Ue.Suspense=p,Ue.SuspenseList=u,Ue.isContextConsumer=function(f){return e(f)===a},Ue.isContextProvider=function(f){return e(f)===l},Ue.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ue.isForwardRef=function(f){return e(f)===d},Ue.isFragment=function(f){return e(f)===r},Ue.isLazy=function(f){return e(f)===x},Ue.isMemo=function(f){return e(f)===h},Ue.isPortal=function(f){return e(f)===n},Ue.isProfiler=function(f){return e(f)===s},Ue.isStrictMode=function(f){return e(f)===i},Ue.isSuspense=function(f){return e(f)===p},Ue.isSuspenseList=function(f){return e(f)===u},Ue.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ue.typeOf=e})()),Ue}var Qf;function DS(){return Qf||(Qf=1,process.env.NODE_ENV==="production"?qs.exports=FS():qs.exports=MS()),qs.exports}var Ys=DS();function hn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Zf(e){if(T.isValidElement(e)||Ys.isValidElementType(e)||!hn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Zf(e[n])}),t}function wt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return hn(e)&&hn(t)&&Object.keys(t).forEach(i=>{T.isValidElement(t[i])||Ys.isValidElementType(t[i])?r[i]=t[i]:hn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&hn(e[i])?r[i]=wt(e[i],t[i],n):n.clone?r[i]=hn(t[i])?Zf(t[i]):t[i]:r[i]=t[i]}),r}const _S=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)=>({...n,[r.key]:r.val}),{})};function $S(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=_S(t),a=Object.keys(s);function l(x){return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n})`}function d(x){return`@media (max-width:${(typeof t[x]=="number"?t[x]:x)-r/100}${n})`}function p(x,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[x]=="number"?t[x]:x}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function u(x){return a.indexOf(x)+1<a.length?p(x,a[a.indexOf(x)+1]):l(x)}function h(x){const b=a.indexOf(x);return b===0?l(a[1]):b===a.length-1?d(a[b]):p(x,a[a.indexOf(x)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:d,between:p,only:u,not:h,unit:n,...i}}function eh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function zS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function LS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:dn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function jS(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const d=t(e.breakpoints.not(...l),a);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const BS={borderRadius:4},Xn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ni(e,t){return t?wt(e,t,{clone:!1}):e}const Gs={xs:0,sm:600,md:900,lg:1200,xl:1536},th={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gs[e]}px)`},WS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Gs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function $n(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||th;return t.reduce((a,l,d)=>(a[s.up(s.keys[d])]=n(t[d]),a),{})}if(typeof t=="object"){const s=r.breakpoints||th;return Object.keys(t).reduce((a,l)=>{if(zS(s.keys,l)){const d=LS(r.containerQueries?r:WS,l);d&&(a[d]=n(t[l],l))}else if(Object.keys(s.values||Gs).includes(l)){const d=s.up(l);a[d]=n(t[l],l)}else{const d=l;a[d]=t[d]}return a},{})}return n(t)}function RS(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function nh(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Z(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":dn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ks(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Xs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ks(e,n)||r,t&&(i=t(i,r,e)),i}function at(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],d=a.theme,p=Ks(d,r)||{};return $n(a,l,h=>{let x=Xs(p,i,h);return h===x&&typeof h=="string"&&(x=Xs(p,i,`${t}${h==="default"?"":Z(h)}`,h)),n===!1?x:{[n]:x}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Xn}:{},s.filterProps=[t],s}function VS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const US={m:"margin",p:"padding"},HS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qS=VS(e=>{if(e.length>2)if(rh[e])e=rh[e];else return[e];const[t,n]=e.split(""),r=US[t],i=HS[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),Js=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],YS=[...Js,...Qs];function ri(e,t,n,r){const i=Ks(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
19
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function xs(e){return typeof e=="boolean"}var Q0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let l=new su;if(n&&(xs(n)?l.push(V0):l.push(U0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let c={};xs(r)||(c=r),l.unshift(X0(c))}if(i){let c={};xs(i)||(c=i),l.push(J0(c))}if(s){let c={};xs(s)||(c=s),l.unshift(Y0(c))}}return l},Z0="RTK_autoBatch",uu=e=>t=>{setTimeout(t,e)},ex=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,l=!1;const c=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uu(10):e.type==="callback"?e.queueNotification:uu(e.timeout),u=()=>{l=!1,s&&(s=!1,c.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const h=()=>i&&p(),y=r.subscribe(h);return c.add(p),()=>{y(),c.delete(p)}},dispatch(p){try{return i=!p?.meta?.[Z0],s=!i,s&&(l||(l=!0,d(u))),r.dispatch(p)}finally{i=!0}}})},tx=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new su(e);return r&&i.push(ex(typeof r=="object"?r:void 0)),i};function nx(e){const t=Q0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:l=void 0,enhancers:c=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Io(n))d=Dp(n);else throw new Error(process.env.NODE_ENV==="production"?Xe(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(2):"`middleware` field must be a callback");let u;if(typeof r=="function"){if(u=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?Xe(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if(process.env.NODE_ENV!=="production"&&u.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Xe(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;u.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Xe(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let p=rs;i&&(p=H0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=p0(...u),y=tx(h);if(process.env.NODE_ENV!=="production"&&c&&typeof c!="function")throw new Error(process.env.NODE_ENV==="production"?Xe(5):"`enhancers` field must be a callback");let b=typeof c=="function"?c(y):y();if(process.env.NODE_ENV!=="production"&&!Array.isArray(b))throw new Error(process.env.NODE_ENV==="production"?Xe(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&b.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Xe(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!b.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=p(...b);return Pl(d,l,g)}function fu(e){const t={},n=[];let r;const i={addCase(s,l){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Xe(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Xe(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const c=typeof s=="string"?s:s.type;if(!c)throw new Error(process.env.NODE_ENV==="production"?Xe(28):"`builder.addCase` cannot be called with an empty action type");if(c in t)throw new Error(process.env.NODE_ENV==="production"?Xe(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);return t[c]=l,i},addAsyncThunk(s,l){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Xe(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return l.pending&&(t[s.pending.type]=l.pending),l.rejected&&(t[s.rejected.type]=l.rejected),l.fulfilled&&(t[s.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:s.settled,reducer:l.settled}),i},addMatcher(s,l){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Xe(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:l}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Xe(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function rx(e){return typeof e=="function"}function ox(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Xe(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=fu(t),s;if(rx(e))s=()=>au(e());else{const c=au(e);s=()=>c}function l(c=s(),d){let u=[n[d.type],...r.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return u.filter(p=>!!p).length===0&&(u=[i]),u.reduce((p,h)=>{if(h)if(Fn(p)){const b=h(p,d);return b===void 0?p:b}else{if(en(p))return Qp(p,y=>h(y,d));{const y=h(p,d);if(y===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return p},c)}return l.getInitialState=s,l}var ix=(e,t)=>ou(e)?e.match(t):e(t);function sx(...e){return t=>e.some(n=>ix(n,t))}var ax="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lx=(e=21)=>{let t="",n=e;for(;n--;)t+=ax[Math.random()*64|0];return t},cx=["name","message","stack","code"],Hl=class{constructor(e,t){this.payload=e,this.meta=t}_type},hu=class{constructor(e,t){this.payload=e,this.meta=t}_type},dx=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of cx)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},gu="External signal was aborted",yt=(()=>{function e(t,n,r){const i=$o(t+"/fulfilled",(d,u,p,h)=>({payload:d,meta:{...h||{},arg:p,requestId:u,requestStatus:"fulfilled"}})),s=$o(t+"/pending",(d,u,p)=>({payload:void 0,meta:{...p||{},arg:u,requestId:d,requestStatus:"pending"}})),l=$o(t+"/rejected",(d,u,p,h,y)=>({payload:h,error:(r&&r.serializeError||dx)(d||"Rejected"),meta:{...y||{},arg:p,requestId:u,rejectedWithValue:!!h,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function c(d,{signal:u}={}){return(p,h,y)=>{const b=r?.idGenerator?r.idGenerator(d):lx(),g=new AbortController;let f,m;function x(S){m=S,g.abort()}u&&(u.aborted?x(gu):u.addEventListener("abort",()=>x(gu),{once:!0}));const w=(async function(){let S;try{let C=r?.condition?.(d,{getState:h,extra:y});if(ux(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const k=new Promise((A,z)=>{f=()=>{z({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});p(s(b,d,r?.getPendingMeta?.({requestId:b,arg:d},{getState:h,extra:y}))),S=await Promise.race([k,Promise.resolve(n(d,{dispatch:p,getState:h,extra:y,requestId:b,signal:g.signal,abort:x,rejectWithValue:(A,z)=>new Hl(A,z),fulfillWithValue:(A,z)=>new hu(A,z)})).then(A=>{if(A instanceof Hl)throw A;return A instanceof hu?i(A.payload,b,d,A.meta):i(A,b,d)})])}catch(C){S=C instanceof Hl?l(null,b,d,C.payload,C.meta):l(C,b,d)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&l.match(S)&&S.meta.condition||p(S),S})();return Object.assign(w,{abort:x,requestId:b,arg:d,unwrap(){return w.then(px)}})}}return Object.assign(c,{pending:s,rejected:l,fulfilled:i,settled:sx(l,i),typePrefix:t})}return e.withTypes=()=>e,e})();function px(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ux(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var fx=Symbol.for("rtk-slice-createasyncthunk");function hx(e,t){return`${e}/${t}`}function gx({creators:e}={}){const t=e?.asyncThunk?.[fx];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Xe(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof r.reducers=="function"?r.reducers(yx()):r.reducers)||{},c=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,v){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Xe(12):"`context.addCase` cannot be called with an empty action type");if(C in d.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Xe(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return d.sliceCaseReducersByType[C]=v,u},addMatcher(S,v){return d.sliceMatchers.push({matcher:S,reducer:v}),u},exposeAction(S,v){return d.actionCreators[S]=v,u},exposeCaseReducer(S,v){return d.sliceCaseReducersByName[S]=v,u}};c.forEach(S=>{const v=l[S],C={reducerName:S,type:hx(i,S),createNotation:typeof r.reducers=="function"};xx(v)?Sx(C,v,u,t):bx(C,v,u)});function p(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Xe(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},v=[],C=void 0]=typeof r.extraReducers=="function"?fu(r.extraReducers):[r.extraReducers],k={...S,...d.sliceCaseReducersByType};return ox(r.initialState,A=>{for(let z in k)A.addCase(z,k[z]);for(let z of d.sliceMatchers)A.addMatcher(z.matcher,z.reducer);for(let z of v)A.addMatcher(z.matcher,z.reducer);C&&A.addDefaultCase(C)})}const h=S=>S,y=new Map,b=new WeakMap;let g;function f(S,v){return g||(g=p()),g(S,v)}function m(){return g||(g=p()),g.getInitialState()}function x(S,v=!1){function C(A){let z=A[S];if(typeof z>"u"){if(v)z=bs(b,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Xe(15):"selectSlice returned undefined for an uninjected slice reducer")}return z}function k(A=h){const z=bs(y,v,()=>new WeakMap);return bs(z,A,()=>{const M={};for(const[$,I]of Object.entries(r.selectors??{}))M[$]=mx(I,A,()=>bs(b,A,m),v);return M})}return{reducerPath:S,getSelectors:k,get selectors(){return k(C)},selectSlice:C}}const w={name:i,reducer:f,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:m,...x(s),injectInto(S,{reducerPath:v,...C}={}){const k=v??s;return S.inject({reducerPath:k,reducer:f},C),{...w,...x(k,!0)}}};return w}}function mx(e,t,n,r){function i(s,...l){let c=t(s);if(typeof c>"u"){if(r)c=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Xe(16):"selectState returned undefined for an uninjected slice reducer")}return e(c,...l)}return i.unwrapped=e,i}var mu=gx();function yx(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function bx({type:e,reducerName:t,createNotation:n},r,i){let s,l;if("reducer"in r){if(n&&!vx(r))throw new Error(process.env.NODE_ENV==="production"?Xe(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,l=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,l?$o(e,l):$o(e))}function xx(e){return e._reducerDefinitionType==="asyncThunk"}function vx(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Sx({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Xe(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:l,pending:c,rejected:d,settled:u,options:p}=n,h=i(e,s,p);r.exposeAction(t,h),l&&r.addCase(h.fulfilled,l),c&&r.addCase(h.pending,c),d&&r.addCase(h.rejected,d),u&&r.addMatcher(h.settled,u),r.exposeCaseReducer(t,{fulfilled:l||vs,pending:c||vs,rejected:d||vs,settled:u||vs})}function vs(){}function Xe(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Rl="persist:",yu="persist/FLUSH",ql="persist/REHYDRATE",bu="persist/PAUSE",xu="persist/PERSIST",vu="persist/PURGE",Su="persist/REGISTER",wx=-1;function zo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zo=function(n){return typeof n}:zo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},zo(e)}function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wu(n,!0).forEach(function(r){Ex(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ex(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tx(e,t,n,r){var i=r.debug,s=Cx({},n);return e&&zo(e)==="object"&&Object.keys(e).forEach(function(l){if(l!=="_persist"){if(t[l]!==n[l]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",l);return}s[l]=e[l]}}),process.env.NODE_ENV!=="production"&&i&&e&&zo(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function kx(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:Rl).concat(e.key),l=e.storage,c;e.serialize===!1?c=function(C){return C}:typeof e.serialize=="function"?c=e.serialize:c=Px;var d=e.writeFailHandler||null,u={},p={},h=[],y=null,b=null,g=function(C){Object.keys(C).forEach(function(k){x(k)&&u[k]!==C[k]&&h.indexOf(k)===-1&&h.push(k)}),Object.keys(u).forEach(function(k){C[k]===void 0&&x(k)&&h.indexOf(k)===-1&&u[k]!==void 0&&h.push(k)}),y===null&&(y=setInterval(f,i)),u=C};function f(){if(h.length===0){y&&clearInterval(y),y=null;return}var v=h.shift(),C=r.reduce(function(k,A){return A.in(k,v,u)},u[v]);if(C!==void 0)try{p[v]=c(C)}catch(k){console.error("redux-persist/createPersistoid: error serializing state",k)}else delete p[v];h.length===0&&m()}function m(){Object.keys(p).forEach(function(v){u[v]===void 0&&delete p[v]}),b=l.setItem(s,c(p)).catch(w)}function x(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function w(v){d&&d(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var S=function(){for(;h.length!==0;)f();return b||Promise.resolve()};return{update:g,flush:S}}function Px(e){return JSON.stringify(e)}function Ox(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Rl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(c){return c}:typeof e.deserialize=="function"?s=e.deserialize:s=Ax,r.getItem(n).then(function(l){if(l)try{var c={},d=s(l);return Object.keys(d).forEach(function(u){c[u]=t.reduceRight(function(p,h){return h.out(p,u,d)},s(d[u]))}),c}catch(u){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(l),u),u}else return})}function Ax(e){return JSON.parse(e)}function Ix(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:Rl).concat(e.key);return t.removeItem(n,Nx)}function Nx(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cu(n,!0).forEach(function(r){Fx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mx(e,t){if(e==null)return{};var n=Dx(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _x=5e3;function $x(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:wx;e.debug;var r=e.stateReconciler===void 0?Tx:e.stateReconciler,i=e.getStoredState||Ox,s=e.timeout!==void 0?e.timeout:_x,l=null,c=!1,d=!0,u=function(h){return h._persist.rehydrated&&l&&!d&&l.update(h),h};return function(p,h){var y=p||{},b=y._persist,g=Mx(y,["_persist"]),f=g;if(h.type===xu){var m=!1,x=function(z,M){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),z,M),m||(h.rehydrate(e.key,z,M),m=!0)};if(s&&setTimeout(function(){!m&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),d=!1,l||(l=kx(e)),b)return Dn({},t(f,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(A){var z=e.migrate||function(M,$){return Promise.resolve(M)};z(A,n).then(function(M){x(M)},function(M){process.env.NODE_ENV!=="production"&&M&&console.error("redux-persist: migration error",M),x(void 0,M)})},function(A){x(void 0,A)}),Dn({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===vu)return c=!0,h.result(Ix(e)),Dn({},t(f,h),{_persist:b});if(h.type===yu)return h.result(l&&l.flush()),Dn({},t(f,h),{_persist:b});if(h.type===bu)d=!0;else if(h.type===ql){if(c)return Dn({},f,{_persist:Dn({},b,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),S=h.payload,v=r!==!1&&S!==void 0?r(S,p,w,e):w,C=Dn({},v,{_persist:Dn({},b,{rehydrated:!0})});return u(C)}}}if(!b)return t(p,h);var k=t(f,h);return k===f?p:u(Dn({},k,{_persist:b}))}}function Eu(e){return Bx(e)||Lx(e)||zx()}function zx(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Lx(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Bx(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Tu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tu(n,!0).forEach(function(r){jx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ku={registry:[],bootstrapped:!1},Wx=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ku,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Su:return Yl({},t,{registry:[].concat(Eu(t.registry),[n.key])});case ql:var r=t.registry.indexOf(n.key),i=Eu(t.registry);return i.splice(r,1),Yl({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function Vx(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(u){r[u]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(u,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=Pl(Wx,ku,void 0),l=function(p){s.dispatch({type:Su,key:p})},c=function(p,h,y){var b={type:ql,payload:h,err:y,key:p};e.dispatch(b),s.dispatch(b)},d=Yl({},s,{purge:function(){var p=[];return e.dispatch({type:vu,result:function(y){p.push(y)}}),Promise.all(p)},flush:function(){var p=[];return e.dispatch({type:yu,result:function(y){p.push(y)}}),Promise.all(p)},pause:function(){e.dispatch({type:bu})},persist:function(){e.dispatch({type:xu,register:l,rehydrate:c})}});return d.persist(),d}function Pu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ux}=Object.prototype,{getPrototypeOf:Gl}=Object,{iterator:Ss,toStringTag:Ou}=Symbol,ws=(e=>t=>{const n=Ux.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>ws(t)===e),Cs=e=>t=>typeof t===e,{isArray:zr}=Array,Lr=Cs("undefined");function Lo(e){return e!==null&&!Lr(e)&&e.constructor!==null&&!Lr(e.constructor)&&Nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Au=tn("ArrayBuffer");function Hx(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Au(e.buffer),t}const Rx=Cs("string"),Nt=Cs("function"),Iu=Cs("number"),Bo=e=>e!==null&&typeof e=="object",qx=e=>e===!0||e===!1,Es=e=>{if(ws(e)!=="object")return!1;const t=Gl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Ou in e)&&!(Ss in e)},Yx=e=>{if(!Bo(e)||Lo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Gx=tn("Date"),Kx=tn("File"),Xx=tn("Blob"),Jx=tn("FileList"),Qx=e=>Bo(e)&&Nt(e.pipe),Zx=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nt(e.append)&&((t=ws(e))==="formdata"||t==="object"&&Nt(e.toString)&&e.toString()==="[object FormData]"))},ev=tn("URLSearchParams"),[tv,nv,rv,ov]=["ReadableStream","Request","Response","Headers"].map(tn),iv=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),zr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Lo(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let c;for(r=0;r<l;r++)c=s[r],t.call(null,e[c],c,e)}}function Nu(e,t){if(Lo(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const cr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Fu=e=>!Lr(e)&&e!==cr;function Kl(){const{caseless:e,skipUndefined:t}=Fu(this)&&this||{},n={},r=(i,s)=>{const l=e&&Nu(n,s)||s;Es(n[l])&&Es(i)?n[l]=Kl(n[l],i):Es(i)?n[l]=Kl({},i):zr(i)?n[l]=i.slice():(!t||!Lr(i))&&(n[l]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&jo(arguments[i],r);return n}const sv=(e,t,n,{allOwnKeys:r}={})=>(jo(t,(i,s)=>{n&&Nt(i)?e[s]=Pu(i,n):e[s]=i},{allOwnKeys:r}),e),av=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},cv=(e,t,n,r)=>{let i,s,l;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)l=i[s],(!r||r(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=n!==!1&&Gl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},pv=e=>{if(!e)return null;if(zr(e))return e;let t=e.length;if(!Iu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Gl(Uint8Array)),fv=(e,t)=>{const r=(e&&e[Ss]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},hv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gv=tn("HTMLFormElement"),mv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Mu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yv=tn("RegExp"),Du=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};jo(n,(i,s)=>{let l;(l=t(i,s,e))!==!1&&(r[s]=l||i)}),Object.defineProperties(e,r)},bv=e=>{Du(e,(t,n)=>{if(Nt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Nt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return zr(e)?r(e):r(String(e).split(t)),n},vv=()=>{},Sv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wv(e){return!!(e&&Nt(e.append)&&e[Ou]==="FormData"&&e[Ss])}const Cv=e=>{const t=new Array(10),n=(r,i)=>{if(Bo(r)){if(t.indexOf(r)>=0)return;if(Lo(r))return r;if(!("toJSON"in r)){t[i]=r;const s=zr(r)?[]:{};return jo(r,(l,c)=>{const d=n(l,i+1);!Lr(d)&&(s[c]=d)}),t[i]=void 0,s}}return r};return n(e,0)},Ev=tn("AsyncFunction"),Tv=e=>e&&(Bo(e)||Nt(e))&&Nt(e.then)&&Nt(e.catch),_u=((e,t)=>e?setImmediate:t?((n,r)=>(cr.addEventListener("message",({source:i,data:s})=>{i===cr&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),cr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Nt(cr.postMessage)),kv=typeof queueMicrotask<"u"?queueMicrotask.bind(cr):typeof process<"u"&&process.nextTick||_u,R={isArray:zr,isArrayBuffer:Au,isBuffer:Lo,isFormData:Zx,isArrayBufferView:Hx,isString:Rx,isNumber:Iu,isBoolean:qx,isObject:Bo,isPlainObject:Es,isEmptyObject:Yx,isReadableStream:tv,isRequest:nv,isResponse:rv,isHeaders:ov,isUndefined:Lr,isDate:Gx,isFile:Kx,isBlob:Xx,isRegExp:yv,isFunction:Nt,isStream:Qx,isURLSearchParams:ev,isTypedArray:uv,isFileList:Jx,forEach:jo,merge:Kl,extend:sv,trim:iv,stripBOM:av,inherits:lv,toFlatObject:cv,kindOf:ws,kindOfTest:tn,endsWith:dv,toArray:pv,forEachEntry:fv,matchAll:hv,isHTMLForm:gv,hasOwnProperty:Mu,hasOwnProp:Mu,reduceDescriptors:Du,freezeMethods:bv,toObjectSet:xv,toCamelCase:mv,noop:vv,toFiniteNumber:Sv,findKey:Nu,global:cr,isContextDefined:Fu,isSpecCompliantForm:wv,toJSONObject:Cv,isAsyncFn:Ev,isThenable:Tv,setImmediate:_u,asap:kv,isIterable:e=>e!=null&&Nt(e[Ss])};function Ne(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}R.inherits(Ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:R.toJSONObject(this.config),code:this.code,status:this.status}}});const $u=Ne.prototype,zu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zu[e]={value:e}}),Object.defineProperties(Ne,zu),Object.defineProperty($u,"isAxiosError",{value:!0}),Ne.from=(e,t,n,r,i,s)=>{const l=Object.create($u);R.toFlatObject(e,l,function(p){return p!==Error.prototype},u=>u!=="isAxiosError");const c=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Ne.call(l,c,d,n,r,i),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",s&&Object.assign(l,s),l};const Pv=null;function Xl(e){return R.isPlainObject(e)||R.isArray(e)}function Lu(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function Bu(e,t,n){return e?e.concat(t).map(function(i,s){return i=Lu(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Ov(e){return R.isArray(e)&&!e.some(Xl)}const Av=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function Ts(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!R.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||p,s=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&R.isSpecCompliantForm(t);if(!R.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(R.isDate(g))return g.toISOString();if(R.isBoolean(g))return g.toString();if(!d&&R.isBlob(g))throw new Ne("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(g)||R.isTypedArray(g)?d&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,f,m){let x=g;if(g&&!m&&typeof g=="object"){if(R.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(R.isArray(g)&&Ov(g)||(R.isFileList(g)||R.endsWith(f,"[]"))&&(x=R.toArray(g)))return f=Lu(f),x.forEach(function(S,v){!(R.isUndefined(S)||S===null)&&t.append(l===!0?Bu([f],v,s):l===null?f:f+"[]",u(S))}),!1}return Xl(g)?!0:(t.append(Bu(m,f,s),u(g)),!1)}const h=[],y=Object.assign(Av,{defaultVisitor:p,convertValue:u,isVisitable:Xl});function b(g,f){if(!R.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),R.forEach(g,function(x,w){(!(R.isUndefined(x)||x===null)&&i.call(t,x,R.isString(w)?w.trim():w,f,y))===!0&&b(x,f?f.concat(w):[w])}),h.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return b(e),t}function ju(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Jl(e,t){this._pairs=[],e&&Ts(e,this,t)}const Wu=Jl.prototype;Wu.append=function(t,n){this._pairs.push([t,n])},Wu.toString=function(t){const n=t?function(r){return t.call(this,r,ju)}:ju;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Iv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Vu(e,t,n){if(!t)return e;const r=n&&n.encode||Iv;R.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=R.isURLSearchParams(t)?t.toString():new Jl(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Uu{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Hu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Jl,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Ql=typeof window<"u"&&typeof document<"u",Zl=typeof navigator=="object"&&navigator||void 0,Fv=Ql&&(!Zl||["ReactNative","NativeScript","NS"].indexOf(Zl.product)<0),Mv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Dv=Ql&&window.location.href||"http://localhost",wt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ql,hasStandardBrowserEnv:Fv,hasStandardBrowserWebWorkerEnv:Mv,navigator:Zl,origin:Dv},Symbol.toStringTag,{value:"Module"})),...Nv};function _v(e,t){return Ts(e,new wt.classes.URLSearchParams,{visitor:function(n,r,i,s){return wt.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function $v(e){return R.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zv(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Ru(e){function t(n,r,i,s){let l=n[s++];if(l==="__proto__")return!0;const c=Number.isFinite(+l),d=s>=n.length;return l=!l&&R.isArray(i)?i.length:l,d?(R.hasOwnProp(i,l)?i[l]=[i[l],r]:i[l]=r,!c):((!i[l]||!R.isObject(i[l]))&&(i[l]=[]),t(n,r,i[l],s)&&R.isArray(i[l])&&(i[l]=zv(i[l])),!c)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,i)=>{t($v(r),i,n,0)}),n}return null}function Lv(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Wo={transitional:Hu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=R.isObject(t);if(s&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return i?JSON.stringify(Ru(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _v(t,this.formSerializer).toString();if((c=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ts(c?{"files[]":t}:t,d&&new d,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Lv(t)):t}],transformResponse:[function(t){const n=this.transitional||Wo.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!this.responseType||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(c){if(l)throw c.name==="SyntaxError"?Ne.from(c,Ne.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch"],e=>{Wo.headers[e]={}});const Bv=R.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),jv=e=>{const t={};let n,r,i;return e&&e.split(`
20
+ `).forEach(function(l){i=l.indexOf(":"),n=l.substring(0,i).trim().toLowerCase(),r=l.substring(i+1).trim(),!(!n||t[n]&&Bv[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},qu=Symbol("internals");function Vo(e){return e&&String(e).trim().toLowerCase()}function ks(e){return e===!1||e==null?e:R.isArray(e)?e.map(ks):String(e)}function Wv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Vv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ec(e,t,n,r,i){if(R.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function Uv(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Hv(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,l){return this[r].call(this,t,i,s,l)},configurable:!0})})}let Ft=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(c,d,u){const p=Vo(d);if(!p)throw new Error("header name must be a non-empty string");const h=R.findKey(i,p);(!h||i[h]===void 0||u===!0||u===void 0&&i[h]!==!1)&&(i[h||d]=ks(c))}const l=(c,d)=>R.forEach(c,(u,p)=>s(u,p,d));if(R.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(R.isString(t)&&(t=t.trim())&&!Vv(t))l(jv(t),n);else if(R.isObject(t)&&R.isIterable(t)){let c={},d,u;for(const p of t){if(!R.isArray(p))throw TypeError("Object iterator must return a key-value pair");c[u=p[0]]=(d=c[u])?R.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}l(c,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Vo(t),t){const r=R.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Wv(i);if(R.isFunction(n))return n.call(this,i,r);if(R.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Vo(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ec(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(l){if(l=Vo(l),l){const c=R.findKey(r,l);c&&(!n||ec(r,r[c],c,n))&&(delete r[c],i=!0)}}return R.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||ec(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return R.forEach(this,(i,s)=>{const l=R.findKey(r,s);if(l){n[l]=ks(i),delete n[s];return}const c=t?Uv(s):String(s).trim();c!==s&&delete n[s],n[c]=ks(i),r[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
21
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[qu]=this[qu]={accessors:{}}).accessors,i=this.prototype;function s(l){const c=Vo(l);r[c]||(Hv(i,l),r[c]=!0)}return R.isArray(t)?t.forEach(s):s(t),this}};Ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),R.reduceDescriptors(Ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),R.freezeMethods(Ft);function tc(e,t){const n=this||Wo,r=t||n,i=Ft.from(r.headers);let s=r.data;return R.forEach(e,function(c){s=c.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Yu(e){return!!(e&&e.__CANCEL__)}function Br(e,t,n){Ne.call(this,e??"canceled",Ne.ERR_CANCELED,t,n),this.name="CanceledError"}R.inherits(Br,Ne,{__CANCEL__:!0});function Gu(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ne("Request failed with status code "+n.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Rv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function qv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,l;return t=t!==void 0?t:1e3,function(d){const u=Date.now(),p=r[s];l||(l=u),n[i]=d,r[i]=u;let h=s,y=0;for(;h!==i;)y+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-l<t)return;const b=p&&u-p;return b?Math.round(y*1e3/b):void 0}}function Yv(e,t){let n=0,r=1e3/t,i,s;const l=(u,p=Date.now())=>{n=p,i=null,s&&(clearTimeout(s),s=null),e(...u)};return[(...u)=>{const p=Date.now(),h=p-n;h>=r?l(u,p):(i=u,s||(s=setTimeout(()=>{s=null,l(i)},r-h)))},()=>i&&l(i)]}const Ps=(e,t,n=3)=>{let r=0;const i=qv(50,250);return Yv(s=>{const l=s.loaded,c=s.lengthComputable?s.total:void 0,d=l-r,u=i(d),p=l<=c;r=l;const h={loaded:l,total:c,progress:c?l/c:void 0,bytes:d,rate:u||void 0,estimated:u&&c&&p?(c-l)/u:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(h)},n)},Ku=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Xu=e=>(...t)=>R.asap(()=>e(...t)),Gv=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,Kv=wt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,l){if(typeof document>"u")return;const c=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&c.push(`path=${r}`),R.isString(i)&&c.push(`domain=${i}`),s===!0&&c.push("secure"),R.isString(l)&&c.push(`SameSite=${l}`),document.cookie=c.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Xv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ju(e,t,n){let r=!Xv(t);return e&&(r||n==!1)?Jv(e,t):t}const Qu=e=>e instanceof Ft?{...e}:e;function dr(e,t){t=t||{};const n={};function r(u,p,h,y){return R.isPlainObject(u)&&R.isPlainObject(p)?R.merge.call({caseless:y},u,p):R.isPlainObject(p)?R.merge({},p):R.isArray(p)?p.slice():p}function i(u,p,h,y){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u,h,y)}else return r(u,p,h,y)}function s(u,p){if(!R.isUndefined(p))return r(void 0,p)}function l(u,p){if(R.isUndefined(p)){if(!R.isUndefined(u))return r(void 0,u)}else return r(void 0,p)}function c(u,p,h){if(h in t)return r(u,p);if(h in e)return r(void 0,u)}const d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(u,p,h)=>i(Qu(u),Qu(p),h,!0)};return R.forEach(Object.keys({...e,...t}),function(p){const h=d[p]||i,y=h(e[p],t[p],p);R.isUndefined(y)&&h!==c||(n[p]=y)}),n}const Zu=e=>{const t=dr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:l,auth:c}=t;if(t.headers=l=Ft.from(l),t.url=Vu(Ju(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),R.isFormData(n)){if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(R.isFunction(n.getHeaders)){const d=n.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([p,h])=>{u.includes(p.toLowerCase())&&l.set(p,h)})}}if(wt.hasStandardBrowserEnv&&(r&&R.isFunction(r)&&(r=r(t)),r||r!==!1&&Gv(t.url))){const d=i&&s&&Kv.read(s);d&&l.set(i,d)}return t},Qv=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Zu(e);let s=i.data;const l=Ft.from(i.headers).normalize();let{responseType:c,onUploadProgress:d,onDownloadProgress:u}=i,p,h,y,b,g;function f(){b&&b(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function x(){if(!m)return;const S=Ft.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};Gu(function(A){n(A),f()},function(A){r(A),f()},C),m=null}"onloadend"in m?m.onloadend=x:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(x)},m.onabort=function(){m&&(r(new Ne("Request aborted",Ne.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const C=v&&v.message?v.message:"Network Error",k=new Ne(C,Ne.ERR_NETWORK,e,m);k.event=v||null,r(k),m=null},m.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||Hu;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new Ne(v,C.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,e,m)),m=null},s===void 0&&l.setContentType(null),"setRequestHeader"in m&&R.forEach(l.toJSON(),function(v,C){m.setRequestHeader(C,v)}),R.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),c&&c!=="json"&&(m.responseType=i.responseType),u&&([y,g]=Ps(u,!0),m.addEventListener("progress",y)),d&&m.upload&&([h,b]=Ps(d),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(p=S=>{m&&(r(!S||S.type?new Br(null,e,m):S),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));const w=Rv(i.url);if(w&&wt.protocols.indexOf(w)===-1){r(new Ne("Unsupported protocol "+w+":",Ne.ERR_BAD_REQUEST,e));return}m.send(s||null)})},Zv=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(u){if(!i){i=!0,c();const p=u instanceof Error?u:this.reason;r.abort(p instanceof Ne?p:new Br(p instanceof Error?p.message:p))}};let l=t&&setTimeout(()=>{l=null,s(new Ne(`timeout ${t} of ms exceeded`,Ne.ETIMEDOUT))},t);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),e=null)};e.forEach(u=>u.addEventListener("abort",s));const{signal:d}=r;return d.unsubscribe=()=>R.asap(c),d}},e1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},t1=async function*(e,t){for await(const n of n1(e))yield*e1(n,t)},n1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},ef=(e,t,n,r)=>{const i=t1(e,t);let s=0,l,c=d=>{l||(l=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:u,value:p}=await i.next();if(u){c(),d.close();return}let h=p.byteLength;if(n){let y=s+=h;n(y)}d.enqueue(new Uint8Array(p))}catch(u){throw c(u),u}},cancel(d){return c(d),i.return()}},{highWaterMark:2})},tf=64*1024,{isFunction:Os}=R,r1=(({Request:e,Response:t})=>({Request:e,Response:t}))(R.global),{ReadableStream:nf,TextEncoder:rf}=R.global,of=(e,...t)=>{try{return!!e(...t)}catch{return!1}},o1=e=>{e=R.merge.call({skipUndefined:!0},r1,e);const{fetch:t,Request:n,Response:r}=e,i=t?Os(t):typeof fetch=="function",s=Os(n),l=Os(r);if(!i)return!1;const c=i&&Os(nf),d=i&&(typeof rf=="function"?(g=>f=>g.encode(f))(new rf):async g=>new Uint8Array(await new n(g).arrayBuffer())),u=s&&c&&of(()=>{let g=!1;const f=new n(wt.origin,{body:new nf,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),p=l&&c&&of(()=>R.isReadableStream(new r("").body)),h={stream:p&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let x=f&&f[g];if(x)return x.call(f);throw new Ne(`Response type '${g}' is not supported`,Ne.ERR_NOT_SUPPORT,m)})});const y=async g=>{if(g==null)return 0;if(R.isBlob(g))return g.size;if(R.isSpecCompliantForm(g))return(await new n(wt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(R.isArrayBufferView(g)||R.isArrayBuffer(g))return g.byteLength;if(R.isURLSearchParams(g)&&(g=g+""),R.isString(g))return(await d(g)).byteLength},b=async(g,f)=>{const m=R.toFiniteNumber(g.getContentLength());return m??y(f)};return async g=>{let{url:f,method:m,data:x,signal:w,cancelToken:S,timeout:v,onDownloadProgress:C,onUploadProgress:k,responseType:A,headers:z,withCredentials:M="same-origin",fetchOptions:$}=Zu(g),I=t||fetch;A=A?(A+"").toLowerCase():"text";let E=Zv([w,S&&S.toAbortSignal()],v),N=null;const _=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let W;try{if(k&&u&&m!=="get"&&m!=="head"&&(W=await b(z,x))!==0){let U=new n(f,{method:"POST",body:x,duplex:"half"}),q;if(R.isFormData(x)&&(q=U.headers.get("content-type"))&&z.setContentType(q),U.body){const[G,J]=Ku(W,Ps(Xu(k)));x=ef(U.body,tf,G,J)}}R.isString(M)||(M=M?"include":"omit");const F=s&&"credentials"in n.prototype,B={...$,signal:E,method:m.toUpperCase(),headers:z.normalize().toJSON(),body:x,duplex:"half",credentials:F?M:void 0};N=s&&new n(f,B);let O=await(s?I(N,$):I(f,B));const V=p&&(A==="stream"||A==="response");if(p&&(C||V&&_)){const U={};["status","statusText","headers"].forEach(K=>{U[K]=O[K]});const q=R.toFiniteNumber(O.headers.get("content-length")),[G,J]=C&&Ku(q,Ps(Xu(C),!0))||[];O=new r(ef(O.body,tf,G,()=>{J&&J(),_&&_()}),U)}A=A||"text";let L=await h[R.findKey(h,A)||"text"](O,g);return!V&&_&&_(),await new Promise((U,q)=>{Gu(U,q,{data:L,headers:Ft.from(O.headers),status:O.status,statusText:O.statusText,config:g,request:N})})}catch(F){throw _&&_(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,g,N),{cause:F.cause||F}):Ne.from(F,F&&F.code,g,N)}}},i1=new Map,sf=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let l=s.length,c=l,d,u,p=i1;for(;c--;)d=s[c],u=p.get(d),u===void 0&&p.set(d,u=c?new Map:o1(t)),p=u;return u};sf();const nc={http:Pv,xhr:Qv,fetch:{get:sf}};R.forEach(nc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const af=e=>`- ${e}`,s1=e=>R.isFunction(e)||e===null||e===!1;function a1(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let l=0;l<n;l++){r=e[l];let c;if(i=r,!s1(r)&&(i=nc[(c=String(r)).toLowerCase()],i===void 0))throw new Ne(`Unknown adapter '${c}'`);if(i&&(R.isFunction(i)||(i=i.get(t))))break;s[c||"#"+l]=i}if(!i){const l=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build"));let c=n?l.length>1?`since :
22
+ `+l.map(af).join(`
23
+ `):" "+af(l[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}const lf={getAdapter:a1,adapters:nc};function rc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Br(null,e)}function cf(e){return rc(e),e.headers=Ft.from(e.headers),e.data=tc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lf.getAdapter(e.adapter||Wo.adapter,e)(e).then(function(r){return rc(e),r.data=tc.call(e,e.transformResponse,r),r.headers=Ft.from(r.headers),r},function(r){return Yu(r)||(rc(e),r&&r.response&&(r.response.data=tc.call(e,e.transformResponse,r.response),r.response.headers=Ft.from(r.response.headers))),Promise.reject(r)})}const df="1.13.2",As={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{As[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const pf={};As.transitional=function(t,n,r){function i(s,l){return"[Axios v"+df+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,c)=>{if(t===!1)throw new Ne(i(l," has been removed"+(n?" in "+n:"")),Ne.ERR_DEPRECATED);return n&&!pf[l]&&(pf[l]=!0,console.warn(i(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,c):!0}},As.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function l1(e,t,n){if(typeof e!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],l=t[s];if(l){const c=e[s],d=c===void 0||l(c,s,e);if(d!==!0)throw new Ne("option "+s+" must be "+d,Ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ne("Unknown option "+s,Ne.ERR_BAD_OPTION)}}const Is={assertOptions:l1,validators:As},dn=Is.validators;let pr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Uu,response:new Uu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
24
+ `+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=dr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Is.assertOptions(r,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),i!=null&&(R.isFunction(i)?n.paramsSerializer={serialize:i}:Is.assertOptions(i,{encode:dn.function,serialize:dn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Is.assertOptions(n,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&R.merge(s.common,s[n.method]);s&&R.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Ft.concat(l,s);const c=[];let d=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(d=d&&f.synchronous,c.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let p,h=0,y;if(!d){const g=[cf.bind(this),void 0];for(g.unshift(...c),g.push(...u),y=g.length,p=Promise.resolve(n);h<y;)p=p.then(g[h++],g[h++]);return p}y=c.length;let b=n;for(;h<y;){const g=c[h++],f=c[h++];try{b=g(b)}catch(m){f.call(this,m);break}}try{p=cf.call(this,b)}catch(g){return Promise.reject(g)}for(h=0,y=u.length;h<y;)p=p.then(u[h++],u[h++]);return p}getUri(t){t=dr(this.defaults,t);const n=Ju(t.baseURL,t.url,t.allowAbsoluteUrls);return Vu(n,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){pr.prototype[t]=function(n,r){return this.request(dr(r||{},{method:t,url:n,data:(r||{}).data}))}}),R.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,c){return this.request(dr(c||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}pr.prototype[t]=n(),pr.prototype[t+"Form"]=n(!0)});let c1=class py{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const l=new Promise(c=>{r.subscribe(c),s=c}).then(i);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,c){r.reason||(r.reason=new Br(s,l,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new py(function(i){t=i}),cancel:t}}};function d1(e){return function(n){return e.apply(null,n)}}function p1(e){return R.isObject(e)&&e.isAxiosError===!0}const oc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(oc).forEach(([e,t])=>{oc[t]=e});function uf(e){const t=new pr(e),n=Pu(pr.prototype.request,t);return R.extend(n,pr.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return uf(dr(e,i))},n}const nt=uf(Wo);nt.Axios=pr,nt.CanceledError=Br,nt.CancelToken=c1,nt.isCancel=Yu,nt.VERSION=df,nt.toFormData=Ts,nt.AxiosError=Ne,nt.Cancel=nt.CanceledError,nt.all=function(t){return Promise.all(t)},nt.spread=d1,nt.isAxiosError=p1,nt.mergeConfig=dr,nt.AxiosHeaders=Ft,nt.formToJSON=e=>Ru(R.isHTMLForm(e)?new FormData(e):e),nt.getAdapter=lf.getAdapter,nt.HttpStatusCode=oc,nt.default=nt;const{Axios:o5,AxiosError:i5,CanceledError:s5,isCancel:a5,CancelToken:l5,VERSION:c5,all:d5,Cancel:p5,isAxiosError:u5,spread:f5,toFormData:h5,AxiosHeaders:g5,HttpStatusCode:m5,formToJSON:y5,getAdapter:b5,mergeConfig:x5}=nt;function Ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var u1={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ic(e,t){function n(i,s,l){if(!(typeof document>"u")){l=Ns({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var d in l)l[d]&&(c+="; "+d,l[d]!==!0&&(c+="="+l[d].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],l={},c=0;c<s.length;c++){var d=s[c].split("="),u=d.slice(1).join("=");try{var p=decodeURIComponent(d[0]);if(l[p]=e.read(u,p),i===p)break}catch{}}return i?l[i]:l}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",Ns({},s,{expires:-1}))},withAttributes:function(i){return ic(this.converter,Ns({},this.attributes,i))},withConverter:function(i){return ic(Ns({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var _n=ic(u1,{path:"/"});const f1={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let jr="https://omnichannel-apiv1.airaops.com/";try{if(typeof{url:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:pl&&pl.tagName.toUpperCase()==="SCRIPT"&&pl.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&f1?.VITE_API_URL)jr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(jr=process.env.VITE_API_URL)}}catch{}const h1=e=>{jr=e,at.defaults.baseURL=jr},g1=e=>{e?_n.set("token",e,{secure:!0,sameSite:"Strict"}):_n.remove("token")},m1=()=>_n.get("token")||null,at=nt.create({baseURL:jr,transformRequest:[function(e,t){const n=m1();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let sc=!1,ac=null;at.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=_n.get("refreshToken");if(r)try{sc||(sc=!0,ac=nt.post(`${jr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await ac,{token:s,refreshToken:l}=i.data;return _n.set("token",s,{secure:!0,sameSite:"Strict"}),_n.set("refreshToken",l),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,at(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(_n.remove("token"),_n.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{sc=!1,ac=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(_n.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Uo=yt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Fs=yt("dashboard/fetchProductDashboardMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await at.get("/dashboard/metrics/category",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch product dashboard metrics";return t(r)}}),Wr=yt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{const n=await at.get("/auth/verify"),r=n.data?.data!=null?n.data.data:n.data,i=r?.companyId||n.data?.companyId;if(i){const s=r?.id!=null?r.id:n.data?.id!=null?n.data.id:null,l=(r?.firstName!=null?r.firstName:n.data?.firstName!=null?n.data.firstName:"").toString().trim(),c=(r?.lastName!=null?r.lastName:n.data?.lastName!=null?n.data.lastName:"").toString().trim(),d=[l,c].filter(Boolean).join(" ")||(r?.name!=null?r.name:n.data?.name!=null?n.data.name:"");return{companyId:i,createdById:s??null,createdByName:d||""}}else throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),Mt=yt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await at.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Vr=yt("dashboard/fetchStores",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch stores";return t(r)}}),ur=yt("dashboard/fetchCategories",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/category",{params:e})).data||{}}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch categories";return t(r)}}),$n=yt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await at.get("/store-inventory",{params:e})).data||{}}catch(n){return t(n.response?.data||n.message)}}),Ms=yt("dashboard/createCatalog",async({name:e,slug:t,description:n="",storeCode:r,createdById:i,createdByName:s,products:l},{rejectWithValue:c})=>{try{return(await at.post("/catalogues",{name:e,slug:t,description:n,storeCode:Array.isArray(r)?r:[r],createdById:i,createdByName:s,products:Array.isArray(l)?l:[]})).data}catch(d){const u=d.response?.data?.message||d.message||"Failed to create catalog";return c(u)}}),Ho=yt("dashboard/updateCatalog",async({id:e,name:t,slug:n,status:r},{rejectWithValue:i})=>{try{const s=`/catalogues/${e}`,l={name:t,slug:n,status:r===!0||r==="Active"};return(await at.put(s,l)).data}catch(s){const l=s.response?.data?.message||s.message||"Failed to update catalog";return i(l)}}),Ds=yt("dashboard/deleteCatalog",async(e,{rejectWithValue:t})=>{try{const n=`/catalogues/${e}`;return await at.delete(n),e}catch(n){const r=n.response?.data?.message||n.message||"Failed to delete catalog";return t(r)}}),_s=yt("dashboard/createOsaRequest",async({storeCodes:e,products:t=[],categories:n=[]},{rejectWithValue:r})=>{try{const i=Array.isArray(e)?e:[e].filter(Boolean),s=Array.isArray(t)?t:[],l=Array.isArray(n)?n:[],c={storeCodes:i};return s.length>0&&(c.products=s),l.length>0&&(c.categories=l),(await at.post("/osa",c)).data}catch(i){const s=i.response?.data?.message||i.message||"Failed to create OSA request";return r(s)}}),ff=mu({name:"dashboard",initialState:{loading:!1,companyId:"",createdById:null,createdByName:"",error:null,metrics:{},productDashboardMetrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],categoryList:[],categoryPagination:{currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1},stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:"",lastSyncHoursAgo:null},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1},createCatalogLoading:!1,createCatalogError:null,updateCatalogLoading:!1,updateCatalogError:null,deleteCatalogLoading:!1,deleteCatalogError:null,createOsaRequestLoading:!1,createOsaRequestError:null},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},clearCreateCatalogError:e=>{e.createCatalogError=null},clearUpdateCatalogError:e=>{e.updateCatalogError=null},clearDeleteCatalogError:e=>{e.deleteCatalogError=null},clearCreateOsaRequestError:e=>{e.createOsaRequestError=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Uo.pending,t=>{t.loading=!0,t.error=null}).addCase(Uo.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Uo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Fs.pending,t=>{t.loading=!0}).addCase(Fs.fulfilled,(t,n)=>{t.loading=!1,t.productDashboardMetrics=n.payload||{}}).addCase(Fs.rejected,t=>{t.loading=!1,t.productDashboardMetrics={}}),e.addCase(Mt.pending,t=>{t.loading=!0}).addCase(Mt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Mt.rejected,t=>{t.loading=!1}),e.addCase(Wr.pending,t=>{t.loading=!0,t.error=null}),e.addCase(Wr.fulfilled,(t,n)=>{t.loading=!1;const r=n.payload;r&&typeof r=="object"&&"companyId"in r?(t.companyId=r.companyId,t.createdById=r.createdById!=null?r.createdById:null,t.createdByName=r.createdByName!=null?r.createdByName:""):t.companyId=r,t.error=null}),e.addCase(Wr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(ur.pending,t=>{t.loading=!0,t.error=null}).addCase(ur.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},i=Array.isArray(r.data)?r.data:[];t.categoryList=i;const s=r.pagination||{};t.categoryPagination={currentPage:typeof s.currentPage=="number"?s.currentPage:1,limit:typeof s.limit=="number"?s.limit:10,totalCount:typeof s.totalCount=="number"?s.totalCount:0,totalPages:typeof s.totalPages=="number"?s.totalPages:1,hasNextPage:typeof s.hasNextPage=="boolean"?s.hasNextPage:!1}}).addCase(ur.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch categories",t.categoryList=[],t.categoryPagination={currentPage:1,limit:10,totalCount:0,totalPages:1,hasNextPage:!1}}),e.addCase(Vr.pending,t=>{t.loading=!0,t.error=null}).addCase(Vr.fulfilled,(t,n)=>{t.loading=!1,t.error=null;const r=n.payload||{},s=(Array.isArray(r.stores)?r.stores:Array.isArray(r.data)?r.data:Array.isArray(r)?r:[]).map(l=>{const c=l.id??l.storeCode??l.storeId,d=l.name??l.storeName??l.storel??"",u=l.storeCode??l.id??c;return{id:c,name:d,storeCode:u}});t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...s]}).addCase(Vr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch stores",t.stores=[]}),e.addCase($n.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase($n.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[],s=(y,b=0)=>{if(y==null||y==="")return b;const g=Number(y);return Number.isFinite(g)?g:b},l={};i.forEach(y=>{if(!y)return;const b=y.categoryName||"Uncategorized";l[b]||(l[b]=[]);const g=s(y.stock),f=s(y.inShelf??y.inshelf??y.in_shelf),m=g>0?Math.round(f/g*100):0;l[b].push({...y,stock:g,inShelf:f,quantity:f,osa:m})}),t.products=Object.values(l).flat();const c=Object.values(l).flat(),d=Object.keys(l).length,u=c.length;t.homePageCardSummary={...t.homePageCardSummary,totalCategories:d,totalProducts:u},t.productsByCategory=l;const p=r.pagination||{},h=typeof p.totalCount=="number"?p.totalCount:Object.values(l).reduce((y,b)=>y+b.length,0);t.pagination={currentPage:typeof p.currentPage=="number"?p.currentPage:1,limit:typeof p.limit=="number"?p.limit:20,totalCount:h,totalPages:typeof p.totalPages=="number"?p.totalPages:1,hasNextPage:typeof p.hasNextPage=="boolean"?p.hasNextPage:!1}}).addCase($n.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""}),e.addCase(Ms.pending,t=>{t.createCatalogLoading=!0,t.createCatalogError=null}).addCase(Ms.fulfilled,t=>{t.createCatalogLoading=!1,t.createCatalogError=null}).addCase(Ms.rejected,(t,n)=>{t.createCatalogLoading=!1,t.createCatalogError=n.payload||"Failed to create catalog"}),e.addCase(Ho.pending,t=>{t.updateCatalogLoading=!0,t.updateCatalogError=null}).addCase(Ho.fulfilled,t=>{t.updateCatalogLoading=!1,t.updateCatalogError=null}).addCase(Ho.rejected,(t,n)=>{t.updateCatalogLoading=!1,t.updateCatalogError=n.payload||"Failed to update catalog"}),e.addCase(Ds.pending,t=>{t.deleteCatalogLoading=!0,t.deleteCatalogError=null}).addCase(Ds.fulfilled,t=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=null}).addCase(Ds.rejected,(t,n)=>{t.deleteCatalogLoading=!1,t.deleteCatalogError=n.payload||"Failed to delete catalog"}),e.addCase(_s.pending,t=>{t.createOsaRequestLoading=!0,t.createOsaRequestError=null}).addCase(_s.fulfilled,t=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=null}).addCase(_s.rejected,(t,n)=>{t.createOsaRequestLoading=!1,t.createOsaRequestError=n.payload||"Failed to create OSA request"})}}),{updateMetric:S5,clearCreateCatalogError:y1,clearUpdateCatalogError:w5,clearDeleteCatalogError:C5,clearCreateOsaRequestError:b1}=ff.actions,x1=ff.reducer,Ro=yt("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const l=r||i;if(!l)throw new Error("Company ID is required");const c=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!c)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,d,u,p,h]=c;if(d=d.toLowerCase(),d!=="ftp"&&d!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const y={tenantId:l,type:d,configs:{host:u,port:Number(p),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""};return(await at.post("/ftp/sync/test-connection",y)).data}catch(l){const c=l.response?.data?.message||l.message||"Failed to test FTP connection";return s(c)}}),qo=yt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return(await at.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),Ur=yt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}try{const r=await at.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),Yo=yt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await at.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Go=yt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await at.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),Ko=yt("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");const r=`/integrations/${e}`,i=await at.patch(r,t);if(i.status>=200&&i.status<300)return i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),nn=yt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await at.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),lc={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null,lastStableActiveCatalogsCount:null},hf=mu({name:"productSettings",initialState:lc,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null,e.lastStableActiveCatalogsCount=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=lc.syncData}},extraReducers:e=>{e.addCase(Ro.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(Ro.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(Ro.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Go.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Go.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Go.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(nn.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(nn.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;if(r&&typeof r=="object"&&Array.isArray(r.data)){t.sharedCatalogues=r.data;const i=typeof r.total=="number"?r.total:0;t.sharedCataloguesTotal=i,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10,i>0&&r.data.length>=i&&(t.lastStableActiveCatalogsCount=r.data.filter(s=>s.status===!0).length)}else t.sharedCatalogues=[];t.sharedCataloguesError=null}).addCase(nn.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(qo.pending,t=>{t.loading=!0,t.error=null}).addCase(qo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=lc.syncData}).addCase(qo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Ur.pending,t=>{t.loading=!0,t.error=null}).addCase(Ur.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Ur.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(Yo.pending,t=>{t.loading=!0,t.error=null}).addCase(Yo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(Yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Ko.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Ko.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Ko.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:E5,clearTestConnectionResult:T5,clearSaveResult:v1,clearAll:k5,clearTestConnectionData:P5,clearUpdateDetailsResult:O5,clearSyncNowResult:A5,setFtpSyncData:$s,clearFtpSyncData:I5,clearMappingColumnsError:N5,clearMappingColumns:F5,clearSharedCataloguesError:M5,clearSharedCatalogues:D5,clearUpdateIntegrationByChannelIdResult:_5}=hf.actions,S1=hf.reducer;var zs={},Ls={},gf;function w1(){if(gf)return Ls;gf=1,Ls.__esModule=!0,Ls.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(c){return typeof c}:e=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var l=self[s],c="redux-persist ".concat(s," test");l.setItem(c,"test"),l.getItem(c),l.removeItem(c)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var l="".concat(s,"Storage");return r(l)?self[l]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return Ls}var mf;function C1(){if(mf)return zs;mf=1,zs.__esModule=!0,zs.default=n;var e=t(w1());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(l){return new Promise(function(c,d){c(i.getItem(l))})},setItem:function(l,c){return new Promise(function(d,u){d(i.setItem(l,c))})},removeItem:function(l){return new Promise(function(c,d){c(i.removeItem(l))})}}}return zs}var E1=C1();const T1={key:"auth",storage:typeof window<"u"?Ep(E1)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},k1=Dp({dashboard:x1,productSettings:S1}),P1=$x(T1,k1),yf=nx({reducer:P1,middleware:e=>e({serializableCheck:!1})}),O1=Vx(yf),A1=j.createContext(null),I1=({children:e,apiUrl:t,authToken:n})=>(j.useEffect(()=>{t&&h1(t)},[t]),j.useEffect(()=>{g1(n||null)},[n]),a.jsx(A1.Provider,{value:{apiUrl:t},children:e})),Xo={black:"#000",white:"#fff"},Hr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Rr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},qr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Jo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},N1={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"};function pn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Qo="$$material";function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bs.apply(null,arguments)}function F1(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function M1(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var D1=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(M1(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=F1(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),Ct="-ms-",js="-moz-",Le="-webkit-",bf="comm",cc="rule",dc="decl",_1="@import",xf="@keyframes",$1="@layer",z1=Math.abs,Ws=String.fromCharCode,L1=Object.assign;function B1(e,t){return xt(e,0)^45?(((t<<2^xt(e,0))<<2^xt(e,1))<<2^xt(e,2))<<2^xt(e,3):0}function vf(e){return e.trim()}function j1(e,t){return(e=t.exec(e))?e[0]:e}function Be(e,t,n){return e.replace(t,n)}function pc(e,t){return e.indexOf(t)}function xt(e,t){return e.charCodeAt(t)|0}function Zo(e,t,n){return e.slice(t,n)}function un(e){return e.length}function uc(e){return e.length}function Vs(e,t){return t.push(e),e}function W1(e,t){return e.map(t).join("")}var Us=1,Kr=1,Sf=0,Dt=0,pt=0,Xr="";function Hs(e,t,n,r,i,s,l){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Us,column:Kr,length:l,return:""}}function ei(e,t){return L1(Hs("",null,null,"",null,null,0),e,{length:-e.length},t)}function V1(){return pt}function U1(){return pt=Dt>0?xt(Xr,--Dt):0,Kr--,pt===10&&(Kr=1,Us--),pt}function jt(){return pt=Dt<Sf?xt(Xr,Dt++):0,Kr++,pt===10&&(Kr=1,Us++),pt}function fn(){return xt(Xr,Dt)}function Rs(){return Dt}function ti(e,t){return Zo(Xr,e,t)}function ni(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wf(e){return Us=Kr=1,Sf=un(Xr=e),Dt=0,[]}function Cf(e){return Xr="",e}function qs(e){return vf(ti(Dt-1,fc(e===91?e+2:e===40?e+1:e)))}function H1(e){for(;(pt=fn())&&pt<33;)jt();return ni(e)>2||ni(pt)>3?"":" "}function R1(e,t){for(;--t&&jt()&&!(pt<48||pt>102||pt>57&&pt<65||pt>70&&pt<97););return ti(e,Rs()+(t<6&&fn()==32&&jt()==32))}function fc(e){for(;jt();)switch(pt){case e:return Dt;case 34:case 39:e!==34&&e!==39&&fc(pt);break;case 40:e===41&&fc(e);break;case 92:jt();break}return Dt}function q1(e,t){for(;jt()&&e+pt!==57;)if(e+pt===84&&fn()===47)break;return"/*"+ti(t,Dt-1)+"*"+Ws(e===47?e:jt())}function Y1(e){for(;!ni(fn());)jt();return ti(e,Dt)}function G1(e){return Cf(Ys("",null,null,null,[""],e=wf(e),0,[0],e))}function Ys(e,t,n,r,i,s,l,c,d){for(var u=0,p=0,h=l,y=0,b=0,g=0,f=1,m=1,x=1,w=0,S="",v=i,C=s,k=r,A=S;m;)switch(g=w,w=jt()){case 40:if(g!=108&&xt(A,h-1)==58){pc(A+=Be(qs(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=qs(w);break;case 9:case 10:case 13:case 32:A+=H1(g);break;case 92:A+=R1(Rs()-1,7);continue;case 47:switch(fn()){case 42:case 47:Vs(K1(q1(jt(),Rs()),t,n),d);break;default:A+="/"}break;case 123*f:c[u++]=un(A)*x;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+p:x==-1&&(A=Be(A,/\f/g,"")),b>0&&un(A)-h&&Vs(b>32?Tf(A+";",r,n,h-1):Tf(Be(A," ","")+";",r,n,h-2),d);break;case 59:A+=";";default:if(Vs(k=Ef(A,t,n,u,p,i,c,S,v=[],C=[],h),s),w===123)if(p===0)Ys(A,t,k,k,v,s,h,c,C);else switch(y===99&&xt(A,3)===110?100:y){case 100:case 108:case 109:case 115:Ys(e,k,k,r&&Vs(Ef(e,k,k,0,0,i,c,S,i,v=[],h),C),i,C,h,c,r?v:C);break;default:Ys(A,k,k,k,[""],C,0,c,C)}}u=p=b=0,f=x=1,S=A="",h=l;break;case 58:h=1+un(A),b=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&U1()==125)continue}switch(A+=Ws(w),w*f){case 38:x=p>0?1:(A+="\f",-1);break;case 44:c[u++]=(un(A)-1)*x,x=1;break;case 64:fn()===45&&(A+=qs(jt())),y=fn(),p=h=un(S=A+=Y1(Rs())),w++;break;case 45:g===45&&un(A)==2&&(f=0)}}return s}function Ef(e,t,n,r,i,s,l,c,d,u,p){for(var h=i-1,y=i===0?s:[""],b=uc(y),g=0,f=0,m=0;g<r;++g)for(var x=0,w=Zo(e,h+1,h=z1(f=l[g])),S=e;x<b;++x)(S=vf(f>0?y[x]+" "+w:Be(w,/&\f/g,y[x])))&&(d[m++]=S);return Hs(e,t,n,i===0?cc:c,d,u,p)}function K1(e,t,n){return Hs(e,t,n,bf,Ws(V1()),Zo(e,2,-2),0)}function Tf(e,t,n,r){return Hs(e,t,n,dc,Zo(e,0,r),Zo(e,r+1,-1),r)}function Jr(e,t){for(var n="",r=uc(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function X1(e,t,n,r){switch(e.type){case $1:if(e.children.length)break;case _1:case dc:return e.return=e.return||e.value;case bf:return"";case xf:return e.return=e.value+"{"+Jr(e.children,r)+"}";case cc:e.value=e.props.join(",")}return un(n=Jr(e.children,r))?e.return=e.value+"{"+n+"}":""}function J1(e){var t=uc(e);return function(n,r,i,s){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,s)||"";return l}}function Q1(e){return function(t){t.root||(t=t.return)&&e(t)}}function kf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Z1=function(t,n,r){for(var i=0,s=0;i=s,s=fn(),i===38&&s===12&&(n[r]=1),!ni(s);)jt();return ti(t,Dt)},eS=function(t,n){var r=-1,i=44;do switch(ni(i)){case 0:i===38&&fn()===12&&(n[r]=1),t[r]+=Z1(Dt-1,n,r);break;case 2:t[r]+=qs(i);break;case 4:if(i===44){t[++r]=fn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ws(i)}while(i=jt());return t},tS=function(t,n){return Cf(eS(wf(t),n))},Pf=new WeakMap,nS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Pf.get(r))&&!i){Pf.set(t,!0);for(var s=[],l=tS(n,s),c=r.props,d=0,u=0;d<l.length;d++)for(var p=0;p<c.length;p++,u++)t.props[u]=s[d]?l[d].replace(/&\f/g,c[p]):c[p]+" "+l[d]}}},rS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Of(e,t){switch(B1(e,t)){case 5103:return Le+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Le+e+js+e+Ct+e+e;case 6828:case 4268:return Le+e+Ct+e+e;case 6165:return Le+e+Ct+"flex-"+e+e;case 5187:return Le+e+Be(e,/(\w+).+(:[^]+)/,Le+"box-$1$2"+Ct+"flex-$1$2")+e;case 5443:return Le+e+Ct+"flex-item-"+Be(e,/flex-|-self/,"")+e;case 4675:return Le+e+Ct+"flex-line-pack"+Be(e,/align-content|flex-|-self/,"")+e;case 5548:return Le+e+Ct+Be(e,"shrink","negative")+e;case 5292:return Le+e+Ct+Be(e,"basis","preferred-size")+e;case 6060:return Le+"box-"+Be(e,"-grow","")+Le+e+Ct+Be(e,"grow","positive")+e;case 4554:return Le+Be(e,/([^-])(transform)/g,"$1"+Le+"$2")+e;case 6187:return Be(Be(Be(e,/(zoom-|grab)/,Le+"$1"),/(image-set)/,Le+"$1"),e,"")+e;case 5495:case 3959:return Be(e,/(image-set\([^]*)/,Le+"$1$`$1");case 4968:return Be(Be(e,/(.+:)(flex-)?(.*)/,Le+"box-pack:$3"+Ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Le+e+e;case 4095:case 3583:case 4068:case 2532:return Be(e,/(.+)-inline(.+)/,Le+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(un(e)-1-t>6)switch(xt(e,t+1)){case 109:if(xt(e,t+4)!==45)break;case 102:return Be(e,/(.+:)(.+)-([^]+)/,"$1"+Le+"$2-$3$1"+js+(xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pc(e,"stretch")?Of(Be(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(xt(e,t+1)!==115)break;case 6444:switch(xt(e,un(e)-3-(~pc(e,"!important")&&10))){case 107:return Be(e,":",":"+Le)+e;case 101:return Be(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Le+(xt(e,14)===45?"inline-":"")+"box$3$1"+Le+"$2$3$1"+Ct+"$2box$3")+e}break;case 5936:switch(xt(e,t+11)){case 114:return Le+e+Ct+Be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Le+e+Ct+Be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Le+e+Ct+Be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Le+e+Ct+e+e}return e}var oS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case dc:t.return=Of(t.value,t.length);break;case xf:return Jr([ei(t,{value:Be(t.value,"@","@"+Le)})],i);case cc:if(t.length)return W1(t.props,function(s){switch(j1(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jr([ei(t,{props:[Be(s,/:(read-\w+)/,":"+js+"$1")]})],i);case"::placeholder":return Jr([ei(t,{props:[Be(s,/:(plac\w+)/,":"+Le+"input-$1")]}),ei(t,{props:[Be(s,/:(plac\w+)/,":"+js+"$1")]}),ei(t,{props:[Be(s,/:(plac\w+)/,Ct+"input-$1")]})],i)}return""})}},iS=[oS],sS=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(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||iS,s={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(f)});var d,u=[nS,rS];{var p,h=[X1,Q1(function(f){p.insert(f)})],y=J1(u.concat(i,h)),b=function(m){return Jr(G1(m),y)};d=function(m,x,w,S){p=w,b(m?m+"{"+x.styles+"}":x.styles),S&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new D1({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:d};return g.sheet.hydrate(c),g},Gs={exports:{}},We={};var Af;function aS(){if(Af)return We;Af=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var k=C.$$typeof;switch(k){case t:switch(C=C.type,C){case d:case u:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case c:case p:case g:case b:case l:return C;default:return k}}case n:return k}}}function v(C){return S(C)===u}return We.AsyncMode=d,We.ConcurrentMode=u,We.ContextConsumer=c,We.ContextProvider=l,We.Element=t,We.ForwardRef=p,We.Fragment=r,We.Lazy=g,We.Memo=b,We.Portal=n,We.Profiler=s,We.StrictMode=i,We.Suspense=h,We.isAsyncMode=function(C){return v(C)||S(C)===d},We.isConcurrentMode=v,We.isContextConsumer=function(C){return S(C)===c},We.isContextProvider=function(C){return S(C)===l},We.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},We.isForwardRef=function(C){return S(C)===p},We.isFragment=function(C){return S(C)===r},We.isLazy=function(C){return S(C)===g},We.isMemo=function(C){return S(C)===b},We.isPortal=function(C){return S(C)===n},We.isProfiler=function(C){return S(C)===s},We.isStrictMode=function(C){return S(C)===i},We.isSuspense=function(C){return S(C)===h},We.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===s||C===i||C===h||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===b||C.$$typeof===l||C.$$typeof===c||C.$$typeof===p||C.$$typeof===m||C.$$typeof===x||C.$$typeof===w||C.$$typeof===f)},We.typeOf=S,We}var Ve={};var If;function lS(){return If||(If=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(H){return typeof H=="string"||typeof H=="function"||H===r||H===u||H===s||H===i||H===h||H===y||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===b||H.$$typeof===l||H.$$typeof===c||H.$$typeof===p||H.$$typeof===m||H.$$typeof===x||H.$$typeof===w||H.$$typeof===f)}function v(H){if(typeof H=="object"&&H!==null){var ne=H.$$typeof;switch(ne){case t:var oe=H.type;switch(oe){case d:case u:case r:case s:case i:case h:return oe;default:var ge=oe&&oe.$$typeof;switch(ge){case c:case p:case g:case b:case l:return ge;default:return ne}}case n:return ne}}}var C=d,k=u,A=c,z=l,M=t,$=p,I=r,E=g,N=b,_=n,W=s,F=i,B=h,O=!1;function V(H){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),L(H)||v(H)===d}function L(H){return v(H)===u}function U(H){return v(H)===c}function q(H){return v(H)===l}function G(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function J(H){return v(H)===p}function K(H){return v(H)===r}function Q(H){return v(H)===g}function se(H){return v(H)===b}function ce(H){return v(H)===n}function de(H){return v(H)===s}function ee(H){return v(H)===i}function pe(H){return v(H)===h}Ve.AsyncMode=C,Ve.ConcurrentMode=k,Ve.ContextConsumer=A,Ve.ContextProvider=z,Ve.Element=M,Ve.ForwardRef=$,Ve.Fragment=I,Ve.Lazy=E,Ve.Memo=N,Ve.Portal=_,Ve.Profiler=W,Ve.StrictMode=F,Ve.Suspense=B,Ve.isAsyncMode=V,Ve.isConcurrentMode=L,Ve.isContextConsumer=U,Ve.isContextProvider=q,Ve.isElement=G,Ve.isForwardRef=J,Ve.isFragment=K,Ve.isLazy=Q,Ve.isMemo=se,Ve.isPortal=ce,Ve.isProfiler=de,Ve.isStrictMode=ee,Ve.isSuspense=pe,Ve.isValidElementType=S,Ve.typeOf=v})()),Ve}var Nf;function hc(){return Nf||(Nf=1,process.env.NODE_ENV==="production"?Gs.exports=aS():Gs.exports=lS()),Gs.exports}var gc,Ff;function cS(){if(Ff)return gc;Ff=1;var e=hc(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function l(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,y=Object.prototype;function b(g,f,m){if(typeof f!="string"){if(y){var x=h(f);x&&x!==y&&b(g,x,m)}var w=d(f);u&&(w=w.concat(u(f)));for(var S=l(g),v=l(f),C=0;C<w.length;++C){var k=w[C];if(!n[k]&&!(m&&m[k])&&!(v&&v[k])&&!(S&&S[k])){var A=p(f,k);try{c(g,k,A)}catch{}}}}return g}return gc=b,gc}cS();var dS=!0;function Mf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var mc=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||dS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},yc=function(t,n,r){mc(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function pS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 uS={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,scale: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},fS=/[A-Z]|^ms/g,hS=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Df=function(t){return t.charCodeAt(1)===45},_f=function(t){return t!=null&&typeof t!="boolean"},bc=kf(function(e){return Df(e)?e:e.replace(fS,"-$&").toLowerCase()}),$f=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hS,function(r,i,s){return hn={name:i,styles:s,next:hn},i})}return uS[t]!==1&&!Df(t)&&typeof n=="number"&&n!==0?n+"px":n};function ri(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return hn={name:i.name,styles:i.styles,next:hn},i.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)hn={name:l.name,styles:l.styles,next:hn},l=l.next;var c=s.styles+";";return c}return gS(e,t,n)}case"function":{if(e!==void 0){var d=hn,u=n(e);return hn=d,ri(e,t,u)}break}}var p=n;if(t==null)return p;var h=t[p];return h!==void 0?h:p}function gS(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=ri(e,t,n[i])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":_f(c)&&(r+=bc(s)+":"+$f(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)_f(l[d])&&(r+=bc(s)+":"+$f(s,l[d])+";");else{var u=ri(e,t,l);switch(s){case"animation":case"animationName":{r+=bc(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}return r}var zf=/label:\s*([^\s;{]+)\s*(;|$)/g,hn;function oi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";hn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=ri(n,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=ri(n,t,e[c]),r){var d=s;i+=d[c]}zf.lastIndex=0;for(var u="",p;(p=zf.exec(i))!==null;)u+="-"+p[1];var h=pS(i)+u;return{name:h,styles:i,next:hn}}var mS=function(t){return t()},Lf=T.useInsertionEffect?T.useInsertionEffect:!1,Bf=Lf||mS,jf=Lf||T.useLayoutEffect,Wf=T.createContext(typeof HTMLElement<"u"?sS({key:"css"}):null);Wf.Provider;var xc=function(t){return j.forwardRef(function(n,r){var i=j.useContext(Wf);return t(n,i,r)})},Ks=T.createContext({}),vc={}.hasOwnProperty,Sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yS=function(t,n){var r={};for(var i in n)vc.call(n,i)&&(r[i]=n[i]);return r[Sc]=t,r},bS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return mc(n,r,i),Bf(function(){return yc(n,r,i)}),null},xS=xc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Sc],s=[r],l="";typeof e.className=="string"?l=Mf(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var c=oi(s,void 0,T.useContext(Ks));l+=t.key+"-"+c.name;var d={};for(var u in e)vc.call(e,u)&&u!=="css"&&u!==Sc&&(d[u]=e[u]);return d.className=l,n&&(d.ref=n),T.createElement(T.Fragment,null,T.createElement(bS,{cache:t,serialized:c,isStringTag:typeof i=="string"}),T.createElement(i,d))}),vS=xS,Vf=function(t,n){var r=arguments;if(n==null||!vc.call(n,"css"))return T.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=vS,s[1]=yS(t,n);for(var l=2;l<i;l++)s[l]=r[l];return T.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Vf||(Vf={}));var SS=xc(function(e,t){var n=e.styles,r=oi([n],void 0,T.useContext(Ks)),i=T.useRef();return jf(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",s),l.hydrate([d])),i.current=[l,c],function(){l.flush()}},[t]),jf(function(){var s=i.current,l=s[0],c=s[1];if(c){s[1]=!1;return}if(r.next!==void 0&&yc(t,r.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Qr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return oi(t)}function Xn(){var e=Qr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var wS=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,CS=kf(function(e){return wS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ES=CS,TS=function(t){return t!=="theme"},Uf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ES:TS},Hf=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},kS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return mc(n,r,i),Bf(function(){return yc(n,r,i)}),null},PS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var c=Hf(t,n,r),d=c||Uf(i),u=!d("as");return function(){var p=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),p[0]==null||p[0].raw===void 0)h.push.apply(h,p);else{var y=p[0];h.push(y[0]);for(var b=p.length,g=1;g<b;g++)h.push(p[g],y[g])}var f=xc(function(m,x,w){var S=u&&m.as||i,v="",C=[],k=m;if(m.theme==null){k={};for(var A in m)k[A]=m[A];k.theme=T.useContext(Ks)}typeof m.className=="string"?v=Mf(x.registered,C,m.className):m.className!=null&&(v=m.className+" ");var z=oi(h.concat(C),x.registered,k);v+=x.key+"-"+z.name,l!==void 0&&(v+=" "+l);var M=u&&c===void 0?Uf(S):d,$={};for(var I in m)u&&I==="as"||M(I)&&($[I]=m[I]);return $.className=v,w&&($.ref=w),T.createElement(T.Fragment,null,T.createElement(kS,{cache:x,serialized:z,isStringTag:typeof S=="string"}),T.createElement(S,$))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=c,Object.defineProperty(f,"toString",{value:function(){return"."+l}}),f.withComponent=function(m,x){var w=e(m,Bs({},n,x,{shouldForwardProp:Hf(f,x,!0)}));return w.apply(void 0,h)},f}},OS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],wc=PS.bind(null);OS.forEach(function(e){wc[e]=wc(e)});var Xs={exports:{}};var Cc,Rf;function AS(){if(Rf)return Cc;Rf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(d.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cc=i()?Object.assign:function(s,l){for(var c,d=r(s),u,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)t.call(c,h)&&(d[h]=c[h]);if(e){u=e(c);for(var y=0;y<u.length;y++)n.call(c,u[y])&&(d[u[y]]=c[u[y]])}}return d},Cc}var Ec,qf;function Tc(){if(qf)return Ec;qf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ec=e,Ec}var kc,Yf;function Gf(){return Yf||(Yf=1,kc=Function.call.bind(Object.prototype.hasOwnProperty)),kc}var Pc,Kf;function IS(){if(Kf)return Pc;Kf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tc(),n={},r=Gf();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,d,u){if(process.env.NODE_ENV!=="production"){for(var p in s)if(r(s,p)){var h;try{if(typeof s[p]!="function"){var y=Error((d||"React class")+": "+c+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=s[p](l,p,d,c,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((d||"React class")+": type specification of "+c+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var b=u?u():"";e("Failed "+c+" type: "+h.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Pc=i,Pc}var Oc,Xf;function NS(){if(Xf)return Oc;Xf=1;var e=hc(),t=AS(),n=Tc(),r=Gf(),i=IS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function l(){return null}return Oc=function(c,d){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function h(L){var U=L&&(u&&L[u]||L[p]);if(typeof U=="function")return U}var y="<<anonymous>>",b={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:S,element:v(),elementType:C(),instanceOf:k,node:$(),objectOf:z,oneOf:A,oneOfType:M,shape:E,exact:N};function g(L,U){return L===U?L!==0||1/L===1/U:L!==L&&U!==U}function f(L,U){this.message=L,this.data=U&&typeof U=="object"?U:{},this.stack=""}f.prototype=Error.prototype;function m(L){if(process.env.NODE_ENV!=="production")var U={},q=0;function G(K,Q,se,ce,de,ee,pe){if(ce=ce||y,ee=ee||se,pe!==n){if(d){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ne=ce+":"+se;!U[ne]&&q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+ce+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),U[ne]=!0,q++)}}return Q[se]==null?K?Q[se]===null?new f("The "+de+" `"+ee+"` is marked as required "+("in `"+ce+"`, but its value is `null`.")):new f("The "+de+" `"+ee+"` is marked as required in "+("`"+ce+"`, but its value is `undefined`.")):null:L(Q,se,ce,de,ee)}var J=G.bind(null,!1);return J.isRequired=G.bind(null,!0),J}function x(L){function U(q,G,J,K,Q,se){var ce=q[G],de=F(ce);if(de!==L){var ee=B(ce);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+J+"`, expected ")+("`"+L+"`."),{expectedType:L})}return null}return m(U)}function w(){return m(l)}function S(L){function U(q,G,J,K,Q){if(typeof L!="function")return new f("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var se=q[G];if(!Array.isArray(se)){var ce=F(se);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an array."))}for(var de=0;de<se.length;de++){var ee=L(se,de,J,K,Q+"["+de+"]",n);if(ee instanceof Error)return ee}return null}return m(U)}function v(){function L(U,q,G,J,K){var Q=U[q];if(!c(Q)){var se=F(Q);return new f("Invalid "+J+" `"+K+"` of type "+("`"+se+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return m(L)}function C(){function L(U,q,G,J,K){var Q=U[q];if(!e.isValidElementType(Q)){var se=F(Q);return new f("Invalid "+J+" `"+K+"` of type "+("`"+se+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return m(L)}function k(L){function U(q,G,J,K,Q){if(!(q[G]instanceof L)){var se=L.name||y,ce=V(q[G]);return new f("Invalid "+K+" `"+Q+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected ")+("instance of `"+se+"`."))}return null}return m(U)}function A(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function U(q,G,J,K,Q){for(var se=q[G],ce=0;ce<L.length;ce++)if(g(se,L[ce]))return null;var de=JSON.stringify(L,function(pe,H){var ne=B(H);return ne==="symbol"?String(H):H});return new f("Invalid "+K+" `"+Q+"` of value `"+String(se)+"` "+("supplied to `"+J+"`, expected one of "+de+"."))}return m(U)}function z(L){function U(q,G,J,K,Q){if(typeof L!="function")return new f("Property `"+Q+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var se=q[G],ce=F(se);if(ce!=="object")return new f("Invalid "+K+" `"+Q+"` of type "+("`"+ce+"` supplied to `"+J+"`, expected an object."));for(var de in se)if(r(se,de)){var ee=L(se,de,J,K,Q+"."+de,n);if(ee instanceof Error)return ee}return null}return m(U)}function M(L){if(!Array.isArray(L))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<L.length;U++){var q=L[U];if(typeof q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(q)+" at index "+U+"."),l}function G(J,K,Q,se,ce){for(var de=[],ee=0;ee<L.length;ee++){var pe=L[ee],H=pe(J,K,Q,se,ce,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&de.push(H.data.expectedType)}var ne=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new f("Invalid "+se+" `"+ce+"` supplied to "+("`"+Q+"`"+ne+"."))}return m(G)}function $(){function L(U,q,G,J,K){return _(U[q])?null:new f("Invalid "+J+" `"+K+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return m(L)}function I(L,U,q,G,J){return new f((L||"React class")+": "+U+" type `"+q+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function E(L){function U(q,G,J,K,Q){var se=q[G],ce=F(se);if(ce!=="object")return new f("Invalid "+K+" `"+Q+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));for(var de in L){var ee=L[de];if(typeof ee!="function")return I(J,K,Q,de,B(ee));var pe=ee(se,de,J,K,Q+"."+de,n);if(pe)return pe}return null}return m(U)}function N(L){function U(q,G,J,K,Q){var se=q[G],ce=F(se);if(ce!=="object")return new f("Invalid "+K+" `"+Q+"` of type `"+ce+"` "+("supplied to `"+J+"`, expected `object`."));var de=t({},q[G],L);for(var ee in de){var pe=L[ee];if(r(L,ee)&&typeof pe!="function")return I(J,K,Q,ee,B(pe));if(!pe)return new f("Invalid "+K+" `"+Q+"` key `"+ee+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(q[G],null," ")+`
25
+ Valid keys: `+JSON.stringify(Object.keys(L),null," "));var H=pe(se,ee,J,K,Q+"."+ee,n);if(H)return H}return null}return m(U)}function _(L){switch(typeof L){case"number":case"string":case"undefined":return!0;case"boolean":return!L;case"object":if(Array.isArray(L))return L.every(_);if(L===null||c(L))return!0;var U=h(L);if(U){var q=U.call(L),G;if(U!==L.entries){for(;!(G=q.next()).done;)if(!_(G.value))return!1}else for(;!(G=q.next()).done;){var J=G.value;if(J&&!_(J[1]))return!1}}else return!1;return!0;default:return!1}}function W(L,U){return L==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function F(L){var U=typeof L;return Array.isArray(L)?"array":L instanceof RegExp?"object":W(U,L)?"symbol":U}function B(L){if(typeof L>"u"||L===null)return""+L;var U=F(L);if(U==="object"){if(L instanceof Date)return"date";if(L instanceof RegExp)return"regexp"}return U}function O(L){var U=B(L);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function V(L){return!L.constructor||!L.constructor.name?y:L.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Oc}var Ac,Jf;function FS(){if(Jf)return Ac;Jf=1;var e=Tc();function t(){}function n(){}return n.resetWarningCache=t,Ac=function(){function r(l,c,d,u,p,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ac}var Qf;function MS(){if(Qf)return Xs.exports;if(Qf=1,process.env.NODE_ENV!=="production"){var e=hc(),t=!0;Xs.exports=NS()(e.isElement,t)}else Xs.exports=FS()();return Xs.exports}var DS=MS();const o=Ep(DS);function _S(e){return e==null||Object.keys(e).length===0}function Zf(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(_S(i)?n:i):t;return a.jsx(SS,{styles:r})}process.env.NODE_ENV!=="production"&&(Zf.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function eh(e,t){const n=wc(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
26
+ `)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function $S(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const th=[];function Jn(e){return th[0]=e,oi(th)}var Js={exports:{}},qe={};var nh;function zS(){if(nh)return qe;nh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case p:return f;case s:return f;default:return m}}case t:return m}}}return qe.ContextConsumer=s,qe.ContextProvider=l,qe.Element=e,qe.ForwardRef=c,qe.Fragment=n,qe.Lazy=h,qe.Memo=p,qe.Portal=t,qe.Profiler=i,qe.StrictMode=r,qe.Suspense=d,qe.SuspenseList=u,qe.isContextConsumer=function(f){return g(f)===s},qe.isContextProvider=function(f){return g(f)===l},qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},qe.isForwardRef=function(f){return g(f)===c},qe.isFragment=function(f){return g(f)===n},qe.isLazy=function(f){return g(f)===h},qe.isMemo=function(f){return g(f)===p},qe.isPortal=function(f){return g(f)===t},qe.isProfiler=function(f){return g(f)===i},qe.isStrictMode=function(f){return g(f)===r},qe.isSuspense=function(f){return g(f)===d},qe.isSuspenseList=function(f){return g(f)===u},qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},qe.typeOf=g,qe}var Ye={};var rh;function LS(){return rh||(rh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case u:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case y:case h:return f;case l:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ye.ContextConsumer=l,Ye.ContextProvider=c,Ye.Element=t,Ye.ForwardRef=d,Ye.Fragment=r,Ye.Lazy=y,Ye.Memo=h,Ye.Portal=n,Ye.Profiler=s,Ye.StrictMode=i,Ye.Suspense=u,Ye.SuspenseList=p,Ye.isContextConsumer=function(f){return e(f)===l},Ye.isContextProvider=function(f){return e(f)===c},Ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ye.isForwardRef=function(f){return e(f)===d},Ye.isFragment=function(f){return e(f)===r},Ye.isLazy=function(f){return e(f)===y},Ye.isMemo=function(f){return e(f)===h},Ye.isPortal=function(f){return e(f)===n},Ye.isProfiler=function(f){return e(f)===s},Ye.isStrictMode=function(f){return e(f)===i},Ye.isSuspense=function(f){return e(f)===u},Ye.isSuspenseList=function(f){return e(f)===p},Ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ye.typeOf=e})()),Ye}var oh;function BS(){return oh||(oh=1,process.env.NODE_ENV==="production"?Js.exports=zS():Js.exports=LS()),Js.exports}var Qs=BS();function gn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ih(e){if(T.isValidElement(e)||Qs.isValidElementType(e)||!gn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ih(e[n])}),t}function Et(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return gn(e)&&gn(t)&&Object.keys(t).forEach(i=>{T.isValidElement(t[i])||Qs.isValidElementType(t[i])?r[i]=t[i]:gn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&gn(e[i])?r[i]=Et(e[i],t[i],n):n.clone?r[i]=gn(t[i])?ih(t[i]):t[i]:r[i]=t[i]}),r}const jS=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)=>({...n,[r.key]:r.val}),{})};function WS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=jS(t),l=Object.keys(s);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function d(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function u(y,b){const g=l.indexOf(b);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(g!==-1&&typeof t[l[g]]=="number"?t[l[g]]:b)-r/100}${n})`}function p(y){return l.indexOf(y)+1<l.length?u(y,l[l.indexOf(y)+1]):c(y)}function h(y){const b=l.indexOf(y);return b===0?c(l[1]):b===l.length-1?d(l[b]):u(y,l[l.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:c,down:d,between:u,only:p,not:h,unit:n,...i}}function sh(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function VS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function US(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
27
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:pn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function HS(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...c)=>t(e.breakpoints.up(...c),l),s.down=(...c)=>t(e.breakpoints.down(...c),l),s.between=(...c)=>t(e.breakpoints.between(...c),l),s.only=(...c)=>t(e.breakpoints.only(...c),l),s.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const RS={borderRadius:4},Qn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function ii(e,t){return t?Et(e,t,{clone:!1}):e}const Zs={xs:0,sm:600,md:900,lg:1200,xl:1536},ah={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zs[e]}px)`},qS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Zs[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function zn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||ah;return t.reduce((l,c,d)=>(l[s.up(s.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const s=r.breakpoints||ah;return Object.keys(t).reduce((l,c)=>{if(VS(s.keys,c)){const d=US(r.containerQueries?r:qS,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(s.values||Zs).includes(c)){const d=s.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function YS(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function lh(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Z(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ea(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ta(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ea(e,n)||r,t&&(i=t(i,r,e)),i}function lt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,u=ea(d,r)||{};return zn(l,c,h=>{let y=ta(u,i,h);return h===y&&typeof h=="string"&&(y=ta(u,i,`${t}${h==="default"?"":Z(h)}`,h)),n===!1?y:{[n]:y}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Qn}:{},s.filterProps=[t],s}function GS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const KS={m:"margin",p:"padding"},XS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ch={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JS=GS(e=>{if(e.length>2)if(ch[e])e=ch[e];else return[e];const[t,n]=e.split(""),r=KS[t],i=XS[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),na=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ra=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],QS=[...na,...ra];function si(e,t,n,r){const i=ea(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const l=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>i.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${l} > ${i.length-1}, you need to add the missing values.`].join(`
28
28
  `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
29
- `)));const l=i[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
30
- `)),()=>{})}function wc(e){return ri(e,"spacing",8,"spacing")}function oi(e,t){return typeof t=="string"||t==null?t:e(t)}function GS(e,t){return n=>e.reduce((r,i)=>(r[i]=oi(t,n),r),{})}function KS(e,t,n,r){if(!t.includes(n))return null;const i=qS(n),s=GS(i,r),a=e[n];return $n(e,a,s)}function oh(e,t){const n=wc(e.theme);return Object.keys(e).map(r=>KS(e,t,r,n)).reduce(ni,{})}function nt(e){return oh(e,Js)}nt.propTypes=process.env.NODE_ENV!=="production"?Js.reduce((e,t)=>(e[t]=Xn,e),{}):{},nt.filterProps=Js;function rt(e){return oh(e,Qs)}rt.propTypes=process.env.NODE_ENV!=="production"?Qs.reduce((e,t)=>(e[t]=Xn,e),{}):{},rt.filterProps=Qs,process.env.NODE_ENV!=="production"&&YS.reduce((e,t)=>(e[t]=Xn,e),{});function ih(e=8,t=wc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function Zs(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?ni(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Vt(e){return typeof e!="number"?e:`${e}px solid`}function Ut(e,t){return at({prop:e,themeKey:"borders",transform:t})}const XS=Ut("border",Vt),JS=Ut("borderTop",Vt),QS=Ut("borderRight",Vt),ZS=Ut("borderBottom",Vt),ew=Ut("borderLeft",Vt),tw=Ut("borderColor"),nw=Ut("borderTopColor"),rw=Ut("borderRightColor"),ow=Ut("borderBottomColor"),iw=Ut("borderLeftColor"),sw=Ut("outline",Vt),aw=Ut("outlineColor"),ea=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ri(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:oi(t,r)});return $n(e,e.borderRadius,n)}return null};ea.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Xn}:{},ea.filterProps=["borderRadius"],Zs(XS,JS,QS,ZS,ew,tw,nw,rw,ow,iw,ea,sw,aw);const ta=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ri(e.theme,"spacing",8,"gap"),n=r=>({gap:oi(t,r)});return $n(e,e.gap,n)}return null};ta.propTypes=process.env.NODE_ENV!=="production"?{gap:Xn}:{},ta.filterProps=["gap"];const na=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ri(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:oi(t,r)});return $n(e,e.columnGap,n)}return null};na.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Xn}:{},na.filterProps=["columnGap"];const ra=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ri(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:oi(t,r)});return $n(e,e.rowGap,n)}return null};ra.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Xn}:{},ra.filterProps=["rowGap"];const lw=at({prop:"gridColumn"}),cw=at({prop:"gridRow"}),dw=at({prop:"gridAutoFlow"}),uw=at({prop:"gridAutoColumns"}),pw=at({prop:"gridAutoRows"}),fw=at({prop:"gridTemplateColumns"}),hw=at({prop:"gridTemplateRows"}),gw=at({prop:"gridTemplateAreas"}),mw=at({prop:"gridArea"});Zs(ta,na,ra,lw,cw,dw,uw,pw,fw,hw,gw,mw);function Xr(e,t){return t==="grey"?t:e}const yw=at({prop:"color",themeKey:"palette",transform:Xr}),bw=at({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xr}),xw=at({prop:"backgroundColor",themeKey:"palette",transform:Xr});Zs(yw,bw,xw);function Bt(e){return e<=1&&e!==0?`${e*100}%`:e}const vw=at({prop:"width",transform:Bt}),Cc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Gs[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Bt(n)}};return $n(e,e.maxWidth,t)}return null};Cc.filterProps=["maxWidth"];const Sw=at({prop:"minWidth",transform:Bt}),ww=at({prop:"height",transform:Bt}),Cw=at({prop:"maxHeight",transform:Bt}),Ew=at({prop:"minHeight",transform:Bt});at({prop:"size",cssProperty:"width",transform:Bt}),at({prop:"size",cssProperty:"height",transform:Bt});const Tw=at({prop:"boxSizing"});Zs(vw,Cc,Sw,ww,Cw,Ew,Tw);const ii={border:{themeKey:"borders",transform:Vt},borderTop:{themeKey:"borders",transform:Vt},borderRight:{themeKey:"borders",transform:Vt},borderBottom:{themeKey:"borders",transform:Vt},borderLeft:{themeKey:"borders",transform:Vt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Vt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ea},color:{themeKey:"palette",transform:Xr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xr},backgroundColor:{themeKey:"palette",transform:Xr},p:{style:rt},pt:{style:rt},pr:{style:rt},pb:{style:rt},pl:{style:rt},px:{style:rt},py:{style:rt},padding:{style:rt},paddingTop:{style:rt},paddingRight:{style:rt},paddingBottom:{style:rt},paddingLeft:{style:rt},paddingX:{style:rt},paddingY:{style:rt},paddingInline:{style:rt},paddingInlineStart:{style:rt},paddingInlineEnd:{style:rt},paddingBlock:{style:rt},paddingBlockStart:{style:rt},paddingBlockEnd:{style:rt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},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:ta},rowGap:{style:ra},columnGap:{style:na},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bt},maxWidth:{style:Cc},minWidth:{transform:Bt},height:{transform:Bt},maxHeight:{transform:Bt},minHeight:{transform:Bt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Pw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ow(e,t){return typeof e=="function"?e(t):e}function kw(){function e(n,r,i,s){const a={[n]:r,theme:i},l=s[n];if(!l)return{[n]:r};const{cssProperty:d=n,themeKey:p,transform:u,style:h}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const x=Ks(i,p)||{};return h?h(a):$n(a,r,g=>{let f=Xs(x,u,g);return g===f&&typeof g=="string"&&(f=Xs(x,u,`${n}${g==="default"?"":Z(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??ii;function l(d){let p=d;if(typeof d=="function")p=d(i);else if(typeof d!="object")return d;if(!p)return null;const u=RS(i.breakpoints),h=Object.keys(u);let x=u;return Object.keys(p).forEach(b=>{const g=Ow(p[b],i);if(g!=null)if(typeof g=="object")if(a[b])x=ni(x,e(b,g,i,a));else{const f=$n({theme:i},g,m=>({[b]:m}));Pw(f,g)?x[b]=t({sx:g,theme:i,nested:!0}):x=ni(x,f)}else x=ni(x,e(b,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":eh(i,nh(h,x))}:eh(i,nh(h,x))}return Array.isArray(r)?r.map(l):l(r)}return t}const pr=kw();pr.filterProps=["sx"];function Aw(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function oa(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=$S(n),d=ih(i);let p=wt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...BS,...s}},a);return p=jS(p),p.applyStyles=Aw,p=t.reduce((u,h)=>wt(u,h),p),p.unstable_sxConfig={...ii,...a?.unstable_sxConfig},p.unstable_sx=function(h){return pr({sx:h,theme:this})},p}function Iw(e){return Object.keys(e).length===0}function sh(e=null){const t=T.useContext(Us);return!t||Iw(t)?e:t}const Nw=oa();function ia(e=Nw){return sh(e)}function Ec(e){const t=Kn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ah({styles:e,themeId:t,defaultTheme:n={}}){const r=ia(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Ec(typeof a=="function"?a(i):a)):s=Ec(s)),c.jsx(Yf,{styles:s})}process.env.NODE_ENV!=="production"&&(ah.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const Fw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??ii;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function lh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=Fw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return hn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const ch=e=>e,dh=(()=>{let e=ch;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ch}}})();function uh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=uh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=uh(e))&&(r&&(r+=" "),r+=t);return r}function Mw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=Gf("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(pr);return T.forwardRef(function(d,p){const u=ia(n),{className:h,component:x="div",...b}=lh(d);return c.jsx(s,{as:x,ref:p,className:ue(h,i?i(r):r),theme:t&&u[t]||u,...b})})}const Dw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ye(e,t,n="Mui"){const r=Dw[t];return r?`${n}-${r}`:`${dh.generate(e)}-${t}`}function be(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ye(e,i,n)}),r}function ph(e,t=""){return e.displayName||e.name||t}function fh(e,t,n){const r=ph(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function _w(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ph(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ys.ForwardRef:return fh(e,e.render,"ForwardRef");case Ys.Memo:return fh(e,e.type,"memo");default:return}}}function hh(e){const{variants:t,...n}=e,r={variants:t,style:Kn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Kn(i.style))}),r}const $w=oa();function Tc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function fr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function zw(e){return e?(t,n)=>n[e]:null}function Lw(e,t,n){e.theme=Ww(e.theme)?n:e.theme[t]||e.theme}function sa(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>sa(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?fr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?fr(Kn(a),n):a}return gh(e,r.variants,[i],n)}return r?.isProcessed?n?fr(Kn(r.style),n):r.style:n?fr(Kn(r),n):r}function gh(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?fr(Kn(a.style(i)),r):a.style(i))):n.push(r?fr(Kn(a.style),r):a.style)}return n}function mh(e={}){const{themeId:t,defaultTheme:n=$w,rootShouldForwardProp:r=Tc,slotShouldForwardProp:i=Tc}=e;function s(l){Lw(l,t,n)}return(l,d={})=>{NS(l,P=>P.filter(O=>O!==pr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:x,overridesResolver:b=zw(yh(u)),...g}=d,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,y=x||!1;let w=Tc;u==="Root"||u==="root"?w=r:u?w=i:Rw(l)&&(w=void 0);const S=Gf(l,{shouldForwardProp:w,label:Bw(p,u),...g}),v=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(D){return sa(D,P,D.theme.modularCssLayers?f:void 0)};if(hn(P)){const O=hh(P);return function(N){return O.variants?sa(N,O,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?fr(O.style,f):O.style}}return P},C=(...P)=>{const O=[],D=P.map(v),N=[];if(O.push(s),p&&b&&N.push(function(A){const B=A.theme.components?.[p]?.styleOverrides;if(!B)return null;const $={};for(const j in B)$[j]=sa(A,B[j],A.theme.modularCssLayers?"theme":void 0);return b(A,$)}),p&&!m&&N.push(function(A){const B=A.theme?.components?.[p]?.variants;return B?gh(A,B,[],A.theme.modularCssLayers?"theme":void 0):null}),y||N.push(pr),Array.isArray(D[0])){const E=D.shift(),A=new Array(O.length).fill(""),M=new Array(N.length).fill("");let B;B=[...A,...E,...M],B.raw=[...A,...E.raw,...M],O.unshift(B)}const I=[...O,...D,...N],F=S(...I);return l.muiName&&(F.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(F.displayName=jw(p,u,l)),F};return S.withConfig&&(C.withConfig=S.withConfig),C}}function jw(e,t,n){return e?`${e}${Z(t||"")}`:`Styled(${_w(n)})`}function Bw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${yh(t||"Root")}`),n}function Ww(e){for(const t in e)return!1;return!0}function Rw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function yh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Vw=mh();function si(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const d in a)if(Object.prototype.hasOwnProperty.call(a,d)){const p=d;r[s][p]=si(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=ue(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function bh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:si(t.components[n].defaultProps,r)}function Uw({props:e,name:t,defaultTheme:n,themeId:r}){let i=ia(n);return r&&(i=i[r]||i),bh({theme:i,name:t,props:e})}const Ht=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Hw(e,t,n,r,i){const[s,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ht(()=>{if(!n)return;const l=n(e),d=()=>{a(l.matches)};return d(),l.addEventListener("change",d),()=>{l.removeEventListener("change",d)}},[e,n]),s}const xh={...T}.useSyncExternalStore;function qw(e,t,n,r,i){const s=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[l,d]=T.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return xh(d,l,a)}function vh(e={}){const{themeId:t}=e;return function(r,i={}){let s=sh();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:d=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=bh({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
29
+ `)));const c=i[l];return s>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
30
+ `)),()=>{})}function Ic(e){return si(e,"spacing",8,"spacing")}function ai(e,t){return typeof t=="string"||t==null?t:e(t)}function ZS(e,t){return n=>e.reduce((r,i)=>(r[i]=ai(t,n),r),{})}function ew(e,t,n,r){if(!t.includes(n))return null;const i=JS(n),s=ZS(i,r),l=e[n];return zn(e,l,s)}function dh(e,t){const n=Ic(e.theme);return Object.keys(e).map(r=>ew(e,t,r,n)).reduce(ii,{})}function rt(e){return dh(e,na)}rt.propTypes=process.env.NODE_ENV!=="production"?na.reduce((e,t)=>(e[t]=Qn,e),{}):{},rt.filterProps=na;function ot(e){return dh(e,ra)}ot.propTypes=process.env.NODE_ENV!=="production"?ra.reduce((e,t)=>(e[t]=Qn,e),{}):{},ot.filterProps=ra,process.env.NODE_ENV!=="production"&&QS.reduce((e,t)=>(e[t]=Qn,e),{});function ph(e=8,t=Ic({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" "));return n.mui=!0,n}function oa(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?ii(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Rt(e){return typeof e!="number"?e:`${e}px solid`}function qt(e,t){return lt({prop:e,themeKey:"borders",transform:t})}const tw=qt("border",Rt),nw=qt("borderTop",Rt),rw=qt("borderRight",Rt),ow=qt("borderBottom",Rt),iw=qt("borderLeft",Rt),sw=qt("borderColor"),aw=qt("borderTopColor"),lw=qt("borderRightColor"),cw=qt("borderBottomColor"),dw=qt("borderLeftColor"),pw=qt("outline",Rt),uw=qt("outlineColor"),ia=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=si(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ai(t,r)});return zn(e,e.borderRadius,n)}return null};ia.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Qn}:{},ia.filterProps=["borderRadius"],oa(tw,nw,rw,ow,iw,sw,aw,lw,cw,dw,ia,pw,uw);const sa=e=>{if(e.gap!==void 0&&e.gap!==null){const t=si(e.theme,"spacing",8,"gap"),n=r=>({gap:ai(t,r)});return zn(e,e.gap,n)}return null};sa.propTypes=process.env.NODE_ENV!=="production"?{gap:Qn}:{},sa.filterProps=["gap"];const aa=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=si(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ai(t,r)});return zn(e,e.columnGap,n)}return null};aa.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Qn}:{},aa.filterProps=["columnGap"];const la=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=si(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ai(t,r)});return zn(e,e.rowGap,n)}return null};la.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Qn}:{},la.filterProps=["rowGap"];const fw=lt({prop:"gridColumn"}),hw=lt({prop:"gridRow"}),gw=lt({prop:"gridAutoFlow"}),mw=lt({prop:"gridAutoColumns"}),yw=lt({prop:"gridAutoRows"}),bw=lt({prop:"gridTemplateColumns"}),xw=lt({prop:"gridTemplateRows"}),vw=lt({prop:"gridTemplateAreas"}),Sw=lt({prop:"gridArea"});oa(sa,aa,la,fw,hw,gw,mw,yw,bw,xw,vw,Sw);function Zr(e,t){return t==="grey"?t:e}const ww=lt({prop:"color",themeKey:"palette",transform:Zr}),Cw=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zr}),Ew=lt({prop:"backgroundColor",themeKey:"palette",transform:Zr});oa(ww,Cw,Ew);function Wt(e){return e<=1&&e!==0?`${e*100}%`:e}const Tw=lt({prop:"width",transform:Wt}),Nc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Zs[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Wt(n)}};return zn(e,e.maxWidth,t)}return null};Nc.filterProps=["maxWidth"];const kw=lt({prop:"minWidth",transform:Wt}),Pw=lt({prop:"height",transform:Wt}),Ow=lt({prop:"maxHeight",transform:Wt}),Aw=lt({prop:"minHeight",transform:Wt});lt({prop:"size",cssProperty:"width",transform:Wt}),lt({prop:"size",cssProperty:"height",transform:Wt});const Iw=lt({prop:"boxSizing"});oa(Tw,Nc,kw,Pw,Ow,Aw,Iw);const li={border:{themeKey:"borders",transform:Rt},borderTop:{themeKey:"borders",transform:Rt},borderRight:{themeKey:"borders",transform:Rt},borderBottom:{themeKey:"borders",transform:Rt},borderLeft:{themeKey:"borders",transform:Rt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Rt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ia},color:{themeKey:"palette",transform:Zr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zr},backgroundColor:{themeKey:"palette",transform:Zr},p:{style:ot},pt:{style:ot},pr:{style:ot},pb:{style:ot},pl:{style:ot},px:{style:ot},py:{style:ot},padding:{style:ot},paddingTop:{style:ot},paddingRight:{style:ot},paddingBottom:{style:ot},paddingLeft:{style:ot},paddingX:{style:ot},paddingY:{style:ot},paddingInline:{style:ot},paddingInlineStart:{style:ot},paddingInlineEnd:{style:ot},paddingBlock:{style:ot},paddingBlockStart:{style:ot},paddingBlockEnd:{style:ot},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},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:sa},rowGap:{style:la},columnGap:{style:aa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wt},maxWidth:{style:Nc},minWidth:{transform:Wt},height:{transform:Wt},maxHeight:{transform:Wt},minHeight:{transform:Wt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Nw(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Fw(e,t){return typeof e=="function"?e(t):e}function Mw(){function e(n,r,i,s){const l={[n]:r,theme:i},c=s[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:u,transform:p,style:h}=c;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const y=ea(i,u)||{};return h?h(l):zn(l,r,g=>{let f=ta(y,p,g);return g===f&&typeof g=="string"&&(f=ta(y,p,`${n}${g==="default"?"":Z(g)}`,g)),d===!1?f:{[d]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const l=i.unstable_sxConfig??li;function c(d){let u=d;if(typeof d=="function")u=d(i);else if(typeof d!="object")return d;if(!u)return null;const p=YS(i.breakpoints),h=Object.keys(p);let y=p;return Object.keys(u).forEach(b=>{const g=Fw(u[b],i);if(g!=null)if(typeof g=="object")if(l[b])y=ii(y,e(b,g,i,l));else{const f=zn({theme:i},g,m=>({[b]:m}));Nw(f,g)?y[b]=t({sx:g,theme:i,nested:!0}):y=ii(y,f)}else y=ii(y,e(b,g,i,l))}),!s&&i.modularCssLayers?{"@layer sx":sh(i,lh(h,y))}:sh(i,lh(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const fr=Mw();fr.filterProps=["sx"];function Dw(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ca(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...l}=e,c=WS(n),d=ph(i);let u=Et({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...RS,...s}},l);return u=HS(u),u.applyStyles=Dw,u=t.reduce((p,h)=>Et(p,h),u),u.unstable_sxConfig={...li,...l?.unstable_sxConfig},u.unstable_sx=function(h){return fr({sx:h,theme:this})},u}function _w(e){return Object.keys(e).length===0}function uh(e=null){const t=T.useContext(Ks);return!t||_w(t)?e:t}const $w=ca();function da(e=$w){return uh(e)}function Fc(e){const t=Jn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function fh({styles:e,themeId:t,defaultTheme:n={}}){const r=da(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(l=>Fc(typeof l=="function"?l(i):l)):s=Fc(s)),a.jsx(Zf,{styles:s})}process.env.NODE_ENV!=="production"&&(fh.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const zw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??li;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function hh(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=zw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const c=t(...l);return gn(c)?{...r,...c}:r}:s={...r,...t},{...i,sx:s}}const gh=e=>e,mh=(()=>{let e=gh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=gh}}})();function yh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yh(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yh(e))&&(r&&(r+=" "),r+=t);return r}function Lw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=eh("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(fr);return T.forwardRef(function(d,u){const p=da(n),{className:h,component:y="div",...b}=hh(d);return a.jsx(s,{as:y,ref:u,className:ue(h,i?i(r):r),theme:t&&p[t]||p,...b})})}const Bw={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function be(e,t,n="Mui"){const r=Bw[t];return r?`${n}-${r}`:`${mh.generate(e)}-${t}`}function xe(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=be(e,i,n)}),r}function bh(e,t=""){return e.displayName||e.name||t}function xh(e,t,n){const r=bh(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function jw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return bh(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Qs.ForwardRef:return xh(e,e.render,"ForwardRef");case Qs.Memo:return xh(e,e.type,"memo");default:return}}}function vh(e){const{variants:t,...n}=e,r={variants:t,style:Jn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Jn(i.style))}),r}const Ww=ca();function Mc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function hr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Vw(e){return e?(t,n)=>n[e]:null}function Uw(e,t,n){e.theme=qw(e.theme)?n:e.theme[t]||e.theme}function pa(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>pa(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?hr(r.style,n):r.style;else{const{variants:s,...l}=r;i=n?hr(Jn(l),n):l}return Sh(e,r.variants,[i],n)}return r?.isProcessed?n?hr(Jn(r.style),n):r.style:n?hr(Jn(r),n):r}function Sh(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!l.props(i))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&e.ownerState?.[c]!==l.props[c])continue e;typeof l.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?hr(Jn(l.style(i)),r):l.style(i))):n.push(r?hr(Jn(l.style),r):l.style)}return n}function wh(e={}){const{themeId:t,defaultTheme:n=Ww,rootShouldForwardProp:r=Mc,slotShouldForwardProp:i=Mc}=e;function s(c){Uw(c,t,n)}return(c,d={})=>{$S(c,k=>k.filter(A=>A!==fr));const{name:u,slot:p,skipVariantsResolver:h,skipSx:y,overridesResolver:b=Vw(Ch(p)),...g}=d,f=u&&u.startsWith("Mui")||p?"components":"custom",m=h!==void 0?h:p&&p!=="Root"&&p!=="root"||!1,x=y||!1;let w=Mc;p==="Root"||p==="root"?w=r:p?w=i:Yw(c)&&(w=void 0);const S=eh(c,{shouldForwardProp:w,label:Rw(u,p),...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(z){return pa(z,k,z.theme.modularCssLayers?f:void 0)};if(gn(k)){const A=vh(k);return function(M){return A.variants?pa(M,A,M.theme.modularCssLayers?f:void 0):M.theme.modularCssLayers?hr(A.style,f):A.style}}return k},C=(...k)=>{const A=[],z=k.map(v),M=[];if(A.push(s),u&&b&&M.push(function(N){const W=N.theme.components?.[u]?.styleOverrides;if(!W)return null;const F={};for(const B in W)F[B]=pa(N,W[B],N.theme.modularCssLayers?"theme":void 0);return b(N,F)}),u&&!m&&M.push(function(N){const W=N.theme?.components?.[u]?.variants;return W?Sh(N,W,[],N.theme.modularCssLayers?"theme":void 0):null}),x||M.push(fr),Array.isArray(z[0])){const E=z.shift(),N=new Array(A.length).fill(""),_=new Array(M.length).fill("");let W;W=[...N,...E,..._],W.raw=[...N,...E.raw,..._],A.unshift(W)}const $=[...A,...z,...M],I=S(...$);return c.muiName&&(I.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(I.displayName=Hw(u,p,c)),I};return S.withConfig&&(C.withConfig=S.withConfig),C}}function Hw(e,t,n){return e?`${e}${Z(t||"")}`:`Styled(${jw(n)})`}function Rw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${Ch(t||"Root")}`),n}function qw(e){for(const t in e)return!1;return!0}function Yw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ch(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Gw=wh();function ci(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const l=e[s],c=t[s];if(!c)r[s]=l||{};else if(!l)r[s]=c;else{r[s]={...c};for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d)){const u=d;r[s][u]=ci(l[u],c[u],n)}}}else s==="className"&&n&&t.className?r.className=ue(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function Eh(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ci(t.components[n].defaultProps,r)}function Kw({props:e,name:t,defaultTheme:n,themeId:r}){let i=da(n);return r&&(i=i[r]||i),Eh({theme:i,name:t,props:e})}const Yt=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Xw(e,t,n,r,i){const[s,l]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Yt(()=>{if(!n)return;const c=n(e),d=()=>{l(c.matches)};return d(),c.addEventListener("change",d),()=>{c.removeEventListener("change",d)}},[e,n]),s}const Th={...T}.useSyncExternalStore;function Jw(e,t,n,r,i){const s=T.useCallback(()=>t,[t]),l=T.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:p}=r(e);return()=>p}return s},[s,e,r,i,n]),[c,d]=T.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const p=n(e);return[()=>p.matches,h=>(p.addEventListener("change",h),()=>{p.removeEventListener("change",h)})]},[s,n,e]);return Th(d,c,l)}function kh(e={}){const{themeId:t}=e;return function(r,i={}){let s=uh();s&&t&&(s=s[t]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:c=!1,matchMedia:d=l?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:p=!1}=Eh({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
31
31
  `));let h=typeof r=="function"?r(s):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
32
- `));const b=(xh!==void 0?qw:Hw)(h,l,d,p,u);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:h,match:b}),b}}vh();function Jr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Pc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Jr(e,t,n)}function Yw(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Jn(e){if(e.type)return e;if(e.charAt(0)==="#")return Jn(Yw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
33
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:dn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
34
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:dn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const Gw=e=>{const t=Jn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},ai=(e,t)=>{try{return Gw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function aa(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Sh(e){e=Jn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const d=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",d.push(t[3])),aa({type:l,values:d})}function Oc(e){e=Jn(e);let t=e.type==="hsl"||e.type==="hsla"?Jn(Sh(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 wh(e,t){const n=Oc(e),r=Oc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function la(e,t){return e=Jn(e),t=Pc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,aa(e)}function hr(e,t,n){try{return la(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ca(e,t){if(e=Jn(e),t=Pc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return aa(e)}function We(e,t,n){try{return ca(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function da(e,t){if(e=Jn(e),t=Pc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return aa(e)}function Re(e,t,n){try{return da(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function kc(e,t=.15){return Oc(e)>.5?ca(e,t):da(e,t)}function ua(e,t,n){try{return kc(e,t)}catch{return e}}const Kw="exact-prop: ​";function Ac(e){return process.env.NODE_ENV==="production"?e:{...e,[Kw]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const Xw=T.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const li=()=>T.useContext(Xw)??!1,Jw=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function Qw(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?si(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?si(i,r,t.components.mergeClassNameAndStyle):r}function Zw({props:e,name:t}){const n=T.useContext(Jw);return Qw({props:e,name:t,theme:{components:n}})}let Ch=0;function eC(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Ch+=1,n(`mui-${Ch}`))},[t]),r}const Eh={...T}.useId;function gr(e){if(Eh!==void 0){const t=Eh();return e??t}return eC(e)}const Th={theme:void 0};function tC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Th.theme=i.theme,s=hh(e(Th)),t=s,n=i.theme),s}}function nC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Ph=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},rC=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,d])=>{(!n||n&&!n([...s,l]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,l],Array.isArray(d)?[...a,l]:a):t([...s,l],d,a))})}r(e)},oC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ic(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return rC(e,(l,d,p)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(l,d))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=oC(l,d);Object.assign(i,{[u]:h}),Ph(s,l,`var(${u})`,p),Ph(a,l,`var(${u}, ${h})`,p)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function iC(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:d="light",...p}=e,{vars:u,css:h,varsWithDefaults:x}=Ic(p,t);let b=x;const g={},{[d]:f,...m}=a;if(Object.entries(m||{}).forEach(([v,C])=>{const{vars:P,css:O,varsWithDefaults:D}=Ic(C,t);b=wt(b,D),g[v]={css:O,vars:P}}),f){const{css:v,vars:C,varsWithDefaults:P}=Ic(f,t);b=wt(b,P),g[d]={css:v,vars:C}}function y(v,C){let P=i;if(i==="class"&&(P=".%s"),i==="data"&&(P="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(P=`[${i}="%s"]`),v){if(P==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${a[v]?.palette?.mode||v})`]:{":root":C}};if(P)return e.defaultColorScheme===v?`:root, ${P.replace("%s",String(v))}`:P.replace("%s",String(v))}return":root"}return{vars:b,generateThemeVars:()=>{let v={...u};return Object.entries(g).forEach(([,{vars:C}])=>{v=wt(v,C)}),v},generateStyleSheets:()=>{const v=[],C=e.defaultColorScheme||"light";function P(N,I){Object.keys(I).length&&v.push(typeof N=="string"?{[N]:{...I}}:N)}P(n(void 0,{...h}),h);const{[C]:O,...D}=g;if(O){const{css:N}=O,I=a[C]?.palette?.mode,F=!r&&I?{colorScheme:I,...N}:{...N};P(n(C,{...F}),F)}return Object.entries(D).forEach(([N,{css:I}])=>{const F=a[N]?.palette?.mode,E=!r&&F?{colorScheme:F,...I}:{...I};P(n(N,{...E}),E)}),s&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function sC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function xe(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let d=0;d<s.length;d+=1){const p=s[d];p&&(a+=(l===!0?"":" ")+t(p),l=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}const aC=oa(),lC=Vw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),cC=e=>Uw({props:e,name:"MuiContainer",defaultTheme:aC}),dC=(e,t)=>{const n=d=>ye(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:a}=e,l={root:["root",a&&`maxWidth${Z(String(a))}`,i&&"fixed",s&&"disableGutters"]};return xe(l,n,r)};function uC(e={}){const{createStyledComponent:t=lC,useThemeProps:n=cC,componentName:r="MuiContainer"}=e,i=t(({theme:a,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((d,p)=>{const u=p,h=a.breakpoints.values[u];return h!==0&&(d[a.breakpoints.up(u)]={maxWidth:`${h}${a.breakpoints.unit}`}),d},{}),({theme:a,ownerState:l})=>({...l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}})),s=T.forwardRef(function(l,d){const p=n(l),{className:u,component:h="div",disableGutters:x=!1,fixed:b=!1,maxWidth:g="lg",classes:f,...m}=p,y={...p,component:h,disableGutters:x,fixed:b,maxWidth:g},w=dC(y,r);return c.jsx(i,{as:h,ownerState:y,className:ue(w.root,u),ref:d,...m})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function Nc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Oh(){return{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:Yo.white,default:Yo.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}}}const kh=Oh();function Ah(){return{text:{primary:Yo.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:Yo.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}}}const Fc=Ah();function Ih(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=da(e.main,i):t==="dark"&&(e.dark=ca(e.main,s)))}function Nh(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function pC(e="light"){return e==="dark"?{main:Vr[200],light:Vr[50],dark:Vr[400]}:{main:Vr[700],light:Vr[400],dark:Vr[800]}}function fC(e="light"){return e==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[500],light:Rr[300],dark:Rr[700]}}function hC(e="light"){return e==="dark"?{main:Wr[500],light:Wr[300],dark:Wr[700]}:{main:Wr[700],light:Wr[400],dark:Wr[800]}}function gC(e="light"){return e==="dark"?{main:Ur[400],light:Ur[300],dark:Ur[700]}:{main:Ur[700],light:Ur[500],dark:Ur[900]}}function mC(e="light"){return e==="dark"?{main:Hr[400],light:Hr[300],dark:Hr[700]}:{main:Hr[800],light:Hr[500],dark:Hr[900]}}function yC(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:"#ed6c02",light:Go[500],dark:Go[900]}}function bC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Mc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||pC(t),l=e.secondary||fC(t),d=e.error||hC(t),p=e.info||gC(t),u=e.success||mC(t),h=e.warning||yC(t);function x(m){if(i)return bC(m);const y=wh(m,Fc.text.primary)>=n?Fc.text.primary:kh.text.primary;if(process.env.NODE_ENV!=="production"){const w=wh(m,y);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${y} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
35
- `))}return y}const b=({color:m,name:y,mainShade:w=500,lightShade:S=300,darkShade:v=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
36
- The color object needs to have a \`main\` property or a \`${w}\` property.`:dn(11,y?` (${y})`:"",w));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
32
+ `));const b=(Th!==void 0?Jw:Xw)(h,c,d,u,p);return process.env.NODE_ENV!=="production"&&T.useDebugValue({query:h,match:b}),b}}kh();function eo(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Dc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),eo(e,t,n)}function Qw(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)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Zn(e){if(e.type)return e;if(e.charAt(0)==="#")return Zn(Qw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
33
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:pn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
34
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:pn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const Zw=e=>{const t=Zn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},di=(e,t)=>{try{return Zw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function ua(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Ph(e){e=Zn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),l=(u,p=(u+n/30)%12)=>i-s*Math.max(Math.min(p-3,9-p,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),ua({type:c,values:d})}function _c(e){e=Zn(e);let t=e.type==="hsl"||e.type==="hsla"?Zn(Ph(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 Oh(e,t){const n=_c(e),r=_c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fa(e,t){return e=Zn(e),t=Dc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ua(e)}function gr(e,t,n){try{return fa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ha(e,t){if(e=Zn(e),t=Dc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ua(e)}function Ue(e,t,n){try{return ha(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function ga(e,t){if(e=Zn(e),t=Dc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ua(e)}function He(e,t,n){try{return ga(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function $c(e,t=.15){return _c(e)>.5?ha(e,t):ga(e,t)}function ma(e,t,n){try{return $c(e,t)}catch{return e}}const eC="exact-prop: ​";function zc(e){return process.env.NODE_ENV==="production"?e:{...e,[eC]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const tC=T.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const pi=()=>T.useContext(tC)??!1,nC=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function rC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?ci(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?ci(i,r,t.components.mergeClassNameAndStyle):r}function oC({props:e,name:t}){const n=T.useContext(nC);return rC({props:e,name:t,theme:{components:n}})}let Ah=0;function iC(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(Ah+=1,n(`mui-${Ah}`))},[t]),r}const Ih={...T}.useId;function mr(e){if(Ih!==void 0){const t=Ih();return e??t}return iC(e)}const Nh={theme:void 0};function sC(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(Nh.theme=i.theme,s=vh(e(Nh)),t=s,n=i.theme),s}}function aC(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Fh=(e,t,n,r=[])=>{let i=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},lC=(e,t,n)=>{function r(i,s=[],l=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...s,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...s,c],Array.isArray(d)?[...l,c]:l):t([...s,c],d,l))})}r(e)},cC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Lc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},l={};return lC(e,(c,d,u)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const p=`--${n?`${n}-`:""}${c.join("-")}`,h=cC(c,d);Object.assign(i,{[p]:h}),Fh(s,c,`var(${p})`,u),Fh(l,c,`var(${p}, ${h})`,u)}},c=>c[0]==="vars"),{css:i,vars:s,varsWithDefaults:l}}function dC(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:l={},components:c,defaultColorScheme:d="light",...u}=e,{vars:p,css:h,varsWithDefaults:y}=Lc(u,t);let b=y;const g={},{[d]:f,...m}=l;if(Object.entries(m||{}).forEach(([v,C])=>{const{vars:k,css:A,varsWithDefaults:z}=Lc(C,t);b=Et(b,z),g[v]={css:A,vars:k}}),f){const{css:v,vars:C,varsWithDefaults:k}=Lc(f,t);b=Et(b,k),g[d]={css:v,vars:C}}function x(v,C){let k=i;if(i==="class"&&(k=".%s"),i==="data"&&(k="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(k=`[${i}="%s"]`),v){if(k==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${l[v]?.palette?.mode||v})`]:{":root":C}};if(k)return e.defaultColorScheme===v?`:root, ${k.replace("%s",String(v))}`:k.replace("%s",String(v))}return":root"}return{vars:b,generateThemeVars:()=>{let v={...p};return Object.entries(g).forEach(([,{vars:C}])=>{v=Et(v,C)}),v},generateStyleSheets:()=>{const v=[],C=e.defaultColorScheme||"light";function k(M,$){Object.keys($).length&&v.push(typeof M=="string"?{[M]:{...$}}:M)}k(n(void 0,{...h}),h);const{[C]:A,...z}=g;if(A){const{css:M}=A,$=l[C]?.palette?.mode,I=!r&&$?{colorScheme:$,...M}:{...M};k(n(C,{...I}),I)}return Object.entries(z).forEach(([M,{css:$}])=>{const I=l[M]?.palette?.mode,E=!r&&I?{colorScheme:I,...$}:{...$};k(n(M,{...E}),E)}),s&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function pC(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ve(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let l="",c=!0;for(let d=0;d<s.length;d+=1){const u=s[d];u&&(l+=(c===!0?"":" ")+t(u),c=!1,n&&n[u]&&(l+=" "+n[u]))}r[i]=l}return r}const uC=ca(),fC=Gw("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),hC=e=>Kw({props:e,name:"MuiContainer",defaultTheme:uC}),gC=(e,t)=>{const n=d=>be(t,d),{classes:r,fixed:i,disableGutters:s,maxWidth:l}=e,c={root:["root",l&&`maxWidth${Z(String(l))}`,i&&"fixed",s&&"disableGutters"]};return ve(c,n,r)};function mC(e={}){const{createStyledComponent:t=fC,useThemeProps:n=hC,componentName:r="MuiContainer"}=e,i=t(({theme:l,ownerState:c})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!c.disableGutters&&{paddingLeft:l.spacing(2),paddingRight:l.spacing(2),[l.breakpoints.up("sm")]:{paddingLeft:l.spacing(3),paddingRight:l.spacing(3)}}}),({theme:l,ownerState:c})=>c.fixed&&Object.keys(l.breakpoints.values).reduce((d,u)=>{const p=u,h=l.breakpoints.values[p];return h!==0&&(d[l.breakpoints.up(p)]={maxWidth:`${h}${l.breakpoints.unit}`}),d},{}),({theme:l,ownerState:c})=>({...c.maxWidth==="xs"&&{[l.breakpoints.up("xs")]:{maxWidth:Math.max(l.breakpoints.values.xs,444)}},...c.maxWidth&&c.maxWidth!=="xs"&&{[l.breakpoints.up(c.maxWidth)]:{maxWidth:`${l.breakpoints.values[c.maxWidth]}${l.breakpoints.unit}`}}})),s=T.forwardRef(function(c,d){const u=n(c),{className:p,component:h="div",disableGutters:y=!1,fixed:b=!1,maxWidth:g="lg",classes:f,...m}=u,x={...u,component:h,disableGutters:y,fixed:b,maxWidth:g},w=gC(x,r);return a.jsx(i,{as:h,ownerState:x,className:ue(w.root,p),ref:d,...m})});return process.env.NODE_ENV!=="production"&&(s.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])}),s}function Bc(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Mh(){return{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:Xo.white,default:Xo.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}}}const Dh=Mh();function _h(){return{text:{primary:Xo.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:Xo.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}}}const jc=_h();function $h(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ga(e.main,i):t==="dark"&&(e.dark=ha(e.main,s)))}function zh(e,t,n,r,i){const s=i.light||i,l=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(l*100).toFixed(0)}%)`))}function yC(e="light"){return e==="dark"?{main:qr[200],light:qr[50],dark:qr[400]}:{main:qr[700],light:qr[400],dark:qr[800]}}function bC(e="light"){return e==="dark"?{main:Rr[200],light:Rr[50],dark:Rr[400]}:{main:Rr[500],light:Rr[300],dark:Rr[700]}}function xC(e="light"){return e==="dark"?{main:Hr[500],light:Hr[300],dark:Hr[700]}:{main:Hr[700],light:Hr[400],dark:Hr[800]}}function vC(e="light"){return e==="dark"?{main:Yr[400],light:Yr[300],dark:Yr[700]}:{main:Yr[700],light:Yr[500],dark:Yr[900]}}function SC(e="light"){return e==="dark"?{main:Gr[400],light:Gr[300],dark:Gr[700]}:{main:Gr[800],light:Gr[500],dark:Gr[900]}}function wC(e="light"){return e==="dark"?{main:Jo[400],light:Jo[300],dark:Jo[700]}:{main:"#ed6c02",light:Jo[500],dark:Jo[900]}}function CC(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Wc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,l=e.primary||yC(t),c=e.secondary||bC(t),d=e.error||xC(t),u=e.info||vC(t),p=e.success||SC(t),h=e.warning||wC(t);function y(m){if(i)return CC(m);const x=Oh(m,jc.text.primary)>=n?jc.text.primary:Dh.text.primary;if(process.env.NODE_ENV!=="production"){const w=Oh(m,x);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${x} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
35
+ `))}return x}const b=({color:m,name:x,mainShade:w=500,lightShade:S=300,darkShade:v=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
36
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:pn(11,x?` (${x})`:"",w));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
37
37
  \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
38
38
 
39
39
  Did you intend to use one of the following approaches?
@@ -46,21 +46,21 @@ const theme1 = createTheme({ palette: {
46
46
 
47
47
  const theme2 = createTheme({ palette: {
48
48
  primary: { main: green[500] },
49
- } });`:dn(12,y?` (${y})`:"",JSON.stringify(m.main)));return i?(Nh(i,m,"light",S,r),Nh(i,m,"dark",v,r)):(Ih(m,"light",S,r),Ih(m,"dark",v,r)),m.contrastText||(m.contrastText=x(m.main)),m};let g;return t==="light"?g=Oh():t==="dark"&&(g=Ah()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),wt({common:{...Yo},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:p,name:"info"}),success:b({color:u,name:"success"}),grey:P1,contrastThreshold:n,getContrastText:x,augmentColor:b,tonalOffset:r,...g},s)}function xC(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function vC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function SC(e){return Math.round(e*1e5)/1e5}const Fh={textTransform:"uppercase"},Mh='"Roboto", "Helvetica", "Arial", sans-serif';function wC(e,t){const{fontFamily:n=Mh,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:p,pxToRem:u,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const x=r/14,b=u||(m=>`${m/d*x}rem`),g=(m,y,w,S,v)=>({fontFamily:n,fontWeight:m,fontSize:b(y),lineHeight:w,...n===Mh?{letterSpacing:`${SC(S/y)}em`}:{},...v,...p}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,Fh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Fh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wt({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...f},h,{clone:!1})}const CC=.2,EC=.14,TC=.12;function Qe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${CC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${EC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TC})`].join(",")}const PC=["none",Qe(0,2,1,-1,0,1,1,0,0,1,3,0),Qe(0,3,1,-2,0,2,2,0,0,1,5,0),Qe(0,3,3,-2,0,3,4,0,0,1,8,0),Qe(0,2,4,-1,0,4,5,0,0,1,10,0),Qe(0,3,5,-1,0,5,8,0,0,1,14,0),Qe(0,3,5,-1,0,6,10,0,0,1,18,0),Qe(0,4,5,-2,0,7,10,1,0,2,16,1),Qe(0,5,5,-3,0,8,10,1,0,3,14,2),Qe(0,5,6,-3,0,9,12,1,0,3,16,2),Qe(0,6,6,-3,0,10,14,1,0,4,18,3),Qe(0,6,7,-4,0,11,15,1,0,4,20,3),Qe(0,7,8,-4,0,12,17,2,0,5,22,4),Qe(0,7,8,-4,0,13,19,2,0,5,24,4),Qe(0,7,9,-4,0,14,21,2,0,5,26,4),Qe(0,8,9,-5,0,15,22,2,0,6,28,5),Qe(0,8,10,-5,0,16,24,2,0,6,30,5),Qe(0,8,11,-5,0,17,26,2,0,6,32,5),Qe(0,9,11,-5,0,18,28,2,0,7,34,6),Qe(0,9,12,-6,0,19,29,2,0,7,36,6),Qe(0,10,13,-6,0,20,31,3,0,8,38,7),Qe(0,10,13,-6,0,21,33,3,0,8,40,7),Qe(0,10,14,-6,0,22,35,3,0,8,42,7),Qe(0,11,14,-7,0,23,36,3,0,9,44,8),Qe(0,11,15,-7,0,24,38,3,0,9,46,8)],OC={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)"},kC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dh(e){return`${Math.round(e)}ms`}function AC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function IC(e){const t={...OC,...e.easing},n={...kC,...e.duration};return{getAutoHeightDuration:AC,create:(i=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:d=0,...p}=s;if(process.env.NODE_ENV!=="production"){const u=x=>typeof x=="string",h=x=>!Number.isNaN(parseFloat(x));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!u(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
50
- `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:Dh(a)} ${l} ${typeof d=="string"?d:Dh(d)}`).join(",")},...e,easing:t,duration:n}}const NC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function FC(e){return hn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function _h(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[a,l]=i[s];!FC(l)||a.startsWith("unstable_")?delete r[a]:hn(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
49
+ } });`:pn(12,x?` (${x})`:"",JSON.stringify(m.main)));return i?(zh(i,m,"light",S,r),zh(i,m,"dark",v,r)):($h(m,"light",S,r),$h(m,"dark",v,r)),m.contrastText||(m.contrastText=y(m.main)),m};let g;return t==="light"?g=Mh():t==="dark"&&(g=_h()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Et({common:{...Xo},mode:t,primary:b({color:l,name:"primary"}),secondary:b({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:d,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:u,name:"info"}),success:b({color:p,name:"success"}),grey:N1,contrastThreshold:n,getContrastText:y,augmentColor:b,tonalOffset:r,...g},s)}function EC(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function TC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function kC(e){return Math.round(e*1e5)/1e5}const Lh={textTransform:"uppercase"},Bh='"Roboto", "Helvetica", "Arial", sans-serif';function PC(e,t){const{fontFamily:n=Bh,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:u,pxToRem:p,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,b=p||(m=>`${m/d*y}rem`),g=(m,x,w,S,v)=>({fontFamily:n,fontWeight:m,fontSize:b(x),lineHeight:w,...n===Bh?{letterSpacing:`${kC(S/x)}em`}:{},...v,...u}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(l,14,1.75,.4,Lh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,Lh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Et({htmlFontSize:d,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c,...f},h,{clone:!1})}const OC=.2,AC=.14,IC=.12;function Ze(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${OC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${AC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${IC})`].join(",")}const NC=["none",Ze(0,2,1,-1,0,1,1,0,0,1,3,0),Ze(0,3,1,-2,0,2,2,0,0,1,5,0),Ze(0,3,3,-2,0,3,4,0,0,1,8,0),Ze(0,2,4,-1,0,4,5,0,0,1,10,0),Ze(0,3,5,-1,0,5,8,0,0,1,14,0),Ze(0,3,5,-1,0,6,10,0,0,1,18,0),Ze(0,4,5,-2,0,7,10,1,0,2,16,1),Ze(0,5,5,-3,0,8,10,1,0,3,14,2),Ze(0,5,6,-3,0,9,12,1,0,3,16,2),Ze(0,6,6,-3,0,10,14,1,0,4,18,3),Ze(0,6,7,-4,0,11,15,1,0,4,20,3),Ze(0,7,8,-4,0,12,17,2,0,5,22,4),Ze(0,7,8,-4,0,13,19,2,0,5,24,4),Ze(0,7,9,-4,0,14,21,2,0,5,26,4),Ze(0,8,9,-5,0,15,22,2,0,6,28,5),Ze(0,8,10,-5,0,16,24,2,0,6,30,5),Ze(0,8,11,-5,0,17,26,2,0,6,32,5),Ze(0,9,11,-5,0,18,28,2,0,7,34,6),Ze(0,9,12,-6,0,19,29,2,0,7,36,6),Ze(0,10,13,-6,0,20,31,3,0,8,38,7),Ze(0,10,13,-6,0,21,33,3,0,8,40,7),Ze(0,10,14,-6,0,22,35,3,0,8,42,7),Ze(0,11,14,-7,0,23,36,3,0,9,44,8),Ze(0,11,15,-7,0,24,38,3,0,9,46,8)],FC={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)"},MC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function jh(e){return`${Math.round(e)}ms`}function DC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _C(e){const t={...FC,...e.easing},n={...MC,...e.duration};return{getAutoHeightDuration:DC,create:(i=["all"],s={})=>{const{duration:l=n.standard,easing:c=t.easeInOut,delay:d=0,...u}=s;if(process.env.NODE_ENV!=="production"){const p=y=>typeof y=="string",h=y=>!Number.isNaN(parseFloat(y));!p(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(c)||console.error('MUI: Argument "easing" must be a string.'),!h(d)&&!p(d)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
50
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(p=>`${p} ${typeof l=="string"?l:jh(l)} ${c} ${typeof d=="string"?d:jh(d)}`).join(",")},...e,easing:t,duration:n}}const $C={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function zC(e){return gn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Wh(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[l,c]=i[s];!zC(c)||l.startsWith("unstable_")?delete r[l]:gn(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
51
51
 
52
52
  const theme = ${JSON.stringify(t,null,2)};
53
53
 
54
54
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
55
55
  theme.transitions = createTransitions(theme.transitions || {});
56
56
 
57
- export default theme;`}function $h(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const MC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function DC(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:la(t,MC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${$h(n)})`:da(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${$h(n)})`:ca(t,n)}})}function Dc(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:d,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":dn(20));const h=Mc({...s,colorSpace:p}),x=oa(e);let b=wt(x,{mixins:vC(x.breakpoints,r),palette:h,shadows:PC.slice(),typography:wC(h,l),transitions:IC(a),zIndex:{...NC}});if(b=wt(b,u),b=t.reduce((g,f)=>wt(g,f),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,y)=>{let w;for(w in m){const S=m[w];if(g.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=ye("",w);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
- `))}m[w]={}}}};Object.keys(b.components).forEach(m=>{const y=b.components[m].styleOverrides;y&&m.startsWith("Mui")&&f(y,m)})}return b.unstable_sxConfig={...ii,...u?.unstable_sxConfig},b.unstable_sx=function(f){return pr({sx:f,theme:this})},b.toRuntimeSource=_h,DC(b),b}function _c(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const _C=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=_c(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function zh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Lh(e){return e==="dark"?_C:[]}function $C(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=Mc({...t,colorSpace:i});return{palette:a,opacity:{...zh(a.mode),...n},overlays:r||Lh(a.mode),...s}}function zC(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const LC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return LC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function BC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function ci(e){return typeof e!="string"||!e.startsWith("hsl")?e:Sh(e)}function zn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=ai(ci(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
- To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function WC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const gn=e=>{try{return e()}catch{}},RC=(e="mui")=>nC(e);function $c(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=$C({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=Dc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...zh(s),...n?.opacity},overlays:n?.overlays||Lh(s)},l}function VC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=zC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],x=r||(n.light&&h!=="light"?"light":h),b=RC(s),{[x]:g,light:f,dark:m,...y}=n,w={...y};let S=g;if((x==="dark"&&!("dark"in n)||x==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${x}\` option is either missing or invalid.`:dn(21,x));let v;a&&(v="oklch");const C=$c(v,w,S,u,x);f&&!w.light&&$c(v,w,f,void 0,"light"),m&&!w.dark&&$c(v,w,m,void 0,"dark");let P={defaultColorScheme:x,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:p,getCssVar:b,colorSchemes:w,font:{...xC(C.typography),...C.font},spacing:WC(u.spacing)};Object.keys(P.colorSchemes).forEach(F=>{const E=P.colorSchemes[F].palette,A=B=>{const $=B.split("-"),j=$[1],_=$[2];return b(B,E[j][_])};E.mode==="light"&&(Y(E.common,"background","#fff"),Y(E.common,"onBackground","#000")),E.mode==="dark"&&(Y(E.common,"background","#000"),Y(E.common,"onBackground","#fff"));function M(B,$,j){if(v){let _;return B===hr&&(_=`transparent ${((1-j)*100).toFixed(0)}%`),B===We&&(_=`#000 ${(j*100).toFixed(0)}%`),B===Re&&(_=`#fff ${(j*100).toFixed(0)}%`),`color-mix(in ${v}, ${$}, ${_})`}return B($,j)}if(BC(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Y(E.Alert,"errorColor",M(We,E.error.light,.6)),Y(E.Alert,"infoColor",M(We,E.info.light,.6)),Y(E.Alert,"successColor",M(We,E.success.light,.6)),Y(E.Alert,"warningColor",M(We,E.warning.light,.6)),Y(E.Alert,"errorFilledBg",A("palette-error-main")),Y(E.Alert,"infoFilledBg",A("palette-info-main")),Y(E.Alert,"successFilledBg",A("palette-success-main")),Y(E.Alert,"warningFilledBg",A("palette-warning-main")),Y(E.Alert,"errorFilledColor",gn(()=>E.getContrastText(E.error.main))),Y(E.Alert,"infoFilledColor",gn(()=>E.getContrastText(E.info.main))),Y(E.Alert,"successFilledColor",gn(()=>E.getContrastText(E.success.main))),Y(E.Alert,"warningFilledColor",gn(()=>E.getContrastText(E.warning.main))),Y(E.Alert,"errorStandardBg",M(Re,E.error.light,.9)),Y(E.Alert,"infoStandardBg",M(Re,E.info.light,.9)),Y(E.Alert,"successStandardBg",M(Re,E.success.light,.9)),Y(E.Alert,"warningStandardBg",M(Re,E.warning.light,.9)),Y(E.Alert,"errorIconColor",A("palette-error-main")),Y(E.Alert,"infoIconColor",A("palette-info-main")),Y(E.Alert,"successIconColor",A("palette-success-main")),Y(E.Alert,"warningIconColor",A("palette-warning-main")),Y(E.AppBar,"defaultBg",A("palette-grey-100")),Y(E.Avatar,"defaultBg",A("palette-grey-400")),Y(E.Button,"inheritContainedBg",A("palette-grey-300")),Y(E.Button,"inheritContainedHoverBg",A("palette-grey-A100")),Y(E.Chip,"defaultBorder",A("palette-grey-400")),Y(E.Chip,"defaultAvatarColor",A("palette-grey-700")),Y(E.Chip,"defaultIconColor",A("palette-grey-700")),Y(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(E.LinearProgress,"primaryBg",M(Re,E.primary.main,.62)),Y(E.LinearProgress,"secondaryBg",M(Re,E.secondary.main,.62)),Y(E.LinearProgress,"errorBg",M(Re,E.error.main,.62)),Y(E.LinearProgress,"infoBg",M(Re,E.info.main,.62)),Y(E.LinearProgress,"successBg",M(Re,E.success.main,.62)),Y(E.LinearProgress,"warningBg",M(Re,E.warning.main,.62)),Y(E.Skeleton,"bg",v?M(hr,E.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),Y(E.Slider,"primaryTrack",M(Re,E.primary.main,.62)),Y(E.Slider,"secondaryTrack",M(Re,E.secondary.main,.62)),Y(E.Slider,"errorTrack",M(Re,E.error.main,.62)),Y(E.Slider,"infoTrack",M(Re,E.info.main,.62)),Y(E.Slider,"successTrack",M(Re,E.success.main,.62)),Y(E.Slider,"warningTrack",M(Re,E.warning.main,.62));const B=v?M(We,E.background.default,.6825):ua(E.background.default,.8);Y(E.SnackbarContent,"bg",B),Y(E.SnackbarContent,"color",gn(()=>v?Fc.text.primary:E.getContrastText(B))),Y(E.SpeedDialAction,"fabHoverBg",ua(E.background.paper,.15)),Y(E.StepConnector,"border",A("palette-grey-400")),Y(E.StepContent,"border",A("palette-grey-400")),Y(E.Switch,"defaultColor",A("palette-common-white")),Y(E.Switch,"defaultDisabledColor",A("palette-grey-100")),Y(E.Switch,"primaryDisabledColor",M(Re,E.primary.main,.62)),Y(E.Switch,"secondaryDisabledColor",M(Re,E.secondary.main,.62)),Y(E.Switch,"errorDisabledColor",M(Re,E.error.main,.62)),Y(E.Switch,"infoDisabledColor",M(Re,E.info.main,.62)),Y(E.Switch,"successDisabledColor",M(Re,E.success.main,.62)),Y(E.Switch,"warningDisabledColor",M(Re,E.warning.main,.62)),Y(E.TableCell,"border",M(Re,M(hr,E.divider,1),.88)),Y(E.Tooltip,"bg",M(hr,E.grey[700],.92))}if(E.mode==="dark"){Y(E.Alert,"errorColor",M(Re,E.error.light,.6)),Y(E.Alert,"infoColor",M(Re,E.info.light,.6)),Y(E.Alert,"successColor",M(Re,E.success.light,.6)),Y(E.Alert,"warningColor",M(Re,E.warning.light,.6)),Y(E.Alert,"errorFilledBg",A("palette-error-dark")),Y(E.Alert,"infoFilledBg",A("palette-info-dark")),Y(E.Alert,"successFilledBg",A("palette-success-dark")),Y(E.Alert,"warningFilledBg",A("palette-warning-dark")),Y(E.Alert,"errorFilledColor",gn(()=>E.getContrastText(E.error.dark))),Y(E.Alert,"infoFilledColor",gn(()=>E.getContrastText(E.info.dark))),Y(E.Alert,"successFilledColor",gn(()=>E.getContrastText(E.success.dark))),Y(E.Alert,"warningFilledColor",gn(()=>E.getContrastText(E.warning.dark))),Y(E.Alert,"errorStandardBg",M(We,E.error.light,.9)),Y(E.Alert,"infoStandardBg",M(We,E.info.light,.9)),Y(E.Alert,"successStandardBg",M(We,E.success.light,.9)),Y(E.Alert,"warningStandardBg",M(We,E.warning.light,.9)),Y(E.Alert,"errorIconColor",A("palette-error-main")),Y(E.Alert,"infoIconColor",A("palette-info-main")),Y(E.Alert,"successIconColor",A("palette-success-main")),Y(E.Alert,"warningIconColor",A("palette-warning-main")),Y(E.AppBar,"defaultBg",A("palette-grey-900")),Y(E.AppBar,"darkBg",A("palette-background-paper")),Y(E.AppBar,"darkColor",A("palette-text-primary")),Y(E.Avatar,"defaultBg",A("palette-grey-600")),Y(E.Button,"inheritContainedBg",A("palette-grey-800")),Y(E.Button,"inheritContainedHoverBg",A("palette-grey-700")),Y(E.Chip,"defaultBorder",A("palette-grey-700")),Y(E.Chip,"defaultAvatarColor",A("palette-grey-300")),Y(E.Chip,"defaultIconColor",A("palette-grey-300")),Y(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(E.LinearProgress,"primaryBg",M(We,E.primary.main,.5)),Y(E.LinearProgress,"secondaryBg",M(We,E.secondary.main,.5)),Y(E.LinearProgress,"errorBg",M(We,E.error.main,.5)),Y(E.LinearProgress,"infoBg",M(We,E.info.main,.5)),Y(E.LinearProgress,"successBg",M(We,E.success.main,.5)),Y(E.LinearProgress,"warningBg",M(We,E.warning.main,.5)),Y(E.Skeleton,"bg",v?M(hr,E.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),Y(E.Slider,"primaryTrack",M(We,E.primary.main,.5)),Y(E.Slider,"secondaryTrack",M(We,E.secondary.main,.5)),Y(E.Slider,"errorTrack",M(We,E.error.main,.5)),Y(E.Slider,"infoTrack",M(We,E.info.main,.5)),Y(E.Slider,"successTrack",M(We,E.success.main,.5)),Y(E.Slider,"warningTrack",M(We,E.warning.main,.5));const B=v?M(Re,E.background.default,.985):ua(E.background.default,.98);Y(E.SnackbarContent,"bg",B),Y(E.SnackbarContent,"color",gn(()=>v?kh.text.primary:E.getContrastText(B))),Y(E.SpeedDialAction,"fabHoverBg",ua(E.background.paper,.15)),Y(E.StepConnector,"border",A("palette-grey-600")),Y(E.StepContent,"border",A("palette-grey-600")),Y(E.Switch,"defaultColor",A("palette-grey-300")),Y(E.Switch,"defaultDisabledColor",A("palette-grey-600")),Y(E.Switch,"primaryDisabledColor",M(We,E.primary.main,.55)),Y(E.Switch,"secondaryDisabledColor",M(We,E.secondary.main,.55)),Y(E.Switch,"errorDisabledColor",M(We,E.error.main,.55)),Y(E.Switch,"infoDisabledColor",M(We,E.info.main,.55)),Y(E.Switch,"successDisabledColor",M(We,E.success.main,.55)),Y(E.Switch,"warningDisabledColor",M(We,E.warning.main,.55)),Y(E.TableCell,"border",M(We,M(hr,E.divider,1),.68)),Y(E.Tooltip,"bg",M(hr,E.grey[700],.92))}zn(E.background,"default"),zn(E.background,"paper"),zn(E.common,"background"),zn(E.common,"onBackground"),zn(E,"divider"),Object.keys(E).forEach(B=>{const $=E[B];B!=="tonalOffset"&&$&&typeof $=="object"&&($.main&&Y(E[B],"mainChannel",ai(ci($.main))),$.light&&Y(E[B],"lightChannel",ai(ci($.light))),$.dark&&Y(E[B],"darkChannel",ai(ci($.dark))),$.contrastText&&Y(E[B],"contrastTextChannel",ai(ci($.contrastText))),B==="text"&&(zn(E[B],"primary"),zn(E[B],"secondary")),B==="action"&&($.active&&zn(E[B],"active"),$.selected&&zn(E[B],"selected")))})}),P=t.reduce((F,E)=>wt(F,E),P);const O={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:jC(P),enableContrastVars:a},{vars:D,generateThemeVars:N,generateStyleSheets:I}=iC(P,O);return P.vars=D,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([F,E])=>{P[F]=E}),P.generateThemeVars=N,P.generateStyleSheets=I,P.generateSpacing=function(){return ih(u.spacing,wc(this))},P.getColorSchemeSelector=sC(d),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...ii,...u?.unstable_sxConfig},P.unstable_sx=function(E){return pr({sx:E,theme:this})},P.toRuntimeSource=_h,P}function jh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Mc({...n===!0?{}:n.palette,mode:t})})}function Bh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",d=i?.[l],p={...i,...n?{[l]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Dc(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const h=Dc({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},jh(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},jh(h,"light",p.light)),h}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),VC({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const zc=Bh();function mn(){const e=ia(zc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Ko]||e}function di(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Ct=e=>di(e)&&e!=="classes",X=mh({themeId:Ko,defaultTheme:zc,rootShouldForwardProp:Ct});function Lc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Wh(e){return c.jsx(ah,{...e,defaultTheme:zc,themeId:Ko})}process.env.NODE_ENV!=="production"&&(Wh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function UC(e){return function(n){return c.jsx(Wh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function HC(){return lh}const me=tC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function Se(e){return Zw(e)}function qC(e){return ye("MuiSvgIcon",e)}be("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return xe(i,qC,r)},GC=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(me(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Qn=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:d="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:x="0 0 24 24",...b}=r,g=T.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:l,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:x,hasSvgAsChild:g},m={};u||(m.viewBox=x);const y=YC(f);return c.jsxs(GC,{as:l,className:ue(y.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...b,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?c.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Qn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),Qn.muiName="SvgIcon";function Ke(e,t){function n(r,i){return c.jsx(Qn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Qn.muiName,T.memo(T.forwardRef(n))}function Rh(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function dt(e){return e&&e.ownerDocument||document}function Ln(e){return dt(e).defaultView||window}function Vh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Qr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=T.useRef(t!==void 0),[a,l]=T.useState(n),d=s?t:a;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
- `))},[i,r,t]);const{current:u}=T.useRef(n);T.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
- `))},[JSON.stringify(n)])}const p=T.useCallback(u=>{s||l(u)},[]);return[d,p]}function Tt(e){const t=T.useRef(e);return Ht(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function lt(...e){const t=T.useRef(void 0),n=T.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return T.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function KC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Uh(e,t){if(!e)return t;function n(a,l){const d={};return Object.keys(l).forEach(p=>{KC(p,l[p])&&typeof a[p]=="function"&&(d[p]=(...u)=>{a[p](...u),l[p](...u)})}),d}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,d=typeof e=="function"?e({...a,...l}):e,p=ue(a?.className,l?.className,d?.className),u=n(d,l);return{...l,...d,...u,...!!p&&{className:p},...l?.style&&d?.style&&{style:{...l.style,...d.style}},...l?.sx&&d?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=ue(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var pa={exports:{}},He={};var Hh;function XC(){if(Hh)return He;Hh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case p:case x:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return He.ContextConsumer=s,He.ContextProvider=a,He.Element=e,He.ForwardRef=l,He.Fragment=n,He.Lazy=h,He.Memo=u,He.Portal=t,He.Profiler=i,He.StrictMode=r,He.Suspense=d,He.SuspenseList=p,He.isContextConsumer=function(f){return g(f)===s},He.isContextProvider=function(f){return g(f)===a},He.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},He.isForwardRef=function(f){return g(f)===l},He.isFragment=function(f){return g(f)===n},He.isLazy=function(f){return g(f)===h},He.isMemo=function(f){return g(f)===u},He.isPortal=function(f){return g(f)===t},He.isProfiler=function(f){return g(f)===i},He.isStrictMode=function(f){return g(f)===r},He.isSuspense=function(f){return g(f)===d},He.isSuspenseList=function(f){return g(f)===p},He.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},He.typeOf=g,He}var qe={};var qh;function JC(){return qh||(qh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case l:case d:case x:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");qe.ContextConsumer=a,qe.ContextProvider=l,qe.Element=t,qe.ForwardRef=d,qe.Fragment=r,qe.Lazy=x,qe.Memo=h,qe.Portal=n,qe.Profiler=s,qe.StrictMode=i,qe.Suspense=p,qe.SuspenseList=u,qe.isContextConsumer=function(f){return e(f)===a},qe.isContextProvider=function(f){return e(f)===l},qe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},qe.isForwardRef=function(f){return e(f)===d},qe.isFragment=function(f){return e(f)===r},qe.isLazy=function(f){return e(f)===x},qe.isMemo=function(f){return e(f)===h},qe.isPortal=function(f){return e(f)===n},qe.isProfiler=function(f){return e(f)===s},qe.isStrictMode=function(f){return e(f)===i},qe.isSuspense=function(f){return e(f)===p},qe.isSuspenseList=function(f){return e(f)===u},qe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===x||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},qe.typeOf=e})()),qe}var Yh;function QC(){return Yh||(Yh=1,process.env.NODE_ENV==="production"?pa.exports=XC():pa.exports=JC()),pa.exports}var jc=QC();function nn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Gh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Bc(e,t){return Bc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Bc(e,t)}function Kh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bc(e,t)}const Xh={disabled:!1};var ZC=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const fa=L.createContext(null);var eE=function(t){return t.scrollTop},ui="unmounted",mr="exited",yr="entering",Zr="entered",Wc="exiting",yn=(function(e){Kh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?l?(d=mr,s.appearStatus=yr):d=Zr:r.unmountOnExit||r.mountOnEnter?d=ui:d=mr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===ui?{status:mr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==yr&&a!==Zr&&(s=yr):(a===yr||a===Zr)&&(s=Wc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===yr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this);a&&eE(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===mr&&this.setState({status:ui})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,d=this.props.nodeRef?[l]:[yo.findDOMNode(this),l],p=d[0],u=d[1],h=this.getTimeouts(),x=l?h.appear:h.enter;if(!i&&!a||Xh.disabled){this.safeSetState({status:Zr},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:yr},function(){s.props.onEntering(p,u),s.onTransitionEnd(x,function(){s.safeSetState({status:Zr},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:yo.findDOMNode(this);if(!s||Xh.disabled){this.safeSetState({status:mr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Wc},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:mr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:yo.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=d[0],u=d[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ui)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Gh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return L.createElement(fa.Provider,{value:null},typeof a=="function"?a(i,l):L.cloneElement(L.Children.only(a),l))},t})(L.Component);yn.contextType=fa,yn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=ZC;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function eo(){}yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:eo,onEntering:eo,onEntered:eo,onExit:eo,onExiting:eo,onExited:eo},yn.UNMOUNTED=ui,yn.EXITED=mr,yn.ENTERING=yr,yn.ENTERED=Zr,yn.EXITING=Wc;function tE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rc(e,t){var n=function(s){return t&&L.isValidElement(s)?t(s):s},r=Object.create(null);return e&&L.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function nE(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var d in t){if(r[d])for(a=0;a<r[d].length;a++){var p=r[d][a];l[r[d][a]]=n(p)}l[d]=n(d)}for(a=0;a<i.length;a++)l[i[a]]=n(i[a]);return l}function br(e,t,n){return n[t]!=null?n[t]:e.props[t]}function rE(e,t){return Rc(e.children,function(n){return L.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:br(n,"appear",e),enter:br(n,"enter",e),exit:br(n,"exit",e)})})}function oE(e,t,n){var r=Rc(e.children),i=nE(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(L.isValidElement(a)){var l=s in t,d=s in r,p=t[s],u=L.isValidElement(p)&&!p.props.in;d&&(!l||u)?i[s]=L.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:br(a,"exit",e),enter:br(a,"enter",e)}):!d&&l&&!u?i[s]=L.cloneElement(a,{in:!1}):d&&l&&L.isValidElement(p)&&(i[s]=L.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:br(a,"exit",e),enter:br(a,"enter",e)}))}}),i}var iE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sE={component:"div",childFactory:function(t){return t}},Vc=(function(e){Kh(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(tE(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,d=s.firstRender;return{children:d?rE(i,l):oE(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=Rc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var d=Ds({},l.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=Gh(i,["component","childFactory"]),d=this.state.contextValue,p=iE(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?L.createElement(fa.Provider,{value:d},p):L.createElement(fa.Provider,{value:d},L.createElement(s,l,p))},t})(L.Component);Vc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Vc.defaultProps=sE;const Jh={};function Qh(e,t){const n=T.useRef(Jh);return n.current===Jh&&(n.current=e(t)),n}const aE=[];function lE(e){T.useEffect(e,aE)}class ha{static create(){return new ha}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function xr(){const e=Qh(ha.create).current;return lE(e.disposeEffect),e}function cE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function dE(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!cE(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Uc=nn(o.elementType,dE),Zh=e=>e.scrollTop;function ga(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Zn(e){return typeof e=="string"}function eg(e,t,n){return e===void 0||Zn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tg(e,t,n){return typeof e=="function"?e(t,n):e}function vr(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 ng(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 rg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const b=ue(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return b.length>0&&(f.className=b),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=vr({...i,...r}),l=ng(r),d=ng(i),p=t(a),u=ue(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},x={...p,...n,...d,...l};return u.length>0&&(x.className=u),Object.keys(h).length>0&&(x.style=h),{props:x,internalRef:p.ref}}function Ee(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...d}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...x}=s,b=u[e]||r,g=tg(h[e],i),{props:{component:f,...m},internalRef:y}=rg({className:n,...d,externalForwardedProps:e==="root"?x:void 0,externalSlotProps:g}),w=lt(y,g?.ref,t.ref),S=e==="root"?f||p:f,v=eg(b,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},i);return[b,v]}function uE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function og(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=uE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function ig(e,t,n,r){return e[t]===void 0?null:og(e,t,n,r)}function Hc(){return null}ig.isRequired=og,Hc.isRequired=Hc;const ma=process.env.NODE_ENV==="production"?Hc:ig;function pE(e){return ye("MuiPaper",e)}be("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 fE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return xe(s,pE,i)},hE=X("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}`]]}})(me(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),rn=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPaper"}),i=mn(),{className:s,component:a="div",elevation:l=1,square:d=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:l,square:d,variant:p},x=fE(h);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
62
- `)),c.jsx(hE,{as:a,ownerState:h,className:ue(x.root,s),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${la("#fff",_c(l))}, ${la("#fff",_c(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(rn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:nn(ma,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const Pt=o.oneOfType([o.func,o.object]);function to(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
63
- `))}return!1}class ya{static create(){return new ya}static use(){const t=Qh(ya.create).current,[n,r]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=r,T.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=mE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function gE(){return ya.use()}function mE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function sg(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:d,timeout:p}=e,[u,h]=T.useState(!1),x=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=ue(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),T.useEffect(()=>{if(!l&&d!=null){const f=setTimeout(d,p);return()=>{clearTimeout(f)}}},[d,l,p]),c.jsx("span",{className:x,style:b,children:c.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(sg.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const qt=be("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),qc=550,yE=80,bE=Gn`
57
+ export default theme;`}function Vh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const LC=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function BC(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fa(t,LC(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Vh(n)})`:ga(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Vh(n)})`:ha(t,n)}})}function Vc(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:l={},typography:c={},shape:d,colorSpace:u,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":pn(20));const h=Wc({...s,colorSpace:u}),y=ca(e);let b=Et(y,{mixins:TC(y.breakpoints,r),palette:h,shadows:NC.slice(),typography:PC(h,c),transitions:_C(l),zIndex:{...$C}});if(b=Et(b,p),b=t.reduce((g,f)=>Et(g,f),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,x)=>{let w;for(w in m){const S=m[w];if(g.includes(w)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const v=be("",w);console.error([`MUI: The \`${x}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
+ `))}m[w]={}}}};Object.keys(b.components).forEach(m=>{const x=b.components[m].styleOverrides;x&&m.startsWith("Mui")&&f(x,m)})}return b.unstable_sxConfig={...li,...p?.unstable_sxConfig},b.unstable_sx=function(f){return fr({sx:f,theme:this})},b.toRuntimeSource=Wh,BC(b),b}function Uc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const jC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Uc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Uh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Hh(e){return e==="dark"?jC:[]}function WC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,l=Wc({...t,colorSpace:i});return{palette:l,opacity:{...Uh(l.mode),...n},overlays:r||Hh(l.mode),...s}}function VC(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const UC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],HC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return UC(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:s?{[s.replace("%s",t)]:l,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function RC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Y(e,t,n){!e[t]&&n&&(e[t]=n)}function ui(e){return typeof e!="string"||!e.startsWith("hsl")?e:Ph(e)}function Ln(e,t){`${t}Channel`in e||(e[`${t}Channel`]=di(ui(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
59
+ To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function qC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const mn=e=>{try{return e()}catch{}},YC=(e="mui")=>aC(e);function Hc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=WC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:l,...c}=Vc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:l,opacity:{...Uh(s),...n?.opacity},overlays:n?.overlays||Hh(s)},c}function GC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:l=!1,shouldSkipGeneratingVar:c=VC,colorSchemeSelector:d=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...p}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),b=YC(s),{[y]:g,light:f,dark:m,...x}=n,w={...x};let S=g;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:pn(21,y));let v;l&&(v="oklch");const C=Hc(v,w,S,p,y);f&&!w.light&&Hc(v,w,f,void 0,"light"),m&&!w.dark&&Hc(v,w,m,void 0,"dark");let k={defaultColorScheme:y,...C,cssVarPrefix:s,colorSchemeSelector:d,rootSelector:u,getCssVar:b,colorSchemes:w,font:{...EC(C.typography),...C.font},spacing:qC(p.spacing)};Object.keys(k.colorSchemes).forEach(I=>{const E=k.colorSchemes[I].palette,N=W=>{const F=W.split("-"),B=F[1],O=F[2];return b(W,E[B][O])};E.mode==="light"&&(Y(E.common,"background","#fff"),Y(E.common,"onBackground","#000")),E.mode==="dark"&&(Y(E.common,"background","#000"),Y(E.common,"onBackground","#fff"));function _(W,F,B){if(v){let O;return W===gr&&(O=`transparent ${((1-B)*100).toFixed(0)}%`),W===Ue&&(O=`#000 ${(B*100).toFixed(0)}%`),W===He&&(O=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${v}, ${F}, ${O})`}return W(F,B)}if(RC(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){Y(E.Alert,"errorColor",_(Ue,E.error.light,.6)),Y(E.Alert,"infoColor",_(Ue,E.info.light,.6)),Y(E.Alert,"successColor",_(Ue,E.success.light,.6)),Y(E.Alert,"warningColor",_(Ue,E.warning.light,.6)),Y(E.Alert,"errorFilledBg",N("palette-error-main")),Y(E.Alert,"infoFilledBg",N("palette-info-main")),Y(E.Alert,"successFilledBg",N("palette-success-main")),Y(E.Alert,"warningFilledBg",N("palette-warning-main")),Y(E.Alert,"errorFilledColor",mn(()=>E.getContrastText(E.error.main))),Y(E.Alert,"infoFilledColor",mn(()=>E.getContrastText(E.info.main))),Y(E.Alert,"successFilledColor",mn(()=>E.getContrastText(E.success.main))),Y(E.Alert,"warningFilledColor",mn(()=>E.getContrastText(E.warning.main))),Y(E.Alert,"errorStandardBg",_(He,E.error.light,.9)),Y(E.Alert,"infoStandardBg",_(He,E.info.light,.9)),Y(E.Alert,"successStandardBg",_(He,E.success.light,.9)),Y(E.Alert,"warningStandardBg",_(He,E.warning.light,.9)),Y(E.Alert,"errorIconColor",N("palette-error-main")),Y(E.Alert,"infoIconColor",N("palette-info-main")),Y(E.Alert,"successIconColor",N("palette-success-main")),Y(E.Alert,"warningIconColor",N("palette-warning-main")),Y(E.AppBar,"defaultBg",N("palette-grey-100")),Y(E.Avatar,"defaultBg",N("palette-grey-400")),Y(E.Button,"inheritContainedBg",N("palette-grey-300")),Y(E.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Y(E.Chip,"defaultBorder",N("palette-grey-400")),Y(E.Chip,"defaultAvatarColor",N("palette-grey-700")),Y(E.Chip,"defaultIconColor",N("palette-grey-700")),Y(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Y(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Y(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Y(E.LinearProgress,"primaryBg",_(He,E.primary.main,.62)),Y(E.LinearProgress,"secondaryBg",_(He,E.secondary.main,.62)),Y(E.LinearProgress,"errorBg",_(He,E.error.main,.62)),Y(E.LinearProgress,"infoBg",_(He,E.info.main,.62)),Y(E.LinearProgress,"successBg",_(He,E.success.main,.62)),Y(E.LinearProgress,"warningBg",_(He,E.warning.main,.62)),Y(E.Skeleton,"bg",v?_(gr,E.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Y(E.Slider,"primaryTrack",_(He,E.primary.main,.62)),Y(E.Slider,"secondaryTrack",_(He,E.secondary.main,.62)),Y(E.Slider,"errorTrack",_(He,E.error.main,.62)),Y(E.Slider,"infoTrack",_(He,E.info.main,.62)),Y(E.Slider,"successTrack",_(He,E.success.main,.62)),Y(E.Slider,"warningTrack",_(He,E.warning.main,.62));const W=v?_(Ue,E.background.default,.6825):ma(E.background.default,.8);Y(E.SnackbarContent,"bg",W),Y(E.SnackbarContent,"color",mn(()=>v?jc.text.primary:E.getContrastText(W))),Y(E.SpeedDialAction,"fabHoverBg",ma(E.background.paper,.15)),Y(E.StepConnector,"border",N("palette-grey-400")),Y(E.StepContent,"border",N("palette-grey-400")),Y(E.Switch,"defaultColor",N("palette-common-white")),Y(E.Switch,"defaultDisabledColor",N("palette-grey-100")),Y(E.Switch,"primaryDisabledColor",_(He,E.primary.main,.62)),Y(E.Switch,"secondaryDisabledColor",_(He,E.secondary.main,.62)),Y(E.Switch,"errorDisabledColor",_(He,E.error.main,.62)),Y(E.Switch,"infoDisabledColor",_(He,E.info.main,.62)),Y(E.Switch,"successDisabledColor",_(He,E.success.main,.62)),Y(E.Switch,"warningDisabledColor",_(He,E.warning.main,.62)),Y(E.TableCell,"border",_(He,_(gr,E.divider,1),.88)),Y(E.Tooltip,"bg",_(gr,E.grey[700],.92))}if(E.mode==="dark"){Y(E.Alert,"errorColor",_(He,E.error.light,.6)),Y(E.Alert,"infoColor",_(He,E.info.light,.6)),Y(E.Alert,"successColor",_(He,E.success.light,.6)),Y(E.Alert,"warningColor",_(He,E.warning.light,.6)),Y(E.Alert,"errorFilledBg",N("palette-error-dark")),Y(E.Alert,"infoFilledBg",N("palette-info-dark")),Y(E.Alert,"successFilledBg",N("palette-success-dark")),Y(E.Alert,"warningFilledBg",N("palette-warning-dark")),Y(E.Alert,"errorFilledColor",mn(()=>E.getContrastText(E.error.dark))),Y(E.Alert,"infoFilledColor",mn(()=>E.getContrastText(E.info.dark))),Y(E.Alert,"successFilledColor",mn(()=>E.getContrastText(E.success.dark))),Y(E.Alert,"warningFilledColor",mn(()=>E.getContrastText(E.warning.dark))),Y(E.Alert,"errorStandardBg",_(Ue,E.error.light,.9)),Y(E.Alert,"infoStandardBg",_(Ue,E.info.light,.9)),Y(E.Alert,"successStandardBg",_(Ue,E.success.light,.9)),Y(E.Alert,"warningStandardBg",_(Ue,E.warning.light,.9)),Y(E.Alert,"errorIconColor",N("palette-error-main")),Y(E.Alert,"infoIconColor",N("palette-info-main")),Y(E.Alert,"successIconColor",N("palette-success-main")),Y(E.Alert,"warningIconColor",N("palette-warning-main")),Y(E.AppBar,"defaultBg",N("palette-grey-900")),Y(E.AppBar,"darkBg",N("palette-background-paper")),Y(E.AppBar,"darkColor",N("palette-text-primary")),Y(E.Avatar,"defaultBg",N("palette-grey-600")),Y(E.Button,"inheritContainedBg",N("palette-grey-800")),Y(E.Button,"inheritContainedHoverBg",N("palette-grey-700")),Y(E.Chip,"defaultBorder",N("palette-grey-700")),Y(E.Chip,"defaultAvatarColor",N("palette-grey-300")),Y(E.Chip,"defaultIconColor",N("palette-grey-300")),Y(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Y(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Y(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Y(E.LinearProgress,"primaryBg",_(Ue,E.primary.main,.5)),Y(E.LinearProgress,"secondaryBg",_(Ue,E.secondary.main,.5)),Y(E.LinearProgress,"errorBg",_(Ue,E.error.main,.5)),Y(E.LinearProgress,"infoBg",_(Ue,E.info.main,.5)),Y(E.LinearProgress,"successBg",_(Ue,E.success.main,.5)),Y(E.LinearProgress,"warningBg",_(Ue,E.warning.main,.5)),Y(E.Skeleton,"bg",v?_(gr,E.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Y(E.Slider,"primaryTrack",_(Ue,E.primary.main,.5)),Y(E.Slider,"secondaryTrack",_(Ue,E.secondary.main,.5)),Y(E.Slider,"errorTrack",_(Ue,E.error.main,.5)),Y(E.Slider,"infoTrack",_(Ue,E.info.main,.5)),Y(E.Slider,"successTrack",_(Ue,E.success.main,.5)),Y(E.Slider,"warningTrack",_(Ue,E.warning.main,.5));const W=v?_(He,E.background.default,.985):ma(E.background.default,.98);Y(E.SnackbarContent,"bg",W),Y(E.SnackbarContent,"color",mn(()=>v?Dh.text.primary:E.getContrastText(W))),Y(E.SpeedDialAction,"fabHoverBg",ma(E.background.paper,.15)),Y(E.StepConnector,"border",N("palette-grey-600")),Y(E.StepContent,"border",N("palette-grey-600")),Y(E.Switch,"defaultColor",N("palette-grey-300")),Y(E.Switch,"defaultDisabledColor",N("palette-grey-600")),Y(E.Switch,"primaryDisabledColor",_(Ue,E.primary.main,.55)),Y(E.Switch,"secondaryDisabledColor",_(Ue,E.secondary.main,.55)),Y(E.Switch,"errorDisabledColor",_(Ue,E.error.main,.55)),Y(E.Switch,"infoDisabledColor",_(Ue,E.info.main,.55)),Y(E.Switch,"successDisabledColor",_(Ue,E.success.main,.55)),Y(E.Switch,"warningDisabledColor",_(Ue,E.warning.main,.55)),Y(E.TableCell,"border",_(Ue,_(gr,E.divider,1),.68)),Y(E.Tooltip,"bg",_(gr,E.grey[700],.92))}Ln(E.background,"default"),Ln(E.background,"paper"),Ln(E.common,"background"),Ln(E.common,"onBackground"),Ln(E,"divider"),Object.keys(E).forEach(W=>{const F=E[W];W!=="tonalOffset"&&F&&typeof F=="object"&&(F.main&&Y(E[W],"mainChannel",di(ui(F.main))),F.light&&Y(E[W],"lightChannel",di(ui(F.light))),F.dark&&Y(E[W],"darkChannel",di(ui(F.dark))),F.contrastText&&Y(E[W],"contrastTextChannel",di(ui(F.contrastText))),W==="text"&&(Ln(E[W],"primary"),Ln(E[W],"secondary")),W==="action"&&(F.active&&Ln(E[W],"active"),F.selected&&Ln(E[W],"selected")))})}),k=t.reduce((I,E)=>Et(I,E),k);const A={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:c,getSelector:HC(k),enableContrastVars:l},{vars:z,generateThemeVars:M,generateStyleSheets:$}=dC(k,A);return k.vars=z,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([I,E])=>{k[I]=E}),k.generateThemeVars=M,k.generateStyleSheets=$,k.generateSpacing=function(){return ph(p.spacing,Ic(this))},k.getColorSchemeSelector=pC(d),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=c,k.unstable_sxConfig={...li,...p?.unstable_sxConfig},k.unstable_sx=function(E){return fr({sx:E,theme:this})},k.toRuntimeSource=Wh,k}function Rh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Wc({...n===!0?{}:n.palette,mode:t})})}function qh(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...l}=e,c=s||"light",d=i?.[c],u={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Vc(e,...t);let p=n;"palette"in e||u[c]&&(u[c]!==!0?p=u[c].palette:c==="dark"&&(p={mode:"dark"}));const h=Vc({...e,palette:p},...t);return h.defaultColorScheme=c,h.colorSchemes=u,h.palette.mode==="light"&&(h.colorSchemes.light={...u.light!==!0&&u.light,palette:h.palette},Rh(h,"dark",u.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:h.palette},Rh(h,"light",u.light)),h}return!n&&!("light"in u)&&c==="light"&&(u.light=!0),GC({...l,colorSchemes:u,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const Rc=qh();function yn(){const e=da(Rc);return process.env.NODE_ENV!=="production"&&T.useDebugValue(e),e[Qo]||e}function fi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tt=e=>fi(e)&&e!=="classes",X=wh({themeId:Qo,defaultTheme:Rc,rootShouldForwardProp:Tt});function qc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Yh(e){return a.jsx(fh,{...e,defaultTheme:Rc,themeId:Qo})}process.env.NODE_ENV!=="production"&&(Yh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function KC(e){return function(n){return a.jsx(Yh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function XC(){return hh}const ye=sC;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function we(e){return oC(e)}function JC(e){return be("MuiSvgIcon",e)}xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Z(t)}`,`fontSize${Z(n)}`]};return ve(i,JC,r)},ZC=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Z(n.color)}`],t[`fontSize${Z(n.fontSize)}`]]}})(ye(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Bn=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:u,inheritViewBox:p=!1,titleAccess:h,viewBox:y="0 0 24 24",...b}=r,g=T.isValidElement(i)&&i.type==="svg",f={...r,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:y,hasSvgAsChild:g},m={};p||(m.viewBox=y);const x=QC(f);return a.jsxs(ZC,{as:c,className:ue(x.root,s),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...b,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?a.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(Bn.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),Bn.muiName="SvgIcon";function Je(e,t){function n(r,i){return a.jsx(Bn,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Bn.muiName,T.memo(T.forwardRef(n))}function Gh(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ut(e){return e&&e.ownerDocument||document}function jn(e){return ut(e).defaultView||window}function Kh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function to(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=T.useRef(t!==void 0),[l,c]=T.useState(n),d=s?t:l;if(process.env.NODE_ENV!=="production"){T.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
60
+ `))},[i,r,t]);const{current:p}=T.useRef(n);T.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(p)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
61
+ `))},[JSON.stringify(n)])}const u=T.useCallback(p=>{s||c(p)},[]);return[d,u]}function Ot(e){const t=T.useRef(e);return Yt(()=>{t.current=e}),T.useRef((...n)=>(0,t.current)(...n)).current}function ct(...e){const t=T.useRef(void 0),n=T.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,c=l(r);return typeof c=="function"?c:()=>{l(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return T.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function eE(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Xh(e,t){if(!e)return t;function n(l,c){const d={};return Object.keys(c).forEach(u=>{eE(u,c[u])&&typeof l[u]=="function"&&(d[u]=(...p)=>{l[u](...p),c[u](...p)})}),d}if(typeof e=="function"||typeof t=="function")return l=>{const c=typeof t=="function"?t(l):t,d=typeof e=="function"?e({...l,...c}):e,u=ue(l?.className,c?.className,d?.className),p=n(d,c);return{...c,...d,...p,...!!u&&{className:u},...c?.style&&d?.style&&{style:{...c.style,...d.style}},...c?.sx&&d?.sx&&{sx:[...Array.isArray(c.sx)?c.sx:[c.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const r=t,i=n(e,r),s=ue(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ya={exports:{}},Ge={};var Jh;function tE(){if(Jh)return Ge;Jh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case d:case u:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case p:return f;case s:return f;default:return m}}case t:return m}}}return Ge.ContextConsumer=s,Ge.ContextProvider=l,Ge.Element=e,Ge.ForwardRef=c,Ge.Fragment=n,Ge.Lazy=h,Ge.Memo=p,Ge.Portal=t,Ge.Profiler=i,Ge.StrictMode=r,Ge.Suspense=d,Ge.SuspenseList=u,Ge.isContextConsumer=function(f){return g(f)===s},Ge.isContextProvider=function(f){return g(f)===l},Ge.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ge.isForwardRef=function(f){return g(f)===c},Ge.isFragment=function(f){return g(f)===n},Ge.isLazy=function(f){return g(f)===h},Ge.isMemo=function(f){return g(f)===p},Ge.isPortal=function(f){return g(f)===t},Ge.isProfiler=function(f){return g(f)===i},Ge.isStrictMode=function(f){return g(f)===r},Ge.isSuspense=function(f){return g(f)===d},Ge.isSuspenseList=function(f){return g(f)===u},Ge.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===d||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},Ge.typeOf=g,Ge}var Ke={};var Qh;function nE(){return Qh||(Qh=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case u:case p:case b:return f;default:switch(f=f&&f.$$typeof,f){case c:case d:case y:case h:return f;case l:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ke.ContextConsumer=l,Ke.ContextProvider=c,Ke.Element=t,Ke.ForwardRef=d,Ke.Fragment=r,Ke.Lazy=y,Ke.Memo=h,Ke.Portal=n,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=u,Ke.SuspenseList=p,Ke.isContextConsumer=function(f){return e(f)===l},Ke.isContextProvider=function(f){return e(f)===c},Ke.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ke.isForwardRef=function(f){return e(f)===d},Ke.isFragment=function(f){return e(f)===r},Ke.isLazy=function(f){return e(f)===y},Ke.isMemo=function(f){return e(f)===h},Ke.isPortal=function(f){return e(f)===n},Ke.isProfiler=function(f){return e(f)===s},Ke.isStrictMode=function(f){return e(f)===i},Ke.isSuspense=function(f){return e(f)===u},Ke.isSuspenseList=function(f){return e(f)===p},Ke.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===l||f.$$typeof===d||f.$$typeof===g||f.getModuleId!==void 0)},Ke.typeOf=e})()),Ke}var Zh;function rE(){return Zh||(Zh=1,process.env.NODE_ENV==="production"?ya.exports=tE():ya.exports=nE()),ya.exports}var Yc=rE();function rn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function eg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gc(e,t){return Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Gc(e,t)}function tg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gc(e,t)}const ng={disabled:!1};var oE=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const ba=j.createContext(null);var iE=function(t){return t.scrollTop},hi="unmounted",yr="exited",br="entering",no="entered",Kc="exiting",bn=(function(e){tg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var l=i,c=l&&!l.isMounting?r.enter:r.appear,d;return s.appearStatus=null,r.in?c?(d=yr,s.appearStatus=br):d=no:r.unmountOnExit||r.mountOnEnter?d=hi:d=yr,s.state={status:d},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var l=i.in;return l&&s.status===hi?{status:yr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==br&&l!==no&&(s=br):(l===br||l===no)&&(s=Kc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,l,c;return s=l=c=i,i!=null&&typeof i!="number"&&(s=i.exit,l=i.enter,c=i.appear!==void 0?i.appear:l),{exit:s,enter:l,appear:c}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===br){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:vo.findDOMNode(this);l&&iE(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yr&&this.setState({status:hi})},n.performEnter=function(i){var s=this,l=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[vo.findDOMNode(this),c],u=d[0],p=d[1],h=this.getTimeouts(),y=c?h.appear:h.enter;if(!i&&!l||ng.disabled){this.safeSetState({status:no},function(){s.props.onEntered(u)});return}this.props.onEnter(u,p),this.safeSetState({status:br},function(){s.props.onEntering(u,p),s.onTransitionEnd(y,function(){s.safeSetState({status:no},function(){s.props.onEntered(u,p)})})})},n.performExit=function(){var i=this,s=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:vo.findDOMNode(this);if(!s||ng.disabled){this.safeSetState({status:yr},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:Kc},function(){i.props.onExiting(c),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:yr},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,s.nextCallback=null,i(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:vo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=d[0],p=d[1];this.props.addEndListener(u,p)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===hi)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=eg(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return j.createElement(ba.Provider,{value:null},typeof l=="function"?l(i,c):j.cloneElement(j.Children.only(l),c))},t})(j.Component);bn.contextType=ba,bn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var l=e[t];return o.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=oE;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function ro(){}bn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ro,onEntering:ro,onEntered:ro,onExit:ro,onExiting:ro,onExited:ro},bn.UNMOUNTED=hi,bn.EXITED=yr,bn.ENTERING=br,bn.ENTERED=no,bn.EXITING=Kc;function sE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xc(e,t){var n=function(s){return t&&j.isValidElement(s)?t(s):s},r=Object.create(null);return e&&j.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function aE(e,t){e=e||{},t=t||{};function n(p){return p in t?t[p]:e[p]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var u=r[d][l];c[r[d][l]]=n(u)}c[d]=n(d)}for(l=0;l<i.length;l++)c[i[l]]=n(i[l]);return c}function xr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function lE(e,t){return Xc(e.children,function(n){return j.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:xr(n,"appear",e),enter:xr(n,"enter",e),exit:xr(n,"exit",e)})})}function cE(e,t,n){var r=Xc(e.children),i=aE(t,r);return Object.keys(i).forEach(function(s){var l=i[s];if(j.isValidElement(l)){var c=s in t,d=s in r,u=t[s],p=j.isValidElement(u)&&!u.props.in;d&&(!c||p)?i[s]=j.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:xr(l,"exit",e),enter:xr(l,"enter",e)}):!d&&c&&!p?i[s]=j.cloneElement(l,{in:!1}):d&&c&&j.isValidElement(u)&&(i[s]=j.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:xr(l,"exit",e),enter:xr(l,"enter",e)}))}}),i}var dE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},pE={component:"div",childFactory:function(t){return t}},Jc=(function(e){tg(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var l=s.handleExited.bind(sE(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var l=s.children,c=s.handleExited,d=s.firstRender;return{children:d?lE(i,c):cE(i,l,c),firstRender:!1}},n.handleExited=function(i,s){var l=Xc(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(c){var d=Bs({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,s=i.component,l=i.childFactory,c=eg(i,["component","childFactory"]),d=this.state.contextValue,u=dE(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,s===null?j.createElement(ba.Provider,{value:d},u):j.createElement(ba.Provider,{value:d},j.createElement(s,c,u))},t})(j.Component);Jc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Jc.defaultProps=pE;const rg={};function og(e,t){const n=T.useRef(rg);return n.current===rg&&(n.current=e(t)),n}const uE=[];function fE(e){T.useEffect(e,uE)}class xa{static create(){return new xa}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function vr(){const e=og(xa.create).current;return fE(e.disposeEffect),e}function hE(e){const{prototype:t={}}=e;return!!t.isReactComponent}function gE(e,t,n,r,i){const s=e[t],l=i||t;if(s==null||typeof window>"u")return null;let c;return typeof s=="function"&&!hE(s)&&(c="Did you accidentally provide a plain function component instead?"),c!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Qc=rn(o.elementType,gE),ig=e=>e.scrollTop;function va(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function er(e){return typeof e=="string"}function sg(e,t,n){return e===void 0||er(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function ag(e,t,n){return typeof e=="function"?e(t,n):e}function Sr(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 lg(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 cg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const b=ue(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return b.length>0&&(f.className=b),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const l=Sr({...i,...r}),c=lg(r),d=lg(i),u=t(l),p=ue(u?.className,n?.className,s,i?.className,r?.className),h={...u?.style,...n?.style,...i?.style,...r?.style},y={...u,...n,...d,...c};return p.length>0&&(y.className=p),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:u.ref}}function Te(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:c=!1,...d}=t,{component:u,slots:p={[e]:void 0},slotProps:h={[e]:void 0},...y}=s,b=p[e]||r,g=ag(h[e],i),{props:{component:f,...m},internalRef:x}=cg({className:n,...d,externalForwardedProps:e==="root"?y:void 0,externalSlotProps:g}),w=ct(x,g?.ref,t.ref),S=e==="root"?f||u:f,v=sg(b,{...e==="root"&&!u&&!p[e]&&l,...e!=="root"&&!p[e]&&l,...m,...S&&!c&&{as:S},...S&&c&&{component:S},ref:w},i);return[b,v]}function mE(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function dg(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=mE(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function pg(e,t,n,r){return e[t]===void 0?null:dg(e,t,n,r)}function Zc(){return null}pg.isRequired=dg,Zc.isRequired=Zc;const Sa=process.env.NODE_ENV==="production"?Zc:pg;function yE(e){return be("MuiPaper",e)}xe("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 bE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ve(s,yE,i)},xE=X("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}`]]}})(ye(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),on=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiPaper"}),i=yn(),{className:s,component:l="div",elevation:c=1,square:d=!1,variant:u="elevation",...p}=r,h={...r,component:l,elevation:c,square:d,variant:u},y=bE(h);return process.env.NODE_ENV!=="production"&&i.shadows[c]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${c}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${c}]\` is defined.`].join(`
62
+ `)),a.jsx(xE,{as:l,ownerState:h,className:ue(y.root,s),ref:n,...p,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${fa("#fff",Uc(c))}, ${fa("#fff",Uc(c))})`}},...p.style}})});process.env.NODE_ENV!=="production"&&(on.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:rn(Sa,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const At=o.oneOfType([o.func,o.object]);function oo(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
63
+ `))}return!1}class wa{static create(){return new wa}static use(){const t=og(wa.create).current,[n,r]=T.useState(!1);return t.shouldMount=n,t.setShouldMount=r,T.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=SE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function vE(){return wa.use()}function SE(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function ug(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:l,in:c,onExited:d,timeout:u}=e,[p,h]=T.useState(!1),y=ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:l,height:l,top:-(l/2)+s,left:-(l/2)+i},g=ue(n.child,p&&n.childLeaving,r&&n.childPulsate);return!c&&!p&&h(!0),T.useEffect(()=>{if(!c&&d!=null){const f=setTimeout(d,u);return()=>{clearTimeout(f)}}},[d,c,u]),a.jsx("span",{className:y,style:b,children:a.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(ug.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const Gt=xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ed=550,wE=80,CE=Xn`
64
64
  0% {
65
65
  transform: scale(0);
66
66
  opacity: 0.1;
@@ -70,7 +70,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
70
70
  transform: scale(1);
71
71
  opacity: 0.3;
72
72
  }
73
- `,xE=Gn`
73
+ `,EE=Xn`
74
74
  0% {
75
75
  opacity: 1;
76
76
  }
@@ -78,7 +78,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
78
78
  100% {
79
79
  opacity: 0;
80
80
  }
81
- `,vE=Gn`
81
+ `,TE=Xn`
82
82
  0% {
83
83
  transform: scale(1);
84
84
  }
@@ -90,23 +90,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
90
90
  100% {
91
91
  transform: scale(1);
92
92
  }
93
- `,SE=X("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),wE=X(sg,{name:"MuiTouchRipple",slot:"Ripple"})`
93
+ `,kE=X("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),PE=X(ug,{name:"MuiTouchRipple",slot:"Ripple"})`
94
94
  opacity: 0;
95
95
  position: absolute;
96
96
 
97
- &.${qt.rippleVisible} {
97
+ &.${Gt.rippleVisible} {
98
98
  opacity: 0.3;
99
99
  transform: scale(1);
100
- animation-name: ${bE};
101
- animation-duration: ${qc}ms;
100
+ animation-name: ${CE};
101
+ animation-duration: ${ed}ms;
102
102
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
103
  }
104
104
 
105
- &.${qt.ripplePulsate} {
105
+ &.${Gt.ripplePulsate} {
106
106
  animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
107
107
  }
108
108
 
109
- & .${qt.child} {
109
+ & .${Gt.child} {
110
110
  opacity: 1;
111
111
  display: block;
112
112
  width: 100%;
@@ -115,25 +115,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
115
115
  background-color: currentColor;
116
116
  }
117
117
 
118
- & .${qt.childLeaving} {
118
+ & .${Gt.childLeaving} {
119
119
  opacity: 0;
120
- animation-name: ${xE};
121
- animation-duration: ${qc}ms;
120
+ animation-name: ${EE};
121
+ animation-duration: ${ed}ms;
122
122
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
123
123
  }
124
124
 
125
- & .${qt.childPulsate} {
125
+ & .${Gt.childPulsate} {
126
126
  position: absolute;
127
127
  /* @noflip */
128
128
  left: 0px;
129
129
  top: 0;
130
- animation-name: ${vE};
130
+ animation-name: ${TE};
131
131
  animation-duration: 2500ms;
132
132
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
133
133
  animation-iteration-count: infinite;
134
134
  animation-delay: 200ms;
135
135
  }
136
- `,ag=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[d,p]=T.useState([]),u=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const x=T.useRef(!1),b=xr(),g=T.useRef(null),f=T.useRef(null),m=T.useCallback(v=>{const{pulsate:C,rippleX:P,rippleY:O,rippleSize:D,cb:N}=v;p(I=>[...I,c.jsx(wE,{classes:{ripple:ue(s.ripple,qt.ripple),rippleVisible:ue(s.rippleVisible,qt.rippleVisible),ripplePulsate:ue(s.ripplePulsate,qt.ripplePulsate),child:ue(s.child,qt.child),childLeaving:ue(s.childLeaving,qt.childLeaving),childPulsate:ue(s.childPulsate,qt.childPulsate)},timeout:qc,pulsate:C,rippleX:P,rippleY:O,rippleSize:D},u.current)]),u.current+=1,h.current=N},[s]),y=T.useCallback((v={},C={},P=()=>{})=>{const{pulsate:O=!1,center:D=i||C.pulsate,fakeElement:N=!1}=C;if(v?.type==="mousedown"&&x.current){x.current=!1;return}v?.type==="touchstart"&&(x.current=!0);const I=N?null:f.current,F=I?I.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,A,M;if(D||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)E=Math.round(F.width/2),A=Math.round(F.height/2);else{const{clientX:B,clientY:$}=v.touches&&v.touches.length>0?v.touches[0]:v;E=Math.round(B-F.left),A=Math.round($-F.top)}if(D)M=Math.sqrt((2*F.width**2+F.height**2)/3),M%2===0&&(M+=1);else{const B=Math.max(Math.abs((I?I.clientWidth:0)-E),E)*2+2,$=Math.max(Math.abs((I?I.clientHeight:0)-A),A)*2+2;M=Math.sqrt(B**2+$**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:O,rippleX:E,rippleY:A,rippleSize:M,cb:P})},b.start(yE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:O,rippleX:E,rippleY:A,rippleSize:M,cb:P})},[i,m,b]),w=T.useCallback(()=>{y({},{pulsate:!0})},[y]),S=T.useCallback((v,C)=>{if(b.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{S(v,C)});return}g.current=null,p(P=>P.length>0?P.slice(1):P),h.current=C},[b]);return T.useImperativeHandle(n,()=>({pulsate:w,start:y,stop:S}),[w,y,S]),c.jsx(SE,{className:ue(qt.root,s.root,a),ref:f,...l,children:c.jsx(Vc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(ag.propTypes={center:o.bool,classes:o.object,className:o.string});function CE(e){return ye("MuiButtonBase",e)}const EE=be("MuiButtonBase",["root","disabled","focusVisible"]),TE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=xe({root:["root",t&&"disabled",n&&"focusVisible"]},CE,i);return n&&r&&(a.root+=` ${r}`),a},PE=X("button",{name:"MuiButtonBase",slot:"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"},[`&.${EE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pi=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:d="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:x=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:y,onDragLeave:w,onFocus:S,onFocusVisible:v,onKeyDown:C,onKeyUp:P,onMouseDown:O,onMouseLeave:D,onMouseUp:N,onTouchEnd:I,onTouchMove:F,onTouchStart:E,tabIndex:A=0,TouchRippleProps:M,touchRippleRef:B,type:$,...j}=r,_=T.useRef(null),R=gE(),z=lt(R.ref,B),[V,G]=T.useState(!1);p&&V&&G(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{G(!0),_.current.focus()}}),[]);const K=R.shouldMount&&!u&&!p;T.useEffect(()=>{V&&x&&!u&&R.pulsate()},[u,x,V,R]);const ee=jn(R,"start",O,h),Q=jn(R,"stop",y,h),J=jn(R,"stop",w,h),ae=jn(R,"stop",N,h),se=jn(R,"stop",ce=>{V&&ce.preventDefault(),D&&D(ce)},h),le=jn(R,"start",E,h),q=jn(R,"stop",I,h),ne=jn(R,"stop",F,h),U=jn(R,"stop",ce=>{to(ce.target)||G(!1),f&&f(ce)},!1),de=Tt(ce=>{_.current||(_.current=ce.currentTarget),to(ce.target)&&(G(!0),v&&v(ce)),S&&S(ce)}),re=()=>{const ce=_.current;return d&&d!=="button"&&!(ce.tagName==="A"&&ce.href)},oe=Tt(ce=>{x&&!ce.repeat&&V&&ce.key===" "&&R.stop(ce,()=>{R.start(ce)}),ce.target===ce.currentTarget&&re()&&ce.key===" "&&ce.preventDefault(),C&&C(ce),ce.target===ce.currentTarget&&re()&&ce.key==="Enter"&&!p&&(ce.preventDefault(),m&&m(ce))}),pe=Tt(ce=>{x&&ce.key===" "&&V&&!ce.defaultPrevented&&R.stop(ce,()=>{R.pulsate(ce)}),P&&P(ce),m&&ce.target===ce.currentTarget&&re()&&ce.key===" "&&!ce.defaultPrevented&&m(ce)});let he=d;he==="button"&&(j.href||j.to)&&(he=g);const we={};if(he==="button"){const ce=!!j.formAction;we.type=$===void 0&&!ce?"button":$,we.disabled=p}else!j.href&&!j.to&&(we.role="button"),p&&(we["aria-disabled"]=p);const Ne=lt(n,_),_e={...r,centerRipple:s,component:d,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:x,tabIndex:A,focusVisible:V},Fe=TE(_e);return c.jsxs(PE,{as:he,className:ue(Fe.root,l),ownerState:_e,onBlur:U,onClick:m,onContextMenu:Q,onFocus:de,onKeyDown:oe,onKeyUp:pe,onMouseDown:ee,onMouseLeave:se,onMouseUp:ae,onDragLeave:J,onTouchEnd:q,onTouchMove:ne,onTouchStart:le,ref:Ne,tabIndex:p?-1:A,type:$,...we,...j,children:[a,K?c.jsx(ag,{ref:z,center:s,...M}):null]})});function jn(e,t,n,r=!1){return Tt(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(pi.propTypes={action:Pt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Uc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function OE(e){return typeof e.main=="string"}function kE(e,t=[]){if(!OE(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ot(e=[]){return([,t])=>t&&kE(t,e)}function AE(e){return ye("MuiCircularProgress",e)}be("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const on=44,Yc=Gn`
136
+ `,fg=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:l,...c}=r,[d,u]=T.useState([]),p=T.useRef(0),h=T.useRef(null);T.useEffect(()=>{h.current&&(h.current(),h.current=null)},[d]);const y=T.useRef(!1),b=vr(),g=T.useRef(null),f=T.useRef(null),m=T.useCallback(v=>{const{pulsate:C,rippleX:k,rippleY:A,rippleSize:z,cb:M}=v;u($=>[...$,a.jsx(PE,{classes:{ripple:ue(s.ripple,Gt.ripple),rippleVisible:ue(s.rippleVisible,Gt.rippleVisible),ripplePulsate:ue(s.ripplePulsate,Gt.ripplePulsate),child:ue(s.child,Gt.child),childLeaving:ue(s.childLeaving,Gt.childLeaving),childPulsate:ue(s.childPulsate,Gt.childPulsate)},timeout:ed,pulsate:C,rippleX:k,rippleY:A,rippleSize:z},p.current)]),p.current+=1,h.current=M},[s]),x=T.useCallback((v={},C={},k=()=>{})=>{const{pulsate:A=!1,center:z=i||C.pulsate,fakeElement:M=!1}=C;if(v?.type==="mousedown"&&y.current){y.current=!1;return}v?.type==="touchstart"&&(y.current=!0);const $=M?null:f.current,I=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,N,_;if(z||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)E=Math.round(I.width/2),N=Math.round(I.height/2);else{const{clientX:W,clientY:F}=v.touches&&v.touches.length>0?v.touches[0]:v;E=Math.round(W-I.left),N=Math.round(F-I.top)}if(z)_=Math.sqrt((2*I.width**2+I.height**2)/3),_%2===0&&(_+=1);else{const W=Math.max(Math.abs(($?$.clientWidth:0)-E),E)*2+2,F=Math.max(Math.abs(($?$.clientHeight:0)-N),N)*2+2;_=Math.sqrt(W**2+F**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:A,rippleX:E,rippleY:N,rippleSize:_,cb:k})},b.start(wE,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:A,rippleX:E,rippleY:N,rippleSize:_,cb:k})},[i,m,b]),w=T.useCallback(()=>{x({},{pulsate:!0})},[x]),S=T.useCallback((v,C)=>{if(b.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{S(v,C)});return}g.current=null,u(k=>k.length>0?k.slice(1):k),h.current=C},[b]);return T.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:S}),[w,x,S]),a.jsx(kE,{className:ue(Gt.root,s.root,l),ref:f,...c,children:a.jsx(Jc,{component:null,exit:!0,children:d})})});process.env.NODE_ENV!=="production"&&(fg.propTypes={center:o.bool,classes:o.object,className:o.string});function OE(e){return be("MuiButtonBase",e)}const AE=xe("MuiButtonBase",["root","disabled","focusVisible"]),IE=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=ve({root:["root",t&&"disabled",n&&"focusVisible"]},OE,i);return n&&r&&(l.root+=` ${r}`),l},NE=X("button",{name:"MuiButtonBase",slot:"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"},[`&.${AE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gi=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:l,className:c,component:d="button",disabled:u=!1,disableRipple:p=!1,disableTouchRipple:h=!1,focusRipple:y=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:x,onDragLeave:w,onFocus:S,onFocusVisible:v,onKeyDown:C,onKeyUp:k,onMouseDown:A,onMouseLeave:z,onMouseUp:M,onTouchEnd:$,onTouchMove:I,onTouchStart:E,tabIndex:N=0,TouchRippleProps:_,touchRippleRef:W,type:F,...B}=r,O=T.useRef(null),V=vE(),L=ct(V.ref,W),[U,q]=T.useState(!1);u&&U&&q(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{q(!0),O.current.focus()}}),[]);const G=V.shouldMount&&!p&&!u;T.useEffect(()=>{U&&y&&!p&&V.pulsate()},[p,y,U,V]);const J=Wn(V,"start",A,h),K=Wn(V,"stop",x,h),Q=Wn(V,"stop",w,h),se=Wn(V,"stop",M,h),ce=Wn(V,"stop",ie=>{U&&ie.preventDefault(),z&&z(ie)},h),de=Wn(V,"start",E,h),ee=Wn(V,"stop",$,h),pe=Wn(V,"stop",I,h),H=Wn(V,"stop",ie=>{oo(ie.target)||q(!1),f&&f(ie)},!1),ne=Ot(ie=>{O.current||(O.current=ie.currentTarget),oo(ie.target)&&(q(!0),v&&v(ie)),S&&S(ie)}),oe=()=>{const ie=O.current;return d&&d!=="button"&&!(ie.tagName==="A"&&ie.href)},ge=Ot(ie=>{y&&!ie.repeat&&U&&ie.key===" "&&V.stop(ie,()=>{V.start(ie)}),ie.target===ie.currentTarget&&oe()&&ie.key===" "&&ie.preventDefault(),C&&C(ie),ie.target===ie.currentTarget&&oe()&&ie.key==="Enter"&&!u&&(ie.preventDefault(),m&&m(ie))}),me=Ot(ie=>{y&&ie.key===" "&&U&&!ie.defaultPrevented&&V.stop(ie,()=>{V.pulsate(ie)}),k&&k(ie),m&&ie.target===ie.currentTarget&&oe()&&ie.key===" "&&!ie.defaultPrevented&&m(ie)});let ke=d;ke==="button"&&(B.href||B.to)&&(ke=g);const ae={};if(ke==="button"){const ie=!!B.formAction;ae.type=F===void 0&&!ie?"button":F,ae.disabled=u}else!B.href&&!B.to&&(ae.role="button"),u&&(ae["aria-disabled"]=u);const te=ct(n,O),Ce={...r,centerRipple:s,component:d,disabled:u,disableRipple:p,disableTouchRipple:h,focusRipple:y,tabIndex:N,focusVisible:U},Oe=IE(Ce);return a.jsxs(NE,{as:ke,className:ue(Oe.root,c),ownerState:Ce,onBlur:H,onClick:m,onContextMenu:K,onFocus:ne,onKeyDown:ge,onKeyUp:me,onMouseDown:J,onMouseLeave:ce,onMouseUp:se,onDragLeave:Q,onTouchEnd:ee,onTouchMove:pe,onTouchStart:de,ref:te,tabIndex:u?-1:N,type:F,...ae,...B,children:[l,G?a.jsx(fg,{ref:L,center:s,..._}):null]})});function Wn(e,t,n,r=!1){return Ot(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(gi.propTypes={action:At,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:Qc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function FE(e){return typeof e.main=="string"}function ME(e,t=[]){if(!FE(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function it(e=[]){return([,t])=>t&&ME(t,e)}function DE(e){return be("MuiCircularProgress",e)}xe("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const sn=44,td=Xn`
137
137
  0% {
138
138
  transform: rotate(0deg);
139
139
  }
@@ -141,7 +141,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
141
141
  100% {
142
142
  transform: rotate(360deg);
143
143
  }
144
- `,Gc=Gn`
144
+ `,nd=Xn`
145
145
  0% {
146
146
  stroke-dasharray: 1px, 200px;
147
147
  stroke-dashoffset: 0;
@@ -156,20 +156,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
156
156
  stroke-dasharray: 1px, 200px;
157
157
  stroke-dashoffset: -126px;
158
158
  }
159
- `,IE=typeof Yc!="string"?Kr`
160
- animation: ${Yc} 1.4s linear infinite;
161
- `:null,NE=typeof Gc!="string"?Kr`
162
- animation: ${Gc} 1.4s ease-in-out infinite;
163
- `:null,FE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${Z(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Z(n)}`,i&&"circleDisableShrink"]};return xe(s,AE,t)},ME=X("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(me(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:IE||{animation:`${Yc} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),DE=X("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),_E=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(me(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:NE||{animation:`${Gc} 1.4s ease-in-out infinite`}}]}))),$E=X("circle",{name:"MuiCircularProgress",slot:"Track"})(me(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ba=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:d=40,style:p,thickness:u=3.6,value:h=0,variant:x="indeterminate",...b}=r,g={...r,color:s,disableShrink:a,size:d,thickness:u,value:h,variant:x,enableTrackSlot:l},f=FE(g),m={},y={},w={};if(x==="determinate"){const S=2*Math.PI*((on-u)/2);m.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*S).toFixed(3)}px`,y.transform="rotate(-90deg)"}return c.jsx(ME,{className:ue(f.root,i),style:{width:d,height:d,...y,...p},ownerState:g,ref:n,role:"progressbar",...w,...b,children:c.jsxs(DE,{className:f.svg,ownerState:g,viewBox:`${on/2} ${on/2} ${on} ${on}`,children:[l?c.jsx($E,{className:f.track,ownerState:g,cx:on,cy:on,r:(on-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,c.jsx(_E,{className:f.circle,style:m,ownerState:g,cx:on,cy:on,r:(on-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(ba.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:nn(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function zE(e){return ye("MuiIconButton",e)}const lg=be("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),LE=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Z(r)}`,i&&`edge${Z(i)}`,`size${Z(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return xe(l,zE,t)},jE=X(pi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(me(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),me(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${lg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${lg.loading}`]:{color:"transparent"}}))),BE=X("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ut=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:d=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:x=null,loadingIndicator:b,...g}=r,f=gr(h),m=b??c.jsx(ba,{"aria-labelledby":f,color:"inherit",size:16}),y={...r,edge:i,color:l,disabled:d,disableFocusRipple:p,loading:x,loadingIndicator:m,size:u},w=LE(y);return c.jsxs(jE,{id:x?f:h,className:ue(w.root,a),centerRipple:!0,focusRipple:!p,disabled:d||x,ref:n,...g,ownerState:y,children:[typeof x=="boolean"&&c.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:c.jsx(BE,{className:w.loadingIndicator,ownerState:y,children:x&&m})}),s]})});process.env.NODE_ENV!=="production"&&(ut.propTypes={children:nn(o.node,e=>T.Children.toArray(e.children).some(n=>T.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
164
- `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function WE(e){return ye("MuiTypography",e)}const cg=be("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),RE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},VE=HC(),UE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return xe(l,WE,a)},HE=X("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${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(me(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Z(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),dg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},W=T.forwardRef(function(t,n){const{color:r,...i}=Se({props:t,name:"MuiTypography"}),s=!RE[r],a=VE({...i,...s&&{color:r}}),{align:l="inherit",className:d,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:x=!1,variant:b="body1",variantMapping:g=dg,...f}=a,m={...a,align:l,color:r,className:d,component:p,gutterBottom:u,noWrap:h,paragraph:x,variant:b,variantMapping:g},y=p||(x?"p":g[b]||dg[b])||"span",w=UE(m);return c.jsx(HE,{as:y,ref:n,className:ue(w.root,d),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(W.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function Bn(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Dt="top",Yt="bottom",Gt="right",_t="left",Kc="auto",fi=[Dt,Yt,Gt,_t],no="start",hi="end",qE="clippingParents",ug="viewport",gi="popper",YE="reference",pg=fi.reduce(function(e,t){return e.concat([t+"-"+no,t+"-"+hi])},[]),fg=[].concat(fi,[Kc]).reduce(function(e,t){return e.concat([t,t+"-"+no,t+"-"+hi])},[]),GE="beforeRead",KE="read",XE="afterRead",JE="beforeMain",QE="main",ZE="afterMain",eT="beforeWrite",tT="write",nT="afterWrite",rT=[GE,KE,XE,JE,QE,ZE,eT,tT,nT];function bn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Sr(e){var t=Wt(e).Element;return e instanceof t||e instanceof Element}function Kt(e){var t=Wt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xc(e){if(typeof ShadowRoot>"u")return!1;var t=Wt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function oT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Kt(s)||!bn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function iT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(d,p){return d[p]="",d},{});!Kt(i)||!bn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const sT={name:"applyStyles",enabled:!0,phase:"write",fn:oT,effect:iT,requires:["computeStyles"]};function xn(e){return e.split("-")[0]}var wr=Math.max,xa=Math.min,ro=Math.round;function Jc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hg(){return!/^((?!chrome|android).)*safari/i.test(Jc())}function oo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Kt(e)&&(i=e.offsetWidth>0&&ro(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ro(r.height)/e.offsetHeight||1);var a=Sr(e)?Wt(e):window,l=a.visualViewport,d=!hg()&&n,p=(r.left+(d&&l?l.offsetLeft:0))/i,u=(r.top+(d&&l?l.offsetTop:0))/s,h=r.width/i,x=r.height/s;return{width:h,height:x,top:u,right:p+h,bottom:u+x,left:p,x:p,y:u}}function Qc(e){var t=oo(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function gg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wn(e){return Wt(e).getComputedStyle(e)}function aT(e){return["table","td","th"].indexOf(bn(e))>=0}function er(e){return((Sr(e)?e.ownerDocument:e.document)||window.document).documentElement}function va(e){return bn(e)==="html"?e:e.assignedSlot||e.parentNode||(Xc(e)?e.host:null)||er(e)}function mg(e){return!Kt(e)||Wn(e).position==="fixed"?null:e.offsetParent}function lT(e){var t=/firefox/i.test(Jc()),n=/Trident/i.test(Jc());if(n&&Kt(e)){var r=Wn(e);if(r.position==="fixed")return null}var i=va(e);for(Xc(i)&&(i=i.host);Kt(i)&&["html","body"].indexOf(bn(i))<0;){var s=Wn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function mi(e){for(var t=Wt(e),n=mg(e);n&&aT(n)&&Wn(n).position==="static";)n=mg(n);return n&&(bn(n)==="html"||bn(n)==="body"&&Wn(n).position==="static")?t:n||lT(e)||t}function Zc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yi(e,t,n){return wr(e,xa(t,n))}function cT(e,t,n){var r=yi(e,t,n);return r>n?n:r}function yg(){return{top:0,right:0,bottom:0,left:0}}function bg(e){return Object.assign({},yg(),e)}function xg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var dT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,bg(typeof t!="number"?t:xg(t,fi))};function uT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=xn(n.placement),d=Zc(l),p=[_t,Gt].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var h=dT(i.padding,n),x=Qc(s),b=d==="y"?Dt:_t,g=d==="y"?Yt:Gt,f=n.rects.reference[u]+n.rects.reference[d]-a[d]-n.rects.popper[u],m=a[d]-n.rects.reference[d],y=mi(s),w=y?d==="y"?y.clientHeight||0:y.clientWidth||0:0,S=f/2-m/2,v=h[b],C=w-x[u]-h[g],P=w/2-x[u]/2+S,O=yi(v,P,C),D=d;n.modifiersData[r]=(t={},t[D]=O,t.centerOffset=O-P,t)}}function pT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||gg(t.elements.popper,i)&&(t.elements.arrow=i))}const fT={name:"arrow",enabled:!0,phase:"main",fn:uT,effect:pT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function io(e){return e.split("-")[1]}var hT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ro(n*i)/i||0,y:ro(r*i)/i||0}}function vg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,d=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,x=a.x,b=x===void 0?0:x,g=a.y,f=g===void 0?0:g,m=typeof u=="function"?u({x:b,y:f}):{x:b,y:f};b=m.x,f=m.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=_t,v=Dt,C=window;if(p){var P=mi(n),O="clientHeight",D="clientWidth";if(P===Wt(n)&&(P=er(n),Wn(P).position!=="static"&&l==="absolute"&&(O="scrollHeight",D="scrollWidth")),P=P,i===Dt||(i===_t||i===Gt)&&s===hi){v=Yt;var N=h&&P===C&&C.visualViewport?C.visualViewport.height:P[O];f-=N-r.height,f*=d?1:-1}if(i===_t||(i===Dt||i===Yt)&&s===hi){S=Gt;var I=h&&P===C&&C.visualViewport?C.visualViewport.width:P[D];b-=I-r.width,b*=d?1:-1}}var F=Object.assign({position:l},p&&hT),E=u===!0?gT({x:b,y:f},Wt(n)):{x:b,y:f};if(b=E.x,f=E.y,d){var A;return Object.assign({},F,(A={},A[v]=w?"0":"",A[S]=y?"0":"",A.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",A))}return Object.assign({},F,(t={},t[v]=w?f+"px":"",t[S]=y?b+"px":"",t.transform="",t))}function mT(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,d=l===void 0?!0:l,p={placement:xn(t.placement),variation:io(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,vg(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,vg(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const yT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mT,data:{}};var Sa={passive:!0};function bT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,d=Wt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,Sa)}),l&&d.addEventListener("resize",n.update,Sa),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,Sa)}),l&&d.removeEventListener("resize",n.update,Sa)}}const xT={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bT,data:{}};var vT={left:"right",right:"left",bottom:"top",top:"bottom"};function wa(e){return e.replace(/left|right|bottom|top/g,function(t){return vT[t]})}var ST={start:"end",end:"start"};function Sg(e){return e.replace(/start|end/g,function(t){return ST[t]})}function ed(e){var t=Wt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function td(e){return oo(er(e)).left+ed(e).scrollLeft}function wT(e,t){var n=Wt(e),r=er(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,d=0;if(i){s=i.width,a=i.height;var p=hg();(p||!p&&t==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:s,height:a,x:l+td(e),y:d}}function CT(e){var t,n=er(e),r=ed(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=wr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=wr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+td(e),d=-r.scrollTop;return Wn(i||n).direction==="rtl"&&(l+=wr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:d}}function nd(e){var t=Wn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function wg(e){return["html","body","#document"].indexOf(bn(e))>=0?e.ownerDocument.body:Kt(e)&&nd(e)?e:wg(va(e))}function bi(e,t){var n;t===void 0&&(t=[]);var r=wg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Wt(r),a=i?[s].concat(s.visualViewport||[],nd(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(bi(va(a)))}function rd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ET(e,t){var n=oo(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Cg(e,t,n){return t===ug?rd(wT(e,n)):Sr(t)?ET(t,n):rd(CT(er(e)))}function TT(e){var t=bi(va(e)),n=["absolute","fixed"].indexOf(Wn(e).position)>=0,r=n&&Kt(e)?mi(e):e;return Sr(r)?t.filter(function(i){return Sr(i)&&gg(i,r)&&bn(i)!=="body"}):[]}function PT(e,t,n,r){var i=t==="clippingParents"?TT(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(d,p){var u=Cg(e,p,r);return d.top=wr(u.top,d.top),d.right=xa(u.right,d.right),d.bottom=xa(u.bottom,d.bottom),d.left=wr(u.left,d.left),d},Cg(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Eg(e){var t=e.reference,n=e.element,r=e.placement,i=r?xn(r):null,s=r?io(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,d;switch(i){case Dt:d={x:a,y:t.y-n.height};break;case Yt:d={x:a,y:t.y+t.height};break;case Gt:d={x:t.x+t.width,y:l};break;case _t:d={x:t.x-n.width,y:l};break;default:d={x:t.x,y:t.y}}var p=i?Zc(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case no:d[p]=d[p]-(t[u]/2-n[u]/2);break;case hi:d[p]=d[p]+(t[u]/2-n[u]/2);break}}return d}function xi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,d=l===void 0?qE:l,p=n.rootBoundary,u=p===void 0?ug:p,h=n.elementContext,x=h===void 0?gi:h,b=n.altBoundary,g=b===void 0?!1:b,f=n.padding,m=f===void 0?0:f,y=bg(typeof m!="number"?m:xg(m,fi)),w=x===gi?YE:gi,S=e.rects.popper,v=e.elements[g?w:x],C=PT(Sr(v)?v:v.contextElement||er(e.elements.popper),d,u,a),P=oo(e.elements.reference),O=Eg({reference:P,element:S,placement:i}),D=rd(Object.assign({},S,O)),N=x===gi?D:P,I={top:C.top-N.top+y.top,bottom:N.bottom-C.bottom+y.bottom,left:C.left-N.left+y.left,right:N.right-C.right+y.right},F=e.modifiersData.offset;if(x===gi&&F){var E=F[i];Object.keys(I).forEach(function(A){var M=[Gt,Yt].indexOf(A)>=0?1:-1,B=[Dt,Yt].indexOf(A)>=0?"y":"x";I[A]+=E[B]*M})}return I}function OT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?fg:d,u=io(r),h=u?l?pg:pg.filter(function(g){return io(g)===u}):fi,x=h.filter(function(g){return p.indexOf(g)>=0});x.length===0&&(x=h);var b=x.reduce(function(g,f){return g[f]=xi(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[xn(f)],g},{});return Object.keys(b).sort(function(g,f){return b[g]-b[f]})}function kT(e){if(xn(e)===Kc)return[];var t=wa(e);return[Sg(e),t,Sg(t)]}function AT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,d=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,x=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,f=n.allowedAutoPlacements,m=t.options.placement,y=xn(m),w=y===m,S=d||(w||!g?[wa(m)]:kT(m)),v=[m].concat(S).reduce(function(ee,Q){return ee.concat(xn(Q)===Kc?OT(t,{placement:Q,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):Q)},[]),C=t.rects.reference,P=t.rects.popper,O=new Map,D=!0,N=v[0],I=0;I<v.length;I++){var F=v[I],E=xn(F),A=io(F)===no,M=[Dt,Yt].indexOf(E)>=0,B=M?"width":"height",$=xi(t,{placement:F,boundary:u,rootBoundary:h,altBoundary:x,padding:p}),j=M?A?Gt:_t:A?Yt:Dt;C[B]>P[B]&&(j=wa(j));var _=wa(j),R=[];if(s&&R.push($[E]<=0),l&&R.push($[j]<=0,$[_]<=0),R.every(function(ee){return ee})){N=F,D=!1;break}O.set(F,R)}if(D)for(var z=g?3:1,V=function(Q){var J=v.find(function(ae){var se=O.get(ae);if(se)return se.slice(0,Q).every(function(le){return le})});if(J)return N=J,"break"},G=z;G>0;G--){var K=V(G);if(K==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const IT={name:"flip",enabled:!0,phase:"main",fn:AT,requiresIfExists:["offset"],data:{_skip:!1}};function Tg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Pg(e){return[Dt,Gt,Yt,_t].some(function(t){return e[t]>=0})}function NT(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=xi(t,{elementContext:"reference"}),l=xi(t,{altBoundary:!0}),d=Tg(a,r),p=Tg(l,i,s),u=Pg(d),h=Pg(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const FT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NT};function MT(e,t,n){var r=xn(e),i=[_t,Dt].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[_t,Gt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function DT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=fg.reduce(function(u,h){return u[h]=MT(h,t.rects,s),u},{}),l=a[t.placement],d=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const _T={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:DT};function $T(e){var t=e.state,n=e.name;t.modifiersData[n]=Eg({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const zT={name:"popperOffsets",enabled:!0,phase:"read",fn:$T,data:{}};function LT(e){return e==="x"?"y":"x"}function jT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,d=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,x=n.tether,b=x===void 0?!0:x,g=n.tetherOffset,f=g===void 0?0:g,m=xi(t,{boundary:d,rootBoundary:p,padding:h,altBoundary:u}),y=xn(t.placement),w=io(t.placement),S=!w,v=Zc(y),C=LT(v),P=t.modifiersData.popperOffsets,O=t.rects.reference,D=t.rects.popper,N=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,I=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),F=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(P){if(s){var A,M=v==="y"?Dt:_t,B=v==="y"?Yt:Gt,$=v==="y"?"height":"width",j=P[v],_=j+m[M],R=j-m[B],z=b?-D[$]/2:0,V=w===no?O[$]:D[$],G=w===no?-D[$]:-O[$],K=t.elements.arrow,ee=b&&K?Qc(K):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yg(),J=Q[M],ae=Q[B],se=yi(0,O[$],ee[$]),le=S?O[$]/2-z-se-J-I.mainAxis:V-se-J-I.mainAxis,q=S?-O[$]/2+z+se+ae+I.mainAxis:G+se+ae+I.mainAxis,ne=t.elements.arrow&&mi(t.elements.arrow),U=ne?v==="y"?ne.clientTop||0:ne.clientLeft||0:0,de=(A=F?.[v])!=null?A:0,re=j+le-de-U,oe=j+q-de,pe=yi(b?xa(_,re):_,j,b?wr(R,oe):R);P[v]=pe,E[v]=pe-j}if(l){var he,we=v==="x"?Dt:_t,Ne=v==="x"?Yt:Gt,_e=P[C],Fe=C==="y"?"height":"width",ce=_e+m[we],Xe=_e-m[Ne],Ae=[Dt,_t].indexOf(y)!==-1,ie=(he=F?.[C])!=null?he:0,te=Ae?ce:_e-O[Fe]-D[Fe]-ie+I.altAxis,fe=Ae?_e+O[Fe]+D[Fe]-ie-I.altAxis:Xe,Ce=b&&Ae?cT(te,_e,fe):yi(b?te:ce,_e,b?fe:Xe);P[C]=Ce,E[C]=Ce-_e}t.modifiersData[r]=E}}const BT={name:"preventOverflow",enabled:!0,phase:"main",fn:jT,requiresIfExists:["offset"]};function WT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function RT(e){return e===Wt(e)||!Kt(e)?ed(e):WT(e)}function VT(e){var t=e.getBoundingClientRect(),n=ro(t.width)/e.offsetWidth||1,r=ro(t.height)/e.offsetHeight||1;return n!==1||r!==1}function UT(e,t,n){n===void 0&&(n=!1);var r=Kt(t),i=Kt(t)&&VT(t),s=er(t),a=oo(e,i,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((bn(t)!=="body"||nd(s))&&(l=RT(t)),Kt(t)?(d=oo(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=td(s))),{x:a.left+l.scrollLeft-d.x,y:a.top+l.scrollTop-d.y,width:a.width,height:a.height}}function HT(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var d=t.get(l);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function qT(e){var t=HT(e);return rT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function YT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function GT(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Og={placement:"bottom",modifiers:[],strategy:"absolute"};function kg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function KT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Og:i;return function(l,d,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Og,s),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},h=[],x=!1,b={state:u,setOptions:function(y){var w=typeof y=="function"?y(u.options):y;f(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:Sr(l)?bi(l):l.contextElement?bi(l.contextElement):[],popper:bi(d)};var S=qT(GT([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(v){return v.enabled}),g(),b.update()},forceUpdate:function(){if(!x){var y=u.elements,w=y.reference,S=y.popper;if(kg(w,S)){u.rects={reference:UT(w,mi(S),u.options.strategy==="fixed"),popper:Qc(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var C=u.orderedModifiers[v],P=C.fn,O=C.options,D=O===void 0?{}:O,N=C.name;typeof P=="function"&&(u=P({state:u,options:D,name:N,instance:b})||u)}}}},update:YT(function(){return new Promise(function(m){b.forceUpdate(),m(u)})}),destroy:function(){f(),x=!0}};if(!kg(l,d))return b;b.setOptions(p).then(function(m){!x&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var y=m.name,w=m.options,S=w===void 0?{}:w,v=m.effect;if(typeof v=="function"){var C=v({state:u,name:y,instance:b,options:S}),P=function(){};h.push(C||P)}})}function f(){h.forEach(function(m){return m()}),h=[]}return b}}var XT=[xT,zT,yT,sT,_T,IT,BT,fT,FT],JT=KT({defaultModifiers:XT});function vn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:tg(n,r),{props:l,internalRef:d}=rg({...s,externalSlotProps:a}),p=lt(d,a?.ref,e.additionalProps?.ref);return eg(t,{...l,ref:p},r)}function Cr(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function QT(e){return typeof e=="function"?e():e}const vi=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=T.useState(null),d=lt(T.isValidElement(r)?Cr(r):null,n);if(Ht(()=>{s||l(QT(i)||document.body)},[i,s]),Ht(()=>{if(a&&!s)return Vh(n,a),()=>{Vh(n,null)}},[n,a,s]),s){if(T.isValidElement(r)){const p={ref:d};return T.cloneElement(r,p)}return r}return a&&ay.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(vi.propTypes={children:o.node,container:o.oneOfType([Bn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(vi.propTypes=Ac(vi.propTypes));function ZT(e){return ye("MuiPopper",e)}be("MuiPopper",["root"]);function eP(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ca(e){return typeof e=="function"?e():e}function Ea(e){return e.nodeType!==void 0}function tP(e){return!Ea(e)}const nP=e=>{const{classes:t}=e;return xe({root:["root"]},ZT,t)},rP={},oP=T.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:d,placement:p,popperOptions:u,popperRef:h,slotProps:x={},slots:b={},TransitionProps:g,ownerState:f,...m}=t,y=T.useRef(null),w=lt(y,n),S=T.useRef(null),v=lt(S,h),C=T.useRef(v);Ht(()=>{C.current=v},[v]),T.useImperativeHandle(h,()=>S.current,[]);const P=eP(p,s),[O,D]=T.useState(P),[N,I]=T.useState(Ca(r));T.useEffect(()=>{S.current&&S.current.forceUpdate()}),T.useEffect(()=>{r&&I(Ca(r))},[r]),Ht(()=>{if(!N||!d)return;const B=_=>{D(_.placement)};if(process.env.NODE_ENV!=="production"&&N&&Ea(N)&&N.nodeType===1){const _=N.getBoundingClientRect();process.env.NODE_ENV!=="test"&&_.top===0&&_.left===0&&_.right===0&&_.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
- `))}let $=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:_})=>{B(_)}}];l!=null&&($=$.concat(l)),u&&u.modifiers!=null&&($=$.concat(u.modifiers));const j=JT(N,y.current,{placement:P,...u,modifiers:$});return C.current(j),()=>{j.destroy(),C.current(null)}},[N,a,l,d,u,P]);const F={placement:O};g!==null&&(F.TransitionProps=g);const E=nP(t),A=b.root??"div",M=vn({elementType:A,externalSlotProps:x.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:E.root});return c.jsx(A,{...M,children:typeof i=="function"?i(F):i})}),Ag=T.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:d=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:x=rP,popperRef:b,style:g,transition:f=!1,slotProps:m={},slots:y={},...w}=t,[S,v]=T.useState(!0),C=()=>{v(!1)},P=()=>{v(!0)};if(!d&&!u&&(!f||S))return null;let O;if(s)O=s;else if(r){const I=Ca(r);O=I&&Ea(I)?dt(I).body:dt(null).body}const D=!u&&d&&(!f||S)?"none":void 0,N=f?{in:u,onEnter:C,onExited:P}:void 0;return c.jsx(vi,{disablePortal:l,container:O,children:c.jsx(oP,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:f?!S:u,placement:h,popperOptions:x,popperRef:b,slotProps:m,slots:y,...w,style:{position:"fixed",top:0,left:0,display:D,...g},TransitionProps:N,children:i})})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={anchorEl:nn(o.oneOfType([Bn,o.object,o.func]),e=>{if(e.open){const t=Ca(e.anchorEl);if(t&&Ea(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
166
- `))}else if(!t||typeof t.getBoundingClientRect!="function"||tP(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
167
- `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Bn,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Pt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const iP=X(Ag,{name:"MuiPopper",slot:"Root"})({}),od=T.forwardRef(function(t,n){const r=li(),i=Se({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:d,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:b,placement:g,popperOptions:f,popperRef:m,transition:y,slots:w,slotProps:S,...v}=i,C=w?.root??l?.Root,P={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:x,open:b,placement:g,popperOptions:f,popperRef:m,transition:y,...v};return c.jsx(iP,{as:a,direction:r?"rtl":"ltr",slots:{root:C},slotProps:S??d,...P,ref:n})});process.env.NODE_ENV!=="production"&&(od.propTypes={anchorEl:o.oneOfType([Bn,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Bn,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:Pt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function Ta(e){return parseInt(e,10)||0}const sP={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function aP(e){for(const t in e)return!1;return!0}function Ig(e){return aP(e)||e.outerHeightStyle===0&&!e.overflowing}const Ng=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...d}=t,{current:p}=T.useRef(l!=null),u=T.useRef(null),h=lt(n,u),x=T.useRef(null),b=T.useRef(null),g=T.useCallback(()=>{const S=u.current,v=b.current;if(!S||!v)return;const P=Ln(S).getComputedStyle(S);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=P.width,v.value=S.value||t.placeholder||"x",v.value.slice(-1)===`
168
- `&&(v.value+=" ");const O=P.boxSizing,D=Ta(P.paddingBottom)+Ta(P.paddingTop),N=Ta(P.borderBottomWidth)+Ta(P.borderTopWidth),I=v.scrollHeight;v.value="x";const F=v.scrollHeight;let E=I;s&&(E=Math.max(Number(s)*F,E)),i&&(E=Math.min(Number(i)*F,E)),E=Math.max(E,F);const A=E+(O==="border-box"?D+N:0),M=Math.abs(E-I)<=1;return{outerHeightStyle:A,overflowing:M}},[i,s,t.placeholder]),f=Tt(()=>{const S=u.current,v=g();if(!S||!v||Ig(v))return!1;const C=v.outerHeightStyle;return x.current!=null&&x.current!==C}),m=T.useCallback(()=>{const S=u.current,v=g();if(!S||!v||Ig(v))return;const C=v.outerHeightStyle;x.current!==C&&(x.current=C,S.style.height=`${C}px`),S.style.overflow=v.overflowing?"hidden":""},[g]),y=T.useRef(-1);Ht(()=>{const S=Rh(m),v=u?.current;if(!v)return;const C=Ln(v);C.addEventListener("resize",S);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{f()&&(P.unobserve(v),cancelAnimationFrame(y.current),m(),y.current=requestAnimationFrame(()=>{P.observe(v)}))}),P.observe(v)),()=>{S.clear(),cancelAnimationFrame(y.current),C.removeEventListener("resize",S),P&&P.disconnect()}},[g,m,f]),Ht(()=>{m()});const w=S=>{p||m();const v=S.target,C=v.value.length,P=v.value.endsWith(`
169
- `),O=v.selectionStart===C;P&&O&&v.setSelectionRange(C,C),r&&r(S)};return c.jsxs(T.Fragment,{children:[c.jsx("textarea",{value:l,onChange:w,ref:h,rows:s,style:a,...d}),c.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...sP.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function tr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Pa=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Pa.displayName="FormControlContext");function Sn(){return T.useContext(Pa)}function Fg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Oa(e,t=!1){return e&&(Fg(e.value)&&e.value!==""||t&&Fg(e.defaultValue)&&e.defaultValue!=="")}function lP(e){return e.startAdornment}function cP(e){return ye("MuiInputBase",e)}const so=be("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Mg;const ka=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Aa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dP=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:d,hiddenLabel:p,multiline:u,readOnly:h,size:x,startAdornment:b,type:g}=e,f={root:["root",`color${Z(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",a&&"focused",l&&"formControl",x&&x!=="medium"&&`size${Z(x)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",x==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return xe(f,cP,t)},Ia=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ka})(me(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${so.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Na=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Aa})(me(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${so.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${so.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Dg=UC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Si=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:d,components:p={},componentsProps:u={},defaultValue:h,disabled:x,disableInjectingGlobalStyles:b,endAdornment:g,error:f,fullWidth:m=!1,id:y,inputComponent:w="input",inputProps:S={},inputRef:v,margin:C,maxRows:P,minRows:O,multiline:D=!1,name:N,onBlur:I,onChange:F,onClick:E,onFocus:A,onKeyDown:M,onKeyUp:B,placeholder:$,readOnly:j,renderSuffix:_,rows:R,size:z,slotProps:V={},slots:G={},startAdornment:K,type:ee="text",value:Q,...J}=r,ae=S.value!=null?S.value:Q,{current:se}=T.useRef(ae!=null),le=T.useRef(),q=T.useCallback(ve=>{process.env.NODE_ENV!=="production"&&ve&&ve.nodeName!=="INPUT"&&!ve.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
- `))},[]),ne=lt(le,v,S.ref,q),[U,de]=T.useState(!1),re=Sn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(re)return re.registerEffect()},[re]);const oe=tr({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=re?re.focused:U,T.useEffect(()=>{!re&&x&&U&&(de(!1),I&&I())},[re,x,U,I]);const pe=re&&re.onFilled,he=re&&re.onEmpty,we=T.useCallback(ve=>{Oa(ve)?pe&&pe():he&&he()},[pe,he]);Ht(()=>{se&&we({value:ae})},[ae,we,se]);const Ne=ve=>{A&&A(ve),S.onFocus&&S.onFocus(ve),re&&re.onFocus?re.onFocus(ve):de(!0)},_e=ve=>{I&&I(ve),S.onBlur&&S.onBlur(ve),re&&re.onBlur?re.onBlur(ve):de(!1)},Fe=(ve,...Ze)=>{if(!se){const De=ve.target||le.current;if(De==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":dn(1));we({value:De.value})}S.onChange&&S.onChange(ve,...Ze),F&&F(ve,...Ze)};T.useEffect(()=>{we(le.current)},[]);const ce=ve=>{le.current&&ve.currentTarget===ve.target&&le.current.focus(),E&&E(ve)};let Xe=w,Ae=S;D&&Xe==="input"&&(R?(process.env.NODE_ENV!=="production"&&(O||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ae={type:void 0,minRows:R,maxRows:R,...Ae}):Ae={type:void 0,maxRows:P,minRows:O,...Ae},Xe=Ng);const ie=ve=>{we(ve.animationName==="mui-auto-fill-cancel"?le.current:{value:"x"})};T.useEffect(()=>{re&&re.setAdornedStart(!!K)},[re,K]);const te={...r,color:oe.color||"primary",disabled:oe.disabled,endAdornment:g,error:oe.error,focused:oe.focused,formControl:re,fullWidth:m,hiddenLabel:oe.hiddenLabel,multiline:D,size:oe.size,startAdornment:K,type:ee},fe=dP(te),Ce=G.root||p.Root||Ia,Pe=V.root||u.root||{},Te=G.input||p.Input||Na;return Ae={...Ae,...V.input??u.input},c.jsxs(T.Fragment,{children:[!b&&typeof Dg=="function"&&(Mg||(Mg=c.jsx(Dg,{}))),c.jsxs(Ce,{...Pe,ref:n,onClick:ce,...J,...!Zn(Ce)&&{ownerState:{...te,...Pe.ownerState}},className:ue(fe.root,Pe.className,l,j&&"MuiInputBase-readOnly"),children:[K,c.jsx(Pa.Provider,{value:null,children:c.jsx(Te,{"aria-invalid":oe.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:oe.disabled,id:y,onAnimationStart:ie,name:N,placeholder:$,readOnly:j,required:oe.required,rows:R,value:ae,onKeyDown:M,onKeyUp:B,type:ee,...Ae,...!Zn(Te)&&{as:Xe,ownerState:{...te,...Ae.ownerState}},ref:ne,className:ue(fe.input,Ae.className,j&&"MuiInputBase-readOnly"),onBlur:_e,onChange:Fe,onFocus:Ne})}),g,_?_({...oe,startAdornment:K}):null]})]})});process.env.NODE_ENV!=="production"&&(Si.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Uc,inputProps:o.object,inputRef:Pt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function uP(e){return ye("MuiInput",e)}const wi={...so,...be("MuiInput",["root","underline","input"])};function pP(e){return ye("MuiOutlinedInput",e)}const wn={...so,...be("MuiOutlinedInput",["root","notchedOutline","input"])};function fP(e){return ye("MuiFilledInput",e)}const Er={...so,...be("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},hP=Ke(c.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),gP=Ke(c.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function mP(e){return ye("MuiAvatar",e)}be("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const yP=e=>{const{classes:t,variant:n,colorDefault:r}=e;return xe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},mP,t)},bP=X("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(me(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),xP=X("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),vP=X(gP,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function SP({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=T.useState(!1);return T.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Fa=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:d={},slotProps:p={},imgProps:u,sizes:h,src:x,srcSet:b,variant:g="circular",...f}=r;let m=null;const y={...r,component:l,variant:g},w=SP({...u,...typeof p.img=="function"?p.img(y):p.img,src:x,srcSet:b}),S=x||b,v=S&&w!=="error";y.colorDefault=!v,delete y.ownerState;const C=yP(y),[P,O]=Ee("root",{ref:n,className:ue(C.root,a),elementType:bP,externalForwardedProps:{slots:d,slotProps:p,component:l,...f},ownerState:y}),[D,N]=Ee("img",{className:C.img,elementType:xP,externalForwardedProps:{slots:d,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:x,srcSet:b,sizes:h},ownerState:y}),[I,F]=Ee("fallback",{className:C.fallback,elementType:vP,externalForwardedProps:{slots:d,slotProps:p},shouldForwardComponentProp:!0,ownerState:y});return v?m=c.jsx(D,{...N}):s||s===0?m=s:S&&i?m=i[0]:m=c.jsx(I,{...F}),c.jsx(P,{...O,children:m})});process.env.NODE_ENV!=="production"&&(Fa.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function wP(e){const{prototype:t={}}=e;return!!t.isReactComponent}function _g(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const d=s.type;return typeof d=="function"&&!wP(d)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Tr=nn(o.element,_g);Tr.isRequired=nn(o.element.isRequired,_g);const CP={entering:{opacity:1},entered:{opacity:1}},Ma=T.forwardRef(function(t,n){const r=mn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:d,in:p,onEnter:u,onEntered:h,onEntering:x,onExit:b,onExited:g,onExiting:f,style:m,timeout:y=i,TransitionComponent:w=yn,...S}=t,v=T.useRef(null),C=lt(v,Cr(l),n),P=M=>B=>{if(M){const $=v.current;B===void 0?M($):M($,B)}},O=P(x),D=P((M,B)=>{Zh(M);const $=ga({style:m,timeout:y,easing:d},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",$),M.style.transition=r.transitions.create("opacity",$),u&&u(M,B)}),N=P(h),I=P(f),F=P(M=>{const B=ga({style:m,timeout:y,easing:d},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",B),M.style.transition=r.transitions.create("opacity",B),b&&b(M)}),E=P(g),A=M=>{s&&s(v.current,M)};return c.jsx(w,{appear:a,in:p,nodeRef:v,onEnter:D,onEntered:N,onEntering:O,onExit:F,onExited:E,onExiting:I,addEndListener:A,timeout:y,...S,children:(M,{ownerState:B,...$})=>T.cloneElement(l,{style:{opacity:0,visibility:M==="exited"&&!p?"hidden":void 0,...CP[M],...m,...l.props.style},ref:C,...$})})});process.env.NODE_ENV!=="production"&&(Ma.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function EP(e){return ye("MuiBackdrop",e)}be("MuiBackdrop",["root","invisible"]);const TP=e=>{const{classes:t,invisible:n}=e;return xe({root:["root",n&&"invisible"]},EP,t)},PP=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),id=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:d,components:p={},componentsProps:u={},slotProps:h={},slots:x={},TransitionComponent:b,transitionDuration:g,...f}=r,m={...r,component:a,invisible:l},y=TP(m),w={transition:b,root:p.Root,...x},S={...u,...h},v={component:a,slots:w,slotProps:S},[C,P]=Ee("root",{elementType:PP,externalForwardedProps:v,className:ue(y.root,s),ownerState:m}),[O,D]=Ee("transition",{elementType:Ma,externalForwardedProps:v,ownerState:m});return c.jsx(O,{in:d,timeout:g,...f,...D,children:c.jsx(C,{"aria-hidden":!0,...P,classes:y,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(id.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const OP=be("MuiBox",["root"]),kP=Bh(),k=Mw({themeId:Ko,defaultTheme:kP,defaultClassName:OP.root,generateClassName:dh.generate});process.env.NODE_ENV!=="production"&&(k.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function AP(e){return ye("MuiButton",e)}const Pr=be("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),$g=T.createContext({});process.env.NODE_ENV!=="production"&&($g.displayName="ButtonGroupContext");const zg=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(zg.displayName="ButtonGroupButtonContext");const IP=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:d}=e,p={root:["root",a&&"loading",s,`${s}${Z(t)}`,`size${Z(i)}`,`${s}Size${Z(i)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Z(l)}`],startIcon:["icon","startIcon",`iconSize${Z(i)}`],endIcon:["icon","endIcon",`iconSize${Z(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=xe(p,AP,d);return{...d,...u}},Lg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],NP=X(pi,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(me(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Pr.loading}`]:{color:"transparent"}}}]}})),FP=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Lg]})),MP=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Lg]})),DP=X("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),jg=X("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ye=T.forwardRef(function(t,n){const r=T.useContext($g),i=T.useContext(zg),s=si(r,t),a=Se({props:s,name:"MuiButton"}),{children:l,color:d="primary",component:p="button",className:u,disabled:h=!1,disableElevation:x=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:y,loading:w=null,loadingIndicator:S,loadingPosition:v="center",size:C="medium",startIcon:P,type:O,variant:D="text",...N}=a,I=gr(y),F=S??c.jsx(ba,{"aria-labelledby":I,color:"inherit",size:16}),E={...a,color:d,component:p,disabled:h,disableElevation:x,disableFocusRipple:b,fullWidth:m,loading:w,loadingIndicator:F,loadingPosition:v,size:C,type:O,variant:D},A=IP(E),M=(P||w&&v==="start")&&c.jsx(FP,{className:A.startIcon,ownerState:E,children:P||c.jsx(jg,{className:A.loadingIconPlaceholder,ownerState:E})}),B=(g||w&&v==="end")&&c.jsx(MP,{className:A.endIcon,ownerState:E,children:g||c.jsx(jg,{className:A.loadingIconPlaceholder,ownerState:E})}),$=i||"",j=typeof w=="boolean"?c.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:w&&c.jsx(DP,{className:A.loadingIndicator,ownerState:E,children:F})}):null;return c.jsxs(NP,{ownerState:E,className:ue(r.className,A.root,u,$),component:p,disabled:h||w,focusRipple:!b,focusVisibleClassName:ue(A.focusVisible,f),ref:n,type:O,id:w?I:y,...N,classes:A,children:[M,v!=="end"&&j,l,v==="end"&&j,B]})});process.env.NODE_ENV!=="production"&&(Ye.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function _P(e){return ye("MuiCard",e)}be("MuiCard",["root"]);const $P=e=>{const{classes:t}=e;return xe({root:["root"]},_P,t)},zP=X(rn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Rn=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},d=$P(l);return c.jsx(zP,{className:ue(d.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={children:o.node,classes:o.object,className:o.string,raised:nn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function LP(e){return ye("MuiCardContent",e)}be("MuiCardContent",["root"]);const jP=e=>{const{classes:t}=e;return xe({root:["root"]},LP,t)},BP=X("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Bg=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=jP(l);return c.jsx(BP,{as:s,className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Bg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function WP(e){return ye("PrivateSwitchBase",e)}be("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const RP=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${Z(i)}`],input:["input"]};return xe(s,WP,t)},VP=X(pi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),UP=X("input",{name:"MuiSwitchBase",shouldForwardProp:Ct})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Da=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:d=!1,edge:p=!1,icon:u,id:h,inputProps:x,inputRef:b,name:g,onBlur:f,onChange:m,onFocus:y,readOnly:w,required:S=!1,tabIndex:v,type:C,value:P,slots:O={},slotProps:D={},...N}=t,[I,F]=Qr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),E=Sn(),A=Q=>{y&&y(Q),E&&E.onFocus&&E.onFocus(Q)},M=Q=>{f&&f(Q),E&&E.onBlur&&E.onBlur(Q)},B=Q=>{if(Q.nativeEvent.defaultPrevented)return;const J=Q.target.checked;F(J),m&&m(Q,J)};let $=l;E&&typeof $>"u"&&($=E.disabled);const j=C==="checkbox"||C==="radio",_={...t,checked:I,disabled:$,disableFocusRipple:d,edge:p},R=RP(_),z={slots:O,slotProps:{input:x,...D}},[V,G]=Ee("root",{ref:n,elementType:VP,className:R.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...N},getSlotProps:Q=>({...Q,onFocus:J=>{Q.onFocus?.(J),A(J)},onBlur:J=>{Q.onBlur?.(J),M(J)}}),ownerState:_,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:$,role:void 0,tabIndex:null}}),[K,ee]=Ee("input",{ref:b,elementType:UP,className:R.input,externalForwardedProps:z,getSlotProps:Q=>({...Q,onChange:J=>{Q.onChange?.(J),B(J)}}),ownerState:_,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:$,id:j?h:void 0,name:g,readOnly:w,required:S,tabIndex:v,type:C,...C==="checkbox"&&P===void 0?{}:{value:P}}});return c.jsxs(V,{...G,children:[c.jsx(K,{...ee}),I?s:u]})});process.env.NODE_ENV!=="production"&&(Da.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:Pt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const HP=Ke(c.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),qP=Ke(c.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),YP=Ke(c.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function GP(e){return ye("MuiCheckbox",e)}const sd=be("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),KP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(i)}`]},a=xe(s,GP,t);return{...t,...a}},XP=X(Da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${sd.checked}, &.${sd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${sd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),JP=c.jsx(qP,{}),QP=c.jsx(HP,{}),ZP=c.jsx(YP,{}),Ot=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiCheckbox"}),{checkedIcon:i=JP,color:s="primary",icon:a=QP,indeterminate:l=!1,indeterminateIcon:d=ZP,inputProps:p,size:u="medium",disableRipple:h=!1,className:x,slots:b={},slotProps:g={},...f}=r,m=l?d:a,y=l?d:i,w={...r,disableRipple:h,color:s,indeterminate:l,size:u},S=KP(w),v=g.input??p,[C,P]=Ee("root",{ref:n,elementType:XP,className:ue(S.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:T.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:h,slots:b,slotProps:{input:Uh(typeof v=="function"?v(w):v,{"data-indeterminate":l})}}});return c.jsx(C,{...P,classes:S})});process.env.NODE_ENV!=="production"&&(Ot.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Wg(e){return e.substring(2).toLowerCase()}function eO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function _a(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=T.useRef(!1),l=T.useRef(null),d=T.useRef(!1),p=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const u=lt(Cr(t),l),h=Tt(g=>{const f=p.current;p.current=!1;const m=dt(l.current);if(!d.current||!l.current||"clientX"in g&&eO(g,m))return;if(a.current){a.current=!1;return}let y;g.composedPath?y=g.composedPath().includes(l.current):y=!m.documentElement.contains(g.target)||l.current.contains(g.target),!y&&(n||!f)&&i(g)}),x=g=>f=>{p.current=!0;const m=t.props[g];m&&m(f)},b={ref:u};return s!==!1&&(b[s]=x(s)),T.useEffect(()=>{if(s!==!1){const g=Wg(s),f=dt(l.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(b[r]=x(r)),T.useEffect(()=>{if(r!==!1){const g=Wg(r),f=dt(l.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),T.cloneElement(t,b)}process.env.NODE_ENV!=="production"&&(_a.propTypes={children:Tr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(_a.propTypes=Ac(_a.propTypes));const Or=uC({createStyledComponent:X("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Se({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(Or.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Rg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function tO(e){const t=dt(e);return t.body===e?Ln(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ci(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Vg(e){return parseInt(Ln(e).getComputedStyle(e).paddingRight,10)||0}function nO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Ug(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),d=!nO(a);l&&d&&Ci(a,i)})}function ad(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function rO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(tO(r)){const a=Rg(Ln(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Vg(r)+a}px`;const l=dt(r).querySelectorAll(".mui-fixed");[].forEach.call(l,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Vg(d)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=dt(r).body;else{const a=r.parentElement,l=Ln(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function oO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class iO{constructor(){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&&Ci(t.modalRef,!1);const i=oO(n);Ug(n,t.mount,t.modalRef,i,!0);const s=ad(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=ad(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=rO(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=ad(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Ci(t.modalRef,n),Ug(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Ci(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Ei(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const sO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function aO(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 lO(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 cO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||lO(e))}function dO(e){const t=[],n=[];return Array.from(e.querySelectorAll(sO)).forEach((r,i)=>{const s=aO(r);s===-1||!cO(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function uO(){return!0}function $a(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=dO,isEnabled:a=uO,open:l}=e,d=T.useRef(!1),p=T.useRef(null),u=T.useRef(null),h=T.useRef(null),x=T.useRef(null),b=T.useRef(!1),g=T.useRef(null),f=lt(Cr(t),g),m=T.useRef(null);T.useEffect(()=>{!l||!g.current||(b.current=!n)},[n,l]),T.useEffect(()=>{if(!l||!g.current)return;const S=dt(g.current),v=Ei(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
- `)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[l]),T.useEffect(()=>{if(!l||!g.current)return;const S=dt(g.current),v=Ei(S),C=D=>{m.current=D,!(r||!a()||D.key!=="Tab")&&v===g.current&&D.shiftKey&&(d.current=!0,u.current&&u.current.focus())},P=()=>{const D=g.current;if(D===null)return;const N=Ei(S);if(!S.hasFocus()||!a()||d.current){d.current=!1;return}if(D.contains(N)||r&&N!==p.current&&N!==u.current)return;if(N!==x.current)x.current=null;else if(x.current!==null)return;if(!b.current)return;let I=[];if((N===p.current||N===u.current)&&(I=s(g.current)),I.length>0){const F=!!(m.current?.shiftKey&&m.current?.key==="Tab"),E=I[0],A=I[I.length-1];typeof E!="string"&&typeof A!="string"&&(F?A.focus():E.focus())}else D.focus()};S.addEventListener("focusin",P),S.addEventListener("keydown",C,!0);const O=setInterval(()=>{const D=Ei(S);D&&D.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),S.removeEventListener("focusin",P),S.removeEventListener("keydown",C,!0)}},[n,r,i,a,l,s]);const y=S=>{h.current===null&&(h.current=S.relatedTarget),b.current=!0,x.current=S.target;const v=t.props.onFocus;v&&v(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),b.current=!0};return c.jsxs(T.Fragment,{children:[c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:f,onFocus:y}),c.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&($a.propTypes={children:Tr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&($a.propTypes=Ac($a.propTypes));function pO(e){return typeof e=="function"?e():e}function fO(e){return e?e.props.hasOwnProperty("in"):!1}const Hg=()=>{},za=new iO;function hO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:d,open:p,rootRef:u}=e,h=T.useRef({}),x=T.useRef(null),b=T.useRef(null),g=lt(b,u),[f,m]=T.useState(!p),y=fO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>dt(x.current),v=()=>(h.current.modalRef=b.current,h.current.mount=x.current,h.current),C=()=>{za.mount(v(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},P=Tt(()=>{const B=pO(t)||S().body;za.add(v(),B),b.current&&C()}),O=()=>za.isTopModal(v()),D=Tt(B=>{x.current=B,B&&(p&&O()?C():b.current&&Ci(b.current,w))}),N=T.useCallback(()=>{za.remove(v(),w)},[w]);T.useEffect(()=>()=>{N()},[N]),T.useEffect(()=>{p?P():(!y||!i)&&N()},[p,N,y,i,P]);const I=B=>$=>{B.onKeyDown?.($),!($.key!=="Escape"||$.which===229||!O())&&(n||($.stopPropagation(),d&&d($,"escapeKeyDown")))},F=B=>$=>{B.onClick?.($),$.target===$.currentTarget&&d&&d($,"backdropClick")};return{getRootProps:(B={})=>{const $=vr(e);delete $.onTransitionEnter,delete $.onTransitionExited;const j={...$,...B};return{role:"presentation",...j,onKeyDown:I(j),ref:g}},getBackdropProps:(B={})=>{const $=B;return{"aria-hidden":!0,...$,onClick:F($),open:p}},getTransitionProps:()=>{const B=()=>{m(!1),s&&s()},$=()=>{m(!0),a&&a(),i&&N()};return{onEnter:Lc(B,l?.props.onEnter??Hg),onExited:Lc($,l?.props.onExited??Hg)}},rootRef:g,portalRef:D,isTopModal:O,exited:f,hasTransition:y}}function gO(e){return ye("MuiModal",e)}be("MuiModal",["root","hidden","backdrop"]);const mO=e=>{const{open:t,exited:n,classes:r}=e;return xe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},gO,r)},yO=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(me(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),bO=X(id,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),ao=T.forwardRef(function(t,n){const r=Se({name:"MuiModal",props:t}),{BackdropComponent:i=bO,BackdropProps:s,classes:a,className:l,closeAfterTransition:d=!1,children:p,container:u,component:h,components:x={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:C=!1,onClose:P,onTransitionEnter:O,onTransitionExited:D,open:N,slotProps:I={},slots:F={},theme:E,...A}=r,M={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:v,keepMounted:C},{getRootProps:B,getBackdropProps:$,getTransitionProps:j,portalRef:_,isTopModal:R,exited:z,hasTransition:V}=hO({...M,rootRef:n}),G={...M,exited:z},K=mO(G),ee={};if(p.props.tabIndex===void 0&&(ee.tabIndex="-1"),V){const{onEnter:q,onExited:ne}=j();ee.onEnter=q,ee.onExited=ne}const Q={slots:{root:x.Root,backdrop:x.Backdrop,...F},slotProps:{...b,...I}},[J,ae]=Ee("root",{ref:n,elementType:yO,externalForwardedProps:{...Q,...A,component:h},getSlotProps:B,ownerState:G,className:ue(l,K?.root,!G.open&&G.exited&&K?.hidden)}),[se,le]=Ee("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:q=>$({...q,onClick:ne=>{q?.onClick&&q.onClick(ne)}}),className:ue(s?.className,K?.backdrop),ownerState:G});return!C&&!N&&(!V||z)?null:c.jsx(vi,{ref:_,container:u,disablePortal:y,children:c.jsxs(J,{...ae,children:[!v&&i?c.jsx(se,{...le}):null,c.jsx($a,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:R,open:N,children:T.cloneElement(p,ee)})]})})});process.env.NODE_ENV!=="production"&&(ao.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Tr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Bn,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xO(e){return ye("MuiDialog",e)}const ld=be("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),cd=T.createContext({});process.env.NODE_ENV!=="production"&&(cd.displayName="DialogContext");const vO=X(id,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),SO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return xe(a,xO,t)},wO=X(ao,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),CO=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),EO=X(rn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(me(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${ld.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${ld.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${ld.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),lo=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialog"}),i=mn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":d=!0,BackdropComponent:p,BackdropProps:u,children:h,className:x,disableEscapeKeyDown:b=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:y,onClose:w,open:S,PaperComponent:v=rn,PaperProps:C={},scroll:P="paper",slots:O={},slotProps:D={},TransitionComponent:N=Ma,transitionDuration:I=s,TransitionProps:F,...E}=r,A={...r,disableEscapeKeyDown:b,fullScreen:g,fullWidth:f,maxWidth:m,scroll:P},M=SO(A),B=T.useRef(),$=de=>{B.current=de.target===de.currentTarget},j=de=>{y&&y(de),B.current&&(B.current=null,w&&w(de,"backdropClick"))},_=gr(l),R=T.useMemo(()=>({titleId:_}),[_]),z={transition:N,...O},V={transition:F,paper:C,backdrop:u,...D},G={slots:z,slotProps:V},[K,ee]=Ee("root",{elementType:wO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:A,className:ue(M.root,x),ref:n}),[Q,J]=Ee("backdrop",{elementType:vO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:A}),[ae,se]=Ee("paper",{elementType:EO,shouldForwardComponentProp:!0,externalForwardedProps:G,ownerState:A,className:ue(M.paper,C.className)}),[le,q]=Ee("container",{elementType:CO,externalForwardedProps:G,ownerState:A,className:M.container}),[ne,U]=Ee("transition",{elementType:Ma,externalForwardedProps:G,ownerState:A,additionalProps:{appear:!0,in:S,timeout:I,role:"presentation"}});return c.jsx(K,{closeAfterTransition:!0,slots:{backdrop:Q},slotProps:{backdrop:{transitionDuration:I,as:p,...J}},disableEscapeKeyDown:b,onClose:w,open:S,onClick:j,...ee,...E,children:c.jsx(ne,{...U,children:c.jsx(le,{onMouseDown:$,...q,children:c.jsx(ae,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":_,"aria-modal":d,...se,children:c.jsx(cd.Provider,{value:R,children:h})})})})})});process.env.NODE_ENV!=="production"&&(lo.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function TO(e){return ye("MuiDialogActions",e)}be("MuiDialogActions",["root","spacing"]);const PO=e=>{const{classes:t,disableSpacing:n}=e;return xe({root:["root",!n&&"spacing"]},TO,t)},OO=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),dd=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},d=PO(l);return c.jsx(OO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(dd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function kO(e){return ye("MuiDialogContent",e)}be("MuiDialogContent",["root","dividers"]);function AO(e){return ye("MuiDialogTitle",e)}const IO=be("MuiDialogTitle",["root"]),NO=e=>{const{classes:t,dividers:n}=e;return xe({root:["root",n&&"dividers"]},kO,t)},FO=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(me(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${IO.root} + &`]:{paddingTop:0}}}]}))),Ti=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},d=NO(l);return c.jsx(FO,{className:ue(d.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Ti.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const MO=e=>{const{classes:t}=e;return xe({root:["root"]},AO,t)},DO=X(W,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),co=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,d=MO(l),{titleId:p=s}=T.useContext(cd);return c.jsx(DO,{component:"h2",className:ue(d.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(co.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function _O(e){return ye("MuiDivider",e)}const qg=be("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$O=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:d}=e;return xe({root:["root",t&&"absolute",d,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},_O,r)},zO=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(me(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),LO=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(me(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Xt=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:l="horizontal",component:d=s||l==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=d!=="hr"?"separator":void 0,textAlign:x="center",variant:b="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:p,light:u,orientation:l,role:h,textAlign:x,variant:b},m=$O(f);return c.jsx(zO,{as:d,className:ue(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||l==="vertical")?l:void 0,...g,children:s?c.jsx(LO,{className:m.wrapper,ownerState:f,children:s}):null})});Xt&&(Xt.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Xt.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const jO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${Z(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},p=xe(d,fP,t);return{...t,...p}},BO=X(Ia,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ka(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Er.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Er.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Er.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Er.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Er.disabled}, .${Er.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Er.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),WO=X(Na,{name:"MuiFilledInput",slot:"Input",overridesResolver:Aa})(me(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),La=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:d,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:x={},type:b="text",...g}=r,f={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:b},m=jO(r),y={root:{ownerState:f},input:{ownerState:f}},w=h??a?wt(y,h??a):y,S=x.root??s.Root??BO,v=x.input??s.Input??WO;return c.jsx(Si,{slots:{root:S,input:v},slotProps:w,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:b,...g,classes:m})});process.env.NODE_ENV!=="production"&&(La.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Pt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),La.muiName="Input";function RO(e){return ye("MuiFormControl",e)}be("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const VO=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return xe(i,RO,t)},UO=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ja=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:d=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:x=!1,margin:b="none",required:g=!1,size:f="medium",variant:m="outlined",...y}=r,w={...r,color:a,component:l,disabled:d,error:p,fullWidth:h,hiddenLabel:x,margin:b,required:g,size:f,variant:m},S=VO(w),[v,C]=T.useState(()=>{let $=!1;return i&&T.Children.forEach(i,j=>{if(!Nc(j,["Input","Select"]))return;const _=Nc(j,["Select"])?j.props.input:j;_&&lP(_.props)&&($=!0)}),$}),[P,O]=T.useState(()=>{let $=!1;return i&&T.Children.forEach(i,j=>{Nc(j,["Input","Select"])&&(Oa(j.props,!0)||Oa(j.props.inputProps,!0))&&($=!0)}),$}),[D,N]=T.useState(!1);d&&D&&N(!1);const I=u!==void 0&&!d?u:D;let F;const E=T.useRef(!1);process.env.NODE_ENV!=="production"&&(F=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
- `)),E.current=!0,()=>{E.current=!1}));const A=T.useCallback(()=>{O(!0)},[]),M=T.useCallback(()=>{O(!1)},[]),B=T.useMemo(()=>({adornedStart:v,setAdornedStart:C,color:a,disabled:d,error:p,filled:P,focused:I,fullWidth:h,hiddenLabel:x,size:f,onBlur:()=>{N(!1)},onFocus:()=>{N(!0)},onEmpty:M,onFilled:A,registerEffect:F,required:g,variant:m}),[v,a,d,p,P,I,h,x,F,M,A,g,f,m]);return c.jsx(Pa.Provider,{value:B,children:c.jsx(UO,{as:l,ownerState:w,className:ue(S.root,s),ref:n,...y,children:i})})});process.env.NODE_ENV!=="production"&&(ja.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function HO(e){return ye("MuiFormControlLabel",e)}const Pi=be("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qO=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return xe(a,HO,t)},YO=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pi.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(me(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pi.disabled}`]:{cursor:"default"},[`& .${Pi.label}`]:{[`&.${Pi.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),GO=X("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Pi.error}`]:{color:(e.vars||e).palette.error.main}}))),Cn=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:d,disableTypography:p,inputRef:u,label:h,labelPlacement:x="end",name:b,onChange:g,required:f,slots:m={},slotProps:y={},value:w,...S}=r,v=Sn(),C=d??l.props.disabled??v?.disabled,P=f??l.props.required,O={disabled:C,required:P};["checked","name","onChange","value","inputRef"].forEach(B=>{typeof l.props[B]>"u"&&typeof r[B]<"u"&&(O[B]=r[B])});const D=tr({props:r,muiFormControl:v,states:["error"]}),N={...r,disabled:C,labelPlacement:x,required:P,error:D.error},I=qO(N),F={slots:m,slotProps:{...a,...y}},[E,A]=Ee("typography",{elementType:W,externalForwardedProps:F,ownerState:N});let M=h;return M!=null&&M.type!==W&&!p&&(M=c.jsx(E,{component:"span",...A,className:ue(I.label,A?.className),children:M})),c.jsxs(YO,{className:ue(I.root,s),ownerState:N,ref:n,...S,children:[T.cloneElement(l,O),P?c.jsxs("div",{children:[M,c.jsxs(GO,{ownerState:N,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):M]})});process.env.NODE_ENV!=="production"&&(Cn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:Pt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function KO(e){return ye("MuiFormGroup",e)}be("MuiFormGroup",["root","row","error"]);const XO=e=>{const{classes:t,row:n,error:r}=e;return xe({root:["root",n&&"row",r&&"error"]},KO,t)},JO=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Yg=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=Sn(),d=tr({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:d.error},u=XO(p);return c.jsx(JO,{className:ue(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Yg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function QO(e){return ye("MuiFormHelperText",e)}const Gg=be("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Kg;const ZO=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:l,required:d}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${Z(r)}`,n&&"contained",l&&"focused",a&&"filled",d&&"required"]};return xe(p,QO,t)},ek=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Gg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Xg=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:d,filled:p,focused:u,margin:h,required:x,variant:b,...g}=r,f=Sn(),m=tr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete y.ownerState;const w=ZO(y);return c.jsx(ek,{as:a,className:ue(w.root,s),ref:n,...g,ownerState:y,children:i===" "?Kg||(Kg=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function tk(e){return ye("MuiFormLabel",e)}const Oi=be("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nk=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:l}=e,d={root:["root",`color${Z(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return xe(d,tk,t)},rk=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${Oi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Oi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Oi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),ok=X("span",{name:"MuiFormLabel",slot:"Asterisk"})(me(({theme:e})=>({[`&.${Oi.error}`]:{color:(e.vars||e).palette.error.main}}))),ki=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:d,error:p,filled:u,focused:h,required:x,...b}=r,g=Sn(),f=tr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},y=nk(m);return c.jsxs(rk,{as:l,ownerState:m,className:ue(y.root,s),ref:n,...b,children:[i,f.required&&c.jsxs(ok,{ownerState:m,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(ki.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function ud(e){return`scale(${e}, ${e**2})`}const ik={entering:{opacity:1,transform:ud(1)},entered:{opacity:1,transform:"none"}},pd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uo=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:d,onEntered:p,onEntering:u,onExit:h,onExited:x,onExiting:b,style:g,timeout:f="auto",TransitionComponent:m=yn,...y}=t,w=xr(),S=T.useRef(),v=mn(),C=T.useRef(null),P=lt(C,Cr(s),n),O=B=>$=>{if(B){const j=C.current;$===void 0?B(j):B(j,$)}},D=O(u),N=O((B,$)=>{Zh(B);const{duration:j,delay:_,easing:R}=ga({style:g,timeout:f,easing:a},{mode:"enter"});let z;f==="auto"?(z=v.transitions.getAutoHeightDuration(B.clientHeight),S.current=z):z=j,B.style.transition=[v.transitions.create("opacity",{duration:z,delay:_}),v.transitions.create("transform",{duration:pd?z:z*.666,delay:_,easing:R})].join(","),d&&d(B,$)}),I=O(p),F=O(b),E=O(B=>{const{duration:$,delay:j,easing:_}=ga({style:g,timeout:f,easing:a},{mode:"exit"});let R;f==="auto"?(R=v.transitions.getAutoHeightDuration(B.clientHeight),S.current=R):R=$,B.style.transition=[v.transitions.create("opacity",{duration:R,delay:j}),v.transitions.create("transform",{duration:pd?R:R*.666,delay:pd?j:j||R*.333,easing:_})].join(","),B.style.opacity=0,B.style.transform=ud(.75),h&&h(B)}),A=O(x),M=B=>{f==="auto"&&w.start(S.current||0,B),r&&r(C.current,B)};return c.jsx(m,{appear:i,in:l,nodeRef:C,onEnter:N,onEntered:I,onEntering:D,onExit:E,onExited:A,onExiting:F,addEndListener:M,timeout:f==="auto"?null:f,...y,children:(B,{ownerState:$,...j})=>T.cloneElement(s,{style:{opacity:0,transform:ud(.75),visibility:B==="exited"&&!l?"hidden":void 0,...ik[B],...g,...s.props.style},ref:P,...j})})});process.env.NODE_ENV!=="production"&&(uo.propTypes={addEndListener:o.func,appear:o.bool,children:Tr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),uo&&(uo.muiSupportAuto=!0);const sk=e=>{const{classes:t,disableUnderline:n}=e,i=xe({root:["root",!n&&"underline"],input:["input"]},uP,t);return{...t,...i}},ak=X(Ia,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ka(e,t),!n.disableUnderline&&t.underline]}})(me(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${wi.disabled}, .${wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${wi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),lk=X(Na,{name:"MuiInput",slot:"Input",overridesResolver:Aa})({}),Ba=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:d="input",multiline:p=!1,slotProps:u,slots:h={},type:x="text",...b}=r,g=sk(r),m={root:{ownerState:{disableUnderline:i}}},y=u??a?wt(u??a,m):m,w=h.root??s.Root??ak,S=h.input??s.Input??lk;return c.jsx(Si,{slots:{root:w,input:S},slotProps:y,fullWidth:l,inputComponent:d,multiline:p,ref:n,type:x,...b,classes:g})});process.env.NODE_ENV!=="production"&&(Ba.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Pt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ba.muiName="Input";function ck(e){return ye("MuiInputLabel",e)}be("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const dk=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Z(r)}`,a],asterisk:[l&&"asterisk"]},p=xe(d,ck,t);return{...t,...p}},uk=X(ki,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(me(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Jg=T.forwardRef(function(t,n){const r=Se({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:d,...p}=r,u=Sn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const x=tr({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:i,formControl:u,shrink:h,size:x.size,variant:x.variant,required:x.required,focused:x.focused},g=dk(b);return c.jsx(uk,{"data-shrink":h,ref:n,className:ue(g.root,d),...p,ownerState:b,classes:g})});process.env.NODE_ENV!=="production"&&(Jg.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function pk(e){return ye("MuiLinearProgress",e)}be("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const fd=4,hd=Gn`
159
+ `,_E=typeof td!="string"?Qr`
160
+ animation: ${td} 1.4s linear infinite;
161
+ `:null,$E=typeof nd!="string"?Qr`
162
+ animation: ${nd} 1.4s ease-in-out infinite;
163
+ `:null,zE=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${Z(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Z(n)}`,i&&"circleDisableShrink"]};return ve(s,DE,t)},LE=X("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Z(n.color)}`]]}})(ye(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_E||{animation:`${td} 1.4s linear infinite`}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),BE=X("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),jE=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Z(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(ye(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:$E||{animation:`${nd} 1.4s ease-in-out infinite`}}]}))),WE=X("circle",{name:"MuiCircularProgress",slot:"Track"})(ye(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Ca=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:l=!1,enableTrackSlot:c=!1,size:d=40,style:u,thickness:p=3.6,value:h=0,variant:y="indeterminate",...b}=r,g={...r,color:s,disableShrink:l,size:d,thickness:p,value:h,variant:y,enableTrackSlot:c},f=zE(g),m={},x={},w={};if(y==="determinate"){const S=2*Math.PI*((sn-p)/2);m.strokeDasharray=S.toFixed(3),w["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*S).toFixed(3)}px`,x.transform="rotate(-90deg)"}return a.jsx(LE,{className:ue(f.root,i),style:{width:d,height:d,...x,...u},ownerState:g,ref:n,role:"progressbar",...w,...b,children:a.jsxs(BE,{className:f.svg,ownerState:g,viewBox:`${sn/2} ${sn/2} ${sn} ${sn}`,children:[c?a.jsx(WE,{className:f.track,ownerState:g,cx:sn,cy:sn,r:(sn-p)/2,fill:"none",strokeWidth:p,"aria-hidden":"true"}):null,a.jsx(jE,{className:f.circle,style:m,ownerState:g,cx:sn,cy:sn,r:(sn-p)/2,fill:"none",strokeWidth:p})]})})});process.env.NODE_ENV!=="production"&&(Ca.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:rn(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function VE(e){return be("MuiIconButton",e)}const hg=xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),UE=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:l}=e,c={root:["root",l&&"loading",n&&"disabled",r!=="default"&&`color${Z(r)}`,i&&`edge${Z(i)}`,`size${Z(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(c,VE,t)},HE=X(gi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Z(n.color)}`],n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})(ye(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ye(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${hg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${hg.loading}`]:{color:"transparent"}}))),RE=X("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),ft=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:l,color:c="default",disabled:d=!1,disableFocusRipple:u=!1,size:p="medium",id:h,loading:y=null,loadingIndicator:b,...g}=r,f=mr(h),m=b??a.jsx(Ca,{"aria-labelledby":f,color:"inherit",size:16}),x={...r,edge:i,color:c,disabled:d,disableFocusRipple:u,loading:y,loadingIndicator:m,size:p},w=UE(x);return a.jsxs(HE,{id:y?f:h,className:ue(w.root,l),centerRipple:!0,focusRipple:!u,disabled:d||y,ref:n,...g,ownerState:x,children:[typeof y=="boolean"&&a.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:a.jsx(RE,{className:w.loadingIndicator,ownerState:x,children:y&&m})}),s]})});process.env.NODE_ENV!=="production"&&(ft.propTypes={children:rn(o.node,e=>T.Children.toArray(e.children).some(n=>T.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
164
+ `)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function qE(e){return be("MuiTypography",e)}const gg=xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),YE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},GE=XC(),KE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:l}=e,c={root:["root",s,e.align!=="inherit"&&`align${Z(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ve(c,qE,l)},XE=X("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${Z(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ye(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Z(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),mg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},D=T.forwardRef(function(t,n){const{color:r,...i}=we({props:t,name:"MuiTypography"}),s=!YE[r],l=GE({...i,...s&&{color:r}}),{align:c="inherit",className:d,component:u,gutterBottom:p=!1,noWrap:h=!1,paragraph:y=!1,variant:b="body1",variantMapping:g=mg,...f}=l,m={...l,align:c,color:r,className:d,component:u,gutterBottom:p,noWrap:h,paragraph:y,variant:b,variantMapping:g},x=u||(y?"p":g[b]||mg[b])||"span",w=KE(m);return a.jsx(XE,{as:x,ref:n,className:ue(w.root,d),...f,ownerState:m,style:{...c!=="inherit"&&{"--Typography-textAlign":c},...f.style}})});process.env.NODE_ENV!=="production"&&(D.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function Vn(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],l=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var _t="top",Kt="bottom",Xt="right",$t="left",rd="auto",mi=[_t,Kt,Xt,$t],io="start",yi="end",JE="clippingParents",yg="viewport",bi="popper",QE="reference",bg=mi.reduce(function(e,t){return e.concat([t+"-"+io,t+"-"+yi])},[]),xg=[].concat(mi,[rd]).reduce(function(e,t){return e.concat([t,t+"-"+io,t+"-"+yi])},[]),ZE="beforeRead",eT="read",tT="afterRead",nT="beforeMain",rT="main",oT="afterMain",iT="beforeWrite",sT="write",aT="afterWrite",lT=[ZE,eT,tT,nT,rT,oT,iT,sT,aT];function xn(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function wr(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function Jt(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function od(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Jt(s)||!xn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(l){var c=i[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function dT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),c=l.reduce(function(d,u){return d[u]="",d},{});!Jt(i)||!xn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(d){i.removeAttribute(d)}))})}}const pT={name:"applyStyles",enabled:!0,phase:"write",fn:cT,effect:dT,requires:["computeStyles"]};function vn(e){return e.split("-")[0]}var Cr=Math.max,Ea=Math.min,so=Math.round;function id(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function vg(){return!/^((?!chrome|android).)*safari/i.test(id())}function ao(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&Jt(e)&&(i=e.offsetWidth>0&&so(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&so(r.height)/e.offsetHeight||1);var l=wr(e)?Vt(e):window,c=l.visualViewport,d=!vg()&&n,u=(r.left+(d&&c?c.offsetLeft:0))/i,p=(r.top+(d&&c?c.offsetTop:0))/s,h=r.width/i,y=r.height/s;return{width:h,height:y,top:p,right:u+h,bottom:p+y,left:u,x:u,y:p}}function sd(e){var t=ao(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Sg(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&od(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Un(e){return Vt(e).getComputedStyle(e)}function uT(e){return["table","td","th"].indexOf(xn(e))>=0}function tr(e){return((wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ta(e){return xn(e)==="html"?e:e.assignedSlot||e.parentNode||(od(e)?e.host:null)||tr(e)}function wg(e){return!Jt(e)||Un(e).position==="fixed"?null:e.offsetParent}function fT(e){var t=/firefox/i.test(id()),n=/Trident/i.test(id());if(n&&Jt(e)){var r=Un(e);if(r.position==="fixed")return null}var i=Ta(e);for(od(i)&&(i=i.host);Jt(i)&&["html","body"].indexOf(xn(i))<0;){var s=Un(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function xi(e){for(var t=Vt(e),n=wg(e);n&&uT(n)&&Un(n).position==="static";)n=wg(n);return n&&(xn(n)==="html"||xn(n)==="body"&&Un(n).position==="static")?t:n||fT(e)||t}function ad(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function vi(e,t,n){return Cr(e,Ea(t,n))}function hT(e,t,n){var r=vi(e,t,n);return r>n?n:r}function Cg(){return{top:0,right:0,bottom:0,left:0}}function Eg(e){return Object.assign({},Cg(),e)}function Tg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var gT=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Eg(typeof t!="number"?t:Tg(t,mi))};function mT(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,l=n.modifiersData.popperOffsets,c=vn(n.placement),d=ad(c),u=[$t,Xt].indexOf(c)>=0,p=u?"height":"width";if(!(!s||!l)){var h=gT(i.padding,n),y=sd(s),b=d==="y"?_t:$t,g=d==="y"?Kt:Xt,f=n.rects.reference[p]+n.rects.reference[d]-l[d]-n.rects.popper[p],m=l[d]-n.rects.reference[d],x=xi(s),w=x?d==="y"?x.clientHeight||0:x.clientWidth||0:0,S=f/2-m/2,v=h[b],C=w-y[p]-h[g],k=w/2-y[p]/2+S,A=vi(v,k,C),z=d;n.modifiersData[r]=(t={},t[z]=A,t.centerOffset=A-k,t)}}function yT(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Sg(t.elements.popper,i)&&(t.elements.arrow=i))}const bT={name:"arrow",enabled:!0,phase:"main",fn:mT,effect:yT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function lo(e){return e.split("-")[1]}var xT={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vT(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:so(n*i)/i||0,y:so(r*i)/i||0}}function kg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,c=e.position,d=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,h=e.isFixed,y=l.x,b=y===void 0?0:y,g=l.y,f=g===void 0?0:g,m=typeof p=="function"?p({x:b,y:f}):{x:b,y:f};b=m.x,f=m.y;var x=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),S=$t,v=_t,C=window;if(u){var k=xi(n),A="clientHeight",z="clientWidth";if(k===Vt(n)&&(k=tr(n),Un(k).position!=="static"&&c==="absolute"&&(A="scrollHeight",z="scrollWidth")),k=k,i===_t||(i===$t||i===Xt)&&s===yi){v=Kt;var M=h&&k===C&&C.visualViewport?C.visualViewport.height:k[A];f-=M-r.height,f*=d?1:-1}if(i===$t||(i===_t||i===Kt)&&s===yi){S=Xt;var $=h&&k===C&&C.visualViewport?C.visualViewport.width:k[z];b-=$-r.width,b*=d?1:-1}}var I=Object.assign({position:c},u&&xT),E=p===!0?vT({x:b,y:f},Vt(n)):{x:b,y:f};if(b=E.x,f=E.y,d){var N;return Object.assign({},I,(N={},N[v]=w?"0":"",N[S]=x?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",N))}return Object.assign({},I,(t={},t[v]=w?f+"px":"",t[S]=x?b+"px":"",t.transform="",t))}function ST(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,l=s===void 0?!0:s,c=n.roundOffsets,d=c===void 0?!0:c,u={placement:vn(t.placement),variation:lo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,kg(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:d})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,kg(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const wT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ST,data:{}};var ka={passive:!0};function CT(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,l=r.resize,c=l===void 0?!0:l,d=Vt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(p){p.addEventListener("scroll",n.update,ka)}),c&&d.addEventListener("resize",n.update,ka),function(){s&&u.forEach(function(p){p.removeEventListener("scroll",n.update,ka)}),c&&d.removeEventListener("resize",n.update,ka)}}const ET={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CT,data:{}};var TT={left:"right",right:"left",bottom:"top",top:"bottom"};function Pa(e){return e.replace(/left|right|bottom|top/g,function(t){return TT[t]})}var kT={start:"end",end:"start"};function Pg(e){return e.replace(/start|end/g,function(t){return kT[t]})}function ld(e){var t=Vt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function cd(e){return ao(tr(e)).left+ld(e).scrollLeft}function PT(e,t){var n=Vt(e),r=tr(e),i=n.visualViewport,s=r.clientWidth,l=r.clientHeight,c=0,d=0;if(i){s=i.width,l=i.height;var u=vg();(u||!u&&t==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:s,height:l,x:c+cd(e),y:d}}function OT(e){var t,n=tr(e),r=ld(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Cr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Cr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+cd(e),d=-r.scrollTop;return Un(i||n).direction==="rtl"&&(c+=Cr(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:d}}function dd(e){var t=Un(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Og(e){return["html","body","#document"].indexOf(xn(e))>=0?e.ownerDocument.body:Jt(e)&&dd(e)?e:Og(Ta(e))}function Si(e,t){var n;t===void 0&&(t=[]);var r=Og(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Vt(r),l=i?[s].concat(s.visualViewport||[],dd(r)?r:[]):r,c=t.concat(l);return i?c:c.concat(Si(Ta(l)))}function pd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function AT(e,t){var n=ao(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ag(e,t,n){return t===yg?pd(PT(e,n)):wr(t)?AT(t,n):pd(OT(tr(e)))}function IT(e){var t=Si(Ta(e)),n=["absolute","fixed"].indexOf(Un(e).position)>=0,r=n&&Jt(e)?xi(e):e;return wr(r)?t.filter(function(i){return wr(i)&&Sg(i,r)&&xn(i)!=="body"}):[]}function NT(e,t,n,r){var i=t==="clippingParents"?IT(e):[].concat(t),s=[].concat(i,[n]),l=s[0],c=s.reduce(function(d,u){var p=Ag(e,u,r);return d.top=Cr(p.top,d.top),d.right=Ea(p.right,d.right),d.bottom=Ea(p.bottom,d.bottom),d.left=Cr(p.left,d.left),d},Ag(e,l,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ig(e){var t=e.reference,n=e.element,r=e.placement,i=r?vn(r):null,s=r?lo(r):null,l=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,d;switch(i){case _t:d={x:l,y:t.y-n.height};break;case Kt:d={x:l,y:t.y+t.height};break;case Xt:d={x:t.x+t.width,y:c};break;case $t:d={x:t.x-n.width,y:c};break;default:d={x:t.x,y:t.y}}var u=i?ad(i):null;if(u!=null){var p=u==="y"?"height":"width";switch(s){case io:d[u]=d[u]-(t[p]/2-n[p]/2);break;case yi:d[u]=d[u]+(t[p]/2-n[p]/2);break}}return d}function wi(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,l=s===void 0?e.strategy:s,c=n.boundary,d=c===void 0?JE:c,u=n.rootBoundary,p=u===void 0?yg:u,h=n.elementContext,y=h===void 0?bi:h,b=n.altBoundary,g=b===void 0?!1:b,f=n.padding,m=f===void 0?0:f,x=Eg(typeof m!="number"?m:Tg(m,mi)),w=y===bi?QE:bi,S=e.rects.popper,v=e.elements[g?w:y],C=NT(wr(v)?v:v.contextElement||tr(e.elements.popper),d,p,l),k=ao(e.elements.reference),A=Ig({reference:k,element:S,placement:i}),z=pd(Object.assign({},S,A)),M=y===bi?z:k,$={top:C.top-M.top+x.top,bottom:M.bottom-C.bottom+x.bottom,left:C.left-M.left+x.left,right:M.right-C.right+x.right},I=e.modifiersData.offset;if(y===bi&&I){var E=I[i];Object.keys($).forEach(function(N){var _=[Xt,Kt].indexOf(N)>=0?1:-1,W=[_t,Kt].indexOf(N)>=0?"y":"x";$[N]+=E[W]*_})}return $}function FT(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,l=n.padding,c=n.flipVariations,d=n.allowedAutoPlacements,u=d===void 0?xg:d,p=lo(r),h=p?c?bg:bg.filter(function(g){return lo(g)===p}):mi,y=h.filter(function(g){return u.indexOf(g)>=0});y.length===0&&(y=h);var b=y.reduce(function(g,f){return g[f]=wi(e,{placement:f,boundary:i,rootBoundary:s,padding:l})[vn(f)],g},{});return Object.keys(b).sort(function(g,f){return b[g]-b[f]})}function MT(e){if(vn(e)===rd)return[];var t=Pa(e);return[Pg(e),t,Pg(t)]}function DT(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,c=l===void 0?!0:l,d=n.fallbackPlacements,u=n.padding,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,f=n.allowedAutoPlacements,m=t.options.placement,x=vn(m),w=x===m,S=d||(w||!g?[Pa(m)]:MT(m)),v=[m].concat(S).reduce(function(J,K){return J.concat(vn(K)===rd?FT(t,{placement:K,boundary:p,rootBoundary:h,padding:u,flipVariations:g,allowedAutoPlacements:f}):K)},[]),C=t.rects.reference,k=t.rects.popper,A=new Map,z=!0,M=v[0],$=0;$<v.length;$++){var I=v[$],E=vn(I),N=lo(I)===io,_=[_t,Kt].indexOf(E)>=0,W=_?"width":"height",F=wi(t,{placement:I,boundary:p,rootBoundary:h,altBoundary:y,padding:u}),B=_?N?Xt:$t:N?Kt:_t;C[W]>k[W]&&(B=Pa(B));var O=Pa(B),V=[];if(s&&V.push(F[E]<=0),c&&V.push(F[B]<=0,F[O]<=0),V.every(function(J){return J})){M=I,z=!1;break}A.set(I,V)}if(z)for(var L=g?3:1,U=function(K){var Q=v.find(function(se){var ce=A.get(se);if(ce)return ce.slice(0,K).every(function(de){return de})});if(Q)return M=Q,"break"},q=L;q>0;q--){var G=U(q);if(G==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}const _T={name:"flip",enabled:!0,phase:"main",fn:DT,requiresIfExists:["offset"],data:{_skip:!1}};function Ng(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Fg(e){return[_t,Xt,Kt,$t].some(function(t){return e[t]>=0})}function $T(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=wi(t,{elementContext:"reference"}),c=wi(t,{altBoundary:!0}),d=Ng(l,r),u=Ng(c,i,s),p=Fg(d),h=Fg(u);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":h})}const zT={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$T};function LT(e,t,n){var r=vn(e),i=[$t,_t].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[$t,Xt].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}}function BT(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,l=xg.reduce(function(p,h){return p[h]=LT(h,t.rects,s),p},{}),c=l[t.placement],d=c.x,u=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=l}const jT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BT};function WT(e){var t=e.state,n=e.name;t.modifiersData[n]=Ig({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const VT={name:"popperOffsets",enabled:!0,phase:"read",fn:WT,data:{}};function UT(e){return e==="x"?"y":"x"}function HT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,l=n.altAxis,c=l===void 0?!1:l,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,h=n.padding,y=n.tether,b=y===void 0?!0:y,g=n.tetherOffset,f=g===void 0?0:g,m=wi(t,{boundary:d,rootBoundary:u,padding:h,altBoundary:p}),x=vn(t.placement),w=lo(t.placement),S=!w,v=ad(x),C=UT(v),k=t.modifiersData.popperOffsets,A=t.rects.reference,z=t.rects.popper,M=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(k){if(s){var N,_=v==="y"?_t:$t,W=v==="y"?Kt:Xt,F=v==="y"?"height":"width",B=k[v],O=B+m[_],V=B-m[W],L=b?-z[F]/2:0,U=w===io?A[F]:z[F],q=w===io?-z[F]:-A[F],G=t.elements.arrow,J=b&&G?sd(G):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Cg(),Q=K[_],se=K[W],ce=vi(0,A[F],J[F]),de=S?A[F]/2-L-ce-Q-$.mainAxis:U-ce-Q-$.mainAxis,ee=S?-A[F]/2+L+ce+se+$.mainAxis:q+ce+se+$.mainAxis,pe=t.elements.arrow&&xi(t.elements.arrow),H=pe?v==="y"?pe.clientTop||0:pe.clientLeft||0:0,ne=(N=I?.[v])!=null?N:0,oe=B+de-ne-H,ge=B+ee-ne,me=vi(b?Ea(O,oe):O,B,b?Cr(V,ge):V);k[v]=me,E[v]=me-B}if(c){var ke,ae=v==="x"?_t:$t,te=v==="x"?Kt:Xt,Ce=k[C],Oe=C==="y"?"height":"width",ie=Ce+m[ae],ze=Ce-m[te],Ae=[_t,$t].indexOf(x)!==-1,le=(ke=I?.[C])!=null?ke:0,re=Ae?ie:Ce-A[Oe]-z[Oe]-le+$.altAxis,fe=Ae?Ce+A[Oe]+z[Oe]-le-$.altAxis:ze,Ee=b&&Ae?hT(re,Ce,fe):vi(b?re:ie,Ce,b?fe:ze);k[C]=Ee,E[C]=Ee-Ce}t.modifiersData[r]=E}}const RT={name:"preventOverflow",enabled:!0,phase:"main",fn:HT,requiresIfExists:["offset"]};function qT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function YT(e){return e===Vt(e)||!Jt(e)?ld(e):qT(e)}function GT(e){var t=e.getBoundingClientRect(),n=so(t.width)/e.offsetWidth||1,r=so(t.height)/e.offsetHeight||1;return n!==1||r!==1}function KT(e,t,n){n===void 0&&(n=!1);var r=Jt(t),i=Jt(t)&&GT(t),s=tr(t),l=ao(e,i,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&((xn(t)!=="body"||dd(s))&&(c=YT(t)),Jt(t)?(d=ao(t,!0),d.x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=cd(s))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function XT(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!n.has(c)){var d=t.get(c);d&&i(d)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function JT(e){var t=XT(e);return lT.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function QT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ZT(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Mg={placement:"bottom",modifiers:[],strategy:"absolute"};function Dg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ek(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?Mg:i;return function(c,d,u){u===void 0&&(u=s);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mg,s),modifiersData:{},elements:{reference:c,popper:d},attributes:{},styles:{}},h=[],y=!1,b={state:p,setOptions:function(x){var w=typeof x=="function"?x(p.options):x;f(),p.options=Object.assign({},s,p.options,w),p.scrollParents={reference:wr(c)?Si(c):c.contextElement?Si(c.contextElement):[],popper:Si(d)};var S=JT(ZT([].concat(r,p.options.modifiers)));return p.orderedModifiers=S.filter(function(v){return v.enabled}),g(),b.update()},forceUpdate:function(){if(!y){var x=p.elements,w=x.reference,S=x.popper;if(Dg(w,S)){p.rects={reference:KT(w,xi(S),p.options.strategy==="fixed"),popper:sd(S)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var v=0;v<p.orderedModifiers.length;v++){if(p.reset===!0){p.reset=!1,v=-1;continue}var C=p.orderedModifiers[v],k=C.fn,A=C.options,z=A===void 0?{}:A,M=C.name;typeof k=="function"&&(p=k({state:p,options:z,name:M,instance:b})||p)}}}},update:QT(function(){return new Promise(function(m){b.forceUpdate(),m(p)})}),destroy:function(){f(),y=!0}};if(!Dg(c,d))return b;b.setOptions(u).then(function(m){!y&&u.onFirstUpdate&&u.onFirstUpdate(m)});function g(){p.orderedModifiers.forEach(function(m){var x=m.name,w=m.options,S=w===void 0?{}:w,v=m.effect;if(typeof v=="function"){var C=v({state:p,name:x,instance:b,options:S}),k=function(){};h.push(C||k)}})}function f(){h.forEach(function(m){return m()}),h=[]}return b}}var tk=[ET,VT,wT,pT,jT,_T,RT,bT,zT],nk=ek({defaultModifiers:tk});function Sn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,l=i?{}:ag(n,r),{props:c,internalRef:d}=cg({...s,externalSlotProps:l}),u=ct(d,l?.ref,e.additionalProps?.ref);return sg(t,{...c,ref:u},r)}function Er(e){return parseInt(T.version,10)>=19?e?.props?.ref||null:e?.ref||null}function rk(e){return typeof e=="function"?e():e}const Ci=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[l,c]=T.useState(null),d=ct(T.isValidElement(r)?Er(r):null,n);if(Yt(()=>{s||c(rk(i)||document.body)},[i,s]),Yt(()=>{if(l&&!s)return Kh(n,l),()=>{Kh(n,null)}},[n,l,s]),s){if(T.isValidElement(r)){const u={ref:d};return T.cloneElement(r,u)}return r}return l&&uy.createPortal(r,l)});process.env.NODE_ENV!=="production"&&(Ci.propTypes={children:o.node,container:o.oneOfType([Vn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(Ci.propTypes=zc(Ci.propTypes));function ok(e){return be("MuiPopper",e)}xe("MuiPopper",["root"]);function ik(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Oa(e){return typeof e=="function"?e():e}function Aa(e){return e.nodeType!==void 0}function sk(e){return!Aa(e)}const ak=e=>{const{classes:t}=e;return ve({root:["root"]},ok,t)},lk={},ck=T.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:l,modifiers:c,open:d,placement:u,popperOptions:p,popperRef:h,slotProps:y={},slots:b={},TransitionProps:g,ownerState:f,...m}=t,x=T.useRef(null),w=ct(x,n),S=T.useRef(null),v=ct(S,h),C=T.useRef(v);Yt(()=>{C.current=v},[v]),T.useImperativeHandle(h,()=>S.current,[]);const k=ik(u,s),[A,z]=T.useState(k),[M,$]=T.useState(Oa(r));T.useEffect(()=>{S.current&&S.current.forceUpdate()}),T.useEffect(()=>{r&&$(Oa(r))},[r]),Yt(()=>{if(!M||!d)return;const W=O=>{z(O.placement)};if(process.env.NODE_ENV!=="production"&&M&&Aa(M)&&M.nodeType===1){const O=M.getBoundingClientRect();process.env.NODE_ENV!=="test"&&O.top===0&&O.left===0&&O.right===0&&O.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
165
+ `))}let F=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:O})=>{W(O)}}];c!=null&&(F=F.concat(c)),p&&p.modifiers!=null&&(F=F.concat(p.modifiers));const B=nk(M,x.current,{placement:k,...p,modifiers:F});return C.current(B),()=>{B.destroy(),C.current(null)}},[M,l,c,d,p,k]);const I={placement:A};g!==null&&(I.TransitionProps=g);const E=ak(t),N=b.root??"div",_=Sn({elementType:N,externalSlotProps:y.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:E.root});return a.jsx(N,{..._,children:typeof i=="function"?i(I):i})}),_g=T.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:d=!1,modifiers:u,open:p,placement:h="bottom",popperOptions:y=lk,popperRef:b,style:g,transition:f=!1,slotProps:m={},slots:x={},...w}=t,[S,v]=T.useState(!0),C=()=>{v(!1)},k=()=>{v(!0)};if(!d&&!p&&(!f||S))return null;let A;if(s)A=s;else if(r){const $=Oa(r);A=$&&Aa($)?ut($).body:ut(null).body}const z=!p&&d&&(!f||S)?"none":void 0,M=f?{in:p,onEnter:C,onExited:k}:void 0;return a.jsx(Ci,{disablePortal:c,container:A,children:a.jsx(ck,{anchorEl:r,direction:l,disablePortal:c,modifiers:u,ref:n,open:f?!S:p,placement:h,popperOptions:y,popperRef:b,slotProps:m,slots:x,...w,style:{position:"fixed",top:0,left:0,display:z,...g},TransitionProps:M,children:i})})});process.env.NODE_ENV!=="production"&&(_g.propTypes={anchorEl:rn(o.oneOfType([Vn,o.object,o.func]),e=>{if(e.open){const t=Oa(e.anchorEl);if(t&&Aa(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
166
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||sk(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
167
+ `))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([Vn,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:At,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const dk=X(_g,{name:"MuiPopper",slot:"Root"})({}),ud=T.forwardRef(function(t,n){const r=pi(),i=we({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:u,disablePortal:p,keepMounted:h,modifiers:y,open:b,placement:g,popperOptions:f,popperRef:m,transition:x,slots:w,slotProps:S,...v}=i,C=w?.root??c?.Root,k={anchorEl:s,container:u,disablePortal:p,keepMounted:h,modifiers:y,open:b,placement:g,popperOptions:f,popperRef:m,transition:x,...v};return a.jsx(dk,{as:l,direction:r?"rtl":"ltr",slots:{root:C},slotProps:S??d,...k,ref:n})});process.env.NODE_ENV!=="production"&&(ud.propTypes={anchorEl:o.oneOfType([Vn,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Vn,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:At,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function Ia(e){return parseInt(e,10)||0}const pk={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function uk(e){for(const t in e)return!1;return!0}function $g(e){return uk(e)||e.outerHeightStyle===0&&!e.overflowing}const zg=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:l,value:c,...d}=t,{current:u}=T.useRef(c!=null),p=T.useRef(null),h=ct(n,p),y=T.useRef(null),b=T.useRef(null),g=T.useCallback(()=>{const S=p.current,v=b.current;if(!S||!v)return;const k=jn(S).getComputedStyle(S);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=k.width,v.value=S.value||t.placeholder||"x",v.value.slice(-1)===`
168
+ `&&(v.value+=" ");const A=k.boxSizing,z=Ia(k.paddingBottom)+Ia(k.paddingTop),M=Ia(k.borderBottomWidth)+Ia(k.borderTopWidth),$=v.scrollHeight;v.value="x";const I=v.scrollHeight;let E=$;s&&(E=Math.max(Number(s)*I,E)),i&&(E=Math.min(Number(i)*I,E)),E=Math.max(E,I);const N=E+(A==="border-box"?z+M:0),_=Math.abs(E-$)<=1;return{outerHeightStyle:N,overflowing:_}},[i,s,t.placeholder]),f=Ot(()=>{const S=p.current,v=g();if(!S||!v||$g(v))return!1;const C=v.outerHeightStyle;return y.current!=null&&y.current!==C}),m=T.useCallback(()=>{const S=p.current,v=g();if(!S||!v||$g(v))return;const C=v.outerHeightStyle;y.current!==C&&(y.current=C,S.style.height=`${C}px`),S.style.overflow=v.overflowing?"hidden":""},[g]),x=T.useRef(-1);Yt(()=>{const S=Gh(m),v=p?.current;if(!v)return;const C=jn(v);C.addEventListener("resize",S);let k;return typeof ResizeObserver<"u"&&(k=new ResizeObserver(()=>{f()&&(k.unobserve(v),cancelAnimationFrame(x.current),m(),x.current=requestAnimationFrame(()=>{k.observe(v)}))}),k.observe(v)),()=>{S.clear(),cancelAnimationFrame(x.current),C.removeEventListener("resize",S),k&&k.disconnect()}},[g,m,f]),Yt(()=>{m()});const w=S=>{u||m();const v=S.target,C=v.value.length,k=v.value.endsWith(`
169
+ `),A=v.selectionStart===C;k&&A&&v.setSelectionRange(C,C),r&&r(S)};return a.jsxs(T.Fragment,{children:[a.jsx("textarea",{value:c,onChange:w,ref:h,rows:s,style:l,...d}),a.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...pk.shadow,...l,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(zg.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function nr({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Na=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Na.displayName="FormControlContext");function wn(){return T.useContext(Na)}function Lg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Fa(e,t=!1){return e&&(Lg(e.value)&&e.value!==""||t&&Lg(e.defaultValue)&&e.defaultValue!=="")}function fk(e){return e.startAdornment}function hk(e){return be("MuiInputBase",e)}const co=xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Bg;const Ma=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Z(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Da=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},gk=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:l,formControl:c,fullWidth:d,hiddenLabel:u,multiline:p,readOnly:h,size:y,startAdornment:b,type:g}=e,f={root:["root",`color${Z(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",y&&y!=="medium"&&`size${Z(y)}`,p&&"multiline",b&&"adornedStart",s&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",p&&"inputMultiline",y==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return ve(f,hk,t)},_a=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ma})(ye(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${co.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),$a=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Da})(ye(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${co.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${co.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),jg=KC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Ei=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:l,className:c,color:d,components:u={},componentsProps:p={},defaultValue:h,disabled:y,disableInjectingGlobalStyles:b,endAdornment:g,error:f,fullWidth:m=!1,id:x,inputComponent:w="input",inputProps:S={},inputRef:v,margin:C,maxRows:k,minRows:A,multiline:z=!1,name:M,onBlur:$,onChange:I,onClick:E,onFocus:N,onKeyDown:_,onKeyUp:W,placeholder:F,readOnly:B,renderSuffix:O,rows:V,size:L,slotProps:U={},slots:q={},startAdornment:G,type:J="text",value:K,...Q}=r,se=S.value!=null?S.value:K,{current:ce}=T.useRef(se!=null),de=T.useRef(),ee=T.useCallback(Se=>{process.env.NODE_ENV!=="production"&&Se&&Se.nodeName!=="INPUT"&&!Se.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
170
+ `))},[]),pe=ct(de,v,S.ref,ee),[H,ne]=T.useState(!1),oe=wn();process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(oe)return oe.registerEffect()},[oe]);const ge=nr({props:r,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=oe?oe.focused:H,T.useEffect(()=>{!oe&&y&&H&&(ne(!1),$&&$())},[oe,y,H,$]);const me=oe&&oe.onFilled,ke=oe&&oe.onEmpty,ae=T.useCallback(Se=>{Fa(Se)?me&&me():ke&&ke()},[me,ke]);Yt(()=>{ce&&ae({value:se})},[se,ae,ce]);const te=Se=>{N&&N(Se),S.onFocus&&S.onFocus(Se),oe&&oe.onFocus?oe.onFocus(Se):ne(!0)},Ce=Se=>{$&&$(Se),S.onBlur&&S.onBlur(Se),oe&&oe.onBlur?oe.onBlur(Se):ne(!1)},Oe=(Se,...et)=>{if(!ce){const _e=Se.target||de.current;if(_e==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":pn(1));ae({value:_e.value})}S.onChange&&S.onChange(Se,...et),I&&I(Se,...et)};T.useEffect(()=>{ae(de.current)},[]);const ie=Se=>{de.current&&Se.currentTarget===Se.target&&de.current.focus(),E&&E(Se)};let ze=w,Ae=S;z&&ze==="input"&&(V?(process.env.NODE_ENV!=="production"&&(A||k)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Ae={type:void 0,minRows:V,maxRows:V,...Ae}):Ae={type:void 0,maxRows:k,minRows:A,...Ae},ze=zg);const le=Se=>{ae(Se.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};T.useEffect(()=>{oe&&oe.setAdornedStart(!!G)},[oe,G]);const re={...r,color:ge.color||"primary",disabled:ge.disabled,endAdornment:g,error:ge.error,focused:ge.focused,formControl:oe,fullWidth:m,hiddenLabel:ge.hiddenLabel,multiline:z,size:ge.size,startAdornment:G,type:J},fe=gk(re),Ee=q.root||u.Root||_a,Ie=U.root||p.root||{},Pe=q.input||u.Input||$a;return Ae={...Ae,...U.input??p.input},a.jsxs(T.Fragment,{children:[!b&&typeof jg=="function"&&(Bg||(Bg=a.jsx(jg,{}))),a.jsxs(Ee,{...Ie,ref:n,onClick:ie,...Q,...!er(Ee)&&{ownerState:{...re,...Ie.ownerState}},className:ue(fe.root,Ie.className,c,B&&"MuiInputBase-readOnly"),children:[G,a.jsx(Na.Provider,{value:null,children:a.jsx(Pe,{"aria-invalid":ge.error,"aria-describedby":i,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ge.disabled,id:x,onAnimationStart:le,name:M,placeholder:F,readOnly:B,required:ge.required,rows:V,value:se,onKeyDown:_,onKeyUp:W,type:J,...Ae,...!er(Pe)&&{as:ze,ownerState:{...re,...Ae.ownerState}},ref:pe,className:ue(fe.input,Ae.className,B&&"MuiInputBase-readOnly"),onBlur:Ce,onChange:Oe,onFocus:te})}),g,O?O({...ge,startAdornment:G}):null]})]})});process.env.NODE_ENV!=="production"&&(Ei.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:Qc,inputProps:o.object,inputRef:At,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function mk(e){return be("MuiInput",e)}const Ti={...co,...xe("MuiInput",["root","underline","input"])};function yk(e){return be("MuiOutlinedInput",e)}const Cn={...co,...xe("MuiOutlinedInput",["root","notchedOutline","input"])};function bk(e){return be("MuiFilledInput",e)}const Tr={...co,...xe("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},xk=Je(a.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vk=Je(a.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Sk(e){return be("MuiAvatar",e)}xe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const wk=e=>{const{classes:t,variant:n,colorDefault:r}=e;return ve({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Sk,t)},Ck=X("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(ye(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),Ek=X("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Tk=X(vk,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function kk({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=T.useState(!1);return T.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const c=new Image;return c.onload=()=>{l&&s("loaded")},c.onerror=()=>{l&&s("error")},c.crossOrigin=e,c.referrerPolicy=t,c.src=n,r&&(c.srcset=r),()=>{l=!1}},[e,t,n,r]),i}const kr=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:l,component:c="div",slots:d={},slotProps:u={},imgProps:p,sizes:h,src:y,srcSet:b,variant:g="circular",...f}=r;let m=null;const x={...r,component:c,variant:g},w=kk({...p,...typeof u.img=="function"?u.img(x):u.img,src:y,srcSet:b}),S=y||b,v=S&&w!=="error";x.colorDefault=!v,delete x.ownerState;const C=wk(x),[k,A]=Te("root",{ref:n,className:ue(C.root,l),elementType:Ck,externalForwardedProps:{slots:d,slotProps:u,component:c,...f},ownerState:x}),[z,M]=Te("img",{className:C.img,elementType:Ek,externalForwardedProps:{slots:d,slotProps:{img:{...p,...u.img}}},additionalProps:{alt:i,src:y,srcSet:b,sizes:h},ownerState:x}),[$,I]=Te("fallback",{className:C.fallback,elementType:Tk,externalForwardedProps:{slots:d,slotProps:u},shouldForwardComponentProp:!0,ownerState:x});return v?m=a.jsx(z,{...M}):s||s===0?m=s:S&&i?m=i[0]:m=a.jsx($,{...I}),a.jsx(k,{...A,children:m})});process.env.NODE_ENV!=="production"&&(kr.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function Pk(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Wg(e,t,n,r,i){const s=e[t],l=i||t;if(s==null||typeof window>"u")return null;let c;const d=s.type;return typeof d=="function"&&!Pk(d)&&(c="Did you accidentally use a plain function component for an element instead?"),c!==void 0?new Error(`Invalid ${r} \`${l}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${c} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Pr=rn(o.element,Wg);Pr.isRequired=rn(o.element.isRequired,Wg);const Ok={entering:{opacity:1},entered:{opacity:1}},za=T.forwardRef(function(t,n){const r=yn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:c,easing:d,in:u,onEnter:p,onEntered:h,onEntering:y,onExit:b,onExited:g,onExiting:f,style:m,timeout:x=i,TransitionComponent:w=bn,...S}=t,v=T.useRef(null),C=ct(v,Er(c),n),k=_=>W=>{if(_){const F=v.current;W===void 0?_(F):_(F,W)}},A=k(y),z=k((_,W)=>{ig(_);const F=va({style:m,timeout:x,easing:d},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",F),_.style.transition=r.transitions.create("opacity",F),p&&p(_,W)}),M=k(h),$=k(f),I=k(_=>{const W=va({style:m,timeout:x,easing:d},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",W),_.style.transition=r.transitions.create("opacity",W),b&&b(_)}),E=k(g),N=_=>{s&&s(v.current,_)};return a.jsx(w,{appear:l,in:u,nodeRef:v,onEnter:z,onEntered:M,onEntering:A,onExit:I,onExited:E,onExiting:$,addEndListener:N,timeout:x,...S,children:(_,{ownerState:W,...F})=>T.cloneElement(c,{style:{opacity:0,visibility:_==="exited"&&!u?"hidden":void 0,...Ok[_],...m,...c.props.style},ref:C,...F})})});process.env.NODE_ENV!=="production"&&(za.propTypes={addEndListener:o.func,appear:o.bool,children:Pr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function Ak(e){return be("MuiBackdrop",e)}xe("MuiBackdrop",["root","invisible"]);const Ik=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},Ak,t)},Nk=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),fd=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:l="div",invisible:c=!1,open:d,components:u={},componentsProps:p={},slotProps:h={},slots:y={},TransitionComponent:b,transitionDuration:g,...f}=r,m={...r,component:l,invisible:c},x=Ik(m),w={transition:b,root:u.Root,...y},S={...p,...h},v={component:l,slots:w,slotProps:S},[C,k]=Te("root",{elementType:Nk,externalForwardedProps:v,className:ue(x.root,s),ownerState:m}),[A,z]=Te("transition",{elementType:za,externalForwardedProps:v,ownerState:m});return a.jsx(A,{in:d,timeout:g,...f,...z,children:a.jsx(C,{"aria-hidden":!0,...k,classes:x,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(fd.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const Fk=xe("MuiBox",["root"]),Mk=qh(),P=Lw({themeId:Qo,defaultTheme:Mk,defaultClassName:Fk.root,generateClassName:mh.generate});process.env.NODE_ENV!=="production"&&(P.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Dk(e){return be("MuiButton",e)}const Or=xe("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Vg=T.createContext({});process.env.NODE_ENV!=="production"&&(Vg.displayName="ButtonGroupContext");const Ug=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ug.displayName="ButtonGroupButtonContext");const _k=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:l,loadingPosition:c,classes:d}=e,u={root:["root",l&&"loading",s,`${s}${Z(t)}`,`size${Z(i)}`,`${s}Size${Z(i)}`,`color${Z(t)}`,n&&"disableElevation",r&&"fullWidth",l&&`loadingPosition${Z(c)}`],startIcon:["icon","startIcon",`iconSize${Z(i)}`],endIcon:["icon","endIcon",`iconSize${Z(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},p=ve(u,Dk,d);return{...d,...p}},Hg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],$k=X(gi,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Z(n.color)}`],t[`size${Z(n.size)}`],t[`${n.variant}Size${Z(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(ye(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Or.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Or.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Or.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Or.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(it()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Or.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Or.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Or.loading}`]:{color:"transparent"}}}]}})),zk=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Hg]})),Lk=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Z(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Hg]})),Bk=X("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Rg=X("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Re=T.forwardRef(function(t,n){const r=T.useContext(Vg),i=T.useContext(Ug),s=ci(r,t),l=we({props:s,name:"MuiButton"}),{children:c,color:d="primary",component:u="button",className:p,disabled:h=!1,disableElevation:y=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:x,loading:w=null,loadingIndicator:S,loadingPosition:v="center",size:C="medium",startIcon:k,type:A,variant:z="text",...M}=l,$=mr(x),I=S??a.jsx(Ca,{"aria-labelledby":$,color:"inherit",size:16}),E={...l,color:d,component:u,disabled:h,disableElevation:y,disableFocusRipple:b,fullWidth:m,loading:w,loadingIndicator:I,loadingPosition:v,size:C,type:A,variant:z},N=_k(E),_=(k||w&&v==="start")&&a.jsx(zk,{className:N.startIcon,ownerState:E,children:k||a.jsx(Rg,{className:N.loadingIconPlaceholder,ownerState:E})}),W=(g||w&&v==="end")&&a.jsx(Lk,{className:N.endIcon,ownerState:E,children:g||a.jsx(Rg,{className:N.loadingIconPlaceholder,ownerState:E})}),F=i||"",B=typeof w=="boolean"?a.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:w&&a.jsx(Bk,{className:N.loadingIndicator,ownerState:E,children:I})}):null;return a.jsxs($k,{ownerState:E,className:ue(r.className,N.root,p,F),component:u,disabled:h||w,focusRipple:!b,focusVisibleClassName:ue(N.focusVisible,f),ref:n,type:A,id:w?$:x,...M,classes:N,children:[_,v!=="end"&&B,c,v==="end"&&B,W]})});process.env.NODE_ENV!=="production"&&(Re.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function jk(e){return be("MuiCard",e)}xe("MuiCard",["root"]);const Wk=e=>{const{classes:t}=e;return ve({root:["root"]},jk,t)},Vk=X(on,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Hn=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...l}=r,c={...r,raised:s},d=Wk(c);return a.jsx(Vk,{className:ue(d.root,i),elevation:s?8:void 0,ref:n,ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(Hn.propTypes={children:o.node,classes:o.object,className:o.string,raised:rn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Uk(e){return be("MuiCardContent",e)}xe("MuiCardContent",["root"]);const Hk=e=>{const{classes:t}=e;return ve({root:["root"]},Uk,t)},Rk=X("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),qg=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...l}=r,c={...r,component:s},d=Hk(c);return a.jsx(Rk,{as:s,className:ue(d.root,i),ownerState:c,ref:n,...l})});process.env.NODE_ENV!=="production"&&(qg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function qk(e){return be("PrivateSwitchBase",e)}xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Yk=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${Z(i)}`],input:["input"]};return ve(s,qk,t)},Gk=X(gi,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),Kk=X("input",{name:"MuiSwitchBase",shouldForwardProp:Tt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),La=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:u=!1,icon:p,id:h,inputProps:y,inputRef:b,name:g,onBlur:f,onChange:m,onFocus:x,readOnly:w,required:S=!1,tabIndex:v,type:C,value:k,slots:A={},slotProps:z={},...M}=t,[$,I]=to({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),E=wn(),N=K=>{x&&x(K),E&&E.onFocus&&E.onFocus(K)},_=K=>{f&&f(K),E&&E.onBlur&&E.onBlur(K)},W=K=>{if(K.nativeEvent.defaultPrevented)return;const Q=K.target.checked;I(Q),m&&m(K,Q)};let F=c;E&&typeof F>"u"&&(F=E.disabled);const B=C==="checkbox"||C==="radio",O={...t,checked:$,disabled:F,disableFocusRipple:d,edge:u},V=Yk(O),L={slots:A,slotProps:{input:y,...z}},[U,q]=Te("root",{ref:n,elementType:Gk,className:V.root,shouldForwardComponentProp:!0,externalForwardedProps:{...L,component:"span",...M},getSlotProps:K=>({...K,onFocus:Q=>{K.onFocus?.(Q),N(Q)},onBlur:Q=>{K.onBlur?.(Q),_(Q)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!d,disabled:F,role:void 0,tabIndex:null}}),[G,J]=Te("input",{ref:b,elementType:Kk,className:V.input,externalForwardedProps:L,getSlotProps:K=>({...K,onChange:Q=>{K.onChange?.(Q),W(Q)}}),ownerState:O,additionalProps:{autoFocus:r,checked:i,defaultChecked:l,disabled:F,id:B?h:void 0,name:g,readOnly:w,required:S,tabIndex:v,type:C,...C==="checkbox"&&k===void 0?{}:{value:k}}});return a.jsxs(U,{...q,children:[a.jsx(G,{...J}),$?s:p]})});process.env.NODE_ENV!=="production"&&(La.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:At,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const Xk=Je(a.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jk=Je(a.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Qk=Je(a.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Zk(e){return be("MuiCheckbox",e)}const hd=xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),eP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${Z(r)}`,`size${Z(i)}`]},l=ve(s,Zk,t);return{...t,...l}},tP=X(La,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Z(n.size)}`],n.color!=="default"&&t[`color${Z(n.color)}`]]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{[`&.${hd.checked}, &.${hd.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${hd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),nP=a.jsx(Jk,{}),rP=a.jsx(Xk,{}),oP=a.jsx(Qk,{}),ht=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiCheckbox"}),{checkedIcon:i=nP,color:s="primary",icon:l=rP,indeterminate:c=!1,indeterminateIcon:d=oP,inputProps:u,size:p="medium",disableRipple:h=!1,className:y,slots:b={},slotProps:g={},...f}=r,m=c?d:l,x=c?d:i,w={...r,disableRipple:h,color:s,indeterminate:c,size:p},S=eP(w),v=g.input??u,[C,k]=Te("root",{ref:n,elementType:tP,className:ue(S.root,y),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:T.cloneElement(m,{fontSize:m.props.fontSize??p}),checkedIcon:T.cloneElement(x,{fontSize:x.props.fontSize??p}),disableRipple:h,slots:b,slotProps:{input:Xh(typeof v=="function"?v(w):v,{"data-indeterminate":c})}}});return a.jsx(C,{...k,classes:S})});process.env.NODE_ENV!=="production"&&(ht.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function Yg(e){return e.substring(2).toLowerCase()}function iP(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Ba(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,l=T.useRef(!1),c=T.useRef(null),d=T.useRef(!1),u=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{d.current=!0},0),()=>{d.current=!1}),[]);const p=ct(Er(t),c),h=Ot(g=>{const f=u.current;u.current=!1;const m=ut(c.current);if(!d.current||!c.current||"clientX"in g&&iP(g,m))return;if(l.current){l.current=!1;return}let x;g.composedPath?x=g.composedPath().includes(c.current):x=!m.documentElement.contains(g.target)||c.current.contains(g.target),!x&&(n||!f)&&i(g)}),y=g=>f=>{u.current=!0;const m=t.props[g];m&&m(f)},b={ref:p};return s!==!1&&(b[s]=y(s)),T.useEffect(()=>{if(s!==!1){const g=Yg(s),f=ut(c.current),m=()=>{l.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(b[r]=y(r)),T.useEffect(()=>{if(r!==!1){const g=Yg(r),f=ut(c.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),T.cloneElement(t,b)}process.env.NODE_ENV!=="production"&&(Ba.propTypes={children:Pr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(Ba.propTypes=zc(Ba.propTypes));const Ar=mC({createStyledComponent:X("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Z(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>we({props:e,name:"MuiContainer"})});process.env.NODE_ENV!=="production"&&(Ar.propTypes={children:o.node,classes:o.object,component:o.elementType,disableGutters:o.bool,fixed:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Gg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function sP(e){const t=ut(e);return t.body===e?jn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ki(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Kg(e){return parseInt(jn(e).getComputedStyle(e).paddingRight,10)||0}function aP(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Xg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,l=>{const c=!s.includes(l),d=!aP(l);c&&d&&ki(l,i)})}function gd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function lP(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(sP(r)){const l=Gg(jn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Kg(r)+l}px`;const c=ut(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Kg(d)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=ut(r).body;else{const l=r.parentElement,c=jn(r);s=l?.nodeName==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:c})=>{s?l.style.setProperty(c,s):l.style.removeProperty(c)})}}function cP(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class dP{constructor(){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&&ki(t.modalRef,!1);const i=cP(n);Xg(n,t.mount,t.modalRef,i,!0);const s=gd(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=gd(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=lP(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=gd(this.containers,l=>l.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&ki(t.modalRef,n),Xg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&ki(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Pi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const pP=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function uP(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 fP(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 hP(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||fP(e))}function gP(e){const t=[],n=[];return Array.from(e.querySelectorAll(pP)).forEach((r,i)=>{const s=uP(r);s===-1||!hP(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function mP(){return!0}function ja(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=gP,isEnabled:l=mP,open:c}=e,d=T.useRef(!1),u=T.useRef(null),p=T.useRef(null),h=T.useRef(null),y=T.useRef(null),b=T.useRef(!1),g=T.useRef(null),f=ct(Er(t),g),m=T.useRef(null);T.useEffect(()=>{!c||!g.current||(b.current=!n)},[n,c]),T.useEffect(()=>{if(!c||!g.current)return;const S=ut(g.current),v=Pi(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
171
+ `)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(d.current=!0,h.current.focus()),h.current=null)}},[c]),T.useEffect(()=>{if(!c||!g.current)return;const S=ut(g.current),v=Pi(S),C=z=>{m.current=z,!(r||!l()||z.key!=="Tab")&&v===g.current&&z.shiftKey&&(d.current=!0,p.current&&p.current.focus())},k=()=>{const z=g.current;if(z===null)return;const M=Pi(S);if(!S.hasFocus()||!l()||d.current){d.current=!1;return}if(z.contains(M)||r&&M!==u.current&&M!==p.current)return;if(M!==y.current)y.current=null;else if(y.current!==null)return;if(!b.current)return;let $=[];if((M===u.current||M===p.current)&&($=s(g.current)),$.length>0){const I=!!(m.current?.shiftKey&&m.current?.key==="Tab"),E=$[0],N=$[$.length-1];typeof E!="string"&&typeof N!="string"&&(I?N.focus():E.focus())}else z.focus()};S.addEventListener("focusin",k),S.addEventListener("keydown",C,!0);const A=setInterval(()=>{const z=Pi(S);z&&z.tagName==="BODY"&&k()},50);return()=>{clearInterval(A),S.removeEventListener("focusin",k),S.removeEventListener("keydown",C,!0)}},[n,r,i,l,c,s]);const x=S=>{h.current===null&&(h.current=S.relatedTarget),b.current=!0,y.current=S.target;const v=t.props.onFocus;v&&v(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),b.current=!0};return a.jsxs(T.Fragment,{children:[a.jsx("div",{tabIndex:c?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:f,onFocus:x}),a.jsx("div",{tabIndex:c?0:-1,onFocus:w,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(ja.propTypes={children:Pr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(ja.propTypes=zc(ja.propTypes));function yP(e){return typeof e=="function"?e():e}function bP(e){return e?e.props.hasOwnProperty("in"):!1}const Jg=()=>{},Wa=new dP;function xP(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:u,rootRef:p}=e,h=T.useRef({}),y=T.useRef(null),b=T.useRef(null),g=ct(b,p),[f,m]=T.useState(!u),x=bP(c);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>ut(y.current),v=()=>(h.current.modalRef=b.current,h.current.mount=y.current,h.current),C=()=>{Wa.mount(v(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},k=Ot(()=>{const W=yP(t)||S().body;Wa.add(v(),W),b.current&&C()}),A=()=>Wa.isTopModal(v()),z=Ot(W=>{y.current=W,W&&(u&&A()?C():b.current&&ki(b.current,w))}),M=T.useCallback(()=>{Wa.remove(v(),w)},[w]);T.useEffect(()=>()=>{M()},[M]),T.useEffect(()=>{u?k():(!x||!i)&&M()},[u,M,x,i,k]);const $=W=>F=>{W.onKeyDown?.(F),!(F.key!=="Escape"||F.which===229||!A())&&(n||(F.stopPropagation(),d&&d(F,"escapeKeyDown")))},I=W=>F=>{W.onClick?.(F),F.target===F.currentTarget&&d&&d(F,"backdropClick")};return{getRootProps:(W={})=>{const F=Sr(e);delete F.onTransitionEnter,delete F.onTransitionExited;const B={...F,...W};return{role:"presentation",...B,onKeyDown:$(B),ref:g}},getBackdropProps:(W={})=>{const F=W;return{"aria-hidden":!0,...F,onClick:I(F),open:u}},getTransitionProps:()=>{const W=()=>{m(!1),s&&s()},F=()=>{m(!0),l&&l(),i&&M()};return{onEnter:qc(W,c?.props.onEnter??Jg),onExited:qc(F,c?.props.onExited??Jg)}},rootRef:g,portalRef:z,isTopModal:A,exited:f,hasTransition:x}}function vP(e){return be("MuiModal",e)}xe("MuiModal",["root","hidden","backdrop"]);const SP=e=>{const{open:t,exited:n,classes:r}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vP,r)},wP=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ye(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),CP=X(fd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),po=T.forwardRef(function(t,n){const r=we({name:"MuiModal",props:t}),{BackdropComponent:i=CP,BackdropProps:s,classes:l,className:c,closeAfterTransition:d=!1,children:u,container:p,component:h,components:y={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:C=!1,onClose:k,onTransitionEnter:A,onTransitionExited:z,open:M,slotProps:$={},slots:I={},theme:E,...N}=r,_={...r,closeAfterTransition:d,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:x,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:v,keepMounted:C},{getRootProps:W,getBackdropProps:F,getTransitionProps:B,portalRef:O,isTopModal:V,exited:L,hasTransition:U}=xP({..._,rootRef:n}),q={..._,exited:L},G=SP(q),J={};if(u.props.tabIndex===void 0&&(J.tabIndex="-1"),U){const{onEnter:ee,onExited:pe}=B();J.onEnter=ee,J.onExited=pe}const K={slots:{root:y.Root,backdrop:y.Backdrop,...I},slotProps:{...b,...$}},[Q,se]=Te("root",{ref:n,elementType:wP,externalForwardedProps:{...K,...N,component:h},getSlotProps:W,ownerState:q,className:ue(c,G?.root,!q.open&&q.exited&&G?.hidden)}),[ce,de]=Te("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ee=>F({...ee,onClick:pe=>{ee?.onClick&&ee.onClick(pe)}}),className:ue(s?.className,G?.backdrop),ownerState:q});return!C&&!M&&(!U||L)?null:a.jsx(Ci,{ref:O,container:p,disablePortal:x,children:a.jsxs(Q,{...se,children:[!v&&i?a.jsx(ce,{...de}):null,a.jsx(ja,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:V,open:M,children:T.cloneElement(u,J)})]})})});process.env.NODE_ENV!=="production"&&(po.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Pr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([Vn,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function EP(e){return be("MuiDialog",e)}const md=xe("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),yd=T.createContext({});process.env.NODE_ENV!=="production"&&(yd.displayName="DialogContext");const TP=X(fd,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),kP=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${Z(n)}`],paper:["paper",`paperScroll${Z(n)}`,`paperWidth${Z(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return ve(l,EP,t)},PP=X(po,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),OP=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Z(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),AP=X(on,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Z(n.scroll)}`],t[`paperWidth${Z(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ye(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${md.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${md.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${md.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),uo=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialog"}),i=yn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":c,"aria-modal":d=!0,BackdropComponent:u,BackdropProps:p,children:h,className:y,disableEscapeKeyDown:b=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:x,onClose:w,open:S,PaperComponent:v=on,PaperProps:C={},scroll:k="paper",slots:A={},slotProps:z={},TransitionComponent:M=za,transitionDuration:$=s,TransitionProps:I,...E}=r,N={...r,disableEscapeKeyDown:b,fullScreen:g,fullWidth:f,maxWidth:m,scroll:k},_=kP(N),W=T.useRef(),F=ne=>{W.current=ne.target===ne.currentTarget},B=ne=>{x&&x(ne),W.current&&(W.current=null,w&&w(ne,"backdropClick"))},O=mr(c),V=T.useMemo(()=>({titleId:O}),[O]),L={transition:M,...A},U={transition:I,paper:C,backdrop:p,...z},q={slots:L,slotProps:U},[G,J]=Te("root",{elementType:PP,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:ue(_.root,y),ref:n}),[K,Q]=Te("backdrop",{elementType:TP,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N}),[se,ce]=Te("paper",{elementType:AP,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:N,className:ue(_.paper,C.className)}),[de,ee]=Te("container",{elementType:OP,externalForwardedProps:q,ownerState:N,className:_.container}),[pe,H]=Te("transition",{elementType:za,externalForwardedProps:q,ownerState:N,additionalProps:{appear:!0,in:S,timeout:$,role:"presentation"}});return a.jsx(G,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:$,as:u,...Q}},disableEscapeKeyDown:b,onClose:w,open:S,onClick:B,...J,...E,children:a.jsx(pe,{...H,children:a.jsx(de,{onMouseDown:F,...ee,children:a.jsx(se,{as:v,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":O,"aria-modal":d,...ce,children:a.jsx(yd.Provider,{value:V,children:h})})})})})});process.env.NODE_ENV!=="production"&&(uo.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function IP(e){return be("MuiDialogActions",e)}xe("MuiDialogActions",["root","spacing"]);const NP=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},IP,t)},FP=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),bd=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...l}=r,c={...r,disableSpacing:s},d=NP(c);return a.jsx(FP,{className:ue(d.root,i),ownerState:c,ref:n,...l})});process.env.NODE_ENV!=="production"&&(bd.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function MP(e){return be("MuiDialogContent",e)}xe("MuiDialogContent",["root","dividers"]);function DP(e){return be("MuiDialogTitle",e)}const _P=xe("MuiDialogTitle",["root"]),$P=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},MP,t)},zP=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ye(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${_P.root} + &`]:{paddingTop:0}}}]}))),Oi=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...l}=r,c={...r,dividers:s},d=$P(c);return a.jsx(zP,{className:ue(d.root,i),ownerState:c,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Oi.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const LP=e=>{const{classes:t}=e;return ve({root:["root"]},DP,t)},BP=X(D,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),fo=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...l}=r,c=r,d=LP(c),{titleId:u=s}=T.useContext(yd);return a.jsx(BP,{component:"h2",className:ue(d.root,i),ownerState:c,ref:n,variant:"h6",id:s??u,...l})});process.env.NODE_ENV!=="production"&&(fo.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function jP(e){return be("MuiDivider",e)}const Qg=xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),WP=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:l,textAlign:c,variant:d}=e;return ve({root:["root",t&&"absolute",d,s&&"light",l==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},jP,r)},VP=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ye(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),UP=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ye(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ut=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:l,orientation:c="horizontal",component:d=s||c==="vertical"?"div":"hr",flexItem:u=!1,light:p=!1,role:h=d!=="hr"?"separator":void 0,textAlign:y="center",variant:b="fullWidth",...g}=r,f={...r,absolute:i,component:d,flexItem:u,light:p,orientation:c,role:h,textAlign:y,variant:b},m=WP(f);return a.jsx(VP,{as:d,className:ue(m.root,l),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...g,children:s?a.jsx(UP,{className:m.wrapper,ownerState:f,children:s}):null})});Ut&&(Ut.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Ut.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const HP=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:l,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${Z(s)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},u=ve(d,bk,t);return{...t,...u}},RP=X(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(ye(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Tr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Tr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Tr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Tr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Tr.disabled}, .${Tr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Tr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(it()).map(([l])=>({props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[l]?.main}`}}})),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),qP=X($a,{name:"MuiFilledInput",slot:"Input",overridesResolver:Da})(ye(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Va=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:u="input",multiline:p=!1,slotProps:h,slots:y={},type:b="text",...g}=r,f={...r,disableUnderline:i,fullWidth:c,inputComponent:u,multiline:p,type:b},m=HP(r),x={root:{ownerState:f},input:{ownerState:f}},w=h??l?Et(x,h??l):x,S=y.root??s.Root??RP,v=y.input??s.Input??qP;return a.jsx(Ei,{slots:{root:S,input:v},slotProps:w,fullWidth:c,inputComponent:u,multiline:p,ref:n,type:b,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Va.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:At,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Va.muiName="Input";function YP(e){return be("MuiFormControl",e)}xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const GP=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Z(n)}`,r&&"fullWidth"]};return ve(i,YP,t)},KP=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Z(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ua=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControl"}),{children:i,className:s,color:l="primary",component:c="div",disabled:d=!1,error:u=!1,focused:p,fullWidth:h=!1,hiddenLabel:y=!1,margin:b="none",required:g=!1,size:f="medium",variant:m="outlined",...x}=r,w={...r,color:l,component:c,disabled:d,error:u,fullWidth:h,hiddenLabel:y,margin:b,required:g,size:f,variant:m},S=GP(w),[v,C]=T.useState(()=>{let F=!1;return i&&T.Children.forEach(i,B=>{if(!Bc(B,["Input","Select"]))return;const O=Bc(B,["Select"])?B.props.input:B;O&&fk(O.props)&&(F=!0)}),F}),[k,A]=T.useState(()=>{let F=!1;return i&&T.Children.forEach(i,B=>{Bc(B,["Input","Select"])&&(Fa(B.props,!0)||Fa(B.props.inputProps,!0))&&(F=!0)}),F}),[z,M]=T.useState(!1);d&&z&&M(!1);const $=p!==void 0&&!d?p:z;let I;const E=T.useRef(!1);process.env.NODE_ENV!=="production"&&(I=()=>(E.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
172
+ `)),E.current=!0,()=>{E.current=!1}));const N=T.useCallback(()=>{A(!0)},[]),_=T.useCallback(()=>{A(!1)},[]),W=T.useMemo(()=>({adornedStart:v,setAdornedStart:C,color:l,disabled:d,error:u,filled:k,focused:$,fullWidth:h,hiddenLabel:y,size:f,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:_,onFilled:N,registerEffect:I,required:g,variant:m}),[v,l,d,u,k,$,h,y,I,_,N,g,f,m]);return a.jsx(Na.Provider,{value:W,children:a.jsx(KP,{as:c,ownerState:w,className:ue(S.root,s),ref:n,...x,children:i})})});process.env.NODE_ENV!=="production"&&(Ua.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function XP(e){return be("MuiFormControlLabel",e)}const Ai=xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JP=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,l={root:["root",n&&"disabled",`labelPlacement${Z(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return ve(l,XP,t)},QP=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ai.label}`]:t.label},t.root,t[`labelPlacement${Z(n.labelPlacement)}`]]}})(ye(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ai.disabled}`]:{cursor:"default"},[`& .${Ai.label}`]:{[`&.${Ai.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),ZP=X("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(ye(({theme:e})=>({[`&.${Ai.error}`]:{color:(e.vars||e).palette.error.main}}))),En=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:l={},control:c,disabled:d,disableTypography:u,inputRef:p,label:h,labelPlacement:y="end",name:b,onChange:g,required:f,slots:m={},slotProps:x={},value:w,...S}=r,v=wn(),C=d??c.props.disabled??v?.disabled,k=f??c.props.required,A={disabled:C,required:k};["checked","name","onChange","value","inputRef"].forEach(W=>{typeof c.props[W]>"u"&&typeof r[W]<"u"&&(A[W]=r[W])});const z=nr({props:r,muiFormControl:v,states:["error"]}),M={...r,disabled:C,labelPlacement:y,required:k,error:z.error},$=JP(M),I={slots:m,slotProps:{...l,...x}},[E,N]=Te("typography",{elementType:D,externalForwardedProps:I,ownerState:M});let _=h;return _!=null&&_.type!==D&&!u&&(_=a.jsx(E,{component:"span",...N,className:ue($.label,N?.className),children:_})),a.jsxs(QP,{className:ue($.root,s),ownerState:M,ref:n,...S,children:[T.cloneElement(c,A),k?a.jsxs("div",{children:[_,a.jsxs(ZP,{ownerState:M,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(En.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:At,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function eO(e){return be("MuiFormGroup",e)}xe("MuiFormGroup",["root","row","error"]);const tO=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},eO,t)},nO=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),Zg=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...l}=r,c=wn(),d=nr({props:r,muiFormControl:c,states:["error"]}),u={...r,row:s,error:d.error},p=tO(u);return a.jsx(nO,{className:ue(p.root,i),ownerState:u,ref:n,...l})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rO(e){return be("MuiFormHelperText",e)}const em=xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var tm;const oO=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:l,focused:c,required:d}=e,u={root:["root",i&&"disabled",s&&"error",r&&`size${Z(r)}`,n&&"contained",c&&"focused",l&&"filled",d&&"required"]};return ve(u,rO,t)},iO=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Z(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${em.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${em.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),nm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:l="p",disabled:c,error:d,filled:u,focused:p,margin:h,required:y,variant:b,...g}=r,f=wn(),m=nr({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:l,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete x.ownerState;const w=oO(x);return a.jsx(iO,{as:l,className:ue(w.root,s),ref:n,...g,ownerState:x,children:i===" "?tm||(tm=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});process.env.NODE_ENV!=="production"&&(nm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function sO(e){return be("MuiFormLabel",e)}const Ii=xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),aO=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:l,required:c}=e,d={root:["root",`color${Z(n)}`,i&&"disabled",s&&"error",l&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",s&&"error"]};return ve(d,sO,t)},lO=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{[`&.${Ii.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Ii.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ii.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),cO=X("span",{name:"MuiFormLabel",slot:"Asterisk"})(ye(({theme:e})=>({[`&.${Ii.error}`]:{color:(e.vars||e).palette.error.main}}))),Ni=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:l,component:c="label",disabled:d,error:u,filled:p,focused:h,required:y,...b}=r,g=wn(),f=nr({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:c,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},x=aO(m);return a.jsxs(lO,{as:c,ownerState:m,className:ue(x.root,s),ref:n,...b,children:[i,f.required&&a.jsxs(cO,{ownerState:m,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Ni.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xd(e){return`scale(${e}, ${e**2})`}const dO={entering:{opacity:1,transform:xd(1)},entered:{opacity:1,transform:"none"}},vd=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ho=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:l,in:c,onEnter:d,onEntered:u,onEntering:p,onExit:h,onExited:y,onExiting:b,style:g,timeout:f="auto",TransitionComponent:m=bn,...x}=t,w=vr(),S=T.useRef(),v=yn(),C=T.useRef(null),k=ct(C,Er(s),n),A=W=>F=>{if(W){const B=C.current;F===void 0?W(B):W(B,F)}},z=A(p),M=A((W,F)=>{ig(W);const{duration:B,delay:O,easing:V}=va({style:g,timeout:f,easing:l},{mode:"enter"});let L;f==="auto"?(L=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=L):L=B,W.style.transition=[v.transitions.create("opacity",{duration:L,delay:O}),v.transitions.create("transform",{duration:vd?L:L*.666,delay:O,easing:V})].join(","),d&&d(W,F)}),$=A(u),I=A(b),E=A(W=>{const{duration:F,delay:B,easing:O}=va({style:g,timeout:f,easing:l},{mode:"exit"});let V;f==="auto"?(V=v.transitions.getAutoHeightDuration(W.clientHeight),S.current=V):V=F,W.style.transition=[v.transitions.create("opacity",{duration:V,delay:B}),v.transitions.create("transform",{duration:vd?V:V*.666,delay:vd?B:B||V*.333,easing:O})].join(","),W.style.opacity=0,W.style.transform=xd(.75),h&&h(W)}),N=A(y),_=W=>{f==="auto"&&w.start(S.current||0,W),r&&r(C.current,W)};return a.jsx(m,{appear:i,in:c,nodeRef:C,onEnter:M,onEntered:$,onEntering:z,onExit:E,onExited:N,onExiting:I,addEndListener:_,timeout:f==="auto"?null:f,...x,children:(W,{ownerState:F,...B})=>T.cloneElement(s,{style:{opacity:0,transform:xd(.75),visibility:W==="exited"&&!c?"hidden":void 0,...dO[W],...g,...s.props.style},ref:k,...B})})});process.env.NODE_ENV!=="production"&&(ho.propTypes={addEndListener:o.func,appear:o.bool,children:Pr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),ho&&(ho.muiSupportAuto=!0);const pO=e=>{const{classes:t,disableUnderline:n}=e,i=ve({root:["root",!n&&"underline"],input:["input"]},mk,t);return{...t,...i}},uO=X(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ma(e,t),!n.disableUnderline&&t.underline]}})(ye(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ti.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ti.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ti.disabled}, .${Ti.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ti.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(it()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),fO=X($a,{name:"MuiInput",slot:"Input",overridesResolver:Da})({}),Ha=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:u=!1,slotProps:p,slots:h={},type:y="text",...b}=r,g=pO(r),m={root:{ownerState:{disableUnderline:i}}},x=p??l?Et(p??l,m):m,w=h.root??s.Root??uO,S=h.input??s.Input??fO;return a.jsx(Ei,{slots:{root:w,input:S},slotProps:x,fullWidth:c,inputComponent:d,multiline:u,ref:n,type:y,...b,classes:g})});process.env.NODE_ENV!=="production"&&(Ha.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:At,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ha.muiName="Input";function hO(e){return be("MuiInputLabel",e)}xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const gO=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:l,required:c}=e,d={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Z(r)}`,l],asterisk:[c&&"asterisk"]},u=ve(d,hO,t);return{...t,...u}},mO=X(Ni,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ii.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ye(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),rm=T.forwardRef(function(t,n){const r=we({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:l,variant:c,className:d,...u}=r,p=wn();let h=l;typeof h>"u"&&p&&(h=p.filled||p.focused||p.adornedStart);const y=nr({props:r,muiFormControl:p,states:["size","variant","required","focused"]}),b={...r,disableAnimation:i,formControl:p,shrink:h,size:y.size,variant:y.variant,required:y.required,focused:y.focused},g=gO(b);return a.jsx(mO,{"data-shrink":h,ref:n,className:ue(g.root,d),...u,ownerState:b,classes:g})});process.env.NODE_ENV!=="production"&&(rm.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function yO(e){return be("MuiLinearProgress",e)}xe("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Sd=4,wd=Xn`
173
173
  0% {
174
174
  left: -35%;
175
175
  right: 100%;
@@ -184,9 +184,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
184
184
  left: 100%;
185
185
  right: -90%;
186
186
  }
187
- `,fk=typeof hd!="string"?Kr`
188
- animation: ${hd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
189
- `:null,gd=Gn`
187
+ `,bO=typeof wd!="string"?Qr`
188
+ animation: ${wd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
189
+ `:null,Cd=Xn`
190
190
  0% {
191
191
  left: -200%;
192
192
  right: 100%;
@@ -201,9 +201,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
201
201
  left: 107%;
202
202
  right: -8%;
203
203
  }
204
- `,hk=typeof gd!="string"?Kr`
205
- animation: ${gd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
206
- `:null,md=Gn`
204
+ `,xO=typeof Cd!="string"?Qr`
205
+ animation: ${Cd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
206
+ `:null,Ed=Xn`
207
207
  0% {
208
208
  opacity: 1;
209
209
  background-position: 0 -23px;
@@ -218,23 +218,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
218
218
  opacity: 1;
219
219
  background-position: -200px -23px;
220
220
  }
221
- `,gk=typeof md!="string"?Kr`
222
- animation: ${md} 3s infinite linear;
223
- `:null,mk=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Z(r)}`,n],dashed:["dashed",`dashedColor${Z(r)}`],bar1:["bar","bar1",`barColor${Z(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Z(r)}`,n==="buffer"&&`color${Z(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return xe(i,pk,t)},yd=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),yk=X("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],t[n.variant]]}})(me(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:yd(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),bk=X("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Z(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>{const n=yd(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),gk||{animation:`${md} 3s infinite linear`}),xk=X("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${fd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${fd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:fk||{animation:`${hd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),vk=X("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(me(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:yd(e,t),transition:`transform .${fd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:hk||{animation:`${gd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),Qg=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:d="indeterminate",...p}=r,u={...r,color:s,variant:d},h=mk(u),x=li(),b={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(a!==void 0){b["aria-valuenow"]=Math.round(a),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let f=a-100;x&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(l!==void 0){let f=(l||0)-100;x&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return c.jsxs(yk,{className:ue(h.root,i),ownerState:u,role:"progressbar",...b,ref:n,...p,children:[d==="buffer"?c.jsx(bk,{className:h.dashed,ownerState:u}):null,c.jsx(xk,{className:h.bar1,ownerState:u,style:g.bar1}),d==="determinate"?null:c.jsx(vk,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(Qg.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Ai=T.createContext({});process.env.NODE_ENV!=="production"&&(Ai.displayName="ListContext");function Sk(e){return ye("MuiList",e)}be("MuiList",["root","padding","dense","subheader"]);const wk=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return xe({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Sk,t)},Ck=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Zg=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:d=!1,subheader:p,...u}=r,h=T.useMemo(()=>({dense:l}),[l]),x={...r,component:a,dense:l,disablePadding:d},b=wk(x);return c.jsx(Ai.Provider,{value:h,children:c.jsxs(Ck,{as:a,className:ue(b.root,s),ref:n,ownerState:x,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const em=be("MuiListItemIcon",["root","alignItemsFlexStart"]);function Ek(e){return ye("MuiListItemText",e)}const po=be("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Tk=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return xe({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Ek,t)},Pk=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${po.primary}`]:t.primary},{[`& .${po.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${cg.root}:where(& .${po.primary})`]:{display:"block"},[`.${cg.root}:where(& .${po.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),bd=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:d,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:x={},slotProps:b={},...g}=r,{dense:f}=T.useContext(Ai);let m=d??i,y=u;const w={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!y,dense:f},S=Tk(w),v={slots:x,slotProps:{primary:p,secondary:h,...b}},[C,P]=Ee("root",{className:ue(S.root,s),elementType:Pk,externalForwardedProps:{...v,...g},ownerState:w,ref:n}),[O,D]=Ee("primary",{className:S.primary,elementType:W,externalForwardedProps:v,ownerState:w}),[N,I]=Ee("secondary",{className:S.secondary,elementType:W,externalForwardedProps:v,ownerState:w});return m!=null&&m.type!==W&&!a&&(m=c.jsx(O,{variant:f?"body2":"body1",component:D?.variant?void 0:"span",...D,children:m})),y!=null&&y.type!==W&&!a&&(y=c.jsx(N,{variant:"body2",color:"textSecondary",...I,children:y})),c.jsxs(C,{...P,children:[m,y]})});process.env.NODE_ENV!=="production"&&(bd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function xd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function tm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function nm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ii(e,t,n,r,i,s){let a=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const d=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!nm(l,s)||d)l=i(e,l,n);else return l.focus(),!0}return!1}const rm=T.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:d=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...x}=t,b=T.useRef(null),g=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ht(()=>{i&&b.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:v})=>{const C=!b.current.style.width;if(S.clientHeight<b.current.clientHeight&&C){const P=`${Rg(Ln(S))}px`;b.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=P,b.current.style.width=`calc(100% + ${P})`}return b.current}}),[]);const f=S=>{const v=b.current,C=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const O=Ei(dt(v));if(C==="ArrowDown")S.preventDefault(),Ii(v,O,p,d,xd);else if(C==="ArrowUp")S.preventDefault(),Ii(v,O,p,d,tm);else if(C==="Home")S.preventDefault(),Ii(v,null,p,d,xd);else if(C==="End")S.preventDefault(),Ii(v,null,p,d,tm);else if(C.length===1){const D=g.current,N=C.toLowerCase(),I=performance.now();D.keys.length>0&&(I-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&N!==D.keys[0]&&(D.repeating=!1)),D.lastTime=I,D.keys.push(N);const F=O&&!D.repeating&&nm(O,D);D.previousKeyMatched&&(F||Ii(v,O,!1,d,xd,D))?S.preventDefault():D.previousKeyMatched=!1}u&&u(S)},m=lt(b,n);let y=-1;T.Children.forEach(a,(S,v)=>{if(!T.isValidElement(S)){y===v&&(y+=1,y>=a.length&&(y=-1));return}process.env.NODE_ENV!=="production"&&jc.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
- `)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||y===-1)&&(y=v),y===v&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const w=T.Children.map(a,(S,v)=>{if(v===y){const C={};return s&&(C.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(S,C)}return S});return c.jsx(Zg,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:i?0:-1,...x,children:w})});process.env.NODE_ENV!=="production"&&(rm.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function Ok(e){return ye("MuiPopover",e)}be("MuiPopover",["root","paper"]);function om(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function im(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function sm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ni(e){return typeof e=="function"?e():e}const kk=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"]},Ok,t)},Ak=X(ao,{name:"MuiPopover",slot:"Root"})({}),am=X(rn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),vd=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:d="anchorEl",children:p,className:u,container:h,elevation:x=8,marginThreshold:b=16,open:g,PaperProps:f={},slots:m={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:v="auto",TransitionProps:C={},disableScrollLock:P=!1,...O}=r,D=T.useRef(),N={...r,anchorOrigin:a,anchorReference:d,elevation:x,marginThreshold:b,transformOrigin:w,TransitionComponent:S,transitionDuration:v,TransitionProps:C},I=kk(N),F=T.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const q=Ni(s),ne=q&&q.nodeType===1?q:dt(D.current).body,U=ne.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const de=ne.getBoundingClientRect();process.env.NODE_ENV!=="test"&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
225
- `))}return{top:U.top+om(U,a.vertical),left:U.left+im(U,a.horizontal)}},[s,a.horizontal,a.vertical,l,d]),E=T.useCallback(q=>({vertical:om(q,w.vertical),horizontal:im(q,w.horizontal)}),[w.horizontal,w.vertical]),A=T.useCallback(q=>{const ne={width:q.offsetWidth,height:q.offsetHeight},U=E(ne);if(d==="none")return{top:null,left:null,transformOrigin:sm(U)};const de=F();let re=de.top-U.vertical,oe=de.left-U.horizontal;const pe=re+ne.height,he=oe+ne.width,we=Ln(Ni(s)),Ne=we.innerHeight-b,_e=we.innerWidth-b;if(b!==null&&re<b){const Fe=re-b;re-=Fe,U.vertical+=Fe}else if(b!==null&&pe>Ne){const Fe=pe-Ne;re-=Fe,U.vertical+=Fe}if(process.env.NODE_ENV!=="production"&&ne.height>Ne&&ne.height&&Ne&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ne.height-Ne}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
- `)),b!==null&&oe<b){const Fe=oe-b;oe-=Fe,U.horizontal+=Fe}else if(he>_e){const Fe=he-_e;oe-=Fe,U.horizontal+=Fe}return{top:`${Math.round(re)}px`,left:`${Math.round(oe)}px`,transformOrigin:sm(U)}},[s,d,F,E,b]),[M,B]=T.useState(g),$=T.useCallback(()=>{const q=D.current;if(!q)return;const ne=A(q);ne.top!==null&&q.style.setProperty("top",ne.top),ne.left!==null&&(q.style.left=ne.left),q.style.transformOrigin=ne.transformOrigin,B(!0)},[A]);T.useEffect(()=>(P&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[s,P,$]);const j=()=>{$()},_=()=>{B(!1)};T.useEffect(()=>{g&&$()}),T.useImperativeHandle(i,()=>g?{updatePosition:()=>{$()}}:null,[g,$]),T.useEffect(()=>{if(!g)return;const q=Rh(()=>{$()}),ne=Ln(Ni(s));return ne.addEventListener("resize",q),()=>{q.clear(),ne.removeEventListener("resize",q)}},[s,g,$]);let R=v;const z={slots:{transition:S,...m},slotProps:{transition:C,paper:f,...y}},[V,G]=Ee("transition",{elementType:uo,externalForwardedProps:z,ownerState:N,getSlotProps:q=>({...q,onEntering:(ne,U)=>{q.onEntering?.(ne,U),j()},onExited:ne=>{q.onExited?.(ne),_()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!V.muiSupportAuto&&(R=void 0);const K=h||(s?dt(Ni(s)).body:void 0),[ee,{slots:Q,slotProps:J,...ae}]=Ee("root",{ref:n,elementType:Ak,externalForwardedProps:{...z,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Uh(typeof y.backdrop=="function"?y.backdrop(N):y.backdrop,{invisible:!0})},container:K,open:g},ownerState:N,className:ue(I.root,u)}),[se,le]=Ee("paper",{ref:D,className:I.paper,elementType:am,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:x,style:M?void 0:{opacity:0}},ownerState:N});return c.jsx(ee,{...ae,...!Zn(ee)&&{slots:Q,slotProps:J,disableScrollLock:P},children:c.jsx(V,{...G,timeout:R,children:c.jsx(se,{...le,children:p})})})});process.env.NODE_ENV!=="production"&&(vd.propTypes={action:Pt,anchorEl:nn(o.oneOfType([Bn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ni(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
221
+ `,vO=typeof Ed!="string"?Qr`
222
+ animation: ${Ed} 3s infinite linear;
223
+ `:null,SO=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Z(r)}`,n],dashed:["dashed",`dashedColor${Z(r)}`],bar1:["bar","bar1",`barColor${Z(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Z(r)}`,n==="buffer"&&`color${Z(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ve(i,yO,t)},Td=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),wO=X("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],t[n.variant]]}})(ye(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{backgroundColor:Td(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),CO=X("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Z(n.color)}`]]}})(ye(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(it()).map(([t])=>{const n=Td(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),vO||{animation:`${Ed} 3s infinite linear`}),EO=X("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Sd}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Sd}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:bO||{animation:`${wd} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),TO=X("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Z(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(ye(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Td(e,t),transition:`transform .${Sd}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:xO||{animation:`${Cd} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),om=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:l,valueBuffer:c,variant:d="indeterminate",...u}=r,p={...r,color:s,variant:d},h=SO(p),y=pi(),b={},g={bar1:{},bar2:{}};if(d==="determinate"||d==="buffer")if(l!==void 0){b["aria-valuenow"]=Math.round(l),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let f=l-100;y&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(d==="buffer")if(c!==void 0){let f=(c||0)-100;y&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return a.jsxs(wO,{className:ue(h.root,i),ownerState:p,role:"progressbar",...b,ref:n,...u,children:[d==="buffer"?a.jsx(CO,{className:h.dashed,ownerState:p}):null,a.jsx(EO,{className:h.bar1,ownerState:p,style:g.bar1}),d==="determinate"?null:a.jsx(TO,{className:h.bar2,ownerState:p,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(om.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const Fi=T.createContext({});process.env.NODE_ENV!=="production"&&(Fi.displayName="ListContext");function kO(e){return be("MuiList",e)}xe("MuiList",["root","padding","dense","subheader"]);const PO=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ve({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},kO,t)},OO=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),im=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiList"}),{children:i,className:s,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:u,...p}=r,h=T.useMemo(()=>({dense:c}),[c]),y={...r,component:l,dense:c,disablePadding:d},b=PO(y);return a.jsx(Fi.Provider,{value:h,children:a.jsxs(OO,{as:l,className:ue(b.root,s),ref:n,ownerState:y,...p,children:[u,i]})})});process.env.NODE_ENV!=="production"&&(im.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const sm=xe("MuiListItemIcon",["root","alignItemsFlexStart"]);function AO(e){return be("MuiListItemText",e)}const go=xe("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),IO=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return ve({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},AO,t)},NO=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${go.primary}`]:t.primary},{[`& .${go.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${gg.root}:where(& .${go.primary})`]:{display:"block"},[`.${gg.root}:where(& .${go.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),kd=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:u,secondary:p,secondaryTypographyProps:h,slots:y={},slotProps:b={},...g}=r,{dense:f}=T.useContext(Fi);let m=d??i,x=p;const w={...r,disableTypography:l,inset:c,primary:!!m,secondary:!!x,dense:f},S=IO(w),v={slots:y,slotProps:{primary:u,secondary:h,...b}},[C,k]=Te("root",{className:ue(S.root,s),elementType:NO,externalForwardedProps:{...v,...g},ownerState:w,ref:n}),[A,z]=Te("primary",{className:S.primary,elementType:D,externalForwardedProps:v,ownerState:w}),[M,$]=Te("secondary",{className:S.secondary,elementType:D,externalForwardedProps:v,ownerState:w});return m!=null&&m.type!==D&&!l&&(m=a.jsx(A,{variant:f?"body2":"body1",component:z?.variant?void 0:"span",...z,children:m})),x!=null&&x.type!==D&&!l&&(x=a.jsx(M,{variant:"body2",color:"textSecondary",...$,children:x})),a.jsxs(C,{...k,children:[m,x]})});process.env.NODE_ENV!=="production"&&(kd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Pd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function am(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lm(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Mi(e,t,n,r,i,s){let l=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!lm(c,s)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const cm=T.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:u=!1,onKeyDown:p,variant:h="selectedMenu",...y}=t,b=T.useRef(null),g=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Yt(()=>{i&&b.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:v})=>{const C=!b.current.style.width;if(S.clientHeight<b.current.clientHeight&&C){const k=`${Gg(jn(S))}px`;b.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=k,b.current.style.width=`calc(100% + ${k})`}return b.current}}),[]);const f=S=>{const v=b.current,C=S.key;if(S.ctrlKey||S.metaKey||S.altKey){p&&p(S);return}const A=Pi(ut(v));if(C==="ArrowDown")S.preventDefault(),Mi(v,A,u,d,Pd);else if(C==="ArrowUp")S.preventDefault(),Mi(v,A,u,d,am);else if(C==="Home")S.preventDefault(),Mi(v,null,u,d,Pd);else if(C==="End")S.preventDefault(),Mi(v,null,u,d,am);else if(C.length===1){const z=g.current,M=C.toLowerCase(),$=performance.now();z.keys.length>0&&($-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&M!==z.keys[0]&&(z.repeating=!1)),z.lastTime=$,z.keys.push(M);const I=A&&!z.repeating&&lm(A,z);z.previousKeyMatched&&(I||Mi(v,A,!1,d,Pd,z))?S.preventDefault():z.previousKeyMatched=!1}p&&p(S)},m=ct(b,n);let x=-1;T.Children.forEach(l,(S,v)=>{if(!T.isValidElement(S)){x===v&&(x+=1,x>=l.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&Yc.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
224
+ `)),S.props.disabled||(h==="selectedMenu"&&S.props.selected||x===-1)&&(x=v),x===v&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=l.length&&(x=-1))});const w=T.Children.map(l,(S,v)=>{if(v===x){const C={};return s&&(C.autoFocus=!0),S.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),T.cloneElement(S,C)}return S});return a.jsx(im,{role:"menu",ref:m,className:c,onKeyDown:f,tabIndex:i?0:-1,...y,children:w})});process.env.NODE_ENV!=="production"&&(cm.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function FO(e){return be("MuiPopover",e)}xe("MuiPopover",["root","paper"]);function dm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function pm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function um(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Di(e){return typeof e=="function"?e():e}const MO=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},FO,t)},DO=X(po,{name:"MuiPopover",slot:"Root"})({}),fm=X(on,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Od=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:y=8,marginThreshold:b=16,open:g,PaperProps:f={},slots:m={},slotProps:x={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:v="auto",TransitionProps:C={},disableScrollLock:k=!1,...A}=r,z=T.useRef(),M={...r,anchorOrigin:l,anchorReference:d,elevation:y,marginThreshold:b,transformOrigin:w,TransitionComponent:S,transitionDuration:v,TransitionProps:C},$=MO(M),I=T.useCallback(()=>{if(d==="anchorPosition")return process.env.NODE_ENV!=="production"&&(c||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),c;const ee=Di(s),pe=ee&&ee.nodeType===1?ee:ut(z.current).body,H=pe.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ne=pe.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ne.top===0&&ne.left===0&&ne.right===0&&ne.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
225
+ `))}return{top:H.top+dm(H,l.vertical),left:H.left+pm(H,l.horizontal)}},[s,l.horizontal,l.vertical,c,d]),E=T.useCallback(ee=>({vertical:dm(ee,w.vertical),horizontal:pm(ee,w.horizontal)}),[w.horizontal,w.vertical]),N=T.useCallback(ee=>{const pe={width:ee.offsetWidth,height:ee.offsetHeight},H=E(pe);if(d==="none")return{top:null,left:null,transformOrigin:um(H)};const ne=I();let oe=ne.top-H.vertical,ge=ne.left-H.horizontal;const me=oe+pe.height,ke=ge+pe.width,ae=jn(Di(s)),te=ae.innerHeight-b,Ce=ae.innerWidth-b;if(b!==null&&oe<b){const Oe=oe-b;oe-=Oe,H.vertical+=Oe}else if(b!==null&&me>te){const Oe=me-te;oe-=Oe,H.vertical+=Oe}if(process.env.NODE_ENV!=="production"&&pe.height>te&&pe.height&&te&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${pe.height-te}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
226
+ `)),b!==null&&ge<b){const Oe=ge-b;ge-=Oe,H.horizontal+=Oe}else if(ke>Ce){const Oe=ke-Ce;ge-=Oe,H.horizontal+=Oe}return{top:`${Math.round(oe)}px`,left:`${Math.round(ge)}px`,transformOrigin:um(H)}},[s,d,I,E,b]),[_,W]=T.useState(g),F=T.useCallback(()=>{const ee=z.current;if(!ee)return;const pe=N(ee);pe.top!==null&&ee.style.setProperty("top",pe.top),pe.left!==null&&(ee.style.left=pe.left),ee.style.transformOrigin=pe.transformOrigin,W(!0)},[N]);T.useEffect(()=>(k&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F)),[s,k,F]);const B=()=>{F()},O=()=>{W(!1)};T.useEffect(()=>{g&&F()}),T.useImperativeHandle(i,()=>g?{updatePosition:()=>{F()}}:null,[g,F]),T.useEffect(()=>{if(!g)return;const ee=Gh(()=>{F()}),pe=jn(Di(s));return pe.addEventListener("resize",ee),()=>{ee.clear(),pe.removeEventListener("resize",ee)}},[s,g,F]);let V=v;const L={slots:{transition:S,...m},slotProps:{transition:C,paper:f,...x}},[U,q]=Te("transition",{elementType:ho,externalForwardedProps:L,ownerState:M,getSlotProps:ee=>({...ee,onEntering:(pe,H)=>{ee.onEntering?.(pe,H),B()},onExited:pe=>{ee.onExited?.(pe),O()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!U.muiSupportAuto&&(V=void 0);const G=h||(s?ut(Di(s)).body:void 0),[J,{slots:K,slotProps:Q,...se}]=Te("root",{ref:n,elementType:DO,externalForwardedProps:{...L,...A},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Xh(typeof x.backdrop=="function"?x.backdrop(M):x.backdrop,{invisible:!0})},container:G,open:g},ownerState:M,className:ue($.root,p)}),[ce,de]=Te("paper",{ref:z,className:$.paper,elementType:fm,externalForwardedProps:L,shouldForwardComponentProp:!0,additionalProps:{elevation:y,style:_?void 0:{opacity:0}},ownerState:M});return a.jsx(J,{...se,...!er(J)&&{slots:K,slotProps:Q,disableScrollLock:k},children:a.jsx(U,{...q,timeout:V,children:a.jsx(ce,{...de,children:u})})})});process.env.NODE_ENV!=="production"&&(Od.propTypes={action:At,anchorEl:rn(o.oneOfType([Vn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Di(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
227
227
  `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
228
- `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Bn,o.func]),disableScrollLock:o.bool,elevation:ma,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Uc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function Ik(e){return ye("MuiMenu",e)}be("MuiMenu",["root","paper","list"]);const Nk={vertical:"top",horizontal:"right"},Fk={vertical:"top",horizontal:"left"},Mk=e=>{const{classes:t}=e;return xe({root:["root"],paper:["paper"],list:["list"]},Ik,t)},Dk=X(vd,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),_k=X(am,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),$k=X(rm,{name:"MuiMenu",slot:"List"})({outline:0}),Sd=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:d={},onClose:p,open:u,PaperProps:h={},PopoverClasses:x,transitionDuration:b="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:y={},slotProps:w={},...S}=r,v=li(),C={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:b,TransitionProps:f,variant:m},P=Mk(C),O=i&&!l&&u,D=T.useRef(null),N=(R,z)=>{D.current&&D.current.adjustStyleForScrollbar(R,{direction:v?"rtl":"ltr"}),g&&g(R,z)},I=R=>{R.key==="Tab"&&(R.preventDefault(),p&&p(R,"tabKeyDown"))};let F=-1;T.Children.map(s,(R,z)=>{T.isValidElement(R)&&(process.env.NODE_ENV!=="production"&&jc.isFragment(R)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
- `)),R.props.disabled||(m==="selectedMenu"&&R.props.selected||F===-1)&&(F=z))});const E={slots:y,slotProps:{list:d,transition:f,paper:h,...w}},A=vn({elementType:y.root,externalSlotProps:w.root,ownerState:C,className:[P.root,a]}),[M,B]=Ee("paper",{className:P.paper,elementType:_k,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:C}),[$,j]=Ee("list",{className:ue(P.list,d.className),elementType:$k,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:R=>({...R,onKeyDown:z=>{I(z),R.onKeyDown?.(z)}}),ownerState:C}),_=typeof E.slotProps.transition=="function"?E.slotProps.transition(C):E.slotProps.transition;return c.jsx(Dk,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?Nk:Fk,slots:{root:y.root,paper:M,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:A,paper:B,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{..._,onEntering:(...R)=>{N(...R),_?.onEntering?.(...R)}}},open:u,ref:n,transitionDuration:b,ownerState:C,...S,classes:x,children:c.jsx($,{actions:D,autoFocus:i&&(F===-1||l),autoFocusItem:O,variant:m,...j,children:s})})});process.env.NODE_ENV!=="production"&&(Sd.propTypes={anchorEl:o.oneOfType([Bn,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function zk(e){return ye("MuiMenuItem",e)}const Fi=be("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lk=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},jk=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,d=xe({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},zk,a);return{...a,...d}},Bk=X(pi,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Lk})(me(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Fi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Fi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Fi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qg.inset}`]:{marginLeft:52},[`& .${po.root}`]:{marginTop:0,marginBottom:0},[`& .${po.inset}`]:{paddingLeft:36},[`& .${em.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${em.root} svg`]:{fontSize:"1.25rem"}}}]}))),yt=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:d=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:x,...b}=r,g=T.useContext(Ai),f=T.useMemo(()=>({dense:a||g.dense||!1,disableGutters:d}),[g.dense,a,d]),m=T.useRef(null);Ht(()=>{i&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const y={...r,dense:f.dense,divider:l,disableGutters:d},w=jk(r),S=lt(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),c.jsx(Ai.Provider,{value:f,children:c.jsx(Bk,{ref:S,role:u,tabIndex:v,component:s,focusVisibleClassName:ue(w.focusVisible,p),className:ue(w.root,x),...b,ownerState:y,classes:w})})});process.env.NODE_ENV!=="production"&&(yt.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function Wk(e){return ye("MuiMobileStepper",e)}be("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const Rk=e=>{const{classes:t,position:n}=e,r={root:["root",`position${Z(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return xe(r,Wk,t)},Vk=X(rn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`]]}})(me(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),Uk=X("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),Hk=X("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>di(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(me(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),qk=X(Qg,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),lm=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:d,position:p="bottom",steps:u,variant:h="dots",slots:x={},slotProps:b={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let m;h==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const y=Rk(f),w={slots:x,slotProps:{progress:l,...b}},[S,v]=Ee("root",{ref:n,elementType:Vk,shouldForwardComponentProp:!0,className:ue(y.root,a),externalForwardedProps:{...w,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[C,P]=Ee("dots",{className:y.dots,elementType:Uk,externalForwardedProps:w,ownerState:f}),[O,D]=Ee("dot",{elementType:Hk,externalForwardedProps:w,ownerState:f}),[N,I]=Ee("progress",{className:y.progress,elementType:qk,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return c.jsxs(S,{...v,children:[s,h==="text"&&c.jsxs(T.Fragment,{children:[i+1," / ",u]}),h==="dots"&&c.jsx(C,{...P,children:[...new Array(u)].map((F,E)=>c.jsx(O,{...D,className:ue(y.dot,D.className,E===i&&y.dotActive),dotActive:E===i},E))}),h==="progress"&&c.jsx(N,{...I}),d]})});process.env.NODE_ENV!=="production"&&(lm.propTypes={activeStep:ma,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:ma.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function Yk(e){return ye("MuiNativeSelect",e)}const wd=be("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Gk=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,s&&"iconOpen",r&&"disabled"]};return xe(l,Yk,t)},cm=X("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${wd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),Kk=X(cm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ct,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${wd.multiple}`]:t.multiple}]}})({}),dm=X("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${wd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),Xk=X(dm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})({}),um=T.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:d="standard",...p}=t,u={...t,disabled:i,variant:d,error:s},h=Gk(u);return c.jsxs(T.Fragment,{children:[c.jsx(Kk,{ownerState:u,className:ue(h.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:c.jsx(Xk,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(um.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Pt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var pm;const Jk=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Qk=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ct})(me(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function fm(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",d={...e,notched:s,withLabel:l};return c.jsx(Jk,{"aria-hidden":!0,className:r,ownerState:d,...a,children:c.jsx(Qk,{ownerState:d,children:l?c.jsx("span",{children:i}):pm||(pm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(fm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const Zk=e=>{const{classes:t}=e,r=xe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},pP,t);return{...t,...r}},e2=X(Ia,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ka})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${wn.focused} .${wn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ot()).map(([n])=>({props:{color:n},style:{[`&.${wn.focused} .${wn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${wn.error} .${wn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wn.disabled} .${wn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),t2=X(fm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(me(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),n2=X(Na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Aa})(me(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Wa=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:d=!1,notched:p,slots:u={},slotProps:h={},type:x="text",...b}=r,g=Zk(r),f=Sn(),m=tr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:x},w=u.root??i.Root??e2,S=u.input??i.Input??n2,[v,C]=Ee("notchedOutline",{elementType:t2,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&m.required?c.jsxs(T.Fragment,{children:[l," ","*"]}):l}});return c.jsx(Si,{slots:{root:w,input:S},slotProps:h,renderSuffix:P=>c.jsx(v,{...C,notched:typeof p<"u"?p:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:a,multiline:d,ref:n,type:x,...b,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Wa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:Pt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Wa.muiName="Input";const r2=Ke(c.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 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"}),"RadioButtonUnchecked"),o2=Ke(c.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),i2=X("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ct})({position:"relative",display:"flex"}),s2=X(r2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),a2=X(o2,{name:"MuiRadioButtonIcon"})(me(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Cd(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return c.jsxs(i2,{className:n.root,ownerState:i,children:[c.jsx(s2,{fontSize:r,className:n.background,ownerState:i}),c.jsx(a2,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Cd.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Ed=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ed.displayName="RadioGroupContext");function l2(){return T.useContext(Ed)}function c2(e){return ye("MuiRadio",e)}const hm=be("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),d2=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${Z(n)}`,r!=="medium"&&`size${Z(r)}`]};return{...t,...xe(i,c2,t)}},u2=X(Da,{shouldForwardProp:e=>Ct(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Z(n.size)}`],t[`color${Z(n.color)}`]]}})(me(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${hm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${hm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function p2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const f2=c.jsx(Cd,{checked:!0}),h2=c.jsx(Cd,{}),fo=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=f2,color:a="primary",icon:l=h2,name:d,onChange:p,size:u="medium",className:h,disabled:x,disableRipple:b=!1,slots:g={},slotProps:f={},inputProps:m,...y}=r,w=Sn();let S=x;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const v={...r,disabled:S,disableRipple:b,color:a,size:u},C=d2(v),P=l2();let O=i;const D=Lc(p,P&&P.onChange);let N=d;P&&(typeof O>"u"&&(O=p2(P.value,r.value)),typeof N>"u"&&(N=P.name));const I=f.input??m,[F,E]=Ee("root",{ref:n,elementType:u2,className:ue(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...y},getSlotProps:A=>({...A,onChange:(M,...B)=>{A.onChange?.(M,...B),D(M,...B)}}),ownerState:v,additionalProps:{type:"radio",icon:T.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:S,name:N,checked:O,slots:g,slotProps:{input:typeof I=="function"?I(v):I}}});return c.jsx(F,{...E,classes:C})});process.env.NODE_ENV!=="production"&&(fo.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:Pt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function g2(e){return ye("MuiRadioGroup",e)}be("MuiRadioGroup",["root","row","error"]);const m2=e=>{const{classes:t,row:n,error:r}=e;return xe({root:["root",n&&"row",r&&"error"]},g2,t)},Ra=T.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:d,value:p,...u}=t,h=T.useRef(null),x=m2(t),[b,g]=Qr({controlled:p,default:a,name:"RadioGroup"});T.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=lt(n,h),m=gr(l),y=T.useMemo(()=>({name:m,onChange(w){g(w.target.value),d&&d(w,w.target.value)},value:b}),[m,d,g,b]);return c.jsx(Ed.Provider,{value:y,children:c.jsx(Yg,{role:"radiogroup",ref:f,className:ue(x.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(Ra.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const y2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function gm(e){return ye("MuiSelect",e)}const Mi=be("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var mm;const b2=X(cm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Mi.select}`]:t.select},{[`&.${Mi.select}`]:t[n.variant]},{[`&.${Mi.error}`]:t.error},{[`&.${Mi.multiple}`]:t.multiple}]}})({[`&.${Mi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),x2=X(dm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})({}),v2=X("input",{shouldForwardProp:e=>di(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function ym(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function S2(e){return e==null||typeof e=="string"&&!e.trim()}const w2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Z(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return xe(l,gm,t)},bm=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:d,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:x,error:b=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:y={},multiple:w,name:S,onBlur:v,onChange:C,onClose:P,onFocus:O,onKeyDown:D,onMouseDown:N,onOpen:I,open:F,readOnly:E,renderValue:A,required:M,SelectDisplayProps:B={},tabIndex:$,type:j,value:_,variant:R="standard",...z}=t,[V,G]=Qr({controlled:_,default:u,name:"Select"}),[K,ee]=Qr({controlled:F,default:p,name:"Select"}),Q=T.useRef(null),J=T.useRef(null),[ae,se]=T.useState(null),{current:le}=T.useRef(F!=null),[q,ne]=T.useState(),U=lt(n,f),de=T.useCallback(ge=>{J.current=ge,ge&&se(ge)},[]),re=ae?.parentNode;T.useImperativeHandle(U,()=>({focus:()=>{J.current.focus()},node:Q.current,value:V}),[V]),T.useEffect(()=>{p&&K&&ae&&!le&&(ne(a?null:re.clientWidth),J.current.focus())},[ae,a]),T.useEffect(()=>{s&&J.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const ge=dt(J.current).getElementById(m);if(ge){const Me=()=>{getSelection().isCollapsed&&J.current.focus()};return ge.addEventListener("click",Me),()=>{ge.removeEventListener("click",Me)}}},[m]);const oe=(ge,Me)=>{ge?I&&I(Me):P&&P(Me),le||(ne(a?null:re.clientWidth),ee(ge))},pe=ge=>{N?.(ge),ge.button===0&&(ge.preventDefault(),J.current.focus(),oe(!0,ge))},he=ge=>{oe(!1,ge)},we=T.Children.toArray(l),Ne=ge=>{const Me=we.find(et=>et.props.value===ge.target.value);Me!==void 0&&(G(Me.props.value),C&&C(ge,Me))},_e=ge=>Me=>{let et;if(Me.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(V)?V.slice():[];const kn=V.indexOf(ge.props.value);kn===-1?et.push(ge.props.value):et.splice(kn,1)}else et=ge.props.value;if(ge.props.onClick&&ge.props.onClick(Me),V!==et&&(G(et),C)){const kn=Me.nativeEvent||Me,Je=new kn.constructor(kn.type,kn);Object.defineProperty(Je,"target",{writable:!0,value:{value:et,name:S}}),C(Je,ge)}w||oe(!1,Me)}},Fe=ge=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(ge.key)&&(ge.preventDefault(),oe(!0,ge)),D?.(ge))},ce=ae!==null&&K,Xe=ge=>{!ce&&v&&(Object.defineProperty(ge,"target",{writable:!0,value:{value:V,name:S}}),v(ge))};delete z["aria-invalid"];let Ae,ie;const te=[];let fe=!1,Ce=!1;(Oa({value:V})||x)&&(A?Ae=A(V):fe=!0);const Pe=we.map(ge=>{if(!T.isValidElement(ge))return null;process.env.NODE_ENV!=="production"&&jc.isFragment(ge)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
230
- `));let Me;if(w){if(!Array.isArray(V))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":dn(2));Me=V.some(et=>ym(et,ge.props.value)),Me&&fe&&te.push(ge.props.children)}else Me=ym(V,ge.props.value),Me&&fe&&(ie=ge.props.children);return Me&&(Ce=!0),T.cloneElement(ge,{"aria-selected":Me?"true":"false",onClick:_e(ge),onKeyUp:et=>{et.key===" "&&et.preventDefault(),ge.props.onKeyUp&&ge.props.onKeyUp(et)},role:"option",selected:Me,value:void 0,"data-value":ge.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Ce&&!w&&V!==""){const ge=we.map(Me=>Me.props.value);console.warn([`MUI: You have provided an out-of-range value \`${V}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ge.filter(Me=>Me!=null).map(Me=>`\`${Me}\``).join(", ")||'""'}.`].join(`
231
- `))}},[Ce,we,w,S,V]),fe&&(w?te.length===0?Ae=null:Ae=te.reduce((ge,Me,et)=>(ge.push(Me),et<te.length-1&&ge.push(", "),ge),[]):Ae=ie);let Te=q;!a&&le&&ae&&(Te=re.clientWidth);let ve;typeof $<"u"?ve=$:ve=h?null:0;const Ze=B.id||(S?`mui-component-select-${S}`:void 0),De={...t,variant:R,value:V,open:ce,error:b},pt=w2(De),an={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(De):y.slotProps?.paper},Ar={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(De):y.slotProps?.list},or=gr();return c.jsxs(T.Fragment,{children:[c.jsx(b2,{as:"div",ref:de,tabIndex:ve,role:"combobox","aria-controls":ce?or:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ce?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ze].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":M?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Fe,onMouseDown:h||E?null:pe,onBlur:Xe,onFocus:O,...B,ownerState:De,className:ue(B.className,pt.select,d),id:Ze,children:S2(Ae)?mm||(mm=c.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ae}),c.jsx(v2,{"aria-invalid":b,value:Array.isArray(V)?V.join(","):V,name:S,ref:Q,"aria-hidden":!0,onChange:Ne,tabIndex:-1,disabled:h,className:pt.nativeInput,autoFocus:s,required:M,...z,ownerState:De}),c.jsx(x2,{as:g,className:pt.icon,ownerState:De}),c.jsx(Sd,{id:`menu-${S||""}`,anchorEl:re,open:ce,onClose:he,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:or,...Ar},paper:{...an,style:{minWidth:Te,...an!=null?an.style:null}}},children:Pe})]})});process.env.NODE_ENV!=="production"&&(bm.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:Pt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const C2=e=>{const{classes:t}=e,r=xe({root:["root"]},gm,t);return{...t,...r}},Td={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Ct(e)&&e!=="variant"},E2=X(Ba,Td)(""),T2=X(Wa,Td)(""),P2=X(La,Td)(""),En=T.forwardRef(function(t,n){const r=Se({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:u=hP,id:h,input:x,inputProps:b,label:g,labelId:f,MenuProps:m,multiple:y=!1,native:w=!1,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:O,variant:D="outlined",...N}=r,I=w?um:bm,F=Sn(),E=tr({props:r,muiFormControl:F,states:["variant","error"]}),A=E.variant||D,M={...r,variant:A,classes:a},B=C2(M),{root:$,...j}=B,_=x||{standard:c.jsx(E2,{ownerState:M}),outlined:c.jsx(T2,{label:g,ownerState:M}),filled:c.jsx(P2,{ownerState:M})}[A],R=lt(n,Cr(_));return c.jsx(T.Fragment,{children:T.cloneElement(_,{inputComponent:I,inputProps:{children:s,error:E.error,IconComponent:u,variant:A,type:void 0,multiple:y,...w?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:f,MenuProps:m,onClose:S,onOpen:v,open:C,renderValue:P,SelectDisplayProps:{id:h,...O}},...b,classes:b?wt(j,b.classes):j,...x?x.props.inputProps:{}},...(y&&w||p)&&A==="outlined"?{notched:!0}:{},ref:R,className:ue(_.props.className,l,B.root),...!x&&{variant:A},...N})})});process.env.NODE_ENV!=="production"&&(En.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),En.muiName="Select";function O2(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const k2=2;function ho(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function xm(e,t){return e-t}function vm(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function Va(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ua(e,t,n){return(e-t)*100/(n-t)}function A2(e,t,n){return(n-t)*e+t}function I2(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function N2(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(I2(t)))}function Sm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(xm)}function Ha({sliderRef:e,activeIndex:t,setActive:n}){const r=dt(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function qa(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?O2(e,t):!1}const F2={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},M2=e=>e;let Ya;function wm(){return Ya===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ya=CSS.supports("touch-action","none"):Ya=!0),Ya}function D2(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:d=0,name:p,onChange:u,onChangeCommitted:h,orientation:x="horizontal",rootRef:b,scale:g=M2,step:f=1,shiftStep:m=10,tabIndex:y,value:w}=e,S=T.useRef(void 0),[v,C]=T.useState(-1),[P,O]=T.useState(-1),[D,N]=T.useState(!1),I=T.useRef(0),F=T.useRef(null),[E,A]=Qr({controlled:w,default:n??d,name:"Slider"}),M=u&&((ie,te,fe)=>{const Ce=ie.nativeEvent||ie,Pe=new Ce.constructor(Ce.type,Ce);Object.defineProperty(Pe,"target",{writable:!0,value:{value:te,name:p}}),F.current=te,u(Pe,te,fe)}),B=Array.isArray(E);let $=B?E.slice().sort(xm):[E];$=$.map(ie=>ie==null?d:Jr(ie,d,l));const j=a===!0&&f!==null?[...Array(Math.floor((l-d)/f)+1)].map((ie,te)=>({value:d+f*te})):a||[],_=j.map(ie=>ie.value),[R,z]=T.useState(-1),V=T.useRef(null),G=lt(b,V),K=ie=>te=>{const fe=Number(te.currentTarget.getAttribute("data-index"));to(te.target)&&z(fe),O(fe),ie?.onFocus?.(te)},ee=ie=>te=>{to(te.target)||z(-1),O(-1),ie?.onBlur?.(te)},Q=(ie,te)=>{const fe=Number(ie.currentTarget.getAttribute("data-index")),Ce=$[fe],Pe=_.indexOf(Ce);let Te=te;if(j&&f==null){const ve=_[_.length-1];Te>=ve?Te=ve:Te<=_[0]?Te=_[0]:Te=Te<Ce?_[Pe-1]:_[Pe+1]}if(Te=Jr(Te,d,l),B){i&&(Te=Jr(Te,$[fe-1]||-1/0,$[fe+1]||1/0));const ve=Te;Te=Sm({values:$,newValue:Te,index:fe});let Ze=fe;i||(Ze=Te.indexOf(ve)),Ha({sliderRef:V,activeIndex:Ze})}A(Te),z(fe),M&&!qa(Te,E)&&M(ie,Te,fe),h&&h(ie,F.current??Te)},J=ie=>te=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(te.key)){te.preventDefault();const fe=Number(te.currentTarget.getAttribute("data-index")),Ce=$[fe];let Pe=null;if(f!=null){const Te=te.shiftKey?m:f;switch(te.key){case"ArrowUp":Pe=ho(Ce,Te,1,d,l);break;case"ArrowRight":Pe=ho(Ce,Te,s?-1:1,d,l);break;case"ArrowDown":Pe=ho(Ce,Te,-1,d,l);break;case"ArrowLeft":Pe=ho(Ce,Te,s?1:-1,d,l);break;case"PageUp":Pe=ho(Ce,m,1,d,l);break;case"PageDown":Pe=ho(Ce,m,-1,d,l);break;case"Home":Pe=d;break;case"End":Pe=l;break}}else if(j){const Te=_[_.length-1],ve=_.indexOf(Ce),Ze=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],De=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ze.includes(te.key)?ve===0?Pe=_[0]:Pe=_[ve-1]:De.includes(te.key)&&(ve===_.length-1?Pe=Te:Pe=_[ve+1])}Pe!=null&&Q(te,Pe)}ie?.onKeyDown?.(te)};Ht(()=>{r&&V.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&C(-1),r&&R!==-1&&z(-1);const ae=ie=>te=>{ie.onChange?.(te),Q(te,te.target.valueAsNumber)},se=T.useRef(void 0);let le=x;s&&x==="horizontal"&&(le+="-reverse");const q=({finger:ie,move:te=!1})=>{const{current:fe}=V,{width:Ce,height:Pe,bottom:Te,left:ve}=fe.getBoundingClientRect();let Ze;le.startsWith("vertical")?Ze=(Te-ie.y)/Pe:Ze=(ie.x-ve)/Ce,le.includes("-reverse")&&(Ze=1-Ze);let De;if(De=A2(Ze,d,l),f)De=N2(De,f,d);else{const an=vm(_,De);De=_[an]}De=Jr(De,d,l);let pt=0;if(B){te?pt=se.current:pt=vm($,De),i&&(De=Jr(De,$[pt-1]||-1/0,$[pt+1]||1/0));const an=De;De=Sm({values:$,newValue:De,index:pt}),i&&te||(pt=De.indexOf(an),se.current=pt)}return{newValue:De,activeIndex:pt}},ne=Tt(ie=>{const te=Va(ie,S);if(!te)return;if(I.current+=1,ie.type==="mousemove"&&ie.buttons===0){U(ie);return}const{newValue:fe,activeIndex:Ce}=q({finger:te,move:!0});Ha({sliderRef:V,activeIndex:Ce,setActive:C}),A(fe),!D&&I.current>k2&&N(!0),M&&!qa(fe,E)&&M(ie,fe,Ce)}),U=Tt(ie=>{const te=Va(ie,S);if(N(!1),!te)return;const{newValue:fe}=q({finger:te,move:!0});C(-1),ie.type==="touchend"&&O(-1),h&&h(ie,F.current??fe),S.current=void 0,re()}),de=Tt(ie=>{if(r)return;wm()||ie.preventDefault();const te=ie.changedTouches[0];te!=null&&(S.current=te.identifier);const fe=Va(ie,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});Ha({sliderRef:V,activeIndex:Te,setActive:C}),A(Pe),M&&!qa(Pe,E)&&M(ie,Pe,Te)}I.current=0;const Ce=dt(V.current);Ce.addEventListener("touchmove",ne,{passive:!0}),Ce.addEventListener("touchend",U,{passive:!0})}),re=T.useCallback(()=>{const ie=dt(V.current);ie.removeEventListener("mousemove",ne),ie.removeEventListener("mouseup",U),ie.removeEventListener("touchmove",ne),ie.removeEventListener("touchend",U)},[U,ne]);T.useEffect(()=>{const{current:ie}=V;return ie.addEventListener("touchstart",de,{passive:wm()}),()=>{ie.removeEventListener("touchstart",de),re()}},[re,de]),T.useEffect(()=>{r&&re()},[r,re]);const oe=ie=>te=>{if(ie.onMouseDown?.(te),r||te.defaultPrevented||te.button!==0)return;te.preventDefault();const fe=Va(te,S);if(fe!==!1){const{newValue:Pe,activeIndex:Te}=q({finger:fe});Ha({sliderRef:V,activeIndex:Te,setActive:C}),A(Pe),M&&!qa(Pe,E)&&M(te,Pe,Te)}I.current=0;const Ce=dt(V.current);Ce.addEventListener("mousemove",ne,{passive:!0}),Ce.addEventListener("mouseup",U)},pe=Ua(B?$[0]:d,d,l),he=Ua($[$.length-1],d,l)-pe,we=(ie={})=>{const te=vr(ie),fe={onMouseDown:oe(te||{})},Ce={...te,...fe};return{...ie,ref:G,...Ce}},Ne=ie=>te=>{ie.onMouseOver?.(te);const fe=Number(te.currentTarget.getAttribute("data-index"));O(fe)},_e=ie=>te=>{ie.onMouseLeave?.(te),O(-1)},Fe=(ie={})=>{const te=vr(ie),fe={onMouseOver:Ne(te||{}),onMouseLeave:_e(te||{})};return{...ie,...te,...fe}},ce=ie=>({pointerEvents:v!==-1&&v!==ie?"none":void 0});let Xe;return x==="vertical"&&(Xe=s?"vertical-rl":"vertical-lr"),{active:v,axis:le,axisProps:F2,dragging:D,focusedThumbIndex:R,getHiddenInputProps:(ie={})=>{const te=vr(ie),fe={onChange:ae(te||{}),onFocus:K(te||{}),onBlur:ee(te||{}),onKeyDown:J(te||{})},Ce={...te,...fe};return{tabIndex:y,"aria-labelledby":t,"aria-orientation":x,"aria-valuemax":g(l),"aria-valuemin":g(d),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ie,...Ce,style:{...y2,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Xe}}},getRootProps:we,getThumbProps:Fe,marks:j,open:P,range:B,rootRef:G,trackLeap:he,trackOffset:pe,values:$,getThumbStyle:ce}}const _2=e=>!e||!Zn(e);function $2(e){return ye("MuiSlider",e)}const Jt=be("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),z2=e=>{const{open:t}=e;return{offset:ue(t&&Jt.valueLabelOpen),circle:Jt.valueLabelCircle,label:Jt.valueLabelLabel}};function Cm(e){const{children:t,className:n,value:r}=e,i=z2(e);return t?T.cloneElement(t,{className:t.props.className},c.jsxs(T.Fragment,{children:[t.props.children,c.jsx("span",{className:ue(i.offset,n),"aria-hidden":!0,children:c.jsx("span",{className:i.circle,children:c.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Cm.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Em(e){return e}const L2=X("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],n.size!=="medium"&&t[`size${Z(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(me(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Jt.dragging}`]:{[`& .${Jt.thumb}, & .${Jt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),j2=X("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),B2=X("span",{name:"MuiSlider",slot:"Track"})(me(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),W2=X("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Z(n.color)}`],n.size!=="medium"&&t[`thumbSize${Z(n.size)}`]]}})(me(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Jt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Jt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Jt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Tm=X(Cm,{name:"MuiSlider",slot:"ValueLabel"})(me(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Jt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Tm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const R2=X("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>di(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(me(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),V2=X("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>di(e)&&e!=="markLabelActive"})(me(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),U2=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:l,size:d}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Z(l)}`,d&&`size${Z(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${Z(d)}`,l&&`thumbColor${Z(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return xe(p,$2,a)},H2=({children:e})=>e,Pm=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSlider"}),i=li(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:d="span",components:p={},componentsProps:u={},color:h="primary",classes:x,className:b,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:y,marks:w=!1,max:S=100,min:v=0,name:C,onChange:P,onChangeCommitted:O,orientation:D="horizontal",shiftStep:N=10,size:I="medium",step:F=1,scale:E=Em,slotProps:A,slots:M,tabIndex:B,track:$="normal",value:j,valueLabelDisplay:_="off",valueLabelFormat:R=Em,...z}=r,V={...r,isRtl:i,max:S,min:v,classes:x,disabled:f,disableSwap:g,orientation:D,marks:w,color:h,size:I,step:F,shiftStep:N,scale:E,track:$,valueLabelDisplay:_,valueLabelFormat:R},{axisProps:G,getRootProps:K,getHiddenInputProps:ee,getThumbProps:Q,open:J,active:ae,axis:se,focusedThumbIndex:le,range:q,dragging:ne,marks:U,values:de,trackOffset:re,trackLeap:oe,getThumbStyle:pe}=D2({...V,rootRef:n});V.marked=U.length>0&&U.some(Je=>Je.label),V.dragging=ne,V.focusedThumbIndex=le;const he=U2(V),we=M?.root??p.Root??L2,Ne=M?.rail??p.Rail??j2,_e=M?.track??p.Track??B2,Fe=M?.thumb??p.Thumb??W2,ce=M?.valueLabel??p.ValueLabel??Tm,Xe=M?.mark??p.Mark??R2,Ae=M?.markLabel??p.MarkLabel??V2,ie=M?.input??p.Input??"input",te=A?.root??u.root,fe=A?.rail??u.rail,Ce=A?.track??u.track,Pe=A?.thumb??u.thumb,Te=A?.valueLabel??u.valueLabel,ve=A?.mark??u.mark,Ze=A?.markLabel??u.markLabel,De=A?.input??u.input,pt=vn({elementType:we,getSlotProps:K,externalSlotProps:te,externalForwardedProps:z,additionalProps:{..._2(we)&&{as:d}},ownerState:{...V,...te?.ownerState},className:[he.root,b]}),an=vn({elementType:Ne,externalSlotProps:fe,ownerState:V,className:he.rail}),Ar=vn({elementType:_e,externalSlotProps:Ce,additionalProps:{style:{...G[se].offset(re),...G[se].leap(oe)}},ownerState:{...V,...Ce?.ownerState},className:he.track}),or=vn({elementType:Fe,getSlotProps:Q,externalSlotProps:Pe,ownerState:{...V,...Pe?.ownerState},className:he.thumb}),ge=vn({elementType:ce,externalSlotProps:Te,ownerState:{...V,...Te?.ownerState},className:he.valueLabel}),Me=vn({elementType:Xe,externalSlotProps:ve,ownerState:V,className:he.mark}),et=vn({elementType:Ae,externalSlotProps:Ze,ownerState:V,className:he.markLabel}),kn=vn({elementType:ie,getSlotProps:ee,externalSlotProps:De,ownerState:V});return c.jsxs(we,{...pt,children:[c.jsx(Ne,{...an}),c.jsx(_e,{...Ar}),U.filter(Je=>Je.value>=v&&Je.value<=S).map((Je,ft)=>{const Ui=Ua(Je.value,v,S),mo=G[se].offset(Ui);let ln;return $===!1?ln=de.includes(Je.value):ln=$==="normal"&&(q?Je.value>=de[0]&&Je.value<=de[de.length-1]:Je.value<=de[0])||$==="inverted"&&(q?Je.value<=de[0]||Je.value>=de[de.length-1]:Je.value>=de[0]),c.jsxs(T.Fragment,{children:[c.jsx(Xe,{"data-index":ft,...Me,...!Zn(Xe)&&{markActive:ln},style:{...mo,...Me.style},className:ue(Me.className,ln&&he.markActive)}),Je.label!=null?c.jsx(Ae,{"aria-hidden":!0,"data-index":ft,...et,...!Zn(Ae)&&{markLabelActive:ln},style:{...mo,...et.style},className:ue(he.markLabel,et.className,ln&&he.markLabelActive),children:Je.label}):null]},ft)}),de.map((Je,ft)=>{const Ui=Ua(Je,v,S),mo=G[se].offset(Ui),ln=_==="off"?H2:ce;return c.jsx(ln,{...!Zn(ln)&&{valueLabelFormat:R,valueLabelDisplay:_,value:typeof R=="function"?R(E(Je),ft):R,index:ft,open:J===ft||ae===ft||_==="on",disabled:f},...ge,children:c.jsx(Fe,{"data-index":ft,...or,className:ue(he.thumb,or.className,ae===ft&&he.active,le===ft&&he.focusVisible),style:{...mo,...pe(ft),...or.style},children:c.jsx(ie,{"data-index":ft,"aria-label":m?m(ft):s,"aria-valuenow":E(Je),"aria-labelledby":l,"aria-valuetext":y?y(E(Je),ft):a,value:de[ft],...kn})})},ft)})]})});process.env.NODE_ENV!=="production"&&(Pm.propTypes={"aria-label":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":nn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function q2(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=xr();T.useEffect(()=>{if(!i)return;function y(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i,r]);const l=Tt((y,w)=>{r?.(y,w)}),d=Tt(y=>{!r||y==null||a.start(y,()=>{l(null,"timeout")})});T.useEffect(()=>(i&&d(t),a.clear),[i,t,d,a]);const p=y=>{r?.(y,"clickaway")},u=a.clear,h=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),x=y=>w=>{const S=y.onBlur;S?.(w),h()},b=y=>w=>{const S=y.onFocus;S?.(w),u()},g=y=>w=>{const S=y.onMouseEnter;S?.(w),u()},f=y=>w=>{const S=y.onMouseLeave;S?.(w),h()};return T.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(y={})=>{const w={...vr(e),...vr(y)};return{role:"presentation",...y,...w,onBlur:x(w),onFocus:b(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:p}}function Y2(e){return ye("MuiSnackbarContent",e)}be("MuiSnackbarContent",["root","message","action"]);const G2=e=>{const{classes:t}=e;return xe({root:["root"],action:["action"],message:["message"]},Y2,t)},K2=X(rn,{name:"MuiSnackbarContent",slot:"Root"})(me(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(kc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:kc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),X2=X("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),J2=X("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Om=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...d}=r,p=r,u=G2(p);return c.jsxs(K2,{role:l,elevation:6,className:ue(u.root,s),ownerState:p,ref:n,...d,children:[c.jsx(X2,{className:u.message,ownerState:p,children:a}),i?c.jsx(J2,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Om.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Q2(e){return ye("MuiSnackbar",e)}be("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Z2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return xe(r,Q2,t)},eA=X("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),go=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSnackbar"}),i=mn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:x,ContentProps:b,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:y,onFocus:w,onMouseEnter:S,onMouseLeave:v,open:C,resumeHideDuration:P,slots:O={},slotProps:D={},TransitionComponent:N,transitionDuration:I=s,TransitionProps:{onEnter:F,onExited:E,...A}={},...M}=r,B={...r,anchorOrigin:{vertical:l,horizontal:d},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:N,transitionDuration:I},$=Z2(B),{getRootProps:j,onClickAway:_}=q2(B),[R,z]=T.useState(!0),V=de=>{z(!0),E&&E(de)},G=(de,re)=>{z(!1),F&&F(de,re)},K={slots:{transition:N,...O},slotProps:{content:b,clickAwayListener:x,transition:A,...D}},[ee,Q]=Ee("root",{ref:n,className:[$.root,h],elementType:eA,getSlotProps:j,externalForwardedProps:{...K,...M},ownerState:B}),[J,{ownerState:ae,...se}]=Ee("clickAwayListener",{elementType:_a,externalForwardedProps:K,getSlotProps:de=>({onClickAway:(...re)=>{const oe=re[0];de.onClickAway?.(...re),!oe?.defaultMuiPrevented&&_(...re)}}),ownerState:B}),[le,q]=Ee("content",{elementType:Om,shouldForwardComponentProp:!0,externalForwardedProps:K,additionalProps:{message:f,action:a},ownerState:B}),[ne,U]=Ee("transition",{elementType:uo,externalForwardedProps:K,getSlotProps:de=>({onEnter:(...re)=>{de.onEnter?.(...re),G(...re)},onExited:(...re)=>{de.onExited?.(...re),V(...re)}}),additionalProps:{appear:!0,in:C,timeout:I,direction:l==="top"?"down":"up"},ownerState:B});return!C&&R?null:c.jsx(J,{...se,...O.clickAwayListener&&{ownerState:ae},children:c.jsx(ee,{...Q,children:c.jsx(ne,{...U,children:u||c.jsx(le,{...q})})})})});process.env.NODE_ENV!=="production"&&(go.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function tA(e){return ye("MuiTooltip",e)}const it=be("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function nA(e){return Math.round(e*1e5)/1e5}const rA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Z(s.split("-")[0])}`],arrow:["arrow"]};return xe(a,tA,t)},oA=X(od,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(me(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${it.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${it.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${it.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${it.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${it.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${it.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${it.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${it.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),iA=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(me(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${it.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${it.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${it.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${it.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${nA(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${it.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${it.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),sA=X("span",{name:"MuiTooltip",slot:"Arrow"})(me(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ga=!1;const km=new ha;let Di={x:0,y:0};function Ka(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Pd=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:d={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:x=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:y=!1,id:w,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:C,onOpen:P,open:O,placement:D="bottom",PopperComponent:N,PopperProps:I={},slotProps:F={},slots:E={},title:A,TransitionComponent:M,TransitionProps:B,...$}=r,j=T.isValidElement(s)?s:c.jsx("span",{children:s}),_=mn(),R=li(),[z,V]=T.useState(),[G,K]=T.useState(null),ee=T.useRef(!1),Q=x||y,J=xr(),ae=xr(),se=xr(),le=xr(),[q,ne]=Qr({controlled:O,default:!1,name:"Tooltip",state:"open"});let U=q;if(process.env.NODE_ENV!=="production"){const{current:ke}=T.useRef(O!==void 0);T.useEffect(()=>{z&&z.disabled&&!ke&&A!==""&&z.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
232
- `))},[A,z,ke])}const de=gr(w),re=T.useRef(),oe=Tt(()=>{re.current!==void 0&&(document.body.style.WebkitUserSelect=re.current,re.current=void 0),le.clear()});T.useEffect(()=>oe,[oe]);const pe=ke=>{km.clear(),Ga=!0,ne(!0),P&&!U&&P(ke)},he=Tt(ke=>{km.start(800+S,()=>{Ga=!1}),ne(!1),C&&U&&C(ke),J.start(_.transitions.duration.shortest,()=>{ee.current=!1})}),we=ke=>{ee.current&&ke.type!=="touchstart"||(z&&z.removeAttribute("title"),ae.clear(),se.clear(),g||Ga&&f?ae.start(Ga?f:g,()=>{pe(ke)}):pe(ke))},Ne=ke=>{ae.clear(),se.start(S,()=>{he(ke)})},[,_e]=T.useState(!1),Fe=ke=>{to(ke.target)||(_e(!1),Ne(ke))},ce=ke=>{z||V(ke.currentTarget),to(ke.target)&&(_e(!0),we(ke))},Xe=ke=>{ee.current=!0;const ir=j.props;ir.onTouchStart&&ir.onTouchStart(ke)},Ae=ke=>{Xe(ke),se.clear(),J.clear(),oe(),re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.start(m,()=>{document.body.style.WebkitUserSelect=re.current,we(ke)})},ie=ke=>{j.props.onTouchEnd&&j.props.onTouchEnd(ke),oe(),se.start(v,()=>{he(ke)})};T.useEffect(()=>{if(!U)return;function ke(ir){ir.key==="Escape"&&he(ir)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[he,U]);const te=lt(Cr(j),V,n);!A&&A!==0&&(U=!1);const fe=T.useRef(),Ce=ke=>{const ir=j.props;ir.onMouseMove&&ir.onMouseMove(ke),Di={x:ke.clientX,y:ke.clientY},fe.current&&fe.current.update()},Pe={},Te=typeof A=="string";p?(Pe.title=!U&&Te&&!h?A:null,Pe["aria-describedby"]=U?de:null):(Pe["aria-label"]=Te?A:null,Pe["aria-labelledby"]=U&&!Te?de:null);const ve={...Pe,...$,...j.props,className:ue($.className,j.props.className),onTouchStart:Xe,ref:te,...y?{onMouseMove:Ce}:{}};process.env.NODE_ENV!=="production"&&(ve["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{z&&!z.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
233
- `))},[z]));const Ze={};b||(ve.onTouchStart=Ae,ve.onTouchEnd=ie),h||(ve.onMouseOver=Ka(we,ve.onMouseOver),ve.onMouseLeave=Ka(Ne,ve.onMouseLeave),Q||(Ze.onMouseOver=we,Ze.onMouseLeave=Ne)),u||(ve.onFocus=Ka(ce,ve.onFocus),ve.onBlur=Ka(Fe,ve.onBlur),Q||(Ze.onFocus=ce,Ze.onBlur=Fe)),process.env.NODE_ENV!=="production"&&j.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${j.props.title}\` or the Tooltip component.`].join(`
234
- `));const De={...r,isRtl:R,arrow:i,disableInteractive:Q,placement:D,PopperComponentProp:N,touch:ee.current},pt=typeof F.popper=="function"?F.popper(De):F.popper,an=T.useMemo(()=>{let ke=[{name:"arrow",enabled:!!G,options:{element:G,padding:4}}];return I.popperOptions?.modifiers&&(ke=ke.concat(I.popperOptions.modifiers)),pt?.popperOptions?.modifiers&&(ke=ke.concat(pt.popperOptions.modifiers)),{...I.popperOptions,...pt?.popperOptions,modifiers:ke}},[G,I.popperOptions,pt?.popperOptions]),Ar=rA(De),or=typeof F.transition=="function"?F.transition(De):F.transition,ge={slots:{popper:l.Popper,transition:l.Transition??M,tooltip:l.Tooltip,arrow:l.Arrow,...E},slotProps:{arrow:F.arrow??d.arrow,popper:{...I,...pt??d.popper},tooltip:F.tooltip??d.tooltip,transition:{...B,...or??d.transition}}},[Me,et]=Ee("popper",{elementType:oA,externalForwardedProps:ge,ownerState:De,className:ue(Ar.popper,I?.className)}),[kn,Je]=Ee("transition",{elementType:uo,externalForwardedProps:ge,ownerState:De}),[ft,Ui]=Ee("tooltip",{elementType:iA,className:Ar.tooltip,externalForwardedProps:ge,ownerState:De}),[mo,ln]=Ee("arrow",{elementType:sA,className:Ar.arrow,externalForwardedProps:ge,ownerState:De,ref:K});return c.jsxs(T.Fragment,{children:[T.cloneElement(j,ve),c.jsx(Me,{as:N??od,placement:D,anchorEl:y?{getBoundingClientRect:()=>({top:Di.y,left:Di.x,right:Di.x,bottom:Di.y,width:0,height:0})}:z,popperRef:fe,open:z?U:!1,id:de,transition:!0,...Ze,...et,popperOptions:an,children:({TransitionProps:ke})=>c.jsx(kn,{timeout:_.transitions.duration.shorter,...ke,...Je,children:c.jsxs(ft,{...Ui,children:[A,i?c.jsx(mo,{...ln}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Pd.propTypes={arrow:o.bool,children:Tr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function aA(e){return ye("MuiSwitch",e)}const kt=be("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),lA=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=xe(l,aA,t);return{...t,...d}},cA=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${kt.thumb}`]:{width:16,height:16},[`& .${kt.switchBase}`]:{padding:4,[`&.${kt.checked}`]:{transform:"translateX(16px)"}}}}]}),dA=X(Da,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${kt.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(me(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${kt.checked}`]:{transform:"translateX(20px)"},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${kt.checked} + .${kt.track}`]:{opacity:.5},[`&.${kt.disabled} + .${kt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${kt.input}`]:{left:"-100%",width:"300%"}})),me(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ot(["light"])).map(([t])=>({props:{color:t},style:{[`&.${kt.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${kt.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${kt.checked} + .${kt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),uA=X("span",{name:"MuiSwitch",slot:"Track"})(me(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),pA=X("span",{name:"MuiSwitch",slot:"Thumb"})(me(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Am=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:d,slots:p={},slotProps:u={},...h}=r,x={...r,color:s,edge:a,size:l},b=lA(x),g={slots:p,slotProps:u},[f,m]=Ee("root",{className:ue(b.root,i),elementType:cA,externalForwardedProps:g,ownerState:x,additionalProps:{sx:d}}),[y,w]=Ee("thumb",{className:b.thumb,elementType:pA,externalForwardedProps:g,ownerState:x}),S=c.jsx(y,{...w}),[v,C]=Ee("track",{className:b.track,elementType:uA,externalForwardedProps:g,ownerState:x});return c.jsxs(f,{...m,children:[c.jsx(dA,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:x,...h,classes:{...b,root:b.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(x):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(x):u.input}}}),c.jsx(v,{...C})]})});process.env.NODE_ENV!=="production"&&(Am.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:Pt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Od=T.createContext();process.env.NODE_ENV!=="production"&&(Od.displayName="TableContext");function fA(e){return ye("MuiTable",e)}be("MuiTable",["root","stickyHeader"]);const hA=e=>{const{classes:t,stickyHeader:n}=e;return xe({root:["root",n&&"stickyHeader"]},fA,t)},gA=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Im="table",Nm=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTable"}),{className:i,component:s=Im,padding:a="normal",size:l="medium",stickyHeader:d=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:d},h=hA(u),x=T.useMemo(()=>({padding:a,size:l,stickyHeader:d}),[a,l,d]);return c.jsx(Od.Provider,{value:x,children:c.jsx(gA,{as:s,role:s===Im?null:"table",ref:n,className:ue(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(Nm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const _i=T.createContext();process.env.NODE_ENV!=="production"&&(_i.displayName="Tablelvl2Context");function mA(e){return ye("MuiTableBody",e)}be("MuiTableBody",["root"]);const yA=e=>{const{classes:t}=e;return xe({root:["root"]},mA,t)},bA=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),xA={variant:"body"},Fm="tbody",Mm=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableBody"}),{className:i,component:s=Fm,...a}=r,l={...r,component:s},d=yA(l);return c.jsx(_i.Provider,{value:xA,children:c.jsx(bA,{className:ue(d.root,i),as:s,ref:n,role:s===Fm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function vA(e){return ye("MuiTableCell",e)}const SA=be("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),wA=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Z(r)}`,i!=="normal"&&`padding${Z(i)}`,`size${Z(s)}`]};return xe(l,vA,t)},CA=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Z(n.size)}`],n.padding!=="normal"&&t[`padding${Z(n.padding)}`],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(me(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
235
- ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${SA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),nr=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:d,size:p,sortDirection:u,variant:h,...x}=r,b=T.useContext(Od),g=T.useContext(_i),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let y=d;m==="td"?y=void 0:!y&&f&&(y="col");const w=h||g&&g.variant,S={...r,align:i,component:m,padding:l||(b&&b.padding?b.padding:"normal"),size:p||(b&&b.size?b.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&b&&b.stickyHeader,variant:w},v=wA(S);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),c.jsx(CA,{as:m,ref:n,className:ue(v.root,s),"aria-sort":C,scope:y,ownerState:S,...x})});process.env.NODE_ENV!=="production"&&(nr.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function EA(e){return ye("MuiTableContainer",e)}be("MuiTableContainer",["root"]);const TA=e=>{const{classes:t}=e;return xe({root:["root"]},EA,t)},PA=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Dm=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},d=TA(l);return c.jsx(PA,{ref:n,as:s,className:ue(d.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Dm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function OA(e){return ye("MuiTableHead",e)}be("MuiTableHead",["root"]);const kA=e=>{const{classes:t}=e;return xe({root:["root"]},OA,t)},AA=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),IA={variant:"head"},_m="thead",$m=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableHead"}),{className:i,component:s=_m,...a}=r,l={...r,component:s},d=kA(l);return c.jsx(_i.Provider,{value:IA,children:c.jsx(AA,{as:s,className:ue(d.root,i),ref:n,role:s===_m?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&($m.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function NA(e){return ye("MuiTableRow",e)}const zm=be("MuiTableRow",["root","selected","hover","head","footer"]),FA=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return xe({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},NA,t)},MA=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(me(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${zm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${zm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Lm="tr",$i=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTableRow"}),{className:i,component:s=Lm,hover:a=!1,selected:l=!1,...d}=r,p=T.useContext(_i),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=FA(u);return c.jsx(MA,{as:s,ref:n,className:ue(h.root,i),role:s===Lm?null:"row",ownerState:u,...d})});process.env.NODE_ENV!=="production"&&($i.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function DA(e){return ye("MuiTextField",e)}be("MuiTextField",["root"]);const _A={standard:Ba,filled:La,outlined:Wa},$A=e=>{const{classes:t}=e;return xe({root:["root"]},DA,t)},zA=X(ja,{name:"MuiTextField",slot:"Root"})({}),zi=T.forwardRef(function(t,n){const r=Se({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:d="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:x,fullWidth:b=!1,helperText:g,id:f,InputLabelProps:m,inputProps:y,InputProps:w,inputRef:S,label:v,maxRows:C,minRows:P,multiline:O=!1,name:D,onBlur:N,onChange:I,onFocus:F,placeholder:E,required:A=!1,rows:M,select:B=!1,SelectProps:$,slots:j={},slotProps:_={},type:R,value:z,variant:V="outlined",...G}=r,K={...r,autoFocus:s,color:d,disabled:u,error:h,fullWidth:b,multiline:O,required:A,select:B,variant:V},ee=$A(K);process.env.NODE_ENV!=="production"&&B&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const Q=gr(f),J=g&&Q?`${Q}-helper-text`:void 0,ae=v&&Q?`${Q}-label`:void 0,se=_A[V],le={slots:j,slotProps:{input:w,inputLabel:m,htmlInput:y,formHelperText:x,select:$,..._}},q={},ne=le.slotProps.inputLabel;V==="outlined"&&(ne&&typeof ne.shrink<"u"&&(q.notched=ne.shrink),q.label=v),B&&((!$||!$.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[U,de]=Ee("root",{elementType:zA,shouldForwardComponentProp:!0,externalForwardedProps:{...le,...G},ownerState:K,className:ue(ee.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:b,required:A,color:d,variant:V}}),[re,oe]=Ee("input",{elementType:se,externalForwardedProps:le,additionalProps:q,ownerState:K}),[pe,he]=Ee("inputLabel",{elementType:Jg,externalForwardedProps:le,ownerState:K}),[we,Ne]=Ee("htmlInput",{elementType:"input",externalForwardedProps:le,ownerState:K}),[_e,Fe]=Ee("formHelperText",{elementType:Xg,externalForwardedProps:le,ownerState:K}),[ce,Xe]=Ee("select",{elementType:En,externalForwardedProps:le,ownerState:K}),Ae=c.jsx(re,{"aria-describedby":J,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:b,multiline:O,name:D,rows:M,maxRows:C,minRows:P,type:R,value:z,id:Q,inputRef:S,onBlur:N,onChange:I,onFocus:F,placeholder:E,inputProps:Ne,slots:{input:j.htmlInput?we:void 0},...oe});return c.jsxs(U,{...de,children:[v!=null&&v!==""&&c.jsx(pe,{htmlFor:Q,id:ae,...he,children:v}),B?c.jsx(ce,{"aria-describedby":J,id:Q,labelId:ae,value:z,input:Ae,...Xe,children:a}):Ae,g&&c.jsx(_e,{id:J,...Fe,children:g})]})});process.env.NODE_ENV!=="production"&&(zi.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:Pt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const Li=vh({themeId:Ko});function kd(){return kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function LA(e,t){if(e==null)return{};var n=jA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ad=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=LA(e,["color","size"]);return L.createElement("svg",kd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),L.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Ad.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Ad.displayName="Bell";function Id(){return Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Id.apply(this,arguments)}function BA(e,t){if(e==null)return{};var n=WA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xa=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=BA(e,["color","size"]);return L.createElement("svg",Id({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("polyline",{points:"6 9 12 15 18 9"}))});Xa.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Xa.displayName="ChevronDown";function Nd(){return Nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nd.apply(this,arguments)}function RA(e,t){if(e==null)return{};var n=VA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fd=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=RA(e,["color","size"]);return L.createElement("svg",Nd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("circle",{cx:"12",cy:"12",r:"1"}),L.createElement("circle",{cx:"12",cy:"5",r:"1"}),L.createElement("circle",{cx:"12",cy:"19",r:"1"}))});Fd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Fd.displayName="MoreVertical";function Md(){return Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Md.apply(this,arguments)}function UA(e,t){if(e==null)return{};var n=HA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Dd=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=UA(e,["color","size"]);return L.createElement("svg",Md({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("circle",{cx:"11",cy:"11",r:"8"}),L.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Dd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Dd.displayName="Search";function _d(){return _d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_d.apply(this,arguments)}function qA(e,t){if(e==null)return{};var n=YA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $d=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=qA(e,["color","size"]);return L.createElement("svg",_d({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("circle",{cx:"12",cy:"12",r:"3"}),L.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});$d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},$d.displayName="Settings";function zd(){return zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zd.apply(this,arguments)}function GA(e,t){if(e==null)return{};var n=KA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ld=L.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=GA(e,["color","size"]);return L.createElement("svg",zd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),L.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),L.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),L.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Ld.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Ld.displayName="ShoppingBag";function sn(){const e={topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:"#FFFFFF",boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:"#FFFFFF",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)",overflow:"hidden",minHeight:0},selected:{borderColor:"#2D64B8",border:"2px solid #2D64B8",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:"#F5F5F5",border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:"0.5px solid #2D64B8","&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{width:331,height:40,borderRadius:"8px",padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center","&:hover":{bgcolor:"#2557A3"}}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:"#FFFFFF",color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:"#FFFFFF"},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none","&:hover":{bgcolor:"#2557A3"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}}},t={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3,md:4},px:{xs:0,sm:0,md:4},bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{width:"100%",maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",gap:"4px",opacity:1,borderRadius:0,boxShadow:"none",background:"#f7f8fa",p:0,mb:3,boxSizing:"border-box"},categoryTableHeader:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box",flexWrap:"wrap"},categoryTableHeaderCheckboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryTableHeaderCell:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},categoryTableHeaderCategoryCell:{flex:"2 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderStockCell:{flex:"1 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080","@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{flex:"1.5 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderEmptyCell:{width:38,height:16,flex:"0 0 38px",opacity:0},categoryTableRow:(...n)=>({width:"100%",minHeight:120,display:"flex",alignItems:"center",gap:"16px",padding:"12px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box",flexWrap:"wrap"}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryTableRowCheckbox:{width:16,height:16,padding:0,borderRadius:"4px",border:"0.5px solid #454545",color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16}},categoryNameCell:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:n=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...n)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{font:{fontFamily:"Inter, sans-serif"},outerCard:{width:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"6px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{gap:"40px",minWidth:0,flex:"0 1 auto"},headerStatusText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},rowCard:{width:"100%",maxWidth:"100%",minHeight:80,gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},checkboxBase:{width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",color:"#FFFFFF"},checkboxRow:{border:"0.5px solid #454545",color:"#FFFFFF"},productBlock:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusActive:{padding:"4px 6px",borderRadius:"4px",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545",verticalAlign:"middle"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:"100%",height:28,gap:"32px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerProduct:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto"},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:"100%",height:88,gap:"32px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},productBlock:{width:237,height:56,gap:"16px"},productDetailsWidth:165,statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:"#F5F5F5"},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:{wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},contentWrapper:{marginTop:"72px",position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"}};return e.categoryDetail=t,e}const jm=0,Bm=1e4;function Wm({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=L.useMemo(()=>{const w=s?.min??t.minPrice??jm,S=s?.max??t.maxPrice??Bm;return{min:Number(w)||jm,max:Math.max(Number(S)||Bm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),l=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",p=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,u=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=p??a.min,x=u??a.max,b=(w,S)=>{n({...t,status:S===l?void 0:S||void 0})},g=(w,S)=>{n({...t,stock:S===d?void 0:S||void 0})},f=(w,S)=>{if(!Array.isArray(S)||S.length!==2)return;const v=Number(S[0]),C=Number(S[1]),P=Math.min(v,C),O=Math.max(v,C);n({...t,minPrice:P,maxPrice:O})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),y=()=>{const w={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(w)};return c.jsxs(lo,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[c.jsx(co,{children:"Filter Products"}),c.jsx(Ti,{children:c.jsxs(k,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[c.jsxs(ja,{component:"fieldset",children:[c.jsx(ki,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),c.jsxs(Ra,{row:!0,value:l,onChange:b,name:"status",children:[c.jsx(Cn,{value:"active",control:c.jsx(fo,{size:"small"}),label:"Active"}),c.jsx(Cn,{value:"inactive",control:c.jsx(fo,{size:"small"}),label:"Inactive"})]})]}),c.jsxs(ja,{component:"fieldset",children:[c.jsx(ki,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),c.jsxs(Ra,{row:!0,value:d,onChange:g,name:"stock",children:[c.jsx(Cn,{value:"inStock",control:c.jsx(fo,{size:"small"}),label:"In Stock"}),c.jsx(Cn,{value:"outOfStock",control:c.jsx(fo,{size:"small"}),label:"Out of Stock"})]})]}),c.jsxs(k,{children:[c.jsx(ki,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),c.jsxs(W,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",x]}),c.jsx(k,{sx:{px:.5},children:c.jsx(Pm,{value:[h,x],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:w=>`₹${w}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),c.jsxs(dd,{sx:{gap:.5,flexWrap:"wrap"},children:[c.jsx(Ye,{onClick:r,children:"Cancel"}),m&&c.jsx(Ye,{variant:"contained",onClick:y,children:"Clear Filters"}),c.jsx(Ye,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const XA=Ke(c.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function JA(e){return c.jsx(XA,{...e})}const QA=Ke(c.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function ji(e){return c.jsx(QA,{...e})}const ZA=Ke(c.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function Bi(e){return c.jsx(ZA,{...e})}function eI(e){return c.jsx($d,{...e})}const tI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function Rm(e){const{sx:t={},...n}=e;return c.jsx(k,{component:"button",sx:{...tI,...t},title:"Notifications","aria-label":"Notifications",...n,children:c.jsx(Ad,{size:20})})}const nI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",rI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function Vm(e){const{sx:t={},...n}=e;return c.jsx(k,{sx:{flexShrink:0,...t},...n,children:c.jsx(k,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:c.jsx(k,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:"linear-gradient(94.11deg, #5BC0CF 3.33%, #2D64B8 92.67%)",border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:c.jsxs(k,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[c.jsx(k,{component:"img",src:nI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),c.jsx(k,{component:"img",src:rI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const Ja=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:d="/home",hideViewSwitch:p=!1,isHomeDefault:u=!1,tenantStatus:h={matched:!0},priceRange:x,styles:b})=>{const g=xt(),f=sn(),[m,y]=L.useState(null),w=!!m,[S,v]=L.useState(!1),[C,P]=L.useState(!1),[O,D]=L.useState(e||{}),[N,I]=L.useState(e?.search??""),F=Array.isArray(e?.store)?e.store:[],E=()=>{y(null)},[A,M]=L.useState(F),B=K=>{M(K==="all"?["all"]:[K])},$=K=>{i?v(!0):(M(F.length===0?["all"]:F),y(K.currentTarget))},j=()=>{t({...e,store:A}),y(null)},_=K=>{a?a(K):t({...e,store:K}),v(!1)},R=()=>{v(!1)};L.useEffect(()=>{I(e?.search??"")},[e?.search]);const z=K=>{if(K.key==="Enter"){K.preventDefault();const ee=(N??"").trim();t({...e,search:ee})}},V=f,G=b!=null&&b.root!==void 0?b:(b!=null&&b.topBar!=null?b.topBar:V.topBar)||{};return c.jsxs(c.Fragment,{children:[c.jsx(k,{sx:{...G.root,position:"fixed",top:0,right:0,display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",boxSizing:"border-box",overflow:"hidden",zIndex:1100},children:c.jsx(Or,{maxWidth:"lg",disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"center",boxSizing:"border-box"},children:c.jsxs(k,{sx:{...G.inner,width:"100%",minWidth:0,height:32,minHeight:0,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",flex:1,minWidth:0},children:[l&&c.jsxs(c.Fragment,{children:[c.jsxs(k,{component:"button",onClick:()=>g(d),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[c.jsx(ji,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(W,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),c.jsx(k,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:414},children:c.jsxs(k,{sx:{...G.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[c.jsx(Dd,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),c.jsx(Si,{placeholder:l?"Search Products":"Search Products & Categories",value:N,onChange:K=>I(K.target.value),onKeyDown:z,sx:{...G.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0}}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box"},children:[c.jsxs(k,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",width:216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:"#FFFFFF",cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:$,tabIndex:0,"aria-label":"Select stores",children:[c.jsx(Ld,{size:18,style:{color:"#555",marginRight:4}}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16},children:F.length===0||F.includes("all")?"All Stores":F.length===1?"1 Store":`${F.length} Stores`}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:61,height:16},children:` ${n.filter(K=>K.id!=="all"&&K.storeCode!=="all").length} stores`}),c.jsx(Xa,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),c.jsxs(Sd,{anchorEl:m,open:w,onClose:E,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[c.jsxs(yt,{onClick:()=>B("all"),children:[c.jsx(Ot,{checked:A.length===0||A.includes("all")}),c.jsx(bd,{primary:"All Stores"})]}),c.jsx(Xt,{}),c.jsx(k,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(K=>K.id!=="all").map(K=>c.jsxs(yt,{onClick:()=>B(K.id),children:[c.jsx(Ot,{checked:A.includes(K.id)}),c.jsx(bd,{primary:K.name})]},K.id))}),c.jsx(Xt,{}),c.jsx(k,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:c.jsx(Ye,{variant:"contained",size:"small",onClick:j,children:"Apply"})})]}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",width:67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(D(e||{}),P(!0))},children:[c.jsx(W,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:u?"MTD":"Filters"}),c.jsx(Xa,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",width:63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[c.jsx(W,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),c.jsx(JA,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsxs(k,{sx:{display:"flex",gap:1,alignItems:"center"},children:[c.jsx(k,{component:"button",sx:G.iconOnly,title:"Refresh",children:c.jsx(Bi,{sx:{width:20,height:20,opacity:1}})}),!p&&c.jsx(k,{component:"button",sx:{...G.iconOnly,cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:h.loading?"none":"auto"},title:h.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{h.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:c.jsx(eI,{size:18.33,color:"#454545"})}),c.jsx(k,{component:"button",sx:G.iconOnly,title:"More",children:c.jsx(Fd,{size:20})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}})]}),c.jsx(Rm,{}),c.jsx(k,{sx:{marginLeft:"auto",flexShrink:0},children:c.jsx(Vm,{})})]})})}),i&&(()=>{const{open:K,onClose:ee,onStoreSelect:Q,...J}=s||{};return c.jsx(i,{open:S,onClose:R,onStoreSelect:_,selectedStores:F,...J})})(),!r&&c.jsx(Wm,{open:C,filters:O,onChange:D,onClose:()=>P(!1),onApply:K=>{t&&t(K!==void 0?K:O),P(!1)},priceRange:x})]})};function oI({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=sn(),i=bt(),s=i.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=L.useState(s),[d,p]=L.useState(!1),[u,h]=L.useState(a),x=Le(C=>C.dashboard),b=x?.companyId??"",g=L.useMemo(()=>x?.stores||[],[x?.stores]),f=$t(),m=L.useRef(!1);L.useEffect(()=>{!b&&!m.current&&(m.current=!0,f(Lr()))},[f,b]),L.useEffect(()=>{b&&f(jr())},[b,f]),L.useEffect(()=>{i.state?.filters&&setTimeout(()=>{l(i.state.filters)},0)},[i.state]);const y=C=>{l(C)},w=()=>{h(a),p(!0)},S=g.length>0?g:[{id:"all",name:"All Stores",storeCode:"all"}],v=i.state&&i.state.tenantStatus||{matched:!0};return c.jsxs("div",{className:"app-container",children:[c.jsx(Ja,{styles:r,onFilterChange:y,filters:a,stores:S,onOpenFilterModal:w,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:v}),c.jsx("div",{className:"product-main-container",style:{marginTop:"92px"}}),c.jsx(Wm,{open:d,filters:u,onChange:h,onClose:()=>p(!1),onApply:C=>{l(C!==void 0?C:u),p(!1)}})]})}const Um=Ke(c.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),iI=e=>c.jsx(Qn,{...e,viewBox:"0 0 24 24",children:c.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),sI=()=>{const e=xt(),t=$t(),n=sn(),{metrics:r,loading:i}=Le(C=>C.dashboard),[s,a]=L.useState({search:"",store:[],category:"all",status:"all"}),l=C=>a(C),[d,p]=L.useState(new Date);L.useEffect(()=>{t(Bo())},[t]),L.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),x=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),b=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),y=f?.availableProducts||0,w=f?.totalRequests||0,S=f?.availabilityPercentage||0,v=w>0?100-S:0;return c.jsxs(c.Fragment,{children:[c.jsx(Ja,{styles:n.topBar,filters:s,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),c.jsxs(k,{sx:{marginTop:"72px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",p:4,bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[c.jsx(Rn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:c.jsxs(Bg,{sx:{p:1},children:[c.jsx(W,{variant:"body2",color:"text.secondary",children:u}),c.jsx(W,{variant:"h6",fontWeight:400,color:"#000000",children:h}),c.jsx(W,{variant:"caption",color:"text.secondary",children:x})]})}),c.jsxs(k,{children:[c.jsxs(W,{variant:"h6",fontWeight:700,children:["Hi Ashok ",c.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),c.jsx(W,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),c.jsx(k,{sx:{mt:2},children:c.jsxs(Rn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:1},children:[c.jsx(iI,{sx:{fontSize:24,color:"#000000"}}),c.jsxs(W,{variant:"h6",fontWeight:700,children:["Products ",c.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:i?"...":b})]})]}),c.jsxs(W,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),c.jsxs(k,{sx:{display:"flex",gap:2},children:[c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(W,{variant:"body2",color:"#454545",children:"Active Products"}),c.jsx(W,{variant:"h6",fontWeight:700,children:i?"...":b}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:.5},children:[c.jsx(Um,{sx:{fontSize:16,color:"#4caf50"}}),c.jsx(W,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(W,{variant:"body2",color:"#454545",children:"Active Catalogs"}),c.jsx(W,{variant:"h6",fontWeight:700,children:i?"...":g}),c.jsx(W,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),c.jsxs(Rn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[c.jsx(W,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),c.jsxs(W,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[i?"...":`${S}%`,c.jsx(W,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:i?"":`${m(y)}/${m(w)}`})]}),c.jsx(W,{variant:"caption",color:"error",children:i?"":`${v.toFixed(0)}% missing`})]})]})]})})]})]})};function Wi({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1}){const a=xt(),l=sn(),[d]=L.useState({matched:!1,error:"",apiResponse:null,loading:!1});let p=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const h=Le(g=>g?.dashboard)?.products||[],x=t||(()=>a("/product-setting")),b=!r&&!e&&Array.isArray(h)&&h.length===0;return c.jsx(k,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:c.jsx(k,{sx:p.wrapper,children:c.jsxs(k,{sx:p.card,children:[c.jsxs(k,{sx:p.iconContainer,children:[c.jsxs(k,{sx:p.sparkleContainer,children:[c.jsx(k,{sx:p.sparkleLeft}),c.jsx(k,{sx:p.sparkleCenter}),c.jsx(k,{sx:p.sparkleRight})]}),c.jsx(k,{sx:p.inboxIcon,children:c.jsx(k,{sx:p.notch})})]}),c.jsx(W,{sx:p.title,children:r?"Session Expired":n?`No Product in ${n} Category`:"No Products"}),!s&&c.jsx(W,{sx:p.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!b?`No products found in the "${n}" category.`:b?"No products found in store inventory. Start syncing to add products.":d.matched?"Active integrations fetched successfully":d.error?d.error:"No active integration found for this tenant id"}),!s&&!e&&!r&&b&&!i&&c.jsx(W,{component:"a",href:"#",sx:p.actionLink,onClick:g=>{g.preventDefault(),x()},children:"Start Syncing Products"})]})})})}const Hm=Ke(c.jsx("path",{d:"M19 6.41 17.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"),aI="#22c55e";function qm(e){const{sx:t,color:n=aI,fontSize:r,...i}=e;return c.jsxs(Qn,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[c.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),c.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function lI({catalogSlug:e="",onClose:t}){const n=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",r=()=>{n&&navigator.clipboard.writeText(n).then(()=>{}).catch(()=>{})};return c.jsxs(k,{sx:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},children:[c.jsx(k,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:c.jsx(qm,{sx:{fontSize:40}})}),c.jsxs(k,{sx:{flex:1,minWidth:0,pt:.25},children:[c.jsx(W,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),c.jsx(W,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),c.jsx(W,{component:"button",onClick:r,sx:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},children:"Copy Share Link"})]}),c.jsx(ut,{onClick:t,size:"small","aria-label":"Close",sx:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}},children:c.jsx(Hm,{sx:{fontSize:20}})})]})}const cI=Ke(c.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),dI=Ke(c.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function At({size:e,style:t,sx:n,...r}){return c.jsx(dI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const Qa={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Ym={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},uI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Gm=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60*60));if(r>=24){const i=Math.floor(r/24);return`Sync ${i} day${i>1?"s":""} ago`}return`Sync ${r}h ago`},Za=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},Km=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s})=>{const a=e?.metrics||{},l=e?.productDashboardMetrics||{},d=!t,p=t?`${t} Products`:"Categories",u=t?l.productCount!=null?l.productCount:n:d&&(a.activeCategories!=null||a.activeProducts!=null)?a.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,h=t?"":"Products",x=t?"":d&&a.activeProducts!=null?a.activeProducts:e?.homePageCardSummary?.totalProducts??0,b=a?.lastSyncTime,g=l?.lastSyncTime,f=Gm(d?b:g||b),m=d&&a.activeCatalogues!=null?a.activeCatalogues:t&&l.activeCatalogues!=null?l.activeCatalogues:i,y=a.onShelfYesterdayPerc!=null?Math.round(Number(a.onShelfYesterdayPerc)):null,w=a.totalOnShelfYesterdayCount!=null?Number(a.totalOnShelfYesterdayCount):null,S=a.totalStockYesterdayCount!=null?Number(a.totalStockYesterdayCount):null,v=a.missingOnShelfYesterdayPercent!=null?Math.round(Number(a.missingOnShelfYesterdayPercent)):null,C=l.onShelfYesterdayPerc!=null?Math.round(Number(l.onShelfYesterdayPerc)):null,P=l.totalOnShelfYesterdayCount!=null?Number(l.totalOnShelfYesterdayCount):null,O=l.totalStockYesterdayCount!=null?Number(l.totalStockYesterdayCount):null,D=l.missingOnShelfYesterdayPercent!=null?Math.round(Number(l.missingOnShelfYesterdayPercent)):null,N=d?y!=null?`${y}%`:"78%":C!=null?`${C}%`:"78%",I=d?w!=null&&S!=null?`${Za(w)}/${Za(S)}`:"78/100k":P!=null&&O!=null?`${Za(P)}/${Za(O)}`:"78/100k",F=d?v!=null?`${v}% Missing`:"22% missing":D!=null?`${D}% Missing`:"22% missing",E=!!t,A=E?"8px":"12px",M=E?261.3333435058594:void 0,B=101;return c.jsx(Or,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:c.jsxs(k,{sx:{width:"100%",maxWidth:"100%",height:E?101:"auto",gap:A,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[c.jsx(jd,{cardWidth:M??344,cardHeight:B,title:p,titleValue:u,subtitle:h,subtitleValue:x,recentText:f,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:E?void 0:"2 1 180px"}),c.jsx(jd,{cardWidth:M??220,cardHeight:B,title:"Active Catalogs",titleValue:m,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:E?void 0:"1 1 200px"}),c.jsx(jd,{cardWidth:M??220,cardHeight:B,title:"On Shelf Yesterday",titleValue:N,thirdVaue:I,recentText:F,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:E?void 0:"1 1 200px"})]})})};function jd({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:a="",recentText:l="",recentTextColor:d="#808080",btnLabel:p="",tickMarkRequired:u=!1,linkRequired:h=!1,onBtnClick:x,isThirdCard:b=!1,flexGrow:g=!1,flexOverride:f}){const m={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},y={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},w={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},S={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return c.jsxs(Rn,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:f??(g?"1 1 200px":"0 0 auto"),height:t,opacity:1,gap:"1px",borderRadius:"12px",bgcolor:"#fff",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"},children:[c.jsx(k,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:b?c.jsx(c.Fragment,{children:c.jsxs(k,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(W,{sx:{...Qa,height:16},children:n}),c.jsxs(k,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[c.jsx(W,{sx:{...m},children:i}),c.jsx(W,{sx:{...y},children:s})]})]})}):c.jsxs(c.Fragment,{children:[n&&c.jsxs(k,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(W,{sx:{...Qa,width:158,height:16},children:n}),c.jsx(W,{sx:{...Ym,width:32,height:32},children:i}),s&&c.jsx(W,{component:"span",sx:{...Qa,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&c.jsxs(k,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[c.jsx(W,{sx:{...Qa,width:158,height:16},children:r}),c.jsx(W,{sx:{...Ym,width:47,height:32},children:a})]})]})}),c.jsx(Xt,{}),c.jsx(k,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:b?c.jsxs(c.Fragment,{children:[c.jsx(k,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:c.jsx(W,{sx:{...w,whiteSpace:"nowrap"},children:l})}),p&&c.jsxs(k,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[c.jsx(Ye,{variant:"text",size:"small",onClick:x,sx:{...S,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:p}),c.jsx(At,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):c.jsxs(c.Fragment,{children:[c.jsxs(k,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[u&&c.jsx(qm,{sx:{width:12,height:12,mr:.5}}),h&&c.jsx(cI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),c.jsx(W,{sx:{...uI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:l})]}),p&&c.jsx(k,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:c.jsxs(Ye,{variant:"text",size:"small",onClick:x,sx:{color:"#2D64B8",textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:[p,c.jsx(At,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const pI=Ke(c.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function Bd(e){return c.jsx(pI,{...e})}function fI(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function Xm(e){return e?.categoryName??e?.name??""}function hI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=I=>r.some(F=>Xm(F)===Xm(I)),a=e.length>0&&e.every(s),l=e.some(s),[d,p]=L.useState(!1),[u,h]=L.useState([]),[x,b]=L.useState(0),[g,f]=L.useState(""),[m,y]=L.useState(0),w=Li("(max-width:600px)"),S=Li("(max-width:900px)"),v=Li("(max-width:400px)");let C=4;w?C=1:S&&(C=2);const P=(I,F,E,A)=>{const M=Array.isArray(I)?I:[],B=Number.isFinite(Number(A))?Number(A):M.length;if(B<=0)return;const $=B-1,j=Math.max(0,Math.min(F,$));h(M),b(j),y(B),f(E||""),p(!0)},O=()=>{p(!1)},D=()=>{b(I=>I>0?I-1:I)},N=()=>{b(I=>I<m-1?I+1:I)};return c.jsxs(c.Fragment,{children:[c.jsx(Or,{maxWidth:!1,sx:{width:"100%",px:0},children:c.jsxs(Rn,{sx:{...t.categoryTable,width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[c.jsxs(k,{sx:{...t.categoryTableHeader,width:"100%"},children:[i&&c.jsx(k,{sx:t.categoryTableHeaderCheckboxCol,children:c.jsx(Ot,{checked:a,indeterminate:l&&!a,onChange:()=>{a?e.forEach(I=>i(I)):e.forEach(I=>{s(I)||i(I)})},size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})})})}),c.jsxs(k,{sx:t.categoryTableHeaderCategoryCell,children:["Category",c.jsx(Bd,{sx:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"}})]}),!v&&c.jsxs(c.Fragment,{children:[c.jsx(k,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),c.jsx(k,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),c.jsx(k,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((I,F)=>{const E=Array.isArray(I.images)?I.images:[],A=E.slice(0,C),M=Number.isFinite(Number(I.productCount))?Number(I.productCount):E.length,B=Math.max(M-A.length,0);return c.jsxs(k,{sx:{...t.categoryTableRow(F),width:"100%",flexDirection:v?"column":t.categoryTableRow?.flexDirection,alignItems:v?"flex-start":t.categoryTableRow?.alignItems},children:[i&&c.jsx(k,{sx:t.categoryTableRowCheckboxFrame,children:c.jsx(Ot,{checked:s(I),onChange:()=>i(I),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF",outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"},"& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),checkedIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),c.jsxs(k,{sx:{...t.categoryNameCell,width:v?"100%":"auto"},children:[c.jsx(W,{sx:t.categoryName,children:I.categoryName}),c.jsxs(W,{sx:t.categoryProducts,children:[I.productCount," Products"]}),c.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",fI(I.lastUpdated)]})]}),c.jsxs(k,{sx:{...t.categoryStockCell,width:v?"100%":"auto",mt:v?1:0},children:[c.jsxs(W,{sx:t.categoryStock(F),children:[I.totalStock,"/",I.totalOsa]}),c.jsx(W,{sx:t.categoryOSA(F),children:I.osaPercent!=null?c.jsxs(c.Fragment,{children:[c.jsxs(k,{component:"span",sx:Number(I.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(I.osaPercent)),"%"]})," on shelf"]}):""})]}),c.jsxs(k,{sx:{...t.categoryImagesCell,width:v?"100%":"auto",mt:v?1:0},children:[A.map(($,j)=>c.jsx(Fa,{src:$,alt:(I.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>P(E,j,I.categoryName||"",M)},j)),B>0&&c.jsx(k,{onClick:()=>P(E,A.length,I.categoryName||"",M),sx:{...t.categoryImage,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},children:c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},children:["+",B," More"]})})]}),c.jsx(k,{sx:{...t.categoryViewCell,width:v?"100%":"auto",justifyContent:v?"flex-end":t.categoryViewCell?.justifyContent,mt:v?1:0},children:c.jsxs(Ye,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:I.categoryName,...I}),children:["View",c.jsx(At,{sx:t.categoryViewButtonIcon})]})})]},I.categoryName||F)})]})}),c.jsxs(lo,{open:d,onClose:O,maxWidth:"lg",fullWidth:!0,children:[c.jsxs(co,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},children:["Image Preview",g?` - ${g}`:""]}),c.jsx(Ye,{onClick:O,sx:{textTransform:"none",fontSize:14},children:"Close"})]}),c.jsx(Ti,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},children:m>0&&c.jsxs(c.Fragment,{children:[c.jsx(k,{sx:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},children:u[x]?c.jsx(k,{component:"img",src:u[x],alt:(g||"Category")+` image ${x+1}`,sx:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"}}):c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},children:(g||"Category")+` image ${x+1}`})}),c.jsxs(k,{sx:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[c.jsx(Ye,{variant:"outlined",size:"small",onClick:D,disabled:x<=0,sx:{textTransform:"none"},children:"Previous"}),c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"},children:[x+1," of ",m]}),c.jsx(Ye,{variant:"outlined",size:"small",onClick:N,disabled:x>=m-1,sx:{textTransform:"none"},children:"Next"})]})]})})]})]})}const gI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function mI({sx:e={},...t}){return c.jsx(k,{component:"img",src:gI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const yI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function bI({sx:e={},...t}){return c.jsx(k,{component:"img",src:yI,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const xI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function vI({sx:e={},...t}){return c.jsx(k,{component:"img",src:xI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const Wd={borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:"#2D64B8",height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:"#255aa3"}},Rd={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},Vd={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},Ud={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},Jm=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i})=>{const s=r||[],a=i||[],l=s.length>0,d=a.length>0;if(!l&&!d)return null;const p=d?a.length:s.length,u=d?`${p} categor${p===1?"y":"ies"} selected`:`${p} items selected`;return c.jsxs(k,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:640,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden"},children:[c.jsx(W,{sx:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:u}),c.jsx(k,{sx:{flex:1,minWidth:8,flexShrink:1}}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[l&&c.jsxs(k,{component:"button",onClick:e,sx:{...Wd,width:139},children:[c.jsx(k,{sx:Rd,children:c.jsx(mI,{sx:Vd})}),c.jsx(W,{component:"span",sx:Ud,children:"Promo Print"})]}),c.jsxs(k,{component:"button",onClick:t,sx:{...Wd,width:158},children:[c.jsx(k,{sx:Rd,children:c.jsx(bI,{sx:Vd})}),c.jsx(W,{component:"span",sx:Ud,children:"Create Catalog"})]}),c.jsxs(k,{component:"button",onClick:n,sx:{...Wd,width:147},children:[c.jsx(k,{sx:Rd,children:c.jsx(vI,{sx:Vd})}),c.jsx(W,{component:"span",sx:Ud,children:"OSA Request"})]})]})]})},SI=Ke(c.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Ri(e){return c.jsx(SI,{...e})}const wI=Ke([c.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),c.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function Hd(e){return c.jsx(wI,{...e})}const CI=Ke([c.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),c.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function qd(e){return c.jsx(CI,{...e})}const EI=()=>{const e=$t(),t=xt(),n=bt(),r=sn(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},a=r.categoryDetail,[l,d]=L.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:p,companyId:u,loading:h,error:x}=Le(q=>q.dashboard),b=L.useMemo(()=>p&&typeof p=="object"&&Object.keys(p).length>0?{matched:!0,error:"",apiResponse:p,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[p]),g=Le(q=>q.dashboard),{categoryList:f=[],stores:m=[],categoryPagination:y={}}=g||{},w=f,{currentPage:S=1,limit:v=10,totalCount:C=0,totalPages:P=1,hasNextPage:O=!1}=y,{sharedCatalogues:D=[],sharedCataloguesTotal:N=0,lastStableActiveCatalogsCount:I=null}=Le(q=>q.productSettings??{}),F=L.useMemo(()=>Array.isArray(D)?D.filter(q=>q.status===!0).length:0,[D]),A=N>0&&D.length>=N?F:I??F,M=Array.isArray(f)&&f.length>0,B=()=>{b.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},$=m.length>0?m:[{id:"all",name:"All Stores",storeCode:"all"}],j=q=>{d(q)},_=L.useCallback((q={})=>{const ne=Array.isArray(l.store)?l.store:[],U={...q};if(ne.length>0&&!ne.includes("all")){const de=ne.map(re=>m.find(pe=>pe.id===re)?.storeCode).filter(Boolean);de.length>0&&(U.storeCode=de[0])}return l.search!=null&&String(l.search).trim()!==""&&(U.search=String(l.search).trim()),l.minOsa!=null&&l.minOsa!==""&&(U.minOsa=l.minOsa),l.maxOsa!=null&&l.maxOsa!==""&&(U.maxOsa=l.maxOsa),l.order!=null&&l.order!==""&&(U.order=l.order),U},[l.store,l.search,l.minOsa,l.maxOsa,l.order,m]),R=L.useRef(null);L.useEffect(()=>{if(!u)return;const q=_({page:S,limit:v}),ne=JSON.stringify(q);R.current!==ne&&(R.current=ne,e(ur(q)))},[u,S,v,_,e]);const z=q=>{const ne=_({page:q,limit:v});e(ur(ne))},V=q=>{const ne=_({page:1,limit:q});e(ur(ne))},[G,K]=L.useState(!1);L.useEffect(()=>{!u&&!G?e(Lr()).finally(()=>{K(!0)}):u&&queueMicrotask(()=>K(!0))},[e,u,G]);const ee=L.useRef(null);L.useEffect(()=>{u&&u!==ee.current&&(ee.current=u,e(Ft(u)),e(ur({page:1,limit:10})),e(jr()),e(Bo()),e(tn({page:1})))},[e,u]),L.useEffect(()=>{if(!u||N<=0)return;(Array.isArray(D)?D.length:0)<N&&e(tn({page:1,limit:N}))},[u,N,D?.length,e,D]);const Q=q=>{t(`/category?categoryName=${encodeURIComponent(q.name||q.categoryName)}`,{state:{filters:l}})},[J,ae]=L.useState([]),se=L.useCallback(q=>{const ne=q?.categoryName??q?.name??"";ae(U=>U.some(re=>(re?.categoryName??re?.name)===ne)?U.filter(re=>(re?.categoryName??re?.name)!==ne):[...U,q])},[]),le=G&&x&&!u;return c.jsxs(c.Fragment,{children:[i&&c.jsx(lI,{catalogSlug:i.catalogSlug,onClose:s}),!le&&c.jsx(Ja,{filters:l,onFilterChange:j,styles:a.topBar,stores:$,tenantStatus:b,hasProducts:M}),c.jsx(k,{sx:le?{marginTop:0}:M?a.contentWrapper??{marginTop:"72px",display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:"72px"},children:le?c.jsx(Wi,{handleStartSyncing:B,loading:!1,sessionExpired:!0}):!G&&!u?c.jsx(Wi,{handleStartSyncing:B,loading:!0,sessionExpired:!1}):M?c.jsx(k,{sx:a.root,children:c.jsxs(Or,{maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[c.jsx(Km,{productState:g,categoryCount:f.length,activeCatalogsCount:A,onManageClick:()=>t("/catalogs/manage-shared")}),f.length>0?c.jsxs(c.Fragment,{children:[c.jsx(hI,{categoryData:w,styles:a,onView:Q,selectedCategories:J,onToggleCategory:se}),c.jsx(Jm,{selectedCategories:J,onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>{}}),C>0&&(()=>{const q=a?.categoryTablePagination??{};return c.jsxs(k,{sx:{...q.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[c.jsxs(k,{sx:q.resultsPerPageBox,children:[c.jsx(W,{component:"span",sx:q.resultsPerPageText,children:"Results per page"}),c.jsx(En,{value:v,onChange:ne=>V(Number(ne.target.value)),IconComponent:Ri,variant:"standard",disableUnderline:!0,sx:q.select,children:[5,10,20,50].map(ne=>c.jsx(yt,{value:ne,children:ne},ne))})]}),c.jsxs(k,{sx:q.navBox,children:[c.jsx(ut,{size:"small",disabled:S<=1,onClick:()=>z(1),sx:q.iconButton,title:"First page",children:c.jsx(Hd,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:S<=1,onClick:()=>z(S-1),sx:q.iconButton,title:"Previous page",children:c.jsx(ji,{sx:{width:16,height:16,opacity:1}})}),c.jsx(W,{component:"span",sx:q.pageText,children:C===0?"0 of 0":`${(S-1)*v+1}-${Math.min(S*v,C)} of ${C}`}),c.jsx(ut,{size:"small",disabled:!O||S>=P,onClick:()=>z(S+1),sx:q.iconButton,title:"Next page",children:c.jsx(At,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:!O||S>=P,onClick:()=>z(P),sx:q.iconButton,title:"Last page",children:c.jsx(qd,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):c.jsxs(k,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[c.jsx(W,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),c.jsx(W,{sx:{fontSize:14,color:"#808080"},children:l.search&&String(l.search).trim()?"No category found for your search.":"No category available."})]})]})}):c.jsx(Wi,{handleStartSyncing:B,loading:h,sessionExpired:!1,hasIntegration:b.matched})})]})};function Tn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:d=!1,customStyle:p={},titleColorWhenDisabled:u,titleColor:h,subtitleColor:x}){const b={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?a:{}},g=d?u||"#999999":h||"#000000",f=d?"#bbbbbb":x||"#808080",m={card:{...b,...p},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return c.jsxs(k,{onClick:d?void 0:i,sx:{...m.card,...p||{}},children:[e&&c.jsx(k,{sx:m.icon,children:e}),c.jsxs(k,{sx:m.cardInner,children:[c.jsxs(k,{children:[c.jsx(W,{sx:m.title,children:t}),n&&c.jsx(W,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),l&&c.jsx(k,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:l})]})]})}const TI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Qm=e=>{const t=PI(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),OI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var kI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const AI=L.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},d)=>L.createElement("svg",{ref:d,...kI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Zm("lucide",i),...!s&&!OI(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>L.createElement(p,u)),...Array.isArray(s)?s:[s]]));const kr=(e,t)=>{const n=L.forwardRef(({className:r,...i},s)=>L.createElement(AI,{ref:s,iconNode:t,className:Zm(`lucide-${TI(Qm(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Qm(e),n};const II=kr("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const NI=kr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ey=kr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const FI=kr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const MI=kr("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);const DI=kr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const _I=kr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Yd({size:e=15,color:t="#454545",...n}){return c.jsx(DI,{size:e,color:t,...n})}const $I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",zI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function LI(e){const{sx:t={},...n}=e;return c.jsxs(k,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[c.jsx(k,{component:"img",src:$I,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),c.jsx(k,{component:"img",src:zI,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function ty({size:e=15,color:t="#454545",...n}){return c.jsx(II,{size:e,color:t,...n})}function jI({size:e=15,color:t="#454545",...n}){return c.jsx(FI,{size:e,color:t,...n})}function BI({size:e=15,color:t="#454545",...n}){return c.jsx(MI,{size:e,color:t,...n})}function WI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:d={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=xt(),x=d?.configs?.sync_frequency||"Daily",b=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>c.jsxs(k,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[c.jsx(k,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),c.jsxs(k,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[c.jsx(Tn,{icon:c.jsx(Yd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u,action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Tn,{icon:c.jsx(LI,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:c.jsx(k,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Am,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),y=(v,C)=>c.jsxs(k,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),c.jsxs(k,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:C,children:[c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(Bi,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),w=v=>{const C=v?x:"Daily",P=v?b:"10:00 AM",O=!v&&i===0;return c.jsxs(k,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[y(O,l),!v&&i===0&&c.jsx(Tn,{icon:c.jsx(Bi,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u,action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&c.jsxs(c.Fragment,{children:[c.jsx(Tn,{icon:c.jsx(Bi,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:u,action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Tn,{icon:c.jsx(Yd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u,action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&c.jsxs(c.Fragment,{children:[c.jsx(Tn,{icon:c.jsx(Bi,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0,titleColorWhenDisabled:"#454545",action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),c.jsx(Tn,{icon:c.jsx(Yd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})}),c.jsxs(k,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[c.jsx(k,{sx:{width:296},children:c.jsx(Tn,{icon:c.jsx(ty,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:C,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})}),c.jsx(k,{sx:{width:296},children:c.jsx(Tn,{icon:c.jsx(jI,{size:15,color:"#454545"}),title:"Sync Time",subtitle:P,highlightStyle:u,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})})]}),c.jsx(Tn,{icon:c.jsx(BI,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u,action:c.jsx(At,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return c.jsxs(k,{sx:f,children:[m(),w(S)]})}const rr=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=(i=12)=>!n||!Array.isArray(n)||n.length===0?null:c.jsx(k,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:n.map((s,a)=>c.jsxs(L.Fragment,{children:[a>0&&c.jsx(ey,{size:i,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:a===n.length-1?700:400,fontSize:a===n.length-1?"16px":"12px",lineHeight:a===n.length-1?"20px":"16px",letterSpacing:0,color:a===n.length-1?"#000000":"#808080",verticalAlign:"middle"},children:s.label})]},s.label))});return c.jsx(k,{sx:{position:"fixed",top:0,left:{xs:0,md:260},right:0,width:{xs:"100%",md:"auto"},height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:"#FFFFFF",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:c.jsxs(k,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"},children:[c.jsxs(k,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[c.jsxs(k,{onClick:t,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[c.jsx(ji,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),c.jsx(W,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),c.jsx(k,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?r(12):c.jsxs(c.Fragment,{children:[c.jsx(W,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),c.jsx(ey,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),c.jsx(W,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),c.jsx(Xt,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),c.jsxs(k,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[c.jsx(Rm,{}),c.jsx(Vm,{})]})]})})};function RI({open:e,onClose:t,onSave:n}){mn();const r=sn(),[i,s]=L.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>s(h.target.value),d=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return c.jsx(ao,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:c.jsxs(k,{sx:u.container,children:[c.jsxs(k,{sx:u.header,children:[c.jsx(W,{sx:u.headerTitle,children:"Sync Method"}),c.jsx(ut,{onClick:t,size:"small",sx:u.closeButton,children:c.jsx(_I,{size:20})})]}),c.jsxs(k,{sx:u.content,children:[c.jsx(Ra,{value:i,onChange:l,children:a.map(h=>c.jsx(Cn,{value:h.value,control:c.jsx(fo,{icon:c.jsx(k,{sx:u.radioIcon}),checkedIcon:c.jsx(NI,{size:18,color:"#000"}),sx:u.radioChecked}),label:c.jsx(W,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),c.jsxs(k,{sx:u.upgradeSection,children:[c.jsx(W,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),c.jsx(W,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),c.jsx(k,{sx:u.footer,children:c.jsx(Ye,{fullWidth:!0,variant:"contained",onClick:d,sx:u.saveButton,children:"Save"})})]})})}const VI=({isOpen:e,onClose:t,onConfirm:n})=>{const r=sn();let i;return i=r.productSettingModal,c.jsx(ao,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:c.jsxs(k,{sx:i.container,children:[c.jsx(k,{sx:i.header,children:c.jsx(W,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),c.jsxs(k,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ye,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ye,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function UI(){const e=bt(),t=xt(),n=$t(),{companyId:r,integrationData:i,loading:s}=Le(A=>A?.dashboard||{}),[a,l]=L.useState(!0),[d,p]=L.useState(),[u,h]=L.useState(0),[x,b]=L.useState(""),[g,f]=L.useState(!1),[m,y]=L.useState(!1),[w,S]=L.useState(!1),[v,C]=L.useState(""),P=L.useRef(null),O=L.useRef(!1);L.useEffect(()=>{const A=e.state?.tenantIntegrationMatched===!0;r&&r!==P.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?P.current=r:(P.current=r,n(Ft(r)))),A&&r&&!s&&!O.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),O.current=!0,n(Ft(r))),A||(O.current=!1)},[r,n,s,i,e.state]),L.useEffect(()=>{let A=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(A=e.state.tenantIntegrationMatched);const M=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),B=e.state?.fromSyncStep===1?1:A===!0||M?3:0;queueMicrotask(()=>h(B))},[e.state,i]);const D=()=>f(!0),N=A=>{b(A),h(1),f(!1)},I=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},F=async()=>{const A=i?.channelId||i?.id;if(!A){C("Channel ID not found"),S(!0),y(!1);return}y(!1);try{const M=await n(Uo(A));if(Uo.fulfilled.match(M)){const B=M.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(B),S(!0),B==="Sync started successfully"&&setTimeout(()=>{n(Ft(r)),n(_n()),t("/")},2500)}else C("Sync not started successfully"),S(!0)}catch{C("Sync not started successfully"),S(!0)}},E=()=>{u===1?(h(0),b("")):t("/")};return c.jsxs(k,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[c.jsx(rr,{breadcrumbRight:"Settings",onBack:E}),c.jsx(RI,{open:g,onClose:()=>f(!1),onSave:N}),c.jsx(VI,{isOpen:m,onClose:()=>y(!1),onConfirm:F}),c.jsx(go,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsx(WI,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:d,setSelectedCard:p,syncStep:u,syncMethod:x,integrationData:i,onSetupSync:D,onSetupFTP:I,onSyncNow:()=>y(!0)})]})}const HI=["Setup FTP","Check data","Start Sync"],qI=e=>{const{onBack:t}=e,n=bt(),r=xt();n.state?.tenantIntegrationData;const i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),c.jsxs(k,{sx:{maxWidth:800,mx:"auto",pt:"72px",px:2},children:[c.jsx(k,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:HI.map((a,l)=>c.jsx(W,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:l===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:a},a))}),c.jsx(k,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:c.jsxs(rn,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(k,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},children:"Setup Instructions"}),c.jsxs(k,{component:"ol",sx:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[c.jsx("li",{children:"Directory should have just one file"}),c.jsx("li",{children:"File format must be in CSV (comma separated)"}),c.jsx("li",{children:"File structure should be flat"})]})]}),c.jsx(k,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:c.jsx(Ye,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})]})};function YI(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(Qn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function GI(e){const{sx:t,fontSize:n,...r}=e;return c.jsxs(Qn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[c.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),c.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const KI=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return c.jsx(k,{sx:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",borderColor:i,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},children:r?c.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):c.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},el=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:l,filledSegments:d,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const x=mn().transitions?.duration?.standard??400,[b,g]=L.useState(0),[f,m]=L.useState(!1),y=Math.max(1,e.length),w=50/y,S=100*(y-1)/y,v=40/y,C=y>1?100/y:0,P=100,O=L.useMemo(()=>{let D;if(typeof d=="number"){const I=typeof p=="number"?p:0,F=d-I;D=C*(I+b*F)}else typeof l=="number"?D=C*(l+b):s?D=b?S:0:r?D=b?S*.5:0:D=b?v:0;const N=Math.min(D,S)/S;return Math.round(N*P)},[b,d,p,l,s,r,C,S,v]);return L.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{g(0),m(!1)},0);const N=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(N)}setTimeout(()=>{g(0),m(!1)},0);const D=setTimeout(()=>{g(1),setTimeout(()=>m(!0),x)},50);return()=>clearTimeout(D)},[t,e.length,r,a,d,p,x]),c.jsxs(k,{sx:{width:800,opacity:1},children:[c.jsx(k,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((D,N)=>c.jsxs(k,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[c.jsx(KI,{active:N===t,completed:N<t,showBlue:N===0&&i||N===1&&n&&(f||u)||N===2&&s}),c.jsx(k,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:N===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:D})]},D))}),c.jsx(k,{sx:{width:"100%",mt:1,mb:0},children:c.jsx(k,{sx:{marginLeft:`${w}%`,width:`${S}%`},children:c.jsx(lm,{variant:"progress",steps:P+1,position:"static",activeStep:O,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},XI=e=>e.dashboard?.companyId||"";function JI(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const QI=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=L.useState(null),s=bt(),a=xt(),l=Le(XI),[d,p]=L.useState(!1);L.useEffect(()=>{let N,I;return setTimeout(()=>{p(!1),N=setTimeout(()=>{I=setTimeout(()=>p(!0),600)},100)},0),()=>{N&&clearTimeout(N),I&&clearTimeout(I)}},[]);const[u,h]=L.useState(!1),x=localStorage.getItem("selectedSyncMethod")||"sftp",[b,g]=L.useState(`${x}:`),[f,m]=L.useState(""),[y,w]=L.useState(""),S=$t(),v=Le(N=>N.productSettings?.loading||!1),C=Le(N=>N.productSettings?.error||null),P=mn();Li(P.breakpoints.up("lg"));const O=Le(N=>N.productSettings.syncData);L.useEffect(()=>{const N=s.state?.ftpConfig,I=s.state?.tenantIntegrationData;if(O&&O.serverAddress){setTimeout(()=>{g(O.serverAddress||""),m(O.configs&&O.configs.username||""),w(O.configs&&O.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const F=t.type||"sftp",E=t.host||"",A=t.port||"",M=t.path||"",B=`${F}://${E}${A?`:${A}`:""}${M?`/${M}`:""}`;setTimeout(()=>{g(B),m(t.username||""),w(t.password||"")},0);return}if(I&&I.configs){const F=I.configs,E=F.type||I.type||"sftp",A=F.host||"",M=F.port||"",B=F.path||"",$=`${E}://${A}:${M}/${B}`,j=F.username||"",_=F.password||"";setTimeout(()=>{g($),m(j),w(_)},0);return}if(N){const E=`${N.type||"sftp"}://${N.host}:${N.port}/${N.path}`,A=N.username||"",M=N.password||"";setTimeout(()=>{g(E),m(A),w(M)},0)}},[s.state,O,t]);const D=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:N,host:I,port:F,path:E}=JI(b),A=await S(Ro({serverAddress:b,username:f,password:y,companyId:l}));if(!Ro.fulfilled.match(A))return;const M=A.payload;if(s.state?.fromSettingsIcon){const j=M?.entity_type||r?.entity_type||"products",_={...r||{},companyId:l,tenantId:l,type:N,serverAddress:b,configs:{host:I,port:Number(F),path:E,username:f,password:y,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:j,mappings:r?.mappings||M?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(_,null,2)),i(_),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:_}});return}const B=M?.entity_type||"",$={tenantId:l,type:N,serverAddress:b,configs:{host:I,port:Number(F),path:E,username:f,password:y,sync_frequency:"",sync_time:""},entity_type:B||"products",mappings:M?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify($,null,2)),S(Ns($)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify($)),e.onNext&&e.onNext({putjson:$})};return c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),c.jsxs(k,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:"88px",left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(k,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(el,{...n,showSetupFtpBlueTick:d})}),c.jsx(k,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:c.jsxs(k,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx(k,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:c.jsx(W,{sx:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},children:"Login Details"})}),c.jsxs(k,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsxs(k,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),c.jsx("input",{type:"text",value:b,onChange:N=>g(N.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(k,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),c.jsx("input",{type:"text",value:f,onChange:N=>m(N.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),c.jsxs(k,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[c.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),c.jsx("input",{type:u?"text":"password",value:y,onChange:N=>w(N.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),c.jsx(ut,{"aria-label":"toggle password visibility",onClick:()=>h(N=>!N),tabIndex:-1,size:"small",sx:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},children:u?c.jsx(GI,{}):c.jsx(YI,{})})]})]}),c.jsxs(k,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[c.jsx(Ye,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),c.jsx(Ye,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:D,disabled:v,children:v?"Loading...":"Next"})]}),C&&c.jsx(W,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})]})},ZI=e=>e.productSettings.ftpColumns||[],eN=e=>e.productSettings.preview||[],tN=e=>e.productSettings.loading,nN=e=>e.productSettings.error,rN=e=>e.productSettings.existingMapping,oN=e=>e.productSettings.entity_type||"products",iN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=bt(),a=xt(),l=s.state?.fromSettingsIcon,[d,p]=L.useState(()=>{if(s.state?.putjson)return s.state.putjson;const $=window.localStorage.getItem("ftpSyncPutjson");return $?JSON.parse($):t.length>0?{mappings:t}:null}),[u,h]=L.useState([]),[x,b]=L.useState({}),g=Le(ZI),f=Le(eN),m=Le(tN),y=Le(nN),w=Le(rN),S=Le(oN),v=L.useRef(m);L.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>b({})),v.current=m},[m]);const C=L.useRef(!1);L.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>b({}))):C.current=!1},[w]);const P=$t();L.useEffect(()=>{async function $(){try{let j=[];if(w?.mappings?.length>0){const _=w.mappings.map(R=>R.target_field).filter(R=>R&&typeof R=="string");j=[...new Set(_)]}try{const _=await P(Ho(S));Ho.fulfilled.match(_)&&Array.isArray(_.payload)&&_.payload.filter(z=>z&&typeof z=="string").forEach(z=>{j.includes(z)||j.push(z)})}catch{}if(t&&t.length>0){const _=t.map(R=>R.target_field).filter(R=>R&&typeof R=="string"&&!j.includes(R));_.length>0&&(j=[...j,..._])}j=j.filter(_=>_&&typeof _=="string"),h(j)}catch{if(w?.mappings?.length>0){const j=w.mappings.map(R=>R.target_field).filter(R=>R&&typeof R=="string"),_=[...new Set(j)];h(_)}else h([])}}(S||w?.mappings?.length>0||t&&t.length>0)&&$()},[S,w,t,P]);const O=L.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const $=w.mappings.map(j=>j.source_field).filter(j=>j);if($.length>0)return $}return g&&g.length>0?g:[]},[w,g]),D=L.useMemo(()=>f.filter(j=>Object.keys(j).length>0),[f]),N=L.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const $={};return w.mappings.forEach(j=>{j.source_field&&j.target_field&&($[j.source_field]=j.target_field)}),$}return{}},[w]),F=w?.mappings?.length>0?{...N,...x}:{...x},E=mn();Li(E.breakpoints.up("lg"));const A=Le($=>$.productSettings.syncData),M=L.useMemo(()=>{if(A?.serverAddress)return A.serverAddress;const $=A?.configs||{},j=(A?.type||"sftp").toLowerCase(),_=$.host,R=$.port,z=$.path;if(!_)return"";let V=`${j}://${_}`;if(R!=null&&R!==""&&(V+=`:${R}`),z){const G=String(z).replace(/^\/+/,"");V+=`/${G}`}return V},[A]),B=()=>{const $=O.map(z=>({source_field:z||"",target_field:F[z]||""})).filter(z=>z.source_field&&z.target_field);if($.length===0)return;if(l&&d){const z={...d,tenantId:d.tenantId||d.companyId,type:d.type||A.type||"sftp",entity_type:d.entity_type||A.entity_type||"products",mappings:$};p(z),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),r?r({fromSettingsIcon:!0,putjson:z}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:z});return}const j=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),_=A.companyId||j.companyId||j.tenantId||"",R={...j,companyId:_,tenantId:_,type:A.type||j.type||"sftp",integration_type:A.integration_type||j.integration_type||"",entity_type:j.entity_type||A.entity_type||"products",configs:A.configs||j.configs||{},ftp_columns:O,preview:D,mappings:$};P(Ns(R)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(R)),r?r({putjson:R}):e.onNext&&e.onNext({putjson:R})};return c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),c.jsxs(k,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(k,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(el,{...i})}),c.jsx(k,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:c.jsxs(rn,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[c.jsxs(k,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsxs(k,{children:[c.jsx(W,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),M&&c.jsx(W,{variant:"body2",sx:{color:"#888",mt:.5},children:M})]}),c.jsxs(k,{children:[c.jsx(Ye,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),c.jsx(Ye,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:B,children:"Next"})]})]}),c.jsx(Dm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?c.jsx(k,{sx:{p:3,textAlign:"center"},children:"Loading..."}):y?c.jsx(k,{sx:{p:3,color:"red",textAlign:"center"},children:y}):O.length===0?c.jsx(k,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):c.jsxs(Nm,{size:"small",children:[c.jsxs($m,{children:[c.jsxs($i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),O.map(($,j)=>c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:$},$+j))]}),c.jsxs($i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),O.map(($,j)=>c.jsx(nr,{sx:{background:"#fafafa",borderBottom:"none"},children:c.jsxs(En,{value:F[$]||"",onChange:_=>b(R=>({...R,[$]:_.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[c.jsx(yt,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:c.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),u.map(_=>c.jsx(yt,{value:_,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:_},_))]})},j))]})]}),c.jsx(Mm,{children:D.length>0?D.map(($,j)=>c.jsxs($i,{children:[c.jsx(nr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:j===0?"Data preview":""}),O.map((_,R)=>c.jsx(nr,{sx:{background:"#fff",borderBottom:"none"},children:$[_]||""},R))]},j)):c.jsx($i,{children:c.jsx(nr,{colSpan:O.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},sN=e=>e.dashboard?.companyId||"",aN=e=>e.dashboard?.integrationData||null,lN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=bt(),s=xt(),a=$t(),l=Le(sN),d=Le(aN),p=i.state?.fromSettingsIcon,[u,h]=L.useState(()=>{if(i.state?.putjson){const _=JSON.parse(JSON.stringify(i.state.putjson));return _.mappings&&(_.originalMappings=JSON.parse(JSON.stringify(_.mappings))),_.configs?.sync_frequency&&!_.originalSyncFrequency&&(_.originalSyncFrequency=_.configs.sync_frequency),_.configs?.sync_time&&!_.originalSyncTime&&(_.originalSyncTime=_.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),_}const j=window.localStorage.getItem("ftpSyncPutjson");if(j){const _=JSON.parse(j);return _.mappings&&!_.originalMappings&&(_.originalMappings=JSON.parse(JSON.stringify(_.mappings))),_.configs?.sync_frequency&&!_.originalSyncFrequency&&(_.originalSyncFrequency=_.configs.sync_frequency),_.configs?.sync_time&&!_.originalSyncTime&&(_.originalSyncTime=_.configs.sync_time),_}return null});L.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[x,b]=L.useState(null),[g,f]=L.useState(null);L.useEffect(()=>{const j=i.state?.fromProductSetting;let _=null;if(j&&i.state?.integrationData)_=i.state.integrationData;else if(d&&Object.keys(d).length>0)_=d;else if(l&&!j){a(Ft(l)).then(R=>{if(Ft.fulfilled.match(R)){const z=R.payload;if(_=z&&z.data&&z.data[0]||null,_){b(_);const V=_.id||_.channelId||null;V&&f(V)}}});return}if(_){b(_);const R=_.id||_.channelId||null;R&&f(R)}},[l,i.state,d,a]);const m=!!p||!!x,y=j=>{if(!j)return"";const _=j.charAt(0).toUpperCase()+j.slice(1).toLowerCase();return _==="Daily"||_==="Day"?"Daily":_==="Weekly"||_==="Week"?"Weekly":_==="Monthly"||_==="Month"?"Monthly":_},[w,S]=L.useState(()=>{if(t)return y(t);const j=u?.configs?.sync_frequency?y(u.configs.sync_frequency):"";return j||"Daily"}),[v,C]=L.useState(n||u&&u.configs?.sync_time||"");L.useEffect(()=>{async function j(){if(l)try{const _=i.state?.fromProductSetting;let R=null;if(_&&i.state?.integrationData)R=i.state.integrationData;else if(d&&Object.keys(d).length>0)R=d;else{const z=await a(Ft(l));if(Ft.fulfilled.match(z)){const V=z.payload;R=V&&V.data&&V.data[0]||null}}if(R){const z=R.id||R.channelId||null;z&&f(z);const V=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),G={...R,companyId:R.companyId||l,entity_type:R.entity_type||V?.entity_type||"product",mappings:R.mappings||V?.mappings||[]},K=R.configs?.sync_frequency||"",ee=R.configs?.sync_time||"",Q=y(K);if(h(G),_){if(t){const J=y(t);S(J)}n&&C(n),h(J=>({...J,...G,originalSyncFrequency:t?y(t):J.originalSyncFrequency||Q,originalSyncTime:n||J.originalSyncTime||ee,configs:{...G.configs,sync_frequency:t?y(t).toLowerCase():G.configs?.sync_frequency,sync_time:n||G.configs?.sync_time}}))}else{const J=t?y(t):"";if(J)S(J);else if(Q)S(Q);else if(V?.configs?.sync_frequency){const ae=y(V.configs.sync_frequency);S(ae)}else S("Daily");n?C(n):ee?C(ee):V?.configs?.sync_time?C(V.configs.sync_time):C(""),h(G),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(G))}}}catch{const _=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&_?.configs?.sync_frequency?S(y(_.configs.sync_frequency)):t&&S(y(t)),!n&&_?.configs?.sync_time?C(_.configs.sync_time):n&&C(n)}}j()},[l]),L.useEffect(()=>{if(t){const j=y(t);S(j),u&&u.configs?.sync_frequency!==j&&h(_=>{const R={..._,configs:{..._.configs,sync_frequency:j}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(R)),R})}},[t]),L.useEffect(()=>{n&&(C(n),u&&u.configs?.sync_time!==n&&h(j=>{const _={...j,configs:{...j.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(_)),_}))},[n]),L.useEffect(()=>{if(u&&m&&(w||v)){const j=u.configs?.sync_frequency,_=u.configs?.sync_time;(j!==w||_!==v)&&h(R=>{const z={...R,configs:{...R.configs,sync_frequency:w||R.configs?.sync_frequency,sync_time:v||R.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z})}},[w,v,m]);const P=Le(j=>j.productSettings.syncData),O=j=>{const _=j.target.value;S(_),u&&h(R=>{const z={...R,configs:{...R.configs,sync_frequency:_}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z}),m||a(Ns({...P,configs:{...P&&P.configs||{},sync_frequency:_,sync_time:v}}))},D=j=>{const _=j.target.value;C(_),u&&h(R=>{const z={...R,configs:{...R.configs,sync_time:_}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z}),m||a(Ns({...P,configs:{...P&&P.configs||{},sync_frequency:w,sync_time:_}}))};function N(j){try{const _=new URL(j);return{type:_.protocol.replace(":",""),host:_.hostname,port:_.port,path:_.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[I,F]=L.useState(!1),[E,A]=L.useState(""),M=async()=>{const j=i.state?.fromProductSetting;if(m){if(!u){A("Update failed: missing data."),F(!0);return}let U={...u};u.originalMappings||(U.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],h(U)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(U.originalSyncFrequency=u.configs.sync_frequency||"",h(U)),!u.originalSyncTime&&u.configs?.sync_time&&(U.originalSyncTime=u.configs.sync_time||"",h(U));const de=JSON.parse(JSON.stringify(u.mappings||[])),re=JSON.parse(JSON.stringify(u.originalMappings||[]));let oe,pe;j?(oe=t?y(t):"",pe=n||""):(oe=u.originalSyncFrequency||u.configs?.sync_frequency||"",pe=u.originalSyncTime||u.configs?.sync_time||"",oe=y(oe));const he=j?!1:JSON.stringify(de)!==JSON.stringify(re),we=w!==oe,Ne=v!==pe,_e=(we||Ne)&&!he,Fe=he;if(_e){const ce=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!ce){A("Channel ID is missing. Please try again."),F(!0);return}const Xe={configs:{}};we&&(Xe.configs.sync_frequency=w.toLowerCase()),Ne&&(Xe.configs.sync_time=v);try{const Ae=await a(qo({channelId:ce,data:Xe}));if(Ae.error||qo.rejected.match(Ae)){const fe=Ae.payload||Ae.error?.message||"Update failed. Please try again.";A(fe),F(!0);return}let ie="";we&&!Ne?ie="SyncFrequency Updated":!we&&Ne?ie="SyncTime Updated":we&&Ne&&(ie="SyncTime and SyncFrequency Updated"),A(ie),F(!0),h(fe=>{const Ce={...fe,configs:{...fe.configs,sync_frequency:w.toLowerCase(),sync_time:v},originalSyncFrequency:w,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce});const te=i.state?.fromProductSetting;te&&l&&await a(Ft(l)),setTimeout(()=>{te&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Ae){const ie=Ae?.message||Ae?.response?.data?.message||"Update failed. Please try again.";A(ie),F(!0);return}}if(Fe){const ce={...u,configs:{...u.configs,sync_frequency:w.toLowerCase(),sync_time:v}};h(ce),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ce));const Xe=ce.tenantId||ce.companyId;if(!ce.configs){A("Configuration error. Please try again."),F(!0);return}const Ae=ce.entity_type||u?.entity_type;if(!Ae){A("Entity type is missing. Please try again."),F(!0);return}const ie={tenantId:Xe,type:ce.type,entity_type:Ae,configs:{host:ce.configs.host||"",port:ce.configs.port?Number(ce.configs.port):0,username:ce.configs.username||"",password:ce.configs.password||"",path:ce.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:v||""},mappings:(ce.mappings||[]).map(te=>({source_field:te.source_field,target_field:te.target_field}))};if(!ie.tenantId){A("Tenant ID is missing. Please try again."),F(!0);return}if(!ie.type){A("Sync type is missing. Please try again."),F(!0);return}if(!ie.entity_type){A("Entity type is missing. Please try again."),F(!0);return}try{const te=await a(Br(ie));if(Br.rejected.match(te)){const fe=te.payload||te.error?.message||"Update failed. Please try again.";A(fe),F(!0);return}Br.fulfilled.match(te)?(h(fe=>{const Ce={...fe,originalSyncFrequency:w,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ce)),Ce}),A("Sync Update Successfully"),F(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(A("Update failed. Please try again."),F(!0))}catch(te){const fe=te?.message||te?.response?.data?.message||"Update failed. Please try again.";A(fe),F(!0)}}else A("No changes detected."),F(!0);return}const _=P.configs||{},R=N(P.serverAddress||""),z=_.host||R.host,V=_.port!=null?Number(_.port):parseInt(R.port,10),G=(_.path||R.path||"").replace(/^\//,""),K=P.type||R.type||"sftp",ee=P.username||_.username||"",Q=P.password||_.password||"",J=w||_.sync_frequency||"",ae=typeof J=="string"?J.toLowerCase():J;let se=v||_.sync_time||"";if(typeof se=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(se.trim())){const[U,de]=se.trim().split(/\s+/),[re,oe]=U.split(":").map(Number),pe=de.toUpperCase()==="PM"&&re!==12?re+12:de.toUpperCase()==="AM"&&re===12?0:re;se=`${String(pe).padStart(2,"0")}:${String(oe).padStart(2,"0")}`}else typeof se=="string"&&(se=se.trim());const le=(P.mappings||[]).filter(U=>U.source_field&&U.target_field).map(U=>({source_field:U.source_field,target_field:U.target_field}));if(!l){A("Company ID is required. Please ensure the app is properly configured."),F(!0);return}if(!z||!V||!ee||!Q||le.length===0){A("Please fill all required fields and mappings before saving."),F(!0);return}const q=P.entity_type||"products",ne={tenantId:l,type:K,entity_type:q,configs:{host:z,port:Number(V),username:ee,password:Q,path:G,sync_frequency:ae,sync_time:se},mappings:le};try{const U=await a(Vo(ne));Vo.fulfilled.match(U)?(A("Save and Start Sync Updated Successfully"),F(!0),e.onNext&&e.onNext()):(A(U?.payload||"Save failed. Please try again."),F(!0))}catch{A("Save failed. Please try again."),F(!0)}},[B,$]=L.useState(!1);return L.useEffect(()=>{const j=setTimeout(()=>$(!0),850);return()=>clearTimeout(j)},[]),c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),c.jsxs(k,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(k,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(el,{...r,showStartSyncBlueTick:B})}),c.jsx(k,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsx(k,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:c.jsxs(rn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[c.jsxs(k,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[c.jsxs(k,{sx:{flex:1},children:[c.jsx(W,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),c.jsxs(En,{size:"small",value:w,onChange:O,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[c.jsx(yt,{value:"Daily",children:"Daily"}),c.jsx(yt,{value:"Weekly",children:"Weekly"}),c.jsx(yt,{value:"Monthly",children:"Monthly"})]})]}),c.jsxs(k,{sx:{flex:1},children:[c.jsx(W,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),c.jsx(zi,{type:"time",size:"small",value:v,onChange:D,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),c.jsxs(k,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[c.jsx(Ye,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),c.jsx(Ye,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:M,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),c.jsx(go,{open:I,autoHideDuration:4e3,onClose:()=>F(!1),message:E,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},cN=e=>{const{onBack:t,stepperProps:n={}}=e,r=$t(),s=!!Le(p=>p.productSettings.saveResult),[a,l]=L.useState(s),d=xt();return L.useEffect(()=>{s&&(l(!0),r(g1()))},[s,r]),c.jsxs(c.Fragment,{children:[c.jsx(go,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[c.jsx(rr,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>d("/products/settings/ftp-sync",{state:{step:3}}))}),c.jsxs(k,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[c.jsx(k,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:c.jsx(el,{...n})}),c.jsx(k,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:c.jsxs(k,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[c.jsx(k,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:c.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:c.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),c.jsx(W,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),c.jsx(Ye,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>d("/"),children:"Back to all products"})]})})]})]}),c.jsx(go,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function dN(e){const t=bt(),n=xt(),r=t.state?.fromProductSetting?3:0,[i,s]=L.useState(r),a=$t(),{companyId:l,integrationData:d}=Le(v=>v.dashboard),p=t.state?.fromSyncStep;L.useEffect(()=>{const v=t.state?.fromProductSetting;l&&!v&&a(Ft(l))},[l,a,t.state]);const u=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(i===0&&p!==void 0){n("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},x=d?.configs||{},b=d?.mappings||d?.dataMappings||[],f=(v=>{if(!v)return"";const C=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"",y=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],S={0:{steps:y,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:y,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:y,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return c.jsx(qI,{onNext:u,onBack:h,stepperProps:S[0],...e});case 1:return c.jsx(QI,{onNext:u,onBack:h,ftpDetails:x,stepperProps:S[1],...e});case 2:return c.jsx(iN,{onNext:u,onBack:h,mapping:b,stepperProps:S[2],...e});case 3:return c.jsx(lN,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,stepperProps:S[3],...e});case 4:return c.jsx(cN,{onBack:h,stepperProps:S[4],...e});default:return null}}const uN=Ke(c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function pN(e){return c.jsx(k,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:c.jsx(k,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:c.jsx(uN,{sx:{color:"#808080"}})})})}const fN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function hN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return c.jsx(k,{component:"img",src:fN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const gN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",mN={fontSize:10.67,color:"#454545"};function yN({sx:e={},...t}){const n={...mN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return c.jsx(k,{component:"img",src:gN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const bN=Ke(c.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function xN(e){return c.jsx(bN,{...e})}const vN=Ke(c.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");function SN(e){return c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(k,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(vN,{})})})}const wN=Ke(c.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function CN(e){return c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:c.jsx(k,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(wN,{})})})}function EN(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onBack:l,onPageChange:d,onRowsPerPageChange:p,onSave:u,onDelete:h,onStatusChange:x,updateCatalogError:b=null,updateCatalogLoading:g=!1}=e,[f,m]=L.useState(null),[y,w]=L.useState({name:"",slug:"",status:!0}),S=F=>{const E=F.slugRaw??(typeof F.slug=="string"?F.slug.replace(/^\//,""):"")??"",A=F.status==="Active"||F.status===!0;m(F.id),w({name:F.name??"",slug:E,status:A})},v=async F=>{if(typeof u!="function")return;const E=y.slug.trim().replace(/^\//,""),A={id:F.id,name:y.name.trim(),slug:E||y.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:y.status};await u(A),m(null)},C=()=>{m(null)},P=t,O=Math.max(0,Number(n)||0),D=Math.max(0,Math.ceil(O/Math.max(1,i))-1),N={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},I={wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:"24px",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}};return c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),c.jsxs(k,{sx:{width:600,maxWidth:"100%",minHeight:606,pt:"88px",mx:"auto",pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1},children:[c.jsx(k,{sx:{width:"100%",maxWidth:600,height:20,display:"flex",alignItems:"center",gap:"24px",opacity:1},children:c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),c.jsx(W,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),b&&c.jsx(W,{color:"error",sx:{mb:0},children:b}),c.jsx(k,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:P.map(F=>{const E=f===F.id,A=typeof a=="function"?a(F):s[F.id]??F.status??"Active",M=A==="Active";return c.jsxs(rn,{elevation:0,sx:{width:"100%",maxWidth:600,minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"flex",alignItems:"flex-start",gap:"16px",opacity:1},children:[c.jsx(k,{sx:{flexShrink:0},children:c.jsx(pN,{})}),c.jsx(k,{sx:{width:368,maxWidth:"100%",minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:"8px",opacity:1},children:E?c.jsxs(c.Fragment,{children:[c.jsx(zi,{label:"Name",size:"small",value:y.name,onChange:B=>w($=>({...$,name:B.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}),c.jsx(zi,{label:"Slug",size:"small",value:y.slug,onChange:B=>w($=>({...$,slug:B.target.value})),fullWidth:!0,placeholder:"/catalog-slug"})]}):c.jsxs(c.Fragment,{children:[c.jsxs(k,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1},children:F.name}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:F.slug})]}),c.jsx(k,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:c.jsxs(k,{sx:N,children:[c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(hN,{sx:{fontSize:12,color:"#454545"}})}),c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[F.productsCount," Products"]})]})}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsxs(k,{sx:N,children:[c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(yN,{})}),c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",F.createdBy]})]}),c.jsxs(k,{sx:N,children:[c.jsx(k,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:c.jsx(ty,{size:12,color:"#454545"})}),c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:F.date})]})]})]})}),c.jsx(k,{sx:{flexShrink:0},children:E?c.jsxs(En,{size:"small",value:y.status?"Active":"Inactive",onChange:B=>w($=>({...$,status:B.target.value==="Active"})),IconComponent:Ri,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:y.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[c.jsx(yt,{value:"Active",children:"Active"}),c.jsx(yt,{value:"Inactive",children:"Inactive"})]}):c.jsxs(En,{value:A,onChange:B=>{if(typeof x!="function"||g)return;const $=B.target.value==="Active";x(F,$)},disabled:g,IconComponent:Ri,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:M?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[c.jsx(yt,{value:"Active",children:"Active"}),c.jsx(yt,{value:"Inactive",children:"Inactive"})]})}),c.jsx(k,{sx:{flexShrink:0},children:E?c.jsxs(c.Fragment,{children:[c.jsx(ut,{size:"small","aria-label":"Save catalog",disabled:g,onClick:()=>v(F),sx:{p:0,color:"#454545"},children:c.jsx(xN,{sx:{fontSize:20}})}),c.jsx(Ye,{size:"small",onClick:C,sx:{minWidth:0,px:1,ml:.5},children:"Cancel"})]}):c.jsx(ut,{size:"small","aria-label":"Edit catalog",onClick:()=>S(F),sx:{p:0,width:16,height:16},children:c.jsx(SN,{})})}),c.jsx(k,{sx:{flexShrink:0},children:c.jsx(ut,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(F):null,sx:{p:0,width:16,height:16},children:c.jsx(CN,{})})})]},F.id)})}),c.jsxs(k,{sx:I.wrapper,children:[c.jsxs(k,{sx:I.resultsPerPageBox,children:[c.jsx(W,{component:"span",sx:I.resultsPerPageText,children:"Results per page"}),c.jsxs(En,{value:i,onChange:F=>typeof p=="function"?p(F):null,IconComponent:Ri,variant:"standard",disableUnderline:!0,sx:I.select,children:[c.jsx(yt,{value:5,children:"5"}),c.jsx(yt,{value:10,children:"10"}),c.jsx(yt,{value:25,children:"25"})]})]}),c.jsxs(k,{sx:I.navBox,children:[c.jsx(ut,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(0):null,sx:I.iconButton,"aria-label":"First page",children:c.jsx(Hd,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(Math.max(0,r-1)):null,sx:I.iconButton,"aria-label":"Previous page",children:c.jsx(ji,{sx:{width:16,height:16,opacity:1}})}),c.jsx(W,{component:"span",sx:I.pageText,children:O===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,O)} of ${O}`}),c.jsx(ut,{size:"small",disabled:r>=D,onClick:()=>typeof d=="function"?d(r+1):null,sx:I.iconButton,"aria-label":"Next page",children:c.jsx(At,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:r>=D,onClick:()=>typeof d=="function"?d(D):null,sx:I.iconButton,"aria-label":"Last page",children:c.jsx(qd,{sx:{width:16,height:16,opacity:1}})})]})]})]})]})}const TN=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=sn().productSettingModal;return c.jsx(ao,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:c.jsxs(k,{sx:s.container,children:[c.jsx(k,{sx:s.header,children:c.jsxs(W,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),c.jsxs(k,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[c.jsx(Ye,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),c.jsx(Ye,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function PN(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function ON(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:PN(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function kN(e){const t=xt(),n=$t(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Le(R=>R.productSettings??{}),{updateCatalogLoading:l=!1,updateCatalogError:d=null}=Le(R=>R.dashboard??{}),[p,u]=L.useState(0),[h,x]=L.useState(10),[b,g]=L.useState({}),[f,m]=L.useState(!1),[y,w]=L.useState(null),[S,v]=L.useState(!1),[C,P]=L.useState("");L.useEffect(()=>{n(tn({page:p+1,limit:h}))},[n,p,h]),L.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const O=L.useMemo(()=>Array.isArray(r)?r.map(ON).filter(Boolean):[],[r]),D=i,N=R=>u(R),I=R=>{const z=Number(R.target.value);x(z),u(0)},F=R=>b[R.id]??R.status,E=()=>t(-1),A=async R=>{const{id:z,name:V,slug:G,status:K}=R;await n(Wo({id:z,name:V,slug:G,status:K})).unwrap(),n(tn({page:p+1,limit:h}))},M=async(R,z)=>{const V=R.slugRaw??(typeof R.slug=="string"?R.slug.replace(/^\//,""):"")??"";g(G=>({...G,[R.id]:z?"Active":"Inactive"}));try{await n(Wo({id:R.id,name:R.name??"",slug:V,status:z})).unwrap(),n(tn({page:p+1,limit:h}))}catch{g(G=>({...G,[R.id]:R.status}))}},B=R=>{w(R),m(!0)},$=()=>{m(!1),w(null)},j=async()=>{if(!y?.id){$();return}try{await n(As(y.id)).unwrap(),P("Catalog delete Successfully"),v(!0),$(),n(tn({page:p+1,limit:h}))}catch{P("Failed to delete catalog"),v(!0)}},_=c.jsx(rr,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:E});return s&&O.length===0?c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[_,c.jsx(k,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:c.jsx(ba,{})})]}):a&&O.length===0?c.jsxs(k,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[_,c.jsx(k,{sx:{textAlign:"center",py:4},children:c.jsx(W,{color:"error",children:a})})]}):c.jsxs(c.Fragment,{children:[c.jsx(EN,{catalogs:O,totalCount:D,page:p,rowsPerPage:h,statusById:b,getStatus:F,onBack:E,onPageChange:N,onRowsPerPageChange:I,onStatusChange:M,onSave:A,onDelete:B,updateCatalogError:d,updateCatalogLoading:l,...e}),c.jsx(TN,{isOpen:f,onClose:$,onConfirm:j,catalogName:y?.name}),c.jsx(go,{open:S,autoHideDuration:4e3,onClose:()=>v(!1),message:C,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const ny=Ke(c.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),AN=Ke([c.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),c.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function IN(e){return c.jsx(AN,{...e})}function NN({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:a=null,onPageChange:l,onLimitChange:d}){const p=e?.categoryTableAllStore??{},u=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},x=O=>t.some(D=>D.id===O.id),[b,g]=L.useState(null),[f,m]=L.useState([]),y=(O,D)=>{g(O.currentTarget),m(D)},w=()=>{g(null),m([])},S=!!b,v=!s,C=v?u.outerCard:p.outerCard,P=v?"6px":"4px";return c.jsx(Or,{maxWidth:!1,sx:{width:"100%",px:0},children:c.jsxs(Rn,{sx:{...e.categoryTable,...C,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0},children:[c.jsx(k,{sx:{...p.categoryNameBox,display:"flex",alignItems:"center",mb:P,boxSizing:"border-box",overflow:"hidden"},children:c.jsx(W,{sx:{...p.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",width:"100%",...v?u.tableHeader:p.tableHeader,boxSizing:"border-box",gap:v?"32px":"16px"},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:v?"32px":"16px",flex:"1 1 0",minWidth:0},children:[c.jsx(Ot,{checked:n.length>0&&n.every(x),indeterminate:n.some(x)&&!n.every(x),onChange:()=>{n.every(x)?n.forEach(O=>r(O,i,!1)):n.forEach(O=>{x(O)||r(O,i,!0)})},size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"}}),checkedIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},children:c.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2}})})}),s?c.jsx(k,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:c.jsx(W,{component:"span",sx:p.headerProduct,children:"Product"})}):c.jsx(W,{component:"span",sx:{...u.headerLabel,...u.headerProduct},children:"Product"})]}),v?c.jsxs(c.Fragment,{children:[c.jsx(k,{sx:{...u.headerStatus,display:"flex",justifyContent:"flex-start"},children:c.jsx(W,{component:"span",sx:{...u.headerLabel},children:"Status"})}),c.jsx(k,{sx:{...u.headerPrice,display:"flex",justifyContent:"flex-start"},children:c.jsx(W,{component:"span",sx:{...u.headerLabel},children:"Price"})}),c.jsx(k,{sx:{...u.headerStock,display:"flex",justifyContent:"flex-start"},children:c.jsx(W,{component:"span",sx:{...u.headerLabel},children:"Stock"})}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",marginLeft:"10px",...u.headerOffer},children:[c.jsx(W,{component:"span",sx:{...u.headerLabel},children:"Offer"}),c.jsx(Bd,{sx:{...p.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"-10px"}})]})]}):c.jsxs(k,{sx:{display:"flex",alignItems:"center",...p.headerStatusOsa,flex:"0 0 auto"},children:[c.jsx(W,{component:"span",sx:p.headerStatusText,children:"Status"}),c.jsxs(k,{sx:{display:"inline-flex",alignItems:"center",flexShrink:0},children:[c.jsx(W,{component:"span",sx:p.headerOsaText,children:"Stock / OSA"}),c.jsx(Bd,{sx:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"}})]})]})]}),n.map((O,D)=>{let N=[];O.offers&&Array.isArray(O.offers)?N=O.offers:O.offer&&typeof O.offer=="string"&&O.offer.includes(`
236
- `)?N=O.offer.split(`
237
- `):O.offer&&Array.isArray(O.offer)?N=O.offer:O.offer&&(N=[O.offer]);const I=N[0]||"",F=N.length>1?N.slice(1):[];return c.jsxs(k,{sx:{display:"flex",alignItems:"center",...v?u.rowCard:p.rowCard,boxSizing:"border-box",mt:D===0?v?0:.5:0,mb:.5},children:[c.jsx(k,{sx:{display:"flex",alignItems:"center",width:16,height:v?16:20,gap:"8px",flexShrink:0},children:c.jsx(Ot,{checked:x(O),onChange:()=>r(O,i),size:"small",sx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},icon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),checkedIcon:c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",height:56,gap:"16px",minWidth:0,flex:"1 1 0",width:"100%",maxWidth:"100%",...v?u.productBlock:p.productBlock},children:[c.jsx(k,{sx:{...p.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:O.productImage?c.jsx(Fa,{src:O.productImage,alt:O.productName,sx:{width:56,height:56,borderRadius:"8px"}}):c.jsx(Fa,{sx:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},children:O.productName&&O.productName[0]})}),c.jsxs(k,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%"},children:[c.jsx(W,{sx:p.productName,children:O.productName}),c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[c.jsx(W,{sx:p.productMeta,children:O.productWeight}),O.categoryName&&c.jsxs(c.Fragment,{children:[c.jsx(W,{component:"span",sx:{...p.productMeta,...p.productMetaBullet},children:"•"}),c.jsx(W,{component:"span",sx:p.productMeta,children:O.categoryName})]})]}),c.jsxs(W,{sx:p.productSku,children:["SKU: ",O.sku]})]})]}),c.jsxs(k,{sx:{display:"flex",alignItems:"flex-start",...v?u.statusBlock:p.statusOsaBlock,flexShrink:0,...v&&{alignSelf:"flex-start",marginTop:"8px"}},children:[c.jsx(k,{component:"span",sx:O.status===!0?p.statusActiveBox:p.statusNoStockBox,children:O.status===!0?"Active":"No Stock"}),!v&&c.jsxs(k,{sx:{display:"flex",flexDirection:"column",gap:"4px",width:120},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(Pd,{title:"No stock",children:c.jsx(ny,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(W,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(W,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const E=Number(typeof O.osa=="number"?O.osa:O.osa??0),A=E<50;return c.jsxs(W,{sx:{...p.onShelfText,color:"#808080"},children:[c.jsxs(k,{component:"span",sx:A?{color:"#d32f2f"}:{},children:[Math.round(E),"%"]})," on shelf"]})})()]})]}),v&&c.jsxs(k,{sx:{display:"flex",flexDirection:"column",...u.priceBlock,flexShrink:0},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[c.jsxs(W,{sx:u.priceText,children:["₹",O.price]}),c.jsx(k,{sx:{...u.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:c.jsx(IN,{sx:{fontSize:14,color:"#808080"}})})]}),O.mrp&&c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},children:["₹",O.mrp]}),O.discount&&c.jsx(W,{sx:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},children:O.discount})]}),v&&c.jsxs(k,{sx:{display:"flex",flexDirection:"column",...u.stockBlock,flexShrink:0},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&c.jsx(Pd,{title:"No stock",children:c.jsx(ny,{sx:{color:"#d32f2f",fontSize:16,mr:.5}})}),c.jsx(W,{component:"span",sx:p.stockValue,children:O.stock}),c.jsx(W,{component:"span",sx:p.osaValue,children:O.quantity?`/ ${O.quantity}`:""})]}),(()=>{const E=typeof O.osa=="number"?O.osa:O.osa??0,A=Number(E),M=A<50;return c.jsxs(W,{sx:{...p.onShelfText,fontSize:"10px",color:u.onShelfPercentNormal.color},children:[c.jsxs(k,{component:"span",sx:M?{color:u.onShelfPercentRed.color}:{},children:[Math.round(A),"%"]})," ",c.jsx(k,{component:"span",sx:{color:u.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&c.jsxs(k,{sx:{display:"flex",flexDirection:"column",...u.offerBlock,marginLeft:u.stockOfferGap},children:[c.jsx(W,{sx:{...u.offerText,whiteSpace:"pre-line"},children:I}),F.length>0&&c.jsxs(W,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},onClick:E=>y(E,N),children:["+",F.length," more"]})]})]},O.id||D)}),c.jsxs(vd,{open:S,anchorEl:b,onClose:w,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[c.jsx(W,{sx:{fontWeight:700,mb:1},children:"Offers"}),f.map((O,D)=>c.jsxs(W,{sx:{fontSize:14,color:"#222",mb:.5},children:[D+1,". ",O]},D))]}),a&&typeof l=="function"&&typeof d=="function"&&c.jsxs(k,{sx:h.wrapper,children:[c.jsxs(k,{sx:h.resultsPerPageBox,children:[c.jsx(W,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),c.jsx(En,{value:a.limit??10,onChange:O=>d(Number(O.target.value)),IconComponent:Ri,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(O=>c.jsx(yt,{value:O,children:O},O))})]}),c.jsxs(k,{sx:h.navBox,children:[c.jsx(ut,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l(1),sx:h.iconButton,title:"First page",children:c.jsx(Hd,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:(a.currentPage??1)<=1,onClick:()=>l((a.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:c.jsx(ji,{sx:{width:16,height:16,opacity:1}})}),c.jsx(W,{component:"span",sx:h.pageText,children:(a.totalCount??0)===0?"0 of 0":`${((a.currentPage??1)-1)*(a.limit??10)+1}-${Math.min((a.currentPage??1)*(a.limit??10),a.totalCount??0)} of ${a.totalCount??0}`}),c.jsx(ut,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l((a.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:c.jsx(At,{sx:{width:16,height:16,opacity:1}})}),c.jsx(ut,{size:"small",disabled:!(a.hasNextPage??!1)||(a.currentPage??1)>=(a.totalPages??1),onClick:()=>l(a.totalPages??1),sx:h.iconButton,title:"Last page",children:c.jsx(qd,{sx:{width:16,height:16,opacity:1}})})]})]})]})})}const ry=Ke(c.jsx("path",{d:"M19 6.41 17.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"}),"Clear"),Pn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},On=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Vi=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=Pn(r,0),a=Pn(i,0),l=s>a&&s>0?Math.round((s-a)/s*100):5,d=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:l,saveAmount:d}},FN=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Vi(e),a=Math.max(0,Pn(i,0)-Pn(s,0)),l=n.validTo||On().validTo,d=n.ppd||On().ppd;return`
228
+ `))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([Vn,o.func]),disableScrollLock:o.bool,elevation:Sa,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:Qc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function _O(e){return be("MuiMenu",e)}xe("MuiMenu",["root","paper","list"]);const $O={vertical:"top",horizontal:"right"},zO={vertical:"top",horizontal:"left"},LO=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},_O,t)},BO=X(Od,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),jO=X(fm,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),WO=X(cm,{name:"MuiMenu",slot:"List"})({outline:0}),Ra=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:u,open:p,PaperProps:h={},PopoverClasses:y,transitionDuration:b="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:x={},slotProps:w={},...S}=r,v=pi(),C={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:g,PaperProps:h,transitionDuration:b,TransitionProps:f,variant:m},k=LO(C),A=i&&!c&&p,z=T.useRef(null),M=(V,L)=>{z.current&&z.current.adjustStyleForScrollbar(V,{direction:v?"rtl":"ltr"}),g&&g(V,L)},$=V=>{V.key==="Tab"&&(V.preventDefault(),u&&u(V,"tabKeyDown"))};let I=-1;T.Children.map(s,(V,L)=>{T.isValidElement(V)&&(process.env.NODE_ENV!=="production"&&Yc.isFragment(V)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
229
+ `)),V.props.disabled||(m==="selectedMenu"&&V.props.selected||I===-1)&&(I=L))});const E={slots:x,slotProps:{list:d,transition:f,paper:h,...w}},N=Sn({elementType:x.root,externalSlotProps:w.root,ownerState:C,className:[k.root,l]}),[_,W]=Te("paper",{className:k.paper,elementType:jO,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:C}),[F,B]=Te("list",{className:ue(k.list,d.className),elementType:WO,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:V=>({...V,onKeyDown:L=>{$(L),V.onKeyDown?.(L)}}),ownerState:C}),O=typeof E.slotProps.transition=="function"?E.slotProps.transition(C):E.slotProps.transition;return a.jsx(BO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?$O:zO,slots:{root:x.root,paper:_,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:N,paper:W,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{...O,onEntering:(...V)=>{M(...V),O?.onEntering?.(...V)}}},open:p,ref:n,transitionDuration:b,ownerState:C,...S,classes:y,children:a.jsx(F,{actions:z,autoFocus:i&&(I===-1||c),autoFocusItem:A,variant:m,...B,children:s})})});process.env.NODE_ENV!=="production"&&(Ra.propTypes={anchorEl:o.oneOfType([Vn,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function VO(e){return be("MuiMenuItem",e)}const _i=xe("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),UO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},HO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:l}=e,d=ve({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},VO,l);return{...l,...d}},RO=X(gi,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:UO})(ye(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${_i.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${_i.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${_i.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${_i.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${_i.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Qg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Qg.inset}`]:{marginLeft:52},[`& .${go.root}`]:{marginTop:0,marginBottom:0},[`& .${go.inset}`]:{paddingLeft:36},[`& .${sm.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${sm.root} svg`]:{fontSize:"1.25rem"}}}]}))),$e=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:u,role:p="menuitem",tabIndex:h,className:y,...b}=r,g=T.useContext(Fi),f=T.useMemo(()=>({dense:l||g.dense||!1,disableGutters:d}),[g.dense,l,d]),m=T.useRef(null);Yt(()=>{i&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const x={...r,dense:f.dense,divider:c,disableGutters:d},w=HO(r),S=ct(m,n);let v;return r.disabled||(v=h!==void 0?h:-1),a.jsx(Fi.Provider,{value:f,children:a.jsx(RO,{ref:S,role:p,tabIndex:v,component:s,focusVisibleClassName:ue(w.focusVisible,u),className:ue(w.root,y),...b,ownerState:x,classes:w})})});process.env.NODE_ENV!=="production"&&($e.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function qO(e){return be("MuiMobileStepper",e)}xe("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const YO=e=>{const{classes:t,position:n}=e,r={root:["root",`position${Z(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return ve(r,qO,t)},GO=X(on,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Z(n.position)}`]]}})(ye(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),KO=X("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),XO=X("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>fi(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(ye(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),JO=X(om,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),hm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:l,LinearProgressProps:c,nextButton:d,position:u="bottom",steps:p,variant:h="dots",slots:y={},slotProps:b={},...g}=r,f={...r,activeStep:i,position:u,variant:h};let m;h==="progress"&&(p===1?m=100:m=Math.ceil(i/(p-1)*100));const x=YO(f),w={slots:y,slotProps:{progress:c,...b}},[S,v]=Te("root",{ref:n,elementType:GO,shouldForwardComponentProp:!0,className:ue(x.root,l),externalForwardedProps:{...w,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[C,k]=Te("dots",{className:x.dots,elementType:KO,externalForwardedProps:w,ownerState:f}),[A,z]=Te("dot",{elementType:XO,externalForwardedProps:w,ownerState:f}),[M,$]=Te("progress",{className:x.progress,elementType:JO,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return a.jsxs(S,{...v,children:[s,h==="text"&&a.jsxs(T.Fragment,{children:[i+1," / ",p]}),h==="dots"&&a.jsx(C,{...k,children:[...new Array(p)].map((I,E)=>a.jsx(A,{...z,className:ue(x.dot,z.className,E===i&&x.dotActive),dotActive:E===i},E))}),h==="progress"&&a.jsx(M,{...$}),d]})});process.env.NODE_ENV!=="production"&&(hm.propTypes={activeStep:Sa,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:Sa.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function QO(e){return be("MuiNativeSelect",e)}const Ad=xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ZO=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Z(n)}`,s&&"iconOpen",r&&"disabled"]};return ve(c,QO,t)},gm=X("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Ad.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),e2=X(gm,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Tt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Ad.multiple}`]:t.multiple}]}})({}),mm=X("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Ad.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),t2=X(mm,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})({}),ym=T.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:l,inputRef:c,variant:d="standard",...u}=t,p={...t,disabled:i,variant:d,error:s},h=ZO(p);return a.jsxs(T.Fragment,{children:[a.jsx(e2,{ownerState:p,className:ue(h.select,r),disabled:i,ref:c||n,...u}),t.multiple?null:a.jsx(t2,{as:l,ownerState:p,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(ym.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:At,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var bm;const n2=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Tt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),r2=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Tt})(ye(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function xm(e){const{children:t,classes:n,className:r,label:i,notched:s,...l}=e,c=i!=null&&i!=="",d={...e,notched:s,withLabel:c};return a.jsx(n2,{"aria-hidden":!0,className:r,ownerState:d,...l,children:a.jsx(r2,{ownerState:d,children:c?a.jsx("span",{children:i}):bm||(bm=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}process.env.NODE_ENV!=="production"&&(xm.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const o2=e=>{const{classes:t}=e,r=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},yk,t);return{...t,...r}},i2=X(_a,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ma})(ye(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Cn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Cn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Cn.focused} .${Cn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(it()).map(([n])=>({props:{color:n},style:{[`&.${Cn.focused} .${Cn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Cn.error} .${Cn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Cn.disabled} .${Cn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),s2=X(xm,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ye(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),a2=X($a,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Da})(ye(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),qa=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:l="input",label:c,multiline:d=!1,notched:u,slots:p={},slotProps:h={},type:y="text",...b}=r,g=o2(r),f=wn(),m=nr({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:d,size:m.size,type:y},w=p.root??i.Root??i2,S=p.input??i.Input??a2,[v,C]=Te("notchedOutline",{elementType:s2,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:p,slotProps:h},additionalProps:{label:c!=null&&c!==""&&m.required?a.jsxs(T.Fragment,{children:[c," ","*"]}):c}});return a.jsx(Ei,{slots:{root:w,input:S},slotProps:h,renderSuffix:k=>a.jsx(v,{...C,notched:typeof u<"u"?u:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:s,inputComponent:l,multiline:d,ref:n,type:y,...b,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(qa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:At,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),qa.muiName="Input";const l2=Je(a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 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"}),"RadioButtonUnchecked"),c2=Je(a.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),d2=X("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Tt})({position:"relative",display:"flex"}),p2=X(l2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),u2=X(c2,{name:"MuiRadioButtonIcon"})(ye(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Id(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return a.jsxs(d2,{className:n.root,ownerState:i,children:[a.jsx(p2,{fontSize:r,className:n.background,ownerState:i}),a.jsx(u2,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(Id.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const Nd=T.createContext(void 0);process.env.NODE_ENV!=="production"&&(Nd.displayName="RadioGroupContext");function f2(){return T.useContext(Nd)}function h2(e){return be("MuiRadio",e)}const vm=xe("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),g2=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${Z(n)}`,r!=="medium"&&`size${Z(r)}`]};return{...t,...ve(i,h2,t)}},m2=X(La,{shouldForwardProp:e=>Tt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Z(n.size)}`],t[`color${Z(n.color)}`]]}})(ye(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${vm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${vm.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function y2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const b2=a.jsx(Id,{checked:!0}),x2=a.jsx(Id,{}),mo=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=b2,color:l="primary",icon:c=x2,name:d,onChange:u,size:p="medium",className:h,disabled:y,disableRipple:b=!1,slots:g={},slotProps:f={},inputProps:m,...x}=r,w=wn();let S=y;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const v={...r,disabled:S,disableRipple:b,color:l,size:p},C=g2(v),k=f2();let A=i;const z=qc(u,k&&k.onChange);let M=d;k&&(typeof A>"u"&&(A=y2(k.value,r.value)),typeof M>"u"&&(M=k.name));const $=f.input??m,[I,E]=Te("root",{ref:n,elementType:m2,className:ue(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...x},getSlotProps:N=>({...N,onChange:(_,...W)=>{N.onChange?.(_,...W),z(_,...W)}}),ownerState:v,additionalProps:{type:"radio",icon:T.cloneElement(c,{fontSize:c.props.fontSize??p}),checkedIcon:T.cloneElement(s,{fontSize:s.props.fontSize??p}),disabled:S,name:M,checked:A,slots:g,slotProps:{input:typeof $=="function"?$(v):$}}});return a.jsx(I,{...E,classes:C})});process.env.NODE_ENV!=="production"&&(mo.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:At,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function v2(e){return be("MuiRadioGroup",e)}xe("MuiRadioGroup",["root","row","error"]);const S2=e=>{const{classes:t,row:n,error:r}=e;return ve({root:["root",n&&"row",r&&"error"]},v2,t)},Ya=T.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:l,name:c,onChange:d,value:u,...p}=t,h=T.useRef(null),y=S2(t),[b,g]=to({controlled:u,default:l,name:"RadioGroup"});T.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=ct(n,h),m=mr(c),x=T.useMemo(()=>({name:m,onChange(w){g(w.target.value),d&&d(w,w.target.value)},value:b}),[m,d,g,b]);return a.jsx(Nd.Provider,{value:x,children:a.jsx(Zg,{role:"radiogroup",ref:f,className:ue(y.root,s),...p,children:i})})});process.env.NODE_ENV!=="production"&&(Ya.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const w2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Sm(e){return be("MuiSelect",e)}const $i=xe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var wm;const C2=X(gm,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${$i.select}`]:t.select},{[`&.${$i.select}`]:t[n.variant]},{[`&.${$i.error}`]:t.error},{[`&.${$i.multiple}`]:t.multiple}]}})({[`&.${$i.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),E2=X(mm,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Z(n.variant)}`],n.open&&t.iconOpen]}})({}),T2=X("input",{shouldForwardProp:e=>fi(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Cm(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function k2(e){return e==null||typeof e=="string"&&!e.trim()}const P2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${Z(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ve(c,Sm,t)},Em=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:l,children:c,className:d,defaultOpen:u,defaultValue:p,disabled:h,displayEmpty:y,error:b=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:x={},multiple:w,name:S,onBlur:v,onChange:C,onClose:k,onFocus:A,onKeyDown:z,onMouseDown:M,onOpen:$,open:I,readOnly:E,renderValue:N,required:_,SelectDisplayProps:W={},tabIndex:F,type:B,value:O,variant:V="standard",...L}=t,[U,q]=to({controlled:O,default:p,name:"Select"}),[G,J]=to({controlled:I,default:u,name:"Select"}),K=T.useRef(null),Q=T.useRef(null),[se,ce]=T.useState(null),{current:de}=T.useRef(I!=null),[ee,pe]=T.useState(),H=ct(n,f),ne=T.useCallback(he=>{Q.current=he,he&&ce(he)},[]),oe=se?.parentNode;T.useImperativeHandle(H,()=>({focus:()=>{Q.current.focus()},node:K.current,value:U}),[U]),T.useEffect(()=>{u&&G&&se&&!de&&(pe(l?null:oe.clientWidth),Q.current.focus())},[se,l]),T.useEffect(()=>{s&&Q.current.focus()},[s]),T.useEffect(()=>{if(!m)return;const he=ut(Q.current).getElementById(m);if(he){const De=()=>{getSelection().isCollapsed&&Q.current.focus()};return he.addEventListener("click",De),()=>{he.removeEventListener("click",De)}}},[m]);const ge=(he,De)=>{he?$&&$(De):k&&k(De),de||(pe(l?null:oe.clientWidth),J(he))},me=he=>{M?.(he),he.button===0&&(he.preventDefault(),Q.current.focus(),ge(!0,he))},ke=he=>{ge(!1,he)},ae=T.Children.toArray(c),te=he=>{const De=ae.find(tt=>tt.props.value===he.target.value);De!==void 0&&(q(De.props.value),C&&C(he,De))},Ce=he=>De=>{let tt;if(De.currentTarget.hasAttribute("tabindex")){if(w){tt=Array.isArray(U)?U.slice():[];const An=U.indexOf(he.props.value);An===-1?tt.push(he.props.value):tt.splice(An,1)}else tt=he.props.value;if(he.props.onClick&&he.props.onClick(De),U!==tt&&(q(tt),C)){const An=De.nativeEvent||De,Qe=new An.constructor(An.type,An);Object.defineProperty(Qe,"target",{writable:!0,value:{value:tt,name:S}}),C(Qe,he)}w||ge(!1,De)}},Oe=he=>{E||([" ","ArrowUp","ArrowDown","Enter"].includes(he.key)&&(he.preventDefault(),ge(!0,he)),z?.(he))},ie=se!==null&&G,ze=he=>{!ie&&v&&(Object.defineProperty(he,"target",{writable:!0,value:{value:U,name:S}}),v(he))};delete L["aria-invalid"];let Ae,le;const re=[];let fe=!1,Ee=!1;(Fa({value:U})||y)&&(N?Ae=N(U):fe=!0);const Ie=ae.map(he=>{if(!T.isValidElement(he))return null;process.env.NODE_ENV!=="production"&&Yc.isFragment(he)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
230
+ `));let De;if(w){if(!Array.isArray(U))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":pn(2));De=U.some(tt=>Cm(tt,he.props.value)),De&&fe&&re.push(he.props.children)}else De=Cm(U,he.props.value),De&&fe&&(le=he.props.children);return De&&(Ee=!0),T.cloneElement(he,{"aria-selected":De?"true":"false",onClick:Ce(he),onKeyUp:tt=>{tt.key===" "&&tt.preventDefault(),he.props.onKeyUp&&he.props.onKeyUp(tt)},role:"option",selected:De,value:void 0,"data-value":he.props.value})});process.env.NODE_ENV!=="production"&&T.useEffect(()=>{if(!Ee&&!w&&U!==""){const he=ae.map(De=>De.props.value);console.warn([`MUI: You have provided an out-of-range value \`${U}\` for the select ${S?`(name="${S}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${he.filter(De=>De!=null).map(De=>`\`${De}\``).join(", ")||'""'}.`].join(`
231
+ `))}},[Ee,ae,w,S,U]),fe&&(w?re.length===0?Ae=null:Ae=re.reduce((he,De,tt)=>(he.push(De),tt<re.length-1&&he.push(", "),he),[]):Ae=le);let Pe=ee;!l&&de&&se&&(Pe=oe.clientWidth);let Se;typeof F<"u"?Se=F:Se=h?null:0;const et=W.id||(S?`mui-component-select-${S}`:void 0),_e={...t,variant:V,value:U,open:ie,error:b},gt=P2(_e),ln={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(_e):x.slotProps?.paper},Fr={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(_e):x.slotProps?.list},ir=mr();return a.jsxs(T.Fragment,{children:[a.jsx(C2,{as:"div",ref:ne,tabIndex:Se,role:"combobox","aria-controls":ie?ir:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,et].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Oe,onMouseDown:h||E?null:me,onBlur:ze,onFocus:A,...W,ownerState:_e,className:ue(W.className,gt.select,d),id:et,children:k2(Ae)?wm||(wm=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Ae}),a.jsx(T2,{"aria-invalid":b,value:Array.isArray(U)?U.join(","):U,name:S,ref:K,"aria-hidden":!0,onChange:te,tabIndex:-1,disabled:h,className:gt.nativeInput,autoFocus:s,required:_,...L,ownerState:_e}),a.jsx(E2,{as:g,className:gt.icon,ownerState:_e}),a.jsx(Ra,{id:`menu-${S||""}`,anchorEl:oe,open:ie,onClose:ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:ir,...Fr},paper:{...ln,style:{minWidth:Pe,...ln!=null?ln.style:null}}},children:Ie})]})});process.env.NODE_ENV!=="production"&&(Em.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:At,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const O2=e=>{const{classes:t}=e,r=ve({root:["root"]},Sm,t);return{...t,...r}},Fd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Tt(e)&&e!=="variant"},A2=X(Ha,Fd)(""),I2=X(qa,Fd)(""),N2=X(Va,Fd)(""),Tn=T.forwardRef(function(t,n){const r=we({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:u=!1,IconComponent:p=xk,id:h,input:y,inputProps:b,label:g,labelId:f,MenuProps:m,multiple:x=!1,native:w=!1,onClose:S,onOpen:v,open:C,renderValue:k,SelectDisplayProps:A,variant:z="outlined",...M}=r,$=w?ym:Em,I=wn(),E=nr({props:r,muiFormControl:I,states:["variant","error"]}),N=E.variant||z,_={...r,variant:N,classes:l},W=O2(_),{root:F,...B}=W,O=y||{standard:a.jsx(A2,{ownerState:_}),outlined:a.jsx(I2,{label:g,ownerState:_}),filled:a.jsx(N2,{ownerState:_})}[N],V=ct(n,Er(O));return a.jsx(T.Fragment,{children:T.cloneElement(O,{inputComponent:$,inputProps:{children:s,error:E.error,IconComponent:p,variant:N,type:void 0,multiple:x,...w?{id:h}:{autoWidth:i,defaultOpen:d,displayEmpty:u,labelId:f,MenuProps:m,onClose:S,onOpen:v,open:C,renderValue:k,SelectDisplayProps:{id:h,...A}},...b,classes:b?Et(B,b.classes):B,...y?y.props.inputProps:{}},...(x&&w||u)&&N==="outlined"?{notched:!0}:{},ref:V,className:ue(O.props.className,c,W.root),...!y&&{variant:N},...M})})});process.env.NODE_ENV!=="production"&&(Tn.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),Tn.muiName="Select";function F2(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const M2=2;function yo(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function Tm(e,t){return e-t}function km(e,t){const{index:n}=e.reduce((r,i,s)=>{const l=Math.abs(t-i);return r===null||l<r.distance||l===r.distance?{distance:l,index:s}:r},null)??{};return n}function Ga(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ka(e,t,n){return(e-t)*100/(n-t)}function D2(e,t,n){return(n-t)*e+t}function _2(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function $2(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(_2(t)))}function Pm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Tm)}function Xa({sliderRef:e,activeIndex:t,setActive:n}){const r=ut(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Ja(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?F2(e,t):!1}const z2={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},L2=e=>e;let Qa;function Om(){return Qa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Qa=CSS.supports("touch-action","none"):Qa=!0),Qa}function B2(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:d=0,name:u,onChange:p,onChangeCommitted:h,orientation:y="horizontal",rootRef:b,scale:g=L2,step:f=1,shiftStep:m=10,tabIndex:x,value:w}=e,S=T.useRef(void 0),[v,C]=T.useState(-1),[k,A]=T.useState(-1),[z,M]=T.useState(!1),$=T.useRef(0),I=T.useRef(null),[E,N]=to({controlled:w,default:n??d,name:"Slider"}),_=p&&((le,re,fe)=>{const Ee=le.nativeEvent||le,Ie=new Ee.constructor(Ee.type,Ee);Object.defineProperty(Ie,"target",{writable:!0,value:{value:re,name:u}}),I.current=re,p(Ie,re,fe)}),W=Array.isArray(E);let F=W?E.slice().sort(Tm):[E];F=F.map(le=>le==null?d:eo(le,d,c));const B=l===!0&&f!==null?[...Array(Math.floor((c-d)/f)+1)].map((le,re)=>({value:d+f*re})):l||[],O=B.map(le=>le.value),[V,L]=T.useState(-1),U=T.useRef(null),q=ct(b,U),G=le=>re=>{const fe=Number(re.currentTarget.getAttribute("data-index"));oo(re.target)&&L(fe),A(fe),le?.onFocus?.(re)},J=le=>re=>{oo(re.target)||L(-1),A(-1),le?.onBlur?.(re)},K=(le,re)=>{const fe=Number(le.currentTarget.getAttribute("data-index")),Ee=F[fe],Ie=O.indexOf(Ee);let Pe=re;if(B&&f==null){const Se=O[O.length-1];Pe>=Se?Pe=Se:Pe<=O[0]?Pe=O[0]:Pe=Pe<Ee?O[Ie-1]:O[Ie+1]}if(Pe=eo(Pe,d,c),W){i&&(Pe=eo(Pe,F[fe-1]||-1/0,F[fe+1]||1/0));const Se=Pe;Pe=Pm({values:F,newValue:Pe,index:fe});let et=fe;i||(et=Pe.indexOf(Se)),Xa({sliderRef:U,activeIndex:et})}N(Pe),L(fe),_&&!Ja(Pe,E)&&_(le,Pe,fe),h&&h(le,I.current??Pe)},Q=le=>re=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(re.key)){re.preventDefault();const fe=Number(re.currentTarget.getAttribute("data-index")),Ee=F[fe];let Ie=null;if(f!=null){const Pe=re.shiftKey?m:f;switch(re.key){case"ArrowUp":Ie=yo(Ee,Pe,1,d,c);break;case"ArrowRight":Ie=yo(Ee,Pe,s?-1:1,d,c);break;case"ArrowDown":Ie=yo(Ee,Pe,-1,d,c);break;case"ArrowLeft":Ie=yo(Ee,Pe,s?1:-1,d,c);break;case"PageUp":Ie=yo(Ee,m,1,d,c);break;case"PageDown":Ie=yo(Ee,m,-1,d,c);break;case"Home":Ie=d;break;case"End":Ie=c;break}}else if(B){const Pe=O[O.length-1],Se=O.indexOf(Ee),et=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],_e=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];et.includes(re.key)?Se===0?Ie=O[0]:Ie=O[Se-1]:_e.includes(re.key)&&(Se===O.length-1?Ie=Pe:Ie=O[Se+1])}Ie!=null&&K(re,Ie)}le?.onKeyDown?.(re)};Yt(()=>{r&&U.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&v!==-1&&C(-1),r&&V!==-1&&L(-1);const se=le=>re=>{le.onChange?.(re),K(re,re.target.valueAsNumber)},ce=T.useRef(void 0);let de=y;s&&y==="horizontal"&&(de+="-reverse");const ee=({finger:le,move:re=!1})=>{const{current:fe}=U,{width:Ee,height:Ie,bottom:Pe,left:Se}=fe.getBoundingClientRect();let et;de.startsWith("vertical")?et=(Pe-le.y)/Ie:et=(le.x-Se)/Ee,de.includes("-reverse")&&(et=1-et);let _e;if(_e=D2(et,d,c),f)_e=$2(_e,f,d);else{const ln=km(O,_e);_e=O[ln]}_e=eo(_e,d,c);let gt=0;if(W){re?gt=ce.current:gt=km(F,_e),i&&(_e=eo(_e,F[gt-1]||-1/0,F[gt+1]||1/0));const ln=_e;_e=Pm({values:F,newValue:_e,index:gt}),i&&re||(gt=_e.indexOf(ln),ce.current=gt)}return{newValue:_e,activeIndex:gt}},pe=Ot(le=>{const re=Ga(le,S);if(!re)return;if($.current+=1,le.type==="mousemove"&&le.buttons===0){H(le);return}const{newValue:fe,activeIndex:Ee}=ee({finger:re,move:!0});Xa({sliderRef:U,activeIndex:Ee,setActive:C}),N(fe),!z&&$.current>M2&&M(!0),_&&!Ja(fe,E)&&_(le,fe,Ee)}),H=Ot(le=>{const re=Ga(le,S);if(M(!1),!re)return;const{newValue:fe}=ee({finger:re,move:!0});C(-1),le.type==="touchend"&&A(-1),h&&h(le,I.current??fe),S.current=void 0,oe()}),ne=Ot(le=>{if(r)return;Om()||le.preventDefault();const re=le.changedTouches[0];re!=null&&(S.current=re.identifier);const fe=Ga(le,S);if(fe!==!1){const{newValue:Ie,activeIndex:Pe}=ee({finger:fe});Xa({sliderRef:U,activeIndex:Pe,setActive:C}),N(Ie),_&&!Ja(Ie,E)&&_(le,Ie,Pe)}$.current=0;const Ee=ut(U.current);Ee.addEventListener("touchmove",pe,{passive:!0}),Ee.addEventListener("touchend",H,{passive:!0})}),oe=T.useCallback(()=>{const le=ut(U.current);le.removeEventListener("mousemove",pe),le.removeEventListener("mouseup",H),le.removeEventListener("touchmove",pe),le.removeEventListener("touchend",H)},[H,pe]);T.useEffect(()=>{const{current:le}=U;return le.addEventListener("touchstart",ne,{passive:Om()}),()=>{le.removeEventListener("touchstart",ne),oe()}},[oe,ne]),T.useEffect(()=>{r&&oe()},[r,oe]);const ge=le=>re=>{if(le.onMouseDown?.(re),r||re.defaultPrevented||re.button!==0)return;re.preventDefault();const fe=Ga(re,S);if(fe!==!1){const{newValue:Ie,activeIndex:Pe}=ee({finger:fe});Xa({sliderRef:U,activeIndex:Pe,setActive:C}),N(Ie),_&&!Ja(Ie,E)&&_(re,Ie,Pe)}$.current=0;const Ee=ut(U.current);Ee.addEventListener("mousemove",pe,{passive:!0}),Ee.addEventListener("mouseup",H)},me=Ka(W?F[0]:d,d,c),ke=Ka(F[F.length-1],d,c)-me,ae=(le={})=>{const re=Sr(le),fe={onMouseDown:ge(re||{})},Ee={...re,...fe};return{...le,ref:q,...Ee}},te=le=>re=>{le.onMouseOver?.(re);const fe=Number(re.currentTarget.getAttribute("data-index"));A(fe)},Ce=le=>re=>{le.onMouseLeave?.(re),A(-1)},Oe=(le={})=>{const re=Sr(le),fe={onMouseOver:te(re||{}),onMouseLeave:Ce(re||{})};return{...le,...re,...fe}},ie=le=>({pointerEvents:v!==-1&&v!==le?"none":void 0});let ze;return y==="vertical"&&(ze=s?"vertical-rl":"vertical-lr"),{active:v,axis:de,axisProps:z2,dragging:z,focusedThumbIndex:V,getHiddenInputProps:(le={})=>{const re=Sr(le),fe={onChange:se(re||{}),onFocus:G(re||{}),onBlur:J(re||{}),onKeyDown:Q(re||{})},Ee={...re,...fe};return{tabIndex:x,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":g(c),"aria-valuemin":g(d),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...le,...Ee,style:{...w2,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:ze}}},getRootProps:ae,getThumbProps:Oe,marks:B,open:k,range:W,rootRef:q,trackLeap:ke,trackOffset:me,values:F,getThumbStyle:ie}}const j2=e=>!e||!er(e);function W2(e){return be("MuiSlider",e)}const Qt=xe("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),V2=e=>{const{open:t}=e;return{offset:ue(t&&Qt.valueLabelOpen),circle:Qt.valueLabelCircle,label:Qt.valueLabelLabel}};function Am(e){const{children:t,className:n,value:r}=e,i=V2(e);return t?T.cloneElement(t,{className:t.props.className},a.jsxs(T.Fragment,{children:[t.props.children,a.jsx("span",{className:ue(i.offset,n),"aria-hidden":!0,children:a.jsx("span",{className:i.circle,children:a.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(Am.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function Im(e){return e}const U2=X("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Z(n.color)}`],n.size!=="medium"&&t[`size${Z(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(ye(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Qt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Qt.dragging}`]:{[`& .${Qt.thumb}, & .${Qt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),H2=X("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),R2=X("span",{name:"MuiSlider",slot:"Track"})(ye(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),q2=X("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Z(n.color)}`],n.size!=="medium"&&t[`thumbSize${Z(n.size)}`]]}})(ye(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Qt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(it()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Qt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Qt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),Nm=X(Am,{name:"MuiSlider",slot:"ValueLabel"})(ye(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Qt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Qt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(Nm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const Y2=X("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>fi(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(ye(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),G2=X("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>fi(e)&&e!=="markLabelActive"})(ye(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),K2=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:l,color:c,size:d}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",c&&`color${Z(c)}`,d&&`size${Z(d)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",d&&`thumbSize${Z(d)}`,c&&`thumbColor${Z(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ve(u,W2,l)},X2=({children:e})=>e,Fm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiSlider"}),i=pi(),{"aria-label":s,"aria-valuetext":l,"aria-labelledby":c,component:d="span",components:u={},componentsProps:p={},color:h="primary",classes:y,className:b,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:x,marks:w=!1,max:S=100,min:v=0,name:C,onChange:k,onChangeCommitted:A,orientation:z="horizontal",shiftStep:M=10,size:$="medium",step:I=1,scale:E=Im,slotProps:N,slots:_,tabIndex:W,track:F="normal",value:B,valueLabelDisplay:O="off",valueLabelFormat:V=Im,...L}=r,U={...r,isRtl:i,max:S,min:v,classes:y,disabled:f,disableSwap:g,orientation:z,marks:w,color:h,size:$,step:I,shiftStep:M,scale:E,track:F,valueLabelDisplay:O,valueLabelFormat:V},{axisProps:q,getRootProps:G,getHiddenInputProps:J,getThumbProps:K,open:Q,active:se,axis:ce,focusedThumbIndex:de,range:ee,dragging:pe,marks:H,values:ne,trackOffset:oe,trackLeap:ge,getThumbStyle:me}=B2({...U,rootRef:n});U.marked=H.length>0&&H.some(Qe=>Qe.label),U.dragging=pe,U.focusedThumbIndex=de;const ke=K2(U),ae=_?.root??u.Root??U2,te=_?.rail??u.Rail??H2,Ce=_?.track??u.Track??R2,Oe=_?.thumb??u.Thumb??q2,ie=_?.valueLabel??u.ValueLabel??Nm,ze=_?.mark??u.Mark??Y2,Ae=_?.markLabel??u.MarkLabel??G2,le=_?.input??u.Input??"input",re=N?.root??p.root,fe=N?.rail??p.rail,Ee=N?.track??p.track,Ie=N?.thumb??p.thumb,Pe=N?.valueLabel??p.valueLabel,Se=N?.mark??p.mark,et=N?.markLabel??p.markLabel,_e=N?.input??p.input,gt=Sn({elementType:ae,getSlotProps:G,externalSlotProps:re,externalForwardedProps:L,additionalProps:{...j2(ae)&&{as:d}},ownerState:{...U,...re?.ownerState},className:[ke.root,b]}),ln=Sn({elementType:te,externalSlotProps:fe,ownerState:U,className:ke.rail}),Fr=Sn({elementType:Ce,externalSlotProps:Ee,additionalProps:{style:{...q[ce].offset(oe),...q[ce].leap(ge)}},ownerState:{...U,...Ee?.ownerState},className:ke.track}),ir=Sn({elementType:Oe,getSlotProps:K,externalSlotProps:Ie,ownerState:{...U,...Ie?.ownerState},className:ke.thumb}),he=Sn({elementType:ie,externalSlotProps:Pe,ownerState:{...U,...Pe?.ownerState},className:ke.valueLabel}),De=Sn({elementType:ze,externalSlotProps:Se,ownerState:U,className:ke.mark}),tt=Sn({elementType:Ae,externalSlotProps:et,ownerState:U,className:ke.markLabel}),An=Sn({elementType:le,getSlotProps:J,externalSlotProps:_e,ownerState:U});return a.jsxs(ae,{...gt,children:[a.jsx(te,{...ln}),a.jsx(Ce,{...Fr}),H.filter(Qe=>Qe.value>=v&&Qe.value<=S).map((Qe,mt)=>{const Ki=Ka(Qe.value,v,S),xo=q[ce].offset(Ki);let cn;return F===!1?cn=ne.includes(Qe.value):cn=F==="normal"&&(ee?Qe.value>=ne[0]&&Qe.value<=ne[ne.length-1]:Qe.value<=ne[0])||F==="inverted"&&(ee?Qe.value<=ne[0]||Qe.value>=ne[ne.length-1]:Qe.value>=ne[0]),a.jsxs(T.Fragment,{children:[a.jsx(ze,{"data-index":mt,...De,...!er(ze)&&{markActive:cn},style:{...xo,...De.style},className:ue(De.className,cn&&ke.markActive)}),Qe.label!=null?a.jsx(Ae,{"aria-hidden":!0,"data-index":mt,...tt,...!er(Ae)&&{markLabelActive:cn},style:{...xo,...tt.style},className:ue(ke.markLabel,tt.className,cn&&ke.markLabelActive),children:Qe.label}):null]},mt)}),ne.map((Qe,mt)=>{const Ki=Ka(Qe,v,S),xo=q[ce].offset(Ki),cn=O==="off"?X2:ie;return a.jsx(cn,{...!er(cn)&&{valueLabelFormat:V,valueLabelDisplay:O,value:typeof V=="function"?V(E(Qe),mt):V,index:mt,open:Q===mt||se===mt||O==="on",disabled:f},...he,children:a.jsx(Oe,{"data-index":mt,...ir,className:ue(ke.thumb,ir.className,se===mt&&ke.active,de===mt&&ke.focusVisible),style:{...xo,...me(mt),...ir.style},children:a.jsx(le,{"data-index":mt,"aria-label":m?m(mt):s,"aria-valuenow":E(Qe),"aria-labelledby":c,"aria-valuetext":x?x(E(Qe),mt):l,value:ne[mt],...An})})},mt)})]})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={"aria-label":rn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":rn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function J2(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,l=vr();T.useEffect(()=>{if(!i)return;function x(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[i,r]);const c=Ot((x,w)=>{r?.(x,w)}),d=Ot(x=>{!r||x==null||l.start(x,()=>{c(null,"timeout")})});T.useEffect(()=>(i&&d(t),l.clear),[i,t,d,l]);const u=x=>{r?.(x,"clickaway")},p=l.clear,h=T.useCallback(()=>{t!=null&&d(s??t*.5)},[t,s,d]),y=x=>w=>{const S=x.onBlur;S?.(w),h()},b=x=>w=>{const S=x.onFocus;S?.(w),p()},g=x=>w=>{const S=x.onMouseEnter;S?.(w),p()},f=x=>w=>{const S=x.onMouseLeave;S?.(w),h()};return T.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",p)}},[n,i,h,p]),{getRootProps:(x={})=>{const w={...Sr(e),...Sr(x)};return{role:"presentation",...x,...w,onBlur:y(w),onFocus:b(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:u}}function Q2(e){return be("MuiSnackbarContent",e)}xe("MuiSnackbarContent",["root","message","action"]);const Z2=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},Q2,t)},eA=X(on,{name:"MuiSnackbarContent",slot:"Root"})(ye(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText($c(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:$c(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),tA=X("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),nA=X("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Mm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:l,role:c="alert",...d}=r,u=r,p=Z2(u);return a.jsxs(eA,{role:c,elevation:6,className:ue(p.root,s),ownerState:u,ref:n,...d,children:[a.jsx(tA,{className:p.message,ownerState:u,children:l}),i?a.jsx(nA,{className:p.action,ownerState:u,children:i}):null]})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rA(e){return be("MuiSnackbar",e)}xe("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const oA=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Z(n.vertical)}${Z(n.horizontal)}`]};return ve(r,rA,t)},iA=X("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Z(n.anchorOrigin.vertical)}${Z(n.anchorOrigin.horizontal)}`]]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),bo=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiSnackbar"}),i=yn(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:p,className:h,ClickAwayListenerProps:y,ContentProps:b,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:x,onFocus:w,onMouseEnter:S,onMouseLeave:v,open:C,resumeHideDuration:k,slots:A={},slotProps:z={},TransitionComponent:M,transitionDuration:$=s,TransitionProps:{onEnter:I,onExited:E,...N}={},..._}=r,W={...r,anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:u,disableWindowBlurListener:g,TransitionComponent:M,transitionDuration:$},F=oA(W),{getRootProps:B,onClickAway:O}=J2(W),[V,L]=T.useState(!0),U=ne=>{L(!0),E&&E(ne)},q=(ne,oe)=>{L(!1),I&&I(ne,oe)},G={slots:{transition:M,...A},slotProps:{content:b,clickAwayListener:y,transition:N,...z}},[J,K]=Te("root",{ref:n,className:[F.root,h],elementType:iA,getSlotProps:B,externalForwardedProps:{...G,..._},ownerState:W}),[Q,{ownerState:se,...ce}]=Te("clickAwayListener",{elementType:Ba,externalForwardedProps:G,getSlotProps:ne=>({onClickAway:(...oe)=>{const ge=oe[0];ne.onClickAway?.(...oe),!ge?.defaultMuiPrevented&&O(...oe)}}),ownerState:W}),[de,ee]=Te("content",{elementType:Mm,shouldForwardComponentProp:!0,externalForwardedProps:G,additionalProps:{message:f,action:l},ownerState:W}),[pe,H]=Te("transition",{elementType:ho,externalForwardedProps:G,getSlotProps:ne=>({onEnter:(...oe)=>{ne.onEnter?.(...oe),q(...oe)},onExited:(...oe)=>{ne.onExited?.(...oe),U(...oe)}}),additionalProps:{appear:!0,in:C,timeout:$,direction:c==="top"?"down":"up"},ownerState:W});return!C&&V?null:a.jsx(Q,{...ce,...A.clickAwayListener&&{ownerState:se},children:a.jsx(J,{...K,children:a.jsx(pe,{...H,children:p||a.jsx(de,{...ee})})})})});process.env.NODE_ENV!=="production"&&(bo.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function sA(e){return be("MuiTooltip",e)}const st=xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function aA(e){return Math.round(e*1e5)/1e5}const lA=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,l={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Z(s.split("-")[0])}`],arrow:["arrow"]};return ve(l,sA,t)},cA=X(ud,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ye(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${st.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${st.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${st.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${st.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),dA=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Z(n.placement.split("-")[0])}`]]}})(ye(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${st.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${st.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${st.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${st.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${aA(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${st.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${st.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${st.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),pA=X("span",{name:"MuiTooltip",slot:"Arrow"})(ye(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Za=!1;const Dm=new xa;let zi={x:0,y:0};function el(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Li=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:l,components:c={},componentsProps:d={},describeChild:u=!1,disableFocusListener:p=!1,disableHoverListener:h=!1,disableInteractive:y=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:x=!1,id:w,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:C,onOpen:k,open:A,placement:z="bottom",PopperComponent:M,PopperProps:$={},slotProps:I={},slots:E={},title:N,TransitionComponent:_,TransitionProps:W,...F}=r,B=T.isValidElement(s)?s:a.jsx("span",{children:s}),O=yn(),V=pi(),[L,U]=T.useState(),[q,G]=T.useState(null),J=T.useRef(!1),K=y||x,Q=vr(),se=vr(),ce=vr(),de=vr(),[ee,pe]=to({controlled:A,default:!1,name:"Tooltip",state:"open"});let H=ee;if(process.env.NODE_ENV!=="production"){const{current:Fe}=T.useRef(A!==void 0);T.useEffect(()=>{L&&L.disabled&&!Fe&&N!==""&&L.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
232
+ `))},[N,L,Fe])}const ne=mr(w),oe=T.useRef(),ge=Ot(()=>{oe.current!==void 0&&(document.body.style.WebkitUserSelect=oe.current,oe.current=void 0),de.clear()});T.useEffect(()=>ge,[ge]);const me=Fe=>{Dm.clear(),Za=!0,pe(!0),k&&!H&&k(Fe)},ke=Ot(Fe=>{Dm.start(800+S,()=>{Za=!1}),pe(!1),C&&H&&C(Fe),Q.start(O.transitions.duration.shortest,()=>{J.current=!1})}),ae=Fe=>{J.current&&Fe.type!=="touchstart"||(L&&L.removeAttribute("title"),se.clear(),ce.clear(),g||Za&&f?se.start(Za?f:g,()=>{me(Fe)}):me(Fe))},te=Fe=>{se.clear(),ce.start(S,()=>{ke(Fe)})},[,Ce]=T.useState(!1),Oe=Fe=>{oo(Fe.target)||(Ce(!1),te(Fe))},ie=Fe=>{L||U(Fe.currentTarget),oo(Fe.target)&&(Ce(!0),ae(Fe))},ze=Fe=>{J.current=!0;const sr=B.props;sr.onTouchStart&&sr.onTouchStart(Fe)},Ae=Fe=>{ze(Fe),ce.clear(),Q.clear(),ge(),oe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.start(m,()=>{document.body.style.WebkitUserSelect=oe.current,ae(Fe)})},le=Fe=>{B.props.onTouchEnd&&B.props.onTouchEnd(Fe),ge(),ce.start(v,()=>{ke(Fe)})};T.useEffect(()=>{if(!H)return;function Fe(sr){sr.key==="Escape"&&ke(sr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[ke,H]);const re=ct(Er(B),U,n);!N&&N!==0&&(H=!1);const fe=T.useRef(),Ee=Fe=>{const sr=B.props;sr.onMouseMove&&sr.onMouseMove(Fe),zi={x:Fe.clientX,y:Fe.clientY},fe.current&&fe.current.update()},Ie={},Pe=typeof N=="string";u?(Ie.title=!H&&Pe&&!h?N:null,Ie["aria-describedby"]=H?ne:null):(Ie["aria-label"]=Pe?N:null,Ie["aria-labelledby"]=H&&!Pe?ne:null);const Se={...Ie,...F,...B.props,className:ue(F.className,B.props.className),onTouchStart:ze,ref:re,...x?{onMouseMove:Ee}:{}};process.env.NODE_ENV!=="production"&&(Se["data-mui-internal-clone-element"]=!0,T.useEffect(()=>{L&&!L.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
233
+ `))},[L]));const et={};b||(Se.onTouchStart=Ae,Se.onTouchEnd=le),h||(Se.onMouseOver=el(ae,Se.onMouseOver),Se.onMouseLeave=el(te,Se.onMouseLeave),K||(et.onMouseOver=ae,et.onMouseLeave=te)),p||(Se.onFocus=el(ie,Se.onFocus),Se.onBlur=el(Oe,Se.onBlur),K||(et.onFocus=ie,et.onBlur=Oe)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
234
+ `));const _e={...r,isRtl:V,arrow:i,disableInteractive:K,placement:z,PopperComponentProp:M,touch:J.current},gt=typeof I.popper=="function"?I.popper(_e):I.popper,ln=T.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return $.popperOptions?.modifiers&&(Fe=Fe.concat($.popperOptions.modifiers)),gt?.popperOptions?.modifiers&&(Fe=Fe.concat(gt.popperOptions.modifiers)),{...$.popperOptions,...gt?.popperOptions,modifiers:Fe}},[q,$.popperOptions,gt?.popperOptions]),Fr=lA(_e),ir=typeof I.transition=="function"?I.transition(_e):I.transition,he={slots:{popper:c.Popper,transition:c.Transition??_,tooltip:c.Tooltip,arrow:c.Arrow,...E},slotProps:{arrow:I.arrow??d.arrow,popper:{...$,...gt??d.popper},tooltip:I.tooltip??d.tooltip,transition:{...W,...ir??d.transition}}},[De,tt]=Te("popper",{elementType:cA,externalForwardedProps:he,ownerState:_e,className:ue(Fr.popper,$?.className)}),[An,Qe]=Te("transition",{elementType:ho,externalForwardedProps:he,ownerState:_e}),[mt,Ki]=Te("tooltip",{elementType:dA,className:Fr.tooltip,externalForwardedProps:he,ownerState:_e}),[xo,cn]=Te("arrow",{elementType:pA,className:Fr.arrow,externalForwardedProps:he,ownerState:_e,ref:G});return a.jsxs(T.Fragment,{children:[T.cloneElement(B,Se),a.jsx(De,{as:M??ud,placement:z,anchorEl:x?{getBoundingClientRect:()=>({top:zi.y,left:zi.x,right:zi.x,bottom:zi.y,width:0,height:0})}:L,popperRef:fe,open:L?H:!1,id:ne,transition:!0,...et,...tt,popperOptions:ln,children:({TransitionProps:Fe})=>a.jsx(An,{timeout:O.transitions.duration.shorter,...Fe,...Qe,children:a.jsxs(mt,{...Ki,children:[N,i?a.jsx(xo,{...cn}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Li.propTypes={arrow:o.bool,children:Pr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function uA(e){return be("MuiSwitch",e)}const It=xe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),fA=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:l}=e,c={root:["root",n&&`edge${Z(n)}`,`size${Z(r)}`],switchBase:["switchBase",`color${Z(i)}`,s&&"checked",l&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=ve(c,uA,t);return{...t,...d}},hA=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Z(n.edge)}`],t[`size${Z(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${It.thumb}`]:{width:16,height:16},[`& .${It.switchBase}`]:{padding:4,[`&.${It.checked}`]:{transform:"translateX(16px)"}}}}]}),gA=X(La,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${It.input}`]:t.input},n.color!=="default"&&t[`color${Z(n.color)}`]]}})(ye(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${It.checked}`]:{transform:"translateX(20px)"},[`&.${It.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${It.checked} + .${It.track}`]:{opacity:.5},[`&.${It.disabled} + .${It.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${It.input}`]:{left:"-100%",width:"300%"}})),ye(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(it(["light"])).map(([t])=>({props:{color:t},style:{[`&.${It.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${It.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.55)}`}},[`&.${It.checked} + .${It.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),mA=X("span",{name:"MuiSwitch",slot:"Track"})(ye(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),yA=X("span",{name:"MuiSwitch",slot:"Thumb"})(ye(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),_m=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:l=!1,size:c="medium",sx:d,slots:u={},slotProps:p={},...h}=r,y={...r,color:s,edge:l,size:c},b=fA(y),g={slots:u,slotProps:p},[f,m]=Te("root",{className:ue(b.root,i),elementType:hA,externalForwardedProps:g,ownerState:y,additionalProps:{sx:d}}),[x,w]=Te("thumb",{className:b.thumb,elementType:yA,externalForwardedProps:g,ownerState:y}),S=a.jsx(x,{...w}),[v,C]=Te("track",{className:b.track,elementType:mA,externalForwardedProps:g,ownerState:y});return a.jsxs(f,{...m,children:[a.jsx(gA,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:y,...h,classes:{...b,root:b.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...p.switchBase&&{root:typeof p.switchBase=="function"?p.switchBase(y):p.switchBase},input:{role:"switch"},...p.input&&{input:typeof p.input=="function"?p.input(y):p.input}}}),a.jsx(v,{...C})]})});process.env.NODE_ENV!=="production"&&(_m.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:At,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const Md=T.createContext();process.env.NODE_ENV!=="production"&&(Md.displayName="TableContext");function bA(e){return be("MuiTable",e)}xe("MuiTable",["root","stickyHeader"]);const xA=e=>{const{classes:t,stickyHeader:n}=e;return ve({root:["root",n&&"stickyHeader"]},bA,t)},vA=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ye(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),$m="table",zm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTable"}),{className:i,component:s=$m,padding:l="normal",size:c="medium",stickyHeader:d=!1,...u}=r,p={...r,component:s,padding:l,size:c,stickyHeader:d},h=xA(p),y=T.useMemo(()=>({padding:l,size:c,stickyHeader:d}),[l,c,d]);return a.jsx(Md.Provider,{value:y,children:a.jsx(vA,{as:s,role:s===$m?null:"table",ref:n,className:ue(h.root,i),ownerState:p,...u})})});process.env.NODE_ENV!=="production"&&(zm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Bi=T.createContext();process.env.NODE_ENV!=="production"&&(Bi.displayName="Tablelvl2Context");function SA(e){return be("MuiTableBody",e)}xe("MuiTableBody",["root"]);const wA=e=>{const{classes:t}=e;return ve({root:["root"]},SA,t)},CA=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),EA={variant:"body"},Lm="tbody",Bm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableBody"}),{className:i,component:s=Lm,...l}=r,c={...r,component:s},d=wA(c);return a.jsx(Bi.Provider,{value:EA,children:a.jsx(CA,{className:ue(d.root,i),as:s,ref:n,role:s===Lm?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(Bm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function TA(e){return be("MuiTableCell",e)}const kA=xe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),PA=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:l}=e,c={root:["root",n,l&&"stickyHeader",r!=="inherit"&&`align${Z(r)}`,i!=="normal"&&`padding${Z(i)}`,`size${Z(s)}`]};return ve(c,TA,t)},OA=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Z(n.size)}`],n.padding!=="normal"&&t[`padding${Z(n.padding)}`],n.align!=="inherit"&&t[`align${Z(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ye(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
235
+ ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${kA.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),rr=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:l,padding:c,scope:d,size:u,sortDirection:p,variant:h,...y}=r,b=T.useContext(Md),g=T.useContext(Bi),f=g&&g.variant==="head";let m;l?m=l:m=f?"th":"td";let x=d;m==="td"?x=void 0:!x&&f&&(x="col");const w=h||g&&g.variant,S={...r,align:i,component:m,padding:c||(b&&b.padding?b.padding:"normal"),size:u||(b&&b.size?b.size:"medium"),sortDirection:p,stickyHeader:w==="head"&&b&&b.stickyHeader,variant:w},v=PA(S);let C=null;return p&&(C=p==="asc"?"ascending":"descending"),a.jsx(OA,{as:m,ref:n,className:ue(v.root,s),"aria-sort":C,scope:x,ownerState:S,...y})});process.env.NODE_ENV!=="production"&&(rr.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function AA(e){return be("MuiTableContainer",e)}xe("MuiTableContainer",["root"]);const IA=e=>{const{classes:t}=e;return ve({root:["root"]},AA,t)},NA=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),jm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...l}=r,c={...r,component:s},d=IA(c);return a.jsx(NA,{ref:n,as:s,className:ue(d.root,i),ownerState:c,...l})});process.env.NODE_ENV!=="production"&&(jm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function FA(e){return be("MuiTableHead",e)}xe("MuiTableHead",["root"]);const MA=e=>{const{classes:t}=e;return ve({root:["root"]},FA,t)},DA=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),_A={variant:"head"},Wm="thead",Vm=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableHead"}),{className:i,component:s=Wm,...l}=r,c={...r,component:s},d=MA(c);return a.jsx(Bi.Provider,{value:_A,children:a.jsx(DA,{as:s,className:ue(d.root,i),ref:n,role:s===Wm?null:"rowgroup",ownerState:c,...l})})});process.env.NODE_ENV!=="production"&&(Vm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function $A(e){return be("MuiTableRow",e)}const Um=xe("MuiTableRow",["root","selected","hover","head","footer"]),zA=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return ve({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},$A,t)},LA=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ye(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Um.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Um.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Hm="tr",ji=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTableRow"}),{className:i,component:s=Hm,hover:l=!1,selected:c=!1,...d}=r,u=T.useContext(Bi),p={...r,component:s,hover:l,selected:c,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},h=zA(p);return a.jsx(LA,{as:s,ref:n,className:ue(h.root,i),role:s===Hm?null:"row",ownerState:p,...d})});process.env.NODE_ENV!=="production"&&(ji.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function BA(e){return be("MuiTextField",e)}xe("MuiTextField",["root"]);const jA={standard:Ha,filled:Va,outlined:qa},WA=e=>{const{classes:t}=e;return ve({root:["root"]},BA,t)},VA=X(Ua,{name:"MuiTextField",slot:"Root"})({}),Wi=T.forwardRef(function(t,n){const r=we({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:l,className:c,color:d="primary",defaultValue:u,disabled:p=!1,error:h=!1,FormHelperTextProps:y,fullWidth:b=!1,helperText:g,id:f,InputLabelProps:m,inputProps:x,InputProps:w,inputRef:S,label:v,maxRows:C,minRows:k,multiline:A=!1,name:z,onBlur:M,onChange:$,onFocus:I,placeholder:E,required:N=!1,rows:_,select:W=!1,SelectProps:F,slots:B={},slotProps:O={},type:V,value:L,variant:U="outlined",...q}=r,G={...r,autoFocus:s,color:d,disabled:p,error:h,fullWidth:b,multiline:A,required:N,select:W,variant:U},J=WA(G);process.env.NODE_ENV!=="production"&&W&&!l&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const K=mr(f),Q=g&&K?`${K}-helper-text`:void 0,se=v&&K?`${K}-label`:void 0,ce=jA[U],de={slots:B,slotProps:{input:w,inputLabel:m,htmlInput:x,formHelperText:y,select:F,...O}},ee={},pe=de.slotProps.inputLabel;U==="outlined"&&(pe&&typeof pe.shrink<"u"&&(ee.notched=pe.shrink),ee.label=v),W&&((!F||!F.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const[H,ne]=Te("root",{elementType:VA,shouldForwardComponentProp:!0,externalForwardedProps:{...de,...q},ownerState:G,className:ue(J.root,c),ref:n,additionalProps:{disabled:p,error:h,fullWidth:b,required:N,color:d,variant:U}}),[oe,ge]=Te("input",{elementType:ce,externalForwardedProps:de,additionalProps:ee,ownerState:G}),[me,ke]=Te("inputLabel",{elementType:rm,externalForwardedProps:de,ownerState:G}),[ae,te]=Te("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:G}),[Ce,Oe]=Te("formHelperText",{elementType:nm,externalForwardedProps:de,ownerState:G}),[ie,ze]=Te("select",{elementType:Tn,externalForwardedProps:de,ownerState:G}),Ae=a.jsx(oe,{"aria-describedby":Q,autoComplete:i,autoFocus:s,defaultValue:u,fullWidth:b,multiline:A,name:z,rows:_,maxRows:C,minRows:k,type:V,value:L,id:K,inputRef:S,onBlur:M,onChange:$,onFocus:I,placeholder:E,inputProps:te,slots:{input:B.htmlInput?ae:void 0},...ge});return a.jsxs(H,{...ne,children:[v!=null&&v!==""&&a.jsx(me,{htmlFor:K,id:se,...ke,children:v}),W?a.jsx(ie,{"aria-describedby":Q,id:K,labelId:se,value:L,input:Ae,...ze,children:l}):Ae,g&&a.jsx(Ce,{id:Q,...Oe,children:g})]})});process.env.NODE_ENV!=="production"&&(Wi.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:At,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const dt=kh({themeId:Qo}),UA=Je(a.jsx("path",{d:"M3 13h2v-2H3zm0 4h2v-2H3zm0-8h2V7H3zm4 4h14v-2H7zm0 4h14v-2H7zM7 7v2h14V7z"}),"List");function Dd(){return Dd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dd.apply(this,arguments)}function HA(e,t){if(e==null)return{};var n=RA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _d=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=HA(e,["color","size"]);return j.createElement("svg",Dd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),j.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});_d.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},_d.displayName="Bell";function $d(){return $d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(this,arguments)}function qA(e,t){if(e==null)return{};var n=YA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tl=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=qA(e,["color","size"]);return j.createElement("svg",$d({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("polyline",{points:"6 9 12 15 18 9"}))});tl.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},tl.displayName="ChevronDown";function zd(){return zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zd.apply(this,arguments)}function GA(e,t){if(e==null)return{};var n=KA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Vi=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=GA(e,["color","size"]);return j.createElement("svg",zd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("circle",{cx:"12",cy:"12",r:"1"}),j.createElement("circle",{cx:"12",cy:"5",r:"1"}),j.createElement("circle",{cx:"12",cy:"19",r:"1"}))});Vi.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Vi.displayName="MoreVertical";function Ld(){return Ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ld.apply(this,arguments)}function XA(e,t){if(e==null)return{};var n=JA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function JA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Bd=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=XA(e,["color","size"]);return j.createElement("svg",Ld({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("circle",{cx:"11",cy:"11",r:"8"}),j.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Bd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Bd.displayName="Search";function jd(){return jd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(this,arguments)}function QA(e,t){if(e==null)return{};var n=ZA(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZA(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wd=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=QA(e,["color","size"]);return j.createElement("svg",jd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("circle",{cx:"12",cy:"12",r:"3"}),j.createElement("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"}))});Wd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Wd.displayName="Settings";function Vd(){return Vd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vd.apply(this,arguments)}function eI(e,t){if(e==null)return{};var n=tI(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Ud=j.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,l=eI(e,["color","size"]);return j.createElement("svg",Vd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},l),j.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),j.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),j.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Ud.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Ud.displayName="ShoppingBag";function an(){const e={topBar:{root:{width:"100%",maxWidth:"100%",height:72,minHeight:72,maxHeight:72,marginLeft:0,marginRight:0,marginBottom:0,marginTop:0,paddingTop:"20px",gap:"20px",opacity:1,bgcolor:"#FFFFFF",boxSizing:"border-box",overflow:"hidden"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:"20px",paddingRight:"20px",paddingTop:0,paddingBottom:0,margin:0,maxWidth:"100%",flexShrink:0},searchBox:{display:"flex",alignItems:"center",position:"relative",width:320},searchInput:{fontSize:"0.9rem",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:2,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{width:379,height:520,maxWidth:379,maxHeight:520,borderRadius:"12px",background:"#FFFFFF",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",width:328,height:20,pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",margin:0},crossIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},crossIcon:{width:8,height:8,opacity:1,display:"flex",alignItems:"center",justifyContent:"center","& svg":{width:8,height:8,stroke:"#454545"}},content:{pt:"8px",px:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0},middleCard:{width:328,minHeight:280,display:"flex",flexDirection:"column",gap:"24px"},section:{width:328,gap:"8px",display:"flex",flexDirection:"column"},itemsToShowSection:{width:328,minHeight:68,gap:"8px",display:"flex",flexDirection:"column"},sectionTitle:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle",marginBottom:"8px"},checkboxRow:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px 16px",width:328,alignItems:"center"},checkboxCard:{width:160,height:16,gap:"8px",display:"flex",alignItems:"center"},checkboxLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",marginLeft:0,marginRight:0,"& .MuiTypography-root":{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},"& .MuiCheckbox-root":{p:0,width:16,height:16,mr:1},"& .MuiSvgIcon-root":{width:16,height:16}},checkboxSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},designSection:{width:328,display:"flex",flexDirection:"column",gap:"8px"},designContainer:{display:"flex",flexDirection:"row",flexWrap:"nowrap",gap:2,overflowX:"auto",overflowY:"hidden",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{width:120,minWidth:120,height:92,borderRadius:"6px",border:"2px solid",borderColor:"#E0E0E0",p:1.5,cursor:"pointer",flexShrink:0,textAlign:"center",bgcolor:"#FFFFFF",transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)",display:"flex",flexDirection:"column",justifyContent:"space-between",boxShadow:"0 2px 4px rgba(0,0,0,0.08)",overflow:"hidden",minHeight:0},selected:{borderColor:"#2D64B8",border:"2px solid #2D64B8",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0",border:"2px solid #E0E0E0"}},design1:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5,minHeight:0,overflow:"hidden"},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"10px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"100%"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeSection:{width:328,minHeight:56,gap:"8px",display:"flex",flexDirection:"column"},sheetSizeHeader:{width:328,height:20,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",verticalAlign:"middle"},sheetSizeRow:{width:328,minHeight:28,gap:"4px",display:"flex",alignItems:"center",flexWrap:"wrap"},sheetSizeGroup:{display:"flex",gap:"4px",alignItems:"center"},sheetSizeBtn:{width:36,height:28,borderRadius:"6px",padding:"6px 10px",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s",bgcolor:"#F5F5F5",border:"none","&:hover":{bgcolor:"#EEEEEE"}},sheetSizeBtnText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",color:"#454545"},sheetSizeBtnTextSelected:{color:"#000000"},sheetSizeBtnSelected:{bgcolor:"#F3F8FF",border:"0.5px solid #2D64B8","&:hover":{bgcolor:"#E8F0FE"}},copyPerItemRow:{display:"flex",alignItems:"center",gap:"8px",mt:.5},copyPerItemLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",color:"#454545"},actions:{px:"24px",pt:"2px",pb:"10px",display:"flex",flexDirection:"column",alignItems:"center"},printButtonWrapper:{width:331,height:40,borderRadius:"8px",padding:"12px 16px",display:"flex",alignItems:"center",justifyContent:"center"},printButton:{width:"100%",height:"100%",minHeight:40,borderRadius:"8px",padding:"12px 16px",bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center","&:hover":{bgcolor:"#2557A3"}}},createCatalog:{dialog:{width:600,height:384,maxWidth:600,maxHeight:384,borderRadius:"12px",display:"flex",flexDirection:"column",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pt:"24px",px:"24px",pb:"20px"},headerTitle:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000"},clearIconCard:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",border:"none",backgroundColor:"transparent",outline:"none","&:focus":{outline:"none"}},content:{pt:"20px",px:"24px",pb:"24px",overflowY:"hidden",overflowX:"hidden",flex:1,minHeight:0,display:"flex",flexDirection:"column",gap:"24px"},fieldBlock:{width:"100%",maxWidth:552,display:"flex",flexDirection:"column",gap:"4px"},fieldLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},input:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",outline:"none",boxSizing:"border-box"},inputReadOnly:{background:"#FFFFFF",color:"#454545"},storeDropdown:{width:"100%",height:40,borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",cursor:"pointer",userSelect:"none",fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",boxSizing:"border-box",bgcolor:"#FFFFFF"},createButton:{width:160,height:40,borderRadius:"8px",padding:"12px 16px",minWidth:160,bgcolor:"#2D64B8",color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",boxShadow:"none","&:hover":{bgcolor:"#2557A3"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}}},t={root:{width:"100%",maxWidth:"100%",marginLeft:0,marginRight:0,display:"flex",flexDirection:"column",alignItems:"stretch",py:{xs:2,sm:3,md:4},px:{xs:0,sm:0,md:4},bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{width:"100%",maxWidth:"100%",minHeight:448,display:"flex",flexDirection:"column",boxShadow:"none",borderRadius:0,bgcolor:"transparent",overflow:"visible",marginLeft:0,marginRight:0,gap:"4px",opacity:1,background:"#f7f8fa",p:0,mb:3,boxSizing:"border-box"},categoryTableContainer:{width:"100%",px:0},categoryTableShared:{checkboxHeaderSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#1976d2",border:"0.5px solid #1976d2"}},checkboxRowSx:{p:0,width:16,height:16,color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16,width:16,height:16,borderRadius:"4px",border:"0.5px solid #454545",bgcolor:"#FFFFFF"},"&.Mui-checked .MuiSvgIcon-root":{bgcolor:"#FFFFFF",color:"#2563EB",border:"0.5px solid #2563EB"}},checkboxIconSpanHeader:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #D0D5DD",background:"#FFFFFF"},checkboxCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #1976d2",background:"#FFFFFF",position:"relative"},checkboxCheckedIconInner:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:8,height:2,background:"#1976d2",borderRadius:2},checkboxIconSpanRow:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"},checkboxRowCheckedIconSpan:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},avatar:{width:56,height:56,borderRadius:"8px"},avatarPlaceholder:{width:56,height:56,borderRadius:"8px",bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:20},popoverPaper:{p:2,minWidth:220},popoverTitle:{fontWeight:700,mb:1},popoverItem:{fontSize:14,color:"#222",mb:.5},mrpText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#808080",textDecoration:"line-through"},discountText:{fontFamily:"Inter, sans-serif",fontSize:"10px",color:"#22c55e",fontWeight:500},errorIcon:{color:"#d32f2f",fontSize:16,mr:.5},moreOffersLink:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545",cursor:"pointer",textDecoration:"underline"},paginationIcon:{width:16,height:16,opacity:1}},categoryTableHeader:{width:"100%",minHeight:28,height:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px 4px 16px",opacity:1,background:"#F8F8F8",boxSizing:"border-box",flexWrap:"wrap"},categoryTableHeaderCheckboxCol:{width:16,height:16,flex:"0 0 16px",display:"flex",alignItems:"center",justifyContent:"center",opacity:1},categoryTableHeaderCell:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},categoryTableHeaderCategoryCell:{flex:"2 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center",gap:"4px"},categoryTableHeaderArrow:{fontSize:16,height:12,color:"#454545",marginLeft:"8px",marginTop:"2px"},categoryTableHeaderStockCell:{flex:"1 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080","@media (max-width: 477px)":{minWidth:80}},categoryTableHeaderProductsCell:{flex:"1.5 1 0",minWidth:0,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},categoryTableHeaderEmptyCell:{width:38,height:16,flex:"0 0 38px",opacity:0},categoryTableRow:(...n)=>({width:"100%",minHeight:"auto",display:"flex",alignItems:"center",gap:"16px",padding:"8px 16px",opacity:1,border:"1px solid #F1F1F1",borderRadius:"8px",background:"#FFFFFF",boxSizing:"border-box",flexWrap:"wrap"}),categoryTableRowCheckboxFrame:{width:16,height:20,flex:"0 0 16px",display:"flex",alignItems:"center",gap:"8px",opacity:1},categoryTableRowCheckbox:{width:16,height:16,padding:0,borderRadius:"4px",border:"0.5px solid #454545",color:"#FFFFFF","& .MuiSvgIcon-root":{fontSize:16}},categoryNameCell:{flex:"2 1 0",minWidth:0,minHeight:72,height:"auto",display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"flex-start",gap:"4px",opacity:1},categoryName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#454545",opacity:1},categoryProducts:{height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"18px",letterSpacing:0,color:"#454545",opacity:1},categoryUpdated:{width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1},categoryStockCell:{flex:"1 1 0",minWidth:0,height:32,display:"flex",flexDirection:"column",gap:"4px",opacity:1,"@media (max-width: 477px)":{minWidth:80}},categoryStock:n=>({width:67,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",opacity:1}),categoryOSA:(...n)=>({width:"100%",height:12,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",opacity:1}),categoryImagesCell:{flex:"1.5 1 0",minWidth:0,height:"auto",display:"flex",gap:"4px",opacity:1,flexWrap:"wrap"},categoryImage:{width:56,height:56,flex:"0 0 56px",borderRadius:"8px",border:"1px solid #F1F1F1",objectFit:"cover",background:"#f5f5f5",opacity:1},categoryMoreImageBox:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"#f0f0f0",cursor:"pointer"},categoryMoreImageText:{fontFamily:"Inter, sans-serif",fontSize:12,fontWeight:500,color:"#454545"},categoryViewCell:{width:"auto",height:56,flex:"0 0 auto",display:"flex",alignItems:"center",gap:"2px",opacity:1,marginLeft:"6px"},categoryViewButton:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",background:"none",textTransform:"none",p:0,minWidth:0,boxShadow:"none",justifyContent:"center",alignItems:"center","&:hover":{background:"none",boxShadow:"none"}},categoryViewButtonIcon:{width:12,height:12,color:"#808080"},categoryTableAllStore:{font:{fontFamily:"Inter, sans-serif"},outerCard:{width:"100%",maxWidth:"100%",minHeight:480,gap:"4px",opacity:1},categoryNameBox:{width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",height:28,gap:"32px",padding:"8px 16px",borderRadius:"8px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",bgcolor:"#808080",opacity:1},categoryNameText:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#FFFFFF",opacity:1},tableHeader:{width:"100%",height:28,gap:"16px",padding:"8px 16px 4px 16px",opacity:1},headerProduct:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerStatusOsa:{gap:"40px",minWidth:0,flex:"0 1 auto"},headerStatusText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerOsaText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},arrowDown:{width:12,height:12,color:"#454545"},arrowDownAllStore:{fontSize:12,height:12,color:"#808080",marginLeft:"8px",marginTop:"8px"},rowCard:{width:"100%",maxWidth:"100%",minHeight:80,gap:"16px",padding:"12px 16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},checkboxBase:{width:16,height:16,borderRadius:"4px",border:"0.5px solid #D0D5DD",color:"#FFFFFF"},checkboxRow:{border:"0.5px solid #454545",color:"#FFFFFF"},productBlock:{height:56,gap:"16px",minWidth:0,flex:"1 1 0"},imageBox:{width:56,height:56,border:"1px solid #F1F1F1",borderRadius:"8px"},productName:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},productMeta:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"},productMetaBullet:{color:"#C5C5C5"},productSku:{fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#808080"},statusOsaBlock:{height:32,gap:"40px",minWidth:0,flex:"0 1 auto"},statusActiveBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#D8FBE3",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusNoStockBox:{width:64,height:20,minHeight:20,maxHeight:20,boxSizing:"border-box",gap:"8px",padding:"4px 6px",borderRadius:"4px",opacity:1,bgcolor:"#F1F1F1",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#808080",verticalAlign:"middle",display:"inline-flex",alignItems:"center",justifyContent:"center"},statusActive:{padding:"4px 6px",borderRadius:"4px",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545",verticalAlign:"middle"},stockValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#EB8F00"},osaValue:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",color:"#454545"},onShelfText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"10px",lineHeight:"12px",letterSpacing:0,color:"#454545"}},categoryTableSingleStore:{outerCard:{width:"100%",maxWidth:"100%",minHeight:520,gap:"6px",opacity:1},tableHeader:{width:"100%",maxWidth:"100%",height:28,gap:"32px",padding:"8px 16px 4px 16px",opacity:1},headerLabel:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080"},headerProduct:{minWidth:0,flex:"1 1 0"},headerStatus:{minWidth:0,flex:"0 1 auto"},headerPrice:{minWidth:0,flex:"0 1 auto"},headerStock:{minWidth:0,flex:"0 1 auto"},headerOffer:{minWidth:0,flex:"0 1 auto"},stockOfferGap:"12px",checkboxBlue:{border:"0.5px solid #2D64B8",bgcolor:"#F3F8FF",color:"#2D64B8"},rowCard:{width:"100%",maxWidth:"100%",height:88,gap:"32px",padding:"16px",border:"1px solid #F1F1F1",borderRadius:"8px",bgcolor:"#FFFFFF",opacity:1},productBlock:{width:237,height:56,gap:"16px"},productDetailsWidth:165,statusBlock:{width:64,height:20},priceBlock:{width:50,height:48,gap:"4px"},priceText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},clockIcon:{width:16,height:16,borderRadius:"4px",padding:"2px",bgcolor:"#F5F5F5"},clockIconSx:{fontSize:14,color:"#808080"},stockBlock:{height:32,gap:"4px",minWidth:0,flex:"0 1 auto"},offerBlock:{height:36,gap:"4px",minWidth:0,flex:"0 1 auto"},offerText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},onShelfPercentRed:{color:"#d32f2f"},onShelfPercentNormal:{color:"#808080"},onShelfSpan:{color:"#808080"}},categoryTablePagination:{wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},paginationIcon:{width:16,height:16,opacity:1},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}},contentWrapper:{marginTop:"72px",position:"relative",zIndex:0,width:"100%",boxSizing:"border-box"},loadingBox:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogTitleRow:{display:"flex",alignItems:"center",justifyContent:"space-between"},categoryImageDialogTitleText:{fontFamily:"Inter, sans-serif",fontSize:16,fontWeight:500},categoryImageDialogCloseButton:{textTransform:"none",fontSize:14},categoryImageDialogContent:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",pb:3},categoryImageDialogImageBox:{maxWidth:"100%",maxHeight:"70vh",display:"flex",alignItems:"center",justifyContent:"center"},categoryImageDialogImage:{maxWidth:"100%",maxHeight:"70vh",borderRadius:2,objectFit:"contain"},categoryImageDialogFallbackText:{fontFamily:"Inter, sans-serif",fontSize:14,color:"#808080",textAlign:"center"},categoryImageDialogFooterRow:{mt:2,display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},categoryImageDialogNavButton:{textTransform:"none"},categoryImageDialogCounterText:{fontFamily:"Inter, sans-serif",fontSize:12,color:"#808080"}};return e.categoryDetail=t,e}const Rm=0,qm=1e4;function Ym({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const l=j.useMemo(()=>{const w=s?.min??t.minPrice??Rm,S=s?.max??t.maxPrice??qm;return{min:Number(w)||Rm,max:Math.max(Number(S)||qm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),c=t.status==="active"||t.status==="inactive"?t.status:"",d=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",u=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,p=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=u??l.min,y=p??l.max,b=(w,S)=>{n({...t,status:S===c?void 0:S||void 0})},g=(w,S)=>{n({...t,stock:S===d?void 0:S||void 0})},f=(w,S)=>{if(!Array.isArray(S)||S.length!==2)return;const v=Number(S[0]),C=Number(S[1]),k=Math.min(v,C),A=Math.max(v,C);n({...t,minPrice:k,maxPrice:A})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),x=()=>{const w={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(w)};return a.jsxs(uo,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,disableScrollLock:!0,children:[a.jsx(fo,{children:"Filter Products"}),a.jsx(Oi,{children:a.jsxs(P,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[a.jsxs(Ua,{component:"fieldset",children:[a.jsx(Ni,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),a.jsxs(Ya,{row:!0,value:c,onChange:b,name:"status",children:[a.jsx(En,{value:"active",control:a.jsx(mo,{size:"small"}),label:"Active"}),a.jsx(En,{value:"inactive",control:a.jsx(mo,{size:"small"}),label:"Inactive"})]})]}),a.jsxs(Ua,{component:"fieldset",children:[a.jsx(Ni,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),a.jsxs(Ya,{row:!0,value:d,onChange:g,name:"stock",children:[a.jsx(En,{value:"inStock",control:a.jsx(mo,{size:"small"}),label:"In Stock"}),a.jsx(En,{value:"outOfStock",control:a.jsx(mo,{size:"small"}),label:"Out of Stock"})]})]}),a.jsxs(P,{children:[a.jsx(Ni,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),a.jsxs(D,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",y]}),a.jsx(P,{sx:{px:.5},children:a.jsx(Fm,{value:[h,y],onChange:f,min:l.min,max:l.max,valueLabelDisplay:"on",valueLabelFormat:w=>`₹${w}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),a.jsxs(bd,{sx:{gap:.5,flexWrap:"wrap"},children:[a.jsx(Re,{onClick:r,children:"Cancel"}),m&&a.jsx(Re,{variant:"contained",onClick:x,children:"Clear Filters"}),a.jsx(Re,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const nI=Je(a.jsx("path",{d:"M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"}),"Sort");function rI(e){return a.jsx(nI,{...e})}const oI=Je(a.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");function Ui(e){return a.jsx(oI,{...e})}const iI=Je(a.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"CachedSharp");function Ir(e){return a.jsx(iI,{...e})}function Hd(e){return a.jsx(Wd,{...e})}const sI={minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"};function Hi(e){const{sx:t={},...n}=e;return a.jsx(P,{component:"button",sx:{...sI,...t},title:"Notifications","aria-label":"Notifications",...n,children:a.jsx(_d,{size:20})})}const aI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACJSURBVHgBlVBBDYAwDGxQgAQkTMIk4AALczAk4AAcgBMkTAISSge3x0iXjUsuS9q79joiBcwchEbrdYp4kCeyzSCweCeqIU5HnJ1fTCVhL/TCS3iiNsO0ZvdgYsLxGeQ4h4lFi0aK4SE22BjQH7VoaaKDcItxqXL4AlOgFuCnni3UChjsH0NRfAPyobTjv0sWNAAAAABJRU5ErkJggg==",lI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABGSURBVHgBXYtBDQAgDAMrBSlIQAIScIYEJCABCUgYbdhj2SXNku4KOGa2mYYIi2qfiWSK5fcyXY8m08vDDKbEpcyBjObRfCpVS/aG0GXFAAAAAElFTkSuQmCC";function Ri(e){const{sx:t={},...n}=e;return a.jsx(P,{sx:{flexShrink:0,...t},...n,children:a.jsx(P,{sx:{padding:"1px",borderRadius:"10px",background:"linear-gradient(93.46deg, #568BDC 8.37%, #87FFD7 52.21%, #5ABDCE 93.24%)",flexShrink:0,width:32,height:32,boxSizing:"border-box"},children:a.jsx(P,{component:"button",sx:{position:"relative",width:"100%",height:"100%",minWidth:30,minHeight:30,padding:0,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,boxSizing:"border-box",borderRadius:"9px",background:"linear-gradient(94.11deg, #5BC0CF 3.33%, #2D64B8 92.67%)",border:"none",cursor:"pointer"},title:"Ask Aira","aria-label":"Ask Aira",children:a.jsxs(P,{sx:{position:"relative",width:20,height:20,opacity:1,flexShrink:0},children:[a.jsx(P,{component:"img",src:aI,alt:"",sx:{position:"absolute",width:10,height:10,top:"3.33px",left:"3.34px",opacity:1,objectFit:"contain",display:"block"}}),a.jsx(P,{component:"img",src:lI,alt:"",sx:{position:"absolute",width:4.166666507720947,height:4.166666507720947,top:"12.5px",left:"12.5px",opacity:1,objectFit:"contain",display:"block"}})]})})})})}const nl=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:l,showBackButton:c=!1,backTo:d="/home",hideViewSwitch:u=!1,isHomeDefault:p=!1,tenantStatus:h={matched:!0},priceRange:y,styles:b})=>{const g=St(),f=an(),m=dt("(max-width:600px)"),x=dt("(max-width:950px)"),w=dt("(max-width:900px)"),S=dt("(max-width:870px)"),v=dt("(max-width:840px)"),C=dt("(max-width:810px)"),k=dt("(max-width:780px)"),A=dt("(max-width:750px)"),z=dt("(max-width:600px)"),[M,$]=j.useState(null),I=!!M,[E,N]=j.useState("search"),[_,W]=j.useState(null),F=!!_,[B,O]=j.useState(!1),[V,L]=j.useState(!1),[U,q]=j.useState(e||{}),[G,J]=j.useState(e?.search??""),K=Array.isArray(e?.store)?e.store:[],Q=()=>{W(null)},[se,ce]=j.useState(K),de=te=>{ce(te==="all"?["all"]:[te])},ee=te=>{i?O(!0):(ce(K.length===0?["all"]:K),W(te.currentTarget))},pe=()=>{t({...e,store:se}),W(null)},H=te=>{l?l(te):t({...e,store:te}),O(!1)},ne=()=>{O(!1)};j.useEffect(()=>{J(e?.search??"")},[e?.search]);const oe=te=>{if(te.key==="Enter"){te.preventDefault();const Ce=(G??"").trim();t({...e,search:Ce})}},ge=te=>{$(te.currentTarget)},me=()=>{$(null)},ke=f,ae=b!=null&&b.root!==void 0?b:(b!=null&&b.topBar!=null?b.topBar:ke.topBar)||{};return a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{...ae.root,position:"fixed",top:0,right:0,display:"flex",flexDirection:"column",alignItems:"center",width:"100%",height:72,minHeight:72,maxHeight:72,paddingTop:"16px",paddingBottom:0,gap:"16px",boxSizing:"border-box",overflow:"hidden",zIndex:1100},children:a.jsx(Ar,{maxWidth:"lg",disableGutters:!0,sx:{width:"100%",display:"flex",justifyContent:"center",boxSizing:"border-box"},children:a.jsxs(P,{sx:{...ae.inner,width:"100%",minWidth:0,height:32,minHeight:32,maxHeight:32,maxWidth:"100%",boxSizing:"border-box",gap:m?"12px":"16px",display:"flex",flexDirection:"row",alignItems:"center",overflow:"hidden",flexShrink:0,flexWrap:"nowrap"},children:[a.jsxs(P,{sx:{display:m&&E!=="search"?"none":"flex",alignItems:"center",flex:1,minWidth:0,flexBasis:m?"100%":"auto"},children:[c&&a.jsxs(a.Fragment,{children:[a.jsxs(P,{component:"button",onClick:()=>g(d),sx:{display:"flex",alignItems:"center",width:48,height:16,gap:"4px",opacity:1,background:"none",border:"none",padding:0,cursor:"pointer","&:hover":{opacity:.85}},children:[a.jsx(Ui,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),a.jsx(D,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24,alignSelf:"center",borderColor:"#e0e0e0"}})]}),a.jsx(P,{sx:{display:m&&E!=="search"?"none":"flex",alignItems:"center",minWidth:0,flex:1,maxWidth:m?"100%":480},children:a.jsxs(P,{sx:{...ae.searchBox,display:"flex",flexDirection:"row",alignItems:"center",width:"100%",maxWidth:414,height:20,gap:"12px",borderRadius:2,border:"none",backgroundColor:"#fff",px:1.5,py:0,boxSizing:"border-box"},children:[a.jsx(Bd,{size:18,style:{position:"absolute",left:12,color:"#000000",top:"50%",transform:"translateY(-50%)"}}),a.jsx(Ei,{placeholder:c?"Search Products":"Search Products & Categories",value:G,onChange:te=>J(te.target.value),onKeyDown:oe,sx:{...ae.searchInput||{},pl:3.5,width:"100%","& .MuiInputBase-input":{py:1.25,boxSizing:"border-box"},"&::placeholder":{color:"#a0a0a0",opacity:1}}})]})})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",mx:0,display:m||z&&A&&k?"none":"block"}}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flexShrink:0,height:32,gap:"16px",flexDirection:"row",boxSizing:"border-box",flexBasis:"auto",justifyContent:"flex-start",flexWrap:"nowrap"},children:[a.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[a.jsxs(P,{sx:{display:m?E==="store"?"flex":"none":z?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 1 216px",width:m?"100%":"auto",maxWidth:m?"100%":216,height:32,borderRadius:"6px",border:"1px solid #F1F1F1",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",backgroundColor:"#FFFFFF",cursor:"pointer",gap:1,boxSizing:"border-box"},onClick:ee,tabIndex:0,"aria-label":"Select stores",children:[a.jsx(Ud,{size:18,style:{color:"#555",marginRight:4}}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",minWidth:56,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:K.length===0||K.includes("all")?"All Stores":K.length===1?"1 Store":`${K.length} Stores`}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",width:m?"auto":61,height:16,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:` ${n.filter(te=>te.id!=="all"&&te.storeCode!=="all").length} stores`}),a.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,flexShrink:0,color:"#454545"}})]}),a.jsxs(Ra,{anchorEl:_,open:F,onClose:Q,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[a.jsxs($e,{onClick:()=>de("all"),children:[a.jsx(ht,{checked:se.length===0||se.includes("all")}),a.jsx(kd,{primary:"All Stores"})]}),a.jsx(Ut,{}),a.jsx(P,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(te=>te.id!=="all").map(te=>a.jsxs($e,{onClick:()=>de(te.id),children:[a.jsx(ht,{checked:se.includes(te.id)}),a.jsx(kd,{primary:te.name})]},te.id))}),a.jsx(Ut,{}),a.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:a.jsx(Re,{variant:"contained",size:"small",onClick:pe,children:"Apply"})})]}),a.jsxs(P,{sx:{display:m?E==="filters"?"flex":"none":A?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":67,maxWidth:m?"100%":67,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},onClick:()=>{r?r():(q(e||{}),L(!0))},children:[a.jsx(D,{sx:{width:29,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545",whiteSpace:"nowrap"},children:p?"MTD":"Filters"}),a.jsx(tl,{size:16,style:{width:16,height:16,opacity:1,color:"#454545",flexShrink:0}})]}),a.jsxs(P,{sx:{display:m?E==="sort"?"flex":"none":k?"none":"flex",alignItems:"center",flex:m?"1 1 auto":"0 0 auto",width:m?"100%":63,maxWidth:m?"100%":63,height:32,gap:"4px",borderRadius:"6px",paddingTop:"6px",paddingRight:"8px",paddingBottom:"6px",paddingLeft:"10px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box",cursor:"pointer"},children:[a.jsx(D,{sx:{width:25,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,textAlign:"center",display:"flex",alignItems:"center",color:"#454545"},children:"Sort"}),a.jsx(rI,{sx:{width:16,height:16,opacity:1,color:"#454545"}})]}),a.jsx(P,{sx:{display:m&&E==="settings"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,pointerEvents:h.loading?"none":"auto",boxSizing:"border-box"},title:h.loading?"Loading...":"Settings",onClick:()=>{h.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:a.jsx(Hd,{size:18.33,color:"#454545"})}),a.jsx(P,{sx:{display:m&&E==="notification"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,borderRadius:"6px",border:"1px solid #F1F1F1",backgroundColor:"#FFFFFF",boxSizing:"border-box"},children:a.jsx(Hi,{})}),a.jsx(P,{sx:{display:m&&E==="askAira"?"flex":"none",alignItems:"center",justifyContent:"center",flex:"1 1 auto",width:"100%",maxWidth:"100%",height:32,boxSizing:"border-box"},children:a.jsx(Ri,{})})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",display:C&&v&&S||m&&(E==="settings"||E==="notification"||E==="askAira")?"none":"block"}}),a.jsxs(P,{sx:{display:"flex",gap:1,alignItems:"center"},children:[a.jsx(P,{component:"button",sx:{...ae.iconOnly,display:C?"none":"flex"},title:"Refresh",children:a.jsx(Ir,{sx:{width:20,height:20,opacity:1}})}),!u&&a.jsx(P,{component:"button",sx:{...ae.iconOnly,display:v?"none":"flex",cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:h.loading?"none":"auto"},title:h.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{h.loading||g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:a.jsx(Hd,{size:18.33,color:"#454545"})}),a.jsx(P,{component:"button",sx:{...ae.iconOnly,display:S?"none":"flex"},title:"More",children:a.jsx(Vi,{size:20})})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px",display:w?"none":"block"}})]}),!w&&a.jsx(Hi,{}),a.jsx(P,{sx:{marginLeft:"auto",flexShrink:0,display:"flex",alignItems:"center"},children:x?a.jsx(P,{component:"button",sx:ae.iconOnly,"aria-label":"Open actions menu",onClick:ge,children:a.jsx(UA,{fontSize:"small"})}):a.jsx(Ri,{})}),a.jsx(Ra,{anchorEl:M,open:I,onClose:me,disableScrollLock:!0,PaperProps:{sx:{maxHeight:120,overflowY:"auto"}},children:m?a.jsxs(a.Fragment,{children:[E!=="search"&&a.jsx($e,{onClick:()=>{N("search"),me()},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Search Products & Categories"})}),E!=="store"&&a.jsx($e,{onClick:()=>{N("store"),me()},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})}),E!=="filters"&&a.jsx($e,{onClick:()=>{N("filters"),me()},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})}),E!=="sort"&&a.jsx($e,{onClick:()=>{N("sort"),me()},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})}),a.jsx($e,{onClick:me,children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Ir,{sx:{width:20,height:20}}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})}),!u&&E!=="settings"&&a.jsx($e,{onClick:()=>{N("settings"),me()},children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Hd,{size:18.33,color:"#454545"}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})]})}),a.jsx($e,{onClick:me,children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Vi,{size:20}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"More"})]})}),E!=="notification"&&a.jsx($e,{onClick:()=>{N("notification"),me()},children:a.jsx(Hi,{})}),E!=="askAira"&&a.jsx($e,{onClick:()=>{N("askAira"),me()},children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Ri,{}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})})]}):a.jsxs(a.Fragment,{children:[w&&a.jsx($e,{onClick:me,children:a.jsx(Hi,{})}),S&&a.jsx($e,{onClick:me,children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Vi,{size:20}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"More"})]})}),v&&!u&&a.jsx($e,{onClick:()=>{me(),!h.loading&&g("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Settings"})}),C&&a.jsx($e,{onClick:me,children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Ir,{sx:{width:20,height:20,opacity:1}}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Refresh"})]})}),z&&a.jsx($e,{onClick:te=>{me(),ee(te)},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"All Stores"})}),A&&a.jsx($e,{onClick:()=>{me(),r?r():(q(e||{}),L(!0))},children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Filters"})}),k&&a.jsx($e,{onClick:me,children:a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Sort"})}),(w||S||v||C||z||A||k)&&a.jsx(Ut,{}),a.jsx($e,{onClick:me,children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(Ri,{}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontSize:"12px"},children:"Ask Aira"})]})})]})})]})})}),i&&(()=>{const{open:te,onClose:Ce,onStoreSelect:Oe,...ie}=s||{};return a.jsx(i,{open:B,onClose:ne,onStoreSelect:H,selectedStores:K,...ie})})(),!r&&a.jsx(Ym,{open:V,filters:U,onChange:q,onClose:()=>L(!1),onApply:te=>{t&&t(te!==void 0?te:U),L(!1)},priceRange:y})]})};function cI({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=an(),i=vt(),s=i.state?.filters||{category:"",status:"",search:"",store:[]},[l,c]=j.useState(s),[d,u]=j.useState(!1),[p,h]=j.useState(l),y=je(C=>C.dashboard),b=y?.companyId??"",g=j.useMemo(()=>y?.stores||[],[y?.stores]),f=zt(),m=j.useRef(!1);j.useEffect(()=>{!b&&!m.current&&(m.current=!0,f(Wr()))},[f,b]),j.useEffect(()=>{b&&f(Vr())},[b,f]),j.useEffect(()=>{i.state?.filters&&setTimeout(()=>{c(i.state.filters)},0)},[i.state]);const x=C=>{c(C)},w=()=>{h(l),u(!0)},S=g.length>0?g:[{id:"all",name:"All Stores",storeCode:"all"}],v=i.state&&i.state.tenantStatus||{matched:!0};return a.jsxs("div",{className:"app-container",children:[a.jsx(nl,{styles:r,onFilterChange:x,filters:l,stores:S,onOpenFilterModal:w,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:v}),a.jsx("div",{className:"product-main-container",style:{marginTop:"92px"}}),a.jsx(Ym,{open:d,filters:p,onChange:h,onClose:()=>u(!1),onApply:C=>{c(C!==void 0?C:p),u(!1)}})]})}const Gm=Je(a.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"CheckCircleOutline"),dI=e=>a.jsx(Bn,{...e,viewBox:"0 0 24 24",children:a.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),pI=()=>{const e=St(),t=zt(),n=an(),{metrics:r,loading:i}=je(C=>C.dashboard),[s,l]=j.useState({search:"",store:[],category:"all",status:"all"}),c=C=>l(C),[d,u]=j.useState(new Date);j.useEffect(()=>{t(Uo())},[t]),j.useEffect(()=>{const C=setInterval(()=>{u(new Date)},6e4);return()=>clearInterval(C)},[]);const p=d.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=d.getDate(),y=d.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),b=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),x=f?.availableProducts||0,w=f?.totalRequests||0,S=f?.availabilityPercentage||0,v=w>0?100-S:0;return a.jsxs(a.Fragment,{children:[a.jsx(nl,{styles:n.topBar,filters:s,onFilterChange:c,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),a.jsxs(P,{sx:{marginTop:"72px",width:"100%",display:"flex",flexDirection:"column",alignItems:"center",p:4,bgcolor:"#f7f8fa",minHeight:"100vh",boxSizing:"border-box"},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[a.jsx(Hn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:a.jsxs(qg,{sx:{p:1},children:[a.jsx(D,{variant:"body2",color:"text.secondary",children:p}),a.jsx(D,{variant:"h6",fontWeight:400,color:"#000000",children:h}),a.jsx(D,{variant:"caption",color:"text.secondary",children:y})]})}),a.jsxs(P,{children:[a.jsxs(D,{variant:"h6",fontWeight:700,children:["Hi Ashok ",a.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),a.jsx(D,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),a.jsx(P,{sx:{mt:2},children:a.jsxs(Hn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:1},children:[a.jsx(dI,{sx:{fontSize:24,color:"#000000"}}),a.jsxs(D,{variant:"h6",fontWeight:700,children:["Products ",a.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:i?"...":b})]})]}),a.jsxs(D,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),a.jsxs(P,{sx:{display:"flex",gap:2},children:[a.jsxs(Hn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(D,{variant:"body2",color:"#454545",children:"Active Products"}),a.jsx(D,{variant:"h6",fontWeight:700,children:i?"...":b}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:.5},children:[a.jsx(Gm,{sx:{fontSize:16,color:"#4caf50"}}),a.jsx(D,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),a.jsxs(Hn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(D,{variant:"body2",color:"#454545",children:"Active Catalogs"}),a.jsx(D,{variant:"h6",fontWeight:700,children:i?"...":g}),a.jsx(D,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),a.jsxs(Hn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[a.jsx(D,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),a.jsxs(D,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[i?"...":`${S}%`,a.jsx(D,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:i?"":`${m(x)}/${m(w)}`})]}),a.jsx(D,{variant:"caption",color:"error",children:i?"":`${v.toFixed(0)}% missing`})]})]})]})})]})]})};function qi({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1}){const l=St(),c=an(),[d]=j.useState({matched:!1,error:"",apiResponse:null,loading:!1});let u=c&&c.emptyProduct?c.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const h=je(g=>g?.dashboard)?.products||[],y=t||(()=>l("/product-setting")),b=!r&&!e&&Array.isArray(h)&&h.length===0;return a.jsx(P,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:a.jsx(P,{sx:u.wrapper,children:a.jsxs(P,{sx:u.card,children:[a.jsxs(P,{sx:u.iconContainer,children:[a.jsxs(P,{sx:u.sparkleContainer,children:[a.jsx(P,{sx:u.sparkleLeft}),a.jsx(P,{sx:u.sparkleCenter}),a.jsx(P,{sx:u.sparkleRight})]}),a.jsx(P,{sx:u.inboxIcon,children:a.jsx(P,{sx:u.notch})})]}),a.jsx(D,{sx:u.title,children:r?"Session Expired":n?`No Product in ${n} Category`:"No Products"}),!s&&a.jsx(D,{sx:u.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!b?`No products found in the "${n}" category.`:b?"No products found in store inventory. Start syncing to add products.":d.matched?"Active integrations fetched successfully":d.error?d.error:"No active integration found for this tenant id"}),!s&&!e&&!r&&b&&!i&&a.jsx(D,{component:"a",href:"#",sx:u.actionLink,onClick:g=>{g.preventDefault(),y()},children:"Start Syncing Products"})]})})})}const Km=Je(a.jsx("path",{d:"M19 6.41 17.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"),uI="#22c55e";function Xm(e){const{sx:t,color:n=uI,fontSize:r,...i}=e;return a.jsxs(Bn,{viewBox:"0 0 24 24",sx:{fontSize:r||24,color:n,...t},...i,children:[a.jsx("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),a.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",d:"M6.5 12l3.5 4 7-8"})]})}function fI({catalogSlug:e="",onClose:t}){const n=typeof window<"u"?`${window.location.origin}${e.startsWith("/")?e:`/${e}`}`:"",r=()=>{n&&navigator.clipboard.writeText(n).then(()=>{}).catch(()=>{})};return a.jsxs(P,{sx:{position:"fixed",top:24,right:24,zIndex:1400,display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:400,minWidth:320,px:2,py:1.5,borderRadius:2,backgroundColor:"#e8f5e9",border:"1px solid #c8e6c9",boxShadow:"0 4px 12px rgba(0,0,0,0.08)"},children:[a.jsx(P,{sx:{flexShrink:0,mt:.25,display:"flex",alignItems:"center"},children:a.jsx(Xm,{sx:{fontSize:40}})}),a.jsxs(P,{sx:{flex:1,minWidth:0,pt:.25},children:[a.jsx(D,{sx:{fontWeight:700,fontSize:16,color:"#111",lineHeight:1.3},children:"Catalog created"}),a.jsx(D,{sx:{fontWeight:400,fontSize:14,color:"#666",mt:.25,lineHeight:1.4},children:"You can now share it for collecting orders"}),a.jsx(D,{component:"button",onClick:r,sx:{marginTop:.75,padding:0,border:"none",background:"none",cursor:"pointer",fontWeight:500,fontSize:14,color:"#2563eb",textDecoration:"underline","&:hover":{color:"#1d4ed8"}},children:"Copy Share Link"})]}),a.jsx(ft,{onClick:t,size:"small","aria-label":"Close",sx:{color:"#888",p:.5,mt:-.5,mr:-.5,"&:hover":{color:"#333",bgcolor:"rgba(0,0,0,0.04)"}},children:a.jsx(Km,{sx:{fontSize:20}})})]})}const hI=Je(a.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),gI=Je(a.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");function kt({size:e,style:t,sx:n,...r}){return a.jsx(gI,{...r,sx:{...e&&{width:e,height:e},...t,...n}})}const rl={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#454545"},Jm={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},mI={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},Qm=e=>{if(!e)return"";const t=new Date(e);if(Number.isNaN(t.getTime()))return"";const n=Date.now()-t.getTime();if(n<0)return"Sync just now";const r=Math.floor(n/(1e3*60*60));if(r>=24){const i=Math.floor(r/24);return`Sync ${i} day${i>1?"s":""} ago`}return`Sync ${r}h ago`},ol=e=>{if(e==null||!Number.isFinite(e))return"0";if(e>=1e3){const t=e/1e3;return(t%1===0?String(t):t.toFixed(1).replace(/\.0$/,""))+"K"}return String(Math.round(e))},Zm=({productState:e,categoryName:t,categoryProductCount:n,categoryCount:r,activeCatalogsCount:i=0,onManageClick:s,matchHomePageLayout:l=!1})=>{const c=e?.metrics||{},d=e?.productDashboardMetrics||{},u=!t,p=l||u,h=!!t&&!p,y=p?"12px":"8px",b=p?void 0:261.3333435058594,g=101,f=t?d.productCount!=null?d.productCount:n:u&&(c.activeCategories!=null||c.activeProducts!=null)?c.activeCategories??r??0:r??e?.homePageCardSummary?.totalCategories??0,m=t?"":"Products",x=t?"":u&&c.activeProducts!=null?c.activeProducts:e?.homePageCardSummary?.totalProducts??0,w=c?.lastSyncTime,S=d?.lastSyncTime,v=Qm(u?w:S||w),C=u&&c.activeCatalogues!=null?c.activeCatalogues:t&&d.activeCatalogues!=null?d.activeCatalogues:i,k=c.onShelfYesterdayPerc!=null?Math.round(Number(c.onShelfYesterdayPerc)):null,A=c.totalOnShelfYesterdayCount!=null?Number(c.totalOnShelfYesterdayCount):null,z=c.totalStockYesterdayCount!=null?Number(c.totalStockYesterdayCount):null,M=c.missingOnShelfYesterdayPercent!=null?Math.round(Number(c.missingOnShelfYesterdayPercent)):null,$=d.onShelfYesterdayPerc!=null?Math.round(Number(d.onShelfYesterdayPerc)):null,I=d.totalOnShelfYesterdayCount!=null?Number(d.totalOnShelfYesterdayCount):null,E=d.totalStockYesterdayCount!=null?Number(d.totalStockYesterdayCount):null,N=d.missingOnShelfYesterdayPercent!=null?Math.round(Number(d.missingOnShelfYesterdayPercent)):null,_=u?k!=null?`${k}%`:"78%":$!=null?`${$}%`:"78%",W=u?A!=null&&z!=null?`${ol(A)}/${ol(z)}`:"78/100k":I!=null&&E!=null?`${ol(I)}/${ol(E)}`:"78/100k",F=u?M!=null?`${M}% Missing`:"22% missing":N!=null?`${N}% Missing`:"22% missing",B=t?`${t} Products`:"Categories";return a.jsx(Ar,{maxWidth:!1,sx:{width:"100%",maxWidth:"100%",minWidth:"100%",px:0},children:a.jsxs(P,{sx:{width:"100%",maxWidth:"100%",height:p?"auto":h?101:"auto",gap:y,opacity:1,display:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"stretch",mb:3},children:[a.jsx(Rd,{cardWidth:b??344,cardHeight:g,title:B,titleValue:f,subtitle:m,subtitleValue:x,recentText:v,tickMarkRequired:!0,btnLabel:"History",flexGrow:!0,flexOverride:p?"2 1 180px":h?void 0:"2 1 180px"}),a.jsx(Rd,{cardWidth:b??220,cardHeight:g,title:"Active Catalogs",titleValue:C,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:s,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"}),a.jsx(Rd,{cardWidth:b??220,cardHeight:g,title:"On Shelf Yesterday",titleValue:_,thirdVaue:W,recentText:F,recentTextColor:"#FF2929",btnLabel:"Report",isThirdCard:!0,flexGrow:!0,flexOverride:p?"1 1 200px":h?void 0:"1 1 200px"})]})})};function Rd({cardWidth:e=344,cardHeight:t=101,title:n="",subtitle:r="",titleValue:i="",thirdVaue:s="",subtitleValue:l="",recentText:c="",recentTextColor:d="#808080",btnLabel:u="",tickMarkRequired:p=!1,linkRequired:h=!1,onBtnClick:y,isThirdCard:b=!1,flexGrow:g=!1,flexOverride:f}){const m={fontFamily:"Inter, sans-serif",fontWeight:300,fontSize:28,lineHeight:"32px",letterSpacing:"-3px",color:"#454545"},x={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#808080"},w={fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:10,lineHeight:"12px",letterSpacing:0,color:"#FF2929"},S={fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",letterSpacing:0,color:"#2D64B8"};return a.jsxs(Hn,{sx:{width:g?void 0:e,minWidth:g?200:void 0,flex:f??(g?"1 1 200px":"0 0 auto"),height:t,opacity:1,gap:"1px",borderRadius:"12px",bgcolor:"#fff",boxShadow:"0 2px 8px #e0e0e0",p:0,display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"},children:[a.jsx(P,{sx:{width:g?"100%":e,height:68,opacity:1,gap:"4px",padding:"8px 12px",display:"flex",alignItems:"flex-start",boxSizing:"border-box"},children:b?a.jsx(a.Fragment,{children:a.jsxs(P,{sx:{width:"100%",height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[a.jsx(D,{sx:{...rl,height:16},children:n}),a.jsxs(P,{sx:{minWidth:0,height:32,opacity:1,gap:"6px",display:"flex",alignItems:"baseline",flexWrap:"nowrap"},children:[a.jsx(D,{sx:{...m},children:i}),a.jsx(D,{sx:{...x},children:s})]})]})}):a.jsxs(a.Fragment,{children:[n&&a.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[a.jsx(D,{sx:{...rl,width:158,height:16},children:n}),a.jsx(D,{sx:{...Jm,width:32,height:32},children:i}),s&&a.jsx(D,{component:"span",sx:{...rl,fontSize:12,color:"#808080",ml:.5},children:s})]}),r&&a.jsxs(P,{sx:{width:158,height:52,opacity:1,gap:"4px",display:"flex",flexDirection:"column"},children:[a.jsx(D,{sx:{...rl,width:158,height:16},children:r}),a.jsx(D,{sx:{...Jm,width:47,height:32},children:l})]})]})}),a.jsx(Ut,{}),a.jsx(P,{sx:{width:g?"100%":e,height:32,opacity:1,padding:"8px 12px",display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"border-box"},children:b?a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:a.jsx(D,{sx:{...w,whiteSpace:"nowrap"},children:c})}),u&&a.jsxs(P,{sx:{width:58,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:[a.jsx(Re,{variant:"text",size:"small",onClick:y,sx:{...S,width:40,height:16,textTransform:"none",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:u}),a.jsx(kt,{sx:{width:16,height:16,color:"#2D64B8"}})]})]}):a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:{flex:1,minWidth:0,height:12,opacity:1,gap:"4px",display:"flex",alignItems:"center"},children:[p&&a.jsx(Xm,{sx:{width:12,height:12,mr:.5}}),h&&a.jsx(hI,{sx:{color:"#2563eb",width:12,height:12,mr:.5}}),a.jsx(D,{sx:{...mI,height:12,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c})]}),u&&a.jsx(P,{sx:{width:65,height:16,opacity:1,gap:"2px",display:"flex",alignItems:"center"},children:a.jsxs(Re,{variant:"text",size:"small",onClick:y,sx:{color:"#2D64B8",textTransform:"none",fontWeight:600,fontFamily:"Inter, sans-serif",fontSize:12,lineHeight:"16px",minWidth:0,p:0,gap:"2px","&:hover":{bgcolor:"transparent",color:"#2D64B8"}},children:[u,a.jsx(kt,{sx:{width:16,height:16,color:"#2D64B8"}})]})})]})})]})}const yI=Je(a.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");function il(e){return a.jsx(yI,{...e})}function sl(e){return a.jsx(Bn,{viewBox:"0 0 14 14",...e,children:a.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})})}function ey(e){if(!e)return"";try{return new Date(e).toLocaleDateString()}catch{return e}}function ty(e){return e?.categoryName??e?.name??""}function bI({categoryData:e=[],styles:t={},onView:n,selectedCategories:r=[],onToggleCategory:i}){const s=I=>r.some(E=>ty(E)===ty(I)),l=e.length>0&&e.every(s),c=e.some(s),[d,u]=j.useState(!1),[p,h]=j.useState([]),[y,b]=j.useState(0),[g,f]=j.useState(""),[m,x]=j.useState(0),w=t.categoryTableShared??{},S=dt("(max-width:600px)"),v=dt("(max-width:900px)"),C=dt("(max-width:400px)");let k=4;S?k=1:v&&(k=2);const A=(I,E,N,_)=>{const W=Array.isArray(I)?I:[],F=Number.isFinite(Number(_))?Number(_):W.length;if(F<=0)return;const B=F-1,O=Math.max(0,Math.min(E,B));h(W),b(O),x(F),f(N||""),u(!0)},z=()=>{u(!1)},M=()=>{b(I=>I>0?I-1:I)},$=()=>{b(I=>I<m-1?I+1:I)};return a.jsxs(a.Fragment,{children:[a.jsx(Ar,{maxWidth:!1,sx:t.categoryTableContainer,children:a.jsxs(Hn,{sx:t.categoryTable,children:[a.jsxs(P,{sx:{...t.categoryTableHeader,width:"100%"},children:[i&&a.jsx(P,{sx:t.categoryTableHeaderCheckboxCol,children:a.jsx(ht,{checked:l,indeterminate:c&&!l,onChange:()=>{l?e.forEach(I=>i(I)):e.forEach(I=>{s(I)||i(I)})},size:"small",sx:w.checkboxHeaderSx,icon:a.jsx("span",{style:w.checkboxIconSpanHeader}),checkedIcon:a.jsx("span",{style:w.checkboxCheckedIconSpan,children:a.jsx("span",{style:w.checkboxCheckedIconInner})}),indeterminateIcon:a.jsx("span",{style:w.checkboxCheckedIconSpan,children:a.jsx("span",{style:w.checkboxCheckedIconInner})})})}),a.jsxs(P,{sx:t.categoryTableHeaderCategoryCell,children:["Category",a.jsx(il,{sx:t.categoryTableHeaderArrow})]}),!C&&a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:t.categoryTableHeaderStockCell,children:"Stock / OSA"}),a.jsx(P,{sx:t.categoryTableHeaderProductsCell,children:"Products"})]}),a.jsx(P,{sx:t.categoryTableHeaderEmptyCell})]}),e.map((I,E)=>{const N=Array.isArray(I.images)?I.images:[],_=N.slice(0,k),W=Number.isFinite(Number(I.productCount))?Number(I.productCount):N.length,F=Math.max(W-_.length,0);return a.jsx(P,{sx:{...t.categoryTableRow(E),width:"100%",flexDirection:C?"column":t.categoryTableRow?.flexDirection,alignItems:C?"flex-start":t.categoryTableRow?.alignItems},children:C?a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",width:"100%",gap:1},children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:1,minWidth:0,flex:1},children:[i&&a.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:a.jsx(ht,{checked:s(I),onChange:()=>i(I),size:"small",sx:{...w.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:a.jsx("span",{style:w.checkboxIconSpanRow}),checkedIcon:a.jsx("span",{style:w.checkboxRowCheckedIconSpan,children:a.jsx(sl,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),a.jsxs(P,{sx:{...t.categoryNameCell,flex:"1 1 auto",minWidth:0},children:[a.jsx(D,{sx:t.categoryName,children:I.categoryName}),a.jsxs(D,{sx:t.categoryProducts,children:[I.productCount," Products"]}),a.jsxs(D,{sx:t.categoryUpdated,children:["Updated ",ey(I.lastUpdated)]})]})]}),a.jsx(P,{sx:{...t.categoryViewCell,flexShrink:0,mt:"5px",alignSelf:"flex-start",alignItems:"flex-start"},children:a.jsxs(Re,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:I.categoryName,...I}),children:["View",a.jsx(kt,{sx:t.categoryViewButtonIcon})]})})]}),a.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:2,width:"100%",mt:.5,...i&&{ml:"24px"}},children:[a.jsxs(P,{sx:{...t.categoryStockCell,flex:"0 0 auto"},children:[a.jsxs(D,{sx:t.categoryStock(E),children:[I.totalStock,"/",I.totalOsa]}),a.jsx(D,{sx:t.categoryOSA(E),children:I.osaPercent!=null?a.jsxs(a.Fragment,{children:[a.jsxs(P,{component:"span",sx:Number(I.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(I.osaPercent)),"%"]})," on shelf"]}):""})]}),a.jsxs(P,{sx:{...t.categoryImagesCell,flex:"1 1 auto",minWidth:0},children:[_.map((B,O)=>a.jsx(kr,{src:B,alt:(I.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>A(N,O,I.categoryName||"",W)},O)),F>0&&a.jsx(P,{onClick:()=>A(N,_.length,I.categoryName||"",W),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:a.jsxs(D,{sx:t.categoryMoreImageText,children:["+",F," More"]})})]})]})]}):a.jsxs(a.Fragment,{children:[i&&a.jsx(P,{sx:t.categoryTableRowCheckboxFrame,children:a.jsx(ht,{checked:s(I),onChange:()=>i(I),size:"small",sx:{...w.checkboxRowSx,outline:"none",boxShadow:"none","&.Mui-focusVisible":{outline:"none",boxShadow:"none"},"& .PrivateSwitchBase-input":{outline:"none"}},icon:a.jsx("span",{style:w.checkboxIconSpanRow}),checkedIcon:a.jsx("span",{style:w.checkboxRowCheckedIconSpan,children:a.jsx(sl,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),a.jsxs(P,{sx:{...t.categoryNameCell,width:"auto"},children:[a.jsx(D,{sx:t.categoryName,children:I.categoryName}),a.jsxs(D,{sx:t.categoryProducts,children:[I.productCount," Products"]}),a.jsxs(D,{sx:t.categoryUpdated,children:["Updated ",ey(I.lastUpdated)]})]}),a.jsxs(P,{sx:{...t.categoryStockCell,width:"auto"},children:[a.jsxs(D,{sx:t.categoryStock(E),children:[I.totalStock,"/",I.totalOsa]}),a.jsx(D,{sx:t.categoryOSA(E),children:I.osaPercent!=null?a.jsxs(a.Fragment,{children:[a.jsxs(P,{component:"span",sx:Number(I.osaPercent)<50?{color:"#d32f2f"}:{},children:[Math.round(Number(I.osaPercent)),"%"]})," on shelf"]}):""})]}),a.jsxs(P,{sx:{...t.categoryImagesCell,width:"auto"},children:[_.map((B,O)=>a.jsx(kr,{src:B,alt:(I.categoryName||"")+" product",sx:{...t.categoryImage,cursor:"pointer"},onClick:()=>A(N,O,I.categoryName||"",W)},O)),F>0&&a.jsx(P,{onClick:()=>A(N,_.length,I.categoryName||"",W),sx:{...t.categoryImage,...t.categoryMoreImageBox},children:a.jsxs(D,{sx:t.categoryMoreImageText,children:["+",F," More"]})})]}),a.jsx(P,{sx:{...t.categoryViewCell,width:"auto"},children:a.jsxs(Re,{variant:"text",sx:t.categoryViewButton,onClick:()=>n&&n({name:I.categoryName,...I}),children:["View",a.jsx(kt,{sx:t.categoryViewButtonIcon})]})})]})},I.categoryName||E)})]})}),a.jsxs(uo,{open:d,onClose:z,maxWidth:"lg",fullWidth:!0,children:[a.jsxs(fo,{sx:t.categoryImageDialogTitleRow,children:[a.jsxs(D,{sx:t.categoryImageDialogTitleText,children:["Image Preview",g?` - ${g}`:""]}),a.jsx(Re,{onClick:z,sx:t.categoryImageDialogCloseButton,children:"Close"})]}),a.jsx(Oi,{sx:t.categoryImageDialogContent,children:m>0&&a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:t.categoryImageDialogImageBox,children:p[y]?a.jsx(P,{component:"img",src:p[y],alt:(g||"Category")+` image ${y+1}`,sx:t.categoryImageDialogImage}):a.jsx(D,{sx:t.categoryImageDialogFallbackText,children:(g||"Category")+` image ${y+1}`})}),a.jsxs(P,{sx:t.categoryImageDialogFooterRow,children:[a.jsx(Re,{variant:"outlined",size:"small",onClick:M,disabled:y<=0,sx:t.categoryImageDialogNavButton,children:"Previous"}),a.jsxs(D,{sx:t.categoryImageDialogCounterText,children:[y+1," of ",m]}),a.jsx(Re,{variant:"outlined",size:"small",onClick:$,disabled:y>=m-1,sx:t.categoryImageDialogNavButton,children:"Next"})]})]})})]})]})}const xI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAKpJREFUeAHFko0NgkAMhR+EARjhRtAJZATcQDfRCRxBRnAE3eBGYJP6qsU0F4FLIOFLyv20r6TtAYaItDLPHY7S7WtaV4xA3xkJJRawSFzph7U0XA60wP1pJHbwt1wjK+kLHm487Gg98qgtfq9isYZkQ0nH5blOwzaZc2TGC77dnGOYhsZ+aj7aX0OO2IRXHdXvVjOmNXn++askpplIEJC8BS9+YJoXLfqLN/KniiDmJ/GnAAAAAElFTkSuQmCC";function vI({sx:e={},...t}){return a.jsx(P,{component:"img",src:xI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const SI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAMlJREFUeAGdUgERwyAMDLsJqIRKQEIlVAIOhoPVQSV0Diahc7A6QMJwwMLt2bGMtlxz98cR8n+fBKKdCCFcGC584skwVBNcOIGgcdcQsntEy7gxGpFvIdDQkUhuzoWHlo+O4RkPpZRf0WgkcWS80OsMe72oMTEviZPsEQO6i7tLA/whCnUtxIvEa66eFSb7JmtHS7vuL0nflQwQsMXVxG9DB+PEWJjfFUSj9XGTDUsO+025fq2dksCA4hlnFVFlAnEgkeD5Vy1UEW+PYQ9FgjWUTgAAAABJRU5ErkJggg==";function wI({sx:e={},...t}){return a.jsx(P,{component:"img",src:SI,alt:"",role:"presentation",sx:{width:"13.26px",height:"13.24px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const CI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAANBJREFUeAGtU4ERwiAMDL0O4AbiJDKCKziJdBI7CpuIG7gBfir0Igbqnf5dSvr9hiQEoh9h+JFSslgugo/GmEkKoblW/07QxCG/eJgTHy194i58VzYcBRkQ8UytVI3xIpu5+AN1wKXl8poYGykWeI4D0zLT9MuuJ9gt+3NpHnMwV+u1EnakN9FqfLcH30ALELNp/KMmlyaiNo9lz8cIC/APtRD8ykl9OQVLr27X8KRj1Y/UAY8qbUAGcGLet+7CERbYkXch0HuKNeTgsHaif+AJ5CBPR1lDq+wAAAAASUVORK5CYII=";function EI({sx:e={},...t}){return a.jsx(P,{component:"img",src:CI,alt:"",role:"presentation",sx:{width:"13.33px",height:"13.33px",display:"block",objectFit:"contain",boxSizing:"border-box",...e},...t})}const qd={borderRadius:"6px",padding:"6px 24px",gap:"8px",border:"none",backgroundColor:"#2D64B8",height:40,display:"flex",alignItems:"center",cursor:"pointer",boxSizing:"border-box",font:"inherit",outline:"none","&:hover":{backgroundColor:"#255aa3"}},Yd={width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},Gd={width:"13.33px",height:"13.33px",objectFit:"contain",boxSizing:"border-box"},Kd={fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",whiteSpace:"nowrap"},ny=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r,selectedCategories:i})=>{const s=r||[],l=i||[],c=s.length>0,d=l.length>0;if(!c&&!d)return null;const u=d?l.length:s.length,p=d?`${u} categor${u===1?"y":"ies"} selected`:`${u} items selected`;return a.jsxs(P,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",width:"100%",maxWidth:640,height:56,borderRadius:"12px",padding:"8px 12px 8px 16px",background:"#000000",boxShadow:"3px 1px 30px 0px #2222223D",display:"flex",alignItems:"center",zIndex:1300,boxSizing:"border-box",overflow:"hidden"},children:[a.jsx(D,{sx:{minWidth:100,flexShrink:1,fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",color:"#FFFFFF",marginRight:"12px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p}),a.jsx(P,{sx:{flex:1,minWidth:8,flexShrink:1}}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[c&&a.jsxs(P,{component:"button",onClick:e,sx:{...qd,width:139},children:[a.jsx(P,{sx:Yd,children:a.jsx(vI,{sx:Gd})}),a.jsx(D,{component:"span",sx:Kd,children:"Promo Print"})]}),a.jsxs(P,{component:"button",onClick:t,sx:{...qd,width:158},children:[a.jsx(P,{sx:Yd,children:a.jsx(wI,{sx:Gd})}),a.jsx(D,{component:"span",sx:Kd,children:"Create Catalog"})]}),a.jsxs(P,{component:"button",onClick:n,sx:{...qd,width:147},children:[a.jsx(P,{sx:Yd,children:a.jsx(EI,{sx:Gd})}),a.jsx(D,{component:"span",sx:Kd,children:"OSA Request"})]})]})]})},ry=Je(a.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function oy({onClose:e,open:t,stores:n=[],selectedProducts:r=[],selectedCategories:i=[],onSuccess:s}){const l=zt(),{createOsaRequestLoading:c,createOsaRequestError:d}=je(C=>C.dashboard),[u,p]=j.useState(["all"]),[h,y]=j.useState(!1),b=j.useMemo(()=>n.filter(C=>C.id!=="all"&&C.storeCode!=="all"),[n]),g=u.includes("all")||u.length===0,f=j.useMemo(()=>g?b.map(C=>C.storeCode).filter(Boolean):u.filter(C=>C!=="all").map(C=>b.find(k=>k.id===C)?.storeCode).filter(Boolean),[g,u,b]),m=j.useMemo(()=>(r||[]).map(C=>C.catalogProductId||C.productId||C.id).filter(Boolean).map(String),[r]),x=j.useMemo(()=>(Array.isArray(i)?i:[]).filter(Boolean).map(String),[i]),w=f.length>0&&(m.length>0||x.length>0);j.useEffect(()=>{t&&l(b1())},[t,l]);const S=C=>{p(k=>{const A=k.filter(M=>M!=="all");if(A.includes(C)){const M=A.filter($=>$!==C);return M.length===0?["all"]:M}const z=[...A,C];return z.length===b.length?["all"]:z})},v=()=>{w&&l(_s({storeCodes:f,products:m,categories:x})).unwrap().then(()=>{typeof s=="function"&&s(),e()}).catch(()=>{})};return a.jsxs(uo,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[a.jsx(fo,{children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsx(D,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),a.jsx(ft,{onClick:e,size:"small","aria-label":"Close",children:a.jsx(Km,{})})]})}),a.jsx(D,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),a.jsxs(P,{sx:{position:"relative",mb:3},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>y(C=>!C),children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:a.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),a.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),a.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),a.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:g?"All Stores":`${u.length} store(s) selected`}),a.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${b.length} stores`}),a.jsx(ry,{sx:{color:"#888",ml:"auto"}})]}),h&&a.jsxs(P,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[a.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:g?700:400,color:g?"#222":"#444",background:g?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{p(["all"]),y(!1)},children:[a.jsx(ht,{size:"small",checked:g,sx:{p:.5,mr:1}}),"All Stores"]}),b.map(C=>{const k=u.includes(C.id);return a.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:k?700:400,color:k?"#222":"#444",background:k?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>S(C.id),children:[a.jsx(ht,{size:"small",checked:k,sx:{p:.5,mr:1}}),C.name]},C.id)})]})]}),d&&a.jsx(D,{color:"error",fontSize:14,sx:{mb:2},children:d}),a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:a.jsx(Re,{variant:"contained",color:"primary",disabled:!w||c,onClick:v,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:c?"Sending...":"Send Request"})})]})}const TI=Je(a.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function Yi(e){return a.jsx(TI,{...e})}const kI=Je([a.jsx("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),a.jsx("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");function Xd(e){return a.jsx(kI,{...e})}const PI=Je([a.jsx("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),a.jsx("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function Jd(e){return a.jsx(PI,{...e})}const OI=()=>{const e=zt(),t=St(),n=vt(),r=an(),i=n.state?.catalogCreated&&n.state?.catalogSlug?{catalogSlug:n.state.catalogSlug}:null,s=()=>{t(n.pathname,{replace:!0,state:{}})},l=r.categoryDetail,[c,d]=j.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:u,companyId:p,loading:h,error:y}=je(H=>H.dashboard),b=j.useMemo(()=>u&&typeof u=="object"&&Object.keys(u).length>0?{matched:!0,error:"",apiResponse:u,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[u]),g=je(H=>H.dashboard),{categoryList:f=[],stores:m=[],categoryPagination:x={}}=g||{},w=f,{currentPage:S=1,limit:v=10,totalCount:C=0,totalPages:k=1,hasNextPage:A=!1}=x,{sharedCatalogues:z=[],sharedCataloguesTotal:M=0,lastStableActiveCatalogsCount:$=null}=je(H=>H.productSettings??{}),I=j.useMemo(()=>Array.isArray(z)?z.filter(H=>H.status===!0).length:0,[z]),N=M>0&&z.length>=M?I:$??I,_=Array.isArray(f)&&f.length>0,W=()=>{b.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},F=m.length>0?m:[{id:"all",name:"All Stores",storeCode:"all"}],B=H=>{d(H)},O=j.useCallback((H={})=>{const ne=Array.isArray(c.store)?c.store:[],oe={...H};if(ne.length>0&&!ne.includes("all")){const ge=ne.map(me=>m.find(ae=>ae.id===me)?.storeCode).filter(Boolean);ge.length>0&&(oe.storeCode=ge[0])}return c.search!=null&&String(c.search).trim()!==""&&(oe.search=String(c.search).trim()),c.minOsa!=null&&c.minOsa!==""&&(oe.minOsa=c.minOsa),c.maxOsa!=null&&c.maxOsa!==""&&(oe.maxOsa=c.maxOsa),c.order!=null&&c.order!==""&&(oe.order=c.order),oe},[c.store,c.search,c.minOsa,c.maxOsa,c.order,m]),V=j.useRef(null);j.useEffect(()=>{if(!p)return;const H=O({page:S,limit:v}),ne=JSON.stringify(H);V.current!==ne&&(V.current=ne,e(ur(H)))},[p,S,v,O,e]);const L=H=>{const ne=O({page:H,limit:v});e(ur(ne))},U=H=>{const ne=O({page:1,limit:H});e(ur(ne))},[q,G]=j.useState(!1);j.useEffect(()=>{!p&&!q?e(Wr()).finally(()=>{G(!0)}):p&&queueMicrotask(()=>G(!0))},[e,p,q]);const J=j.useRef(null);j.useEffect(()=>{p&&p!==J.current&&(J.current=p,e(Mt(p)),e(ur({page:1,limit:10})),e(Vr()),e(Uo()),e(nn({page:1})))},[e,p]),j.useEffect(()=>{if(!p||M<=0)return;(Array.isArray(z)?z.length:0)<M&&e(nn({page:1,limit:M}))},[p,M,z?.length,e,z]);const K=H=>{t(`/category?categoryName=${encodeURIComponent(H.name||H.categoryName)}`,{state:{filters:c}})},[Q,se]=j.useState([]),[ce,de]=j.useState(!1),ee=j.useCallback(H=>{const ne=H?.categoryName??H?.name??"";se(oe=>oe.some(me=>(me?.categoryName??me?.name)===ne)?oe.filter(me=>(me?.categoryName??me?.name)!==ne):[...oe,H])},[]),pe=q&&y&&!p;return a.jsxs(a.Fragment,{children:[i&&a.jsx(fI,{catalogSlug:i.catalogSlug,onClose:s}),!pe&&a.jsx(nl,{filters:c,onFilterChange:B,styles:l.topBar,stores:F,tenantStatus:b,hasProducts:_}),a.jsx(P,{sx:pe?{marginTop:0}:_?l.contentWrapper??{marginTop:"72px",display:"flex",flexDirection:"column",alignItems:"center"}:{marginTop:"72px"},children:pe?a.jsx(qi,{handleStartSyncing:W,loading:!1,sessionExpired:!0}):!q&&!p?a.jsx(qi,{handleStartSyncing:W,loading:!0,sessionExpired:!1}):_?a.jsx(P,{sx:l.root,children:a.jsxs(Ar,{maxWidth:"lg",sx:{px:{xs:1,sm:2,md:4}},children:[a.jsx(Zm,{productState:g,categoryCount:f.length,activeCatalogsCount:N,onManageClick:()=>t("/catalogs/manage-shared")}),f.length>0?a.jsxs(a.Fragment,{children:[a.jsx(bI,{categoryData:w,styles:l,onView:K,selectedCategories:Q,onToggleCategory:ee}),a.jsx(ny,{selectedCategories:Q,onPromoPrint:()=>{},onCreateCatalog:()=>{},onOsaRequest:()=>de(!0)}),a.jsx(oy,{open:ce,onClose:()=>de(!1),stores:F,selectedProducts:[],selectedCategories:Q.map(H=>H?.categoryName??H?.name).filter(Boolean),onSuccess:()=>se([])}),C>0&&(()=>{const H=l?.categoryTablePagination??{};return a.jsxs(P,{sx:{...H.wrapper||{},width:"100%",marginLeft:"auto",marginRight:0},children:[a.jsxs(P,{sx:H.resultsPerPageBox,children:[a.jsx(D,{component:"span",sx:H.resultsPerPageText,children:"Results per page"}),a.jsx(Tn,{value:v,onChange:ne=>U(Number(ne.target.value)),IconComponent:Yi,variant:"standard",disableUnderline:!0,sx:H.select,children:[5,10,20,50].map(ne=>a.jsx($e,{value:ne,children:ne},ne))})]}),a.jsxs(P,{sx:H.navBox,children:[a.jsx(ft,{size:"small",disabled:S<=1,onClick:()=>L(1),sx:H.iconButton,title:"First page",children:a.jsx(Xd,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:S<=1,onClick:()=>L(S-1),sx:H.iconButton,title:"Previous page",children:a.jsx(Ui,{sx:{width:16,height:16,opacity:1}})}),a.jsx(D,{component:"span",sx:H.pageText,children:C===0?"0 of 0":`${(S-1)*v+1}-${Math.min(S*v,C)} of ${C}`}),a.jsx(ft,{size:"small",disabled:!A||S>=k,onClick:()=>L(S+1),sx:H.iconButton,title:"Next page",children:a.jsx(kt,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:!A||S>=k,onClick:()=>L(k),sx:H.iconButton,title:"Last page",children:a.jsx(Jd,{sx:{width:16,height:16,opacity:1}})})]})]})})()]}):a.jsxs(P,{sx:{minHeight:280,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:"#f5f7fa",borderRadius:2,p:3},children:[a.jsx(D,{sx:{fontSize:18,fontWeight:600,color:"#454545",mb:1},children:"No Category"}),a.jsx(D,{sx:{fontSize:14,color:"#808080"},children:c.search&&String(c.search).trim()?"No category found for your search.":"No category available."})]})]})}):a.jsx(qi,{handleStartSyncing:W,loading:h,sessionExpired:!1,hasIntegration:b.matched})})]})};function kn({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:l={},action:c,disabled:d=!1,customStyle:u={},titleColorWhenDisabled:p,titleColor:h,subtitleColor:y}){const b={width:"100%",maxWidth:600,height:58,boxSizing:"border-box",background:"#FFFFFF",borderRadius:2,boxShadow:"none",border:"1px solid #F1F1F1",display:"flex",alignItems:"center",gap:1.5,px:2,py:1.5,mb:0,cursor:i&&!d?"pointer":"default",opacity:d?.5:1,...s?l:{}},g=d?p||"#999999":h||"#000000",f=d?"#bbbbbb":y||"#808080",m={card:{...b,...u},cardInner:{display:"flex",alignItems:"center",flex:1,minWidth:0},icon:{display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20,mr:2},title:{fontWeight:700,fontSize:12,color:g,lineHeight:"16px"},subtitle:{color:f,fontSize:12,fontWeight:400,mt:.5,lineHeight:"16px"}};return a.jsxs(P,{onClick:d?void 0:i,sx:{...m.card,...u||{}},children:[e&&a.jsx(P,{sx:m.icon,children:e}),a.jsxs(P,{sx:m.cardInner,children:[a.jsxs(P,{children:[a.jsx(D,{sx:m.title,children:t}),n&&a.jsx(D,{sx:m.subtitle,children:r?`${r} ${n}`:n})]}),c&&a.jsx(P,{sx:{ml:"auto",display:"flex",alignItems:"center",justifyContent:"center"},children:c})]})]})}const AI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),II=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),iy=e=>{const t=II(e);return t.charAt(0).toUpperCase()+t.slice(1)},sy=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),NI=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var FI={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const MI=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...c},d)=>j.createElement("svg",{ref:d,...FI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:sy("lucide",i),...!s&&!NI(c)&&{"aria-hidden":"true"},...c},[...l.map(([u,p])=>j.createElement(u,p)),...Array.isArray(s)?s:[s]]));const Nr=(e,t)=>{const n=j.forwardRef(({className:r,...i},s)=>j.createElement(MI,{ref:s,iconNode:t,className:sy(`lucide-${AI(iy(e))}`,`lucide-${e}`,r),...i}));return n.displayName=iy(e),n};const DI=Nr("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);const _I=Nr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const ay=Nr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const $I=Nr("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);const zI=Nr("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);const LI=Nr("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);const BI=Nr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Qd({size:e=15,color:t="#454545",...n}){return a.jsx(LI,{size:e,color:t,...n})}const jI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAASpJREFUeAGVUT1OhGAQ5b/2BPxewhISIHSyJ/AKlnbunsBsZenuCdQOgWQp7VY7C0i+0u2w00DAN2ZNYMOXyCSTGZh5897MJwgcC4Jg7/u+y6tLvELf92bXdeYsIDGJonimKMrFLCBAlwivYI1d1zX/BQzD8AYhlmV5AalrVVV3U2B5KM9xnHsCwb00Td8Nw3iRJOkcQ65R+9R1ncG+flXR9egQtBOcodFLkoQJ452vULs9rsHQv5Ityzrg4w1+wH+XilVVPQ+VINxh4AcAa+RPTdM8isPJURTRE+zQwLIs87BvjPyBGPI8X44OeLo0gdu23YNhQ1eFb09Bo+P8WVmWtW3b30iXkF+DeSFM2OQ7gnFDEbK3AscmgUVR1AgMQDYLeLSVpmkFr/gDCe+DRKwM0doAAAAASUVORK5CYII=",WI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIpJREFUeAFVTsENwyAMxCkPnowQNmgnCB8Qv46QrtNfV+gG/YPUjtABeGSEDIAgPimJEkvnO9ln+YRYyzn38N5/xKG6gx5aa4O1Vm8DwgXzyLgyJoZm07uU8upYjETUY8H8Y4a+K6U04TyE0Ndav2zE4hZj/GN+Qcs5z8YYGFVK6bn9lLuQEklPaRdNCCms4XdYvwAAAABJRU5ErkJggg==";function VI(e){const{sx:t={},...n}=e;return a.jsxs(P,{sx:{width:20,height:20,opacity:1,position:"relative",flexShrink:0,display:"inline-flex",alignItems:"center",justifyContent:"center",...t},...n,children:[a.jsx(P,{component:"img",src:jI,alt:"",sx:{position:"absolute",width:12.25,height:12.25,top:1.84,left:1.84,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}}),a.jsx(P,{component:"img",src:WI,alt:"",sx:{position:"absolute",width:5.104,height:5.104,top:13.06,left:13.06,opacity:1,boxSizing:"border-box",objectFit:"contain",display:"block"}})]})}function ly({size:e=15,color:t="#454545",...n}){return a.jsx(DI,{size:e,color:t,...n})}function UI({size:e=15,color:t="#454545",...n}){return a.jsx($I,{size:e,color:t,...n})}function HI({size:e=15,color:t="#454545",...n}){return a.jsx(zI,{size:e,color:t,...n})}function RI({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:l=()=>{},onSyncNow:c=()=>{},integrationData:d={},...u}){const p={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=St(),y=d?.configs?.sync_frequency||"Daily",b=d?.configs?.sync_time||"10:00 AM",g=d?.type||s||"FTP",f={width:600,maxWidth:"100%",minHeight:468,mx:"auto",mt:4,boxSizing:"border-box",display:"flex",flexDirection:"column",gap:3},m=()=>a.jsxs(P,{sx:{width:"100%",minHeight:156,display:"flex",flexDirection:"column",gap:1.5},children:[a.jsx(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:67,height:20},children:[a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"General"}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]})}),a.jsxs(P,{sx:{width:"100%",minHeight:124,display:"flex",flexDirection:"column",gap:"4px"},children:[a.jsx(kn,{icon:a.jsx(Qd,{size:15,color:"#454545"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:p,action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})}),a.jsx(kn,{icon:a.jsx(VI,{}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:p,action:a.jsx(P,{sx:{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(_m,{checked:e,onChange:v=>t&&t(v.target.checked),size:"small"})})})]})]}),x=(v,C)=>a.jsxs(P,{sx:{width:"100%",height:20,display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",width:48,height:20},children:[a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:14,lineHeight:"20px",color:"#000000"},children:"Sync"}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:12,lineHeight:"16px",color:"#808080"},children:"2"})]}),a.jsxs(P,{sx:{width:78,height:16,display:"flex",alignItems:"center",gap:"4px",cursor:v?"not-allowed":"pointer",opacity:v?.5:1},onClick:v?void 0:C,children:[a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Ir,{sx:{width:14.66,height:12,color:"#2D64B8"}})}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:12,lineHeight:"16px",color:"#2D64B8",width:62},children:"Sync Now"})]})]}),w=v=>{const C=v?y:"Daily",k=v?b:"10:00 AM",A=!v&&i===0;return a.jsxs(P,{sx:{width:"100%",minHeight:288,display:"flex",flexDirection:"column",gap:"4px"},children:[x(A,c),!v&&i===0&&a.jsx(kn,{icon:a.jsx(Ir,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Setup Sync",subtitle:"Sync products",onClick:l,highlightStyle:p,action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})}),!v&&i===1&&a.jsxs(a.Fragment,{children:[a.jsx(kn,{icon:a.jsx(Ir,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:g,highlightStyle:p,action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})}),a.jsx(kn,{icon:a.jsx(Qd,{size:15,color:"#454545"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:p,action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})})]}),i===3&&a.jsxs(a.Fragment,{children:[a.jsx(kn,{icon:a.jsx(Ir,{sx:{width:18.33,height:15,color:"#454545"}}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:p,disabled:!0,titleColorWhenDisabled:"#454545",action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})}),a.jsx(kn,{icon:a.jsx(Qd,{size:15,color:"#454545"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:p,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}}),action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})}),a.jsxs(P,{sx:{width:"100%",display:"flex",flexWrap:"nowrap",justifyContent:"space-between"},children:[a.jsx(P,{sx:{width:296},children:a.jsx(kn,{icon:a.jsx(ly,{size:15,color:"#454545"}),title:"Sync Frequency",subtitle:C,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:d}}),action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})})}),a.jsx(P,{sx:{width:296},children:a.jsx(kn,{icon:a.jsx(UI,{size:15,color:"#454545"}),title:"Sync Time",subtitle:k,highlightStyle:p,customStyle:{mb:0},onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:d}}),action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})})})]}),a.jsx(kn,{icon:a.jsx(HI,{size:15,color:"#454545"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:p,action:a.jsx(kt,{sx:{width:16,height:16,color:"#454545"}})})]})]})},S=i===3&&d&&Object.keys(d||{}).length>0;return a.jsxs(P,{sx:f,children:[m(),w(S)]})}const or=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=(i=12)=>!n||!Array.isArray(n)||n.length===0?null:a.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:n.map((s,l)=>a.jsxs(j.Fragment,{children:[l>0&&a.jsx(ay,{size:i,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:l===n.length-1?700:400,fontSize:l===n.length-1?"16px":"12px",lineHeight:l===n.length-1?"20px":"16px",letterSpacing:0,color:l===n.length-1?"#000000":"#808080",verticalAlign:"middle"},children:s.label})]},s.label))});return a.jsx(P,{sx:{position:"fixed",top:0,left:{xs:0,md:260},right:0,width:{xs:"100%",md:"auto"},height:72,minHeight:72,maxHeight:72,paddingTop:"20px",gap:"20px",opacity:1,color:"#FFFFFF",backgroundColor:"#FFFFFF",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",overflow:"hidden",zIndex:1100},children:a.jsxs(P,{sx:{width:"100%",maxWidth:1200,minWidth:0,height:32,paddingRight:"20px",paddingLeft:"20px",gap:"16px",opacity:1,boxSizing:"border-box",display:"flex",flexDirection:"row",alignItems:"center"},children:[a.jsxs(P,{sx:{flex:1,minWidth:0,height:32,gap:"16px",opacity:1,display:"flex",alignItems:"center",flexShrink:0},children:[a.jsxs(P,{onClick:t,sx:{width:48,height:16,gap:"4px",opacity:1,display:"flex",alignItems:"center",cursor:"pointer",flexShrink:0,background:"none",border:"none",padding:0,"&:hover":{opacity:.85}},children:[a.jsx(Ui,{sx:{width:16,height:16,opacity:1,color:"#808080",flexShrink:0}}),a.jsx(D,{component:"span",sx:{width:28,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",display:"flex",alignItems:"center"},children:"Back"})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{mx:0,height:24,alignSelf:"center",borderColor:"#e0e0e0"}}),a.jsx(P,{sx:{flex:1,minWidth:0,height:20,paddingLeft:"8px",gap:"4px",opacity:1,display:"flex",alignItems:"center"},children:n&&n.length>0?r(12):a.jsxs(a.Fragment,{children:[a.jsx(D,{sx:{width:51,height:16,fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",verticalAlign:"middle",flexShrink:0},children:"Products"}),a.jsx(ay,{size:12,color:"#808080",style:{margin:"0 4px",flexShrink:0}}),a.jsx(D,{sx:{flex:1,minWidth:0,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:0,color:"#000000",verticalAlign:"middle"},children:e})]})})]}),a.jsx(Ut,{orientation:"vertical",flexItem:!0,sx:{height:32,alignSelf:"center",borderColor:"#e0e0e0",marginRight:"-8px"}}),a.jsxs(P,{sx:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"16px",flexShrink:0},children:[a.jsx(Hi,{}),a.jsx(Ri,{})]})]})})};function qI({open:e,onClose:t,onSave:n}){yn();const r=an(),[i,s]=j.useState("sftp"),l=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],c=h=>s(h.target.value),d=()=>{n&&n(i),t()},u=()=>{},p=r.productSettingModal;return a.jsx(po,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:p.modal,children:a.jsxs(P,{sx:p.container,children:[a.jsxs(P,{sx:p.header,children:[a.jsx(D,{sx:p.headerTitle,children:"Sync Method"}),a.jsx(ft,{onClick:t,size:"small",sx:p.closeButton,children:a.jsx(BI,{size:20})})]}),a.jsxs(P,{sx:p.content,children:[a.jsx(Ya,{value:i,onChange:c,children:l.map(h=>a.jsx(En,{value:h.value,control:a.jsx(mo,{icon:a.jsx(P,{sx:p.radioIcon}),checkedIcon:a.jsx(_I,{size:18,color:"#000"}),sx:p.radioChecked}),label:a.jsx(D,{sx:p.radioLabel,children:h.label}),sx:{...p.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),a.jsxs(P,{sx:p.upgradeSection,children:[a.jsx(D,{sx:p.upgradeText,children:"Upgrade for higher sync limits and more features"}),a.jsx(D,{onClick:u,sx:p.managePlanLink,children:"Manage Plan >"})]})]}),a.jsx(P,{sx:p.footer,children:a.jsx(Re,{fullWidth:!0,variant:"contained",onClick:d,sx:p.saveButton,children:"Save"})})]})})}const YI=({isOpen:e,onClose:t,onConfirm:n})=>{const r=an();let i;return i=r.productSettingModal,a.jsx(po,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:a.jsxs(P,{sx:i.container,children:[a.jsx(P,{sx:i.header,children:a.jsx(D,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),a.jsxs(P,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[a.jsx(Re,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),a.jsx(Re,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function GI(){const e=vt(),t=St(),n=zt(),{companyId:r,integrationData:i,loading:s}=je(N=>N?.dashboard||{}),[l,c]=j.useState(!0),[d,u]=j.useState(),[p,h]=j.useState(0),[y,b]=j.useState(""),[g,f]=j.useState(!1),[m,x]=j.useState(!1),[w,S]=j.useState(!1),[v,C]=j.useState(""),k=j.useRef(null),A=j.useRef(!1);j.useEffect(()=>{const N=e.state?.tenantIntegrationMatched===!0;r&&r!==k.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?k.current=r:(k.current=r,n(Mt(r)))),N&&r&&!s&&!A.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),A.current=!0,n(Mt(r))),N||(A.current=!1)},[r,n,s,i,e.state]),j.useEffect(()=>{let N=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(N=e.state.tenantIntegrationMatched);const _=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),W=e.state?.fromSyncStep===1?1:N===!0||_?3:0;queueMicrotask(()=>h(W))},[e.state,i]);const z=()=>f(!0),M=N=>{b(N),h(1),f(!1)},$=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:p}})},I=async()=>{const N=i?.channelId||i?.id;if(!N){C("Channel ID not found"),S(!0),x(!1);return}x(!1);try{const _=await n(Yo(N));if(Yo.fulfilled.match(_)){const W=_.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(W),S(!0),W==="Sync started successfully"&&setTimeout(()=>{n(Mt(r)),n($n()),t("/")},2500)}else C("Sync not started successfully"),S(!0)}catch{C("Sync not started successfully"),S(!0)}},E=()=>{p===1?(h(0),b("")):t("/")};return a.jsxs(P,{sx:{width:"100%",minHeight:"100vh",background:"#f7f8fa",p:0,pt:"72px",display:"flex",flexDirection:"column",alignItems:"center"},children:[a.jsx(or,{breadcrumbRight:"Settings",onBack:E}),a.jsx(qI,{open:g,onClose:()=>f(!1),onSave:M}),a.jsx(YI,{isOpen:m,onClose:()=>x(!1),onConfirm:I}),a.jsx(bo,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsx(RI,{airaAiEnabled:l,setAiraAiEnabled:c,selectedCard:d,setSelectedCard:u,syncStep:p,syncMethod:y,integrationData:i,onSetupSync:z,onSetupFTP:$,onSyncNow:()=>x(!0)})]})}const KI=["Setup FTP","Check data","Start Sync"],XI=e=>{const{onBack:t}=e,n=vt(),r=St();n.state?.tenantIntegrationData;const i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(or,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),a.jsxs(P,{sx:{maxWidth:800,mx:"auto",pt:"72px",px:2},children:[a.jsx(P,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:2,mb:1},children:KI.map((l,c)=>a.jsx(D,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:c===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",verticalAlign:"middle",color:"#454545",opacity:1,width:224,height:16,display:"inline-flex",alignItems:"center",justifyContent:"center",flex:1},children:l},l))}),a.jsx(P,{sx:{width:800,height:504,gap:"8px",borderRadius:"16px",padding:"8px",background:"#FFFFFF",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"border-box"},children:a.jsxs(on,{elevation:0,sx:{width:400,height:210,gap:"24px",borderRadius:"20px",padding:"24px",background:"#fafafa",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs(P,{sx:{width:352,height:98,gap:"12px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",verticalAlign:"middle",color:"#000000",opacity:1,width:145,height:20,margin:0},children:"Setup Instructions"}),a.jsxs(P,{component:"ol",sx:{margin:0,paddingLeft:"28px",listStylePosition:"outside",listStyleType:"decimal",fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"22px",letterSpacing:"0px",color:"#454545",opacity:1,width:352,height:66,boxSizing:"border-box","& li":{display:"list-item",marginBottom:"4px"},"& li:last-child":{marginBottom:0}},children:[a.jsx("li",{children:"Directory should have just one file"}),a.jsx("li",{children:"File format must be in CSV (comma separated)"}),a.jsx("li",{children:"File structure should be flat"})]})]}),a.jsx(P,{sx:{display:"flex",justifyContent:"flex-end",marginTop:"auto"},children:a.jsx(Re,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})]})]})};function JI(e){const{sx:t,fontSize:n,...r}=e;return a.jsxs(Bn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[a.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"})]})}function QI(e){const{sx:t,fontSize:n,...r}=e;return a.jsxs(Bn,{viewBox:"0 0 14.666666 10.666666",sx:{fontSize:n||14.666666,color:"#454545",...t},...r,children:[a.jsx("path",{d:"M1 5.333333C2.2 3.2 4.266667 1.666667 7.333333 1.666667C10.4 1.666667 12.466667 3.2 13.666667 5.333333C12.466667 7.466667 10.4 9 7.333333 9C4.266667 9 2.2 7.466667 1 5.333333Z",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"}),a.jsx("circle",{cx:"7.333333",cy:"5.333333",r:"2",fill:"none",stroke:"currentColor",strokeWidth:"1"}),a.jsx("path",{d:"M2 9L12.666667 1.666667",fill:"none",stroke:"currentColor",strokeWidth:"1",strokeLinecap:"round"})]})}const ZI=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2D64B8":"#bbb";return a.jsx(P,{sx:{position:"relative",width:16,height:16,borderRadius:"50%",border:"1px solid",borderColor:i,opacity:1,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",boxSizing:"border-box",flexShrink:0},children:r?a.jsx("svg",{width:10,height:10,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:a.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):a.jsx("svg",{width:8,height:8,viewBox:"0 0 24 24",fill:"none",style:{display:"block"},children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#2D64B8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})},al=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:l=!1,progressSegment:c,filledSegments:d,filledSegmentsStart:u=0,previousStepsComplete:p=!1})=>{const y=yn().transitions?.duration?.standard??400,[b,g]=j.useState(0),[f,m]=j.useState(!1),x=Math.max(1,e.length),w=50/x,S=100*(x-1)/x,v=40/x,C=x>1?100/x:0,k=100,A=j.useMemo(()=>{let z;if(typeof d=="number"){const $=typeof u=="number"?u:0,I=d-$;z=C*($+b*I)}else typeof c=="number"?z=C*(c+b):s?z=b?S:0:r?z=b?S*.5:0:z=b?v:0;const M=Math.min(z,S)/S;return Math.round(M*k)},[b,d,u,c,s,r,C,S,v]);return j.useEffect(()=>{if(l){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof d=="number"&&typeof u=="number"&&u>0){setTimeout(()=>{g(0),m(!1)},0);const M=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(M)}setTimeout(()=>{g(0),m(!1)},0);const z=setTimeout(()=>{g(1),setTimeout(()=>m(!0),y)},50);return()=>clearTimeout(z)},[t,e.length,r,l,d,u,y]),a.jsxs(P,{sx:{width:800,opacity:1},children:[a.jsx(P,{sx:{width:800,height:44,gap:"16px",opacity:1,display:"flex",alignItems:"center",justifyContent:"space-between"},children:e.map((z,M)=>a.jsxs(P,{sx:{width:256,height:44,gap:"12px",opacity:1,paddingLeft:"16px",paddingRight:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",boxSizing:"border-box"},children:[a.jsx(ZI,{active:M===t,completed:M<t,showBlue:M===0&&i||M===1&&n&&(f||p)||M===2&&s}),a.jsx(P,{component:"span",sx:{width:224,height:16,fontFamily:"Inter, sans-serif",fontWeight:M===0?600:400,fontSize:"12px",lineHeight:"16px",letterSpacing:"0px",textAlign:"center",color:"#454545",opacity:1,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:z})]},z))}),a.jsx(P,{sx:{width:"100%",mt:1,mb:0},children:a.jsx(P,{sx:{marginLeft:`${w}%`,width:`${S}%`},children:a.jsx(hm,{variant:"progress",steps:k+1,position:"static",activeStep:A,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},eN=e=>e.dashboard?.companyId||"";function tN(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const nN=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=j.useState(null),s=vt(),l=St(),c=je(eN),[d,u]=j.useState(!1);j.useEffect(()=>{let M,$;return setTimeout(()=>{u(!1),M=setTimeout(()=>{$=setTimeout(()=>u(!0),600)},100)},0),()=>{M&&clearTimeout(M),$&&clearTimeout($)}},[]);const[p,h]=j.useState(!1),y=localStorage.getItem("selectedSyncMethod")||"sftp",[b,g]=j.useState(`${y}:`),[f,m]=j.useState(""),[x,w]=j.useState(""),S=zt(),v=je(M=>M.productSettings?.loading||!1),C=je(M=>M.productSettings?.error||null),k=yn();dt(k.breakpoints.up("lg"));const A=je(M=>M.productSettings.syncData);j.useEffect(()=>{const M=s.state?.ftpConfig,$=s.state?.tenantIntegrationData;if(A&&A.serverAddress){setTimeout(()=>{g(A.serverAddress||""),m(A.configs&&A.configs.username||""),w(A.configs&&A.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const I=t.type||"sftp",E=t.host||"",N=t.port||"",_=t.path||"",W=`${I}://${E}${N?`:${N}`:""}${_?`/${_}`:""}`;setTimeout(()=>{g(W),m(t.username||""),w(t.password||"")},0);return}if($&&$.configs){const I=$.configs,E=I.type||$.type||"sftp",N=I.host||"",_=I.port||"",W=I.path||"",F=`${E}://${N}:${_}/${W}`,B=I.username||"",O=I.password||"";setTimeout(()=>{g(F),m(B),w(O)},0);return}if(M){const E=`${M.type||"sftp"}://${M.host}:${M.port}/${M.path}`,N=M.username||"",_=M.password||"";setTimeout(()=>{g(E),m(N),w(_)},0)}},[s.state,A,t]);const z=async()=>{if(!c){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:M,host:$,port:I,path:E}=tN(b),N=await S(Ro({serverAddress:b,username:f,password:x,companyId:c}));if(!Ro.fulfilled.match(N))return;const _=N.payload;if(s.state?.fromSettingsIcon){const B=_?.entity_type||r?.entity_type||"products",O={...r||{},companyId:c,tenantId:c,type:M,serverAddress:b,configs:{host:$,port:Number(I),path:E,username:f,password:x,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:B,mappings:r?.mappings||_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(O,null,2)),i(O),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(O)),l("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:O}});return}const W=_?.entity_type||"",F={tenantId:c,type:M,serverAddress:b,configs:{host:$,port:Number(I),path:E,username:f,password:x,sync_frequency:"",sync_time:""},entity_type:W||"products",mappings:_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(F,null,2)),S($s(F)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(F)),e.onNext&&e.onNext({putjson:F})};return a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(or,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),a.jsxs(P,{sx:{width:800,minHeight:600,gap:"32px",opacity:1,pt:"88px",left:"340px",mx:"auto",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:a.jsx(al,{...n,showSetupFtpBlueTick:d})}),a.jsx(P,{sx:{width:800,height:504,minHeight:504,borderRadius:"16px",padding:"8px",paddingBottom:"32px",gap:"8px",opacity:1,display:"flex",justifyContent:"center",alignItems:"center",bgcolor:"#fff",boxSizing:"border-box",marginBottom:"32px"},children:a.jsxs(P,{sx:{width:400,height:380,borderRadius:"20px",padding:"24px",gap:"24px",opacity:1,bgcolor:"#F5F5F5",display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsx(P,{sx:{width:352,height:20,justifyContent:"space-between",opacity:1,display:"flex",alignItems:"center"},children:a.jsx(D,{sx:{width:102,height:20,fontFamily:"Inter, sans-serif",fontWeight:700,fontSize:"16px",lineHeight:"20px",letterSpacing:"0px",color:"#000000",opacity:1,margin:0},children:"Login Details"})}),a.jsxs(P,{component:"form",autoComplete:"off",sx:{width:352,height:224,gap:"16px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Server Address"}),a.jsx("input",{type:"text",value:b,onChange:M=>g(M.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),a.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box"},children:[a.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Username"}),a.jsx("input",{type:"text",value:f,onChange:M=>m(M.target.value),placeholder:"Enter username",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}})]}),a.jsxs(P,{sx:{width:352,height:64,gap:"4px",opacity:1,display:"flex",flexDirection:"column",boxSizing:"border-box",position:"relative"},children:[a.jsx("label",{style:{width:352,height:18,fontFamily:"Inter, sans-serif",fontWeight:400,fontStyle:"normal",fontSize:"14px",lineHeight:"18px",letterSpacing:"0px",color:"#454545",opacity:1,margin:0,display:"block"},children:"Password"}),a.jsx("input",{type:p?"text":"password",value:x,onChange:M=>w(M.target.value),placeholder:"Enter password",style:{width:352,height:42,boxSizing:"border-box",borderRadius:"6px",padding:"12px 44px 12px 12px",border:"1px solid #F1F1F1",background:"#FFFFFF",opacity:1,fontSize:14,fontFamily:"Inter, sans-serif"}}),a.jsx(ft,{"aria-label":"toggle password visibility",onClick:()=>h(M=>!M),tabIndex:-1,size:"small",sx:{position:"absolute",right:11,top:35,color:"#454545",width:16,height:16,padding:0,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"rgba(0,0,0,0.04)",color:"#222"},"& .MuiSvgIcon-root":{width:16,height:16,fontSize:16}},children:p?a.jsx(QI,{}):a.jsx(JI,{})})]})]}),a.jsxs(P,{sx:{display:"flex",justifyContent:"flex-end",gap:2,marginTop:"auto"},children:[a.jsx(Re,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),a.jsx(Re,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:z,disabled:v,children:v?"Loading...":"Next"})]}),C&&a.jsx(D,{color:"error",sx:{mt:1,fontSize:14},children:"Fill the credentials"})]})})]})]})},rN=e=>e.productSettings.ftpColumns||[],oN=e=>e.productSettings.preview||[],iN=e=>e.productSettings.loading,sN=e=>e.productSettings.error,aN=e=>e.productSettings.existingMapping,lN=e=>e.productSettings.entity_type||"products",cN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=vt(),l=St(),c=s.state?.fromSettingsIcon,[d,u]=j.useState(()=>{if(s.state?.putjson)return s.state.putjson;const F=window.localStorage.getItem("ftpSyncPutjson");return F?JSON.parse(F):t.length>0?{mappings:t}:null}),[p,h]=j.useState([]),[y,b]=j.useState({}),g=je(rN),f=je(oN),m=je(iN),x=je(sN),w=je(aN),S=je(lN),v=j.useRef(m);j.useEffect(()=>{m&&!v.current&&queueMicrotask(()=>b({})),v.current=m},[m]);const C=j.useRef(!1);j.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>b({}))):C.current=!1},[w]);const k=zt();j.useEffect(()=>{async function F(){try{let B=[];if(w?.mappings?.length>0){const O=w.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string");B=[...new Set(O)]}try{const O=await k(Go(S));Go.fulfilled.match(O)&&Array.isArray(O.payload)&&O.payload.filter(L=>L&&typeof L=="string").forEach(L=>{B.includes(L)||B.push(L)})}catch{}if(t&&t.length>0){const O=t.map(V=>V.target_field).filter(V=>V&&typeof V=="string"&&!B.includes(V));O.length>0&&(B=[...B,...O])}B=B.filter(O=>O&&typeof O=="string"),h(B)}catch{if(w?.mappings?.length>0){const B=w.mappings.map(V=>V.target_field).filter(V=>V&&typeof V=="string"),O=[...new Set(B)];h(O)}else h([])}}(S||w?.mappings?.length>0||t&&t.length>0)&&F()},[S,w,t,k]);const A=j.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const F=w.mappings.map(B=>B.source_field).filter(B=>B);if(F.length>0)return F}return g&&g.length>0?g:[]},[w,g]),z=j.useMemo(()=>f.filter(B=>Object.keys(B).length>0),[f]),M=j.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const F={};return w.mappings.forEach(B=>{B.source_field&&B.target_field&&(F[B.source_field]=B.target_field)}),F}return{}},[w]),I=w?.mappings?.length>0?{...M,...y}:{...y},E=yn();dt(E.breakpoints.up("lg"));const N=je(F=>F.productSettings.syncData),_=j.useMemo(()=>{if(N?.serverAddress)return N.serverAddress;const F=N?.configs||{},B=(N?.type||"sftp").toLowerCase(),O=F.host,V=F.port,L=F.path;if(!O)return"";let U=`${B}://${O}`;if(V!=null&&V!==""&&(U+=`:${V}`),L){const q=String(L).replace(/^\/+/,"");U+=`/${q}`}return U},[N]),W=()=>{const F=A.map(L=>({source_field:L||"",target_field:I[L]||""})).filter(L=>L.source_field&&L.target_field);if(F.length===0)return;if(c&&d){const L={...d,tenantId:d.tenantId||d.companyId,type:d.type||N.type||"sftp",entity_type:d.entity_type||N.entity_type||"products",mappings:F};u(L),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),r?r({fromSettingsIcon:!0,putjson:L}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:L});return}const B=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),O=N.companyId||B.companyId||B.tenantId||"",V={...B,companyId:O,tenantId:O,type:N.type||B.type||"sftp",integration_type:N.integration_type||B.integration_type||"",entity_type:B.entity_type||N.entity_type||"products",configs:N.configs||B.configs||{},ftp_columns:A,preview:z,mappings:F};k($s(V)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),r?r({putjson:V}):e.onNext&&e.onNext({putjson:V})};return a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(or,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>l("/products/settings/ftp-sync",{state:{step:1}}))}),a.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[a.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:a.jsx(al,{...i})}),a.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:a.jsxs(on,{elevation:0,sx:{mt:0,p:0,borderRadius:4,width:"100%",maxWidth:800},children:[a.jsxs(P,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[a.jsxs(P,{children:[a.jsx(D,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),_&&a.jsx(D,{variant:"body2",sx:{color:"#888",mt:.5},children:_})]}),a.jsxs(P,{children:[a.jsx(Re,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>l("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),a.jsx(Re,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:W,children:"Next"})]})]}),a.jsx(jm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?a.jsx(P,{sx:{p:3,textAlign:"center"},children:"Loading..."}):x?a.jsx(P,{sx:{p:3,color:"red",textAlign:"center"},children:x}):A.length===0?a.jsx(P,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):a.jsxs(zm,{size:"small",children:[a.jsxs(Vm,{children:[a.jsxs(ji,{children:[a.jsx(rr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),A.map((F,B)=>a.jsx(rr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:F},F+B))]}),a.jsxs(ji,{children:[a.jsx(rr,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),A.map((F,B)=>a.jsx(rr,{sx:{background:"#fafafa",borderBottom:"none"},children:a.jsxs(Tn,{value:I[F]||"",onChange:O=>b(V=>({...V,[F]:O.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[a.jsx($e,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:a.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),p.map(O=>a.jsx($e,{value:O,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:O},O))]})},B))]})]}),a.jsx(Bm,{children:z.length>0?z.map((F,B)=>a.jsxs(ji,{children:[a.jsx(rr,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:B===0?"Data preview":""}),A.map((O,V)=>a.jsx(rr,{sx:{background:"#fff",borderBottom:"none"},children:F[O]||""},V))]},B)):a.jsx(ji,{children:a.jsx(rr,{colSpan:A.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},dN=e=>e.dashboard?.companyId||"",pN=e=>e.dashboard?.integrationData||null,uN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=vt(),s=St(),l=zt(),c=je(dN),d=je(pN),u=i.state?.fromSettingsIcon,[p,h]=j.useState(()=>{if(i.state?.putjson){const O=JSON.parse(JSON.stringify(i.state.putjson));return O.mappings&&(O.originalMappings=JSON.parse(JSON.stringify(O.mappings))),O.configs?.sync_frequency&&!O.originalSyncFrequency&&(O.originalSyncFrequency=O.configs.sync_frequency),O.configs?.sync_time&&!O.originalSyncTime&&(O.originalSyncTime=O.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(O)),O}const B=window.localStorage.getItem("ftpSyncPutjson");if(B){const O=JSON.parse(B);return O.mappings&&!O.originalMappings&&(O.originalMappings=JSON.parse(JSON.stringify(O.mappings))),O.configs?.sync_frequency&&!O.originalSyncFrequency&&(O.originalSyncFrequency=O.configs.sync_frequency),O.configs?.sync_time&&!O.originalSyncTime&&(O.originalSyncTime=O.configs.sync_time),O}return null});j.useEffect(()=>{p&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(p))},[p]);const[y,b]=j.useState(null),[g,f]=j.useState(null);j.useEffect(()=>{const B=i.state?.fromProductSetting;let O=null;if(B&&i.state?.integrationData)O=i.state.integrationData;else if(d&&Object.keys(d).length>0)O=d;else if(c&&!B){l(Mt(c)).then(V=>{if(Mt.fulfilled.match(V)){const L=V.payload;if(O=L&&L.data&&L.data[0]||null,O){b(O);const U=O.id||O.channelId||null;U&&f(U)}}});return}if(O){b(O);const V=O.id||O.channelId||null;V&&f(V)}},[c,i.state,d,l]);const m=!!u||!!y,x=B=>{if(!B)return"";const O=B.charAt(0).toUpperCase()+B.slice(1).toLowerCase();return O==="Daily"||O==="Day"?"Daily":O==="Weekly"||O==="Week"?"Weekly":O==="Monthly"||O==="Month"?"Monthly":O},[w,S]=j.useState(()=>{if(t)return x(t);const B=p?.configs?.sync_frequency?x(p.configs.sync_frequency):"";return B||"Daily"}),[v,C]=j.useState(n||p&&p.configs?.sync_time||"");j.useEffect(()=>{async function B(){if(c)try{const O=i.state?.fromProductSetting;let V=null;if(O&&i.state?.integrationData)V=i.state.integrationData;else if(d&&Object.keys(d).length>0)V=d;else{const L=await l(Mt(c));if(Mt.fulfilled.match(L)){const U=L.payload;V=U&&U.data&&U.data[0]||null}}if(V){const L=V.id||V.channelId||null;L&&f(L);const U=p||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),q={...V,companyId:V.companyId||c,entity_type:V.entity_type||U?.entity_type||"product",mappings:V.mappings||U?.mappings||[]},G=V.configs?.sync_frequency||"",J=V.configs?.sync_time||"",K=x(G);if(h(q),O){if(t){const Q=x(t);S(Q)}n&&C(n),h(Q=>({...Q,...q,originalSyncFrequency:t?x(t):Q.originalSyncFrequency||K,originalSyncTime:n||Q.originalSyncTime||J,configs:{...q.configs,sync_frequency:t?x(t).toLowerCase():q.configs?.sync_frequency,sync_time:n||q.configs?.sync_time}}))}else{const Q=t?x(t):"";if(Q)S(Q);else if(K)S(K);else if(U?.configs?.sync_frequency){const se=x(U.configs.sync_frequency);S(se)}else S("Daily");n?C(n):J?C(J):U?.configs?.sync_time?C(U.configs.sync_time):C(""),h(q),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(q))}}}catch{const O=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&O?.configs?.sync_frequency?S(x(O.configs.sync_frequency)):t&&S(x(t)),!n&&O?.configs?.sync_time?C(O.configs.sync_time):n&&C(n)}}B()},[c]),j.useEffect(()=>{if(t){const B=x(t);S(B),p&&p.configs?.sync_frequency!==B&&h(O=>{const V={...O,configs:{...O.configs,sync_frequency:B}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(V)),V})}},[t]),j.useEffect(()=>{n&&(C(n),p&&p.configs?.sync_time!==n&&h(B=>{const O={...B,configs:{...B.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(O)),O}))},[n]),j.useEffect(()=>{if(p&&m&&(w||v)){const B=p.configs?.sync_frequency,O=p.configs?.sync_time;(B!==w||O!==v)&&h(V=>{const L={...V,configs:{...V.configs,sync_frequency:w||V.configs?.sync_frequency,sync_time:v||V.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),L})}},[w,v,m]);const k=je(B=>B.productSettings.syncData),A=B=>{const O=B.target.value;S(O),p&&h(V=>{const L={...V,configs:{...V.configs,sync_frequency:O}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),L}),m||l($s({...k,configs:{...k&&k.configs||{},sync_frequency:O,sync_time:v}}))},z=B=>{const O=B.target.value;C(O),p&&h(V=>{const L={...V,configs:{...V.configs,sync_time:O}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(L)),L}),m||l($s({...k,configs:{...k&&k.configs||{},sync_frequency:w,sync_time:O}}))};function M(B){try{const O=new URL(B);return{type:O.protocol.replace(":",""),host:O.hostname,port:O.port,path:O.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[$,I]=j.useState(!1),[E,N]=j.useState(""),_=async()=>{const B=i.state?.fromProductSetting;if(m){if(!p){N("Update failed: missing data."),I(!0);return}let H={...p};p.originalMappings||(H.originalMappings=p.mappings?JSON.parse(JSON.stringify(p.mappings)):[],h(H)),!p.originalSyncFrequency&&p.configs?.sync_frequency&&(H.originalSyncFrequency=p.configs.sync_frequency||"",h(H)),!p.originalSyncTime&&p.configs?.sync_time&&(H.originalSyncTime=p.configs.sync_time||"",h(H));const ne=JSON.parse(JSON.stringify(p.mappings||[])),oe=JSON.parse(JSON.stringify(p.originalMappings||[]));let ge,me;B?(ge=t?x(t):"",me=n||""):(ge=p.originalSyncFrequency||p.configs?.sync_frequency||"",me=p.originalSyncTime||p.configs?.sync_time||"",ge=x(ge));const ke=B?!1:JSON.stringify(ne)!==JSON.stringify(oe),ae=w!==ge,te=v!==me,Ce=(ae||te)&&!ke,Oe=ke;if(Ce){const ie=g||p?.id||p?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!ie){N("Channel ID is missing. Please try again."),I(!0);return}const ze={configs:{}};ae&&(ze.configs.sync_frequency=w.toLowerCase()),te&&(ze.configs.sync_time=v);try{const Ae=await l(Ko({channelId:ie,data:ze}));if(Ae.error||Ko.rejected.match(Ae)){const fe=Ae.payload||Ae.error?.message||"Update failed. Please try again.";N(fe),I(!0);return}let le="";ae&&!te?le="SyncFrequency Updated":!ae&&te?le="SyncTime Updated":ae&&te&&(le="SyncTime and SyncFrequency Updated"),N(le),I(!0),h(fe=>{const Ee={...fe,configs:{...fe.configs,sync_frequency:w.toLowerCase(),sync_time:v},originalSyncFrequency:w,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ee)),Ee});const re=i.state?.fromProductSetting;re&&c&&await l(Mt(c)),setTimeout(()=>{re&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Ae){const le=Ae?.message||Ae?.response?.data?.message||"Update failed. Please try again.";N(le),I(!0);return}}if(Oe){const ie={...p,configs:{...p.configs,sync_frequency:w.toLowerCase(),sync_time:v}};h(ie),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ie));const ze=ie.tenantId||ie.companyId;if(!ie.configs){N("Configuration error. Please try again."),I(!0);return}const Ae=ie.entity_type||p?.entity_type;if(!Ae){N("Entity type is missing. Please try again."),I(!0);return}const le={tenantId:ze,type:ie.type,entity_type:Ae,configs:{host:ie.configs.host||"",port:ie.configs.port?Number(ie.configs.port):0,username:ie.configs.username||"",password:ie.configs.password||"",path:ie.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:v||""},mappings:(ie.mappings||[]).map(re=>({source_field:re.source_field,target_field:re.target_field}))};if(!le.tenantId){N("Tenant ID is missing. Please try again."),I(!0);return}if(!le.type){N("Sync type is missing. Please try again."),I(!0);return}if(!le.entity_type){N("Entity type is missing. Please try again."),I(!0);return}try{const re=await l(Ur(le));if(Ur.rejected.match(re)){const fe=re.payload||re.error?.message||"Update failed. Please try again.";N(fe),I(!0);return}Ur.fulfilled.match(re)?(h(fe=>{const Ee={...fe,originalSyncFrequency:w,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(fe.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Ee)),Ee}),N("Sync Update Successfully"),I(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(N("Update failed. Please try again."),I(!0))}catch(re){const fe=re?.message||re?.response?.data?.message||"Update failed. Please try again.";N(fe),I(!0)}}else N("No changes detected."),I(!0);return}const O=k.configs||{},V=M(k.serverAddress||""),L=O.host||V.host,U=O.port!=null?Number(O.port):parseInt(V.port,10),q=(O.path||V.path||"").replace(/^\//,""),G=k.type||V.type||"sftp",J=k.username||O.username||"",K=k.password||O.password||"",Q=w||O.sync_frequency||"",se=typeof Q=="string"?Q.toLowerCase():Q;let ce=v||O.sync_time||"";if(typeof ce=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(ce.trim())){const[H,ne]=ce.trim().split(/\s+/),[oe,ge]=H.split(":").map(Number),me=ne.toUpperCase()==="PM"&&oe!==12?oe+12:ne.toUpperCase()==="AM"&&oe===12?0:oe;ce=`${String(me).padStart(2,"0")}:${String(ge).padStart(2,"0")}`}else typeof ce=="string"&&(ce=ce.trim());const de=(k.mappings||[]).filter(H=>H.source_field&&H.target_field).map(H=>({source_field:H.source_field,target_field:H.target_field}));if(!c){N("Company ID is required. Please ensure the app is properly configured."),I(!0);return}if(!L||!U||!J||!K||de.length===0){N("Please fill all required fields and mappings before saving."),I(!0);return}const ee=k.entity_type||"products",pe={tenantId:c,type:G,entity_type:ee,configs:{host:L,port:Number(U),username:J,password:K,path:q,sync_frequency:se,sync_time:ce},mappings:de};try{const H=await l(qo(pe));qo.fulfilled.match(H)?(N("Save and Start Sync Updated Successfully"),I(!0),e.onNext&&e.onNext()):(N(H?.payload||"Save failed. Please try again."),I(!0))}catch{N("Save failed. Please try again."),I(!0)}},[W,F]=j.useState(!1);return j.useEffect(()=>{const B=setTimeout(()=>F(!0),850);return()=>clearTimeout(B)},[]),a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(or,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),a.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[a.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:a.jsx(al,{...r,showStartSyncBlueTick:W})}),a.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:a.jsxs(on,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[a.jsxs(P,{sx:{flex:1},children:[a.jsx(D,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),a.jsxs(Tn,{size:"small",value:w,onChange:A,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[a.jsx($e,{value:"Daily",children:"Daily"}),a.jsx($e,{value:"Weekly",children:"Weekly"}),a.jsx($e,{value:"Monthly",children:"Monthly"})]})]}),a.jsxs(P,{sx:{flex:1},children:[a.jsx(D,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),a.jsx(Wi,{type:"time",size:"small",value:v,onChange:z,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),a.jsxs(P,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[a.jsx(Re,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),a.jsx(Re,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:_,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),a.jsx(bo,{open:$,autoHideDuration:4e3,onClose:()=>I(!1),message:E,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},fN=e=>{const{onBack:t,stepperProps:n={}}=e,r=zt(),s=!!je(u=>u.productSettings.saveResult),[l,c]=j.useState(s),d=St();return j.useEffect(()=>{s&&(c(!0),r(v1()))},[s,r]),a.jsxs(a.Fragment,{children:[a.jsx(bo,{open:l,autoHideDuration:4e3,onClose:()=>c(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[a.jsx(or,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>d("/products/settings/ftp-sync",{state:{step:3}}))}),a.jsxs(P,{sx:{width:800,mx:"auto",pt:"88px",display:"flex",flexDirection:"column",gap:"32px"},children:[a.jsx(P,{sx:{width:800,height:64,gap:"16px",opacity:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:a.jsx(al,{...n})}),a.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",borderRadius:2,boxShadow:"0 2px 12px #0001"},children:a.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[a.jsx(P,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:a.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:a.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),a.jsx(D,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),a.jsx(Re,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>d("/"),children:"Back to all products"})]})})]})]}),a.jsx(bo,{open:l,autoHideDuration:4e3,onClose:()=>c(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function hN(e){const t=vt(),n=St(),r=t.state?.fromProductSetting?3:0,[i,s]=j.useState(r),l=zt(),{companyId:c,integrationData:d}=je(v=>v.dashboard),u=t.state?.fromSyncStep;j.useEffect(()=>{const v=t.state?.fromProductSetting;c&&!v&&l(Mt(c))},[c,l,t.state]);const p=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(i===0&&u!==void 0){n("/product-setting",{state:{fromSyncStep:u,tenantIntegrationMatched:u===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},y=d?.configs||{},b=d?.mappings||d?.dataMappings||[],f=(v=>{if(!v)return"";const C=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(d?.configs?.sync_frequency||""),m=d?.configs?.sync_time||"",x=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],S={0:{steps:x,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:x,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:x,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return a.jsx(XI,{onNext:p,onBack:h,stepperProps:S[0],...e});case 1:return a.jsx(nN,{onNext:p,onBack:h,ftpDetails:y,stepperProps:S[1],...e});case 2:return a.jsx(cN,{onNext:p,onBack:h,mapping:b,stepperProps:S[2],...e});case 3:return a.jsx(uN,{onNext:p,onBack:h,syncFrequency:f,syncTime:m,stepperProps:S[3],...e});case 4:return a.jsx(fN,{onBack:h,stepperProps:S[4],...e});default:return null}}const gN=Je(a.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"}),"Language");function mN(e){return a.jsx(P,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",opacity:1,...e.sx},children:a.jsx(P,{component:"span",sx:{width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",opacity:1},children:a.jsx(gN,{sx:{color:"#808080"}})})})}const yN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAPCAYAAAA/I0V3AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAUlJREFUeAGNUrttwzAQFfWrnS6VIGsCjyAB+rWZIM4EyQZ2Jog2UDJCOkESYGaC2BOIZcr0+uVdYBqyQMM+gCB5997x3R2ZNjPf913LsnI6Yr23bfvKORdTjD4BL+I4fgPhexzHr6qqGPaDbdu7KIpySnZGgvPZNM0GIIbMy7qut+THnum6HuDIkIzIa/Izyg4wXQJk32sXLE1Tt+/7HY7C8DyvYIz94HLvOM5BCPGrqhOYHGuB6+pfXlmWS6mfXpb6Z3V+Eu6sEVI/gnekn8CzOjOJNacyiqIQ2NZH/c2xTj6XqytqlmR6naviStI1I9I+SZKXW8Coc4MOCtMwjIeu63IaMIp+UkkKw9AHeDMMg4bmBEwGaNoUAJHTf0MHG+oa/UP4XRBOCZki6xatfwSZBioA/oCSDJ/2NHSm0k4txysrtJ1PwdL+AHzhuHE1We3IAAAAAElFTkSuQmCC";function bN({sx:e={},...t}){const n=e?.fontSize??12,r=e?.width??n,i=e?.height??n;return a.jsx(P,{component:"img",src:yN,alt:"",role:"presentation",sx:{width:r,height:i,display:"block",objectFit:"contain",...e},...t})}const xN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAANCAYAAACdKY9CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAPtJREFUeAGlUUsOgjAQpSWQuLJHQC6gR4DwCe70Bt5Ab6CewCPIEVwSQmKPoDt3uHQnrPn5SjRpTIkLJ2k6bd+b92ZKNCkcx7EMwzh2XTcjhBRYcZqmexlD5QPAZ2zXuq4nuq67IC58399pqsCDg3X+UmRBEDyVCqjGKKWlohZTEpqm4SBNRR+fO9M019himUDkA+RXIB2gJMgMTVvI3SRJ7kqCiCiKrKqq+illWca1f6NXCMNw27btBlXZAO6Ctz3+5EQEWMwbNlzOeaFCe563AOGIdKnbth3jk+bw+xiykef5DbgRSDMxVkuewqB3QgRmTN/Jz0CPwm75AifwYTaKH5pyAAAAAElFTkSuQmCC",vN={fontSize:10.67,color:"#454545"};function SN({sx:e={},...t}){const n={...vN,...e},r=n.fontSize??10.67,i=n.width??r,s=n.height??r;return a.jsx(P,{component:"img",src:xN,alt:"",role:"presentation",sx:{width:i,height:s,display:"block",objectFit:"contain",...n},...t})}const wN=Je(a.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save");function CN(e){return a.jsx(wN,{...e})}const EN=Je(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined");function TN(e){return a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:a.jsx(P,{component:"span",sx:{width:13.22,height:13.22,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(EN,{})})})}const kN=Je(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");function PN(e){return a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",...e.sx},children:a.jsx(P,{component:"span",sx:{width:12,height:13.33,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(kN,{})})})}function ON(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:l,onBack:c,onPageChange:d,onRowsPerPageChange:u,onSave:p,onDelete:h,onStatusChange:y,updateCatalogError:b=null,updateCatalogLoading:g=!1}=e,[f,m]=j.useState(null),[x,w]=j.useState({name:"",slug:"",status:!0}),S=I=>{const E=I.slugRaw??(typeof I.slug=="string"?I.slug.replace(/^\//,""):"")??"",N=I.status==="Active"||I.status===!0;m(I.id),w({name:I.name??"",slug:E,status:N})},v=async I=>{if(typeof p!="function")return;const E=x.slug.trim().replace(/^\//,""),N={id:I.id,name:x.name.trim(),slug:E||x.name.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,""),status:x.status};await p(N),m(null)},C=()=>{m(null)},k=t,A=Math.max(0,Number(n)||0),z=Math.max(0,Math.ceil(A/Math.max(1,i))-1),M={borderRadius:"4px",padding:"2px 4px",background:"#F5F5F5",display:"inline-flex",alignItems:"center",gap:"4px"},$={wrapper:{width:800,maxWidth:"100%",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"40px",opacity:1,marginLeft:"auto",marginRight:"auto",paddingLeft:"24px",mt:2},resultsPerPageBox:{width:128,height:16,display:"flex",alignItems:"center",gap:"4px",opacity:1},resultsPerPageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",whiteSpace:"nowrap"},select:{minWidth:32,height:16,"& .MuiSelect-select":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545",py:0,pr:"20px !important",display:"flex",alignItems:"center"},"& .MuiSelect-icon":{top:"50%",transform:"translateY(-50%)"},"& .MuiSvgIcon-root":{width:16,height:16,right:0,color:"#454545"}},navBox:{width:200,height:16,display:"flex",alignItems:"center",gap:"16px",opacity:1},iconButton:{p:0,width:16,height:16,color:"#454545","&.Mui-disabled":{color:"#c0c0c0"}},pageText:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"}};return a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[a.jsx(or,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:c}),a.jsxs(P,{sx:{width:600,maxWidth:"100%",minHeight:606,pt:"88px",mx:"auto",pb:4,display:"flex",flexDirection:"column",gap:"24px",opacity:1},children:[a.jsx(P,{sx:{width:"100%",maxWidth:600,height:20,display:"flex",alignItems:"center",gap:"24px",opacity:1},children:a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"6px",height:20,opacity:1},children:[a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"14px",lineHeight:"20px",letterSpacing:0,color:"#000000",opacity:1},children:"All Catalogs"}),a.jsx(D,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:n})]})}),b&&a.jsx(D,{color:"error",sx:{mb:0},children:b}),a.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"8px"},children:k.map(I=>{const E=f===I.id,N=typeof l=="function"?l(I):s[I.id]??I.status??"Active",_=N==="Active";return a.jsxs(on,{elevation:0,sx:{width:"100%",maxWidth:600,minHeight:106,borderRadius:"12px",border:"1px solid #F1F1F1",padding:"12px 16px",background:"#FFFFFF",display:"flex",alignItems:"flex-start",gap:"16px",opacity:1},children:[a.jsx(P,{sx:{flexShrink:0},children:a.jsx(mN,{})}),a.jsx(P,{sx:{width:368,maxWidth:"100%",minWidth:0,flex:1,display:"flex",flexDirection:"column",gap:"8px",opacity:1},children:E?a.jsxs(a.Fragment,{children:[a.jsx(Wi,{label:"Name",size:"small",value:x.name,onChange:W=>w(F=>({...F,name:W.target.value})),fullWidth:!0,sx:{"& .MuiInputBase-root":{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px"}}}),a.jsx(Wi,{label:"Slug",size:"small",value:x.slug,onChange:W=>w(F=>({...F,slug:W.target.value})),fullWidth:!0,placeholder:"/catalog-slug"})]}):a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px"},children:[a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#000000",opacity:1},children:I.name}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#808080",opacity:1},children:I.slug})]}),a.jsx(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:a.jsxs(P,{sx:M,children:[a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(bN,{sx:{fontSize:12,color:"#454545"}})}),a.jsxs(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:[I.productsCount," Products"]})]})}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap"},children:[a.jsxs(P,{sx:M,children:[a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(SN,{})}),a.jsxs(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:["By ",I.createdBy]})]}),a.jsxs(P,{sx:M,children:[a.jsx(P,{sx:{width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center"},children:a.jsx(ly,{size:12,color:"#454545"})}),a.jsx(D,{sx:{fontFamily:"Inter, sans-serif",fontWeight:400,fontSize:"12px",lineHeight:"16px",letterSpacing:0,color:"#454545"},children:I.date})]})]})]})}),a.jsx(P,{sx:{flexShrink:0},children:E?a.jsxs(Tn,{size:"small",value:x.status?"Active":"Inactive",onChange:W=>w(F=>({...F,status:W.target.value==="Active"})),IconComponent:Yi,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:x.status?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"}},children:[a.jsx($e,{value:"Active",children:"Active"}),a.jsx($e,{value:"Inactive",children:"Inactive"})]}):a.jsxs(Tn,{value:N,onChange:W=>{if(typeof y!="function"||g)return;const F=W.target.value==="Active";y(I,F)},disabled:g,IconComponent:Yi,sx:{minWidth:80,height:24,borderRadius:"4px",padding:"6px 6px 6px 8px",background:_?"#D8FBE3":"#F5F5F5",fontFamily:"Inter, sans-serif",fontWeight:500,fontSize:"10px",lineHeight:"12px",color:"#454545","& .MuiSelect-select":{py:.75},"& .MuiSelect-icon":{width:12,height:12,top:"50%",transform:"translateY(-50%)"},"& .MuiOutlinedInput-notchedOutline":{border:"none"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{border:"none"}},variant:"outlined",children:[a.jsx($e,{value:"Active",children:"Active"}),a.jsx($e,{value:"Inactive",children:"Inactive"})]})}),a.jsx(P,{sx:{flexShrink:0},children:E?a.jsxs(a.Fragment,{children:[a.jsx(ft,{size:"small","aria-label":"Save catalog",disabled:g,onClick:()=>v(I),sx:{p:0,color:"#454545"},children:a.jsx(CN,{sx:{fontSize:20}})}),a.jsx(Re,{size:"small",onClick:C,sx:{minWidth:0,px:1,ml:.5},children:"Cancel"})]}):a.jsx(ft,{size:"small","aria-label":"Edit catalog",onClick:()=>S(I),sx:{p:0,width:16,height:16},children:a.jsx(TN,{})})}),a.jsx(P,{sx:{flexShrink:0},children:a.jsx(ft,{size:"small","aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(I):null,sx:{p:0,width:16,height:16},children:a.jsx(PN,{})})})]},I.id)})}),a.jsxs(P,{sx:$.wrapper,children:[a.jsxs(P,{sx:$.resultsPerPageBox,children:[a.jsx(D,{component:"span",sx:$.resultsPerPageText,children:"Results per page"}),a.jsxs(Tn,{value:i,onChange:I=>typeof u=="function"?u(I):null,IconComponent:Yi,variant:"standard",disableUnderline:!0,sx:$.select,children:[a.jsx($e,{value:5,children:"5"}),a.jsx($e,{value:10,children:"10"}),a.jsx($e,{value:25,children:"25"})]})]}),a.jsxs(P,{sx:$.navBox,children:[a.jsx(ft,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(0):null,sx:$.iconButton,"aria-label":"First page",children:a.jsx(Xd,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:r===0,onClick:()=>typeof d=="function"?d(Math.max(0,r-1)):null,sx:$.iconButton,"aria-label":"Previous page",children:a.jsx(Ui,{sx:{width:16,height:16,opacity:1}})}),a.jsx(D,{component:"span",sx:$.pageText,children:A===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,A)} of ${A}`}),a.jsx(ft,{size:"small",disabled:r>=z,onClick:()=>typeof d=="function"?d(r+1):null,sx:$.iconButton,"aria-label":"Next page",children:a.jsx(kt,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:r>=z,onClick:()=>typeof d=="function"?d(z):null,sx:$.iconButton,"aria-label":"Last page",children:a.jsx(Jd,{sx:{width:16,height:16,opacity:1}})})]})]})]})]})}const AN=({isOpen:e,onClose:t,onConfirm:n,catalogName:r})=>{const s=an().productSettingModal;return a.jsx(po,{open:e,onClose:t,"aria-labelledby":"delete-catalog-modal",sx:s.modal,children:a.jsxs(P,{sx:s.container,children:[a.jsx(P,{sx:s.header,children:a.jsxs(D,{sx:{...s.headerTitle,fontSize:22},children:["Are you sure you want to delete this catalog",r?` "${r}"`:"","?"]})}),a.jsxs(P,{sx:{...s.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[a.jsx(Re,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),a.jsx(Re,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function IN(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function NN(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,slugRaw:typeof t=="string"?t.replace(/^\//,""):t||"",productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:IN(e.createdAt??e.date),createdAt:e.createdAt??e.date,status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function FN(e){const t=St(),n=zt(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:l=null}=je(V=>V.productSettings??{}),{updateCatalogLoading:c=!1,updateCatalogError:d=null}=je(V=>V.dashboard??{}),[u,p]=j.useState(0),[h,y]=j.useState(10),[b,g]=j.useState({}),[f,m]=j.useState(!1),[x,w]=j.useState(null),[S,v]=j.useState(!1),[C,k]=j.useState("");j.useEffect(()=>{n(nn({page:u+1,limit:h}))},[n,u,h]),j.useEffect(()=>()=>n({type:"dashboard/clearUpdateCatalogError"}),[n]);const A=j.useMemo(()=>Array.isArray(r)?r.map(NN).filter(Boolean):[],[r]),z=i,M=V=>p(V),$=V=>{const L=Number(V.target.value);y(L),p(0)},I=V=>b[V.id]??V.status,E=()=>t(-1),N=async V=>{const{id:L,name:U,slug:q,status:G}=V;await n(Ho({id:L,name:U,slug:q,status:G})).unwrap(),n(nn({page:u+1,limit:h}))},_=async(V,L)=>{const U=V.slugRaw??(typeof V.slug=="string"?V.slug.replace(/^\//,""):"")??"";g(q=>({...q,[V.id]:L?"Active":"Inactive"}));try{await n(Ho({id:V.id,name:V.name??"",slug:U,status:L})).unwrap(),n(nn({page:u+1,limit:h}))}catch{g(q=>({...q,[V.id]:V.status}))}},W=V=>{w(V),m(!0)},F=()=>{m(!1),w(null)},B=async()=>{if(!x?.id){F();return}try{await n(Ds(x.id)).unwrap(),k("Catalog delete Successfully"),v(!0),F(),n(nn({page:u+1,limit:h}))}catch{k("Failed to delete catalog"),v(!0)}},O=a.jsx(or,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:E});return s&&A.length===0?a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[O,a.jsx(P,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:a.jsx(Ca,{})})]}):l&&A.length===0?a.jsxs(P,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[O,a.jsx(P,{sx:{textAlign:"center",py:4},children:a.jsx(D,{color:"error",children:l})})]}):a.jsxs(a.Fragment,{children:[a.jsx(ON,{catalogs:A,totalCount:z,page:u,rowsPerPage:h,statusById:b,getStatus:I,onBack:E,onPageChange:M,onRowsPerPageChange:$,onStatusChange:_,onSave:N,onDelete:W,updateCatalogError:d,updateCatalogLoading:c,...e}),a.jsx(AN,{isOpen:f,onClose:F,onConfirm:B,catalogName:x?.name}),a.jsx(bo,{open:S,autoHideDuration:4e3,onClose:()=>v(!1),message:C,anchorOrigin:{vertical:"top",horizontal:"center"}})]})}const ll=Je(a.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),MN=Je([a.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),a.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function Zd(e){return a.jsx(MN,{...e})}function DN({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1,pagination:l=null,onPageChange:c,onLimitChange:d}){const u=e?.categoryTableAllStore??{},p=e?.categoryTableSingleStore??{},h=e?.categoryTablePagination??{},y=e?.categoryTableShared??{},b=dt("(max-width:900px)"),g=dt("(max-width:400px)"),f=dt("(max-width:550px)"),m=dt("(max-width:770px)"),x=dt("(max-width:650px)"),w=dt("(max-width:500px)"),S=dt("(max-width:400px)"),v=!s,C=v&&m,k=F=>t.some(B=>B.id===F.id),[A,z]=j.useState(null),[M,$]=j.useState([]),I=(F,B)=>{z(F.currentTarget),$(B)},E=()=>{z(null),$([])},N=!!A,_=v?p.outerCard:u.outerCard,W=v?"6px":"4px";return a.jsx(Ar,{maxWidth:!1,sx:e.categoryTableContainer,children:a.jsxs(Hn,{sx:{...e.categoryTable,..._},children:[a.jsx(P,{sx:{...u.categoryNameBox,display:"flex",alignItems:"center",mb:W,boxSizing:"border-box",overflow:"hidden"},children:a.jsx(D,{sx:{...u.categoryNameText,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:i})}),!(v&&!g)&&a.jsxs(P,{sx:{display:"flex",flexWrap:g&&v?"wrap":"nowrap",alignItems:"center",width:"100%",minWidth:0,...v?p.tableHeader:u.tableHeader,boxSizing:"border-box",gap:g?"8px":v&&b?"12px":"16px"},children:[s?a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:a.jsx(ht,{checked:n.length>0&&n.every(k),indeterminate:n.some(k)&&!n.every(k),onChange:()=>{n.every(k)?n.forEach(F=>r(F,i,!1)):n.forEach(F=>{k(F)||r(F,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:a.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})})})}),a.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0,flex:"1 1 0"},children:a.jsx(D,{component:"span",sx:u.headerProduct,children:"Product"})})]}):a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:g?"8px":b?"12px":"16px",flex:"1 1 0",minWidth:0,...v&&!g&&{maxWidth:"40%"}},children:[a.jsx(ht,{checked:n.length>0&&n.every(k),indeterminate:n.some(k)&&!n.every(k),onChange:()=>{n.every(k)?n.forEach(F=>r(F,i,!1)):n.forEach(F=>{k(F)||r(F,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:a.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})})}),a.jsx(D,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}),!g&&(v?a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{...p.headerStatus,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Status"})}),a.jsx(P,{sx:{...p.headerPrice,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Price"})}),a.jsx(P,{sx:{...p.headerStock,display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0,flex:"0 1 auto"},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,flex:"0 1 auto",...p.headerOffer},children:[a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Offer"}),a.jsx(il,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px"}})]})]}):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:1,minWidth:64},children:a.jsx(D,{component:"span",sx:u.headerStatusText,children:"Status"})}),!f&&a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:2,minWidth:88},children:a.jsx(D,{component:"span",sx:u.headerOsaText,children:"Stock / OSA"})}),a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",flexShrink:0,mr:0,width:20,minWidth:20},children:a.jsx(il,{sx:{...u.arrowDownAllStore}})})]})]}))]}),(function(){const F=v&&!g,B=n.map((O,V)=>{let L=[];O.offers&&Array.isArray(O.offers)?L=O.offers:O.offer&&typeof O.offer=="string"&&O.offer.includes(`
236
+ `)?L=O.offer.split(`
237
+ `):O.offer&&Array.isArray(O.offer)?L=O.offer:O.offer&&(L=[O.offer]);const U=L[0]||"",q=L.length>1?L.slice(1):[];return a.jsxs(P,{sx:{...v&&!g?{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"flex-start",boxSizing:"border-box",mt:0,mb:0,width:"100%",maxWidth:"100%",minWidth:0,...p.rowCard,...m&&{height:"auto",minHeight:152}}:{display:"flex",flexDirection:g&&v?"column":"row",alignItems:"flex-start",flexWrap:g&&v?"nowrap":"wrap",...v?p.rowCard:u.rowCard,...C&&{height:"auto",minHeight:152},gap:g?"8px":"16px",boxSizing:"border-box",mt:V===0?.5:0,mb:.5,width:"100%",maxWidth:"100%",minWidth:0}},children:[!(v&&S)&&a.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,gap:"8px",flexShrink:0},children:a.jsx(ht,{checked:k(O),onChange:()=>r(O,i),size:"small",sx:y.checkboxRowSx,icon:a.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:a.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:a.jsx(sl,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),a.jsx(P,{sx:{display:"flex",flexDirection:v&&m?"column":"row",alignItems:v&&m?"flex-start":v?"center":"flex-start",height:v&&!C&&!m?56:void 0,minHeight:56,gap:"16px",minWidth:0,flex:g?"0 0 auto":"1 1 0",width:g||v&&m?"100%":void 0,overflow:C||m?"visible":"hidden",...v?p.productBlock:u.productBlock,...v&&{width:void 0,maxWidth:"100%",flex:g?"0 0 auto":"1 1 0"},...(C||v&&m)&&{height:"auto"},...!v&&!g&&{height:void 0},...!v&&g&&{height:76,minHeight:76,maxHeight:76,overflow:"hidden"}},children:v&&m?a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",minWidth:0,width:"100%",flex:"0 0 auto"},children:[S&&a.jsx(P,{sx:{display:"flex",alignItems:"flex-start",width:16,minHeight:20,flexShrink:0},children:a.jsx(ht,{checked:k(O),onChange:()=>r(O,i),size:"small",sx:y.checkboxRowSx,icon:a.jsx("span",{style:y.checkboxIconSpanRow}),checkedIcon:a.jsx("span",{style:y.checkboxRowCheckedIconSpan,children:a.jsx(sl,{sx:{fontSize:10,color:"#2563EB",position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})})})}),a.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},children:O.productImage?a.jsx(kr,{src:O.productImage,alt:O.productName,sx:y.avatar}):a.jsx(kr,{sx:y.avatarPlaceholder,children:O.productName&&O.productName[0]})}),a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden"},children:[a.jsx(D,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px"},children:O.productName}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",flexWrap:"wrap",minWidth:0,overflow:"hidden"},children:[a.jsx(D,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:O.productWeight}),O.categoryName&&a.jsxs(a.Fragment,{children:[a.jsx(D,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:"•"}),a.jsx(D,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px"},children:O.categoryName})]})]}),a.jsxs(D,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis"},children:["SKU: ",O.sku]})]})]}),x?a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"24px",width:"100%",ml:S?"32px":0},children:[S&&a.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[a.jsx(P,{component:"span",sx:O.status===!0?u.statusActiveBox:u.statusNoStockBox,children:O.status===!0?"Active":"No Stock"}),a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[a.jsxs(D,{sx:p.priceText,children:["₹",O.price]}),a.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Zd,{sx:p.clockIconSx})})]}),O.mrp&&a.jsxs(D,{sx:y.mrpText,children:["₹",O.mrp]}),O.discount&&a.jsx(D,{sx:y.discountText,children:O.discount})]})]}),w&&!S&&a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",...p.priceBlock},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[a.jsxs(D,{sx:p.priceText,children:["₹",O.price]}),a.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Zd,{sx:p.clockIconSx})})]}),O.mrp&&a.jsxs(D,{sx:y.mrpText,children:["₹",O.mrp]}),O.discount&&a.jsx(D,{sx:y.discountText,children:O.discount})]}),a.jsxs(P,{sx:{display:"flex",flexDirection:"row",gap:"50px",alignItems:"center",flexWrap:"wrap",width:"100%"},children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"2px",flexShrink:0},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&a.jsx(Li,{title:"No stock",children:a.jsx(ll,{sx:y.errorIcon})}),a.jsx(D,{component:"span",sx:u.stockValue,children:O.stock}),a.jsx(D,{component:"span",sx:u.osaValue,children:O.quantity?`/${O.quantity}`:""})]}),(()=>{const G=typeof O.osa=="number"?O.osa:O.osa??0,J=Number(G),K=J<50;return a.jsxs(D,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal?.color||"#454545"},children:[a.jsxs(P,{component:"span",sx:K?{color:p.onShelfPercentRed?.color||"#d32f2f"}:{},children:[Math.round(J),"%"]}),a.jsx(P,{component:"span",sx:{color:p.onShelfSpan?.color||"#808080"},children:" on shelf"})]})})()]}),a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,flex:1,minWidth:0},children:[a.jsx(D,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:U}),q.length>0&&a.jsxs(D,{sx:y.moreOffersLink,onClick:G=>I(G,L),children:["+",q.length," more"]})]})]})]}):a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:0,width:"100%"},children:[a.jsx(D,{sx:{...p.offerText,whiteSpace:"pre-line",fontSize:"12px",lineHeight:"16px"},children:U}),q.length>0&&a.jsxs(D,{sx:y.moreOffersLink,onClick:G=>I(G,L),children:["+",q.length," more"]})]})]}):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{...u.imageBox,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0,mb:0},children:O.productImage?a.jsx(kr,{src:O.productImage,alt:O.productName,sx:y.avatar}):a.jsx(kr,{sx:y.avatarPlaceholder,children:O.productName&&O.productName[0]})}),a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",flex:1,minWidth:0,maxWidth:"100%",overflow:"hidden",...!v&&g&&{height:76,minHeight:76,maxHeight:76}},children:[a.jsx(D,{sx:{...u.productName,wordBreak:"break-word",overflowWrap:"break-word",whiteSpace:"normal",overflow:"hidden",fontSize:"12px",lineHeight:"16px",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:O.productName}),a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px",minWidth:0,overflow:"hidden",flexWrap:!v&&g?"nowrap":"wrap"},children:[a.jsx(D,{sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",flexShrink:!v&&g?0:void 0},children:O.productWeight}),O.categoryName&&a.jsxs(a.Fragment,{children:[a.jsx(D,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",flexShrink:0},children:"•"}),a.jsx(D,{component:"span",sx:{...u.productMeta,fontSize:"10px",lineHeight:"12px",...!v&&g&&{minWidth:0,overflow:"hidden",textOverflow:"ellipsis",flex:"1 1 0"}},children:O.categoryName})]})]}),a.jsxs(D,{sx:{...u.productSku,fontSize:"10px",lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",...!v&&g&&{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}},children:["SKU: ",O.sku]})]})]})}),(v&&!g||!v&&!g)&&a.jsx(P,{sx:{display:"flex",alignItems:"flex-start",justifyContent:v&&!g?"center":void 0,...v?p.statusBlock:{},flexShrink:0,minWidth:!v&&!g?64:0,width:g?"100%":void 0,mt:g?1:0,mr:!v&&!g?4:0,...v&&!g&&{alignSelf:"flex-start",marginTop:"8px"}},children:a.jsx(P,{component:"span",sx:O.status===!0?u.statusActiveBox:u.statusNoStockBox,children:O.status===!0?"Active":"No Stock"})}),!v&&!f&&a.jsxs(a.Fragment,{children:[a.jsxs(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",flexShrink:0,minWidth:88,width:g?"100%":void 0,mt:g?1:0,ml:g?0:.5,textAlign:"left"},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[O.stock===0&&a.jsx(Li,{title:"No stock",children:a.jsx(ll,{sx:y.errorIcon})}),a.jsx(D,{component:"span",sx:u.stockValue,children:O.stock}),a.jsx(D,{component:"span",sx:u.osaValue,children:O.quantity?`/${O.quantity}`:""})]}),(()=>{const G=Number(typeof O.osa=="number"?O.osa:O.osa??0),J=G<50;return a.jsxs(D,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[a.jsxs(P,{component:"span",sx:J?{color:"#d32f2f"}:{},children:[Math.round(G),"%"]})," on shelf"]})})()]}),a.jsx(P,{sx:{width:20,flexShrink:0,minWidth:20}})]}),!v&&f&&a.jsx(P,{sx:{display:"flex",flexDirection:"column",gap:"4px",alignItems:"flex-start",width:"100%",mt:1,ml:"32px",...g&&{minHeight:48}},children:a.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:12,flexWrap:g?"nowrap":"wrap"},children:[g&&a.jsx(P,{component:"span",sx:O.status===!0?u.statusActiveBox:u.statusNoStockBox,children:O.status===!0?"Active":"No Stock"}),a.jsxs(P,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:0},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"flex-start",gap:0},children:[O.stock===0&&a.jsx(Li,{title:"No stock",children:a.jsx(ll,{sx:y.errorIcon})}),a.jsx(D,{component:"span",sx:u.stockValue,children:O.stock}),a.jsx(D,{component:"span",sx:u.osaValue,children:O.quantity?`/${O.quantity}`:""})]}),(()=>{const G=Number(typeof O.osa=="number"?O.osa:O.osa??0),J=G<50;return a.jsxs(D,{sx:{...u.onShelfText,color:"#808080",textAlign:"left"},children:[a.jsxs(P,{component:"span",sx:J?{color:"#d32f2f"}:{},children:[Math.round(G),"%"]})," on shelf"]})})()]})]})}),v&&!w&&a.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.priceBlock,flexShrink:0,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:[a.jsxs(D,{sx:p.priceText,children:["₹",O.price]}),a.jsx(P,{sx:{...p.clockIcon,display:"inline-flex",alignItems:"center",justifyContent:"center"},children:a.jsx(Zd,{sx:p.clockIconSx})})]}),O.mrp&&a.jsxs(D,{sx:y.mrpText,children:["₹",O.mrp]}),O.discount&&a.jsx(D,{sx:y.discountText,children:O.discount})]}),v&&!x&&a.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.stockBlock,flexShrink:0,minWidth:0,width:g?"100%":void 0,mt:g?1:0},children:[a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:0},children:[O.stock===0&&a.jsx(Li,{title:"No stock",children:a.jsx(ll,{sx:y.errorIcon})}),a.jsx(D,{component:"span",sx:u.stockValue,children:O.stock}),a.jsx(D,{component:"span",sx:u.osaValue,children:O.quantity?`/${O.quantity}`:""})]}),(()=>{const G=typeof O.osa=="number"?O.osa:O.osa??0,J=Number(G),K=J<50;return a.jsxs(D,{sx:{...u.onShelfText,fontSize:"10px",color:p.onShelfPercentNormal.color},children:[a.jsxs(P,{component:"span",sx:K?{color:p.onShelfPercentRed.color}:{},children:[Math.round(J),"%"]})," ",a.jsx(P,{component:"span",sx:{color:p.onShelfSpan.color},children:"on shelf"})]})})()]}),v&&!m&&a.jsxs(P,{sx:{display:"flex",flexDirection:"column",...p.offerBlock,minWidth:0,flex:"0 1 auto",width:g?"100%":void 0,mt:g?1:0},children:[a.jsx(D,{sx:{...p.offerText,whiteSpace:"pre-line"},children:U}),q.length>0&&a.jsxs(D,{sx:y.moreOffersLink,onClick:G=>I(G,L),children:["+",q.length," more"]})]})]},O.id||V)});return F?a.jsxs(P,{sx:{display:"grid",gridTemplateColumns:S?"minmax(0, 1fr)":w?"auto minmax(0, 1fr) auto":x?"auto minmax(0, 1fr) auto auto":m?"auto minmax(0, 1fr) auto auto auto":"auto minmax(0, 1fr) auto auto auto auto",columnGap:"12px",rowGap:"4px",alignItems:"start",width:"100%",minWidth:0,boxSizing:"border-box"},children:[a.jsx(P,{sx:{gridColumn:"1 / -1",display:"grid",gridTemplateColumns:"subgrid",gap:"12px",alignItems:"center",...p.tableHeader,boxSizing:"border-box"},children:S?a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0},children:[a.jsx(ht,{checked:n.length>0&&n.every(k),indeterminate:n.some(k)&&!n.every(k),onChange:()=>{n.every(k)?n.forEach(O=>r(O,i,!1)):n.forEach(O=>{k(O)||r(O,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:a.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})})}),a.jsx(D,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})]}):a.jsxs(a.Fragment,{children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",flexShrink:0},children:a.jsx(ht,{checked:n.length>0&&n.every(k),indeterminate:n.some(k)&&!n.every(k),onChange:()=>{n.every(k)?n.forEach(O=>r(O,i,!1)):n.forEach(O=>{k(O)||r(O,i,!0)})},size:"small",sx:y.checkboxHeaderSx,icon:a.jsx("span",{style:y.checkboxIconSpanHeader}),checkedIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})}),indeterminateIcon:a.jsx("span",{style:y.checkboxCheckedIconSpan,children:a.jsx("span",{style:y.checkboxCheckedIconInner})})})}),a.jsx(P,{sx:{display:"flex",alignItems:"center",minWidth:0},children:a.jsx(D,{component:"span",sx:{...p.headerLabel,...p.headerProduct},children:"Product"})}),!S&&a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:0},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Status"})}),!w&&a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Price"})}),!x&&a.jsx(P,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",minWidth:0},children:a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Stock"})}),!m&&a.jsxs(P,{sx:{display:"flex",alignItems:"center",gap:"12px",minWidth:0,...p.headerOffer},children:[a.jsx(D,{component:"span",sx:{...p.headerLabel},children:"Offer"}),a.jsx(il,{sx:{...u.arrowDown,fontSize:12,marginTop:"8px",marginLeft:"20px"}})]})]})}),B]}):B})(),a.jsxs(Od,{open:N,anchorEl:A,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:y.popoverPaper},children:[a.jsx(D,{sx:y.popoverTitle,children:"Offers"}),M.map((F,B)=>a.jsxs(D,{sx:y.popoverItem,children:[B+1,". ",F]},B))]}),l&&typeof c=="function"&&typeof d=="function"&&a.jsxs(P,{sx:{...h.wrapper,width:"100%",maxWidth:"100%",flexWrap:"wrap"},children:[a.jsxs(P,{sx:h.resultsPerPageBox,children:[a.jsx(D,{component:"span",sx:h.resultsPerPageText,children:"Results per page"}),a.jsx(Tn,{value:l.limit??10,onChange:F=>d(Number(F.target.value)),IconComponent:Yi,variant:"standard",disableUnderline:!0,sx:h.select,children:[5,10,20,50].map(F=>a.jsx($e,{value:F,children:F},F))})]}),a.jsxs(P,{sx:h.navBox,children:[a.jsx(ft,{size:"small",disabled:(l.currentPage??1)<=1,onClick:()=>c(1),sx:h.iconButton,title:"First page",children:a.jsx(Xd,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:(l.currentPage??1)<=1,onClick:()=>c((l.currentPage??1)-1),sx:h.iconButton,title:"Previous page",children:a.jsx(Ui,{sx:h.paginationIcon??y.paginationIcon})}),a.jsx(D,{component:"span",sx:h.pageText,children:(l.totalCount??0)===0?"0 of 0":`${((l.currentPage??1)-1)*(l.limit??10)+1}-${Math.min((l.currentPage??1)*(l.limit??10),l.totalCount??0)} of ${l.totalCount??0}`}),a.jsx(ft,{size:"small",disabled:!(l.hasNextPage??!1)||(l.currentPage??1)>=(l.totalPages??1),onClick:()=>c((l.currentPage??1)+1),sx:h.iconButton,title:"Next page",children:a.jsx(kt,{sx:{width:16,height:16,opacity:1}})}),a.jsx(ft,{size:"small",disabled:!(l.hasNextPage??!1)||(l.currentPage??1)>=(l.totalPages??1),onClick:()=>c(l.totalPages??1),sx:h.iconButton,title:"Last page",children:a.jsx(Jd,{sx:h.paginationIcon??y.paginationIcon})})]})]})]})})}const cy=Je(a.jsx("path",{d:"M19 6.41 17.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"}),"Clear"),Pn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},On=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Gi=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=Pn(r,0),l=Pn(i,0),c=s>l&&s>0?Math.round((s-l)/s*100):5,d=Math.max(0,s-l);return{productName:t,productCode:n,mrp:s,discountPrice:l,discount:c,saveAmount:d}},_N=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Gi(e),l=Math.max(0,Pn(i,0)-Pn(s,0)),c=n.validTo||On().validTo,d=n.ppd||On().ppd;return`
238
238
  <div class="sticker design-1">
239
239
  ${t.discountPrice?`
240
240
  <div class="our-price-header">SAVE</div>
@@ -242,15 +242,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
242
242
  `:""}
243
243
  ${t.discountPrice||t.mrp?`
244
244
  <div class="bottom-info">
245
- ${t.discountPrice?`<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${a.toFixed(0)}</div>`:""}
245
+ ${t.discountPrice?`<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${l.toFixed(0)}</div>`:""}
246
246
  ${t.mrp?`<div class="mrp-amount">MRP: <span class="rupee-symbol-small">₹</span>${Pn(i,0).toFixed(0)}</div>`:""}
247
247
  </div>
248
248
  `:""}
249
249
  ${t.productName?`<div class="product-name">${r}</div>`:""}
250
- <div class="valid-from">VALID TO: ${l}</div>
250
+ <div class="valid-from">VALID TO: ${c}</div>
251
251
  <div class="valid-to">PPD: ${d}</div>
252
252
  </div>
253
- `},MN=(e,t,n={})=>{const{productName:r,mrp:i,discount:s}=Vi(e),a=n.validTo||On().validTo,l=n.ppd||On().ppd,d=s.toFixed(2);return`
253
+ `},$N=(e,t,n={})=>{const{productName:r,mrp:i,discount:s}=Gi(e),l=n.validTo||On().validTo,c=n.ppd||On().ppd,d=s.toFixed(2);return`
254
254
  <div class="sticker design-2">
255
255
  ${t.percentOff?`
256
256
  <div class="main-offer-block">
@@ -262,10 +262,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
262
262
  <div class="mrp-block">MRP:<span class="rupee-symbol-small">₹</span>${Pn(i,0).toFixed(0)}</div>
263
263
  `:""}
264
264
  ${t.productName?`<div class="product-name">${r}</div>`:""}
265
- <div class="valid-from">(Valid till: ${a})</div>
266
- <div class="valid-to">(PPD: ${l})</div>
265
+ <div class="valid-from">(Valid till: ${l})</div>
266
+ <div class="valid-to">(PPD: ${c})</div>
267
267
  </div>
268
- `},DN=(e,t,n={})=>{const{productName:r,discountPrice:i}=Vi(e),s=n.validTo||On().validTo,a=n.ppd||On().ppd;return`
268
+ `},zN=(e,t,n={})=>{const{productName:r,discountPrice:i}=Gi(e),s=n.validTo||On().validTo,l=n.ppd||On().ppd;return`
269
269
  <div class="sticker design-3">
270
270
  ${t.discountPrice?`
271
271
  <div class="our-price-header">OUR PRICE</div>
@@ -273,22 +273,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
273
273
  `:""}
274
274
  ${t.productName?`<div class="product-name">${r}</div>`:""}
275
275
  <div class="valid-from">[ValidTo: ${s}]</div>
276
- <div class="valid-to">[PPD: ${a}]</div>
276
+ <div class="valid-to">[PPD: ${l}]</div>
277
277
  </div>
278
- `},_N=(e,t,n={})=>{const{productCode:r,mrp:i,discountPrice:s,saveAmount:a}=Vi(e),l=n.validTo||On().validTo,d=n.ppd||On().ppd,p=Math.floor(s),h=Math.round((s-p)*100).toString().padStart(2,"0"),x=Math.floor(a),g=Math.round((a-x)*100).toString().padStart(2,"0"),f=Math.floor(i);return`
278
+ `},LN=(e,t,n={})=>{const{productCode:r,mrp:i,discountPrice:s,saveAmount:l}=Gi(e),c=n.validTo||On().validTo,d=n.ppd||On().ppd,u=Math.floor(s),h=Math.round((s-u)*100).toString().padStart(2,"0"),y=Math.floor(l),g=Math.round((l-y)*100).toString().padStart(2,"0"),f=Math.floor(i);return`
279
279
  <div class="sticker design-4">
280
280
  ${t.discountPrice?`
281
281
  <div class="our-price-header">OUR PRICE</div>
282
282
  <div class="big-price">
283
283
  <span class="rupee-symbol">₹</span>
284
- <span class="price-whole">${p}</span>
284
+ <span class="price-whole">${u}</span>
285
285
  <span class="price-decimal">.${h}</span>
286
286
  </div>
287
287
  `:""}
288
288
  ${t.discountPrice||t.mrp?`
289
289
  <div class="save-mrp-row">
290
290
  ${t.discountPrice?`
291
- <div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${x}.${g}</div>
291
+ <div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${y}.${g}</div>
292
292
  `:""}
293
293
  ${t.mrp?`
294
294
  <div class="mrp-amount">MRP:<span class="rupee-symbol-small">₹</span>${f}</div>
@@ -298,10 +298,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
298
298
  ${t.productName?`
299
299
  <div class="product-code">${r}</div>
300
300
  `:""}
301
- <div class="valid-from">[VALIDITY: ${l}]</div>
301
+ <div class="valid-from">[VALIDITY: ${c}]</div>
302
302
  <div class="valid-to">[PPID: ${d}]</div>
303
303
  </div>
304
- `},$N=(e,t={})=>{const{productName:n,mrp:r,discountPrice:i}=Vi(e),s=Pn(i,0),a=r>s?Math.floor(r*1.17):Math.floor(s*1.17),l=r>s?Math.round((r-s)/r*100):6;return`
304
+ `},BN=(e,t={})=>{const{productName:n,mrp:r,discountPrice:i}=Gi(e),s=Pn(i,0),l=r>s?Math.floor(r*1.17):Math.floor(s*1.17),c=r>s?Math.round((r-s)/r*100):6;return`
305
305
  <div class="sticker design-5">
306
306
  <div class="top-section">
307
307
  <div class="left-column">
@@ -321,7 +321,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
321
321
  <div class="right-column">
322
322
  ${t.discountPrice?`
323
323
  <div class="non-member-price-label">NON<br>MEMBER<br>PRICE</div>
324
- <div class="non-member-price-value"><span class="rupee-symbol">₹</span>${a}</div>
324
+ <div class="non-member-price-value"><span class="rupee-symbol">₹</span>${l}</div>
325
325
  `:""}
326
326
  </div>
327
327
  </div>
@@ -332,10 +332,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
332
332
  </div>
333
333
  <div class="horizontal-divider"></div>
334
334
  <div class="bottom-section">
335
- <div class="savings-message">SAVE UPTO ${l}% EXTRA MONTHLY WITH MY SPENCERS REWARDS</div>
335
+ <div class="savings-message">SAVE UPTO ${c}% EXTRA MONTHLY WITH MY SPENCERS REWARDS</div>
336
336
  </div>
337
337
  </div>
338
- `},oy=e=>{const t={design1:FN,design2:MN,design3:DN,design4:_N,design5:$N};return t[e]||t.design1},zN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const r=oy(t),i=On();return`
338
+ `},dy=e=>{const t={design1:_N,design2:$N,design3:zN,design4:LN,design5:BN};return t[e]||t.design1},jN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const r=dy(t),i=On();return`
339
339
  <!DOCTYPE html>
340
340
  <html>
341
341
  <head>
@@ -952,9 +952,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
952
952
  </head>
953
953
  <body>
954
954
  <div class="print-container">
955
- ${e.map(a=>`
955
+ ${e.map(l=>`
956
956
  <div class="page-container">
957
- ${r(a,n,i)}
957
+ ${r(l,n,i)}
958
958
  </div>
959
959
  `).join("")}
960
960
  </div>
@@ -970,7 +970,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
970
970
  <\/script>
971
971
  </body>
972
972
  </html>
973
- `},LN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const a=oy(t),l=On(),d=[];for(let u=0;u<e.length;u+=8)d.push(e.slice(u,u+8));return`
973
+ `},WN=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const l=dy(t),c=On(),d=[];for(let p=0;p<e.length;p+=8)d.push(e.slice(p,p+8));return`
974
974
  <!DOCTYPE html>
975
975
  <html>
976
976
  <head>
@@ -1560,10 +1560,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
1560
1560
  </style>
1561
1561
  </head>
1562
1562
  <body>
1563
- ${d.map((u,h)=>{const x=u.map(f=>a(f,n,l)).join(""),b=h===d.length-1,g=Array(8-u.length).fill('<div class="sticker empty"></div>').join("");return`
1563
+ ${d.map((p,h)=>{const y=p.map(f=>l(f,n,c)).join(""),b=h===d.length-1,g=Array(8-p.length).fill('<div class="sticker empty"></div>').join("");return`
1564
1564
  <div class="page-container" ${b?"":'style="page-break-after: always;"'}>
1565
1565
  <div class="print-container">
1566
- ${x}${g}
1566
+ ${y}${g}
1567
1567
  </div>
1568
1568
  </div>
1569
1569
  `}).join("")}
@@ -1579,5 +1579,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
1579
1579
  <\/script>
1580
1580
  </body>
1581
1581
  </html>
1582
- `},jN=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,l=[];e.forEach(h=>{for(let x=0;x<a;x++)l.push(h)});const d={A4:zN,A7:LN},u=(d[n]||d.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},tl=c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),nl=c.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:c.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:c.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),BN=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},WN=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=sn(),i=L.useMemo(()=>BN(),[]),[s,a]=L.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,d]=L.useState("design1"),[p,u]=L.useState(""),[h,x]=L.useState(1),[b,g]=L.useState(!1),f=w=>a(S=>({...S,[w]:!S[w]})),m=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!p){g(!0);return}g(!1);const w=h>0?h:1;jN({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:w}),t()},y=r.promoPrintModal;return c.jsxs(lo,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:y.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[c.jsx(co,{sx:{p:0},children:c.jsxs(k,{sx:y.header,children:[c.jsx(W,{sx:y.headerTitle,children:"Promo Print"}),c.jsx(k,{component:"button",onClick:t,sx:y.crossIconCard,"aria-label":"Close",children:c.jsx(ry,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsx(Ti,{sx:y.content,children:c.jsxs(k,{sx:y.middleCard,children:[c.jsxs(k,{sx:y.itemsToShowSection,children:[c.jsx(W,{sx:y.sectionTitle,children:"Items to show"}),c.jsxs(k,{sx:y.checkboxRow,children:[c.jsx(Cn,{control:c.jsx(Ot,{checked:s.productName,onChange:()=>f("productName"),size:"small",sx:y.checkboxSx,icon:tl,checkedIcon:nl}),label:"Product Name",sx:y.checkboxLabel}),c.jsx(Cn,{control:c.jsx(Ot,{checked:s.percentOff,onChange:()=>f("percentOff"),size:"small",sx:y.checkboxSx,icon:tl,checkedIcon:nl}),label:"Percent OFF",sx:y.checkboxLabel}),c.jsx(Cn,{control:c.jsx(Ot,{checked:s.mrp,onChange:()=>f("mrp"),size:"small",sx:y.checkboxSx,icon:tl,checkedIcon:nl}),label:"MRP",sx:y.checkboxLabel}),c.jsx(Cn,{control:c.jsx(Ot,{checked:s.discountPrice,onChange:()=>f("discountPrice"),size:"small",sx:y.checkboxSx,icon:tl,checkedIcon:nl}),label:"Discount Price",sx:y.checkboxLabel})]})]}),c.jsxs(k,{sx:y.designSection,children:[c.jsx(W,{sx:y.sectionTitle,children:"Promo Design"}),c.jsxs(k,{sx:y.designContainer,children:[c.jsxs(k,{onClick:()=>d("design1"),sx:{...y.designCard.base,...l==="design1"?y.designCard.selected:y.designCard.unselected},children:[c.jsx(W,{sx:{...y.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),c.jsx(k,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(k,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(W,{component:"span",sx:{...y.design1.rupeeSymbol},children:"₹"}),c.jsx(W,{component:"span",sx:{...y.design1.bigPrice},children:"1387"})]})}),c.jsxs(k,{sx:{...y.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(W,{sx:{...y.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",c.jsx(W,{component:"span",sx:y.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),c.jsxs(W,{sx:{...y.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",c.jsx(W,{component:"span",sx:y.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),c.jsx(W,{sx:{...y.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),c.jsxs(k,{sx:y.design1.dateRow,children:[c.jsxs(W,{sx:y.design1.validFromText,children:["VALID TO: ",i.validTo]}),c.jsxs(W,{sx:y.design1.validToText,children:["PPD: ",i.ppd]})]})]}),c.jsxs(k,{onClick:()=>d("design2"),sx:{...y.designCard.base,...l==="design2"?y.designCard.selected:y.designCard.unselected},children:[c.jsxs(k,{sx:y.design2.mainOfferBlock,children:[c.jsx(W,{sx:{...y.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),c.jsx(W,{sx:{...y.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),c.jsxs(W,{sx:{...y.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(W,{component:"span",sx:y.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),c.jsx(W,{sx:{...y.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),c.jsxs(k,{sx:y.design2.dateRow,children:[c.jsxs(W,{sx:y.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),c.jsxs(W,{sx:y.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),c.jsxs(k,{onClick:()=>d("design3"),sx:{...y.designCard.base,...l==="design3"?y.designCard.selected:y.designCard.unselected},children:[c.jsx(W,{sx:{...y.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(k,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(k,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(W,{component:"span",sx:{...y.design3.rupeeSymbol},children:"₹"}),c.jsx(W,{component:"span",sx:{...y.design3.bigPrice},children:"29"})]})}),c.jsx(W,{sx:{...y.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),c.jsxs(k,{sx:y.design3.dateRow,children:[c.jsxs(W,{sx:y.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),c.jsxs(W,{sx:y.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),c.jsxs(k,{onClick:()=>d("design4"),sx:{...y.designCard.base,...l==="design4"?y.designCard.selected:y.designCard.unselected},children:[c.jsx(W,{sx:{...y.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),c.jsx(k,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:c.jsxs(k,{sx:{display:"inline-flex",alignItems:"baseline"},children:[c.jsx(W,{component:"span",sx:{...y.design4.rupeeSymbol},children:"₹"}),c.jsx(W,{component:"span",sx:{...y.design4.priceWhole},children:"899"}),c.jsx(W,{component:"span",sx:{...y.design4.priceDecimal},children:".70"})]})}),c.jsxs(k,{sx:{...y.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[c.jsxs(W,{sx:{...y.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",c.jsx(W,{component:"span",sx:y.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),c.jsxs(W,{sx:{...y.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",c.jsx(W,{component:"span",sx:y.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),c.jsx(W,{sx:{...y.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),c.jsxs(k,{sx:y.design4.dateRow,children:[c.jsxs(W,{sx:y.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),c.jsxs(W,{sx:y.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),c.jsxs(k,{onClick:()=>d("design5"),sx:{...y.designCard.base,...l==="design5"?y.designCard.selected:y.designCard.unselected},children:[c.jsxs(k,{sx:y.design5.topSection,children:[c.jsxs(k,{sx:y.design5.leftColumn,children:[c.jsxs(k,{sx:y.design5.rewardsLogo,children:[c.jsxs(k,{sx:y.design5.logoLine1,children:[c.jsx(W,{sx:y.design5.logoMy,children:"My"}),c.jsx(W,{sx:y.design5.logoSpencer,children:"spencers"})]}),c.jsxs(W,{sx:y.design5.logoRewards,children:["Rewa",c.jsx(W,{component:"span",sx:y.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),c.jsxs(W,{sx:{...y.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(W,{sx:{...y.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(W,{component:"span",sx:y.design5.rupeeSymbol,children:"₹"}),"99"]})]}),c.jsx(k,{sx:y.design5.verticalDivider}),c.jsxs(k,{sx:y.design5.rightColumn,children:[c.jsxs(W,{sx:{...y.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",c.jsx("br",{}),"MEMBER",c.jsx("br",{}),"PRICE"]}),c.jsxs(W,{sx:{...y.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[c.jsx(W,{component:"span",sx:y.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),c.jsxs(k,{sx:y.design5.middleSection,children:[c.jsx(W,{sx:{...y.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),c.jsxs(W,{sx:{...y.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",c.jsx(W,{component:"span",sx:y.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),c.jsx(k,{sx:y.design5.horizontalDivider}),c.jsx(k,{sx:y.design5.bottomSection,children:c.jsx(W,{sx:y.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),c.jsxs(k,{sx:y.sheetSizeSection,children:[c.jsx(W,{sx:y.sheetSizeHeader,children:"Sheet Size"}),c.jsxs(k,{sx:y.sheetSizeRow,children:[c.jsx(k,{sx:y.sheetSizeGroup,children:["A4","A7"].map(w=>c.jsx(k,{onClick:()=>{u(w),g(!1)},sx:{...y.sheetSizeBtn,...p===w?y.sheetSizeBtnSelected:{}},children:c.jsx(W,{sx:p===w?{...y.sheetSizeBtnText,...y.sheetSizeBtnTextSelected}:y.sheetSizeBtnText,children:w})},w))}),c.jsxs(k,{sx:y.copyPerItemRow,children:[c.jsx(W,{sx:y.copyPerItemLabel,children:"Enter Copy per item:"}),c.jsx(zi,{type:"number",value:h,onChange:w=>{const S=parseInt(w.target.value,10);!isNaN(S)&&S>0?x(S):w.target.value===""&&x(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),c.jsxs(dd,{sx:{...y.actions},children:[b&&c.jsx(W,{variant:"body2",sx:{color:"red",textAlign:"flex-start",mb:1},children:"Please Select a Sheet Size"}),c.jsx(k,{sx:y.printButtonWrapper,children:c.jsx(Ye,{type:"button",onClick:m,variant:"contained",sx:y.printButton,children:"Print"})})]})]})},iy=Ke(c.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");function Gd(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function RN({onClose:e,selectedProducts:t=[],open:n,stores:r=[],onCreateSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createCatalogLoading:d,createCatalogError:p}=Le(I=>I.dashboard),u=Array.isArray(t)?t.length:0,[h,x]=L.useState("Christmas Super Sale 2025"),[b]=L.useState(""),[g,f]=L.useState(["all"]),[m,y]=L.useState(!1),w=L.useMemo(()=>Gd(h),[h]),S=L.useMemo(()=>w?`/${w}`:"",[w]);L.useEffect(()=>{n&&s(p1())},[n,s]);const v=L.useMemo(()=>r.filter(I=>I.id!=="all"),[r]),C=g.includes("all")||g.length===0,P=L.useMemo(()=>C?v.map(I=>I.storeCode).filter(Boolean):g.filter(I=>I!=="all").map(I=>v.find(F=>F.id===I)?.storeCode).filter(Boolean),[C,g,v]),O=I=>{f(F=>{const E=F.filter(M=>M!=="all");if(E.includes(I)){const M=E.filter(B=>B!==I);return M.length===0?["all"]:M}const A=[...E,I];return A.length===v.length?["all"]:A})},D=()=>{const I=h?.trim();if(!I)return;const F=(t||[]).map((E,A)=>({productId:E.catalogProductId||E.productId||E.id,sorting:A+1})).filter(E=>E.productId);s(ks({name:I,slug:w||Gd(I),description:b?.trim()||"",storeCode:P,createdById:a,createdByName:l||"Admin",products:F})).unwrap().then(()=>{const E=w||Gd(I);typeof i=="function"&&i(E),e()}).catch(()=>{})},N=sn().createCatalog;return c.jsxs(lo,{open:n,onClose:e,maxWidth:!1,PaperProps:{sx:N.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(co,{sx:{p:0},children:c.jsxs(k,{sx:N.header,children:[c.jsxs(W,{sx:N.headerTitle,children:["Create Catalog of ",u," Items"]}),c.jsx(k,{component:"button",onClick:e,sx:N.clearIconCard,"aria-label":"Close",children:c.jsx(ry,{sx:{fontSize:16,color:"#454545"}})})]})}),c.jsxs(Ti,{sx:N.content,children:[c.jsxs(k,{sx:N.fieldBlock,children:[c.jsx(W,{sx:N.fieldLabel,children:"Catalog Name"}),c.jsx("input",{type:"text",value:h,onChange:I=>x(I.target.value),style:N.input})]}),c.jsxs(k,{sx:N.fieldBlock,children:[c.jsx(W,{sx:N.fieldLabel,children:"Catalog Link"}),c.jsxs("div",{style:{position:"relative",width:"100%"},children:[c.jsx("input",{type:"text",readOnly:!0,value:S,style:{...N.input,...N.inputReadOnly,paddingRight:36}}),S&&c.jsx(Um,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),c.jsxs(k,{sx:N.fieldBlock,children:[c.jsx(W,{sx:N.fieldLabel,children:"For These Stores"}),c.jsxs(k,{sx:{position:"relative",width:"100%"},children:[c.jsxs(k,{sx:N.storeDropdown,onClick:()=>y(I=>!I),children:[c.jsx(k,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:C?"All Stores":`${g.length} store(s) selected`}),c.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` ${v.length} stores`}),c.jsx(iy,{sx:{color:"#454545",ml:"auto"}})]}),m&&c.jsxs(k,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(k,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{f(["all"]),y(!1)},children:[c.jsx(Ot,{size:"small",checked:C,sx:{p:.5,mr:1}}),"All Stores"]}),v.map(I=>{const F=g.includes(I.id);return c.jsxs(k,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:F?700:400,color:F?"#222":"#444",background:F?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>O(I.id),children:[c.jsx(Ot,{size:"small",checked:F,sx:{p:.5,mr:1}}),I.name]},I.id)})]})]})]}),p&&c.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(k,{sx:{display:"flex",justifyContent:"flex-end"},children:c.jsx(Ye,{variant:"contained",color:"primary",disabled:d||!h?.trim()||u===0,onClick:D,sx:N.createButton,children:d?"Creating...":"Create"})})]})]})}function VN({onClose:e,open:t,stores:n=[],selectedProducts:r=[],onSuccess:i}){const s=$t(),{createdById:a,createdByName:l,createOsaRequestLoading:d,createOsaRequestError:p}=Le(v=>v.dashboard),[u,h]=L.useState(["all"]),[x,b]=L.useState(!1),g=L.useMemo(()=>n.filter(v=>v.id!=="all"&&v.storeCode!=="all"),[n]),f=u.includes("all")||u.length===0,m=L.useMemo(()=>f?g.map(v=>v.storeCode).filter(Boolean):u.filter(v=>v!=="all").map(v=>g.find(C=>C.id===v)?.storeCode).filter(Boolean),[f,u,g]),y=L.useMemo(()=>(r||[]).map(v=>({productId:v.catalogProductId||v.productId||v.id})).filter(v=>v.productId),[r]);L.useEffect(()=>{t&&s(f1())},[t,s]);const w=v=>{h(C=>{const P=C.filter(D=>D!=="all");if(P.includes(v)){const D=P.filter(N=>N!==v);return D.length===0?["all"]:D}const O=[...P,v];return O.length===g.length?["all"]:O})},S=()=>{m.length===0||y.length===0||s(Is({storeCodes:m,createdBy:a??null,createdByName:l||"",products:y})).unwrap().then(()=>{typeof i=="function"&&i(),e()}).catch(()=>{})};return c.jsxs(lo,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[c.jsx(co,{children:c.jsxs(k,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c.jsx(W,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),c.jsx(ut,{onClick:e,size:"small","aria-label":"Close",children:c.jsx(Hm,{})})]})}),c.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),c.jsxs(k,{sx:{position:"relative",mb:3},children:[c.jsxs(k,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>b(v=>!v),children:[c.jsx(k,{sx:{display:"flex",alignItems:"center",mr:1},children:c.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[c.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),c.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),c.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),c.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:f?"All Stores":`${u.length} store(s) selected`}),c.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${g.length} stores`}),c.jsx(iy,{sx:{color:"#888",ml:"auto"}})]}),x&&c.jsxs(k,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[c.jsxs(k,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:f?700:400,color:f?"#222":"#444",background:f?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{h(["all"]),b(!1)},children:[c.jsx(Ot,{size:"small",checked:f,sx:{p:.5,mr:1}}),"All Stores"]}),g.map(v=>{const C=u.includes(v.id);return c.jsxs(k,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>w(v.id),children:[c.jsx(Ot,{size:"small",checked:C,sx:{p:.5,mr:1}}),v.name]},v.id)})]})]}),p&&c.jsx(W,{color:"error",fontSize:14,sx:{mb:2},children:p}),c.jsx(k,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:c.jsx(Ye,{variant:"contained",color:"primary",disabled:!m.length||!y.length||d,onClick:S,sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:d?"Sending...":"Send Request"})})]})}const UN={category:"all",status:"all",search:"",store:[]},HN=()=>{const e=$t(),t=xt(),n=bt(),[r]=Sb(),i=r.get("categoryName"),a=sn().categoryDetail,[l,d]=L.useState(()=>({...UN,...n.state?.filters||{}})),[p,u]=L.useState([]),[h,x]=L.useState(null),[b,g]=L.useState(!1),[f,m]=L.useState(!1),[y,w]=L.useState(!1),{integrationData:S,companyId:v,loading:C}=Le(oe=>oe.dashboard),P=L.useRef(!1);L.useEffect(()=>{!v&&!P.current&&(P.current=!0,e(Lr()))},[e,v]);const O=L.useMemo(()=>S&&typeof S=="object"&&Object.keys(S).length>0?{matched:!0,error:"",apiResponse:S,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[S]),D=Le(oe=>oe.dashboard),{products:N=[],stores:I=[],pagination:F={}}=D||{},{currentPage:E=1,limit:A=10,totalCount:M=0,totalPages:B=1,hasNextPage:$=!1}=F,{sharedCatalogues:j=[],sharedCataloguesTotal:_=0}=Le(oe=>oe.productSettings??{}),R=L.useMemo(()=>Array.isArray(j)?j.filter(oe=>oe.status===!0).length:0,[j]),z=L.useMemo(()=>{if(!i||!Array.isArray(N))return[];const oe=i.trim().toLowerCase();return N.filter(pe=>{const he=(pe.categoryName||pe.category||"").toString().trim().toLowerCase();return he&&he===oe}).map(pe=>({...pe,catalogProductId:pe.productId||pe.id,id:pe.id||pe.sku||pe.productName}))},[N,i]),V=z.length>0,G=L.useMemo(()=>{if(!z||z.length===0)return;const oe=z.map(pe=>Number(pe.price??pe.sellingPrice??pe.mrp)).filter(pe=>Number.isFinite(pe)&&pe>=0);if(oe.length!==0)return{min:Math.min(...oe),max:Math.max(...oe)}},[z]),K=Array.isArray(N)&&N.length>0,ee=Array.isArray(l.store)?l.store:[],J=!(ee.length===1&&ee[0]!=="all"),ae=oe=>{oe.preventDefault(),t("/settings",{state:{tenantIntegrationData:O.apiResponse}})},se=I.length>0?I:[{id:"all",name:"All Stores",storeCode:"all"}],le=oe=>{d(oe)},q=L.useCallback((oe={})=>{const pe=Array.isArray(l.store)?l.store:[],he={page:E,limit:A,...oe};if(i&&i.trim()&&(he.categoryName=i.trim()),pe.length>0&&!pe.includes("all")){const we=pe.map(Ne=>I.find(Fe=>Fe.id===Ne)?.storeCode).filter(Boolean);we.length>0&&(he.storeCode=we.join(","))}return(l.status==="active"||l.status==="inactive")&&(he.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(he.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(he.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(he.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(he.search=String(l.search).trim()),he},[i,E,A,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,I]),ne=oe=>{e(_n(q({page:oe})))},U=oe=>{e(_n(q({page:1,limit:oe})))},de=L.useRef(null);L.useEffect(()=>{if(!v)return;const oe=Array.isArray(l.store)?l.store:[],pe={page:E,limit:A};if(i&&i.trim()&&(pe.categoryName=i.trim()),oe.length>0&&!oe.includes("all")){const we=oe.map(Ne=>I.find(Fe=>Fe.id===Ne)?.storeCode).filter(Boolean);we.length>0&&(pe.storeCode=we.join(","))}(l.status==="active"||l.status==="inactive")&&(pe.status=l.status==="active"),(l.stock==="inStock"||l.stock==="outOfStock")&&(pe.inStock=l.stock==="inStock"),typeof l.minPrice=="number"&&Number.isFinite(l.minPrice)&&(pe.minPrice=l.minPrice),typeof l.maxPrice=="number"&&Number.isFinite(l.maxPrice)&&(pe.maxPrice=l.maxPrice),l.search!=null&&String(l.search).trim()!==""&&(pe.search=String(l.search).trim());const he=JSON.stringify(pe);de.current!==he&&(de.current=he,e(_n(pe)))},[v,i,E,A,l.store,l.status,l.stock,l.minPrice,l.maxPrice,l.search,e,I]);const re=(oe,pe)=>{u(he=>{const we=he[pe]||[];let Ne;return we.some(_e=>_e.id===oe.id)?Ne=we.filter(_e=>_e.id!==oe.id):Ne=[...we,oe],{...he,[pe]:Ne}}),x(pe)};return L.useEffect(()=>{v&&(e(Ft(v)),e(jr()),i&&i.trim()&&e(Os({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e(_n({categoryName:i.trim(),page:1,limit:10})):e(_n({page:1,limit:10}))),e(tn({page:1})))},[e,v,i,n.state?.filters]),L.useEffect(()=>{if(!v||_<=0)return;(Array.isArray(j)?j.length:0)<_&&e(tn({page:1,limit:_}))},[v,_,j?.length,e,j]),c.jsxs(c.Fragment,{children:[c.jsx(Ja,{filters:l,onFilterChange:le,styles:a.topBar,stores:se,tenantStatus:O,hasProducts:K,priceRange:G,showBackButton:!0,backTo:"/"}),c.jsxs(k,{sx:a.contentWrapper??{marginTop:"72px",position:"relative",zIndex:0},children:[C||!v?c.jsx(k,{sx:a.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):i?V?c.jsx(k,{sx:a.root,children:c.jsxs(Or,{maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[c.jsx(Km,{productState:D,categoryName:i,categoryProductCount:z.length,activeCatalogsCount:R,onManageClick:()=>t("/catalogs/manage-shared")}),c.jsx(NN,{data:z,styles:a,selectedProducts:p[i]||[],onSelectProduct:re,categoryName:i,showLimitedColumns:J,pagination:{currentPage:E,limit:A,totalCount:M,totalPages:B,hasNextPage:$},onPageChange:ne,onLimitChange:U})]})}):c.jsx(Wi,{handleStartSyncing:ae,loading:!1,categoryName:i,hideSubtitleAndAction:!0}):c.jsx(Wi,{handleStartSyncing:ae,loading:!1}),c.jsx(Jm,{onPromoPrint:()=>g(!0),onCreateCatalog:()=>m(!0),onOsaRequest:()=>w(!0),selectedProducts:p[i]||[],selectedCategory:h}),c.jsx(WN,{open:b,onClose:()=>g(!1),selectedProducts:p[i]||[]},b?"open":"closed"),c.jsx(RN,{open:f,onClose:()=>m(!1),stores:se,selectedProducts:p[i]||[],onCreateSuccess:oe=>{u(pe=>({...pe,[i]:[]})),m(!1),oe&&t("/",{state:{catalogCreated:!0,catalogSlug:oe}})}}),c.jsx(VN,{open:y,onClose:()=>w(!1),stores:se,selectedProducts:p[i]||[],onSuccess:()=>u(oe=>({...oe,[i]:[]}))})]})]})};function qN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsxs(Zy,{children:[c.jsx(Hn,{path:"/",element:c.jsx(EI,{})}),c.jsx(Hn,{path:"/home",element:c.jsx(sI,{})}),c.jsx(Hn,{path:"/products",element:c.jsx(oI,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),c.jsx(Hn,{path:"/product-setting",element:c.jsx(UI,{})}),c.jsx(Hn,{path:"/products/settings/ftp-sync",element:c.jsx(dN,{})}),c.jsx(Hn,{path:"/catalogs/manage-shared",element:c.jsx(kN,{})}),c.jsx(Hn,{path:"/category",element:c.jsx(HN,{})})]})}function YN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return c.jsx(qN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const GN=()=>c.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:c.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>c.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:c.jsx(T1,{apiUrl:e,authToken:t,children:c.jsx(Hb,{store:uf,children:c.jsx(Jb.PersistGate,{loading:c.jsx(GN,{}),persistor:C1,children:c.jsx(hb,{basename:n,children:c.jsx(YN,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1582
+ `},VN=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const l=i>0?i:1,c=[];e.forEach(h=>{for(let y=0;y<l;y++)c.push(h)});const d={A4:jN,A7:WN},p=(d[n]||d.A4)({selectedProducts:c,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(p),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},cl=a.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #454545",background:"#FFFFFF"}}),dl=a.jsx("span",{style:{display:"inline-block",width:16,height:16,borderRadius:4,border:"0.5px solid #2563EB",background:"#FFFFFF",position:"relative"},children:a.jsx("svg",{width:"10",height:"10",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:a.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),UN=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},HN=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=an(),i=j.useMemo(()=>UN(),[]),[s,l]=j.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[c,d]=j.useState("design1"),[u,p]=j.useState(""),[h,y]=j.useState(1),[b,g]=j.useState(!1),f=w=>l(S=>({...S,[w]:!S[w]})),m=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!u){g(!0);return}g(!1);const w=h>0?h:1;VN({selectedProducts:n,selectedDesign:c,sheetSize:u,itemsToShow:s,copyPerItem:w}),t()},x=r.promoPrintModal;return a.jsxs(uo,{open:e,onClose:t,maxWidth:!1,PaperProps:{sx:x.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[a.jsx(fo,{sx:{p:0},children:a.jsxs(P,{sx:x.header,children:[a.jsx(D,{sx:x.headerTitle,children:"Promo Print"}),a.jsx(P,{component:"button",onClick:t,sx:x.crossIconCard,"aria-label":"Close",children:a.jsx(cy,{sx:{fontSize:16,color:"#454545"}})})]})}),a.jsx(Oi,{sx:x.content,children:a.jsxs(P,{sx:x.middleCard,children:[a.jsxs(P,{sx:x.itemsToShowSection,children:[a.jsx(D,{sx:x.sectionTitle,children:"Items to show"}),a.jsxs(P,{sx:x.checkboxRow,children:[a.jsx(En,{control:a.jsx(ht,{checked:s.productName,onChange:()=>f("productName"),size:"small",sx:x.checkboxSx,icon:cl,checkedIcon:dl}),label:"Product Name",sx:x.checkboxLabel}),a.jsx(En,{control:a.jsx(ht,{checked:s.percentOff,onChange:()=>f("percentOff"),size:"small",sx:x.checkboxSx,icon:cl,checkedIcon:dl}),label:"Percent OFF",sx:x.checkboxLabel}),a.jsx(En,{control:a.jsx(ht,{checked:s.mrp,onChange:()=>f("mrp"),size:"small",sx:x.checkboxSx,icon:cl,checkedIcon:dl}),label:"MRP",sx:x.checkboxLabel}),a.jsx(En,{control:a.jsx(ht,{checked:s.discountPrice,onChange:()=>f("discountPrice"),size:"small",sx:x.checkboxSx,icon:cl,checkedIcon:dl}),label:"Discount Price",sx:x.checkboxLabel})]})]}),a.jsxs(P,{sx:x.designSection,children:[a.jsx(D,{sx:x.sectionTitle,children:"Promo Design"}),a.jsxs(P,{sx:x.designContainer,children:[a.jsxs(P,{onClick:()=>d("design1"),sx:{...x.designCard.base,...c==="design1"?x.designCard.selected:x.designCard.unselected},children:[a.jsx(D,{sx:{...x.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),a.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:a.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[a.jsx(D,{component:"span",sx:{...x.design1.rupeeSymbol},children:"₹"}),a.jsx(D,{component:"span",sx:{...x.design1.bigPrice},children:"1387"})]})}),a.jsxs(P,{sx:{...x.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[a.jsxs(D,{sx:{...x.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",a.jsx(D,{component:"span",sx:x.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),a.jsxs(D,{sx:{...x.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",a.jsx(D,{component:"span",sx:x.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),a.jsx(D,{sx:{...x.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),a.jsxs(P,{sx:x.design1.dateRow,children:[a.jsxs(D,{sx:x.design1.validFromText,children:["VALID TO: ",i.validTo]}),a.jsxs(D,{sx:x.design1.validToText,children:["PPD: ",i.ppd]})]})]}),a.jsxs(P,{onClick:()=>d("design2"),sx:{...x.designCard.base,...c==="design2"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(P,{sx:x.design2.mainOfferBlock,children:[a.jsx(D,{sx:{...x.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),a.jsx(D,{sx:{...x.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),a.jsxs(D,{sx:{...x.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",a.jsx(D,{component:"span",sx:x.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),a.jsx(D,{sx:{...x.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),a.jsxs(P,{sx:x.design2.dateRow,children:[a.jsxs(D,{sx:x.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),a.jsxs(D,{sx:x.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),a.jsxs(P,{onClick:()=>d("design3"),sx:{...x.designCard.base,...c==="design3"?x.designCard.selected:x.designCard.unselected},children:[a.jsx(D,{sx:{...x.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),a.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:a.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[a.jsx(D,{component:"span",sx:{...x.design3.rupeeSymbol},children:"₹"}),a.jsx(D,{component:"span",sx:{...x.design3.bigPrice},children:"29"})]})}),a.jsx(D,{sx:{...x.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),a.jsxs(P,{sx:x.design3.dateRow,children:[a.jsxs(D,{sx:x.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),a.jsxs(D,{sx:x.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),a.jsxs(P,{onClick:()=>d("design4"),sx:{...x.designCard.base,...c==="design4"?x.designCard.selected:x.designCard.unselected},children:[a.jsx(D,{sx:{...x.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),a.jsx(P,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:a.jsxs(P,{sx:{display:"inline-flex",alignItems:"baseline"},children:[a.jsx(D,{component:"span",sx:{...x.design4.rupeeSymbol},children:"₹"}),a.jsx(D,{component:"span",sx:{...x.design4.priceWhole},children:"899"}),a.jsx(D,{component:"span",sx:{...x.design4.priceDecimal},children:".70"})]})}),a.jsxs(P,{sx:{...x.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[a.jsxs(D,{sx:{...x.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",a.jsx(D,{component:"span",sx:x.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),a.jsxs(D,{sx:{...x.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",a.jsx(D,{component:"span",sx:x.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),a.jsx(D,{sx:{...x.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),a.jsxs(P,{sx:x.design4.dateRow,children:[a.jsxs(D,{sx:x.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),a.jsxs(D,{sx:x.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),a.jsxs(P,{onClick:()=>d("design5"),sx:{...x.designCard.base,...c==="design5"?x.designCard.selected:x.designCard.unselected},children:[a.jsxs(P,{sx:x.design5.topSection,children:[a.jsxs(P,{sx:x.design5.leftColumn,children:[a.jsxs(P,{sx:x.design5.rewardsLogo,children:[a.jsxs(P,{sx:x.design5.logoLine1,children:[a.jsx(D,{sx:x.design5.logoMy,children:"My"}),a.jsx(D,{sx:x.design5.logoSpencer,children:"spencers"})]}),a.jsxs(D,{sx:x.design5.logoRewards,children:["Rewa",a.jsx(D,{component:"span",sx:x.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),a.jsxs(D,{sx:{...x.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",a.jsx("br",{}),"PRICE"]}),a.jsxs(D,{sx:{...x.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[a.jsx(D,{component:"span",sx:x.design5.rupeeSymbol,children:"₹"}),"99"]})]}),a.jsx(P,{sx:x.design5.verticalDivider}),a.jsxs(P,{sx:x.design5.rightColumn,children:[a.jsxs(D,{sx:{...x.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",a.jsx("br",{}),"MEMBER",a.jsx("br",{}),"PRICE"]}),a.jsxs(D,{sx:{...x.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[a.jsx(D,{component:"span",sx:x.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),a.jsxs(P,{sx:x.design5.middleSection,children:[a.jsx(D,{sx:{...x.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),a.jsxs(D,{sx:{...x.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",a.jsx(D,{component:"span",sx:x.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),a.jsx(P,{sx:x.design5.horizontalDivider}),a.jsx(P,{sx:x.design5.bottomSection,children:a.jsx(D,{sx:x.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),a.jsxs(P,{sx:x.sheetSizeSection,children:[a.jsx(D,{sx:x.sheetSizeHeader,children:"Sheet Size"}),a.jsxs(P,{sx:x.sheetSizeRow,children:[a.jsx(P,{sx:x.sheetSizeGroup,children:["A4","A7"].map(w=>a.jsx(P,{onClick:()=>{p(w),g(!1)},sx:{...x.sheetSizeBtn,...u===w?x.sheetSizeBtnSelected:{}},children:a.jsx(D,{sx:u===w?{...x.sheetSizeBtnText,...x.sheetSizeBtnTextSelected}:x.sheetSizeBtnText,children:w})},w))}),a.jsxs(P,{sx:x.copyPerItemRow,children:[a.jsx(D,{sx:x.copyPerItemLabel,children:"Enter Copy per item:"}),a.jsx(Wi,{type:"number",value:h,onChange:w=>{const S=parseInt(w.target.value,10);!isNaN(S)&&S>0?y(S):w.target.value===""&&y(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:28,width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px",fontSize:"12px"}},size:"small"})]})]})]})]})}),a.jsxs(bd,{sx:{...x.actions},children:[b&&a.jsx(D,{variant:"body2",sx:{color:"red",textAlign:"flex-start",mb:1},children:"Please Select a Sheet Size"}),a.jsx(P,{sx:x.printButtonWrapper,children:a.jsx(Re,{type:"button",onClick:m,variant:"contained",sx:x.printButton,children:"Print"})})]})]})};function ep(e){return!e||typeof e!="string"?"":e.trim().toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}function RN({onClose:e,selectedProducts:t=[],open:n,stores:r=[],onCreateSuccess:i}){const s=zt(),{createdById:l,createdByName:c,createCatalogLoading:d,createCatalogError:u}=je($=>$.dashboard),p=Array.isArray(t)?t.length:0,[h,y]=j.useState("Christmas Super Sale 2025"),[b]=j.useState(""),[g,f]=j.useState(["all"]),[m,x]=j.useState(!1),w=j.useMemo(()=>ep(h),[h]),S=j.useMemo(()=>w?`/${w}`:"",[w]);j.useEffect(()=>{n&&s(y1())},[n,s]);const v=j.useMemo(()=>r.filter($=>$.id!=="all"),[r]),C=g.includes("all")||g.length===0,k=j.useMemo(()=>C?v.map($=>$.storeCode).filter(Boolean):g.filter($=>$!=="all").map($=>v.find(I=>I.id===$)?.storeCode).filter(Boolean),[C,g,v]),A=$=>{f(I=>{const E=I.filter(_=>_!=="all");if(E.includes($)){const _=E.filter(W=>W!==$);return _.length===0?["all"]:_}const N=[...E,$];return N.length===v.length?["all"]:N})},z=()=>{const $=h?.trim();if(!$)return;const I=(t||[]).map((E,N)=>({productId:E.catalogProductId||E.productId||E.id,sorting:N+1})).filter(E=>E.productId);s(Ms({name:$,slug:w||ep($),description:b?.trim()||"",storeCode:k,createdById:l,createdByName:c||"Admin",products:I})).unwrap().then(()=>{const E=w||ep($);typeof i=="function"&&i(E),e()}).catch(()=>{})},M=an().createCatalog;return a.jsxs(uo,{open:n,onClose:e,maxWidth:!1,PaperProps:{sx:M.dialog},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[a.jsx(fo,{sx:{p:0},children:a.jsxs(P,{sx:M.header,children:[a.jsxs(D,{sx:M.headerTitle,children:["Create Catalog of ",p," Items"]}),a.jsx(P,{component:"button",onClick:e,sx:M.clearIconCard,"aria-label":"Close",children:a.jsx(cy,{sx:{fontSize:16,color:"#454545"}})})]})}),a.jsxs(Oi,{sx:M.content,children:[a.jsxs(P,{sx:M.fieldBlock,children:[a.jsx(D,{sx:M.fieldLabel,children:"Catalog Name"}),a.jsx("input",{type:"text",value:h,onChange:$=>y($.target.value),style:M.input})]}),a.jsxs(P,{sx:M.fieldBlock,children:[a.jsx(D,{sx:M.fieldLabel,children:"Catalog Link"}),a.jsxs("div",{style:{position:"relative",width:"100%"},children:[a.jsx("input",{type:"text",readOnly:!0,value:S,style:{...M.input,...M.inputReadOnly,paddingRight:36}}),S&&a.jsx(Gm,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]})]}),a.jsxs(P,{sx:M.fieldBlock,children:[a.jsx(D,{sx:M.fieldLabel,children:"For These Stores"}),a.jsxs(P,{sx:{position:"relative",width:"100%"},children:[a.jsxs(P,{sx:M.storeDropdown,onClick:()=>x($=>!$),children:[a.jsx(P,{sx:{display:"flex",alignItems:"center",mr:1},children:a.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),a.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),a.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),a.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:C?"All Stores":`${g.length} store(s) selected`}),a.jsx("span",{style:{color:"#454545",fontWeight:400,fontSize:12,marginLeft:4},children:` ${v.length} stores`}),a.jsx(ry,{sx:{color:"#454545",ml:"auto"}})]}),m&&a.jsxs(P,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #F1F1F1",borderRadius:"6px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:[a.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:C?700:400,color:C?"#222":"#444",background:C?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{f(["all"]),x(!1)},children:[a.jsx(ht,{size:"small",checked:C,sx:{p:.5,mr:1}}),"All Stores"]}),v.map($=>{const I=g.includes($.id);return a.jsxs(P,{sx:{px:2,py:1.2,cursor:"pointer",display:"flex",alignItems:"center",fontWeight:I?700:400,color:I?"#222":"#444",background:I?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>A($.id),children:[a.jsx(ht,{size:"small",checked:I,sx:{p:.5,mr:1}}),$.name]},$.id)})]})]})]}),u&&a.jsx(D,{color:"error",fontSize:14,sx:{mb:2},children:u}),a.jsx(P,{sx:{display:"flex",justifyContent:"flex-end"},children:a.jsx(Re,{variant:"contained",color:"primary",disabled:d||!h?.trim()||p===0,onClick:z,sx:M.createButton,children:d?"Creating...":"Create"})})]})]})}const qN={category:"all",status:"all",search:"",store:[]},YN=()=>{const e=zt(),t=St(),n=vt(),[r]=kb(),i=r.get("categoryName"),l=an().categoryDetail,[c,d]=j.useState(()=>({...qN,...n.state?.filters||{}})),[u,p]=j.useState([]),[h,y]=j.useState(null),[b,g]=j.useState(!1),[f,m]=j.useState(!1),[x,w]=j.useState(!1),{integrationData:S,companyId:v,loading:C}=je(ae=>ae.dashboard),k=j.useRef(!1);j.useEffect(()=>{!v&&!k.current&&(k.current=!0,e(Wr()))},[e,v]);const A=j.useMemo(()=>S&&typeof S=="object"&&Object.keys(S).length>0?{matched:!0,error:"",apiResponse:S,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[S]),z=je(ae=>ae.dashboard),{products:M=[],stores:$=[],pagination:I={}}=z||{},{currentPage:E=1,limit:N=10,totalCount:_=0,totalPages:W=1,hasNextPage:F=!1}=I,{sharedCatalogues:B=[],sharedCataloguesTotal:O=0,lastStableActiveCatalogsCount:V=null}=je(ae=>ae.productSettings??{}),L=j.useMemo(()=>Array.isArray(B)?B.filter(ae=>ae.status===!0).length:0,[B]),q=O>0&&B.length>=O?L:V??L,G=j.useMemo(()=>{if(!i||!Array.isArray(M))return[];const ae=i.trim().toLowerCase();return M.filter(te=>{const Ce=(te.categoryName||te.category||"").toString().trim().toLowerCase();return Ce&&Ce===ae}).map(te=>({...te,catalogProductId:te.productId||te.id,id:te.id||te.sku||te.productName}))},[M,i]),J=G.length>0,K=j.useMemo(()=>{if(!G||G.length===0)return;const ae=G.map(te=>Number(te.price??te.sellingPrice??te.mrp)).filter(te=>Number.isFinite(te)&&te>=0);if(ae.length!==0)return{min:Math.min(...ae),max:Math.max(...ae)}},[G]),Q=Array.isArray(M)&&M.length>0,se=Array.isArray(c.store)?c.store:[],de=!(se.length===1&&se[0]!=="all"),ee=ae=>{ae.preventDefault(),t("/settings",{state:{tenantIntegrationData:A.apiResponse}})},pe=$.length>0?$:[{id:"all",name:"All Stores",storeCode:"all"}],H=ae=>{d(ae)},ne=j.useCallback((ae={})=>{const te=Array.isArray(c.store)?c.store:[],Ce={page:E,limit:N,...ae};if(i&&i.trim()&&(Ce.categoryName=i.trim()),te.length>0&&!te.includes("all")){const Oe=te.map(ie=>$.find(Ae=>Ae.id===ie)?.storeCode).filter(Boolean);Oe.length>0&&(Ce.storeCode=Oe.join(","))}return(c.status==="active"||c.status==="inactive")&&(Ce.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(Ce.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(Ce.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(Ce.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(Ce.search=String(c.search).trim()),Ce},[i,E,N,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,$]),oe=ae=>{e($n(ne({page:ae})))},ge=ae=>{e($n(ne({page:1,limit:ae})))},me=j.useRef(null);j.useEffect(()=>{if(!v)return;const ae=Array.isArray(c.store)?c.store:[],te={page:E,limit:N};if(i&&i.trim()&&(te.categoryName=i.trim()),ae.length>0&&!ae.includes("all")){const Oe=ae.map(ie=>$.find(Ae=>Ae.id===ie)?.storeCode).filter(Boolean);Oe.length>0&&(te.storeCode=Oe.join(","))}(c.status==="active"||c.status==="inactive")&&(te.status=c.status==="active"),(c.stock==="inStock"||c.stock==="outOfStock")&&(te.inStock=c.stock==="inStock"),typeof c.minPrice=="number"&&Number.isFinite(c.minPrice)&&(te.minPrice=c.minPrice),typeof c.maxPrice=="number"&&Number.isFinite(c.maxPrice)&&(te.maxPrice=c.maxPrice),c.search!=null&&String(c.search).trim()!==""&&(te.search=String(c.search).trim());const Ce=JSON.stringify(te);me.current!==Ce&&(me.current=Ce,e($n(te)))},[v,i,E,N,c.store,c.status,c.stock,c.minPrice,c.maxPrice,c.search,e,$]);const ke=(ae,te)=>{p(Ce=>{const Oe=Ce[te]||[];let ie;return Oe.some(ze=>ze.id===ae.id)?ie=Oe.filter(ze=>ze.id!==ae.id):ie=[...Oe,ae],{...Ce,[te]:ie}}),y(te)};return j.useEffect(()=>{v&&(e(Mt(v)),e(Vr()),i&&i.trim()&&e(Fs({categoryName:i.trim()})),n.state?.filters||(i&&i.trim()?e($n({categoryName:i.trim(),page:1,limit:10})):e($n({page:1,limit:10}))),e(nn({page:1})))},[e,v,i,n.state?.filters]),j.useEffect(()=>{if(!v||O<=0)return;(Array.isArray(B)?B.length:0)<O&&e(nn({page:1,limit:O}))},[v,O,B?.length,e,B]),a.jsxs(a.Fragment,{children:[a.jsx(nl,{filters:c,onFilterChange:H,styles:l.topBar,stores:pe,tenantStatus:A,hasProducts:Q,priceRange:K,showBackButton:!0,backTo:"/"}),a.jsxs(P,{sx:l.contentWrapper??{marginTop:"72px",position:"relative",zIndex:0},children:[C||!v?a.jsx(P,{sx:l.loadingBox??{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):i?J?a.jsx(P,{sx:l.root,children:a.jsxs(Ar,{maxWidth:"lg",sx:{width:"100%",px:{xs:1,sm:2,md:4},display:"flex",flexDirection:"column",alignItems:"stretch"},children:[a.jsx(Zm,{productState:z,categoryName:i,categoryProductCount:G.length,activeCatalogsCount:q,onManageClick:()=>t("/catalogs/manage-shared"),matchHomePageLayout:!0}),a.jsx(DN,{data:G,styles:l,selectedProducts:u[i]||[],onSelectProduct:ke,categoryName:i,showLimitedColumns:de,pagination:{currentPage:E,limit:N,totalCount:_,totalPages:W,hasNextPage:F},onPageChange:oe,onLimitChange:ge})]})}):a.jsx(qi,{handleStartSyncing:ee,loading:!1,categoryName:i,hideSubtitleAndAction:!0}):a.jsx(qi,{handleStartSyncing:ee,loading:!1}),a.jsx(ny,{onPromoPrint:()=>g(!0),onCreateCatalog:()=>m(!0),onOsaRequest:()=>w(!0),selectedProducts:u[i]||[],selectedCategory:h}),a.jsx(HN,{open:b,onClose:()=>g(!1),selectedProducts:u[i]||[]},b?"open":"closed"),a.jsx(RN,{open:f,onClose:()=>m(!1),stores:pe,selectedProducts:u[i]||[],onCreateSuccess:ae=>{p(te=>({...te,[i]:[]})),m(!1),ae&&t("/",{state:{catalogCreated:!0,catalogSlug:ae}})}}),a.jsx(oy,{open:x,onClose:()=>w(!1),stores:pe,selectedProducts:u[i]||[],selectedCategories:i?[i]:[],onSuccess:()=>p(ae=>({...ae,[i]:[]}))})]})]})};function GN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return a.jsxs(ob,{children:[a.jsx(Yn,{path:"/",element:a.jsx(OI,{})}),a.jsx(Yn,{path:"/home",element:a.jsx(pI,{})}),a.jsx(Yn,{path:"/products",element:a.jsx(cI,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),a.jsx(Yn,{path:"/product-setting",element:a.jsx(GI,{})}),a.jsx(Yn,{path:"/products/settings/ftp-sync",element:a.jsx(hN,{})}),a.jsx(Yn,{path:"/catalogs/manage-shared",element:a.jsx(FN,{})}),a.jsx(Yn,{path:"/category",element:a.jsx(YN,{})})]})}function KN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return a.jsx(GN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const XN=()=>a.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:a.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>a.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:a.jsx(I1,{apiUrl:e,authToken:t,children:a.jsx(Xb,{store:yf,children:a.jsx(n0.PersistGate,{loading:a.jsx(XN,{}),persistor:O1,children:a.jsx(xb,{basename:n,children:a.jsx(KN,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
1583
1583
  //# sourceMappingURL=product-app.umd.js.map