@attabot/product-app 1.0.2 → 1.0.4

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(h,z){typeof exports=="object"&&typeof module<"u"?module.exports=z(require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["react/jsx-runtime","react","react-dom"],z):(h=typeof globalThis<"u"?globalThis:h||self,h.ProductApp=z(h["react/jsx-runtime"],h.React,h.ReactDOM))})(this,(function(h,z,Ir){"use strict";var wi=typeof document<"u"?document.currentScript:null;function Xa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const C=Xa(z),ip=Xa(Ir);function Ar(){return Ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ar.apply(this,arguments)}var Rt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rt||(Rt={}));const Ja="popstate";function sp(e){e===void 0&&(e={});function t(n,o){let{pathname:i,search:s,hash:l}=n.location;return Si("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:$r(o)}return lp(t,r,null,e)}function le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ap(){return Math.random().toString(36).substr(2,8)}function Qa(e,t){return{usr:e.state,key:e.key,idx:t}}function Si(e,t,r,n){return r===void 0&&(r=null),Ar({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?sr(t):t,{state:r,key:t&&t.key||n||ap()})}function $r(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function sr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function lp(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,s=o.history,l=Rt.Pop,c=null,u=d();u==null&&(u=0,s.replaceState(Ar({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){l=Rt.Pop;let m=d(),S=m==null?null:m-u;u=m,c&&c({action:l,location:f.location,delta:S})}function b(m,S){l=Rt.Push;let O=Si(f.location,m,S);u=d()+1;let w=Qa(O,u),v=f.createHref(O);try{s.pushState(w,"",v)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;o.location.assign(v)}i&&c&&c({action:l,location:f.location,delta:1})}function y(m,S){l=Rt.Replace;let O=Si(f.location,m,S);u=d();let w=Qa(O,u),v=f.createHref(O);s.replaceState(w,"",v),i&&c&&c({action:l,location:f.location,delta:0})}function g(m){let S=o.location.origin!=="null"?o.location.origin:o.location.href,O=typeof m=="string"?m:$r(m);return O=O.replace(/ $/,"%20"),le(S,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,S)}let f={get action(){return l},get location(){return e(o,s)},listen(m){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Ja,p),c=m,()=>{o.removeEventListener(Ja,p),c=null}},createHref(m){return t(o,m)},createURL:g,encodeLocation(m){let S=g(m);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:b,replace:y,go(m){return s.go(m)}};return f}var Za;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Za||(Za={}));function cp(e,t,r){return r===void 0&&(r="/"),up(e,t,r)}function up(e,t,r,n){let o=typeof t=="string"?sr(t):t,i=Dt(o.pathname||"/",r);if(i==null)return null;let s=el(e);dp(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=Sp(i);l=xp(s[c],u)}return l}function el(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(i,s,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(le(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=xt([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(le(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),el(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:bp(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let c of tl(i.path))o(i,s,c)}),t}function tl(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let s=tl(n.join("/")),l=[];return l.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function dp(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:vp(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const fp=/^:[\w-]+$/,pp=3,hp=2,gp=1,mp=10,yp=-2,rl=e=>e==="*";function bp(e,t){let r=e.split("/"),n=r.length;return r.some(rl)&&(n+=yp),t&&(n+=hp),r.filter(o=>!rl(o)).reduce((o,i)=>o+(fp.test(i)?pp:i===""?gp:mp),n)}function vp(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function xp(e,t,r){let{routesMeta:n}=e,o={},i="/",s=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=Ei({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),b=c.route;if(!p)return null;Object.assign(o,p.params),s.push({params:o,pathname:xt([i,p.pathname]),pathnameBase:Pp(xt([i,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(i=xt([i,p.pathnameBase]))}return s}function Ei(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=wp(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:n.reduce((u,d,p)=>{let{paramName:b,isOptional:y}=d;if(b==="*"){let f=l[p]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[p];return y&&!g?u[b]=void 0:u[b]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function wp(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),nt(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Sp(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nt(!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 Dt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const Ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Cp=e=>Ep.test(e);function Op(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?sr(e):e,i;if(r)if(Cp(r))i=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),nt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+r))}r.startsWith("/")?i=nl(r.substring(1),"/"):i=nl(r,t)}else i=t;return{pathname:i,search:kp(n),hash:Np(o)}}function nl(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Ci(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Tp(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ol(e,t){let r=Tp(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function il(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=sr(e):(o=Ar({},e),le(!o.pathname||!o.pathname.includes("?"),Ci("?","pathname","search",o)),le(!o.pathname||!o.pathname.includes("#"),Ci("#","pathname","hash",o)),le(!o.search||!o.search.includes("#"),Ci("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=r;else{let p=t.length-1;if(!n&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;o.pathname=b.join("/")}l=p>=0?t[p]:"/"}let c=Op(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const xt=e=>e.join("/").replace(/\/\/+/g,"/"),Pp=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),kp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Np=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function _p(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const sl=["post","put","patch","delete"];new Set(sl);const Ip=["get",...sl];new Set(Ip);function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}const Dr=C.createContext(null);process.env.NODE_ENV!=="production"&&(Dr.displayName="DataRouter");const Oi=C.createContext(null);process.env.NODE_ENV!=="production"&&(Oi.displayName="DataRouterState");const Ap=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ap.displayName="Await");const ot=C.createContext(null);process.env.NODE_ENV!=="production"&&(ot.displayName="Navigation");const Mr=C.createContext(null);process.env.NODE_ENV!=="production"&&(Mr.displayName="Location");const dt=C.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(dt.displayName="Route");const Ti=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ti.displayName="RouteError");function $p(e,t){let{relative:r}=t===void 0?{}:t;jr()||(process.env.NODE_ENV!=="production"?le(!1,"useHref() may be used only in the context of a <Router> component."):le(!1));let{basename:n,navigator:o}=C.useContext(ot),{hash:i,pathname:s,search:l}=zr(e,{relative:r}),c=s;return n!=="/"&&(c=s==="/"?n:xt([n,s])),o.createHref({pathname:c,search:l,hash:i})}function jr(){return C.useContext(Mr)!=null}function ar(){return jr()||(process.env.NODE_ENV!=="production"?le(!1,"useLocation() may be used only in the context of a <Router> component."):le(!1)),C.useContext(Mr).location}const al="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ll(e){C.useContext(ot).static||C.useLayoutEffect(e)}function Pi(){let{isDataRoute:e}=C.useContext(dt);return e?Kp():Rp()}function Rp(){jr()||(process.env.NODE_ENV!=="production"?le(!1,"useNavigate() may be used only in the context of a <Router> component."):le(!1));let e=C.useContext(Dr),{basename:t,future:r,navigator:n}=C.useContext(ot),{matches:o}=C.useContext(dt),{pathname:i}=ar(),s=JSON.stringify(ol(o,r.v7_relativeSplatPath)),l=C.useRef(!1);return ll(()=>{l.current=!0}),C.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&nt(l.current,al),!l.current)return;if(typeof u=="number"){n.go(u);return}let p=il(u,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:xt([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,i,e])}function Dp(){let{matches:e}=C.useContext(dt),t=e[e.length-1];return t?t.params:{}}function zr(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=C.useContext(ot),{matches:o}=C.useContext(dt),{pathname:i}=ar(),s=JSON.stringify(ol(o,n.v7_relativeSplatPath));return C.useMemo(()=>il(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}function Mp(e,t){return jp(e,t)}function jp(e,t,r,n){jr()||(process.env.NODE_ENV!=="production"?le(!1,"useRoutes() may be used only in the context of a <Router> component."):le(!1));let{navigator:o}=C.useContext(ot),{matches:i}=C.useContext(dt),s=i[i.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;if(process.env.NODE_ENV!=="production"){let O=d&&d.path||"";dl(c,!d||O.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+c+'" (under <Route path="'+O+'">) 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(dt,h){typeof exports=="object"&&typeof module<"u"?h(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],h):(dt=typeof globalThis<"u"?globalThis:dt||self,h(dt.ProductApp={},dt["react/jsx-runtime"],dt.React,dt.ReactDOM))})(this,(function(dt,h,z,Ar){"use strict";var Si=typeof document<"u"?document.currentScript:null;function Ja(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const C=Ja(z),lp=Ja(Ar);function $r(){return $r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$r.apply(this,arguments)}var Dt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dt||(Dt={}));const Qa="popstate";function cp(e){e===void 0&&(e={});function t(n,o){let{pathname:i,search:s,hash:l}=n.location;return Ei("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:Rr(o)}return dp(t,r,null,e)}function le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function nt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function up(){return Math.random().toString(36).substr(2,8)}function Za(e,t){return{usr:e.state,key:e.key,idx:t}}function Ei(e,t,r,n){return r===void 0&&(r=null),$r({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ar(t):t,{state:r,key:t&&t.key||n||up()})}function Rr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ar(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function dp(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,s=o.history,l=Dt.Pop,c=null,u=d();u==null&&(u=0,s.replaceState($r({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function p(){l=Dt.Pop;let m=d(),E=m==null?null:m-u;u=m,c&&c({action:l,location:f.location,delta:E})}function b(m,E){l=Dt.Push;let O=Ei(f.location,m,E);u=d()+1;let S=Za(O,u),x=f.createHref(O);try{s.pushState(S,"",x)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;o.location.assign(x)}i&&c&&c({action:l,location:f.location,delta:1})}function y(m,E){l=Dt.Replace;let O=Ei(f.location,m,E);u=d();let S=Za(O,u),x=f.createHref(O);s.replaceState(S,"",x),i&&c&&c({action:l,location:f.location,delta:0})}function g(m){let E=o.location.origin!=="null"?o.location.origin:o.location.href,O=typeof m=="string"?m:Rr(m);return O=O.replace(/ $/,"%20"),le(E,"No window.location.(origin|href) available to create URL for href: "+O),new URL(O,E)}let f={get action(){return l},get location(){return e(o,s)},listen(m){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Qa,p),c=m,()=>{o.removeEventListener(Qa,p),c=null}},createHref(m){return t(o,m)},createURL:g,encodeLocation(m){let E=g(m);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:b,replace:y,go(m){return s.go(m)}};return f}var el;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(el||(el={}));function fp(e,t,r){return r===void 0&&(r="/"),pp(e,t,r)}function pp(e,t,r,n){let o=typeof t=="string"?ar(t):t,i=Mt(o.pathname||"/",r);if(i==null)return null;let s=tl(e);hp(s);let l=null;for(let c=0;l==null&&c<s.length;++c){let u=Op(i);l=Ep(s[c],u)}return l}function tl(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(i,s,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};c.relativePath.startsWith("/")&&(le(c.relativePath.startsWith(n),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(n.length));let u=wt([n,c.relativePath]),d=r.concat(c);i.children&&i.children.length>0&&(le(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),tl(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:wp(u,i.index),routesMeta:d})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let c of rl(i.path))o(i,s,c)}),t}function rl(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let s=rl(n.join("/")),l=[];return l.push(...s.map(c=>c===""?i:[i,c].join("/"))),o&&l.push(...s),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function hp(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Sp(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const gp=/^:[\w-]+$/,mp=3,yp=2,bp=1,vp=10,xp=-2,nl=e=>e==="*";function wp(e,t){let r=e.split("/"),n=r.length;return r.some(nl)&&(n+=xp),t&&(n+=yp),r.filter(o=>!nl(o)).reduce((o,i)=>o+(gp.test(i)?mp:i===""?bp:vp),n)}function Sp(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Ep(e,t,r){let{routesMeta:n}=e,o={},i="/",s=[];for(let l=0;l<n.length;++l){let c=n[l],u=l===n.length-1,d=i==="/"?t:t.slice(i.length)||"/",p=Ci({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),b=c.route;if(!p)return null;Object.assign(o,p.params),s.push({params:o,pathname:wt([i,p.pathname]),pathnameBase:_p(wt([i,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(i=wt([i,p.pathnameBase]))}return s}function Ci(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Cp(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:n.reduce((u,d,p)=>{let{paramName:b,isOptional:y}=d;if(b==="*"){let f=l[p]||"";s=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[p];return y&&!g?u[b]=void 0:u[b]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function Cp(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),nt(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 n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,c)=>(n.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Op(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return nt(!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 Mt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const Tp=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pp=e=>Tp.test(e);function kp(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ar(e):e,i;if(r)if(Pp(r))i=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),nt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+r))}r.startsWith("/")?i=ol(r.substring(1),"/"):i=ol(r,t)}else i=t;return{pathname:i,search:Ip(n),hash:Ap(o)}}function ol(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Oi(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Np(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function il(e,t){let r=Np(e);return t?r.map((n,o)=>o===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function sl(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ar(e):(o=$r({},e),le(!o.pathname||!o.pathname.includes("?"),Oi("?","pathname","search",o)),le(!o.pathname||!o.pathname.includes("#"),Oi("#","pathname","hash",o)),le(!o.search||!o.search.includes("#"),Oi("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=r;else{let p=t.length-1;if(!n&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;o.pathname=b.join("/")}l=p>=0?t[p]:"/"}let c=kp(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}const wt=e=>e.join("/").replace(/\/\/+/g,"/"),_p=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ip=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ap=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $p(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const al=["post","put","patch","delete"];new Set(al);const Rp=["get",...al];new Set(Rp);function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}const Mr=C.createContext(null);process.env.NODE_ENV!=="production"&&(Mr.displayName="DataRouter");const Ti=C.createContext(null);process.env.NODE_ENV!=="production"&&(Ti.displayName="DataRouterState");const Dp=C.createContext(null);process.env.NODE_ENV!=="production"&&(Dp.displayName="Await");const ot=C.createContext(null);process.env.NODE_ENV!=="production"&&(ot.displayName="Navigation");const jr=C.createContext(null);process.env.NODE_ENV!=="production"&&(jr.displayName="Location");const ft=C.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(ft.displayName="Route");const Pi=C.createContext(null);process.env.NODE_ENV!=="production"&&(Pi.displayName="RouteError");function Mp(e,t){let{relative:r}=t===void 0?{}:t;zr()||(process.env.NODE_ENV!=="production"?le(!1,"useHref() may be used only in the context of a <Router> component."):le(!1));let{basename:n,navigator:o}=C.useContext(ot),{hash:i,pathname:s,search:l}=Br(e,{relative:r}),c=s;return n!=="/"&&(c=s==="/"?n:wt([n,s])),o.createHref({pathname:c,search:l,hash:i})}function zr(){return C.useContext(jr)!=null}function lr(){return zr()||(process.env.NODE_ENV!=="production"?le(!1,"useLocation() may be used only in the context of a <Router> component."):le(!1)),C.useContext(jr).location}const ll="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cl(e){C.useContext(ot).static||C.useLayoutEffect(e)}function ki(){let{isDataRoute:e}=C.useContext(ft);return e?Jp():jp()}function jp(){zr()||(process.env.NODE_ENV!=="production"?le(!1,"useNavigate() may be used only in the context of a <Router> component."):le(!1));let e=C.useContext(Mr),{basename:t,future:r,navigator:n}=C.useContext(ot),{matches:o}=C.useContext(ft),{pathname:i}=lr(),s=JSON.stringify(il(o,r.v7_relativeSplatPath)),l=C.useRef(!1);return cl(()=>{l.current=!0}),C.useCallback(function(u,d){if(d===void 0&&(d={}),process.env.NODE_ENV!=="production"&&nt(l.current,ll),!l.current)return;if(typeof u=="number"){n.go(u);return}let p=sl(u,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:wt([t,p.pathname])),(d.replace?n.replace:n.push)(p,d.state,d)},[t,n,s,i,e])}function zp(){let{matches:e}=C.useContext(ft),t=e[e.length-1];return t?t.params:{}}function Br(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=C.useContext(ot),{matches:o}=C.useContext(ft),{pathname:i}=lr(),s=JSON.stringify(il(o,n.v7_relativeSplatPath));return C.useMemo(()=>sl(e,JSON.parse(s),i,r==="path"),[e,s,i,r])}function Bp(e,t){return Lp(e,t)}function Lp(e,t,r,n){zr()||(process.env.NODE_ENV!=="production"?le(!1,"useRoutes() may be used only in the context of a <Router> component."):le(!1));let{navigator:o}=C.useContext(ot),{matches:i}=C.useContext(ft),s=i[i.length-1],l=s?s.params:{},c=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;if(process.env.NODE_ENV!=="production"){let O=d&&d.path||"";fl(c,!d||O.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+c+'" (under <Route path="'+O+'">) 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="'+O+'"> to <Route ')+('path="'+(O==="/"?"*":O+"/*")+'">.'))}let p=ar(),b;if(t){var y;let O=typeof t=="string"?sr(t):t;u==="/"||(y=O.pathname)!=null&&y.startsWith(u)||(process.env.NODE_ENV!=="production"?le(!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 "'+O.pathname+'" was given in the `location` prop.')):le(!1)),b=O}else b=p;let g=b.pathname||"/",f=g;if(u!=="/"){let O=u.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(O.length).join("/")}let m=cp(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&nt(d||m!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&nt(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 "'+b.pathname+b.search+b.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 S=Vp(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:xt([u,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?u:xt([u,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),i,r,n);return t&&S?C.createElement(Mr.Provider,{value:{location:Rr({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:Rt.Pop}},S):S}function zp(){let e=Yp(),t=_p(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route."))),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),r?C.createElement("pre",{style:o},r):null,s)}const Bp=C.createElement(zp,null);class Fp extends C.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?C.createElement(dt.Provider,{value:this.props.routeContext},C.createElement(Ti.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Lp(e){let{routeContext:t,match:r,children:n}=e,o=C.useContext(Dr);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(dt.Provider,{value:t},n)}function Vp(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(p=>p.route.id&&l?.[p.route.id]!==void 0);d>=0||(process.env.NODE_ENV!=="production"?le(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):le(!1)),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:b,errors:y}=r,g=p.route.loader&&b[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||g){c=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,b)=>{let y,g=!1,f=null,m=null;r&&(y=l&&p.route.id?l[p.route.id]:void 0,f=p.route.errorElement||Bp,c&&(u<0&&b===0?(dl("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):u===b&&(g=!0,m=p.route.hydrateFallbackElement||null)));let S=t.concat(s.slice(0,b+1)),O=()=>{let w;return y?w=f:g?w=m:p.route.Component?w=C.createElement(p.route.Component,null):p.route.element?w=p.route.element:w=d,C.createElement(Lp,{match:p,routeContext:{outlet:d,matches:S,isDataRoute:r!=null},children:w})};return r&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?C.createElement(Fp,{location:r.location,revalidation:r.revalidation,component:f,error:y,children:O(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):O()},null)}var cl=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(cl||{}),Br=(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})(Br||{});function ki(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Wp(e){let t=C.useContext(Dr);return t||(process.env.NODE_ENV!=="production"?le(!1,ki(e)):le(!1)),t}function Up(e){let t=C.useContext(Oi);return t||(process.env.NODE_ENV!=="production"?le(!1,ki(e)):le(!1)),t}function Hp(e){let t=C.useContext(dt);return t||(process.env.NODE_ENV!=="production"?le(!1,ki(e)):le(!1)),t}function Ni(e){let t=Hp(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?le(!1,e+' can only be used on routes that contain a unique "id"'):le(!1)),r.route.id}function qp(){return Ni(Br.UseRouteId)}function Yp(){var e;let t=C.useContext(Ti),r=Up(Br.UseRouteError),n=Ni(Br.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Kp(){let{router:e}=Wp(cl.UseNavigateStable),t=Ni(Br.UseNavigateStable),r=C.useRef(!1);return ll(()=>{r.current=!0}),C.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&nt(r.current,al),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Rr({fromRouteId:t},i)))},[e,t])}const ul={};function dl(e,t,r){!t&&!ul[e]&&(ul[e]=!0,process.env.NODE_ENV!=="production"&&nt(!1,r))}const fl={};function Gp(e,t){process.env.NODE_ENV!=="production"&&!fl[t]&&(fl[t]=!0,console.warn(t))}const pl=(e,t,r)=>Gp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Xp(e,t){e?.v7_startTransition===void 0&&pl("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&&pl("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Fr(e){process.env.NODE_ENV!=="production"?le(!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>."):le(!1)}function Jp(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Rt.Pop,navigator:i,static:s=!1,future:l}=e;jr()&&(process.env.NODE_ENV!=="production"?le(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):le(!1));let c=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:c,navigator:i,static:s,future:Rr({v7_relativeSplatPath:!1},l)}),[c,l,i,s]);typeof n=="string"&&(n=sr(n));let{pathname:d="/",search:p="",hash:b="",state:y=null,key:g="default"}=n,f=C.useMemo(()=>{let m=Dt(d,c);return m==null?null:{location:{pathname:m,search:p,hash:b,state:y,key:g},navigationType:o}},[c,d,p,b,y,g,o]);return process.env.NODE_ENV!=="production"&&nt(f!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+d+p+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:C.createElement(ot.Provider,{value:u},C.createElement(Mr.Provider,{children:r,value:f}))}function Qp(e){let{children:t,location:r}=e;return Mp(_i(t),r)}new Promise(()=>{});function _i(e,t){t===void 0&&(t=[]);let r=[];return C.Children.forEach(e,(n,o)=>{if(!C.isValidElement(n))return;let i=[...t,o];if(n.type===C.Fragment){r.push.apply(r,_i(n.props.children,i));return}n.type!==Fr&&(process.env.NODE_ENV!=="production"?le(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):le(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?le(!1,"An index route cannot have child routes."):le(!1));let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=_i(n.props.children,i)),r.push(s)}),r}function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lr.apply(this,arguments)}function Ii(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Bn="get",Fn="application/x-www-form-urlencoded";function Ln(e){return e!=null&&typeof e.tagName=="string"}function Zp(e){return Ln(e)&&e.tagName.toLowerCase()==="button"}function eh(e){return Ln(e)&&e.tagName.toLowerCase()==="form"}function th(e){return Ln(e)&&e.tagName.toLowerCase()==="input"}function rh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nh(e,t){return e.button===0&&(!t||t==="_self")&&!rh(e)}let Vn=null;function oh(){if(Vn===null)try{new FormData(document.createElement("form"),0),Vn=!1}catch{Vn=!0}return Vn}const ih=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ai(e){return e!=null&&!ih.has(e)?(process.env.NODE_ENV!=="production"&&nt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Fn+'"')),null):e}function sh(e,t){let r,n,o,i,s;if(eh(e)){let l=e.getAttribute("action");n=l?Dt(l,t):null,r=e.getAttribute("method")||Bn,o=Ai(e.getAttribute("enctype"))||Fn,i=new FormData(e)}else if(Zp(e)||th(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 c=e.getAttribute("formaction")||l.getAttribute("action");if(n=c?Dt(c,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||Bn,o=Ai(e.getAttribute("formenctype"))||Ai(l.getAttribute("enctype"))||Fn,i=new FormData(l,e),!oh()){let{name:u,type:d,value:p}=e;if(d==="image"){let b=u?u+".":"";i.append(b+"x","0"),i.append(b+"y","0")}else u&&i.append(u,p)}}else{if(Ln(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Bn,n=null,o=Fn,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}const ah=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],ch=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],uh="6";try{window.__reactRouterVersion=uh}catch{}const hl=C.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(hl.displayName="ViewTransition");const dh=C.createContext(new Map);process.env.NODE_ENV!=="production"&&(dh.displayName="Fetchers");const gl=C["startTransition"];function fh(e){let{basename:t,children:r,future:n,window:o}=e,i=C.useRef();i.current==null&&(i.current=sp({window:o,v5Compat:!0}));let s=i.current,[l,c]=C.useState({action:s.action,location:s.location}),{v7_startTransition:u}=n||{},d=C.useCallback(p=>{u&&gl?gl(()=>c(p)):c(p)},[c,u]);return C.useLayoutEffect(()=>s.listen(d),[s,d]),C.useEffect(()=>Xp(n),[n]),C.createElement(Jp,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}process.env.NODE_ENV;const ph=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",hh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=C.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,b=Ii(t,ah),{basename:y}=C.useContext(ot),g,f=!1;if(typeof u=="string"&&hh.test(u)&&(g=u,ph))try{let w=new URL(window.location.href),v=u.startsWith("//")?new URL(w.protocol+u):new URL(u),x=Dt(v.pathname,y);v.origin===w.origin&&x!=null?u=x+v.search+v.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&nt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=$p(u,{relative:o}),S=bh(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:p});function O(w){n&&n(w),w.defaultPrevented||S(w)}return C.createElement("a",lr({},b,{href:g||m,onClick:f||i?n:O,ref:r,target:c}))});process.env.NODE_ENV!=="production"&&(cr.displayName="Link");const gh=C.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:i="",end:s=!1,style:l,to:c,viewTransition:u,children:d}=t,p=Ii(t,lh),b=zr(c,{relative:p.relative}),y=ar(),g=C.useContext(Oi),{navigator:f,basename:m}=C.useContext(ot),S=g!=null&&Ch(b)&&u===!0,O=f.encodeLocation?f.encodeLocation(b).pathname:b.pathname,w=y.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(w=w.toLowerCase(),v=v?v.toLowerCase():null,O=O.toLowerCase()),v&&m&&(v=Dt(v,m)||v);const x=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let T=w===O||!s&&w.startsWith(O)&&w.charAt(x)==="/",P=v!=null&&(v===O||!s&&v.startsWith(O)&&v.charAt(O.length)==="/"),I={isActive:T,isPending:P,isTransitioning:S},j=T?n:void 0,F;typeof i=="function"?F=i(I):F=[i,T?"active":null,P?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let W=typeof l=="function"?l(I):l;return C.createElement(cr,lr({},p,{"aria-current":j,className:F,ref:r,style:W,to:c,viewTransition:u}),typeof d=="function"?d(I):d)});process.env.NODE_ENV!=="production"&&(gh.displayName="NavLink");const mh=C.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=Bn,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:b}=e,y=Ii(e,ch),g=Sh(),f=Eh(c,{relative:d}),m=l.toLowerCase()==="get"?"get":"post",S=O=>{if(u&&u(O),O.defaultPrevented)return;O.preventDefault();let w=O.nativeEvent.submitter,v=w?.getAttribute("formmethod")||l;g(w||O.currentTarget,{fetcherKey:r,method:v,navigate:n,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:b})};return C.createElement("form",lr({ref:t,method:m,action:f,onSubmit:o?u:S},y))});process.env.NODE_ENV!=="production"&&(mh.displayName="Form"),process.env.NODE_ENV;var Wn;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wn||(Wn={}));var ml;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ml||(ml={}));function yh(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function yl(e){let t=C.useContext(Dr);return t||(process.env.NODE_ENV!=="production"?le(!1,yh(e)):le(!1)),t}function bh(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,c=Pi(),u=ar(),d=zr(e,{relative:s});return C.useCallback(p=>{if(nh(p,r)){p.preventDefault();let b=n!==void 0?n:$r(u)===$r(d);c(e,{replace:b,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[u,c,d,n,o,r,e,i,s,l])}function vh(){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 xh=0,wh=()=>"__"+String(++xh)+"__";function Sh(){let{router:e}=yl(Wn.UseSubmit),{basename:t}=C.useContext(ot),r=qp();return C.useCallback(function(n,o){o===void 0&&(o={}),vh();let{action:i,method:s,encType:l,formData:c,body:u}=sh(n,t);if(o.navigate===!1){let d=o.fetcherKey||wh();e.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Eh(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=C.useContext(ot),o=C.useContext(dt);o||(process.env.NODE_ENV!=="production"?le(!1,"useFormAction must be used inside a RouteContext"):le(!1));let[i]=o.matches.slice(-1),s=lr({},zr(e||".",{relative:r})),l=ar();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(b=>b).forEach(b=>c.append("index",b));let p=c.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:xt([n,s.pathname])),$r(s)}function Ch(e,t){t===void 0&&(t={});let r=C.useContext(hl);r==null&&(process.env.NODE_ENV!=="production"?le(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):le(!1));let{basename:n}=yl(Wn.useViewTransitionState),o=zr(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=Dt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Dt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ei(o.pathname,s)!=null||Ei(o.pathname,i)!=null}function bl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Un={exports:{}},$i={};var vl;function Oh(){if(vl)return $i;vl=1;var e=z;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,s=e.useMemo,l=e.useDebugValue;return $i.useSyncExternalStoreWithSelector=function(c,u,d,p,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=s(function(){function m(x){if(!S){if(S=!0,O=x,x=p(x),b!==void 0&&g.hasValue){var T=g.value;if(b(T,x))return w=T}return w=x}if(T=w,r(O,x))return T;var P=p(x);return b!==void 0&&b(T,P)?(O=x,T):(O=x,w=P)}var S=!1,O,w,v=d===void 0?null:d;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,d,p,b]);var f=n(c,y[0],y[1]);return i(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},$i}var Ri={};var xl;function Th(){return xl||(xl=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=z,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,s=t.useMemo,l=t.useDebugValue;Ri.useSyncExternalStoreWithSelector=function(c,u,d,p,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=s(function(){function m(x){if(!S){if(S=!0,O=x,x=p(x),b!==void 0&&g.hasValue){var T=g.value;if(b(T,x))return w=T}return w=x}if(T=w,r(O,x))return T;var P=p(x);return b!==void 0&&b(T,P)?(O=x,T):(O=x,w=P)}var S=!1,O,w,v=d===void 0?null:d;return[function(){return m(u())},v===null?void 0:function(){return m(v())}]},[u,d,p,b]);var f=n(c,y[0],y[1]);return i(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())})()),Ri}var wl;function Ph(){return wl||(wl=1,process.env.NODE_ENV==="production"?Un.exports=Oh():Un.exports=Th()),Un.exports}var kh=Ph();function Nh(e){e()}function _h(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Nh(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Sl={notify(){},get:()=>[]};function Ih(e,t){let r,n=Sl,o=0,i=!1;function s(f){d();const m=n.subscribe(f);let S=!1;return()=>{S||(S=!0,m(),p())}}function l(){n.notify()}function c(){g.onStateChange&&g.onStateChange()}function u(){return i}function d(){o++,r||(r=e.subscribe(c),n=_h())}function p(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Sl)}function b(){i||(i=!0,d())}function y(){i&&(i=!1,p())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:u,trySubscribe:b,tryUnsubscribe:y,getListeners:()=>n};return g}var Ah=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$h=Ah(),Rh=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Dh=Rh(),Mh=()=>$h||Dh?C.useLayoutEffect:C.useEffect,jh=Mh(),zh=Symbol.for("react-redux-context"),Bh=typeof globalThis<"u"?globalThis:{};function Fh(){if(!C.createContext)return{};const e=Bh[zh]??=new Map;let t=e.get(C.createContext);return t||(t=C.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(C.createContext,t)),t}var Mt=Fh();function Lh(e){const{children:t,context:r,serverState:n,store:o}=e,i=C.useMemo(()=>{const c=Ih(o),u={store:o,subscription:c,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:d="once",stabilityCheck:p="once"}=e;return Object.assign(u,{stabilityCheck:p,identityFunctionCheck:d})}},[o,n]),s=C.useMemo(()=>o.getState(),[o]);jh(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==o.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const l=r||Mt;return C.createElement(l.Provider,{value:i},t)}var Vh=Lh;function Di(e=Mt){return function(){const r=C.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var El=Di();function Cl(e=Mt){const t=e===Mt?El:Di(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var Wh=Cl();function Uh(e=Mt){const t=e===Mt?Wh:Cl(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Hh=Uh(),qh=(e,t)=>e===t;function Yh(e=Mt){const t=e===Mt?El:Di(e),r=(n,o={})=>{const{equalityFn:i=qh}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const s=t(),{store:l,subscription:c,getServerState:u}=s,d=C.useRef(!0),p=C.useCallback({[n.name](y){const g=n(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:m,stabilityCheck:S}=s,{identityFunctionCheck:O,stabilityCheck:w}={stabilityCheck:S,identityFunctionCheck:m,...f};if(w==="always"||w==="once"&&d.current){const v=n(y);if(!i(g,v)){let x;try{throw new Error}catch(T){({stack:x}=T)}console.warn("Selector "+(n.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:y,selected:g,selected2:v,stack:x})}}if((O==="always"||O==="once"&&d.current)&&g===y){let v;try{throw new Error}catch(x){({stack:v}=x)}console.warn("Selector "+(n.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})}d.current&&(d.current=!1)}return g}}[n.name],[n]),b=kh.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,u||l.getState,p,i);return C.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Kh=Yh(),Lr={},Ol;function Gh(){if(Ol)return Lr;Ol=1,Lr.__esModule=!0,Lr.PersistGate=void 0;var e=t(z);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=y[f]}}return g.default=y,g}function r(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(y)}function n(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function o(y,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(y,m.key,m)}}function i(y,g,f){return g&&o(y.prototype,g),y}function s(y,g){return g&&(r(g)==="object"||typeof g=="function")?g:c(y)}function l(y){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(y)}function c(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function u(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&d(y,g)}function d(y,g){return d=Object.setPrototypeOf||function(m,S){return m.__proto__=S,m},d(y,g)}function p(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var b=(function(y){u(g,y);function g(){var f,m;n(this,g);for(var S=arguments.length,O=new Array(S),w=0;w<S;w++)O[w]=arguments[w];return m=s(this,(f=l(g)).call.apply(f,[this].concat(O))),p(c(m),"state",{bootstrapped:!1}),p(c(m),"_unsubscribe",void 0),p(c(m),"handlePersistorState",function(){var v=m.props.persistor,x=v.getState(),T=x.bootstrapped;T&&(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 i(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 Lr.PersistGate=b,p(b,"defaultProps",{children:null,loading:null}),Lr}var Xh=Gh();function Me(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 Jh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Tl=Jh,Mi=()=>Math.random().toString(36).substring(7).split("").join("."),Qh={INIT:`@@redux/INIT${Mi()}`,REPLACE:`@@redux/REPLACE${Mi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mi()}`},Ut=Qh;function Vr(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 Zh(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(rg(e))return"date";if(tg(e))return"error";const r=eg(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function eg(e){return typeof e.constructor=="function"?e.constructor.name:null}function tg(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function rg(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function jt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Zh(e)),t}function ji(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Me(2):`Expected the root reducer to be a function. Instead, received: '${jt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Me(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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Me(1):`Expected the enhancer to be a function. Instead, received: '${jt(r)}'`);return r(ji)(e,t)}let n=e,o=t,i=new Map,s=i,l=0,c=!1;function u(){s===i&&(s=new Map,i.forEach((m,S)=>{s.set(S,m)}))}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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 o}function p(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Me(4):`Expected the listener to be a function. Instead, received: '${jt(m)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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 S=!0;u();const O=l++;return s.set(O,m),function(){if(S){if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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.");S=!1,u(),s.delete(O),i=null}}}function b(m){if(!Vr(m))throw new Error(process.env.NODE_ENV==="production"?Me(7):`Actions must be plain objects. Instead, the actual type was: '${jt(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"?Me(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"?Me(17):`Action "type" property must be a string. Instead, the actual type was: '${jt(m.type)}'. Value was: '${m.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?Me(9):"Reducers may not dispatch actions.");try{c=!0,o=n(o,m)}finally{c=!1}return(i=s).forEach(O=>{O()}),m}function y(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Me(10):`Expected the nextReducer to be a function. Instead, received: '${jt(m)}`);n=m,b({type:Ut.REPLACE})}function g(){const m=p;return{subscribe(S){if(typeof S!="object"||S===null)throw new Error(process.env.NODE_ENV==="production"?Me(11):`Expected the observer to be an object. Instead, received: '${jt(S)}'`);function O(){const v=S;v.next&&v.next(d())}return O(),{unsubscribe:m(O)}},[Tl](){return this}}}return b({type:Ut.INIT}),{dispatch:b,subscribe:p,getState:d,replaceReducer:y,[Tl]:g}}function Pl(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function ng(e,t,r,n){const o=Object.keys(t),i=r&&r.type===Ut.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!Vr(e))return`The ${i} has unexpected type of "${jt(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const s=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!n[l]);if(s.forEach(l=>{n[l]=!0}),!(r&&r.type===Ut.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function og(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ut.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Me(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 r(void 0,{type:Ut.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Me(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ut.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 kl(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const l=t[s];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Pl(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{og(r)}catch(s){i=s}return function(l={},c){if(i)throw i;if(process.env.NODE_ENV!=="production"){const p=ng(l,r,c,o);p&&Pl(p)}let u=!1;const d={};for(let p=0;p<n.length;p++){const b=n[p],y=r[b],g=l[b],f=y(g,c);if(typeof f>"u"){const m=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?Me(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${b}" 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.`)}d[b]=f,u=u||f!==g}return u=u||n.length!==Object.keys(l).length,u?d:l}}function Hn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function ig(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?Me(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:o.getState,dispatch:(c,...u)=>i(c,...u)},l=e.map(c=>c(s));return i=Hn(...l)(o.dispatch),{...o,dispatch:i}}}function Nl(e){return Vr(e)&&"type"in e&&typeof e.type=="string"}var _l=Symbol.for("immer-nothing"),Il=Symbol.for("immer-draftable"),Fe=Symbol.for("immer-state"),sg=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 Ye(e,...t){if(process.env.NODE_ENV!=="production"){const r=sg[e],n=Ht(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ke=Object,ur=Ke.getPrototypeOf,qn="constructor",Yn="prototype",zi="configurable",Kn="enumerable",Gn="writable",Wr="value",wt=e=>!!e&&!!e[Fe];function it(e){return e?$l(e)||Jn(e)||!!e[Il]||!!e[qn]?.[Il]||Qn(e)||Zn(e):!1}var ag=Ke[Yn][qn].toString(),Al=new WeakMap;function $l(e){if(!e||!Fi(e))return!1;const t=ur(e);if(t===null||t===Ke[Yn])return!0;const r=Ke.hasOwnProperty.call(t,qn)&&t[qn];if(r===Object)return!0;if(!Ht(r))return!1;let n=Al.get(r);return n===void 0&&(n=Function.toString.call(r),Al.set(r,n)),n===ag}function Ur(e,t,r=!0){Hr(e)===0?(r?Reflect.ownKeys(e):Ke.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function Hr(e){const t=e[Fe];return t?t.type_:Jn(e)?1:Qn(e)?2:Zn(e)?3:0}var Rl=(e,t,r=Hr(e))=>r===2?e.has(t):Ke[Yn].hasOwnProperty.call(e,t),Bi=(e,t,r=Hr(e))=>r===2?e.get(t):e[t],Xn=(e,t,r,n=Hr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function lg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Jn=Array.isArray,Qn=e=>e instanceof Map,Zn=e=>e instanceof Set,Fi=e=>typeof e=="object",Ht=e=>typeof e=="function",Li=e=>typeof e=="boolean",St=e=>e.copy_||e.base_,Vi=e=>e.modified_?e.copy_:e.base_;function Wi(e,t){if(Qn(e))return new Map(e);if(Zn(e))return new Set(e);if(Jn(e))return Array[Yn].slice.call(e);const r=$l(e);if(t===!0||t==="class_only"&&!r){const n=Ke.getOwnPropertyDescriptors(e);delete n[Fe];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const s=o[i],l=n[s];l[Gn]===!1&&(l[Gn]=!0,l[zi]=!0),(l.get||l.set)&&(n[s]={[zi]:!0,[Gn]:!0,[Kn]:l[Kn],[Wr]:e[s]})}return Ke.create(ur(e),n)}else{const n=ur(e);if(n!==null&&r)return{...e};const o=Ke.create(n);return Ke.assign(o,e)}}function Ui(e,t=!1){return to(e)||wt(e)||!it(e)||(Hr(e)>1&&Ke.defineProperties(e,{set:eo,add:eo,clear:eo,delete:eo}),Ke.freeze(e),t&&Ur(e,(r,n)=>{Ui(n,!0)},!1)),e}function cg(){Ye(2)}var eo={[Wr]:cg};function to(e){return e===null||!Fi(e)?!0:Ke.isFrozen(e)}var ro="MapSet",Hi="Patches",Dl={};function dr(e){const t=Dl[e];return t||Ye(0,e),t}var ug=e=>!!Dl[e],qr,Ml=()=>qr,dg=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ug(ro)?dr(ro):void 0});function jl(e,t){t&&(e.patchPlugin_=dr(Hi),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qi(e){Yi(e),e.drafts_.forEach(fg),e.drafts_=null}function Yi(e){e===qr&&(qr=e.parent_)}var zl=e=>qr=dg(qr,e);function fg(e){const t=e[Fe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Bl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Fe].modified_&&(qi(t),Ye(4)),it(e)&&(e=Fl(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Fe].base_,e,t)}else e=Fl(t,r);return pg(t,e,!0),qi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==_l?e:void 0}function Fl(e,t){if(to(t))return t;const r=t[Fe];if(!r)return Ki(t,e.handledSet_,e);if(!no(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Wl(r,e)}return r.copy_}function pg(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ui(t,r)}function Ll(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var no=(e,t)=>e.scope_===t,hg=[];function Vl(e,t,r,n){const o=St(e),i=e.type_;if(n!==void 0&&Bi(o,n,i)===t){Xn(o,n,r,i);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Ur(o,(c,u)=>{if(wt(u)){const d=l.get(u)||[];d.push(c),l.set(u,d)}})}const s=e.draftLocations_.get(t)??hg;for(const l of s)Xn(o,l,r,i)}function gg(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!no(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const s=Vi(i);Vl(e,i.draft_??i,s,r),Wl(i,o)})}function Wl(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Ll(e)}}function mg(e,t,r){const{scope_:n}=e;if(wt(r)){const o=r[Fe];no(o,n)&&o.callbacks_.push(function(){oo(e);const s=Vi(o);Vl(e,r,s,t)})}else it(r)&&e.callbacks_.push(function(){const i=St(e);Bi(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ki(Bi(e.copy_,t,e.type_),n.handledSet_,n)})}function Ki(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||wt(e)||t.has(e)||!it(e)||to(e)||(t.add(e),Ur(e,(n,o)=>{if(wt(o)){const i=o[Fe];if(no(i,r)){const s=Vi(i);Xn(e,n,s,e.type_),Ll(i)}}else it(o)&&Ki(o,t,r)})),e}function yg(e,t){const r=Jn(e),n={type_:r?1:0,scope_:t?t.scope_:Ml(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=Gi;r&&(o=[n],i=Yr);const{revoke:s,proxy:l}=Proxy.revocable(o,i);return n.draft_=l,n.revoke_=s,[l,n]}var Gi={get(e,t){if(t===Fe)return e;const r=St(e);if(!Rl(r,t,e.type_))return bg(e,r,t);const n=r[t];if(e.finalized_||!it(n))return n;if(n===Xi(e.base_,t)){oo(e);const o=e.type_===1?+t:t,i=Qi(e.scope_,n,e,o);return e.copy_[o]=i}return n},has(e,t){return t in St(e)},ownKeys(e){return Reflect.ownKeys(St(e))},set(e,t,r){const n=Ul(St(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Xi(St(e),t),i=o?.[Fe];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(lg(r,o)&&(r!==void 0||Rl(e.base_,t,e.type_)))return!0;oo(e),Ji(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),mg(e,t,r)),!0},deleteProperty(e,t){return oo(e),Xi(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ji(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=St(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Gn]:!0,[zi]:e.type_!==1||t!=="length",[Kn]:n[Kn],[Wr]:r[t]}},defineProperty(){Ye(11)},getPrototypeOf(e){return ur(e.base_)},setPrototypeOf(){Ye(12)}},Yr={};Ur(Gi,(e,t)=>{Yr[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),Yr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ye(13),Yr.set.call(this,e,t,void 0)},Yr.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ye(14),Gi.set.call(this,e[0],t,r,e[0])};function Xi(e,t){const r=e[Fe];return(r?St(r):e)[t]}function bg(e,t,r){const n=Ul(t,r);return n?Wr in n?n[Wr]:n.get?.call(e.draft_):void 0}function Ul(e,t){if(!(t in e))return;let r=ur(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=ur(r)}}function Ji(e){e.modified_||(e.modified_=!0,e.parent_&&Ji(e.parent_))}function oo(e){e.copy_||(e.assigned_=new Map,e.copy_=Wi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var vg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(Ht(t)&&!Ht(r)){const i=r;r=t;const s=this;return function(c=i,...u){return s.produce(c,d=>r.call(this,d,...u))}}Ht(r)||Ye(6),n!==void 0&&!Ht(n)&&Ye(7);let o;if(it(t)){const i=zl(this),s=Qi(i,t,void 0);let l=!0;try{o=r(s),l=!1}finally{l?qi(i):Yi(i)}return jl(i,n),Bl(o,i)}else if(!t||!Fi(t)){if(o=r(t),o===void 0&&(o=t),o===_l&&(o=void 0),this.autoFreeze_&&Ui(o,!0),n){const i=[],s=[];dr(Hi).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:s}),n(i,s)}return o}else Ye(1,t)},this.produceWithPatches=(t,r)=>{if(Ht(t))return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let n,o;return[this.produce(t,r,(s,l)=>{n=s,o=l}),n,o]},Li(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Li(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Li(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){it(e)||Ye(8),wt(e)&&(e=xg(e));const t=zl(this),r=Qi(t,e,void 0);return r[Fe].isManual_=!0,Yi(t),r}finishDraft(e,t){const r=e&&e[Fe];(!r||!r.isManual_)&&Ye(9);const{scope_:n}=r;return jl(n,t),Bl(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=dr(Hi).applyPatches_;return wt(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Qi(e,t,r,n){const[o,i]=Qn(t)?dr(ro).proxyMap_(t,r):Zn(t)?dr(ro).proxySet_(t,r):yg(t,r);return(r?.scope_??Ml()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?gg(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:u}=c;i.modified_&&u&&u.generatePatches_(i,[],c)}),o}function xg(e){return wt(e)||Ye(10,e),Hl(e)}function Hl(e){if(!it(e)||to(e))return e;const t=e[Fe];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Wi(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Wi(e,!0);return Ur(r,(o,i)=>{Xn(r,o,Hl(i))},n),t&&(t.finalized_=!1),r}var wg=new vg,ql=wg.produce,Sg=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}console.warn(`The result function returned its own inputs without modification. e.g
3
+ `+('Please change the parent <Route path="'+O+'"> to <Route ')+('path="'+(O==="/"?"*":O+"/*")+'">.'))}let p=lr(),b;if(t){var y;let O=typeof t=="string"?ar(t):t;u==="/"||(y=O.pathname)!=null&&y.startsWith(u)||(process.env.NODE_ENV!=="production"?le(!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 "'+O.pathname+'" was given in the `location` prop.')):le(!1)),b=O}else b=p;let g=b.pathname||"/",f=g;if(u!=="/"){let O=u.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(O.length).join("/")}let m=fp(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&nt(d||m!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&nt(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 "'+b.pathname+b.search+b.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 E=Hp(m&&m.map(O=>Object.assign({},O,{params:Object.assign({},l,O.params),pathname:wt([u,o.encodeLocation?o.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?u:wt([u,o.encodeLocation?o.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),i,r,n);return t&&E?C.createElement(jr.Provider,{value:{location:Dr({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:Dt.Pop}},E):E}function Fp(){let e=Xp(),t=$p(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},s=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),s=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:i},"ErrorBoundary")," or"," ",C.createElement("code",{style:i},"errorElement")," prop on your route."))),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),r?C.createElement("pre",{style:o},r):null,s)}const Vp=C.createElement(Fp,null);class Wp extends C.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,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?C.createElement(ft.Provider,{value:this.props.routeContext},C.createElement(Pi.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Up(e){let{routeContext:t,match:r,children:n}=e,o=C.useContext(Mr);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),C.createElement(ft.Provider,{value:t},n)}function Hp(e,t,r,n){var o;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,l=(o=r)==null?void 0:o.errors;if(l!=null){let d=s.findIndex(p=>p.route.id&&l?.[p.route.id]!==void 0);d>=0||(process.env.NODE_ENV!=="production"?le(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):le(!1)),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<s.length;d++){let p=s[d];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=d),p.route.id){let{loaderData:b,errors:y}=r,g=p.route.loader&&b[p.route.id]===void 0&&(!y||y[p.route.id]===void 0);if(p.route.lazy||g){c=!0,u>=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,p,b)=>{let y,g=!1,f=null,m=null;r&&(y=l&&p.route.id?l[p.route.id]:void 0,f=p.route.errorElement||Vp,c&&(u<0&&b===0?(fl("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):u===b&&(g=!0,m=p.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,b+1)),O=()=>{let S;return y?S=f:g?S=m:p.route.Component?S=C.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=d,C.createElement(Up,{match:p,routeContext:{outlet:d,matches:E,isDataRoute:r!=null},children:S})};return r&&(p.route.ErrorBoundary||p.route.errorElement||b===0)?C.createElement(Wp,{location:r.location,revalidation:r.revalidation,component:f,error:y,children:O(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):O()},null)}var ul=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(ul||{}),Lr=(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})(Lr||{});function Ni(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function qp(e){let t=C.useContext(Mr);return t||(process.env.NODE_ENV!=="production"?le(!1,Ni(e)):le(!1)),t}function Yp(e){let t=C.useContext(Ti);return t||(process.env.NODE_ENV!=="production"?le(!1,Ni(e)):le(!1)),t}function Kp(e){let t=C.useContext(ft);return t||(process.env.NODE_ENV!=="production"?le(!1,Ni(e)):le(!1)),t}function _i(e){let t=Kp(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?le(!1,e+' can only be used on routes that contain a unique "id"'):le(!1)),r.route.id}function Gp(){return _i(Lr.UseRouteId)}function Xp(){var e;let t=C.useContext(Pi),r=Yp(Lr.UseRouteError),n=_i(Lr.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Jp(){let{router:e}=qp(ul.UseNavigateStable),t=_i(Lr.UseNavigateStable),r=C.useRef(!1);return cl(()=>{r.current=!0}),C.useCallback(function(o,i){i===void 0&&(i={}),process.env.NODE_ENV!=="production"&&nt(r.current,ll),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Dr({fromRouteId:t},i)))},[e,t])}const dl={};function fl(e,t,r){!t&&!dl[e]&&(dl[e]=!0,process.env.NODE_ENV!=="production"&&nt(!1,r))}const pl={};function Qp(e,t){process.env.NODE_ENV!=="production"&&!pl[t]&&(pl[t]=!0,console.warn(t))}const hl=(e,t,r)=>Qp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Zp(e,t){e?.v7_startTransition===void 0&&hl("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&&hl("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Fr(e){process.env.NODE_ENV!=="production"?le(!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>."):le(!1)}function eh(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Dt.Pop,navigator:i,static:s=!1,future:l}=e;zr()&&(process.env.NODE_ENV!=="production"?le(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):le(!1));let c=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:c,navigator:i,static:s,future:Dr({v7_relativeSplatPath:!1},l)}),[c,l,i,s]);typeof n=="string"&&(n=ar(n));let{pathname:d="/",search:p="",hash:b="",state:y=null,key:g="default"}=n,f=C.useMemo(()=>{let m=Mt(d,c);return m==null?null:{location:{pathname:m,search:p,hash:b,state:y,key:g},navigationType:o}},[c,d,p,b,y,g,o]);return process.env.NODE_ENV!=="production"&&nt(f!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+d+p+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:C.createElement(ot.Provider,{value:u},C.createElement(jr.Provider,{children:r,value:f}))}function th(e){let{children:t,location:r}=e;return Bp(Ii(t),r)}new Promise(()=>{});function Ii(e,t){t===void 0&&(t=[]);let r=[];return C.Children.forEach(e,(n,o)=>{if(!C.isValidElement(n))return;let i=[...t,o];if(n.type===C.Fragment){r.push.apply(r,Ii(n.props.children,i));return}n.type!==Fr&&(process.env.NODE_ENV!=="production"?le(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):le(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?le(!1,"An index route cannot have child routes."):le(!1));let s={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=Ii(n.props.children,i)),r.push(s)}),r}function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cr.apply(this,arguments)}function Ai(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}const Ln="get",Fn="application/x-www-form-urlencoded";function Vn(e){return e!=null&&typeof e.tagName=="string"}function rh(e){return Vn(e)&&e.tagName.toLowerCase()==="button"}function nh(e){return Vn(e)&&e.tagName.toLowerCase()==="form"}function oh(e){return Vn(e)&&e.tagName.toLowerCase()==="input"}function ih(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sh(e,t){return e.button===0&&(!t||t==="_self")&&!ih(e)}let Wn=null;function ah(){if(Wn===null)try{new FormData(document.createElement("form"),0),Wn=!1}catch{Wn=!0}return Wn}const lh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $i(e){return e!=null&&!lh.has(e)?(process.env.NODE_ENV!=="production"&&nt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Fn+'"')),null):e}function ch(e,t){let r,n,o,i,s;if(nh(e)){let l=e.getAttribute("action");n=l?Mt(l,t):null,r=e.getAttribute("method")||Ln,o=$i(e.getAttribute("enctype"))||Fn,i=new FormData(e)}else if(rh(e)||oh(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 c=e.getAttribute("formaction")||l.getAttribute("action");if(n=c?Mt(c,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||Ln,o=$i(e.getAttribute("formenctype"))||$i(l.getAttribute("enctype"))||Fn,i=new FormData(l,e),!ah()){let{name:u,type:d,value:p}=e;if(d==="image"){let b=u?u+".":"";i.append(b+"x","0"),i.append(b+"y","0")}else u&&i.append(u,p)}}else{if(Vn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Ln,n=null,o=Fn,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:n,method:r.toLowerCase(),encType:o,formData:i,body:s}}const uh=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dh=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],fh=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],ph="6";try{window.__reactRouterVersion=ph}catch{}const gl=C.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(gl.displayName="ViewTransition");const hh=C.createContext(new Map);process.env.NODE_ENV!=="production"&&(hh.displayName="Fetchers");const ml=C["startTransition"];function gh(e){let{basename:t,children:r,future:n,window:o}=e,i=C.useRef();i.current==null&&(i.current=cp({window:o,v5Compat:!0}));let s=i.current,[l,c]=C.useState({action:s.action,location:s.location}),{v7_startTransition:u}=n||{},d=C.useCallback(p=>{u&&ml?ml(()=>c(p)):c(p)},[c,u]);return C.useLayoutEffect(()=>s.listen(d),[s,d]),C.useEffect(()=>Zp(n),[n]),C.createElement(eh,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:n})}process.env.NODE_ENV;const mh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ur=C.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:s,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,b=Ai(t,uh),{basename:y}=C.useContext(ot),g,f=!1;if(typeof u=="string"&&yh.test(u)&&(g=u,mh))try{let S=new URL(window.location.href),x=u.startsWith("//")?new URL(S.protocol+u):new URL(u),w=Mt(x.pathname,y);x.origin===S.origin&&w!=null?u=w+x.search+x.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&nt(!1,'<Link to="'+u+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=Mp(u,{relative:o}),E=wh(u,{replace:s,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:p});function O(S){n&&n(S),S.defaultPrevented||E(S)}return C.createElement("a",cr({},b,{href:g||m,onClick:f||i?n:O,ref:r,target:c}))});process.env.NODE_ENV!=="production"&&(ur.displayName="Link");const bh=C.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:o=!1,className:i="",end:s=!1,style:l,to:c,viewTransition:u,children:d}=t,p=Ai(t,dh),b=Br(c,{relative:p.relative}),y=lr(),g=C.useContext(Ti),{navigator:f,basename:m}=C.useContext(ot),E=g!=null&&Ph(b)&&u===!0,O=f.encodeLocation?f.encodeLocation(b).pathname:b.pathname,S=y.pathname,x=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),x=x?x.toLowerCase():null,O=O.toLowerCase()),x&&m&&(x=Mt(x,m)||x);const w=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let T=S===O||!s&&S.startsWith(O)&&S.charAt(w)==="/",P=x!=null&&(x===O||!s&&x.startsWith(O)&&x.charAt(O.length)==="/"),I={isActive:T,isPending:P,isTransitioning:E},j=T?n:void 0,L;typeof i=="function"?L=i(I):L=[i,T?"active":null,P?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let W=typeof l=="function"?l(I):l;return C.createElement(ur,cr({},p,{"aria-current":j,className:L,ref:r,style:W,to:c,viewTransition:u}),typeof d=="function"?d(I):d)});process.env.NODE_ENV!=="production"&&(bh.displayName="NavLink");const vh=C.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:o,replace:i,state:s,method:l=Ln,action:c,onSubmit:u,relative:d,preventScrollReset:p,viewTransition:b}=e,y=Ai(e,fh),g=Oh(),f=Th(c,{relative:d}),m=l.toLowerCase()==="get"?"get":"post",E=O=>{if(u&&u(O),O.defaultPrevented)return;O.preventDefault();let S=O.nativeEvent.submitter,x=S?.getAttribute("formmethod")||l;g(S||O.currentTarget,{fetcherKey:r,method:x,navigate:n,replace:i,state:s,relative:d,preventScrollReset:p,viewTransition:b})};return C.createElement("form",cr({ref:t,method:m,action:f,onSubmit:o?u:E},y))});process.env.NODE_ENV!=="production"&&(vh.displayName="Form"),process.env.NODE_ENV;var Un;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Un||(Un={}));var yl;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(yl||(yl={}));function xh(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function bl(e){let t=C.useContext(Mr);return t||(process.env.NODE_ENV!=="production"?le(!1,xh(e)):le(!1)),t}function wh(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,c=ki(),u=lr(),d=Br(e,{relative:s});return C.useCallback(p=>{if(sh(p,r)){p.preventDefault();let b=n!==void 0?n:Rr(u)===Rr(d);c(e,{replace:b,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[u,c,d,n,o,r,e,i,s,l])}function Sh(){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 Eh=0,Ch=()=>"__"+String(++Eh)+"__";function Oh(){let{router:e}=bl(Un.UseSubmit),{basename:t}=C.useContext(ot),r=Gp();return C.useCallback(function(n,o){o===void 0&&(o={}),Sh();let{action:i,method:s,encType:l,formData:c,body:u}=ch(n,t);if(o.navigate===!1){let d=o.fetcherKey||Ch();e.fetch(d,r,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,r])}function Th(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=C.useContext(ot),o=C.useContext(ft);o||(process.env.NODE_ENV!=="production"?le(!1,"useFormAction must be used inside a RouteContext"):le(!1));let[i]=o.matches.slice(-1),s=cr({},Br(e||".",{relative:r})),l=lr();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),u=c.getAll("index");if(u.some(p=>p==="")){c.delete("index"),u.filter(b=>b).forEach(b=>c.append("index",b));let p=c.toString();s.search=p?"?"+p:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:wt([n,s.pathname])),Rr(s)}function Ph(e,t){t===void 0&&(t={});let r=C.useContext(gl);r==null&&(process.env.NODE_ENV!=="production"?le(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):le(!1));let{basename:n}=bl(Un.useViewTransitionState),o=Br(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=Mt(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=Mt(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ci(o.pathname,s)!=null||Ci(o.pathname,i)!=null}function vl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hn={exports:{}},Ri={};var xl;function kh(){if(xl)return Ri;xl=1;var e=z;function t(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,s=e.useMemo,l=e.useDebugValue;return Ri.useSyncExternalStoreWithSelector=function(c,u,d,p,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=s(function(){function m(w){if(!E){if(E=!0,O=w,w=p(w),b!==void 0&&g.hasValue){var T=g.value;if(b(T,w))return S=T}return S=w}if(T=S,r(O,w))return T;var P=p(w);return b!==void 0&&b(T,P)?(O=w,T):(O=w,S=P)}var E=!1,O,S,x=d===void 0?null:d;return[function(){return m(u())},x===null?void 0:function(){return m(x())}]},[u,d,p,b]);var f=n(c,y[0],y[1]);return i(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},Ri}var Di={};var wl;function Nh(){return wl||(wl=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=z,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,o=t.useRef,i=t.useEffect,s=t.useMemo,l=t.useDebugValue;Di.useSyncExternalStoreWithSelector=function(c,u,d,p,b){var y=o(null);if(y.current===null){var g={hasValue:!1,value:null};y.current=g}else g=y.current;y=s(function(){function m(w){if(!E){if(E=!0,O=w,w=p(w),b!==void 0&&g.hasValue){var T=g.value;if(b(T,w))return S=T}return S=w}if(T=S,r(O,w))return T;var P=p(w);return b!==void 0&&b(T,P)?(O=w,T):(O=w,S=P)}var E=!1,O,S,x=d===void 0?null:d;return[function(){return m(u())},x===null?void 0:function(){return m(x())}]},[u,d,p,b]);var f=n(c,y[0],y[1]);return i(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())})()),Di}var Sl;function _h(){return Sl||(Sl=1,process.env.NODE_ENV==="production"?Hn.exports=kh():Hn.exports=Nh()),Hn.exports}var Ih=_h();function Ah(e){e()}function $h(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ah(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var El={notify(){},get:()=>[]};function Rh(e,t){let r,n=El,o=0,i=!1;function s(f){d();const m=n.subscribe(f);let E=!1;return()=>{E||(E=!0,m(),p())}}function l(){n.notify()}function c(){g.onStateChange&&g.onStateChange()}function u(){return i}function d(){o++,r||(r=e.subscribe(c),n=$h())}function p(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=El)}function b(){i||(i=!0,d())}function y(){i&&(i=!1,p())}const g={addNestedSub:s,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:u,trySubscribe:b,tryUnsubscribe:y,getListeners:()=>n};return g}var Dh=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mh=Dh(),jh=()=>typeof navigator<"u"&&navigator.product==="ReactNative",zh=jh(),Bh=()=>Mh||zh?C.useLayoutEffect:C.useEffect,Lh=Bh(),Fh=Symbol.for("react-redux-context"),Vh=typeof globalThis<"u"?globalThis:{};function Wh(){if(!C.createContext)return{};const e=Vh[Fh]??=new Map;let t=e.get(C.createContext);return t||(t=C.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(C.createContext,t)),t}var jt=Wh();function Uh(e){const{children:t,context:r,serverState:n,store:o}=e,i=C.useMemo(()=>{const c=Rh(o),u={store:o,subscription:c,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return u;{const{identityFunctionCheck:d="once",stabilityCheck:p="once"}=e;return Object.assign(u,{stabilityCheck:p,identityFunctionCheck:d})}},[o,n]),s=C.useMemo(()=>o.getState(),[o]);Lh(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==o.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,s]);const l=r||jt;return C.createElement(l.Provider,{value:i},t)}var Hh=Uh;function Mi(e=jt){return function(){const r=C.useContext(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return r}}var Cl=Mi();function Ol(e=jt){const t=e===jt?Cl:Mi(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var qh=Ol();function Yh(e=jt){const t=e===jt?qh:Ol(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Kh=Yh(),Gh=(e,t)=>e===t;function Xh(e=jt){const t=e===jt?Cl:Mi(e),r=(n,o={})=>{const{equalityFn:i=Gh}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!n)throw new Error("You must pass a selector to useSelector");if(typeof n!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof i!="function")throw new Error("You must pass a function as an equality function to useSelector")}const s=t(),{store:l,subscription:c,getServerState:u}=s,d=C.useRef(!0),p=C.useCallback({[n.name](y){const g=n(y);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof o=="function"?{}:o,{identityFunctionCheck:m,stabilityCheck:E}=s,{identityFunctionCheck:O,stabilityCheck:S}={stabilityCheck:E,identityFunctionCheck:m,...f};if(S==="always"||S==="once"&&d.current){const x=n(y);if(!i(g,x)){let w;try{throw new Error}catch(T){({stack:w}=T)}console.warn("Selector "+(n.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:y,selected:g,selected2:x,stack:w})}}if((O==="always"||O==="once"&&d.current)&&g===y){let x;try{throw new Error}catch(w){({stack:x}=w)}console.warn("Selector "+(n.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:x})}d.current&&(d.current=!1)}return g}}[n.name],[n]),b=Ih.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,u||l.getState,p,i);return C.useDebugValue(b),b};return Object.assign(r,{withTypes:()=>r}),r}var Jh=Xh(),Vr={},Tl;function Qh(){if(Tl)return Vr;Tl=1,Vr.__esModule=!0,Vr.PersistGate=void 0;var e=t(z);function t(y){if(y&&y.__esModule)return y;var g={};if(y!=null){for(var f in y)if(Object.prototype.hasOwnProperty.call(y,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(y,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=y[f]}}return g.default=y,g}function r(y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(f){return typeof f}:r=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r(y)}function n(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function o(y,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(y,m.key,m)}}function i(y,g,f){return g&&o(y.prototype,g),y}function s(y,g){return g&&(r(g)==="object"||typeof g=="function")?g:c(y)}function l(y){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(y)}function c(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function u(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),g&&d(y,g)}function d(y,g){return d=Object.setPrototypeOf||function(m,E){return m.__proto__=E,m},d(y,g)}function p(y,g,f){return g in y?Object.defineProperty(y,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):y[g]=f,y}var b=(function(y){u(g,y);function g(){var f,m;n(this,g);for(var E=arguments.length,O=new Array(E),S=0;S<E;S++)O[S]=arguments[S];return m=s(this,(f=l(g)).call.apply(f,[this].concat(O))),p(c(m),"state",{bootstrapped:!1}),p(c(m),"_unsubscribe",void 0),p(c(m),"handlePersistorState",function(){var x=m.props.persistor,w=x.getState(),T=w.bootstrapped;T&&(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 i(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 Vr.PersistGate=b,p(b,"defaultProps",{children:null,loading:null}),Vr}var Zh=Qh();function Me(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 eg=typeof Symbol=="function"&&Symbol.observable||"@@observable",Pl=eg,ji=()=>Math.random().toString(36).substring(7).split("").join("."),tg={INIT:`@@redux/INIT${ji()}`,REPLACE:`@@redux/REPLACE${ji()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ji()}`},Ht=tg;function Wr(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 rg(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(ig(e))return"date";if(og(e))return"error";const r=ng(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function ng(e){return typeof e.constructor=="function"?e.constructor.name:null}function og(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function ig(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function zt(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=rg(e)),t}function zi(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Me(2):`Expected the root reducer to be a function. Instead, received: '${zt(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Me(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 r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Me(1):`Expected the enhancer to be a function. Instead, received: '${zt(r)}'`);return r(zi)(e,t)}let n=e,o=t,i=new Map,s=i,l=0,c=!1;function u(){s===i&&(s=new Map,i.forEach((m,E)=>{s.set(E,m)}))}function d(){if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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 o}function p(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Me(4):`Expected the listener to be a function. Instead, received: '${zt(m)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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 E=!0;u();const O=l++;return s.set(O,m),function(){if(E){if(c)throw new Error(process.env.NODE_ENV==="production"?Me(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.");E=!1,u(),s.delete(O),i=null}}}function b(m){if(!Wr(m))throw new Error(process.env.NODE_ENV==="production"?Me(7):`Actions must be plain objects. Instead, the actual type was: '${zt(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"?Me(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"?Me(17):`Action "type" property must be a string. Instead, the actual type was: '${zt(m.type)}'. Value was: '${m.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?Me(9):"Reducers may not dispatch actions.");try{c=!0,o=n(o,m)}finally{c=!1}return(i=s).forEach(O=>{O()}),m}function y(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?Me(10):`Expected the nextReducer to be a function. Instead, received: '${zt(m)}`);n=m,b({type:Ht.REPLACE})}function g(){const m=p;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?Me(11):`Expected the observer to be an object. Instead, received: '${zt(E)}'`);function O(){const x=E;x.next&&x.next(d())}return O(),{unsubscribe:m(O)}},[Pl](){return this}}}return b({type:Ht.INIT}),{dispatch:b,subscribe:p,getState:d,replaceReducer:y,[Pl]:g}}function kl(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function sg(e,t,r,n){const o=Object.keys(t),i=r&&r.type===Ht.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.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(!Wr(e))return`The ${i} has unexpected type of "${zt(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const s=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!n[l]);if(s.forEach(l=>{n[l]=!0}),!(r&&r.type===Ht.REPLACE)&&s.length>0)return`Unexpected ${s.length>1?"keys":"key"} "${s.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function ag(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Ht.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Me(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 r(void 0,{type:Ht.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Me(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ht.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 Nl(e){const t=Object.keys(e),r={};for(let s=0;s<t.length;s++){const l=t[s];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&kl(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(r[l]=e[l])}const n=Object.keys(r);let o;process.env.NODE_ENV!=="production"&&(o={});let i;try{ag(r)}catch(s){i=s}return function(l={},c){if(i)throw i;if(process.env.NODE_ENV!=="production"){const p=sg(l,r,c,o);p&&kl(p)}let u=!1;const d={};for(let p=0;p<n.length;p++){const b=n[p],y=r[b],g=l[b],f=y(g,c);if(typeof f>"u"){const m=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?Me(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${b}" 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.`)}d[b]=f,u=u||f!==g}return u=u||n.length!==Object.keys(l).length,u?d:l}}function qn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function lg(...e){return t=>(r,n)=>{const o=t(r,n);let i=()=>{throw new Error(process.env.NODE_ENV==="production"?Me(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const s={getState:o.getState,dispatch:(c,...u)=>i(c,...u)},l=e.map(c=>c(s));return i=qn(...l)(o.dispatch),{...o,dispatch:i}}}function _l(e){return Wr(e)&&"type"in e&&typeof e.type=="string"}var Il=Symbol.for("immer-nothing"),Al=Symbol.for("immer-draftable"),Le=Symbol.for("immer-state"),cg=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 Ye(e,...t){if(process.env.NODE_ENV!=="production"){const r=cg[e],n=qt(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ke=Object,dr=Ke.getPrototypeOf,Yn="constructor",Kn="prototype",Bi="configurable",Gn="enumerable",Xn="writable",Ur="value",St=e=>!!e&&!!e[Le];function it(e){return e?Rl(e)||Qn(e)||!!e[Al]||!!e[Yn]?.[Al]||Zn(e)||eo(e):!1}var ug=Ke[Kn][Yn].toString(),$l=new WeakMap;function Rl(e){if(!e||!Fi(e))return!1;const t=dr(e);if(t===null||t===Ke[Kn])return!0;const r=Ke.hasOwnProperty.call(t,Yn)&&t[Yn];if(r===Object)return!0;if(!qt(r))return!1;let n=$l.get(r);return n===void 0&&(n=Function.toString.call(r),$l.set(r,n)),n===ug}function Hr(e,t,r=!0){qr(e)===0?(r?Reflect.ownKeys(e):Ke.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((n,o)=>t(o,n,e))}function qr(e){const t=e[Le];return t?t.type_:Qn(e)?1:Zn(e)?2:eo(e)?3:0}var Dl=(e,t,r=qr(e))=>r===2?e.has(t):Ke[Kn].hasOwnProperty.call(e,t),Li=(e,t,r=qr(e))=>r===2?e.get(t):e[t],Jn=(e,t,r,n=qr(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function dg(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Qn=Array.isArray,Zn=e=>e instanceof Map,eo=e=>e instanceof Set,Fi=e=>typeof e=="object",qt=e=>typeof e=="function",Vi=e=>typeof e=="boolean",Et=e=>e.copy_||e.base_,Wi=e=>e.modified_?e.copy_:e.base_;function Ui(e,t){if(Zn(e))return new Map(e);if(eo(e))return new Set(e);if(Qn(e))return Array[Kn].slice.call(e);const r=Rl(e);if(t===!0||t==="class_only"&&!r){const n=Ke.getOwnPropertyDescriptors(e);delete n[Le];let o=Reflect.ownKeys(n);for(let i=0;i<o.length;i++){const s=o[i],l=n[s];l[Xn]===!1&&(l[Xn]=!0,l[Bi]=!0),(l.get||l.set)&&(n[s]={[Bi]:!0,[Xn]:!0,[Gn]:l[Gn],[Ur]:e[s]})}return Ke.create(dr(e),n)}else{const n=dr(e);if(n!==null&&r)return{...e};const o=Ke.create(n);return Ke.assign(o,e)}}function Hi(e,t=!1){return ro(e)||St(e)||!it(e)||(qr(e)>1&&Ke.defineProperties(e,{set:to,add:to,clear:to,delete:to}),Ke.freeze(e),t&&Hr(e,(r,n)=>{Hi(n,!0)},!1)),e}function fg(){Ye(2)}var to={[Ur]:fg};function ro(e){return e===null||!Fi(e)?!0:Ke.isFrozen(e)}var no="MapSet",qi="Patches",Ml={};function fr(e){const t=Ml[e];return t||Ye(0,e),t}var pg=e=>!!Ml[e],Yr,jl=()=>Yr,hg=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pg(no)?fr(no):void 0});function zl(e,t){t&&(e.patchPlugin_=fr(qi),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Yi(e){Ki(e),e.drafts_.forEach(gg),e.drafts_=null}function Ki(e){e===Yr&&(Yr=e.parent_)}var Bl=e=>Yr=hg(Yr,e);function gg(e){const t=e[Le];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ll(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Le].modified_&&(Yi(t),Ye(4)),it(e)&&(e=Fl(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(r[Le].base_,e,t)}else e=Fl(t,r);return mg(t,e,!0),Yi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Il?e:void 0}function Fl(e,t){if(ro(t))return t;const r=t[Le];if(!r)return Gi(t,e.handledSet_,e);if(!oo(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);Ul(r,e)}return r.copy_}function mg(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Hi(t,r)}function Vl(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var oo=(e,t)=>e.scope_===t,yg=[];function Wl(e,t,r,n){const o=Et(e),i=e.type_;if(n!==void 0&&Li(o,n,i)===t){Jn(o,n,r,i);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;Hr(o,(c,u)=>{if(St(u)){const d=l.get(u)||[];d.push(c),l.set(u,d)}})}const s=e.draftLocations_.get(t)??yg;for(const l of s)Jn(o,l,r,i)}function bg(e,t,r){e.callbacks_.push(function(o){const i=t;if(!i||!oo(i,o))return;o.mapSetPlugin_?.fixSetContents(i);const s=Wi(i);Wl(e,i.draft_??i,s,r),Ul(i,o)})}function Ul(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const o=n.getPath(e);o&&n.generatePatches_(e,o,t)}Vl(e)}}function vg(e,t,r){const{scope_:n}=e;if(St(r)){const o=r[Le];oo(o,n)&&o.callbacks_.push(function(){io(e);const s=Wi(o);Wl(e,r,s,t)})}else it(r)&&e.callbacks_.push(function(){const i=Et(e);Li(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Gi(Li(e.copy_,t,e.type_),n.handledSet_,n)})}function Gi(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||St(e)||t.has(e)||!it(e)||ro(e)||(t.add(e),Hr(e,(n,o)=>{if(St(o)){const i=o[Le];if(oo(i,r)){const s=Wi(i);Jn(e,n,s,e.type_),Vl(i)}}else it(o)&&Gi(o,t,r)})),e}function xg(e,t){const r=Qn(e),n={type_:r?1:0,scope_:t?t.scope_:jl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=n,i=Xi;r&&(o=[n],i=Kr);const{revoke:s,proxy:l}=Proxy.revocable(o,i);return n.draft_=l,n.revoke_=s,[l,n]}var Xi={get(e,t){if(t===Le)return e;const r=Et(e);if(!Dl(r,t,e.type_))return wg(e,r,t);const n=r[t];if(e.finalized_||!it(n))return n;if(n===Ji(e.base_,t)){io(e);const o=e.type_===1?+t:t,i=Zi(e.scope_,n,e,o);return e.copy_[o]=i}return n},has(e,t){return t in Et(e)},ownKeys(e){return Reflect.ownKeys(Et(e))},set(e,t,r){const n=Hl(Et(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const o=Ji(Et(e),t),i=o?.[Le];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(dg(r,o)&&(r!==void 0||Dl(e.base_,t,e.type_)))return!0;io(e),Qi(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),vg(e,t,r)),!0},deleteProperty(e,t){return io(e),Ji(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Qi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Et(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Xn]:!0,[Bi]:e.type_!==1||t!=="length",[Gn]:n[Gn],[Ur]:r[t]}},defineProperty(){Ye(11)},getPrototypeOf(e){return dr(e.base_)},setPrototypeOf(){Ye(12)}},Kr={};Hr(Xi,(e,t)=>{Kr[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}),Kr.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ye(13),Kr.set.call(this,e,t,void 0)},Kr.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ye(14),Xi.set.call(this,e[0],t,r,e[0])};function Ji(e,t){const r=e[Le];return(r?Et(r):e)[t]}function wg(e,t,r){const n=Hl(t,r);return n?Ur in n?n[Ur]:n.get?.call(e.draft_):void 0}function Hl(e,t){if(!(t in e))return;let r=dr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=dr(r)}}function Qi(e){e.modified_||(e.modified_=!0,e.parent_&&Qi(e.parent_))}function io(e){e.copy_||(e.assigned_=new Map,e.copy_=Ui(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Sg=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(qt(t)&&!qt(r)){const i=r;r=t;const s=this;return function(c=i,...u){return s.produce(c,d=>r.call(this,d,...u))}}qt(r)||Ye(6),n!==void 0&&!qt(n)&&Ye(7);let o;if(it(t)){const i=Bl(this),s=Zi(i,t,void 0);let l=!0;try{o=r(s),l=!1}finally{l?Yi(i):Ki(i)}return zl(i,n),Ll(o,i)}else if(!t||!Fi(t)){if(o=r(t),o===void 0&&(o=t),o===Il&&(o=void 0),this.autoFreeze_&&Hi(o,!0),n){const i=[],s=[];fr(qi).generateReplacementPatches_(t,o,{patches_:i,inversePatches_:s}),n(i,s)}return o}else Ye(1,t)},this.produceWithPatches=(t,r)=>{if(qt(t))return(s,...l)=>this.produceWithPatches(s,c=>t(c,...l));let n,o;return[this.produce(t,r,(s,l)=>{n=s,o=l}),n,o]},Vi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Vi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Vi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){it(e)||Ye(8),St(e)&&(e=Eg(e));const t=Bl(this),r=Zi(t,e,void 0);return r[Le].isManual_=!0,Ki(t),r}finishDraft(e,t){const r=e&&e[Le];(!r||!r.isManual_)&&Ye(9);const{scope_:n}=r;return zl(n,t),Ll(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const o=t[r];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}r>-1&&(t=t.slice(r+1));const n=fr(qi).applyPatches_;return St(e)?n(e,t):this.produce(e,o=>n(o,t))}};function Zi(e,t,r,n){const[o,i]=Zn(t)?fr(no).proxyMap_(t,r):eo(t)?fr(no).proxySet_(t,r):xg(t,r);return(r?.scope_??jl()).drafts_.push(o),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?bg(r,i,n):i.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:u}=c;i.modified_&&u&&u.generatePatches_(i,[],c)}),o}function Eg(e){return St(e)||Ye(10,e),ql(e)}function ql(e){if(!it(e)||ro(e))return e;const t=e[Le];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ui(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ui(e,!0);return Hr(r,(o,i)=>{Jn(r,o,ql(i))},n),t&&(t.finalized_=!1),r}var Cg=new Sg,Yl=Cg.produce,Og=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const o={};e(o)===o&&(n=!0)}catch{}if(n){let o;try{throw new Error}catch(i){({stack:o}=i)}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:o})}}},Eg=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:s}=e,l=n(()=>({}),...o);if(!(l.apply(null,i)===l.apply(null,s))){let u;try{throw new Error}catch(d){({stack:u}=d)}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:o})}}},Tg=(e,t,r)=>{const{memoize:n,memoizeOptions:o}=t,{inputSelectorResults:i,inputSelectorResultsCopy:s}=e,l=n(()=>({}),...o);if(!(l.apply(null,i)===l.apply(null,s))){let u;try{throw new Error}catch(d){({stack:u}=d)}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:r,firstInputs:i,secondInputs:s,stack:u})}},Cg={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Og(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Tg(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Pg(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Yl=e=>Array.isArray(e)?e:[e];function kg(e){const t=Array.isArray(e[0])?e[0]:e;return Pg(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Kl(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Ng=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Cg,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Sg},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:Eg}}},_g=class{constructor(e){this.value=e}deref(){return this.value}},Ig=typeof WeakRef<"u"?WeakRef:_g,Ag=0,Gl=1;function io(){return{s:Ag,v:void 0,o:null,p:null}}function Xl(e,t={}){let r=io();const{resultEqualityCheck:n}=t;let o,i=0;function s(){let l=r;const{length:c}=arguments;for(let p=0,b=c;p<b;p++){const y=arguments[p];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(y);f===void 0?(l=io(),g.set(y,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(y);f===void 0?(l=io(),g.set(y,l)):l=f}}const u=l;let d;if(l.s===Gl)d=l.v;else if(d=e.apply(null,arguments),i++,n){const p=o?.deref?.()??o;p!=null&&n(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new Ig(d):d}return u.s=Gl,u.v=d,d}return s.clearCache=()=>{r=io(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function $g(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,l,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),Og(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...r,...c},{memoize:p,memoizeOptions:b=[],argsMemoize:y=Xl,argsMemoizeOptions:g=[],devModeChecks:f={}}=d,m=Yl(b),S=Yl(g),O=kg(o),w=p(function(){return i++,u.apply(null,arguments)},...m);let v=!0;const x=y(function(){s++;const P=Kl(O,arguments);if(l=w.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:I,inputStabilityCheck:j}=Ng(v,f);if(I.shouldRun&&I.run(u,P,l),j.shouldRun){const F=Kl(O,arguments);j.run({inputSelectorResults:P,inputSelectorResultsCopy:F},{memoize:p,memoizeOptions:m},arguments)}v&&(v=!1)}return l},...S);return Object.assign(x,{resultFunc:u,memoizedResultFunc:w,dependencies:O,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:y})};return Object.assign(n,{withTypes:()=>n}),n}var Rg=$g(Xl),Dg=Object.assign((e,t=Rg)=>{Tg(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,l,c)=>(s[r[c]]=l,s),{}))},{withTypes:()=>Dg});function Jl(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Mg=Jl(),jg=Jl,zg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Hn:Hn.apply(null,arguments)},Ql=e=>e&&typeof e.match=="function";function Kr(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Nl(n)&&n.type===e,r}function Bg(e){return typeof e=="function"&&"type"in e&&Ql(e)}function Fg(e){const t=e?`${e}`.split("/"):[],r=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(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Lg(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Bg}=e;return()=>r=>n=>(t(n)&&console.warn(Fg(n.type)),r(n))}function Zl(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const i=Date.now();r+=i-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
11
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:i,secondInputs:s,stack:u})}},Pg={inputStabilityCheck:"once",identityFunctionCheck:"once"};function kg(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ng(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function _g(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Kl=e=>Array.isArray(e)?e:[e];function Ig(e){const t=Array.isArray(e[0])?e[0]:e;return _g(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Gl(e,t){const r=[],{length:n}=e;for(let o=0;o<n;o++)r.push(e[o].apply(null,t));return r}var Ag=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Pg,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:Og},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:Tg}}},$g=class{constructor(e){this.value=e}deref(){return this.value}},Rg=typeof WeakRef<"u"?WeakRef:$g,Dg=0,Xl=1;function so(){return{s:Dg,v:void 0,o:null,p:null}}function Jl(e,t={}){let r=so();const{resultEqualityCheck:n}=t;let o,i=0;function s(){let l=r;const{length:c}=arguments;for(let p=0,b=c;p<b;p++){const y=arguments[p];if(typeof y=="function"||typeof y=="object"&&y!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(y);f===void 0?(l=so(),g.set(y,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(y);f===void 0?(l=so(),g.set(y,l)):l=f}}const u=l;let d;if(l.s===Xl)d=l.v;else if(d=e.apply(null,arguments),i++,n){const p=o?.deref?.()??o;p!=null&&n(p,d)&&(d=p,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new Rg(d):d}return u.s=Xl,u.v=d,d}return s.clearCache=()=>{r=so(),s.resetResultsCount()},s.resultsCount=()=>i,s.resetResultsCount=()=>{i=0},s}function Mg(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...o)=>{let i=0,s=0,l,c={},u=o.pop();typeof u=="object"&&(c=u,u=o.pop()),kg(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...r,...c},{memoize:p,memoizeOptions:b=[],argsMemoize:y=Jl,argsMemoizeOptions:g=[],devModeChecks:f={}}=d,m=Kl(b),E=Kl(g),O=Ig(o),S=p(function(){return i++,u.apply(null,arguments)},...m);let x=!0;const w=y(function(){s++;const P=Gl(O,arguments);if(l=S.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:I,inputStabilityCheck:j}=Ag(x,f);if(I.shouldRun&&I.run(u,P,l),j.shouldRun){const L=Gl(O,arguments);j.run({inputSelectorResults:P,inputSelectorResultsCopy:L},{memoize:p,memoizeOptions:m},arguments)}x&&(x=!1)}return l},...E);return Object.assign(w,{resultFunc:u,memoizedResultFunc:S,dependencies:O,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:p,argsMemoize:y})};return Object.assign(n,{withTypes:()=>n}),n}var jg=Mg(Jl),zg=Object.assign((e,t=jg)=>{Ng(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((s,l,c)=>(s[r[c]]=l,s),{}))},{withTypes:()=>zg});function Ql(e){return({dispatch:r,getState:n})=>o=>i=>typeof i=="function"?i(r,n,e):o(i)}var Bg=Ql(),Lg=Ql,Fg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qn:qn.apply(null,arguments)},Zl=e=>e&&typeof e.match=="function";function Gr(e,t){function r(...n){if(t){let o=t(...n);if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(0):"prepareAction did not return an object");return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>_l(n)&&n.type===e,r}function Vg(e){return typeof e=="function"&&"type"in e&&Zl(e)}function Wg(e){const t=e?`${e}`.split("/"):[],r=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(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}function Ug(e={}){if(process.env.NODE_ENV==="production")return()=>r=>n=>r(n);const{isActionCreator:t=Vg}=e;return()=>r=>n=>(t(n)&&console.warn(Wg(n.type)),r(n))}function ec(e,t){let r=0;return{measureTime(n){const o=Date.now();try{return n()}finally{const i=Date.now();r+=i-o}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}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 ec=class zn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zn.prototype)}static get[Symbol.species](){return zn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zn(...t[0].concat(this)):new zn(...t.concat(this))}};function tc(e){return it(e)?ql(e,()=>{}):e}function so(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vg(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function Wg(e,t,r){const n=rc(e,t,r);return{detectMutations(){return nc(e,t,n,r)}}}function rc(e,t=[],r,n="",o=new Set){const i={value:r};if(!e(r)&&!o.has(r)){o.add(r),i.children={};const s=t.length>0;for(const l in r){const c=n?n+"."+l:l;s&&t.some(d=>d instanceof RegExp?d.test(c):c===d)||(i.children[l]=rc(e,t,r[l],c))}}return i}function nc(e,t=[],r,n,o=!1,i=""){const s=r?r.value:void 0,l=s===n;if(o&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(s)||e(n))return{wasMutated:!1};const c={};for(let d in r.children)c[d]=!0;for(let d in n)c[d]=!0;const u=t.length>0;for(let d in c){const p=i?i+"."+d:d;if(u&&t.some(g=>g instanceof RegExp?g.test(p):p===g))continue;const b=nc(e,t,r.children[d],n[d],l,p);if(b.wasMutated)return b}return{wasMutated:!1}}function Ug(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(l,c,u,d){return JSON.stringify(l,r(c,d),u)},r=function(l,c){let u=[],d=[];return c||(c=function(p,b){return u[0]===b?"[Circular ~]":"[Circular ~."+d.slice(0,u.indexOf(b)).join(".")+"]"}),function(p,b){if(u.length>0){var y=u.indexOf(this);~y?u.splice(y+1):u.push(this),~y?d.splice(y,1/0,p):d.push(p),~u.indexOf(b)&&(b=c.call(this,p,b))}else u.push(b);return l==null?b:l.call(this,p,b)}},{isImmutable:n=Vg,ignoredPaths:o,warnAfter:i=32}=e;const s=Wg.bind(null,n,o);return({getState:l})=>{let c=l(),u=s(c),d;return p=>b=>{const y=Zl(i,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Se(19):`A state mutation was detected between dispatches, in the path '${d.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=p(b);return y.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Se(20):`A state mutation was detected inside a dispatch, in the path: ${d.path||""}. Take a look at the reducer(s) handling the action ${t(b)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),g}}}}function oc(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Vr(e)}function Zi(e,t="",r=oc,n,o=[],i){let s;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const l=n!=null?n(e):Object.entries(e),c=o.length>0;for(const[u,d]of l){const p=t?t+"."+u:u;if(!(c&&o.some(y=>y instanceof RegExp?y.test(p):p===y))){if(!r(d))return{keyPath:p,value:d};if(typeof d=="object"&&(s=Zi(d,p,r,n,o,i),s))return s}}return i&&ic(e)&&i.add(e),!1}function ic(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!ic(t))return!1;return!0}function Hg(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=oc,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:s=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,d=!u&&WeakSet?new WeakSet:void 0;return p=>b=>y=>{if(!Nl(y))return b(y);const g=b(y),f=Zl(s,"SerializableStateInvariantMiddleware");return!c&&!(n.length&&n.indexOf(y.type)!==-1)&&f.measureTime(()=>{const m=Zi(y,"",t,r,o,d);if(m){const{keyPath:S,value:O}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${S}\`. Value:`,O,`
14
+ It is disabled in production builds, so you don't need to worry about that.`)}}}var tc=class Bn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Bn.prototype)}static get[Symbol.species](){return Bn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Bn(...t[0].concat(this)):new Bn(...t.concat(this))}};function rc(e){return it(e)?Yl(e,()=>{}):e}function ao(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Hg(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function qg(e,t,r){const n=nc(e,t,r);return{detectMutations(){return oc(e,t,n,r)}}}function nc(e,t=[],r,n="",o=new Set){const i={value:r};if(!e(r)&&!o.has(r)){o.add(r),i.children={};const s=t.length>0;for(const l in r){const c=n?n+"."+l:l;s&&t.some(d=>d instanceof RegExp?d.test(c):c===d)||(i.children[l]=nc(e,t,r[l],c))}}return i}function oc(e,t=[],r,n,o=!1,i=""){const s=r?r.value:void 0,l=s===n;if(o&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(s)||e(n))return{wasMutated:!1};const c={};for(let d in r.children)c[d]=!0;for(let d in n)c[d]=!0;const u=t.length>0;for(let d in c){const p=i?i+"."+d:d;if(u&&t.some(g=>g instanceof RegExp?g.test(p):p===g))continue;const b=oc(e,t,r.children[d],n[d],l,p);if(b.wasMutated)return b}return{wasMutated:!1}}function Yg(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{let t=function(l,c,u,d){return JSON.stringify(l,r(c,d),u)},r=function(l,c){let u=[],d=[];return c||(c=function(p,b){return u[0]===b?"[Circular ~]":"[Circular ~."+d.slice(0,u.indexOf(b)).join(".")+"]"}),function(p,b){if(u.length>0){var y=u.indexOf(this);~y?u.splice(y+1):u.push(this),~y?d.splice(y,1/0,p):d.push(p),~u.indexOf(b)&&(b=c.call(this,p,b))}else u.push(b);return l==null?b:l.call(this,p,b)}},{isImmutable:n=Hg,ignoredPaths:o,warnAfter:i=32}=e;const s=qg.bind(null,n,o);return({getState:l})=>{let c=l(),u=s(c),d;return p=>b=>{const y=ec(i,"ImmutableStateInvariantMiddleware");y.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Se(19):`A state mutation was detected between dispatches, in the path '${d.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=p(b);return y.measureTime(()=>{if(c=l(),d=u.detectMutations(),u=s(c),d.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Se(20):`A state mutation was detected inside a dispatch, in the path: ${d.path||""}. Take a look at the reducer(s) handling the action ${t(b)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),y.warnIfExceeded(),g}}}}function ic(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||Wr(e)}function es(e,t="",r=ic,n,o=[],i){let s;if(!r(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||i?.has(e))return!1;const l=n!=null?n(e):Object.entries(e),c=o.length>0;for(const[u,d]of l){const p=t?t+"."+u:u;if(!(c&&o.some(y=>y instanceof RegExp?y.test(p):p===y))){if(!r(d))return{keyPath:p,value:d};if(typeof d=="object"&&(s=es(d,p,r,n,o,i),s))return s}}return i&&sc(e)&&i.add(e),!1}function sc(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!sc(t))return!1;return!0}function Kg(e={}){if(process.env.NODE_ENV==="production")return()=>t=>r=>t(r);{const{isSerializable:t=ic,getEntries:r,ignoredActions:n=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:s=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,d=!u&&WeakSet?new WeakSet:void 0;return p=>b=>y=>{if(!_l(y))return b(y);const g=b(y),f=ec(s,"SerializableStateInvariantMiddleware");return!c&&!(n.length&&n.indexOf(y.type)!==-1)&&f.measureTime(()=>{const m=es(y,"",t,r,o,d);if(m){const{keyPath:E,value:O}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${E}\`. Value:`,O,`
15
15
  Take a look at the logic that dispatched this action: `,y,`
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=p.getState(),S=Zi(m,"",t,r,i,d);if(S){const{keyPath:O,value:w}=S;console.error(`A non-serializable value was detected in the state, in the path: \`${O}\`. Value:`,w,`
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=p.getState(),E=es(m,"",t,r,i,d);if(E){const{keyPath:O,value:S}=E;console.error(`A non-serializable value was detected in the state, in the path: \`${O}\`. Value:`,S,`
18
18
  Take a look at the reducer(s) handling this action type: ${y.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 ao(e){return typeof e=="boolean"}var qg=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new ec;if(r&&(ao(r)?s.push(Mg):s.push(jg(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let l={};ao(n)||(l=n),s.unshift(Ug(l))}if(o){let l={};ao(o)||(l=o),s.push(Hg(l))}if(i){let l={};ao(i)||(l=i),s.unshift(Lg(l))}}return s},Yg="RTK_autoBatch",sc=e=>t=>{setTimeout(t,e)},Kg=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,s=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sc(10):e.type==="callback"?e.queueNotification:sc(e.timeout),u=()=>{s=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const p=()=>o&&d(),b=n.subscribe(p);return l.add(d),()=>{b(),l.delete(d)}},dispatch(d){try{return o=!d?.meta?.[Yg],i=!o,i&&(s||(s=!0,c(u))),n.dispatch(d)}finally{o=!0}}})},Gg=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new ec(e);return n&&o.push(Kg(typeof n=="object"?n:void 0)),o};function Xg(e){const t=qg(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let c;if(typeof r=="function")c=r;else if(Vr(r))c=kl(r);else throw new Error(process.env.NODE_ENV==="production"?Se(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"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Se(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?Se(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"?Se(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let f=new Set;u.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Se(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let d=Hn;o&&(d=zg({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const p=ig(...u),b=Gg(p);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Se(5):"`enhancers` field must be a callback");let y=typeof l=="function"?l(b):b();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?Se(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Se(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!y.includes(p)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...y);return ji(c,s,g)}function ac(e){const t={},r=[];let n;const o={addCase(i,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Se(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Se(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof i=="string"?i:i.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Se(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Se(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=s,o},addAsyncThunk(i,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return s.pending&&(t[i.pending.type]=s.pending),s.rejected&&(t[i.rejected.type]=s.rejected),s.fulfilled&&(t[i.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:i.settled,reducer:s.settled}),o},addMatcher(i,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function Jg(e){return typeof e=="function"}function Qg(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Se(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=ac(t),i;if(Jg(e))i=()=>tc(e());else{const l=tc(e);i=()=>l}function s(l=i(),c){let u=[r[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[o]),u.reduce((d,p)=>{if(p)if(wt(d)){const y=p(d,c);return y===void 0?d:y}else{if(it(d))return ql(d,b=>p(b,c));{const b=p(d,c);if(b===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return d},l)}return s.getInitialState=i,s}var Zg=(e,t)=>Ql(e)?e.match(t):e(t);function em(...e){return t=>e.some(r=>Zg(r,t))}var tm="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",rm=(e=21)=>{let t="",r=e;for(;r--;)t+=tm[Math.random()*64|0];return t},nm=["name","message","stack","code"],es=class{constructor(e,t){this.payload=e,this.meta=t}_type},lc=class{constructor(e,t){this.payload=e,this.meta=t}_type},om=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of nm)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},cc="External signal was aborted",im=(()=>{function e(t,r,n){const o=Kr(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),i=Kr(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),s=Kr(t+"/rejected",(c,u,d,p,b)=>({payload:p,error:(n&&n.serializeError||om)(c||"Rejected"),meta:{...b||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:u}={}){return(d,p,b)=>{const y=n?.idGenerator?n.idGenerator(c):rm(),g=new AbortController;let f,m;function S(w){m=w,g.abort()}u&&(u.aborted?S(cc):u.addEventListener("abort",()=>S(cc),{once:!0}));const O=(async function(){let w;try{let x=n?.condition?.(c,{getState:p,extra:b});if(am(x)&&(x=await x),x===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((P,I)=>{f=()=>{I({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});d(i(y,c,n?.getPendingMeta?.({requestId:y,arg:c},{getState:p,extra:b}))),w=await Promise.race([T,Promise.resolve(r(c,{dispatch:d,getState:p,extra:b,requestId:y,signal:g.signal,abort:S,rejectWithValue:(P,I)=>new es(P,I),fulfillWithValue:(P,I)=>new lc(P,I)})).then(P=>{if(P instanceof es)throw P;return P instanceof lc?o(P.payload,y,c,P.meta):o(P,y,c)})])}catch(x){w=x instanceof es?s(null,y,c,x.payload,x.meta):s(x,y,c)}finally{f&&g.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&s.match(w)&&w.meta.condition||d(w),w})();return Object.assign(O,{abort:S,requestId:y,arg:c,unwrap(){return O.then(sm)}})}}return Object.assign(l,{pending:i,rejected:s,fulfilled:o,settled:em(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function sm(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function am(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var lm=Symbol.for("rtk-slice-createasyncthunk");function cm(e,t){return`${e}/${t}`}function um({creators:e}={}){const t=e?.asyncThunk?.[lm];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof n.reducers=="function"?n.reducers(pm()):n.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(w,v){const x=typeof w=="string"?w:w.type;if(!x)throw new Error(process.env.NODE_ENV==="production"?Se(12):"`context.addCase` cannot be called with an empty action type");if(x in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Se(13):"`context.addCase` cannot be called with two reducers for the same action type: "+x);return c.sliceCaseReducersByType[x]=v,u},addMatcher(w,v){return c.sliceMatchers.push({matcher:w,reducer:v}),u},exposeAction(w,v){return c.actionCreators[w]=v,u},exposeCaseReducer(w,v){return c.sliceCaseReducersByName[w]=v,u}};l.forEach(w=>{const v=s[w],x={reducerName:w,type:cm(o,w),createNotation:typeof n.reducers=="function"};gm(v)?ym(x,v,u,t):hm(x,v,u)});function d(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Se(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[w={},v=[],x=void 0]=typeof n.extraReducers=="function"?ac(n.extraReducers):[n.extraReducers],T={...w,...c.sliceCaseReducersByType};return Qg(n.initialState,P=>{for(let I in T)P.addCase(I,T[I]);for(let I of c.sliceMatchers)P.addMatcher(I.matcher,I.reducer);for(let I of v)P.addMatcher(I.matcher,I.reducer);x&&P.addDefaultCase(x)})}const p=w=>w,b=new Map,y=new WeakMap;let g;function f(w,v){return g||(g=d()),g(w,v)}function m(){return g||(g=d()),g.getInitialState()}function S(w,v=!1){function x(P){let I=P[w];if(typeof I>"u"){if(v)I=so(y,x,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Se(15):"selectSlice returned undefined for an uninjected slice reducer")}return I}function T(P=p){const I=so(b,v,()=>new WeakMap);return so(I,P,()=>{const j={};for(const[F,W]of Object.entries(n.selectors??{}))j[F]=dm(W,P,()=>so(y,P,m),v);return j})}return{reducerPath:w,getSelectors:T,get selectors(){return T(x)},selectSlice:x}}const O={name:o,reducer:f,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...S(i),injectInto(w,{reducerPath:v,...x}={}){const T=v??i;return w.inject({reducerPath:T,reducer:f},x),{...O,...S(T,!0)}}};return O}}function dm(e,t,r,n){function o(i,...s){let l=t(i);if(typeof l>"u"){if(n)l=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Se(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...s)}return o.unwrapped=e,o}var fm=um();function pm(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function hm({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!mm(n))throw new Error(process.env.NODE_ENV==="production"?Se(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?Kr(e,s):Kr(e))}function gm(e){return e._reducerDefinitionType==="asyncThunk"}function mm(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ym({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=r,p=o(e,i,d);n.exposeAction(t,p),s&&n.addCase(p.fulfilled,s),l&&n.addCase(p.pending,l),c&&n.addCase(p.rejected,c),u&&n.addMatcher(p.settled,u),n.exposeCaseReducer(t,{fulfilled:s||lo,pending:l||lo,rejected:c||lo,settled:u||lo})}function lo(){}function Se(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 ts="persist:",uc="persist/FLUSH",rs="persist/REHYDRATE",dc="persist/PAUSE",fc="persist/PERSIST",pc="persist/PURGE",hc="persist/REGISTER",bm=-1;function Gr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gr=function(r){return typeof r}:Gr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Gr(e)}function gc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gc(r,!0).forEach(function(n){xm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wm(e,t,r,n){var o=n.debug,i=vm({},r);return e&&Gr(e)==="object"&&Object.keys(e).forEach(function(s){if(s!=="_persist"){if(t[s]!==r[s]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",s);return}i[s]=e[s]}}),process.env.NODE_ENV!=="production"&&o&&e&&Gr(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),i}function Sm(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:ts).concat(e.key),s=e.storage,l;e.serialize===!1?l=function(x){return x}:typeof e.serialize=="function"?l=e.serialize:l=Em;var c=e.writeFailHandler||null,u={},d={},p=[],b=null,y=null,g=function(x){Object.keys(x).forEach(function(T){S(T)&&u[T]!==x[T]&&p.indexOf(T)===-1&&p.push(T)}),Object.keys(u).forEach(function(T){x[T]===void 0&&S(T)&&p.indexOf(T)===-1&&u[T]!==void 0&&p.push(T)}),b===null&&(b=setInterval(f,o)),u=x};function f(){if(p.length===0){b&&clearInterval(b),b=null;return}var v=p.shift(),x=n.reduce(function(T,P){return P.in(T,v,u)},u[v]);if(x!==void 0)try{d[v]=l(x)}catch(T){console.error("redux-persist/createPersistoid: error serializing state",T)}else delete d[v];p.length===0&&m()}function m(){Object.keys(d).forEach(function(v){u[v]===void 0&&delete d[v]}),y=s.setItem(i,l(d)).catch(O)}function S(v){return!(r&&r.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function O(v){c&&c(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var w=function(){for(;p.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:w}}function Em(e){return JSON.stringify(e)}function Cm(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ts).concat(e.key),n=e.storage,o=e.debug,i;return e.deserialize===!1?i=function(l){return l}:typeof e.deserialize=="function"?i=e.deserialize:i=Om,n.getItem(r).then(function(s){if(s)try{var l={},c=i(s);return Object.keys(c).forEach(function(u){l[u]=t.reduceRight(function(d,p){return p.out(d,u,c)},i(c[u]))}),l}catch(u){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(s),u),u}else return})}function Om(e){return JSON.parse(e)}function Tm(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:ts).concat(e.key);return t.removeItem(r,Pm)}function Pm(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mc(r,!0).forEach(function(n){km(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function km(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nm(e,t){if(e==null)return{};var r=_m(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _m(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Im=5e3;function Am(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 r=e.version!==void 0?e.version:bm;e.debug;var n=e.stateReconciler===void 0?wm:e.stateReconciler,o=e.getStoredState||Cm,i=e.timeout!==void 0?e.timeout:Im,s=null,l=!1,c=!0,u=function(p){return p._persist.rehydrated&&s&&!c&&s.update(p),p};return function(d,p){var b=d||{},y=b._persist,g=Nm(b,["_persist"]),f=g;if(p.type===fc){var m=!1,S=function(I,j){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),I,j),m||(p.rehydrate(e.key,I,j),m=!0)};if(i&&setTimeout(function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=Sm(e)),y)return Et({},t(f,p),{_persist:y});if(typeof p.rehydrate!="function"||typeof p.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 p.register(e.key),o(e).then(function(P){var I=e.migrate||function(j,F){return Promise.resolve(j)};I(P,r).then(function(j){S(j)},function(j){process.env.NODE_ENV!=="production"&&j&&console.error("redux-persist: migration error",j),S(void 0,j)})},function(P){S(void 0,P)}),Et({},t(f,p),{_persist:{version:r,rehydrated:!1}})}else{if(p.type===pc)return l=!0,p.result(Tm(e)),Et({},t(f,p),{_persist:y});if(p.type===uc)return p.result(s&&s.flush()),Et({},t(f,p),{_persist:y});if(p.type===dc)c=!0;else if(p.type===rs){if(l)return Et({},f,{_persist:Et({},y,{rehydrated:!0})});if(p.key===e.key){var O=t(f,p),w=p.payload,v=n!==!1&&w!==void 0?n(w,d,O,e):O,x=Et({},v,{_persist:Et({},y,{rehydrated:!0})});return u(x)}}}if(!y)return t(d,p);var T=t(f,p);return T===f?d:u(Et({},T,{_persist:y}))}}function yc(e){return Dm(e)||Rm(e)||$m()}function $m(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function Rm(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Dm(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function bc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ns(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bc(r,!0).forEach(function(n){Mm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vc={registry:[],bootstrapped:!1},jm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vc,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case hc:return ns({},t,{registry:[].concat(yc(t.registry),[r.key])});case rs:var n=t.registry.indexOf(r.key),o=yc(t.registry);return o.splice(n,1),ns({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function zm(e,t,r){if(process.env.NODE_ENV!=="production"){var n={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(u){n[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 i=ji(jm,vc,void 0),s=function(d){i.dispatch({type:hc,key:d})},l=function(d,p,b){var y={type:rs,payload:p,err:b,key:d};e.dispatch(y),i.dispatch(y)},c=ns({},i,{purge:function(){var d=[];return e.dispatch({type:pc,result:function(b){d.push(b)}}),Promise.all(d)},flush:function(){var d=[];return e.dispatch({type:uc,result:function(b){d.push(b)}}),Promise.all(d)},pause:function(){e.dispatch({type:dc})},persist:function(){e.dispatch({type:fc,register:s,rehydrate:l})}});return c.persist(),c}function xc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Bm}=Object.prototype,{getPrototypeOf:os}=Object,{iterator:co,toStringTag:wc}=Symbol,uo=(e=>t=>{const r=Bm.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>uo(t)===e),fo=e=>t=>typeof t===e,{isArray:fr}=Array,pr=fo("undefined");function Xr(e){return e!==null&&!pr(e)&&e.constructor!==null&&!pr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Sc=st("ArrayBuffer");function Fm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Sc(e.buffer),t}const Lm=fo("string"),We=fo("function"),Ec=fo("number"),Jr=e=>e!==null&&typeof e=="object",Vm=e=>e===!0||e===!1,po=e=>{if(uo(e)!=="object")return!1;const t=os(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(wc in e)&&!(co in e)},Wm=e=>{if(!Jr(e)||Xr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Um=st("Date"),Hm=st("File"),qm=st("Blob"),Ym=st("FileList"),Km=e=>Jr(e)&&We(e.pipe),Gm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=uo(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Xm=st("URLSearchParams"),[Jm,Qm,Zm,ey]=["ReadableStream","Request","Response","Headers"].map(st),ty=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),fr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Xr(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function Cc(e,t){if(Xr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const qt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Oc=e=>!pr(e)&&e!==qt;function is(){const{caseless:e,skipUndefined:t}=Oc(this)&&this||{},r={},n=(o,i)=>{const s=e&&Cc(r,i)||i;po(r[s])&&po(o)?r[s]=is(r[s],o):po(o)?r[s]=is({},o):fr(o)?r[s]=o.slice():(!t||!pr(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Qr(arguments[o],n);return r}const ry=(e,t,r,{allOwnKeys:n}={})=>(Qr(t,(o,i)=>{r&&We(o)?e[i]=xc(o,r):e[i]=o},{allOwnKeys:n}),e),ny=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),oy=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},iy=(e,t,r,n)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&os(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},sy=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},ay=e=>{if(!e)return null;if(fr(e))return e;let t=e.length;if(!Ec(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},ly=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&os(Uint8Array)),cy=(e,t)=>{const n=(e&&e[co]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},uy=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},dy=st("HTMLFormElement"),fy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Tc=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),py=st("RegExp"),Pc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Qr(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},hy=e=>{Pc(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},gy=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return fr(e)?n(e):n(String(e).split(t)),r},my=()=>{},yy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function by(e){return!!(e&&We(e.append)&&e[wc]==="FormData"&&e[co])}const vy=e=>{const t=new Array(10),r=(n,o)=>{if(Jr(n)){if(t.indexOf(n)>=0)return;if(Xr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=fr(n)?[]:{};return Qr(n,(s,l)=>{const c=r(s,o+1);!pr(c)&&(i[l]=c)}),t[o]=void 0,i}}return n};return r(e,0)},xy=st("AsyncFunction"),wy=e=>e&&(Jr(e)||We(e))&&We(e.then)&&We(e.catch),kc=((e,t)=>e?setImmediate:t?((r,n)=>(qt.addEventListener("message",({source:o,data:i})=>{o===qt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),qt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(qt.postMessage)),Sy=typeof queueMicrotask<"u"?queueMicrotask.bind(qt):typeof process<"u"&&process.nextTick||kc,k={isArray:fr,isArrayBuffer:Sc,isBuffer:Xr,isFormData:Gm,isArrayBufferView:Fm,isString:Lm,isNumber:Ec,isBoolean:Vm,isObject:Jr,isPlainObject:po,isEmptyObject:Wm,isReadableStream:Jm,isRequest:Qm,isResponse:Zm,isHeaders:ey,isUndefined:pr,isDate:Um,isFile:Hm,isBlob:qm,isRegExp:py,isFunction:We,isStream:Km,isURLSearchParams:Xm,isTypedArray:ly,isFileList:Ym,forEach:Qr,merge:is,extend:ry,trim:ty,stripBOM:ny,inherits:oy,toFlatObject:iy,kindOf:uo,kindOfTest:st,endsWith:sy,toArray:ay,forEachEntry:cy,matchAll:uy,isHTMLForm:dy,hasOwnProperty:Tc,hasOwnProp:Tc,reduceDescriptors:Pc,freezeMethods:hy,toObjectSet:gy,toCamelCase:fy,noop:my,toFiniteNumber:yy,findKey:Cc,global:qt,isContextDefined:Oc,isSpecCompliantForm:by,toJSONObject:vy,isAsyncFn:xy,isThenable:wy,setImmediate:kc,asap:Sy,isIterable:e=>e!=null&&We(e[co])};function ae(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}k.inherits(ae,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const Nc=ae.prototype,_c={};["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=>{_c[e]={value:e}}),Object.defineProperties(ae,_c),Object.defineProperty(Nc,"isAxiosError",{value:!0}),ae.from=(e,t,r,n,o,i)=>{const s=Object.create(Nc);k.toFlatObject(e,s,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ae.call(s,l,c,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const Ey=null;function ss(e){return k.isPlainObject(e)||k.isArray(e)}function Ic(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Ac(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ic(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Cy(e){return k.isArray(e)&&!e.some(ss)}const Oy=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function ho(e,t,r){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=k.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!k.isUndefined(m[f])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(k.isBoolean(g))return g.toString();if(!c&&k.isBlob(g))throw new ae("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,f,m){let S=g;if(g&&!m&&typeof g=="object"){if(k.endsWith(f,"{}"))f=n?f:f.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&Cy(g)||(k.isFileList(g)||k.endsWith(f,"[]"))&&(S=k.toArray(g)))return f=Ic(f),S.forEach(function(w,v){!(k.isUndefined(w)||w===null)&&t.append(s===!0?Ac([f],v,i):s===null?f:f+"[]",u(w))}),!1}return ss(g)?!0:(t.append(Ac(m,f,i),u(g)),!1)}const p=[],b=Object.assign(Oy,{defaultVisitor:d,convertValue:u,isVisitable:ss});function y(g,f){if(!k.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(g),k.forEach(g,function(S,O){(!(k.isUndefined(S)||S===null)&&o.call(t,S,k.isString(O)?O.trim():O,f,b))===!0&&y(S,f?f.concat(O):[O])}),p.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return y(e),t}function $c(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function as(e,t){this._pairs=[],e&&ho(e,this,t)}const Rc=as.prototype;Rc.append=function(t,r){this._pairs.push([t,r])},Rc.toString=function(t){const r=t?function(n){return t.call(this,n,$c)}:$c;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ty(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Dc(e,t,r){if(!t)return e;const n=r&&r.encode||Ty;k.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=k.isURLSearchParams(t)?t.toString():new as(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mc{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(n){n!==null&&t(n)})}}const jc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Py={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:as,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ls=typeof window<"u"&&typeof document<"u",cs=typeof navigator=="object"&&navigator||void 0,ky=ls&&(!cs||["ReactNative","NativeScript","NS"].indexOf(cs.product)<0),Ny=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",_y=ls&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ls,hasStandardBrowserEnv:ky,hasStandardBrowserWebWorkerEnv:Ny,navigator:cs,origin:_y},Symbol.toStringTag,{value:"Module"})),...Py};function Iy(e,t){return ho(e,new ze.classes.URLSearchParams,{visitor:function(r,n,o,i){return ze.isNode&&k.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Ay(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $y(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function zc(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=r.length;return s=!s&&k.isArray(o)?o.length:s,c?(k.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!l):((!o[s]||!k.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&k.isArray(o[s])&&(o[s]=$y(o[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const r={};return k.forEachEntry(e,(n,o)=>{t(Ay(n),o,r,0)}),r}return null}function Ry(e,t,r){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Zr={transitional:jc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return o?JSON.stringify(zc(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Iy(t,this.formSerializer).toString();if((l=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return ho(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Ry(t)):t}],transformResponse:[function(t){const r=this.transitional||Zr.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?ae.from(l,ae.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:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Zr.headers[e]={}});const Dy=k.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"]),My=e=>{const t={};let r,n,o;return e&&e.split(`
20
- `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&Dy[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Bc=Symbol("internals");function en(e){return e&&String(e).trim().toLowerCase()}function go(e){return e===!1||e==null?e:k.isArray(e)?e.map(go):String(e)}function jy(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const zy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function us(e,t,r,n,o){if(k.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!k.isString(t)){if(k.isString(n))return t.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(t)}}function By(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Fy(e,t){const r=k.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,c,u){const d=en(c);if(!d)throw new Error("header name must be a non-empty string");const p=k.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=go(l))}const s=(l,c)=>k.forEach(l,(u,d)=>i(u,d,c));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(k.isString(t)&&(t=t.trim())&&!zy(t))s(My(t),r);else if(k.isObject(t)&&k.isIterable(t)){let l={},c,u;for(const d of t){if(!k.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?k.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}s(l,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=en(t),t){const n=k.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return jy(o);if(k.isFunction(r))return r.call(this,o,n);if(k.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=en(t),t){const n=k.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||us(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=en(s),s){const l=k.findKey(n,s);l&&(!r||us(n,n[l],l,r))&&(delete n[l],o=!0)}}return k.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||us(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return k.forEach(this,(o,i)=>{const s=k.findKey(n,i);if(s){r[s]=go(o),delete r[i];return}const l=t?By(i):String(i).trim();l!==i&&delete r[i],r[l]=go(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return k.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&k.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Bc]=this[Bc]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=en(s);n[l]||(Fy(o,s),n[l]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Ue.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),k.freezeMethods(Ue);function ds(e,t){const r=this||Zr,n=t||r,o=Ue.from(n.headers);let i=n.data;return k.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fc(e){return!!(e&&e.__CANCEL__)}function hr(e,t,r){ae.call(this,e??"canceled",ae.ERR_CANCELED,t,r),this.name="CanceledError"}k.inherits(hr,ae,{__CANCEL__:!0});function Lc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ae("Request failed with status code "+r.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Ly(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vy(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[i];s||(s=u),r[o]=c,n[o]=u;let p=i,b=0;for(;p!==o;)b+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const y=d&&u-d;return y?Math.round(b*1e3/y):void 0}}function Wy(e,t){let r=0,n=1e3/t,o,i;const s=(u,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),p=d-r;p>=n?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},n-p)))},()=>o&&s(o)]}const mo=(e,t,r=3)=>{let n=0;const o=Vy(50,250);return Wy(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),d=s<=l;n=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},r)},Vc=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Wc=e=>(...t)=>k.asap(()=>e(...t)),Uy=ze.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ze.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,Hy=ze.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];k.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),k.isString(n)&&l.push(`path=${n}`),k.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),k.isString(s)&&l.push(`SameSite=${s}`),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 qy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Uc(e,t,r){let n=!qy(t);return e&&(n||r==!1)?Yy(e,t):t}const Hc=e=>e instanceof Ue?{...e}:e;function Yt(e,t){t=t||{};const r={};function n(u,d,p,b){return k.isPlainObject(u)&&k.isPlainObject(d)?k.merge.call({caseless:b},u,d):k.isPlainObject(d)?k.merge({},d):k.isArray(d)?d.slice():d}function o(u,d,p,b){if(k.isUndefined(d)){if(!k.isUndefined(u))return n(void 0,u,p,b)}else return n(u,d,p,b)}function i(u,d){if(!k.isUndefined(d))return n(void 0,d)}function s(u,d){if(k.isUndefined(d)){if(!k.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,p){if(p in t)return n(u,d);if(p in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,p)=>o(Hc(u),Hc(d),p,!0)};return k.forEach(Object.keys({...e,...t}),function(d){const p=c[d]||o,b=p(e[d],t[d],d);k.isUndefined(b)&&p!==l||(r[d]=b)}),r}const qc=e=>{const t=Yt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Ue.from(s),t.url=Dc(Uc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),k.isFormData(r)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(k.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,p])=>{u.includes(d.toLowerCase())&&s.set(d,p)})}}if(ze.hasStandardBrowserEnv&&(n&&k.isFunction(n)&&(n=n(t)),n||n!==!1&&Uy(t.url))){const c=o&&i&&Hy.read(i);c&&s.set(o,c)}return t},Ky=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=qc(e);let i=o.data;const s=Ue.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,p,b,y,g;function f(){y&&y(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function S(){if(!m)return;const w=Ue.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};Lc(function(P){r(P),f()},function(P){n(P),f()},x),m=null}"onloadend"in m?m.onloadend=S:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(S)},m.onabort=function(){m&&(n(new ae("Request aborted",ae.ECONNABORTED,e,m)),m=null)},m.onerror=function(v){const x=v&&v.message?v.message:"Network Error",T=new ae(x,ae.ERR_NETWORK,e,m);T.event=v||null,n(T),m=null},m.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const x=o.transitional||jc;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),n(new ae(v,x.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&k.forEach(s.toJSON(),function(v,x){m.setRequestHeader(x,v)}),k.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),u&&([b,g]=mo(u,!0),m.addEventListener("progress",b)),c&&m.upload&&([p,y]=mo(c),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(d=w=>{m&&(n(!w||w.type?new hr(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const O=Ly(o.url);if(O&&ze.protocols.indexOf(O)===-1){n(new ae("Unsupported protocol "+O+":",ae.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Gy=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;n.abort(d instanceof ae?d:new hr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>k.asap(l),c}},Xy=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},Jy=async function*(e,t){for await(const r of Qy(e))yield*Xy(r,t)},Qy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Yc=(e,t,r,n)=>{const o=Jy(e,t);let i=0,s,l=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let p=d.byteLength;if(r){let b=i+=p;r(b)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Kc=64*1024,{isFunction:yo}=k,Zy=(({Request:e,Response:t})=>({Request:e,Response:t}))(k.global),{ReadableStream:Gc,TextEncoder:Xc}=k.global,Jc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},eb=e=>{e=k.merge.call({skipUndefined:!0},Zy,e);const{fetch:t,Request:r,Response:n}=e,o=t?yo(t):typeof fetch=="function",i=yo(r),s=yo(n);if(!o)return!1;const l=o&&yo(Gc),c=o&&(typeof Xc=="function"?(g=>f=>g.encode(f))(new Xc):async g=>new Uint8Array(await new r(g).arrayBuffer())),u=i&&l&&Jc(()=>{let g=!1;const f=new r(ze.origin,{body:new Gc,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),d=s&&l&&Jc(()=>k.isReadableStream(new n("").body)),p={stream:d&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!p[g]&&(p[g]=(f,m)=>{let S=f&&f[g];if(S)return S.call(f);throw new ae(`Response type '${g}' is not supported`,ae.ERR_NOT_SUPPORT,m)})});const b=async g=>{if(g==null)return 0;if(k.isBlob(g))return g.size;if(k.isSpecCompliantForm(g))return(await new r(ze.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(k.isArrayBufferView(g)||k.isArrayBuffer(g))return g.byteLength;if(k.isURLSearchParams(g)&&(g=g+""),k.isString(g))return(await c(g)).byteLength},y=async(g,f)=>{const m=k.toFiniteNumber(g.getContentLength());return m??b(f)};return async g=>{let{url:f,method:m,data:S,signal:O,cancelToken:w,timeout:v,onDownloadProgress:x,onUploadProgress:T,responseType:P,headers:I,withCredentials:j="same-origin",fetchOptions:F}=qc(g),W=t||fetch;P=P?(P+"").toLowerCase():"text";let E=Gy([O,w&&w.toAbortSignal()],v),D=null;const _=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let R;try{if(T&&u&&m!=="get"&&m!=="head"&&(R=await y(I,S))!==0){let L=new r(f,{method:"POST",body:S,duplex:"half"}),q;if(k.isFormData(S)&&(q=L.headers.get("content-type"))&&I.setContentType(q),L.body){const[J,K]=Vc(R,mo(Wc(T)));S=Yc(L.body,Kc,J,K)}}k.isString(j)||(j=j?"include":"omit");const M=i&&"credentials"in r.prototype,X={...F,signal:E,method:m.toUpperCase(),headers:I.normalize().toJSON(),body:S,duplex:"half",credentials:M?j:void 0};D=i&&new r(f,X);let ee=await(i?W(D,F):W(f,X));const H=d&&(P==="stream"||P==="response");if(d&&(x||H&&_)){const L={};["status","statusText","headers"].forEach(Y=>{L[Y]=ee[Y]});const q=k.toFiniteNumber(ee.headers.get("content-length")),[J,K]=x&&Vc(q,mo(Wc(x),!0))||[];ee=new n(Yc(ee.body,Kc,J,()=>{K&&K(),_&&_()}),L)}P=P||"text";let $=await p[k.findKey(p,P)||"text"](ee,g);return!H&&_&&_(),await new Promise((L,q)=>{Lc(L,q,{data:$,headers:Ue.from(ee.headers),status:ee.status,statusText:ee.statusText,config:g,request:D})})}catch(M){throw _&&_(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,g,D),{cause:M.cause||M}):ae.from(M,M&&M.code,g,D)}}},tb=new Map,Qc=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,l=s,c,u,d=tb;for(;l--;)c=i[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:eb(t)),d=u;return u};Qc();const fs={http:Ey,xhr:Ky,fetch:{get:Qc}};k.forEach(fs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zc=e=>`- ${e}`,rb=e=>k.isFunction(e)||e===null||e===!1;function nb(e,t){e=k.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let l;if(o=n,!rb(n)&&(o=fs[(l=String(n)).toLowerCase()],o===void 0))throw new ae(`Unknown adapter '${l}'`);if(o&&(k.isFunction(o)||(o=o.get(t))))break;i[l||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=r?s.length>1?`since :
22
- `+s.map(Zc).join(`
23
- `):" "+Zc(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const eu={getAdapter:nb,adapters:fs};function ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hr(null,e)}function tu(e){return ps(e),e.headers=Ue.from(e.headers),e.data=ds.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),eu.getAdapter(e.adapter||Zr.adapter,e)(e).then(function(n){return ps(e),n.data=ds.call(e,e.transformResponse,n),n.headers=Ue.from(n.headers),n},function(n){return Fc(n)||(ps(e),n&&n.response&&(n.response.data=ds.call(e,e.transformResponse,n.response),n.response.headers=Ue.from(n.response.headers))),Promise.reject(n)})}const ru="1.13.2",bo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const nu={};bo.transitional=function(t,r,n){function o(i,s){return"[Axios v"+ru+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,l)=>{if(t===!1)throw new ae(o(s," has been removed"+(r?" in "+r:"")),ae.ERR_DEPRECATED);return r&&!nu[s]&&(nu[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,l):!0}},bo.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ob(e,t,r){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new ae("option "+i+" must be "+c,ae.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const vo={assertOptions:ob,validators:bo},ft=vo.validators;let Kt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mc,response:new Mc}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
24
- `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Yt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&vo.assertOptions(n,{silentJSONParsing:ft.transitional(ft.boolean),forcedJSONParsing:ft.transitional(ft.boolean),clarifyTimeoutError:ft.transitional(ft.boolean)},!1),o!=null&&(k.isFunction(o)?r.paramsSerializer={serialize:o}:vo.assertOptions(o,{encode:ft.function,serialize:ft.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),vo.assertOptions(r,{baseUrl:ft.spelling("baseURL"),withXsrfToken:ft.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&k.merge(i.common,i[r.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=Ue.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,b;if(!c){const g=[tu.bind(this),void 0];for(g.unshift(...l),g.push(...u),b=g.length,d=Promise.resolve(r);p<b;)d=d.then(g[p++],g[p++]);return d}b=l.length;let y=r;for(;p<b;){const g=l[p++],f=l[p++];try{y=g(y)}catch(m){f.call(this,m);break}}try{d=tu.call(this,y)}catch(g){return Promise.reject(g)}for(p=0,b=u.length;p<b;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Yt(this.defaults,t);const r=Uc(t.baseURL,t.url,t.allowAbsoluteUrls);return Dc(r,t.params,t.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(t){Kt.prototype[t]=function(r,n){return this.request(Yt(n||{},{method:t,url:r,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(Yt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Kt.prototype[t]=r(),Kt.prototype[t+"Form"]=r(!0)});let ib=class op{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new hr(i,s,l),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new op(function(o){t=o}),cancel:t}}};function sb(e){return function(r){return e.apply(null,r)}}function ab(e){return k.isObject(e)&&e.isAxiosError===!0}const hs={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(hs).forEach(([e,t])=>{hs[t]=e});function ou(e){const t=new Kt(e),r=xc(Kt.prototype.request,t);return k.extend(r,Kt.prototype,t,{allOwnKeys:!0}),k.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return ou(Yt(e,o))},r}const Ie=ou(Zr);Ie.Axios=Kt,Ie.CanceledError=hr,Ie.CancelToken=ib,Ie.isCancel=Fc,Ie.VERSION=ru,Ie.toFormData=ho,Ie.AxiosError=ae,Ie.Cancel=Ie.CanceledError,Ie.all=function(t){return Promise.all(t)},Ie.spread=sb,Ie.isAxiosError=ab,Ie.mergeConfig=Yt,Ie.AxiosHeaders=Ue,Ie.formToJSON=e=>zc(k.isHTMLForm(e)?new FormData(e):e),Ie.getAdapter=eu.getAdapter,Ie.HttpStatusCode=hs,Ie.default=Ie;const{Axios:U1,AxiosError:H1,CanceledError:q1,isCancel:Y1,CancelToken:K1,VERSION:G1,all:X1,Cancel:J1,isAxiosError:Q1,spread:Z1,toFormData:eC,AxiosHeaders:tC,HttpStatusCode:rC,formToJSON:nC,getAdapter:oC,mergeConfig:iC}=Ie;function xo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var lb={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 gs(e,t){function r(o,i,s){if(!(typeof document>"u")){s=xo({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in s)s[c]&&(l+="; "+c,s[c]!==!0&&(l+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},l=0;l<i.length;l++){var c=i[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",xo({},i,{expires:-1}))},withAttributes:function(o){return gs(this.converter,xo({},this.attributes,o))},withConverter:function(o){return gs(xo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ct=gs(lb,{path:"/"});const cb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Gt="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:wi&&wi.tagName.toUpperCase()==="SCRIPT"&&wi.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&cb?.VITE_API_URL)Gt=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Gt=process.env.VITE_API_URL)}}catch{}const ub=e=>{Gt=e,wo.defaults.baseURL=Gt},iu=()=>Gt,db=e=>{e?Ct.set("token",e,{secure:!0,sameSite:"Strict"}):Ct.remove("token")},fb=()=>{const e=Ct.get("token");return e||null},wo=Ie.create({baseURL:Gt,transformRequest:[function(e,t){const r=fb();return r?t.Authorization=`Bearer ${r}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let ms=!1,ys=null;wo.interceptors.response.use(e=>e,async e=>{const t=e.config,r=e.response;if(r&&(r.status===401||r.status===402)){const n=Ct.get("refreshToken");if(n)try{ms||(ms=!0,ys=Ie.post(`${Gt}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${n}`}}));const o=await ys,{token:i,refreshToken:s}=o.data;return Ct.set("token",i,{secure:!0,sameSite:"Strict"}),Ct.set("refreshToken",s),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${i}`,wo(t)}catch{Ct.remove("token"),Ct.remove("refreshToken"),localStorage.clear(),window.location.href="/"}finally{ms=!1,ys=null}else Ct.remove("token"),localStorage.clear(),window.location.href="/"}return Promise.reject(e)});const So=im("products/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{const n=await wo.get("/store-inventory",{params:e}),o=Array.isArray(n.data.products)?n.data.products:[],i=(c,u=0)=>{const d=Number(c);return Number.isFinite(d)?d:u},s={},l=[];return o.forEach((c,u)=>{const d=c.sku||u;s[d]={id:d,storeId:c.storeId,storeName:c.storeName,name:c.productName,productName:c.productName,sku:c.sku,productDescription:c.productDescription,productShortDescription:c.productShortDescription,quantity:i(c.quantity),productWeight:c.productWeight,productImage:c.productImage,brandId:c.brandId,categoryId:c.categoryId,subCategoryId:c.subCategoryId,status:c.status,stock:i(c.stock),inventory:i(c.inventory),inshelff:i(c.inshelff),price:i(c.price),offer:c.offer,percentageOff:i(c.percentageOff),discount:c.discount,created:c.created,updated:c.updated,updatedAt:c.updated},l.push(d)}),{productIds:l,productsById:s}}catch(r){return console.log("Error fetching products:",r),t(r.response?.data||r.message)}}),pb=fm({name:"product",initialState:{loading:!1,error:null,productsById:{},productIds:[]},reducers:{},extraReducers:e=>{e.addCase(So.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}),e.addCase(So.fulfilled,(t,r)=>{t.loading=!1,t.loadingMessage="",t.error=null,t.productIds=r.payload?.productIds||[],t.productsById=r.payload?.productsById||{}}),e.addCase(So.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message,t.loadingMessage=""})}}).reducer;var Eo={},Co={},su;function hb(){if(su)return Co;su=1,Co.__esModule=!0,Co.default=o;function e(i){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(i)}function t(){}var r={getItem:t,setItem:t,removeItem:t};function n(i){if((typeof self>"u"?"undefined":e(self))!=="object"||!(i in self))return!1;try{var s=self[i],l="redux-persist ".concat(i," test");s.setItem(l,"test"),s.getItem(l),s.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(i," test failed, persistence will be disabled.")),!1}return!0}function o(i){var s="".concat(i,"Storage");return n(s)?self[s]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),r)}return Co}var au;function gb(){if(au)return Eo;au=1,Eo.__esModule=!0,Eo.default=r;var e=t(hb());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var o=(0,e.default)(n);return{getItem:function(s){return new Promise(function(l,c){l(o.getItem(s))})},setItem:function(s,l){return new Promise(function(c,u){c(o.setItem(s,l))})},removeItem:function(s){return new Promise(function(l,c){l(o.removeItem(s))})}}}return Eo}var mb=gb();const yb={key:"auth",storage:typeof window<"u"?bl(mb)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},bb=kl({products:pb}),vb=Am(yb,bb),lu=Xg({reducer:vb,middleware:e=>e({serializableCheck:!1})}),xb=zm(lu),wb=z.createContext(null),Sb=({children:e,apiUrl:t,authToken:r})=>(z.useEffect(()=>{t&&ub(t)},[t]),z.useEffect(()=>{db(r||null)},[r]),h.jsx(wb.Provider,{value:{apiUrl:t},children:e})),Eb=({products:e=[]})=>{const{id:t}=Dp(),r=e.find(n=>String(n.id)===String(t));return r?h.jsxs("div",{style:{padding:24},children:[h.jsx("h2",{children:r.name}),h.jsx("p",{children:r.sku}),h.jsxs("p",{children:["Category: ",r.category]}),h.jsxs("p",{children:["Price: ₹",r.price]}),h.jsxs("p",{children:["Stock: ",r.stock," / ",r.maxStock]}),h.jsx(cr,{to:"/",children:"Back to list"})]}):h.jsxs("div",{style:{padding:24},children:[h.jsx("h2",{children:"Product not found"}),h.jsxs("p",{children:["The product with id ",t," was not found."]}),h.jsx(cr,{to:"/",children:"Back to list"})]})},tn={black:"#000",white:"#fff"},gr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},mr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},yr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},br={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},vr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},rn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Cb={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 Ot(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const nn="$$material";function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oo.apply(null,arguments)}function Ob(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 Tb(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 Pb=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Tb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Ob(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Be="-ms-",To="-moz-",ue="-webkit-",cu="comm",bs="rule",vs="decl",kb="@import",uu="@keyframes",Nb="@layer",_b=Math.abs,Po=String.fromCharCode,Ib=Object.assign;function Ab(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function du(e){return e.trim()}function $b(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,r){return e.replace(t,r)}function xs(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function on(e,t,r){return e.slice(t,r)}function pt(e){return e.length}function ws(e){return e.length}function ko(e,t){return t.push(e),e}function Rb(e,t){return e.map(t).join("")}var No=1,xr=1,fu=0,He=0,De=0,wr="";function _o(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:No,column:xr,length:s,return:""}}function sn(e,t){return Ib(_o("",null,null,"",null,null,0),e,{length:-e.length},t)}function Db(){return De}function Mb(){return De=He>0?je(wr,--He):0,xr--,De===10&&(xr=1,No--),De}function Ge(){return De=He<fu?je(wr,He++):0,xr++,De===10&&(xr=1,No++),De}function ht(){return je(wr,He)}function Io(){return He}function an(e,t){return on(wr,e,t)}function ln(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 pu(e){return No=xr=1,fu=pt(wr=e),He=0,[]}function hu(e){return wr="",e}function Ao(e){return du(an(He-1,Ss(e===91?e+2:e===40?e+1:e)))}function jb(e){for(;(De=ht())&&De<33;)Ge();return ln(e)>2||ln(De)>3?"":" "}function zb(e,t){for(;--t&&Ge()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return an(e,Io()+(t<6&&ht()==32&&Ge()==32))}function Ss(e){for(;Ge();)switch(De){case e:return He;case 34:case 39:e!==34&&e!==39&&Ss(De);break;case 40:e===41&&Ss(e);break;case 92:Ge();break}return He}function Bb(e,t){for(;Ge()&&e+De!==57;)if(e+De===84&&ht()===47)break;return"/*"+an(t,He-1)+"*"+Po(e===47?e:Ge())}function Fb(e){for(;!ln(ht());)Ge();return an(e,He)}function Lb(e){return hu($o("",null,null,null,[""],e=pu(e),0,[0],e))}function $o(e,t,r,n,o,i,s,l,c){for(var u=0,d=0,p=s,b=0,y=0,g=0,f=1,m=1,S=1,O=0,w="",v=o,x=i,T=n,P=w;m;)switch(g=O,O=Ge()){case 40:if(g!=108&&je(P,p-1)==58){xs(P+=de(Ao(O),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:P+=Ao(O);break;case 9:case 10:case 13:case 32:P+=jb(g);break;case 92:P+=zb(Io()-1,7);continue;case 47:switch(ht()){case 42:case 47:ko(Vb(Bb(Ge(),Io()),t,r),c);break;default:P+="/"}break;case 123*f:l[u++]=pt(P)*S;case 125*f:case 59:case 0:switch(O){case 0:case 125:m=0;case 59+d:S==-1&&(P=de(P,/\f/g,"")),y>0&&pt(P)-p&&ko(y>32?mu(P+";",n,r,p-1):mu(de(P," ","")+";",n,r,p-2),c);break;case 59:P+=";";default:if(ko(T=gu(P,t,r,u,d,o,l,w,v=[],x=[],p),i),O===123)if(d===0)$o(P,t,T,T,v,i,p,l,x);else switch(b===99&&je(P,3)===110?100:b){case 100:case 108:case 109:case 115:$o(e,T,T,n&&ko(gu(e,T,T,0,0,o,l,w,o,v=[],p),x),o,x,p,l,n?v:x);break;default:$o(P,T,T,T,[""],x,0,l,x)}}u=d=y=0,f=S=1,w=P="",p=s;break;case 58:p=1+pt(P),y=g;default:if(f<1){if(O==123)--f;else if(O==125&&f++==0&&Mb()==125)continue}switch(P+=Po(O),O*f){case 38:S=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(pt(P)-1)*S,S=1;break;case 64:ht()===45&&(P+=Ao(Ge())),b=ht(),d=p=pt(w=P+=Fb(Io())),O++;break;case 45:g===45&&pt(P)==2&&(f=0)}}return i}function gu(e,t,r,n,o,i,s,l,c,u,d){for(var p=o-1,b=o===0?i:[""],y=ws(b),g=0,f=0,m=0;g<n;++g)for(var S=0,O=on(e,p+1,p=_b(f=s[g])),w=e;S<y;++S)(w=du(f>0?b[S]+" "+O:de(O,/&\f/g,b[S])))&&(c[m++]=w);return _o(e,t,r,o===0?bs:l,c,u,d)}function Vb(e,t,r){return _o(e,t,r,cu,Po(Db()),on(e,2,-2),0)}function mu(e,t,r,n){return _o(e,t,r,vs,on(e,0,n),on(e,n+1,-1),n)}function Sr(e,t){for(var r="",n=ws(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Wb(e,t,r,n){switch(e.type){case Nb:if(e.children.length)break;case kb:case vs:return e.return=e.return||e.value;case cu:return"";case uu:return e.return=e.value+"{"+Sr(e.children,n)+"}";case bs:e.value=e.props.join(",")}return pt(r=Sr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ub(e){var t=ws(e);return function(r,n,o,i){for(var s="",l=0;l<t;l++)s+=e[l](r,n,o,i)||"";return s}}function Hb(e){return function(t){t.root||(t=t.return)&&e(t)}}function yu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var qb=function(t,r,n){for(var o=0,i=0;o=i,i=ht(),o===38&&i===12&&(r[n]=1),!ln(i);)Ge();return an(t,He)},Yb=function(t,r){var n=-1,o=44;do switch(ln(o)){case 0:o===38&&ht()===12&&(r[n]=1),t[n]+=qb(He-1,r,n);break;case 2:t[n]+=Ao(o);break;case 4:if(o===44){t[++n]=ht()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Po(o)}while(o=Ge());return t},Kb=function(t,r){return hu(Yb(pu(t),r))},bu=new WeakMap,Gb=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!bu.get(n))&&!o){bu.set(t,!0);for(var i=[],s=Kb(r,i),l=n.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},Xb=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function vu(e,t){switch(Ab(e,t)){case 5103:return ue+"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 ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ue+e+To+e+Be+e+e;case 6828:case 4268:return ue+e+Be+e+e;case 6165:return ue+e+Be+"flex-"+e+e;case 5187:return ue+e+de(e,/(\w+).+(:[^]+)/,ue+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return ue+e+Be+"flex-item-"+de(e,/flex-|-self/,"")+e;case 4675:return ue+e+Be+"flex-line-pack"+de(e,/align-content|flex-|-self/,"")+e;case 5548:return ue+e+Be+de(e,"shrink","negative")+e;case 5292:return ue+e+Be+de(e,"basis","preferred-size")+e;case 6060:return ue+"box-"+de(e,"-grow","")+ue+e+Be+de(e,"grow","positive")+e;case 4554:return ue+de(e,/([^-])(transform)/g,"$1"+ue+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,ue+"$1"),/(image-set)/,ue+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,ue+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,ue+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ue+e+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,ue+"$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(pt(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+ue+"$2-$3$1"+To+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~xs(e,"stretch")?vu(de(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,pt(e)-3-(~xs(e,"!important")&&10))){case 107:return de(e,":",":"+ue)+e;case 101:return de(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ue+(je(e,14)===45?"inline-":"")+"box$3$1"+ue+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ue+e+Be+e+e}return e}var Jb=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case vs:t.return=vu(t.value,t.length);break;case uu:return Sr([sn(t,{value:de(t.value,"@","@"+ue)})],o);case bs:if(t.length)return Rb(t.props,function(i){switch($b(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sr([sn(t,{props:[de(i,/:(read-\w+)/,":"+To+"$1")]})],o);case"::placeholder":return Sr([sn(t,{props:[de(i,/:(plac\w+)/,":"+ue+"input-$1")]}),sn(t,{props:[de(i,/:(plac\w+)/,":"+To+"$1")]}),sn(t,{props:[de(i,/:(plac\w+)/,Be+"input-$1")]})],o)}return""})}},Qb=[Jb],Zb=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Qb,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),S=1;S<m.length;S++)i[m[S]]=!0;l.push(f)});var c,u=[Gb,Xb];{var d,p=[Wb,Hb(function(f){d.insert(f)})],b=Ub(u.concat(o,p)),y=function(m){return Sr(Lb(m),b)};c=function(m,S,O,w){d=O,y(m?m+"{"+S.styles+"}":S.styles),w&&(g.inserted[S.name]=!0)}}var g={key:r,sheet:new Pb({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(l),g},Ro={exports:{}},fe={};var xu;function e0(){if(xu)return fe;xu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=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,S=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function w(x){if(typeof x=="object"&&x!==null){var T=x.$$typeof;switch(T){case t:switch(x=x.type,x){case c:case u:case n:case i:case o:case p:return x;default:switch(x=x&&x.$$typeof,x){case l:case d:case g:case y:case s:return x;default:return T}}case r:return T}}}function v(x){return w(x)===u}return fe.AsyncMode=c,fe.ConcurrentMode=u,fe.ContextConsumer=l,fe.ContextProvider=s,fe.Element=t,fe.ForwardRef=d,fe.Fragment=n,fe.Lazy=g,fe.Memo=y,fe.Portal=r,fe.Profiler=i,fe.StrictMode=o,fe.Suspense=p,fe.isAsyncMode=function(x){return v(x)||w(x)===c},fe.isConcurrentMode=v,fe.isContextConsumer=function(x){return w(x)===l},fe.isContextProvider=function(x){return w(x)===s},fe.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===t},fe.isForwardRef=function(x){return w(x)===d},fe.isFragment=function(x){return w(x)===n},fe.isLazy=function(x){return w(x)===g},fe.isMemo=function(x){return w(x)===y},fe.isPortal=function(x){return w(x)===r},fe.isProfiler=function(x){return w(x)===i},fe.isStrictMode=function(x){return w(x)===o},fe.isSuspense=function(x){return w(x)===p},fe.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===u||x===i||x===o||x===p||x===b||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===y||x.$$typeof===s||x.$$typeof===l||x.$$typeof===d||x.$$typeof===m||x.$$typeof===S||x.$$typeof===O||x.$$typeof===f)},fe.typeOf=w,fe}var pe={};var wu;function t0(){return wu||(wu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=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,S=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function w(V){return typeof V=="string"||typeof V=="function"||V===n||V===u||V===i||V===o||V===p||V===b||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===y||V.$$typeof===s||V.$$typeof===l||V.$$typeof===d||V.$$typeof===m||V.$$typeof===S||V.$$typeof===O||V.$$typeof===f)}function v(V){if(typeof V=="object"&&V!==null){var he=V.$$typeof;switch(he){case t:var ce=V.type;switch(ce){case c:case u:case n:case i:case o:case p:return ce;default:var Ne=ce&&ce.$$typeof;switch(Ne){case l:case d:case g:case y:case s:return Ne;default:return he}}case r:return he}}}var x=c,T=u,P=l,I=s,j=t,F=d,W=n,E=g,D=y,_=r,R=i,M=o,X=p,ee=!1;function H(V){return ee||(ee=!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.")),$(V)||v(V)===c}function $(V){return v(V)===u}function L(V){return v(V)===l}function q(V){return v(V)===s}function J(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function K(V){return v(V)===d}function Y(V){return v(V)===n}function G(V){return v(V)===g}function te(V){return v(V)===y}function oe(V){return v(V)===r}function ie(V){return v(V)===i}function U(V){return v(V)===o}function re(V){return v(V)===p}pe.AsyncMode=x,pe.ConcurrentMode=T,pe.ContextConsumer=P,pe.ContextProvider=I,pe.Element=j,pe.ForwardRef=F,pe.Fragment=W,pe.Lazy=E,pe.Memo=D,pe.Portal=_,pe.Profiler=R,pe.StrictMode=M,pe.Suspense=X,pe.isAsyncMode=H,pe.isConcurrentMode=$,pe.isContextConsumer=L,pe.isContextProvider=q,pe.isElement=J,pe.isForwardRef=K,pe.isFragment=Y,pe.isLazy=G,pe.isMemo=te,pe.isPortal=oe,pe.isProfiler=ie,pe.isStrictMode=U,pe.isSuspense=re,pe.isValidElementType=w,pe.typeOf=v})()),pe}var Su;function Es(){return Su||(Su=1,process.env.NODE_ENV==="production"?Ro.exports=e0():Ro.exports=t0()),Ro.exports}var Cs,Eu;function r0(){if(Eu)return Cs;Eu=1;var e=Es(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=Object.prototype;function y(g,f,m){if(typeof f!="string"){if(b){var S=p(f);S&&S!==b&&y(g,S,m)}var O=c(f);u&&(O=O.concat(u(f)));for(var w=s(g),v=s(f),x=0;x<O.length;++x){var T=O[x];if(!r[T]&&!(m&&m[T])&&!(v&&v[T])&&!(w&&w[T])){var P=d(f,T);try{l(g,T,P)}catch{}}}}return g}return Cs=y,Cs}r0();var n0=!0;function Cu(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Os=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||n0===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ts=function(t,r,n){Os(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function o0(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 i0={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},s0=/[A-Z]|^ms/g,a0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ou=function(t){return t.charCodeAt(1)===45},Tu=function(t){return t!=null&&typeof t!="boolean"},Ps=yu(function(e){return Ou(e)?e:e.replace(s0,"-$&").toLowerCase()}),Pu=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(a0,function(n,o,i){return gt={name:o,styles:i,next:gt},o})}return i0[t]!==1&&!Ou(t)&&typeof r=="number"&&r!==0?r+"px":r};function cn(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return gt={name:o.name,styles:o.styles,next:gt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)gt={name:s.name,styles:s.styles,next:gt},s=s.next;var l=i.styles+";";return l}return l0(e,t,r)}case"function":{if(e!==void 0){var c=gt,u=r(e);return gt=c,cn(e,t,u)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function l0(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=cn(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":Tu(l)&&(n+=Ps(i)+":"+Pu(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)Tu(s[c])&&(n+=Ps(i)+":"+Pu(i,s[c])+";");else{var u=cn(e,t,s);switch(i){case"animation":case"animationName":{n+=Ps(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var ku=/label:\s*([^\s;{]+)\s*(;|$)/g,gt;function un(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";gt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=cn(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=cn(r,t,e[l]),n){var c=i;o+=c[l]}ku.lastIndex=0;for(var u="",d;(d=ku.exec(o))!==null;)u+="-"+d[1];var p=o0(o)+u;return{name:p,styles:o,next:gt}}var c0=function(t){return t()},Nu=C.useInsertionEffect?C.useInsertionEffect:!1,_u=Nu||c0,Iu=Nu||C.useLayoutEffect,Au=C.createContext(typeof HTMLElement<"u"?Zb({key:"css"}):null);Au.Provider;var ks=function(t){return z.forwardRef(function(r,n){var o=z.useContext(Au);return t(r,o,n)})},Do=C.createContext({}),Ns={}.hasOwnProperty,_s="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",u0=function(t,r){var n={};for(var o in r)Ns.call(r,o)&&(n[o]=r[o]);return n[_s]=t,n},d0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Os(r,n,o),_u(function(){return Ts(r,n,o)}),null},f0=ks(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[_s],i=[n],s="";typeof e.className=="string"?s=Cu(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=un(i,void 0,C.useContext(Do));s+=t.key+"-"+l.name;var c={};for(var u in e)Ns.call(e,u)&&u!=="css"&&u!==_s&&(c[u]=e[u]);return c.className=s,r&&(c.ref=r),C.createElement(C.Fragment,null,C.createElement(d0,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,c))}),p0=f0,$u=function(t,r){var n=arguments;if(r==null||!Ns.call(r,"css"))return C.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=p0,i[1]=u0(t,r);for(var s=2;s<o;s++)i[s]=n[s];return C.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})($u||($u={}));var h0=ks(function(e,t){var r=e.styles,n=un([r],void 0,C.useContext(Do)),o=C.useRef();return Iu(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,l],function(){s.flush()}},[t]),Iu(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(n.next!==void 0&&Ts(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function Is(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return un(t)}function dn(){var e=Is.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 g0=/^((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)-.*))$/,m0=yu(function(e){return g0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),y0=m0,b0=function(t){return t!=="theme"},Ru=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?y0:b0},Du=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},v0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Os(r,n,o),_u(function(){return Ts(r,n,o)}),null},x0=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var l=Du(t,r,n),c=l||Ru(o),u=!c("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var b=d[0];p.push(b[0]);for(var y=d.length,g=1;g<y;g++)p.push(d[g],b[g])}var f=ks(function(m,S,O){var w=u&&m.as||o,v="",x=[],T=m;if(m.theme==null){T={};for(var P in m)T[P]=m[P];T.theme=C.useContext(Do)}typeof m.className=="string"?v=Cu(S.registered,x,m.className):m.className!=null&&(v=m.className+" ");var I=un(p.concat(x),S.registered,T);v+=S.key+"-"+I.name,s!==void 0&&(v+=" "+s);var j=u&&l===void 0?Ru(w):c,F={};for(var W in m)u&&W==="as"||j(W)&&(F[W]=m[W]);return F.className=v,O&&(F.ref=O),C.createElement(C.Fragment,null,C.createElement(v0,{cache:S,serialized:I,isStringTag:typeof w=="string"}),C.createElement(w,F))});return f.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=p,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(m,S){var O=e(m,Oo({},r,S,{shouldForwardProp:Du(f,S,!0)}));return O.apply(void 0,p)},f}},w0=["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"],As=x0.bind(null);w0.forEach(function(e){As[e]=As(e)});var Mo={exports:{}};var $s,Mu;function S0(){if(Mu)return $s;Mu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $s=o()?Object.assign:function(i,s){for(var l,c=n(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var b=0;b<u.length;b++)r.call(l,u[b])&&(c[u[b]]=l[u[b]])}}return c},$s}var Rs,ju;function Ds(){if(ju)return Rs;ju=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Rs=e,Rs}var Ms,zu;function Bu(){return zu||(zu=1,Ms=Function.call.bind(Object.prototype.hasOwnProperty)),Ms}var js,Fu;function E0(){if(Fu)return js;Fu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ds(),r={},n=Bu();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var p;try{if(typeof i[d]!="function"){var b=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[d](s,d,c,l,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var y=u?u():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},js=o,js}var zs,Lu;function C0(){if(Lu)return zs;Lu=1;var e=Es(),t=S0(),r=Ds(),n=Bu(),o=E0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return zs=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p($){var L=$&&(u&&$[u]||$[d]);if(typeof L=="function")return L}var b="<<anonymous>>",y={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:O(),arrayOf:w,element:v(),elementType:x(),instanceOf:T,node:F(),objectOf:I,oneOf:P,oneOfType:j,shape:E,exact:D};function g($,L){return $===L?$!==0||1/$===1/L:$!==$&&L!==L}function f($,L){this.message=$,this.data=L&&typeof L=="object"?L:{},this.stack=""}f.prototype=Error.prototype;function m($){if(process.env.NODE_ENV!=="production")var L={},q=0;function J(Y,G,te,oe,ie,U,re){if(oe=oe||b,U=U||te,re!==r){if(c){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=oe+":"+te;!L[he]&&q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+oe+"`. 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."),L[he]=!0,q++)}}return G[te]==null?Y?G[te]===null?new f("The "+ie+" `"+U+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+ie+" `"+U+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:$(G,te,oe,ie,U)}var K=J.bind(null,!1);return K.isRequired=J.bind(null,!0),K}function S($){function L(q,J,K,Y,G,te){var oe=q[J],ie=M(oe);if(ie!==$){var U=X(oe);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+U+"` supplied to `"+K+"`, expected ")+("`"+$+"`."),{expectedType:$})}return null}return m(L)}function O(){return m(s)}function w($){function L(q,J,K,Y,G){if(typeof $!="function")return new f("Property `"+G+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var te=q[J];if(!Array.isArray(te)){var oe=M(te);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected an array."))}for(var ie=0;ie<te.length;ie++){var U=$(te,ie,K,Y,G+"["+ie+"]",r);if(U instanceof Error)return U}return null}return m(L)}function v(){function $(L,q,J,K,Y){var G=L[q];if(!l(G)){var te=M(G);return new f("Invalid "+K+" `"+Y+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return m($)}function x(){function $(L,q,J,K,Y){var G=L[q];if(!e.isValidElementType(G)){var te=M(G);return new f("Invalid "+K+" `"+Y+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return m($)}function T($){function L(q,J,K,Y,G){if(!(q[J]instanceof $)){var te=$.name||b,oe=H(q[J]);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected ")+("instance of `"+te+"`."))}return null}return m(L)}function P($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function L(q,J,K,Y,G){for(var te=q[J],oe=0;oe<$.length;oe++)if(g(te,$[oe]))return null;var ie=JSON.stringify($,function(re,V){var he=X(V);return he==="symbol"?String(V):V});return new f("Invalid "+Y+" `"+G+"` of value `"+String(te)+"` "+("supplied to `"+K+"`, expected one of "+ie+"."))}return m(L)}function I($){function L(q,J,K,Y,G){if(typeof $!="function")return new f("Property `"+G+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected an object."));for(var ie in te)if(n(te,ie)){var U=$(te,ie,K,Y,G+"."+ie,r);if(U instanceof Error)return U}return null}return m(L)}function j($){if(!Array.isArray($))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var L=0;L<$.length;L++){var q=$[L];if(typeof q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(q)+" at index "+L+"."),s}function J(K,Y,G,te,oe){for(var ie=[],U=0;U<$.length;U++){var re=$[U],V=re(K,Y,G,te,oe,r);if(V==null)return null;V.data&&n(V.data,"expectedType")&&ie.push(V.data.expectedType)}var he=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+te+" `"+oe+"` supplied to "+("`"+G+"`"+he+"."))}return m(J)}function F(){function $(L,q,J,K,Y){return _(L[q])?null:new f("Invalid "+K+" `"+Y+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return m($)}function W($,L,q,J,K){return new f(($||"React class")+": "+L+" type `"+q+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function E($){function L(q,J,K,Y,G){var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type `"+oe+"` "+("supplied to `"+K+"`, expected `object`."));for(var ie in $){var U=$[ie];if(typeof U!="function")return W(K,Y,G,ie,X(U));var re=U(te,ie,K,Y,G+"."+ie,r);if(re)return re}return null}return m(L)}function D($){function L(q,J,K,Y,G){var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type `"+oe+"` "+("supplied to `"+K+"`, expected `object`."));var ie=t({},q[J],$);for(var U in ie){var re=$[U];if(n($,U)&&typeof re!="function")return W(K,Y,G,U,X(re));if(!re)return new f("Invalid "+Y+" `"+G+"` key `"+U+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(q[J],null," ")+`
25
- Valid keys: `+JSON.stringify(Object.keys($),null," "));var V=re(te,U,K,Y,G+"."+U,r);if(V)return V}return null}return m(L)}function _($){switch(typeof $){case"number":case"string":case"undefined":return!0;case"boolean":return!$;case"object":if(Array.isArray($))return $.every(_);if($===null||l($))return!0;var L=p($);if(L){var q=L.call($),J;if(L!==$.entries){for(;!(J=q.next()).done;)if(!_(J.value))return!1}else for(;!(J=q.next()).done;){var K=J.value;if(K&&!_(K[1]))return!1}}else return!1;return!0;default:return!1}}function R($,L){return $==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function M($){var L=typeof $;return Array.isArray($)?"array":$ instanceof RegExp?"object":R(L,$)?"symbol":L}function X($){if(typeof $>"u"||$===null)return""+$;var L=M($);if(L==="object"){if($ instanceof Date)return"date";if($ instanceof RegExp)return"regexp"}return L}function ee($){var L=X($);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function H($){return!$.constructor||!$.constructor.name?b:$.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},zs}var Bs,Vu;function O0(){if(Vu)return Bs;Vu=1;var e=Ds();function t(){}function r(){}return r.resetWarningCache=t,Bs=function(){function n(s,l,c,u,d,p){if(p!==e){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Bs}var Wu;function T0(){if(Wu)return Mo.exports;if(Wu=1,process.env.NODE_ENV!=="production"){var e=Es(),t=!0;Mo.exports=C0()(e.isElement,t)}else Mo.exports=O0()();return Mo.exports}var P0=T0();const a=bl(P0);function k0(e){return e==null||Object.keys(e).length===0}function Uu(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(k0(o)?r:o):t;return h.jsx(h0,{styles:n})}process.env.NODE_ENV!=="production"&&(Uu.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});function Hu(e,t){const r=As(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
26
- `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function N0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const qu=[];function zt(e){return qu[0]=e,un(qu)}var jo={exports:{}},ye={};var Yu;function _0(){if(Yu)return ye;Yu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=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 r:case o:case n:case c:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case i:return f;default:return m}}case t:return m}}}return ye.ContextConsumer=i,ye.ContextProvider=s,ye.Element=e,ye.ForwardRef=l,ye.Fragment=r,ye.Lazy=p,ye.Memo=d,ye.Portal=t,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=u,ye.isContextConsumer=function(f){return g(f)===i},ye.isContextProvider=function(f){return g(f)===s},ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ye.isForwardRef=function(f){return g(f)===l},ye.isFragment=function(f){return g(f)===r},ye.isLazy=function(f){return g(f)===p},ye.isMemo=function(f){return g(f)===d},ye.isPortal=function(f){return g(f)===t},ye.isProfiler=function(f){return g(f)===o},ye.isStrictMode=function(f){return g(f)===n},ye.isSuspense=function(f){return g(f)===c},ye.isSuspenseList=function(f){return g(f)===u},ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},ye.typeOf=g,ye}var be={};var Ku;function I0(){return Ku||(Ku=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 n:case i:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case p:return f;case s:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");be.ContextConsumer=s,be.ContextProvider=l,be.Element=t,be.ForwardRef=c,be.Fragment=n,be.Lazy=b,be.Memo=p,be.Portal=r,be.Profiler=i,be.StrictMode=o,be.Suspense=u,be.SuspenseList=d,be.isContextConsumer=function(f){return e(f)===s},be.isContextProvider=function(f){return e(f)===l},be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},be.isForwardRef=function(f){return e(f)===c},be.isFragment=function(f){return e(f)===n},be.isLazy=function(f){return e(f)===b},be.isMemo=function(f){return e(f)===p},be.isPortal=function(f){return e(f)===r},be.isProfiler=function(f){return e(f)===i},be.isStrictMode=function(f){return e(f)===o},be.isSuspense=function(f){return e(f)===u},be.isSuspenseList=function(f){return e(f)===d},be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},be.typeOf=e})()),be}var Gu;function A0(){return Gu||(Gu=1,process.env.NODE_ENV==="production"?jo.exports=_0():jo.exports=I0()),jo.exports}var zo=A0();function mt(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 Xu(e){if(C.isValidElement(e)||zo.isValidElementType(e)||!mt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Xu(e[r])}),t}function Xe(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return mt(e)&&mt(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||zo.isValidElementType(t[o])?n[o]=t[o]:mt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mt(e[o])?n[o]=Xe(e[o],t[o],r):r.clone?n[o]=mt(t[o])?Xu(t[o]):t[o]:n[o]=t[o]}),n}const $0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function R0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=$0(t),s=Object.keys(i);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function c(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function u(b,y){const g=s.indexOf(y);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:y)-n/100}${r})`}function d(b){return s.indexOf(b)+1<s.length?u(b,s[s.indexOf(b)+1]):l(b)}function p(b){const y=s.indexOf(b);return y===0?l(s[1]):y===s.length-1?c(s[y]):u(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:c,between:u,only:d,not:p,unit:r,...o}}function Ju(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function D0(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function M0(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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\`.`:Ot(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function j0(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function r(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const z0={borderRadius:4},Bt=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function fn(e,t){return t?Xe(e,t,{clone:!1}):e}const Bo={xs:0,sm:600,md:900,lg:1200,xl:1536},Qu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Bo[e]}px)`},B0={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Bo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Tt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||Qu;return t.reduce((s,l,c)=>(s[i.up(i.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const i=n.breakpoints||Qu;return Object.keys(t).reduce((s,l)=>{if(D0(i.keys,l)){const c=M0(n.containerQueries?n:B0,l);c&&(s[c]=r(t[l],l))}else if(Object.keys(i.values||Bo).includes(l)){const c=i.up(l);s[c]=r(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return r(t)}function F0(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function Zu(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Q(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ot(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Lo(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Fo(e,r)||n,t&&(o=t(o,n,e)),o}function Re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=Fo(c,n)||{};return Tt(s,l,p=>{let b=Lo(u,o,p);return p===b&&typeof p=="string"&&(b=Lo(u,o,`${t}${p==="default"?"":Q(p)}`,p)),r===!1?b:{[r]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Bt}:{},i.filterProps=[t],i}function L0(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const V0={m:"margin",p:"padding"},W0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ed={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},U0=L0(e=>{if(e.length>2)if(ed[e])e=ed[e];else return[e];const[t,r]=e.split(""),n=V0[t],o=W0[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Vo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],H0=[...Vo,...Wo];function pn(e,t,r,n){const o=Fo(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.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 lo(e){return typeof e=="boolean"}var Gg=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let s=new tc;if(r&&(lo(r)?s.push(Bg):s.push(Lg(r.extraArgument))),process.env.NODE_ENV!=="production"){if(n){let l={};lo(n)||(l=n),s.unshift(Yg(l))}if(o){let l={};lo(o)||(l=o),s.push(Kg(l))}if(i){let l={};lo(i)||(l=i),s.unshift(Ug(l))}}return s},Xg="RTK_autoBatch",ac=e=>t=>{setTimeout(t,e)},Jg=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let o=!0,i=!1,s=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ac(10):e.type==="callback"?e.queueNotification:ac(e.timeout),u=()=>{s=!1,i&&(i=!1,l.forEach(d=>d()))};return Object.assign({},n,{subscribe(d){const p=()=>o&&d(),b=n.subscribe(p);return l.add(d),()=>{b(),l.delete(d)}},dispatch(d){try{return o=!d?.meta?.[Xg],i=!o,i&&(s||(s=!0,c(u))),n.dispatch(d)}finally{o=!0}}})},Qg=e=>function(r){const{autoBatch:n=!0}=r??{};let o=new tc(e);return n&&o.push(Jg(typeof n=="object"?n:void 0)),o};function Zg(e){const t=Gg(),{reducer:r=void 0,middleware:n,devTools:o=!0,duplicateMiddlewareCheck:i=!0,preloadedState:s=void 0,enhancers:l=void 0}=e||{};let c;if(typeof r=="function")c=r;else if(Wr(r))c=Nl(r);else throw new Error(process.env.NODE_ENV==="production"?Se(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"&&n&&typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Se(2):"`middleware` field must be a callback");let u;if(typeof n=="function"){if(u=n(t),process.env.NODE_ENV!=="production"&&!Array.isArray(u))throw new Error(process.env.NODE_ENV==="production"?Se(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"?Se(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&i){let f=new Set;u.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Se(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let d=qn;o&&(d=Fg({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const p=lg(...u),b=Qg(p);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Se(5):"`enhancers` field must be a callback");let y=typeof l=="function"?l(b):b();if(process.env.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(process.env.NODE_ENV==="production"?Se(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&y.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Se(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&u.length&&!y.includes(p)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=d(...y);return zi(c,s,g)}function lc(e){const t={},r=[];let n;const o={addCase(i,s){if(process.env.NODE_ENV!=="production"){if(r.length>0)throw new Error(process.env.NODE_ENV==="production"?Se(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error(process.env.NODE_ENV==="production"?Se(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof i=="string"?i:i.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Se(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Se(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=s,o},addAsyncThunk(i,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return s.pending&&(t[i.pending.type]=s.pending),s.rejected&&(t[i.rejected.type]=s.rejected),s.fulfilled&&(t[i.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:i.settled,reducer:s.settled}),o},addMatcher(i,s){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:i,reducer:s}),o},addDefaultCase(i){if(process.env.NODE_ENV!=="production"&&n)throw new Error(process.env.NODE_ENV==="production"?Se(31):"`builder.addDefaultCase` can only be called once");return n=i,o}};return e(o),[t,r,n]}function em(e){return typeof e=="function"}function tm(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Se(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[r,n,o]=lc(t),i;if(em(e))i=()=>rc(e());else{const l=rc(e);i=()=>l}function s(l=i(),c){let u=[r[c.type],...n.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[o]),u.reduce((d,p)=>{if(p)if(St(d)){const y=p(d,c);return y===void 0?d:y}else{if(it(d))return Yl(d,b=>p(b,c));{const b=p(d,c);if(b===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return d},l)}return s.getInitialState=i,s}var rm=(e,t)=>Zl(e)?e.match(t):e(t);function nm(...e){return t=>e.some(r=>rm(r,t))}var om="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",im=(e=21)=>{let t="",r=e;for(;r--;)t+=om[Math.random()*64|0];return t},sm=["name","message","stack","code"],ts=class{constructor(e,t){this.payload=e,this.meta=t}_type},cc=class{constructor(e,t){this.payload=e,this.meta=t}_type},am=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of sm)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},uc="External signal was aborted",lm=(()=>{function e(t,r,n){const o=Gr(t+"/fulfilled",(c,u,d,p)=>({payload:c,meta:{...p||{},arg:d,requestId:u,requestStatus:"fulfilled"}})),i=Gr(t+"/pending",(c,u,d)=>({payload:void 0,meta:{...d||{},arg:u,requestId:c,requestStatus:"pending"}})),s=Gr(t+"/rejected",(c,u,d,p,b)=>({payload:p,error:(n&&n.serializeError||am)(c||"Rejected"),meta:{...b||{},arg:d,requestId:u,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:u}={}){return(d,p,b)=>{const y=n?.idGenerator?n.idGenerator(c):im(),g=new AbortController;let f,m;function E(S){m=S,g.abort()}u&&(u.aborted?E(uc):u.addEventListener("abort",()=>E(uc),{once:!0}));const O=(async function(){let S;try{let w=n?.condition?.(c,{getState:p,extra:b});if(um(w)&&(w=await w),w===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const T=new Promise((P,I)=>{f=()=>{I({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});d(i(y,c,n?.getPendingMeta?.({requestId:y,arg:c},{getState:p,extra:b}))),S=await Promise.race([T,Promise.resolve(r(c,{dispatch:d,getState:p,extra:b,requestId:y,signal:g.signal,abort:E,rejectWithValue:(P,I)=>new ts(P,I),fulfillWithValue:(P,I)=>new cc(P,I)})).then(P=>{if(P instanceof ts)throw P;return P instanceof cc?o(P.payload,y,c,P.meta):o(P,y,c)})])}catch(w){S=w instanceof ts?s(null,y,c,w.payload,w.meta):s(w,y,c)}finally{f&&g.signal.removeEventListener("abort",f)}return n&&!n.dispatchConditionRejection&&s.match(S)&&S.meta.condition||d(S),S})();return Object.assign(O,{abort:E,requestId:y,arg:c,unwrap(){return O.then(cm)}})}}return Object.assign(l,{pending:i,rejected:s,fulfilled:o,settled:nm(s,o),typePrefix:t})}return e.withTypes=()=>e,e})();function cm(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function um(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var dm=Symbol.for("rtk-slice-createasyncthunk");function fm(e,t){return`${e}/${t}`}function pm({creators:e}={}){const t=e?.asyncThunk?.[dm];return function(n){const{name:o,reducerPath:i=o}=n;if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&n.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const s=(typeof n.reducers=="function"?n.reducers(mm()):n.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,x){const w=typeof S=="string"?S:S.type;if(!w)throw new Error(process.env.NODE_ENV==="production"?Se(12):"`context.addCase` cannot be called with an empty action type");if(w in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Se(13):"`context.addCase` cannot be called with two reducers for the same action type: "+w);return c.sliceCaseReducersByType[w]=x,u},addMatcher(S,x){return c.sliceMatchers.push({matcher:S,reducer:x}),u},exposeAction(S,x){return c.actionCreators[S]=x,u},exposeCaseReducer(S,x){return c.sliceCaseReducersByName[S]=x,u}};l.forEach(S=>{const x=s[S],w={reducerName:S,type:fm(o,S),createNotation:typeof n.reducers=="function"};bm(x)?xm(w,x,u,t):ym(w,x,u)});function d(){if(process.env.NODE_ENV!=="production"&&typeof n.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Se(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={},x=[],w=void 0]=typeof n.extraReducers=="function"?lc(n.extraReducers):[n.extraReducers],T={...S,...c.sliceCaseReducersByType};return tm(n.initialState,P=>{for(let I in T)P.addCase(I,T[I]);for(let I of c.sliceMatchers)P.addMatcher(I.matcher,I.reducer);for(let I of x)P.addMatcher(I.matcher,I.reducer);w&&P.addDefaultCase(w)})}const p=S=>S,b=new Map,y=new WeakMap;let g;function f(S,x){return g||(g=d()),g(S,x)}function m(){return g||(g=d()),g.getInitialState()}function E(S,x=!1){function w(P){let I=P[S];if(typeof I>"u"){if(x)I=ao(y,w,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Se(15):"selectSlice returned undefined for an uninjected slice reducer")}return I}function T(P=p){const I=ao(b,x,()=>new WeakMap);return ao(I,P,()=>{const j={};for(const[L,W]of Object.entries(n.selectors??{}))j[L]=hm(W,P,()=>ao(y,P,m),x);return j})}return{reducerPath:S,getSelectors:T,get selectors(){return T(w)},selectSlice:w}}const O={name:o,reducer:f,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...E(i),injectInto(S,{reducerPath:x,...w}={}){const T=x??i;return S.inject({reducerPath:T,reducer:f},w),{...O,...E(T,!0)}}};return O}}function hm(e,t,r,n){function o(i,...s){let l=t(i);if(typeof l>"u"){if(n)l=r();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Se(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...s)}return o.unwrapped=e,o}var gm=pm();function mm(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function ym({type:e,reducerName:t,createNotation:r},n,o){let i,s;if("reducer"in n){if(r&&!vm(n))throw new Error(process.env.NODE_ENV==="production"?Se(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,s=n.prepare}else i=n;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,s?Gr(e,s):Gr(e))}function bm(e){return e._reducerDefinitionType==="asyncThunk"}function vm(e){return e._reducerDefinitionType==="reducerWithPrepare"}function xm({type:e,reducerName:t},r,n,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Se(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:s,pending:l,rejected:c,settled:u,options:d}=r,p=o(e,i,d);n.exposeAction(t,p),s&&n.addCase(p.fulfilled,s),l&&n.addCase(p.pending,l),c&&n.addCase(p.rejected,c),u&&n.addMatcher(p.settled,u),n.exposeCaseReducer(t,{fulfilled:s||co,pending:l||co,rejected:c||co,settled:u||co})}function co(){}function Se(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 rs="persist:",dc="persist/FLUSH",ns="persist/REHYDRATE",fc="persist/PAUSE",pc="persist/PERSIST",hc="persist/PURGE",gc="persist/REGISTER",wm=-1;function Xr(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xr=function(r){return typeof r}:Xr=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Xr(e)}function mc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mc(r,!0).forEach(function(n){Em(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Em(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cm(e,t,r,n){var o=n.debug,i=Sm({},r);return e&&Xr(e)==="object"&&Object.keys(e).forEach(function(s){if(s!=="_persist"){if(t[s]!==r[s]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",s);return}i[s]=e[s]}}),process.env.NODE_ENV!=="production"&&o&&e&&Xr(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),i}function Om(e){var t=e.blacklist||null,r=e.whitelist||null,n=e.transforms||[],o=e.throttle||0,i="".concat(e.keyPrefix!==void 0?e.keyPrefix:rs).concat(e.key),s=e.storage,l;e.serialize===!1?l=function(w){return w}:typeof e.serialize=="function"?l=e.serialize:l=Tm;var c=e.writeFailHandler||null,u={},d={},p=[],b=null,y=null,g=function(w){Object.keys(w).forEach(function(T){E(T)&&u[T]!==w[T]&&p.indexOf(T)===-1&&p.push(T)}),Object.keys(u).forEach(function(T){w[T]===void 0&&E(T)&&p.indexOf(T)===-1&&u[T]!==void 0&&p.push(T)}),b===null&&(b=setInterval(f,o)),u=w};function f(){if(p.length===0){b&&clearInterval(b),b=null;return}var x=p.shift(),w=n.reduce(function(T,P){return P.in(T,x,u)},u[x]);if(w!==void 0)try{d[x]=l(w)}catch(T){console.error("redux-persist/createPersistoid: error serializing state",T)}else delete d[x];p.length===0&&m()}function m(){Object.keys(d).forEach(function(x){u[x]===void 0&&delete d[x]}),y=s.setItem(i,l(d)).catch(O)}function E(x){return!(r&&r.indexOf(x)===-1&&x!=="_persist"||t&&t.indexOf(x)!==-1)}function O(x){c&&c(x),x&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",x)}var S=function(){for(;p.length!==0;)f();return y||Promise.resolve()};return{update:g,flush:S}}function Tm(e){return JSON.stringify(e)}function Pm(e){var t=e.transforms||[],r="".concat(e.keyPrefix!==void 0?e.keyPrefix:rs).concat(e.key),n=e.storage,o=e.debug,i;return e.deserialize===!1?i=function(l){return l}:typeof e.deserialize=="function"?i=e.deserialize:i=km,n.getItem(r).then(function(s){if(s)try{var l={},c=i(s);return Object.keys(c).forEach(function(u){l[u]=t.reduceRight(function(d,p){return p.out(d,u,c)},i(c[u]))}),l}catch(u){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(s),u),u}else return})}function km(e){return JSON.parse(e)}function Nm(e){var t=e.storage,r="".concat(e.keyPrefix!==void 0?e.keyPrefix:rs).concat(e.key);return t.removeItem(r,_m)}function _m(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function yc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yc(r,!0).forEach(function(n){Im(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Im(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Am(e,t){if(e==null)return{};var r=$m(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $m(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Rm=5e3;function Dm(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 r=e.version!==void 0?e.version:wm;e.debug;var n=e.stateReconciler===void 0?Cm:e.stateReconciler,o=e.getStoredState||Pm,i=e.timeout!==void 0?e.timeout:Rm,s=null,l=!1,c=!0,u=function(p){return p._persist.rehydrated&&s&&!c&&s.update(p),p};return function(d,p){var b=d||{},y=b._persist,g=Am(b,["_persist"]),f=g;if(p.type===pc){var m=!1,E=function(I,j){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),I,j),m||(p.rehydrate(e.key,I,j),m=!0)};if(i&&setTimeout(function(){!m&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},i),c=!1,s||(s=Om(e)),y)return Ct({},t(f,p),{_persist:y});if(typeof p.rehydrate!="function"||typeof p.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 p.register(e.key),o(e).then(function(P){var I=e.migrate||function(j,L){return Promise.resolve(j)};I(P,r).then(function(j){E(j)},function(j){process.env.NODE_ENV!=="production"&&j&&console.error("redux-persist: migration error",j),E(void 0,j)})},function(P){E(void 0,P)}),Ct({},t(f,p),{_persist:{version:r,rehydrated:!1}})}else{if(p.type===hc)return l=!0,p.result(Nm(e)),Ct({},t(f,p),{_persist:y});if(p.type===dc)return p.result(s&&s.flush()),Ct({},t(f,p),{_persist:y});if(p.type===fc)c=!0;else if(p.type===ns){if(l)return Ct({},f,{_persist:Ct({},y,{rehydrated:!0})});if(p.key===e.key){var O=t(f,p),S=p.payload,x=n!==!1&&S!==void 0?n(S,d,O,e):O,w=Ct({},x,{_persist:Ct({},y,{rehydrated:!0})});return u(w)}}}if(!y)return t(d,p);var T=t(f,p);return T===f?d:u(Ct({},T,{_persist:y}))}}function bc(e){return zm(e)||jm(e)||Mm()}function Mm(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function jm(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function zm(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function vc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function os(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vc(r,!0).forEach(function(n){Bm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vc(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bm(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xc={registry:[],bootstrapped:!1},Lm=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xc,r=arguments.length>1?arguments[1]:void 0;switch(r.type){case gc:return os({},t,{registry:[].concat(bc(t.registry),[r.key])});case ns:var n=t.registry.indexOf(r.key),o=bc(t.registry);return o.splice(n,1),os({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function Fm(e,t,r){if(process.env.NODE_ENV!=="production"){var n={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(u){n[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 i=zi(Lm,xc,void 0),s=function(d){i.dispatch({type:gc,key:d})},l=function(d,p,b){var y={type:ns,payload:p,err:b,key:d};e.dispatch(y),i.dispatch(y)},c=os({},i,{purge:function(){var d=[];return e.dispatch({type:hc,result:function(b){d.push(b)}}),Promise.all(d)},flush:function(){var d=[];return e.dispatch({type:dc,result:function(b){d.push(b)}}),Promise.all(d)},pause:function(){e.dispatch({type:fc})},persist:function(){e.dispatch({type:pc,register:s,rehydrate:l})}});return c.persist(),c}function wc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Vm}=Object.prototype,{getPrototypeOf:is}=Object,{iterator:uo,toStringTag:Sc}=Symbol,fo=(e=>t=>{const r=Vm.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>fo(t)===e),po=e=>t=>typeof t===e,{isArray:pr}=Array,hr=po("undefined");function Jr(e){return e!==null&&!hr(e)&&e.constructor!==null&&!hr(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ec=st("ArrayBuffer");function Wm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ec(e.buffer),t}const Um=po("string"),We=po("function"),Cc=po("number"),Qr=e=>e!==null&&typeof e=="object",Hm=e=>e===!0||e===!1,ho=e=>{if(fo(e)!=="object")return!1;const t=is(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Sc in e)&&!(uo in e)},qm=e=>{if(!Qr(e)||Jr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ym=st("Date"),Km=st("File"),Gm=st("Blob"),Xm=st("FileList"),Jm=e=>Qr(e)&&We(e.pipe),Qm=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((t=fo(e))==="formdata"||t==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Zm=st("URLSearchParams"),[ey,ty,ry,ny]=["ReadableStream","Request","Response","Headers"].map(st),oy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zr(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),pr(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Jr(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let l;for(n=0;n<s;n++)l=i[n],t.call(null,e[l],l,e)}}function Oc(e,t){if(Jr(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const Yt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Tc=e=>!hr(e)&&e!==Yt;function ss(){const{caseless:e,skipUndefined:t}=Tc(this)&&this||{},r={},n=(o,i)=>{const s=e&&Oc(r,i)||i;ho(r[s])&&ho(o)?r[s]=ss(r[s],o):ho(o)?r[s]=ss({},o):pr(o)?r[s]=o.slice():(!t||!hr(o))&&(r[s]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Zr(arguments[o],n);return r}const iy=(e,t,r,{allOwnKeys:n}={})=>(Zr(t,(o,i)=>{r&&We(o)?e[i]=wc(o,r):e[i]=o},{allOwnKeys:n}),e),sy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ay=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},ly=(e,t,r,n)=>{let o,i,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=r!==!1&&is(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},cy=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},uy=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!Cc(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&is(Uint8Array)),fy=(e,t)=>{const n=(e&&e[uo]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},py=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},hy=st("HTMLFormElement"),gy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Pc=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),my=st("RegExp"),kc=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Zr(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},yy=e=>{kc(e,(t,r)=>{if(We(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(We(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},by=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return pr(e)?n(e):n(String(e).split(t)),r},vy=()=>{},xy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wy(e){return!!(e&&We(e.append)&&e[Sc]==="FormData"&&e[uo])}const Sy=e=>{const t=new Array(10),r=(n,o)=>{if(Qr(n)){if(t.indexOf(n)>=0)return;if(Jr(n))return n;if(!("toJSON"in n)){t[o]=n;const i=pr(n)?[]:{};return Zr(n,(s,l)=>{const c=r(s,o+1);!hr(c)&&(i[l]=c)}),t[o]=void 0,i}}return n};return r(e,0)},Ey=st("AsyncFunction"),Cy=e=>e&&(Qr(e)||We(e))&&We(e.then)&&We(e.catch),Nc=((e,t)=>e?setImmediate:t?((r,n)=>(Yt.addEventListener("message",({source:o,data:i})=>{o===Yt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),Yt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",We(Yt.postMessage)),Oy=typeof queueMicrotask<"u"?queueMicrotask.bind(Yt):typeof process<"u"&&process.nextTick||Nc,k={isArray:pr,isArrayBuffer:Ec,isBuffer:Jr,isFormData:Qm,isArrayBufferView:Wm,isString:Um,isNumber:Cc,isBoolean:Hm,isObject:Qr,isPlainObject:ho,isEmptyObject:qm,isReadableStream:ey,isRequest:ty,isResponse:ry,isHeaders:ny,isUndefined:hr,isDate:Ym,isFile:Km,isBlob:Gm,isRegExp:my,isFunction:We,isStream:Jm,isURLSearchParams:Zm,isTypedArray:dy,isFileList:Xm,forEach:Zr,merge:ss,extend:iy,trim:oy,stripBOM:sy,inherits:ay,toFlatObject:ly,kindOf:fo,kindOfTest:st,endsWith:cy,toArray:uy,forEachEntry:fy,matchAll:py,isHTMLForm:hy,hasOwnProperty:Pc,hasOwnProp:Pc,reduceDescriptors:kc,freezeMethods:yy,toObjectSet:by,toCamelCase:gy,noop:vy,toFiniteNumber:xy,findKey:Oc,global:Yt,isContextDefined:Tc,isSpecCompliantForm:wy,toJSONObject:Sy,isAsyncFn:Ey,isThenable:Cy,setImmediate:Nc,asap:Oy,isIterable:e=>e!=null&&We(e[uo])};function ae(e,t,r,n,o){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),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}k.inherits(ae,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:k.toJSONObject(this.config),code:this.code,status:this.status}}});const _c=ae.prototype,Ic={};["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=>{Ic[e]={value:e}}),Object.defineProperties(ae,Ic),Object.defineProperty(_c,"isAxiosError",{value:!0}),ae.from=(e,t,r,n,o,i)=>{const s=Object.create(_c);k.toFlatObject(e,s,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ae.call(s,l,c,r,n,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",i&&Object.assign(s,i),s};const Ty=null;function as(e){return k.isPlainObject(e)||k.isArray(e)}function Ac(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function $c(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ac(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function Py(e){return k.isArray(e)&&!e.some(as)}const ky=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function go(e,t,r){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=k.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!k.isUndefined(m[f])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(o))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(k.isDate(g))return g.toISOString();if(k.isBoolean(g))return g.toString();if(!c&&k.isBlob(g))throw new ae("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(g)||k.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,f,m){let E=g;if(g&&!m&&typeof g=="object"){if(k.endsWith(f,"{}"))f=n?f:f.slice(0,-2),g=JSON.stringify(g);else if(k.isArray(g)&&Py(g)||(k.isFileList(g)||k.endsWith(f,"[]"))&&(E=k.toArray(g)))return f=Ac(f),E.forEach(function(S,x){!(k.isUndefined(S)||S===null)&&t.append(s===!0?$c([f],x,i):s===null?f:f+"[]",u(S))}),!1}return as(g)?!0:(t.append($c(m,f,i),u(g)),!1)}const p=[],b=Object.assign(ky,{defaultVisitor:d,convertValue:u,isVisitable:as});function y(g,f){if(!k.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));p.push(g),k.forEach(g,function(E,O){(!(k.isUndefined(E)||E===null)&&o.call(t,E,k.isString(O)?O.trim():O,f,b))===!0&&y(E,f?f.concat(O):[O])}),p.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return y(e),t}function Rc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ls(e,t){this._pairs=[],e&&go(e,this,t)}const Dc=ls.prototype;Dc.append=function(t,r){this._pairs.push([t,r])},Dc.toString=function(t){const r=t?function(n){return t.call(this,n,Rc)}:Rc;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Ny(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mc(e,t,r){if(!t)return e;const n=r&&r.encode||Ny;k.isFunction(r)&&(r={serialize:r});const o=r&&r.serialize;let i;if(o?i=o(t,r):i=k.isURLSearchParams(t)?t.toString():new ls(t,r).toString(n),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class jc{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(n){n!==null&&t(n)})}}const zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_y={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ls,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},cs=typeof window<"u"&&typeof document<"u",us=typeof navigator=="object"&&navigator||void 0,Iy=cs&&(!us||["ReactNative","NativeScript","NS"].indexOf(us.product)<0),Ay=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$y=cs&&window.location.href||"http://localhost",ze={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cs,hasStandardBrowserEnv:Iy,hasStandardBrowserWebWorkerEnv:Ay,navigator:us,origin:$y},Symbol.toStringTag,{value:"Module"})),..._y};function Ry(e,t){return go(e,new ze.classes.URLSearchParams,{visitor:function(r,n,o,i){return ze.isNode&&k.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Dy(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function My(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Bc(e){function t(r,n,o,i){let s=r[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=r.length;return s=!s&&k.isArray(o)?o.length:s,c?(k.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!l):((!o[s]||!k.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&k.isArray(o[s])&&(o[s]=My(o[s])),!l)}if(k.isFormData(e)&&k.isFunction(e.entries)){const r={};return k.forEachEntry(e,(n,o)=>{t(Dy(n),o,r,0)}),r}return null}function jy(e,t,r){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const en={transitional:zc,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return o?JSON.stringify(Bc(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Ry(t,this.formSerializer).toString();if((l=k.isFileList(t))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return go(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),jy(t)):t}],transformResponse:[function(t){const r=this.transitional||en.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?ae.from(l,ae.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:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{en.headers[e]={}});const zy=k.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"]),By=e=>{const t={};let r,n,o;return e&&e.split(`
20
+ `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||t[r]&&zy[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Lc=Symbol("internals");function tn(e){return e&&String(e).trim().toLowerCase()}function mo(e){return e===!1||e==null?e:k.isArray(e)?e.map(mo):String(e)}function Ly(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Fy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ds(e,t,r,n,o){if(k.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!k.isString(t)){if(k.isString(n))return t.indexOf(n)!==-1;if(k.isRegExp(n))return n.test(t)}}function Vy(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Wy(e,t){const r=k.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Ue=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(l,c,u){const d=tn(c);if(!d)throw new Error("header name must be a non-empty string");const p=k.findKey(o,d);(!p||o[p]===void 0||u===!0||u===void 0&&o[p]!==!1)&&(o[p||c]=mo(l))}const s=(l,c)=>k.forEach(l,(u,d)=>i(u,d,c));if(k.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(k.isString(t)&&(t=t.trim())&&!Fy(t))s(By(t),r);else if(k.isObject(t)&&k.isIterable(t)){let l={},c,u;for(const d of t){if(!k.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?k.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}s(l,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=tn(t),t){const n=k.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return Ly(o);if(k.isFunction(r))return r.call(this,o,n);if(k.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=tn(t),t){const n=k.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ds(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=tn(s),s){const l=k.findKey(n,s);l&&(!r||ds(n,n[l],l,r))&&(delete n[l],o=!0)}}return k.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||ds(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return k.forEach(this,(o,i)=>{const s=k.findKey(n,i);if(s){r[s]=mo(o),delete r[i];return}const l=t?Vy(i):String(i).trim();l!==i&&delete r[i],r[l]=mo(o),n[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return k.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&k.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).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,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[Lc]=this[Lc]={accessors:{}}).accessors,o=this.prototype;function i(s){const l=tn(s);n[l]||(Wy(o,s),n[l]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}};Ue.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.reduceDescriptors(Ue.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}}),k.freezeMethods(Ue);function fs(e,t){const r=this||en,n=t||r,o=Ue.from(n.headers);let i=n.data;return k.forEach(e,function(l){i=l.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Fc(e){return!!(e&&e.__CANCEL__)}function gr(e,t,r){ae.call(this,e??"canceled",ae.ERR_CANCELED,t,r),this.name="CanceledError"}k.inherits(gr,ae,{__CANCEL__:!0});function Vc(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ae("Request failed with status code "+r.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Uy(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hy(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=n[i];s||(s=u),r[o]=c,n[o]=u;let p=i,b=0;for(;p!==o;)b+=r[p++],p=p%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-s<t)return;const y=d&&u-d;return y?Math.round(b*1e3/y):void 0}}function qy(e,t){let r=0,n=1e3/t,o,i;const s=(u,d=Date.now())=>{r=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),p=d-r;p>=n?s(u,d):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},n-p)))},()=>o&&s(o)]}const yo=(e,t,r=3)=>{let n=0;const o=Hy(50,250);return qy(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-n,u=o(c),d=s<=l;n=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},r)},Wc=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Uc=e=>(...t)=>k.asap(()=>e(...t)),Yy=ze.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ze.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,Ky=ze.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];k.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),k.isString(n)&&l.push(`path=${n}`),k.isString(o)&&l.push(`domain=${o}`),i===!0&&l.push("secure"),k.isString(s)&&l.push(`SameSite=${s}`),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 Gy(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Xy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hc(e,t,r){let n=!Gy(t);return e&&(n||r==!1)?Xy(e,t):t}const qc=e=>e instanceof Ue?{...e}:e;function Kt(e,t){t=t||{};const r={};function n(u,d,p,b){return k.isPlainObject(u)&&k.isPlainObject(d)?k.merge.call({caseless:b},u,d):k.isPlainObject(d)?k.merge({},d):k.isArray(d)?d.slice():d}function o(u,d,p,b){if(k.isUndefined(d)){if(!k.isUndefined(u))return n(void 0,u,p,b)}else return n(u,d,p,b)}function i(u,d){if(!k.isUndefined(d))return n(void 0,d)}function s(u,d){if(k.isUndefined(d)){if(!k.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function l(u,d,p){if(p in t)return n(u,d);if(p in e)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d,p)=>o(qc(u),qc(d),p,!0)};return k.forEach(Object.keys({...e,...t}),function(d){const p=c[d]||o,b=p(e[d],t[d],d);k.isUndefined(b)&&p!==l||(r[d]=b)}),r}const Yc=e=>{const t=Kt({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Ue.from(s),t.url=Mc(Hc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),k.isFormData(r)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(k.isFunction(r.getHeaders)){const c=r.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,p])=>{u.includes(d.toLowerCase())&&s.set(d,p)})}}if(ze.hasStandardBrowserEnv&&(n&&k.isFunction(n)&&(n=n(t)),n||n!==!1&&Yy(t.url))){const c=o&&i&&Ky.read(i);c&&s.set(o,c)}return t},Jy=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,n){const o=Yc(e);let i=o.data;const s=Ue.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=o,d,p,b,y,g;function f(){y&&y(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function E(){if(!m)return;const S=Ue.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:S,config:e,request:m};Vc(function(P){r(P),f()},function(P){n(P),f()},w),m=null}"onloadend"in m?m.onloadend=E:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(E)},m.onabort=function(){m&&(n(new ae("Request aborted",ae.ECONNABORTED,e,m)),m=null)},m.onerror=function(x){const w=x&&x.message?x.message:"Network Error",T=new ae(w,ae.ERR_NETWORK,e,m);T.event=x||null,n(T),m=null},m.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const w=o.transitional||zc;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),n(new ae(x,w.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,m)),m=null},i===void 0&&s.setContentType(null),"setRequestHeader"in m&&k.forEach(s.toJSON(),function(x,w){m.setRequestHeader(w,x)}),k.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),l&&l!=="json"&&(m.responseType=o.responseType),u&&([b,g]=yo(u,!0),m.addEventListener("progress",b)),c&&m.upload&&([p,y]=yo(c),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",y)),(o.cancelToken||o.signal)&&(d=S=>{m&&(n(!S||S.type?new gr(null,e,m):S),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const O=Uy(o.url);if(O&&ze.protocols.indexOf(O)===-1){n(new ae("Unsupported protocol "+O+":",ae.ERR_BAD_REQUEST,e));return}m.send(i||null)})},Qy=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,o;const i=function(u){if(!o){o=!0,l();const d=u instanceof Error?u:this.reason;n.abort(d instanceof ae?d:new gr(d instanceof Error?d.message:d))}};let s=t&&setTimeout(()=>{s=null,i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:c}=n;return c.unsubscribe=()=>k.asap(l),c}},Zy=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},eb=async function*(e,t){for await(const r of tb(e))yield*Zy(r,t)},tb=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Kc=(e,t,r,n)=>{const o=eb(e,t);let i=0,s,l=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await o.next();if(u){l(),c.close();return}let p=d.byteLength;if(r){let b=i+=p;r(b)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Gc=64*1024,{isFunction:bo}=k,rb=(({Request:e,Response:t})=>({Request:e,Response:t}))(k.global),{ReadableStream:Xc,TextEncoder:Jc}=k.global,Qc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},nb=e=>{e=k.merge.call({skipUndefined:!0},rb,e);const{fetch:t,Request:r,Response:n}=e,o=t?bo(t):typeof fetch=="function",i=bo(r),s=bo(n);if(!o)return!1;const l=o&&bo(Xc),c=o&&(typeof Jc=="function"?(g=>f=>g.encode(f))(new Jc):async g=>new Uint8Array(await new r(g).arrayBuffer())),u=i&&l&&Qc(()=>{let g=!1;const f=new r(ze.origin,{body:new Xc,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),d=s&&l&&Qc(()=>k.isReadableStream(new n("").body)),p={stream:d&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!p[g]&&(p[g]=(f,m)=>{let E=f&&f[g];if(E)return E.call(f);throw new ae(`Response type '${g}' is not supported`,ae.ERR_NOT_SUPPORT,m)})});const b=async g=>{if(g==null)return 0;if(k.isBlob(g))return g.size;if(k.isSpecCompliantForm(g))return(await new r(ze.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(k.isArrayBufferView(g)||k.isArrayBuffer(g))return g.byteLength;if(k.isURLSearchParams(g)&&(g=g+""),k.isString(g))return(await c(g)).byteLength},y=async(g,f)=>{const m=k.toFiniteNumber(g.getContentLength());return m??b(f)};return async g=>{let{url:f,method:m,data:E,signal:O,cancelToken:S,timeout:x,onDownloadProgress:w,onUploadProgress:T,responseType:P,headers:I,withCredentials:j="same-origin",fetchOptions:L}=Yc(g),W=t||fetch;P=P?(P+"").toLowerCase():"text";let v=Qy([O,S&&S.toAbortSignal()],x),A=null;const N=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let D;try{if(T&&u&&m!=="get"&&m!=="head"&&(D=await y(I,E))!==0){let F=new r(f,{method:"POST",body:E,duplex:"half"}),q;if(k.isFormData(E)&&(q=F.headers.get("content-type"))&&I.setContentType(q),F.body){const[J,K]=Wc(D,yo(Uc(T)));E=Kc(F.body,Gc,J,K)}}k.isString(j)||(j=j?"include":"omit");const M=i&&"credentials"in r.prototype,X={...L,signal:v,method:m.toUpperCase(),headers:I.normalize().toJSON(),body:E,duplex:"half",credentials:M?j:void 0};A=i&&new r(f,X);let ee=await(i?W(A,L):W(f,X));const H=d&&(P==="stream"||P==="response");if(d&&(w||H&&N)){const F={};["status","statusText","headers"].forEach(Y=>{F[Y]=ee[Y]});const q=k.toFiniteNumber(ee.headers.get("content-length")),[J,K]=w&&Wc(q,yo(Uc(w),!0))||[];ee=new n(Kc(ee.body,Gc,J,()=>{K&&K(),N&&N()}),F)}P=P||"text";let R=await p[k.findKey(p,P)||"text"](ee,g);return!H&&N&&N(),await new Promise((F,q)=>{Vc(F,q,{data:R,headers:Ue.from(ee.headers),status:ee.status,statusText:ee.statusText,config:g,request:A})})}catch(M){throw N&&N(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,g,A),{cause:M.cause||M}):ae.from(M,M&&M.code,g,A)}}},ob=new Map,Zc=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,l=s,c,u,d=ob;for(;l--;)c=i[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:nb(t)),d=u;return u};Zc();const ps={http:Ty,xhr:Jy,fetch:{get:Zc}};k.forEach(ps,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const eu=e=>`- ${e}`,ib=e=>k.isFunction(e)||e===null||e===!1;function sb(e,t){e=k.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let l;if(o=n,!ib(n)&&(o=ps[(l=String(n)).toLowerCase()],o===void 0))throw new ae(`Unknown adapter '${l}'`);if(o&&(k.isFunction(o)||(o=o.get(t))))break;i[l||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=r?s.length>1?`since :
22
+ `+s.map(eu).join(`
23
+ `):" "+eu(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o}const tu={getAdapter:sb,adapters:ps};function hs(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gr(null,e)}function ru(e){return hs(e),e.headers=Ue.from(e.headers),e.data=fs.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tu.getAdapter(e.adapter||en.adapter,e)(e).then(function(n){return hs(e),n.data=fs.call(e,e.transformResponse,n),n.headers=Ue.from(n.headers),n},function(n){return Fc(n)||(hs(e),n&&n.response&&(n.response.data=fs.call(e,e.transformResponse,n.response),n.response.headers=Ue.from(n.response.headers))),Promise.reject(n)})}const nu="1.13.2",vo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ou={};vo.transitional=function(t,r,n){function o(i,s){return"[Axios v"+nu+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,l)=>{if(t===!1)throw new ae(o(s," has been removed"+(r?" in "+r:"")),ae.ERR_DEPRECATED);return r&&!ou[s]&&(ou[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,l):!0}},vo.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function ab(e,t,r){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=t[i];if(s){const l=e[i],c=l===void 0||s(l,i,e);if(c!==!0)throw new ae("option "+i+" must be "+c,ae.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const xo={assertOptions:ab,validators:vo},pt=xo.validators;let Gt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new jc,response:new jc}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
24
+ `+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Kt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&xo.assertOptions(n,{silentJSONParsing:pt.transitional(pt.boolean),forcedJSONParsing:pt.transitional(pt.boolean),clarifyTimeoutError:pt.transitional(pt.boolean)},!1),o!=null&&(k.isFunction(o)?r.paramsSerializer={serialize:o}:xo.assertOptions(o,{encode:pt.function,serialize:pt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),xo.assertOptions(r,{baseUrl:pt.spelling("baseURL"),withXsrfToken:pt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&k.merge(i.common,i[r.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),r.headers=Ue.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(r)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const u=[];this.interceptors.response.forEach(function(f){u.push(f.fulfilled,f.rejected)});let d,p=0,b;if(!c){const g=[ru.bind(this),void 0];for(g.unshift(...l),g.push(...u),b=g.length,d=Promise.resolve(r);p<b;)d=d.then(g[p++],g[p++]);return d}b=l.length;let y=r;for(;p<b;){const g=l[p++],f=l[p++];try{y=g(y)}catch(m){f.call(this,m);break}}try{d=ru.call(this,y)}catch(g){return Promise.reject(g)}for(p=0,b=u.length;p<b;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Kt(this.defaults,t);const r=Hc(t.baseURL,t.url,t.allowAbsoluteUrls);return Mc(r,t.params,t.paramsSerializer)}};k.forEach(["delete","get","head","options"],function(t){Gt.prototype[t]=function(r,n){return this.request(Kt(n||{},{method:t,url:r,data:(n||{}).data}))}}),k.forEach(["post","put","patch"],function(t){function r(n){return function(i,s,l){return this.request(Kt(l||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Gt.prototype[t]=r(),Gt.prototype[t+"Form"]=r(!0)});let lb=class ap{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(l=>{n.subscribe(l),i=l}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,l){n.reason||(n.reason=new gr(i,s,l),r(n.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 r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ap(function(o){t=o}),cancel:t}}};function cb(e){return function(r){return e.apply(null,r)}}function ub(e){return k.isObject(e)&&e.isAxiosError===!0}const gs={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(gs).forEach(([e,t])=>{gs[t]=e});function iu(e){const t=new Gt(e),r=wc(Gt.prototype.request,t);return k.extend(r,Gt.prototype,t,{allOwnKeys:!0}),k.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return iu(Kt(e,o))},r}const Ie=iu(en);Ie.Axios=Gt,Ie.CanceledError=gr,Ie.CancelToken=lb,Ie.isCancel=Fc,Ie.VERSION=nu,Ie.toFormData=go,Ie.AxiosError=ae,Ie.Cancel=Ie.CanceledError,Ie.all=function(t){return Promise.all(t)},Ie.spread=cb,Ie.isAxiosError=ub,Ie.mergeConfig=Kt,Ie.AxiosHeaders=Ue,Ie.formToJSON=e=>Bc(k.isHTMLForm(e)?new FormData(e):e),Ie.getAdapter=tu.getAdapter,Ie.HttpStatusCode=gs,Ie.default=Ie;const{Axios:Y1,AxiosError:K1,CanceledError:G1,isCancel:X1,CancelToken:J1,VERSION:Q1,all:Z1,Cancel:eC,isAxiosError:tC,spread:rC,toFormData:nC,AxiosHeaders:oC,HttpStatusCode:iC,formToJSON:sC,getAdapter:aC,mergeConfig:lC}=Ie;function wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var db={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 ms(e,t){function r(o,i,s){if(!(typeof document>"u")){s=wo({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in s)s[c]&&(l+="; "+c,s[c]!==!0&&(l+="="+s[c].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],s={},l=0;l<i.length;l++){var c=i[l].split("="),u=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(s[d]=e.read(u,d),o===d)break}catch{}}return o?s[o]:s}}return Object.create({set:r,get:n,remove:function(o,i){r(o,"",wo({},i,{expires:-1}))},withAttributes:function(o){return ms(this.converter,wo({},this.attributes,o))},withConverter:function(o){return ms(wo({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ot=ms(db,{path:"/"});const fb={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Xt="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:Si&&Si.tagName.toUpperCase()==="SCRIPT"&&Si.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&fb?.VITE_API_URL)Xt=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Xt=process.env.VITE_API_URL)}}catch{}const pb=e=>{Xt=e,So.defaults.baseURL=Xt},su=()=>Xt,hb=e=>{e?Ot.set("token",e,{secure:!0,sameSite:"Strict"}):Ot.remove("token")},gb=()=>{const e=Ot.get("token");return e||null},So=Ie.create({baseURL:Xt,transformRequest:[function(e,t){const r=gb();return r?t.Authorization=`Bearer ${r}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let ys=!1,bs=null;So.interceptors.response.use(e=>e,async e=>{const t=e.config,r=e.response;if(r&&(r.status===401||r.status===402)){const n=Ot.get("refreshToken");if(n)try{ys||(ys=!0,bs=Ie.post(`${Xt}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${n}`}}));const o=await bs,{token:i,refreshToken:s}=o.data;return Ot.set("token",i,{secure:!0,sameSite:"Strict"}),Ot.set("refreshToken",s),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${i}`,So(t)}catch{Ot.remove("token"),Ot.remove("refreshToken"),localStorage.clear(),window.location.href="/"}finally{ys=!1,bs=null}else Ot.remove("token"),localStorage.clear(),window.location.href="/"}return Promise.reject(e)});const Eo=lm("products/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{const n=await So.get("/store-inventory",{params:e}),o=Array.isArray(n.data.products)?n.data.products:[],i=(c,u=0)=>{const d=Number(c);return Number.isFinite(d)?d:u},s={},l=[];return o.forEach((c,u)=>{const d=c.sku||u;s[d]={id:d,storeId:c.storeId,storeName:c.storeName,name:c.productName,productName:c.productName,sku:c.sku,productDescription:c.productDescription,productShortDescription:c.productShortDescription,quantity:i(c.quantity),productWeight:c.productWeight,productImage:c.productImage,brandId:c.brandId,categoryId:c.categoryId,subCategoryId:c.subCategoryId,status:c.status,stock:i(c.stock),inventory:i(c.inventory),inshelff:i(c.inshelff),price:i(c.price),offer:c.offer,percentageOff:i(c.percentageOff),discount:c.discount,created:c.created,updated:c.updated,updatedAt:c.updated},l.push(d)}),{productIds:l,productsById:s}}catch(r){return console.log("Error fetching products:",r),t(r.response?.data||r.message)}}),mb=gm({name:"product",initialState:{loading:!1,error:null,productsById:{},productIds:[]},reducers:{},extraReducers:e=>{e.addCase(Eo.pending,t=>{t.loading=!0,t.loadingMessage="Fetching Schedules"}),e.addCase(Eo.fulfilled,(t,r)=>{t.loading=!1,t.loadingMessage="",t.error=null,t.productIds=r.payload?.productIds||[],t.productsById=r.payload?.productsById||{}}),e.addCase(Eo.rejected,(t,r)=>{t.loading=!1,t.error=r.error.message,t.loadingMessage=""})}}).reducer;var Co={},Oo={},au;function yb(){if(au)return Oo;au=1,Oo.__esModule=!0,Oo.default=o;function e(i){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(i)}function t(){}var r={getItem:t,setItem:t,removeItem:t};function n(i){if((typeof self>"u"?"undefined":e(self))!=="object"||!(i in self))return!1;try{var s=self[i],l="redux-persist ".concat(i," test");s.setItem(l,"test"),s.getItem(l),s.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(i," test failed, persistence will be disabled.")),!1}return!0}function o(i){var s="".concat(i,"Storage");return n(s)?self[s]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),r)}return Oo}var lu;function bb(){if(lu)return Co;lu=1,Co.__esModule=!0,Co.default=r;var e=t(yb());function t(n){return n&&n.__esModule?n:{default:n}}function r(n){var o=(0,e.default)(n);return{getItem:function(s){return new Promise(function(l,c){l(o.getItem(s))})},setItem:function(s,l){return new Promise(function(c,u){c(o.setItem(s,l))})},removeItem:function(s){return new Promise(function(l,c){l(o.removeItem(s))})}}}return Co}var vb=bb();const xb={key:"auth",storage:typeof window<"u"?vl(vb)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},wb=Nl({products:mb}),Sb=Dm(xb,wb),cu=Zg({reducer:Sb,middleware:e=>e({serializableCheck:!1})}),Eb=Fm(cu),uu=z.createContext(null),Cb=({children:e,apiUrl:t,authToken:r,auth:n=null,onAllStoresClick:o,onStoreSelect:i,StoresModal:s,storesModalProps:l={}})=>{z.useEffect(()=>{t&&pb(t)},[t]),z.useEffect(()=>{const d=r||n?.token||n?.accessToken||null;hb(d)},[r,n]);const c=z.useCallback(d=>{o&&o(d)},[o]),u=z.useCallback((d,p)=>{i&&i(d,p)},[i]);return h.jsx(uu.Provider,{value:{apiUrl:t,auth:n,onAllStoresClick:c,onStoreSelect:u,StoresModal:s,storesModalProps:l,hasStoresModal:!!s||!!o},children:e})},du=()=>{const e=z.useContext(uu);if(!e)throw new Error("useApiContext must be used within ApiProvider");return e},Ob=({products:e=[]})=>{const{id:t}=zp(),r=e.find(n=>String(n.id)===String(t));return r?h.jsxs("div",{style:{padding:24},children:[h.jsx("h2",{children:r.name}),h.jsx("p",{children:r.sku}),h.jsxs("p",{children:["Category: ",r.category]}),h.jsxs("p",{children:["Price: ₹",r.price]}),h.jsxs("p",{children:["Stock: ",r.stock," / ",r.maxStock]}),h.jsx(ur,{to:"/",children:"Back to list"})]}):h.jsxs("div",{style:{padding:24},children:[h.jsx("h2",{children:"Product not found"}),h.jsxs("p",{children:["The product with id ",t," was not found."]}),h.jsx(ur,{to:"/",children:"Back to list"})]})},rn={black:"#000",white:"#fff"},mr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},br={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},vr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},nn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Tb={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 Tt(e,...t){const r=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(n=>r.searchParams.append("args[]",n)),`Minified MUI error #${e}; visit ${r} for the full message.`}const on="$$material";function To(){return To=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},To.apply(null,arguments)}function Pb(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 kb(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 Nb=(function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Pb(o);try{i.insertRule(n,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Be="-ms-",Po="-moz-",ue="-webkit-",fu="comm",vs="rule",xs="decl",_b="@import",pu="@keyframes",Ib="@layer",Ab=Math.abs,ko=String.fromCharCode,$b=Object.assign;function Rb(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function hu(e){return e.trim()}function Db(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,r){return e.replace(t,r)}function ws(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function sn(e,t,r){return e.slice(t,r)}function ht(e){return e.length}function Ss(e){return e.length}function No(e,t){return t.push(e),e}function Mb(e,t){return e.map(t).join("")}var _o=1,wr=1,gu=0,He=0,De=0,Sr="";function Io(e,t,r,n,o,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:_o,column:wr,length:s,return:""}}function an(e,t){return $b(Io("",null,null,"",null,null,0),e,{length:-e.length},t)}function jb(){return De}function zb(){return De=He>0?je(Sr,--He):0,wr--,De===10&&(wr=1,_o--),De}function Ge(){return De=He<gu?je(Sr,He++):0,wr++,De===10&&(wr=1,_o++),De}function gt(){return je(Sr,He)}function Ao(){return He}function ln(e,t){return sn(Sr,e,t)}function cn(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 mu(e){return _o=wr=1,gu=ht(Sr=e),He=0,[]}function yu(e){return Sr="",e}function $o(e){return hu(ln(He-1,Es(e===91?e+2:e===40?e+1:e)))}function Bb(e){for(;(De=gt())&&De<33;)Ge();return cn(e)>2||cn(De)>3?"":" "}function Lb(e,t){for(;--t&&Ge()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return ln(e,Ao()+(t<6&&gt()==32&&Ge()==32))}function Es(e){for(;Ge();)switch(De){case e:return He;case 34:case 39:e!==34&&e!==39&&Es(De);break;case 40:e===41&&Es(e);break;case 92:Ge();break}return He}function Fb(e,t){for(;Ge()&&e+De!==57;)if(e+De===84&&gt()===47)break;return"/*"+ln(t,He-1)+"*"+ko(e===47?e:Ge())}function Vb(e){for(;!cn(gt());)Ge();return ln(e,He)}function Wb(e){return yu(Ro("",null,null,null,[""],e=mu(e),0,[0],e))}function Ro(e,t,r,n,o,i,s,l,c){for(var u=0,d=0,p=s,b=0,y=0,g=0,f=1,m=1,E=1,O=0,S="",x=o,w=i,T=n,P=S;m;)switch(g=O,O=Ge()){case 40:if(g!=108&&je(P,p-1)==58){ws(P+=de($o(O),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:P+=$o(O);break;case 9:case 10:case 13:case 32:P+=Bb(g);break;case 92:P+=Lb(Ao()-1,7);continue;case 47:switch(gt()){case 42:case 47:No(Ub(Fb(Ge(),Ao()),t,r),c);break;default:P+="/"}break;case 123*f:l[u++]=ht(P)*E;case 125*f:case 59:case 0:switch(O){case 0:case 125:m=0;case 59+d:E==-1&&(P=de(P,/\f/g,"")),y>0&&ht(P)-p&&No(y>32?vu(P+";",n,r,p-1):vu(de(P," ","")+";",n,r,p-2),c);break;case 59:P+=";";default:if(No(T=bu(P,t,r,u,d,o,l,S,x=[],w=[],p),i),O===123)if(d===0)Ro(P,t,T,T,x,i,p,l,w);else switch(b===99&&je(P,3)===110?100:b){case 100:case 108:case 109:case 115:Ro(e,T,T,n&&No(bu(e,T,T,0,0,o,l,S,o,x=[],p),w),o,w,p,l,n?x:w);break;default:Ro(P,T,T,T,[""],w,0,l,w)}}u=d=y=0,f=E=1,S=P="",p=s;break;case 58:p=1+ht(P),y=g;default:if(f<1){if(O==123)--f;else if(O==125&&f++==0&&zb()==125)continue}switch(P+=ko(O),O*f){case 38:E=d>0?1:(P+="\f",-1);break;case 44:l[u++]=(ht(P)-1)*E,E=1;break;case 64:gt()===45&&(P+=$o(Ge())),b=gt(),d=p=ht(S=P+=Vb(Ao())),O++;break;case 45:g===45&&ht(P)==2&&(f=0)}}return i}function bu(e,t,r,n,o,i,s,l,c,u,d){for(var p=o-1,b=o===0?i:[""],y=Ss(b),g=0,f=0,m=0;g<n;++g)for(var E=0,O=sn(e,p+1,p=Ab(f=s[g])),S=e;E<y;++E)(S=hu(f>0?b[E]+" "+O:de(O,/&\f/g,b[E])))&&(c[m++]=S);return Io(e,t,r,o===0?vs:l,c,u,d)}function Ub(e,t,r){return Io(e,t,r,fu,ko(jb()),sn(e,2,-2),0)}function vu(e,t,r,n){return Io(e,t,r,xs,sn(e,0,n),sn(e,n+1,-1),n)}function Er(e,t){for(var r="",n=Ss(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Hb(e,t,r,n){switch(e.type){case Ib:if(e.children.length)break;case _b:case xs:return e.return=e.return||e.value;case fu:return"";case pu:return e.return=e.value+"{"+Er(e.children,n)+"}";case vs:e.value=e.props.join(",")}return ht(r=Er(e.children,n))?e.return=e.value+"{"+r+"}":""}function qb(e){var t=Ss(e);return function(r,n,o,i){for(var s="",l=0;l<t;l++)s+=e[l](r,n,o,i)||"";return s}}function Yb(e){return function(t){t.root||(t=t.return)&&e(t)}}function xu(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Kb=function(t,r,n){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(r[n]=1),!cn(i);)Ge();return ln(t,He)},Gb=function(t,r){var n=-1,o=44;do switch(cn(o)){case 0:o===38&&gt()===12&&(r[n]=1),t[n]+=Kb(He-1,r,n);break;case 2:t[n]+=$o(o);break;case 4:if(o===44){t[++n]=gt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=ko(o)}while(o=Ge());return t},Xb=function(t,r){return yu(Gb(mu(t),r))},wu=new WeakMap,Jb=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!wu.get(n))&&!o){wu.set(t,!0);for(var i=[],s=Xb(r,i),l=n.props,c=0,u=0;c<s.length;c++)for(var d=0;d<l.length;d++,u++)t.props[u]=i[c]?s[c].replace(/&\f/g,l[d]):l[d]+" "+s[c]}}},Qb=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Su(e,t){switch(Rb(e,t)){case 5103:return ue+"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 ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ue+e+Po+e+Be+e+e;case 6828:case 4268:return ue+e+Be+e+e;case 6165:return ue+e+Be+"flex-"+e+e;case 5187:return ue+e+de(e,/(\w+).+(:[^]+)/,ue+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return ue+e+Be+"flex-item-"+de(e,/flex-|-self/,"")+e;case 4675:return ue+e+Be+"flex-line-pack"+de(e,/align-content|flex-|-self/,"")+e;case 5548:return ue+e+Be+de(e,"shrink","negative")+e;case 5292:return ue+e+Be+de(e,"basis","preferred-size")+e;case 6060:return ue+"box-"+de(e,"-grow","")+ue+e+Be+de(e,"grow","positive")+e;case 4554:return ue+de(e,/([^-])(transform)/g,"$1"+ue+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,ue+"$1"),/(image-set)/,ue+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,ue+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,ue+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ue+e+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,ue+"$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(ht(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+ue+"$2-$3$1"+Po+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ws(e,"stretch")?Su(de(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,ht(e)-3-(~ws(e,"!important")&&10))){case 107:return de(e,":",":"+ue)+e;case 101:return de(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ue+(je(e,14)===45?"inline-":"")+"box$3$1"+ue+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ue+e+Be+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ue+e+Be+e+e}return e}var Zb=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case xs:t.return=Su(t.value,t.length);break;case pu:return Er([an(t,{value:de(t.value,"@","@"+ue)})],o);case vs:if(t.length)return Mb(t.props,function(i){switch(Db(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Er([an(t,{props:[de(i,/:(read-\w+)/,":"+Po+"$1")]})],o);case"::placeholder":return Er([an(t,{props:[de(i,/:(plac\w+)/,":"+ue+"input-$1")]}),an(t,{props:[de(i,/:(plac\w+)/,":"+Po+"$1")]}),an(t,{props:[de(i,/:(plac\w+)/,Be+"input-$1")]})],o)}return""})}},e0=[Zb],t0=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||e0,i={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),E=1;E<m.length;E++)i[m[E]]=!0;l.push(f)});var c,u=[Jb,Qb];{var d,p=[Hb,Yb(function(f){d.insert(f)})],b=qb(u.concat(o,p)),y=function(m){return Er(Wb(m),b)};c=function(m,E,O,S){d=O,y(m?m+"{"+E.styles+"}":E.styles),S&&(g.inserted[E.name]=!0)}}var g={key:r,sheet:new Nb({key:r,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return g.sheet.hydrate(l),g},Do={exports:{}},fe={};var Eu;function r0(){if(Eu)return fe;Eu=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=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,E=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case t:switch(w=w.type,w){case c:case u:case n:case i:case o:case p:return w;default:switch(w=w&&w.$$typeof,w){case l:case d:case g:case y:case s:return w;default:return T}}case r:return T}}}function x(w){return S(w)===u}return fe.AsyncMode=c,fe.ConcurrentMode=u,fe.ContextConsumer=l,fe.ContextProvider=s,fe.Element=t,fe.ForwardRef=d,fe.Fragment=n,fe.Lazy=g,fe.Memo=y,fe.Portal=r,fe.Profiler=i,fe.StrictMode=o,fe.Suspense=p,fe.isAsyncMode=function(w){return x(w)||S(w)===c},fe.isConcurrentMode=x,fe.isContextConsumer=function(w){return S(w)===l},fe.isContextProvider=function(w){return S(w)===s},fe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},fe.isForwardRef=function(w){return S(w)===d},fe.isFragment=function(w){return S(w)===n},fe.isLazy=function(w){return S(w)===g},fe.isMemo=function(w){return S(w)===y},fe.isPortal=function(w){return S(w)===r},fe.isProfiler=function(w){return S(w)===i},fe.isStrictMode=function(w){return S(w)===o},fe.isSuspense=function(w){return S(w)===p},fe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===u||w===i||w===o||w===p||w===b||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===y||w.$$typeof===s||w.$$typeof===l||w.$$typeof===d||w.$$typeof===m||w.$$typeof===E||w.$$typeof===O||w.$$typeof===f)},fe.typeOf=S,fe}var pe={};var Cu;function n0(){return Cu||(Cu=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=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,E=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(V){return typeof V=="string"||typeof V=="function"||V===n||V===u||V===i||V===o||V===p||V===b||typeof V=="object"&&V!==null&&(V.$$typeof===g||V.$$typeof===y||V.$$typeof===s||V.$$typeof===l||V.$$typeof===d||V.$$typeof===m||V.$$typeof===E||V.$$typeof===O||V.$$typeof===f)}function x(V){if(typeof V=="object"&&V!==null){var he=V.$$typeof;switch(he){case t:var ce=V.type;switch(ce){case c:case u:case n:case i:case o:case p:return ce;default:var Ne=ce&&ce.$$typeof;switch(Ne){case l:case d:case g:case y:case s:return Ne;default:return he}}case r:return he}}}var w=c,T=u,P=l,I=s,j=t,L=d,W=n,v=g,A=y,N=r,D=i,M=o,X=p,ee=!1;function H(V){return ee||(ee=!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.")),R(V)||x(V)===c}function R(V){return x(V)===u}function F(V){return x(V)===l}function q(V){return x(V)===s}function J(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function K(V){return x(V)===d}function Y(V){return x(V)===n}function G(V){return x(V)===g}function te(V){return x(V)===y}function oe(V){return x(V)===r}function ie(V){return x(V)===i}function U(V){return x(V)===o}function re(V){return x(V)===p}pe.AsyncMode=w,pe.ConcurrentMode=T,pe.ContextConsumer=P,pe.ContextProvider=I,pe.Element=j,pe.ForwardRef=L,pe.Fragment=W,pe.Lazy=v,pe.Memo=A,pe.Portal=N,pe.Profiler=D,pe.StrictMode=M,pe.Suspense=X,pe.isAsyncMode=H,pe.isConcurrentMode=R,pe.isContextConsumer=F,pe.isContextProvider=q,pe.isElement=J,pe.isForwardRef=K,pe.isFragment=Y,pe.isLazy=G,pe.isMemo=te,pe.isPortal=oe,pe.isProfiler=ie,pe.isStrictMode=U,pe.isSuspense=re,pe.isValidElementType=S,pe.typeOf=x})()),pe}var Ou;function Cs(){return Ou||(Ou=1,process.env.NODE_ENV==="production"?Do.exports=r0():Do.exports=n0()),Do.exports}var Os,Tu;function o0(){if(Tu)return Os;Tu=1;var e=Cs(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,b=Object.prototype;function y(g,f,m){if(typeof f!="string"){if(b){var E=p(f);E&&E!==b&&y(g,E,m)}var O=c(f);u&&(O=O.concat(u(f)));for(var S=s(g),x=s(f),w=0;w<O.length;++w){var T=O[w];if(!r[T]&&!(m&&m[T])&&!(x&&x[T])&&!(S&&S[T])){var P=d(f,T);try{l(g,T,P)}catch{}}}}return g}return Os=y,Os}o0();var i0=!0;function Pu(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Ts=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||i0===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},Ps=function(t,r,n){Ts(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function s0(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 a0={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},l0=/[A-Z]|^ms/g,c0=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ku=function(t){return t.charCodeAt(1)===45},Nu=function(t){return t!=null&&typeof t!="boolean"},ks=xu(function(e){return ku(e)?e:e.replace(l0,"-$&").toLowerCase()}),_u=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(c0,function(n,o,i){return mt={name:o,styles:i,next:mt},o})}return a0[t]!==1&&!ku(t)&&typeof r=="number"&&r!==0?r+"px":r};function un(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return mt={name:o.name,styles:o.styles,next:mt},o.name;var i=r;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)mt={name:s.name,styles:s.styles,next:mt},s=s.next;var l=i.styles+";";return l}return u0(e,t,r)}case"function":{if(e!==void 0){var c=mt,u=r(e);return mt=c,un(e,t,u)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}function u0(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=un(e,t,r[o])+";";else for(var i in r){var s=r[i];if(typeof s!="object"){var l=s;t!=null&&t[l]!==void 0?n+=i+"{"+t[l]+"}":Nu(l)&&(n+=ks(i)+":"+_u(i,l)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var c=0;c<s.length;c++)Nu(s[c])&&(n+=ks(i)+":"+_u(i,s[c])+";");else{var u=un(e,t,s);switch(i){case"animation":case"animationName":{n+=ks(i)+":"+u+";";break}default:n+=i+"{"+u+"}"}}}return n}var Iu=/label:\s*([^\s;{]+)\s*(;|$)/g,mt;function dn(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";mt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=un(r,t,i);else{var s=i;o+=s[0]}for(var l=1;l<e.length;l++)if(o+=un(r,t,e[l]),n){var c=i;o+=c[l]}Iu.lastIndex=0;for(var u="",d;(d=Iu.exec(o))!==null;)u+="-"+d[1];var p=s0(o)+u;return{name:p,styles:o,next:mt}}var d0=function(t){return t()},Au=C.useInsertionEffect?C.useInsertionEffect:!1,$u=Au||d0,Ru=Au||C.useLayoutEffect,Du=C.createContext(typeof HTMLElement<"u"?t0({key:"css"}):null);Du.Provider;var Ns=function(t){return z.forwardRef(function(r,n){var o=z.useContext(Du);return t(r,o,n)})},Mo=C.createContext({}),_s={}.hasOwnProperty,Is="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",f0=function(t,r){var n={};for(var o in r)_s.call(r,o)&&(n[o]=r[o]);return n[Is]=t,n},p0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ts(r,n,o),$u(function(){return Ps(r,n,o)}),null},h0=Ns(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[Is],i=[n],s="";typeof e.className=="string"?s=Pu(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var l=dn(i,void 0,C.useContext(Mo));s+=t.key+"-"+l.name;var c={};for(var u in e)_s.call(e,u)&&u!=="css"&&u!==Is&&(c[u]=e[u]);return c.className=s,r&&(c.ref=r),C.createElement(C.Fragment,null,C.createElement(p0,{cache:t,serialized:l,isStringTag:typeof o=="string"}),C.createElement(o,c))}),g0=h0,Mu=function(t,r){var n=arguments;if(r==null||!_s.call(r,"css"))return C.createElement.apply(void 0,n);var o=n.length,i=new Array(o);i[0]=g0,i[1]=f0(t,r);for(var s=2;s<o;s++)i[s]=n[s];return C.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Mu||(Mu={}));var m0=Ns(function(e,t){var r=e.styles,n=dn([r],void 0,C.useContext(Mo)),o=C.useRef();return Ru(function(){var i=t.key+"-global",s=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+i+" "+n.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",i),s.hydrate([c])),o.current=[s,l],function(){s.flush()}},[t]),Ru(function(){var i=o.current,s=i[0],l=i[1];if(l){i[1]=!1;return}if(n.next!==void 0&&Ps(t,n.next,!0),s.tags.length){var c=s.tags[s.tags.length-1].nextElementSibling;s.before=c,s.flush()}t.insert("",n,s,!1)},[t,n.name]),null});function As(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return dn(t)}function fn(){var e=As.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 y0=/^((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)-.*))$/,b0=xu(function(e){return y0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),v0=b0,x0=function(t){return t!=="theme"},ju=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?v0:x0},zu=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},w0=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Ts(r,n,o),$u(function(){return Ps(r,n,o)}),null},S0=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,s;r!==void 0&&(i=r.label,s=r.target);var l=zu(t,r,n),c=l||ju(o),u=!c("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&p.push("label:"+i+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var b=d[0];p.push(b[0]);for(var y=d.length,g=1;g<y;g++)p.push(d[g],b[g])}var f=Ns(function(m,E,O){var S=u&&m.as||o,x="",w=[],T=m;if(m.theme==null){T={};for(var P in m)T[P]=m[P];T.theme=C.useContext(Mo)}typeof m.className=="string"?x=Pu(E.registered,w,m.className):m.className!=null&&(x=m.className+" ");var I=dn(p.concat(w),E.registered,T);x+=E.key+"-"+I.name,s!==void 0&&(x+=" "+s);var j=u&&l===void 0?ju(S):c,L={};for(var W in m)u&&W==="as"||j(W)&&(L[W]=m[W]);return L.className=x,O&&(L.ref=O),C.createElement(C.Fragment,null,C.createElement(w0,{cache:E,serialized:I,isStringTag:typeof S=="string"}),C.createElement(S,L))});return f.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=p,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+s}}),f.withComponent=function(m,E){var O=e(m,To({},r,E,{shouldForwardProp:zu(f,E,!0)}));return O.apply(void 0,p)},f}},E0=["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"],$s=S0.bind(null);E0.forEach(function(e){$s[e]=$s(e)});var jo={exports:{}};var Rs,Bu;function C0(){if(Bu)return Rs;Bu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},l=0;l<10;l++)s["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Rs=o()?Object.assign:function(i,s){for(var l,c=n(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var p in l)t.call(l,p)&&(c[p]=l[p]);if(e){u=e(l);for(var b=0;b<u.length;b++)r.call(l,u[b])&&(c[u[b]]=l[u[b]])}}return c},Rs}var Ds,Lu;function Ms(){if(Lu)return Ds;Lu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ds=e,Ds}var js,Fu;function Vu(){return Fu||(Fu=1,js=Function.call.bind(Object.prototype.hasOwnProperty)),js}var zs,Wu;function O0(){if(Wu)return zs;Wu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ms(),r={},n=Vu();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var p;try{if(typeof i[d]!="function"){var b=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[d](s,d,c,l,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var y=u?u():"";e("Failed "+l+" type: "+p.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},zs=o,zs}var Bs,Uu;function T0(){if(Uu)return Bs;Uu=1;var e=Cs(),t=C0(),r=Ms(),n=Vu(),o=O0(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function s(){return null}return Bs=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(R){var F=R&&(u&&R[u]||R[d]);if(typeof F=="function")return F}var b="<<anonymous>>",y={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:O(),arrayOf:S,element:x(),elementType:w(),instanceOf:T,node:L(),objectOf:I,oneOf:P,oneOfType:j,shape:v,exact:A};function g(R,F){return R===F?R!==0||1/R===1/F:R!==R&&F!==F}function f(R,F){this.message=R,this.data=F&&typeof F=="object"?F:{},this.stack=""}f.prototype=Error.prototype;function m(R){if(process.env.NODE_ENV!=="production")var F={},q=0;function J(Y,G,te,oe,ie,U,re){if(oe=oe||b,U=U||te,re!==r){if(c){var V=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 V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var he=oe+":"+te;!F[he]&&q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+oe+"`. 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."),F[he]=!0,q++)}}return G[te]==null?Y?G[te]===null?new f("The "+ie+" `"+U+"` is marked as required "+("in `"+oe+"`, but its value is `null`.")):new f("The "+ie+" `"+U+"` is marked as required in "+("`"+oe+"`, but its value is `undefined`.")):null:R(G,te,oe,ie,U)}var K=J.bind(null,!1);return K.isRequired=J.bind(null,!0),K}function E(R){function F(q,J,K,Y,G,te){var oe=q[J],ie=M(oe);if(ie!==R){var U=X(oe);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+U+"` supplied to `"+K+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return m(F)}function O(){return m(s)}function S(R){function F(q,J,K,Y,G){if(typeof R!="function")return new f("Property `"+G+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var te=q[J];if(!Array.isArray(te)){var oe=M(te);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected an array."))}for(var ie=0;ie<te.length;ie++){var U=R(te,ie,K,Y,G+"["+ie+"]",r);if(U instanceof Error)return U}return null}return m(F)}function x(){function R(F,q,J,K,Y){var G=F[q];if(!l(G)){var te=M(G);return new f("Invalid "+K+" `"+Y+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return m(R)}function w(){function R(F,q,J,K,Y){var G=F[q];if(!e.isValidElementType(G)){var te=M(G);return new f("Invalid "+K+" `"+Y+"` of type "+("`"+te+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return m(R)}function T(R){function F(q,J,K,Y,G){if(!(q[J]instanceof R)){var te=R.name||b,oe=H(q[J]);return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected ")+("instance of `"+te+"`."))}return null}return m(F)}function P(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function F(q,J,K,Y,G){for(var te=q[J],oe=0;oe<R.length;oe++)if(g(te,R[oe]))return null;var ie=JSON.stringify(R,function(re,V){var he=X(V);return he==="symbol"?String(V):V});return new f("Invalid "+Y+" `"+G+"` of value `"+String(te)+"` "+("supplied to `"+K+"`, expected one of "+ie+"."))}return m(F)}function I(R){function F(q,J,K,Y,G){if(typeof R!="function")return new f("Property `"+G+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type "+("`"+oe+"` supplied to `"+K+"`, expected an object."));for(var ie in te)if(n(te,ie)){var U=R(te,ie,K,Y,G+"."+ie,r);if(U instanceof Error)return U}return null}return m(F)}function j(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var F=0;F<R.length;F++){var q=R[F];if(typeof q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(q)+" at index "+F+"."),s}function J(K,Y,G,te,oe){for(var ie=[],U=0;U<R.length;U++){var re=R[U],V=re(K,Y,G,te,oe,r);if(V==null)return null;V.data&&n(V.data,"expectedType")&&ie.push(V.data.expectedType)}var he=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+te+" `"+oe+"` supplied to "+("`"+G+"`"+he+"."))}return m(J)}function L(){function R(F,q,J,K,Y){return N(F[q])?null:new f("Invalid "+K+" `"+Y+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return m(R)}function W(R,F,q,J,K){return new f((R||"React class")+": "+F+" type `"+q+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function v(R){function F(q,J,K,Y,G){var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type `"+oe+"` "+("supplied to `"+K+"`, expected `object`."));for(var ie in R){var U=R[ie];if(typeof U!="function")return W(K,Y,G,ie,X(U));var re=U(te,ie,K,Y,G+"."+ie,r);if(re)return re}return null}return m(F)}function A(R){function F(q,J,K,Y,G){var te=q[J],oe=M(te);if(oe!=="object")return new f("Invalid "+Y+" `"+G+"` of type `"+oe+"` "+("supplied to `"+K+"`, expected `object`."));var ie=t({},q[J],R);for(var U in ie){var re=R[U];if(n(R,U)&&typeof re!="function")return W(K,Y,G,U,X(re));if(!re)return new f("Invalid "+Y+" `"+G+"` key `"+U+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(q[J],null," ")+`
25
+ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var V=re(te,U,K,Y,G+"."+U,r);if(V)return V}return null}return m(F)}function N(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(N);if(R===null||l(R))return!0;var F=p(R);if(F){var q=F.call(R),J;if(F!==R.entries){for(;!(J=q.next()).done;)if(!N(J.value))return!1}else for(;!(J=q.next()).done;){var K=J.value;if(K&&!N(K[1]))return!1}}else return!1;return!0;default:return!1}}function D(R,F){return R==="symbol"?!0:F?F["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&F instanceof Symbol:!1}function M(R){var F=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":D(F,R)?"symbol":F}function X(R){if(typeof R>"u"||R===null)return""+R;var F=M(R);if(F==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return F}function ee(R){var F=X(R);switch(F){case"array":case"object":return"an "+F;case"boolean":case"date":case"regexp":return"a "+F;default:return F}}function H(R){return!R.constructor||!R.constructor.name?b:R.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},Bs}var Ls,Hu;function P0(){if(Hu)return Ls;Hu=1;var e=Ms();function t(){}function r(){}return r.resetWarningCache=t,Ls=function(){function n(s,l,c,u,d,p){if(p!==e){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},Ls}var qu;function k0(){if(qu)return jo.exports;if(qu=1,process.env.NODE_ENV!=="production"){var e=Cs(),t=!0;jo.exports=T0()(e.isElement,t)}else jo.exports=P0()();return jo.exports}var N0=k0();const a=vl(N0);function _0(e){return e==null||Object.keys(e).length===0}function Yu(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(_0(o)?r:o):t;return h.jsx(m0,{styles:n})}process.env.NODE_ENV!=="production"&&(Yu.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});function Ku(e,t){const r=$s(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
26
+ `)):n.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}function I0(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Gu=[];function Bt(e){return Gu[0]=e,dn(Gu)}var zo={exports:{}},ye={};var Xu;function A0(){if(Xu)return ye;Xu=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=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 r:case o:case n:case c:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case i:return f;default:return m}}case t:return m}}}return ye.ContextConsumer=i,ye.ContextProvider=s,ye.Element=e,ye.ForwardRef=l,ye.Fragment=r,ye.Lazy=p,ye.Memo=d,ye.Portal=t,ye.Profiler=o,ye.StrictMode=n,ye.Suspense=c,ye.SuspenseList=u,ye.isContextConsumer=function(f){return g(f)===i},ye.isContextProvider=function(f){return g(f)===s},ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ye.isForwardRef=function(f){return g(f)===l},ye.isFragment=function(f){return g(f)===r},ye.isLazy=function(f){return g(f)===p},ye.isMemo=function(f){return g(f)===d},ye.isPortal=function(f){return g(f)===t},ye.isProfiler=function(f){return g(f)===o},ye.isStrictMode=function(f){return g(f)===n},ye.isSuspense=function(f){return g(f)===c},ye.isSuspenseList=function(f){return g(f)===u},ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},ye.typeOf=g,ye}var be={};var Ju;function $0(){return Ju||(Ju=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 n:case i:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case p:return f;case s:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");be.ContextConsumer=s,be.ContextProvider=l,be.Element=t,be.ForwardRef=c,be.Fragment=n,be.Lazy=b,be.Memo=p,be.Portal=r,be.Profiler=i,be.StrictMode=o,be.Suspense=u,be.SuspenseList=d,be.isContextConsumer=function(f){return e(f)===s},be.isContextProvider=function(f){return e(f)===l},be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},be.isForwardRef=function(f){return e(f)===c},be.isFragment=function(f){return e(f)===n},be.isLazy=function(f){return e(f)===b},be.isMemo=function(f){return e(f)===p},be.isPortal=function(f){return e(f)===r},be.isProfiler=function(f){return e(f)===i},be.isStrictMode=function(f){return e(f)===o},be.isSuspense=function(f){return e(f)===u},be.isSuspenseList=function(f){return e(f)===d},be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},be.typeOf=e})()),be}var Qu;function R0(){return Qu||(Qu=1,process.env.NODE_ENV==="production"?zo.exports=A0():zo.exports=$0()),zo.exports}var Bo=R0();function yt(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 Zu(e){if(C.isValidElement(e)||Bo.isValidElementType(e)||!yt(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=Zu(e[r])}),t}function Xe(e,t,r={clone:!0}){const n=r.clone?{...e}:e;return yt(e)&&yt(t)&&Object.keys(t).forEach(o=>{C.isValidElement(t[o])||Bo.isValidElementType(t[o])?n[o]=t[o]:yt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&yt(e[o])?n[o]=Xe(e[o],t[o],r):r.clone?n[o]=yt(t[o])?Zu(t[o]):t[o]:n[o]=t[o]}),n}const D0=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>({...r,[n.key]:n.val}),{})};function M0(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5,...o}=e,i=D0(t),s=Object.keys(i);function l(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r})`}function c(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-n/100}${r})`}function u(b,y){const g=s.indexOf(y);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${r}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:y)-n/100}${r})`}function d(b){return s.indexOf(b)+1<s.length?u(b,s[s.indexOf(b)+1]):l(b)}function p(b){const y=s.indexOf(b);return y===0?l(s[1]):y===s.length-1?c(s[y]):u(b,s[s.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:l,down:c,between:u,only:d,not:p,unit:r,...o}}function ed(e,t){if(!e.containerQueries)return t;const r=Object.keys(t).filter(n=>n.startsWith("@container")).sort((n,o)=>{const i=/min-width:\s*([0-9.]+)/;return+(n.match(i)?.[1]||0)-+(o.match(i)?.[1]||0)});return r.length?r.reduce((n,o)=>{const i=t[o];return delete n[o],n[o]=i,n},{...t}):t}function j0(e,t){return t==="@"||t.startsWith("@")&&(e.some(r=>t.startsWith(`@${r}`))||!!t.match(/^@\d/))}function z0(e,t){const r=t.match(/^@([^/]+)?\/?(.+)?$/);if(!r){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\`.`:Tt(18,`(${t})`));return null}const[,n,o]=r,i=Number.isNaN(+n)?n||0:+n;return e.containerQueries(o).up(i)}function B0(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function r(i,s){i.up=(...l)=>t(e.breakpoints.up(...l),s),i.down=(...l)=>t(e.breakpoints.down(...l),s),i.between=(...l)=>t(e.breakpoints.between(...l),s),i.only=(...l)=>t(e.breakpoints.only(...l),s),i.not=(...l)=>{const c=t(e.breakpoints.not(...l),s);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const n={},o=i=>(r(n,i),n);return r(o),{...e,containerQueries:o}}const L0={borderRadius:4},Lt=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function pn(e,t){return t?Xe(e,t,{clone:!1}):e}const Lo={xs:0,sm:600,md:900,lg:1200,xl:1536},td={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Lo[e]}px)`},F0={containerQueries:e=>({up:t=>{let r=typeof t=="number"?t:Lo[t]||t;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function Pt(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||td;return t.reduce((s,l,c)=>(s[i.up(i.keys[c])]=r(t[c]),s),{})}if(typeof t=="object"){const i=n.breakpoints||td;return Object.keys(t).reduce((s,l)=>{if(j0(i.keys,l)){const c=z0(n.containerQueries?n:F0,l);c&&(s[c]=r(t[l],l))}else if(Object.keys(i.values||Lo).includes(l)){const c=i.up(l);s[c]=r(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return r(t)}function V0(e={}){return e.keys?.reduce((r,n)=>{const o=e.up(n);return r[o]={},r},{})||{}}function rd(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Q(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Tt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Fo(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function Vo(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Fo(e,r)||n,t&&(o=t(o,n,e)),o}function Re(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,u=Fo(c,n)||{};return Pt(s,l,p=>{let b=Vo(u,o,p);return p===b&&typeof p=="string"&&(b=Vo(u,o,`${t}${p==="default"?"":Q(p)}`,p)),r===!1?b:{[r]:b}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Lt}:{},i.filterProps=[t],i}function W0(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const U0={m:"margin",p:"padding"},H0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},nd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},q0=W0(e=>{if(e.length>2)if(nd[e])e=nd[e];else return[e];const[t,r]=e.split(""),n=U0[t],o=H0[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),Wo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Uo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Y0=[...Wo,...Uo];function hn(e,t,r,n){const o=Fo(e,t,!0)??r;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.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
29
  `)));const l=o[s];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
30
- `)),()=>{})}function Fs(e){return pn(e,"spacing",8,"spacing")}function hn(e,t){return typeof t=="string"||t==null?t:e(t)}function q0(e,t){return r=>e.reduce((n,o)=>(n[o]=hn(t,r),n),{})}function Y0(e,t,r,n){if(!t.includes(r))return null;const o=U0(r),i=q0(o,n),s=e[r];return Tt(e,s,i)}function td(e,t){const r=Fs(e.theme);return Object.keys(e).map(n=>Y0(e,t,n,r)).reduce(fn,{})}function Ae(e){return td(e,Vo)}Ae.propTypes=process.env.NODE_ENV!=="production"?Vo.reduce((e,t)=>(e[t]=Bt,e),{}):{},Ae.filterProps=Vo;function $e(e){return td(e,Wo)}$e.propTypes=process.env.NODE_ENV!=="production"?Wo.reduce((e,t)=>(e[t]=Bt,e),{}):{},$e.filterProps=Wo,process.env.NODE_ENV!=="production"&&H0.reduce((e,t)=>(e[t]=Bt,e),{});function rd(e=8,t=Fs({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Uo(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?fn(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return Re({prop:e,themeKey:"borders",transform:t})}const K0=et("border",Ze),G0=et("borderTop",Ze),X0=et("borderRight",Ze),J0=et("borderBottom",Ze),Q0=et("borderLeft",Ze),Z0=et("borderColor"),ev=et("borderTopColor"),tv=et("borderRightColor"),rv=et("borderBottomColor"),nv=et("borderLeftColor"),ov=et("outline",Ze),iv=et("outlineColor"),Ho=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=pn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:hn(t,n)});return Tt(e,e.borderRadius,r)}return null};Ho.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Bt}:{},Ho.filterProps=["borderRadius"],Uo(K0,G0,X0,J0,Q0,Z0,ev,tv,rv,nv,Ho,ov,iv);const qo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=pn(e.theme,"spacing",8,"gap"),r=n=>({gap:hn(t,n)});return Tt(e,e.gap,r)}return null};qo.propTypes=process.env.NODE_ENV!=="production"?{gap:Bt}:{},qo.filterProps=["gap"];const Yo=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=pn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:hn(t,n)});return Tt(e,e.columnGap,r)}return null};Yo.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Bt}:{},Yo.filterProps=["columnGap"];const Ko=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=pn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:hn(t,n)});return Tt(e,e.rowGap,r)}return null};Ko.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Bt}:{},Ko.filterProps=["rowGap"];const sv=Re({prop:"gridColumn"}),av=Re({prop:"gridRow"}),lv=Re({prop:"gridAutoFlow"}),cv=Re({prop:"gridAutoColumns"}),uv=Re({prop:"gridAutoRows"}),dv=Re({prop:"gridTemplateColumns"}),fv=Re({prop:"gridTemplateRows"}),pv=Re({prop:"gridTemplateAreas"}),hv=Re({prop:"gridArea"});Uo(qo,Yo,Ko,sv,av,lv,cv,uv,dv,fv,pv,hv);function Er(e,t){return t==="grey"?t:e}const gv=Re({prop:"color",themeKey:"palette",transform:Er}),mv=Re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Er}),yv=Re({prop:"backgroundColor",themeKey:"palette",transform:Er});Uo(gv,mv,yv);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const bv=Re({prop:"width",transform:Je}),Ls=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Bo[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Je(r)}};return Tt(e,e.maxWidth,t)}return null};Ls.filterProps=["maxWidth"];const vv=Re({prop:"minWidth",transform:Je}),xv=Re({prop:"height",transform:Je}),wv=Re({prop:"maxHeight",transform:Je}),Sv=Re({prop:"minHeight",transform:Je});Re({prop:"size",cssProperty:"width",transform:Je}),Re({prop:"size",cssProperty:"height",transform:Je});const Ev=Re({prop:"boxSizing"});Uo(bv,Ls,vv,xv,wv,Sv,Ev);const gn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ho},color:{themeKey:"palette",transform:Er},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Er},backgroundColor:{themeKey:"palette",transform:Er},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Ae},mt:{style:Ae},mr:{style:Ae},mb:{style:Ae},ml:{style:Ae},mx:{style:Ae},my:{style:Ae},margin:{style:Ae},marginTop:{style:Ae},marginRight:{style:Ae},marginBottom:{style:Ae},marginLeft:{style:Ae},marginX:{style:Ae},marginY:{style:Ae},marginInline:{style:Ae},marginInlineStart:{style:Ae},marginInlineEnd:{style:Ae},marginBlock:{style:Ae},marginBlockStart:{style:Ae},marginBlockEnd:{style:Ae},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:qo},rowGap:{style:Ko},columnGap:{style:Yo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Ls},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 Cv(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Ov(e,t){return typeof e=="function"?e(t):e}function Tv(){function e(r,n,o,i){const s={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:p}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const b=Fo(o,u)||{};return p?p(s):Tt(s,n,g=>{let f=Lo(b,d,g);return g===f&&typeof g=="string"&&(f=Lo(b,d,`${r}${g==="default"?"":Q(g)}`,g)),c===!1?f:{[c]:f}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??gn;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=F0(o.breakpoints),p=Object.keys(d);let b=d;return Object.keys(u).forEach(y=>{const g=Ov(u[y],o);if(g!=null)if(typeof g=="object")if(s[y])b=fn(b,e(y,g,o,s));else{const f=Tt({theme:o},g,m=>({[y]:m}));Cv(f,g)?b[y]=t({sx:g,theme:o,nested:!0}):b=fn(b,f)}else b=fn(b,e(y,g,o,s))}),!i&&o.modularCssLayers?{"@layer sx":Ju(o,Zu(p,b))}:Ju(o,Zu(p,b))}return Array.isArray(n)?n.map(l):l(n)}return t}const Xt=Tv();Xt.filterProps=["sx"];function Pv(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Vs(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e,l=R0(r),c=rd(o);let u=Xe({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...z0,...i}},s);return u=j0(u),u.applyStyles=Pv,u=t.reduce((d,p)=>Xe(d,p),u),u.unstable_sxConfig={...gn,...s?.unstable_sxConfig},u.unstable_sx=function(p){return Xt({sx:p,theme:this})},u}function kv(e){return Object.keys(e).length===0}function nd(e=null){const t=C.useContext(Do);return!t||kv(t)?e:t}const Nv=Vs();function Ws(e=Nv){return nd(e)}function Us(e){const t=zt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function od({styles:e,themeId:t,defaultTheme:r={}}){const n=Ws(r),o=t&&n[t]||n;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(s=>Us(typeof s=="function"?s(o):s)):i=Us(i)),h.jsx(Uu,{styles:i})}process.env.NODE_ENV!=="production"&&(od.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.func,a.number,a.object,a.string,a.bool]),themeId:a.string});const _v=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??gn;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function id(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=_v(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return mt(l)?{...n,...l}:n}:i={...n,...t},{...o,sx:i}}const sd=e=>e,ad=(()=>{let e=sd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sd}}})();function ld(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=ld(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ld(e))&&(n&&(n+=" "),n+=t);return n}function Iv(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hu("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Xt);return C.forwardRef(function(c,u){const d=Ws(r),{className:p,component:b="div",...y}=id(c);return h.jsx(i,{as:b,ref:u,className:ne(p,o?o(n):n),theme:t&&d[t]||d,...y})})}const Av={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 Ee(e,t,r="Mui"){const n=Av[t];return n?`${r}-${n}`:`${ad.generate(e)}-${t}`}function ve(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ee(e,o,r)}),n}function cd(e,t=""){return e.displayName||e.name||t}function ud(e,t,r){const n=cd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function $v(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case zo.ForwardRef:return ud(e,e.render,"ForwardRef");case zo.Memo:return ud(e,e.type,"memo");default:return}}}function dd(e){const{variants:t,...r}=e,n={variants:t,style:zt(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=zt(o.style))}),n}const Rv=Vs();function Hs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Jt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Dv(e){return e?(t,r)=>r[e]:null}function Mv(e,t,r){e.theme=Fv(e.theme)?r:e.theme[t]||e.theme}function Go(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Go(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Jt(n.style,r):n.style;else{const{variants:i,...s}=n;o=r?Jt(zt(s),r):s}return fd(e,n.variants,[o],r)}return n?.isProcessed?r?Jt(zt(n.style),r):n.style:r?Jt(zt(n),r):n}function fd(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Jt(zt(s.style(o)),n):s.style(o))):r.push(n?Jt(zt(s.style),n):s.style)}return r}function jv(e={}){const{themeId:t,defaultTheme:r=Rv,rootShouldForwardProp:n=Hs,slotShouldForwardProp:o=Hs}=e;function i(l){Mv(l,t,r)}return(l,c={})=>{N0(l,T=>T.filter(P=>P!==Xt));const{name:u,slot:d,skipVariantsResolver:p,skipSx:b,overridesResolver:y=Dv(pd(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,S=b||!1;let O=Hs;d==="Root"||d==="root"?O=n:d?O=o:Lv(l)&&(O=void 0);const w=Hu(l,{shouldForwardProp:O,label:Bv(u,d),...g}),v=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(I){return Go(I,T,I.theme.modularCssLayers?f:void 0)};if(mt(T)){const P=dd(T);return function(j){return P.variants?Go(j,P,j.theme.modularCssLayers?f:void 0):j.theme.modularCssLayers?Jt(P.style,f):P.style}}return T},x=(...T)=>{const P=[],I=T.map(v),j=[];if(P.push(i),u&&y&&j.push(function(D){const R=D.theme.components?.[u]?.styleOverrides;if(!R)return null;const M={};for(const X in R)M[X]=Go(D,R[X],D.theme.modularCssLayers?"theme":void 0);return y(D,M)}),u&&!m&&j.push(function(D){const R=D.theme?.components?.[u]?.variants;return R?fd(D,R,[],D.theme.modularCssLayers?"theme":void 0):null}),S||j.push(Xt),Array.isArray(I[0])){const E=I.shift(),D=new Array(P.length).fill(""),_=new Array(j.length).fill("");let R;R=[...D,...E,..._],R.raw=[...D,...E.raw,..._],P.unshift(R)}const F=[...P,...I,...j],W=w(...F);return l.muiName&&(W.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(W.displayName=zv(u,d,l)),W};return w.withConfig&&(x.withConfig=w.withConfig),x}}function zv(e,t,r){return e?`${e}${Q(t||"")}`:`Styled(${$v(r)})`}function Bv(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${pd(t||"Root")}`),r}function Fv(e){for(const t in e)return!1;return!0}function Lv(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pd(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function mn(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)n[i]=s||{};else if(!s)n[i]=l;else{n[i]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;n[i][u]=mn(s[u],l[u],r)}}}else i==="className"&&r&&t.className?n.className=ne(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Vv(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:mn(t.components[r].defaultProps,n)}const Pt=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Wv(e,t,r,n,o){const[i,s]=C.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return Pt(()=>{if(!r)return;const l=r(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,r]),i}const hd={...C}.useSyncExternalStore;function Uv(e,t,r,n,o){const i=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return i},[i,e,n,o,r]),[l,c]=C.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const d=r(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,r,e]);return hd(c,l,s)}function gd(e={}){const{themeId:t}=e;return function(n,o={}){let i=nd();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Vv({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof n=="function"&&i===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(`
30
+ `)),()=>{})}function Fs(e){return hn(e,"spacing",8,"spacing")}function gn(e,t){return typeof t=="string"||t==null?t:e(t)}function K0(e,t){return r=>e.reduce((n,o)=>(n[o]=gn(t,r),n),{})}function G0(e,t,r,n){if(!t.includes(r))return null;const o=q0(r),i=K0(o,n),s=e[r];return Pt(e,s,i)}function od(e,t){const r=Fs(e.theme);return Object.keys(e).map(n=>G0(e,t,n,r)).reduce(pn,{})}function Ae(e){return od(e,Wo)}Ae.propTypes=process.env.NODE_ENV!=="production"?Wo.reduce((e,t)=>(e[t]=Lt,e),{}):{},Ae.filterProps=Wo;function $e(e){return od(e,Uo)}$e.propTypes=process.env.NODE_ENV!=="production"?Uo.reduce((e,t)=>(e[t]=Lt,e),{}):{},$e.filterProps=Uo,process.env.NODE_ENV!=="production"&&Y0.reduce((e,t)=>(e[t]=Lt,e),{});function id(e=8,t=Fs({spacing:e})){if(e.mui)return e;const r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return r.mui=!0,r}function Ho(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?pn(o,t[i](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function Ze(e){return typeof e!="number"?e:`${e}px solid`}function et(e,t){return Re({prop:e,themeKey:"borders",transform:t})}const X0=et("border",Ze),J0=et("borderTop",Ze),Q0=et("borderRight",Ze),Z0=et("borderBottom",Ze),ev=et("borderLeft",Ze),tv=et("borderColor"),rv=et("borderTopColor"),nv=et("borderRightColor"),ov=et("borderBottomColor"),iv=et("borderLeftColor"),sv=et("outline",Ze),av=et("outlineColor"),qo=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=hn(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:gn(t,n)});return Pt(e,e.borderRadius,r)}return null};qo.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Lt}:{},qo.filterProps=["borderRadius"],Ho(X0,J0,Q0,Z0,ev,tv,rv,nv,ov,iv,qo,sv,av);const Yo=e=>{if(e.gap!==void 0&&e.gap!==null){const t=hn(e.theme,"spacing",8,"gap"),r=n=>({gap:gn(t,n)});return Pt(e,e.gap,r)}return null};Yo.propTypes=process.env.NODE_ENV!=="production"?{gap:Lt}:{},Yo.filterProps=["gap"];const Ko=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=hn(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:gn(t,n)});return Pt(e,e.columnGap,r)}return null};Ko.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Lt}:{},Ko.filterProps=["columnGap"];const Go=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=hn(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:gn(t,n)});return Pt(e,e.rowGap,r)}return null};Go.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Lt}:{},Go.filterProps=["rowGap"];const lv=Re({prop:"gridColumn"}),cv=Re({prop:"gridRow"}),uv=Re({prop:"gridAutoFlow"}),dv=Re({prop:"gridAutoColumns"}),fv=Re({prop:"gridAutoRows"}),pv=Re({prop:"gridTemplateColumns"}),hv=Re({prop:"gridTemplateRows"}),gv=Re({prop:"gridTemplateAreas"}),mv=Re({prop:"gridArea"});Ho(Yo,Ko,Go,lv,cv,uv,dv,fv,pv,hv,gv,mv);function Cr(e,t){return t==="grey"?t:e}const yv=Re({prop:"color",themeKey:"palette",transform:Cr}),bv=Re({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Cr}),vv=Re({prop:"backgroundColor",themeKey:"palette",transform:Cr});Ho(yv,bv,vv);function Je(e){return e<=1&&e!==0?`${e*100}%`:e}const xv=Re({prop:"width",transform:Je}),Vs=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{const n=e.theme?.breakpoints?.values?.[r]||Lo[r];return n?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:Je(r)}};return Pt(e,e.maxWidth,t)}return null};Vs.filterProps=["maxWidth"];const wv=Re({prop:"minWidth",transform:Je}),Sv=Re({prop:"height",transform:Je}),Ev=Re({prop:"maxHeight",transform:Je}),Cv=Re({prop:"minHeight",transform:Je});Re({prop:"size",cssProperty:"width",transform:Je}),Re({prop:"size",cssProperty:"height",transform:Je});const Ov=Re({prop:"boxSizing"});Ho(xv,Vs,wv,Sv,Ev,Cv,Ov);const mn={border:{themeKey:"borders",transform:Ze},borderTop:{themeKey:"borders",transform:Ze},borderRight:{themeKey:"borders",transform:Ze},borderBottom:{themeKey:"borders",transform:Ze},borderLeft:{themeKey:"borders",transform:Ze},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ze},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:qo},color:{themeKey:"palette",transform:Cr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Cr},backgroundColor:{themeKey:"palette",transform:Cr},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Ae},mt:{style:Ae},mr:{style:Ae},mb:{style:Ae},ml:{style:Ae},mx:{style:Ae},my:{style:Ae},margin:{style:Ae},marginTop:{style:Ae},marginRight:{style:Ae},marginBottom:{style:Ae},marginLeft:{style:Ae},marginX:{style:Ae},marginY:{style:Ae},marginInline:{style:Ae},marginInlineStart:{style:Ae},marginInlineEnd:{style:Ae},marginBlock:{style:Ae},marginBlockStart:{style:Ae},marginBlockEnd:{style:Ae},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:Yo},rowGap:{style:Go},columnGap:{style:Ko},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Je},maxWidth:{style:Vs},minWidth:{transform:Je},height:{transform:Je},maxHeight:{transform:Je},minHeight:{transform:Je},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 Tv(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Pv(e,t){return typeof e=="function"?e(t):e}function kv(){function e(r,n,o,i){const s={[r]:n,theme:o},l=i[r];if(!l)return{[r]:n};const{cssProperty:c=r,themeKey:u,transform:d,style:p}=l;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const b=Fo(o,u)||{};return p?p(s):Pt(s,n,g=>{let f=Vo(b,d,g);return g===f&&typeof g=="string"&&(f=Vo(b,d,`${r}${g==="default"?"":Q(g)}`,g)),c===!1?f:{[c]:f}})}function t(r){const{sx:n,theme:o={},nested:i}=r||{};if(!n)return null;const s=o.unstable_sxConfig??mn;function l(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const d=V0(o.breakpoints),p=Object.keys(d);let b=d;return Object.keys(u).forEach(y=>{const g=Pv(u[y],o);if(g!=null)if(typeof g=="object")if(s[y])b=pn(b,e(y,g,o,s));else{const f=Pt({theme:o},g,m=>({[y]:m}));Tv(f,g)?b[y]=t({sx:g,theme:o,nested:!0}):b=pn(b,f)}else b=pn(b,e(y,g,o,s))}),!i&&o.modularCssLayers?{"@layer sx":ed(o,rd(p,b))}:ed(o,rd(p,b))}return Array.isArray(n)?n.map(l):l(n)}return t}const Jt=kv();Jt.filterProps=["sx"];function Nv(e,t){const r=this;if(r.vars){if(!r.colorSchemes?.[e]||typeof r.getColorSchemeSelector!="function")return{};let n=r.getColorSchemeSelector(e);return n==="&"?t:((n.includes("data-")||n.includes("."))&&(n=`*:where(${n.replace(/\s*&$/,"")}) &`),{[n]:t})}return r.palette.mode===e?t:{}}function Ws(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={},...s}=e,l=M0(r),c=id(o);let u=Xe({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...n},spacing:c,shape:{...L0,...i}},s);return u=B0(u),u.applyStyles=Nv,u=t.reduce((d,p)=>Xe(d,p),u),u.unstable_sxConfig={...mn,...s?.unstable_sxConfig},u.unstable_sx=function(p){return Jt({sx:p,theme:this})},u}function _v(e){return Object.keys(e).length===0}function sd(e=null){const t=C.useContext(Mo);return!t||_v(t)?e:t}const Iv=Ws();function Us(e=Iv){return sd(e)}function Hs(e){const t=Bt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ad({styles:e,themeId:t,defaultTheme:r={}}){const n=Us(r),o=t&&n[t]||n;let i=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(i)?i=i.map(s=>Hs(typeof s=="function"?s(o):s)):i=Hs(i)),h.jsx(Yu,{styles:i})}process.env.NODE_ENV!=="production"&&(ad.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.func,a.number,a.object,a.string,a.bool]),themeId:a.string});const Av=e=>{const t={systemProps:{},otherProps:{}},r=e?.theme?.unstable_sxConfig??mn;return Object.keys(e).forEach(n=>{r[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]}),t};function ld(e){const{sx:t,...r}=e,{systemProps:n,otherProps:o}=Av(r);let i;return Array.isArray(t)?i=[n,...t]:typeof t=="function"?i=(...s)=>{const l=t(...s);return yt(l)?{...n,...l}:n}:i={...n,...t},{...o,sx:i}}const cd=e=>e,ud=(()=>{let e=cd;return{configure(t){e=t},generate(t){return e(t)},reset(){e=cd}}})();function dd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=dd(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=dd(e))&&(n&&(n+=" "),n+=t);return n}function $v(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Ku("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Jt);return C.forwardRef(function(c,u){const d=Us(r),{className:p,component:b="div",...y}=ld(c);return h.jsx(i,{as:b,ref:u,className:ne(p,o?o(n):n),theme:t&&d[t]||d,...y})})}const Rv={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 Ee(e,t,r="Mui"){const n=Rv[t];return n?`${r}-${n}`:`${ud.generate(e)}-${t}`}function ve(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Ee(e,o,r)}),n}function fd(e,t=""){return e.displayName||e.name||t}function pd(e,t,r){const n=fd(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function Dv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return fd(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Bo.ForwardRef:return pd(e,e.render,"ForwardRef");case Bo.Memo:return pd(e,e.type,"memo");default:return}}}function hd(e){const{variants:t,...r}=e,n={variants:t,style:Bt(r),isProcessed:!0};return n.style===r||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Bt(o.style))}),n}const Mv=Ws();function qs(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Qt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function jv(e){return e?(t,r)=>r[e]:null}function zv(e,t,r){e.theme=Vv(e.theme)?r:e.theme[t]||e.theme}function Xo(e,t,r){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Xo(e,o,r));if(Array.isArray(n?.variants)){let o;if(n.isProcessed)o=r?Qt(n.style,r):n.style;else{const{variants:i,...s}=n;o=r?Qt(Bt(s),r):s}return gd(e,n.variants,[o],r)}return n?.isProcessed?r?Qt(Bt(n.style),r):n.style:r?Qt(Bt(n),r):n}function gd(e,t,r=[],n=void 0){let o;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(o))continue}else for(const l in s.props)if(e[l]!==s.props[l]&&e.ownerState?.[l]!==s.props[l])continue e;typeof s.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},r.push(n?Qt(Bt(s.style(o)),n):s.style(o))):r.push(n?Qt(Bt(s.style),n):s.style)}return r}function Bv(e={}){const{themeId:t,defaultTheme:r=Mv,rootShouldForwardProp:n=qs,slotShouldForwardProp:o=qs}=e;function i(l){zv(l,t,r)}return(l,c={})=>{I0(l,T=>T.filter(P=>P!==Jt));const{name:u,slot:d,skipVariantsResolver:p,skipSx:b,overridesResolver:y=jv(md(d)),...g}=c,f=u&&u.startsWith("Mui")||d?"components":"custom",m=p!==void 0?p:d&&d!=="Root"&&d!=="root"||!1,E=b||!1;let O=qs;d==="Root"||d==="root"?O=n:d?O=o:Wv(l)&&(O=void 0);const S=Ku(l,{shouldForwardProp:O,label:Fv(u,d),...g}),x=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(I){return Xo(I,T,I.theme.modularCssLayers?f:void 0)};if(yt(T)){const P=hd(T);return function(j){return P.variants?Xo(j,P,j.theme.modularCssLayers?f:void 0):j.theme.modularCssLayers?Qt(P.style,f):P.style}}return T},w=(...T)=>{const P=[],I=T.map(x),j=[];if(P.push(i),u&&y&&j.push(function(A){const D=A.theme.components?.[u]?.styleOverrides;if(!D)return null;const M={};for(const X in D)M[X]=Xo(A,D[X],A.theme.modularCssLayers?"theme":void 0);return y(A,M)}),u&&!m&&j.push(function(A){const D=A.theme?.components?.[u]?.variants;return D?gd(A,D,[],A.theme.modularCssLayers?"theme":void 0):null}),E||j.push(Jt),Array.isArray(I[0])){const v=I.shift(),A=new Array(P.length).fill(""),N=new Array(j.length).fill("");let D;D=[...A,...v,...N],D.raw=[...A,...v.raw,...N],P.unshift(D)}const L=[...P,...I,...j],W=S(...L);return l.muiName&&(W.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(W.displayName=Lv(u,d,l)),W};return S.withConfig&&(w.withConfig=S.withConfig),w}}function Lv(e,t,r){return e?`${e}${Q(t||"")}`:`Styled(${Dv(r)})`}function Fv(e,t){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${md(t||"Root")}`),r}function Vv(e){for(const t in e)return!1;return!0}function Wv(e){return typeof e=="string"&&e.charCodeAt(0)>96}function md(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function yn(e,t,r=!1){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const s=e[i],l=t[i];if(!l)n[i]=s||{};else if(!s)n[i]=l;else{n[i]={...l};for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c)){const u=c;n[i][u]=yn(s[u],l[u],r)}}}else i==="className"&&r&&t.className?n.className=ne(e?.className,t?.className):i==="style"&&r&&t.style?n.style={...e?.style,...t?.style}:n[i]===void 0&&(n[i]=e[i])}return n}function Uv(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:yn(t.components[r].defaultProps,n)}const kt=typeof window<"u"?C.useLayoutEffect:C.useEffect;function Hv(e,t,r,n,o){const[i,s]=C.useState(()=>o&&r?r(e).matches:n?n(e).matches:t);return kt(()=>{if(!r)return;const l=r(e),c=()=>{s(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,r]),i}const yd={...C}.useSyncExternalStore;function qv(e,t,r,n,o){const i=C.useCallback(()=>t,[t]),s=C.useMemo(()=>{if(o&&r)return()=>r(e).matches;if(n!==null){const{matches:d}=n(e);return()=>d}return i},[i,e,n,o,r]),[l,c]=C.useMemo(()=>{if(r===null)return[i,()=>()=>{}];const d=r(e);return[()=>d.matches,p=>(d.addEventListener("change",p),()=>{d.removeEventListener("change",p)})]},[i,r,e]);return yd(c,l,s)}function bd(e={}){const{themeId:t}=e;return function(n,o={}){let i=sd();i&&t&&(i=i[t]||i);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:d=!1}=Uv({name:"MuiUseMediaQuery",props:o,theme:i});process.env.NODE_ENV!=="production"&&typeof n=="function"&&i===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 p=typeof n=="function"?n(i):n;p=p.replace(/^@media( ?)/m,""),p.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 y=(hd!==void 0?Uv:Wv)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&C.useDebugValue({query:p,match:y}),y}}gd();function Hv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function qs(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Hv(e,t,r)}function qv(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ft(e){if(e.type)return e;if(e.charAt(0)==="#")return Ft(qv(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))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().`:Ot(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
34
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ot(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Yv=e=>{const t=Ft(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},yn=(e,t)=>{try{return Yv(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Xo(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function md(e){e=Ft(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,d=(u+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Xo({type:l,values:c})}function Ys(e){e=Ft(e);let t=e.type==="hsl"||e.type==="hsla"?Ft(md(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yd(e,t){const r=Ys(e),n=Ys(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Jo(e,t){return e=Ft(e),t=qs(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xo(e)}function Qt(e,t,r){try{return Jo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Qo(e,t){if(e=Ft(e),t=qs(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Xo(e)}function ge(e,t,r){try{return Qo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Zo(e,t){if(e=Ft(e),t=qs(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Xo(e)}function me(e,t,r){try{return Zo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Kv(e,t=.15){return Ys(e)>.5?Qo(e,t):Zo(e,t)}function ei(e,t,r){try{return Kv(e,t)}catch{return e}}const Gv="exact-prop: ​";function bd(e){return process.env.NODE_ENV==="production"?e:{...e,[Gv]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const Xv=C.createContext();process.env.NODE_ENV!=="production"&&(a.node,a.bool);const Jv=()=>C.useContext(Xv)??!1,Qv=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function Zv(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?mn(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?mn(o,n,t.components.mergeClassNameAndStyle):n}function ex({props:e,name:t}){const r=C.useContext(Qv);return Zv({props:e,name:t,theme:{components:r}})}let vd=0;function tx(e){const[t,r]=C.useState(e),n=e||t;return C.useEffect(()=>{t==null&&(vd+=1,r(`mui-${vd}`))},[t]),n}const xd={...C}.useId;function Ks(e){if(xd!==void 0){const t=xd();return e??t}return tx(e)}const wd={theme:void 0};function rx(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(wd.theme=o.theme,i=dd(e(wd)),t=i,r=o.theme),i}}function nx(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Sd=(e,t,r,n=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},ox=(e,t,r)=>{function n(o,i=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!r||r&&!r([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,l],Array.isArray(c)?[...s,l]:s):t([...i,l],c,s))})}n(e)},ix=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Gs(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return ox(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(l,c))){const d=`--${r?`${r}-`:""}${l.join("-")}`,p=ix(l,c);Object.assign(o,{[d]:p}),Sd(i,l,`var(${d})`,u),Sd(s,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function sx(e,t={}){const{getSelector:r=S,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:b}=Gs(u,t);let y=b;const g={},{[c]:f,...m}=s;if(Object.entries(m||{}).forEach(([v,x])=>{const{vars:T,css:P,varsWithDefaults:I}=Gs(x,t);y=Xe(y,I),g[v]={css:P,vars:T}}),f){const{css:v,vars:x,varsWithDefaults:T}=Gs(f,t);y=Xe(y,T),g[c]={css:v,vars:x}}function S(v,x){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),v){if(T==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${s[v]?.palette?.mode||v})`]:{":root":x}};if(T)return e.defaultColorScheme===v?`:root, ${T.replace("%s",String(v))}`:T.replace("%s",String(v))}return":root"}return{vars:y,generateThemeVars:()=>{let v={...d};return Object.entries(g).forEach(([,{vars:x}])=>{v=Xe(v,x)}),v},generateStyleSheets:()=>{const v=[],x=e.defaultColorScheme||"light";function T(j,F){Object.keys(F).length&&v.push(typeof j=="string"?{[j]:{...F}}:j)}T(r(void 0,{...p}),p);const{[x]:P,...I}=g;if(P){const{css:j}=P,F=s[x]?.palette?.mode,W=!n&&F?{colorScheme:F,...j}:{...j};T(r(x,{...W}),W)}return Object.entries(I).forEach(([j,{css:F}])=>{const W=s[j]?.palette?.mode,E=!n&&W?{colorScheme:W,...F}:{...F};T(r(j,{...E}),E)}),i&&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 ax(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Oe(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,r&&r[u]&&(s+=" "+r[u]))}n[o]=s}return n}function Ed(){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:tn.white,default:tn.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 Cd=Ed();function Od(){return{text:{primary:tn.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:tn.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 Xs=Od();function Td(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Zo(e.main,o):t==="dark"&&(e.dark=Qo(e.main,i)))}function Pd(e,t,r,n,o){const i=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function lx(e="light"){return e==="dark"?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[700],light:yr[400],dark:yr[800]}}function cx(e="light"){return e==="dark"?{main:mr[200],light:mr[50],dark:mr[400]}:{main:mr[500],light:mr[300],dark:mr[700]}}function ux(e="light"){return e==="dark"?{main:gr[500],light:gr[300],dark:gr[700]}:{main:gr[700],light:gr[400],dark:gr[800]}}function dx(e="light"){return e==="dark"?{main:br[400],light:br[300],dark:br[700]}:{main:br[700],light:br[500],dark:br[900]}}function fx(e="light"){return e==="dark"?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[800],light:vr[500],dark:vr[900]}}function px(e="light"){return e==="dark"?{main:rn[400],light:rn[300],dark:rn[700]}:{main:"#ed6c02",light:rn[500],dark:rn[900]}}function hx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Js(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,s=e.primary||lx(t),l=e.secondary||cx(t),c=e.error||ux(t),u=e.info||dx(t),d=e.success||fx(t),p=e.warning||px(t);function b(m){if(o)return hx(m);const S=yd(m,Xs.text.primary)>=r?Xs.text.primary:Cd.text.primary;if(process.env.NODE_ENV!=="production"){const O=yd(m,S);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${S} 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 S}const y=({color:m,name:S,mainShade:O=500,lightShade:w=300,darkShade:v=700})=>{if(m={...m},!m.main&&m[O]&&(m.main=m[O]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
36
- The color object needs to have a \`main\` property or a \`${O}\` property.`:Ot(11,S?` (${S})`:"",O));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${S?` (${S})`:""} provided to augmentColor(color) is invalid.
32
+ `));const y=(yd!==void 0?qv:Hv)(p,l,c,u,d);return process.env.NODE_ENV!=="production"&&C.useDebugValue({query:p,match:y}),y}}bd();function Yv(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function Ys(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),Yv(e,t,r)}function Kv(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),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.`),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Ft(e){if(e.type)return e;if(e.charAt(0)==="#")return Ft(Kv(e));const t=e.indexOf("("),r=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(r))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().`:Tt(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
34
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Tt(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}const Gv=e=>{const t=Ft(e);return t.values.slice(0,3).map((r,n)=>t.type.includes("hsl")&&n!==0?`${r}%`:r).join(" ")},bn=(e,t)=>{try{return Gv(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Jo(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.includes("rgb")?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.includes("color")?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function vd(e){e=Ft(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),s=(u,d=(u+r/30)%12)=>o-i*Math.max(Math.min(d-3,9-d,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Jo({type:l,values:c})}function Ks(e){e=Ft(e);let t=e.type==="hsl"||e.type==="hsla"?Ft(vd(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function xd(e,t){const r=Ks(e),n=Ks(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Qo(e,t){return e=Ft(e),t=Ys(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Jo(e)}function Zt(e,t,r){try{return Qo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Zo(e,t){if(e=Ft(e),t=Ys(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Jo(e)}function ge(e,t,r){try{return Zo(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ei(e,t){if(e=Ft(e),t=Ys(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Jo(e)}function me(e,t,r){try{return ei(e,t)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Xv(e,t=.15){return Ks(e)>.5?Zo(e,t):ei(e,t)}function ti(e,t,r){try{return Xv(e,t)}catch{return e}}const Jv="exact-prop: ​";function wd(e){return process.env.NODE_ENV==="production"?e:{...e,[Jv]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}}}const Qv=C.createContext();process.env.NODE_ENV!=="production"&&(a.node,a.bool);const Zv=()=>C.useContext(Qv)??!1,ex=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function tx(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?yn(o.defaultProps,n,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?yn(o,n,t.components.mergeClassNameAndStyle):n}function rx({props:e,name:t}){const r=C.useContext(ex);return tx({props:e,name:t,theme:{components:r}})}let Sd=0;function nx(e){const[t,r]=C.useState(e),n=e||t;return C.useEffect(()=>{t==null&&(Sd+=1,r(`mui-${Sd}`))},[t]),n}const Ed={...C}.useId;function Gs(e){if(Ed!==void 0){const t=Ed();return e??t}return nx(e)}const Cd={theme:void 0};function ox(e){let t,r;return function(o){let i=t;return(i===void 0||o.theme!==r)&&(Cd.theme=o.theme,i=hd(e(Cd)),t=i,r=o.theme),i}}function ix(e=""){function t(...n){if(!n.length)return"";const o=n[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...n.slice(1))})`:`, ${o}`}return(n,...o)=>`var(--${e?`${e}-`:""}${n}${t(...o)})`}const Od=(e,t,r,n=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=r:o&&typeof o=="object"&&(o[i]=r):o&&typeof o=="object"&&(o[i]||(o[i]=n.includes(i)?[]:{}),o=o[i])})},sx=(e,t,r)=>{function n(o,i=[],s=[]){Object.entries(o).forEach(([l,c])=>{(!r||r&&!r([...i,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?n(c,[...i,l],Array.isArray(c)?[...s,l]:s):t([...i,l],c,s))})}n(e)},ax=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(n=>e.includes(n))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Xs(e,t){const{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},i={},s={};return sx(e,(l,c,u)=>{if((typeof c=="string"||typeof c=="number")&&(!n||!n(l,c))){const d=`--${r?`${r}-`:""}${l.join("-")}`,p=ax(l,c);Object.assign(o,{[d]:p}),Od(i,l,`var(${d})`,u),Od(s,l,`var(${d}, ${p})`,u)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function lx(e,t={}){const{getSelector:r=E,disableCssColorScheme:n,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:s={},components:l,defaultColorScheme:c="light",...u}=e,{vars:d,css:p,varsWithDefaults:b}=Xs(u,t);let y=b;const g={},{[c]:f,...m}=s;if(Object.entries(m||{}).forEach(([x,w])=>{const{vars:T,css:P,varsWithDefaults:I}=Xs(w,t);y=Xe(y,I),g[x]={css:P,vars:T}}),f){const{css:x,vars:w,varsWithDefaults:T}=Xs(f,t);y=Xe(y,T),g[c]={css:x,vars:w}}function E(x,w){let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),x){if(T==="media")return e.defaultColorScheme===x?":root":{[`@media (prefers-color-scheme: ${s[x]?.palette?.mode||x})`]:{":root":w}};if(T)return e.defaultColorScheme===x?`:root, ${T.replace("%s",String(x))}`:T.replace("%s",String(x))}return":root"}return{vars:y,generateThemeVars:()=>{let x={...d};return Object.entries(g).forEach(([,{vars:w}])=>{x=Xe(x,w)}),x},generateStyleSheets:()=>{const x=[],w=e.defaultColorScheme||"light";function T(j,L){Object.keys(L).length&&x.push(typeof j=="string"?{[j]:{...L}}:j)}T(r(void 0,{...p}),p);const{[w]:P,...I}=g;if(P){const{css:j}=P,L=s[w]?.palette?.mode,W=!n&&L?{colorScheme:L,...j}:{...j};T(r(w,{...W}),W)}return Object.entries(I).forEach(([j,{css:L}])=>{const W=s[j]?.palette?.mode,v=!n&&W?{colorScheme:W,...L}:{...L};T(r(j,{...v}),v)}),i&&x.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)"}}),x}}}function cx(e){return function(r){return e==="media"?(process.env.NODE_ENV!=="production"&&r!=="light"&&r!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${r}'.`),`@media (prefers-color-scheme: ${r})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${r}"] &`:e==="class"?`.${r} &`:e==="data"?`[data-${r}] &`:`${e.replace("%s",r)} &`:"&"}}function Oe(e,t,r=void 0){const n={};for(const o in e){const i=e[o];let s="",l=!0;for(let c=0;c<i.length;c+=1){const u=i[c];u&&(s+=(l===!0?"":" ")+t(u),l=!1,r&&r[u]&&(s+=" "+r[u]))}n[o]=s}return n}function Td(){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:rn.white,default:rn.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 Pd=Td();function kd(){return{text:{primary:rn.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:rn.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 Js=kd();function Nd(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=ei(e.main,o):t==="dark"&&(e.dark=Zo(e.main,i)))}function _d(e,t,r,n,o){const i=o.light||o,s=o.dark||o*1.5;t[r]||(t.hasOwnProperty(n)?t[r]=t[n]:r==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:r==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function ux(e="light"){return e==="dark"?{main:br[200],light:br[50],dark:br[400]}:{main:br[700],light:br[400],dark:br[800]}}function dx(e="light"){return e==="dark"?{main:yr[200],light:yr[50],dark:yr[400]}:{main:yr[500],light:yr[300],dark:yr[700]}}function fx(e="light"){return e==="dark"?{main:mr[500],light:mr[300],dark:mr[700]}:{main:mr[700],light:mr[400],dark:mr[800]}}function px(e="light"){return e==="dark"?{main:vr[400],light:vr[300],dark:vr[700]}:{main:vr[700],light:vr[500],dark:vr[900]}}function hx(e="light"){return e==="dark"?{main:xr[400],light:xr[300],dark:xr[700]}:{main:xr[800],light:xr[500],dark:xr[900]}}function gx(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:"#ed6c02",light:nn[500],dark:nn[900]}}function mx(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Qs(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2,colorSpace:o,...i}=e,s=e.primary||ux(t),l=e.secondary||dx(t),c=e.error||fx(t),u=e.info||px(t),d=e.success||hx(t),p=e.warning||gx(t);function b(m){if(o)return mx(m);const E=xd(m,Js.text.primary)>=r?Js.text.primary:Pd.text.primary;if(process.env.NODE_ENV!=="production"){const O=xd(m,E);O<3&&console.error([`MUI: The contrast ratio of ${O}:1 for ${E} 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 E}const y=({color:m,name:E,mainShade:O=500,lightShade:S=300,darkShade:x=700})=>{if(m={...m},!m.main&&m[O]&&(m.main=m[O]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} provided to augmentColor(color) is invalid.
36
+ The color object needs to have a \`main\` property or a \`${O}\` property.`:Tt(11,E?` (${E})`:"",O));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${E?` (${E})`:""} 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
- } });`:Ot(12,S?` (${S})`:"",JSON.stringify(m.main)));return o?(Pd(o,m,"light",w,n),Pd(o,m,"dark",v,n)):(Td(m,"light",w,n),Td(m,"dark",v,n)),m.contrastText||(m.contrastText=b(m.main)),m};let g;return t==="light"?g=Ed():t==="dark"&&(g=Od()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Xe({common:{...tn},mode:t,primary:y({color:s,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:Cb,contrastThreshold:r,getContrastText:b,augmentColor:y,tonalOffset:n,...g},i)}function gx(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function mx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function yx(e){return Math.round(e*1e5)/1e5}const kd={textTransform:"uppercase"},Nd='"Roboto", "Helvetica", "Arial", sans-serif';function bx(e,t){const{fontFamily:r=Nd,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=n/14,y=d||(m=>`${m/c*b}rem`),g=(m,S,O,w,v)=>({fontFamily:r,fontWeight:m,fontSize:y(S),lineHeight:O,...r===Nd?{letterSpacing:`${yx(w/S)}em`}:{},...v,...u}),f={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,kd),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,kd),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xe({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...f},p,{clone:!1})}const vx=.2,xx=.14,wx=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${vx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wx})`].join(",")}const Sx=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],Ex={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)"},Cx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _d(e){return`${Math.round(e)}ms`}function Ox(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Tx(e){const t={...Ex,...e.easing},r={...Cx,...e.duration};return{getAutoHeightDuration:Ox,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=b=>typeof b=="string",p=b=>!Number.isNaN(parseFloat(b));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:_d(s)} ${l} ${typeof c=="string"?c:_d(c)}`).join(",")},...e,easing:t,duration:r}}const Px={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kx(e){return mt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Id(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[s,l]=o[i];!kx(l)||s.startsWith("unstable_")?delete n[s]:mt(l)&&(n[s]={...l},r(n[s]))}}return r(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
49
+ } });`:Tt(12,E?` (${E})`:"",JSON.stringify(m.main)));return o?(_d(o,m,"light",S,n),_d(o,m,"dark",x,n)):(Nd(m,"light",S,n),Nd(m,"dark",x,n)),m.contrastText||(m.contrastText=b(m.main)),m};let g;return t==="light"?g=Td():t==="dark"&&(g=kd()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Xe({common:{...rn},mode:t,primary:y({color:s,name:"primary"}),secondary:y({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:y({color:c,name:"error"}),warning:y({color:p,name:"warning"}),info:y({color:u,name:"info"}),success:y({color:d,name:"success"}),grey:Tb,contrastThreshold:r,getContrastText:b,augmentColor:y,tonalOffset:n,...g},i)}function yx(e){const t={};return Object.entries(e).forEach(n=>{const[o,i]=n;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function bx(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function vx(e){return Math.round(e*1e5)/1e5}const Id={textTransform:"uppercase"},Ad='"Roboto", "Helvetica", "Arial", sans-serif';function xx(e,t){const{fontFamily:r=Ad,fontSize:n=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d,...p}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const b=n/14,y=d||(m=>`${m/c*b}rem`),g=(m,E,O,S,x)=>({fontFamily:r,fontWeight:m,fontSize:y(E),lineHeight:O,...r===Ad?{letterSpacing:`${vx(S/E)}em`}:{},...x,...u}),f={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,Id),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,Id),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Xe({htmlFontSize:c,pxToRem:y,fontFamily:r,fontSize:n,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:l,...f},p,{clone:!1})}const wx=.2,Sx=.14,Ex=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Sx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Ex})`].join(",")}const Cx=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],Ox={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)"},Tx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $d(e){return`${Math.round(e)}ms`}function Px(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function kx(e){const t={...Ox,...e.easing},r={...Tx,...e.duration};return{getAutoHeightDuration:Px,create:(o=["all"],i={})=>{const{duration:s=r.standard,easing:l=t.easeInOut,delay:c=0,...u}=i;if(process.env.NODE_ENV!=="production"){const d=b=>typeof b=="string",p=b=>!Number.isNaN(parseFloat(b));!d(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(l)||console.error('MUI: Argument "easing" must be a string.'),!p(c)&&!d(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="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(o)?o:[o]).map(d=>`${d} ${typeof s=="string"?s:$d(s)} ${l} ${typeof c=="string"?c:$d(c)}`).join(",")},...e,easing:t,duration:r}}const Nx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _x(e){return yt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function Rd(e={}){const t={...e};function r(n){const o=Object.entries(n);for(let i=0;i<o.length;i++){const[s,l]=o[i];!_x(l)||s.startsWith("unstable_")?delete n[s]:yt(l)&&(n[s]={...l},r(n[s]))}}return r(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 Ad(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Nx=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function _x(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Jo(t,Nx(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Ad(r)})`:Zo(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Ad(r)})`:Qo(t,r)}})}function Qs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:c,colorSpace:u,...d}=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.":Ot(20));const p=Js({...i,colorSpace:u}),b=Vs(e);let y=Xe(b,{mixins:mx(b.breakpoints,n),palette:p,shadows:Sx.slice(),typography:bx(p,l),transitions:Tx(s),zIndex:{...Px}});if(y=Xe(y,d),y=t.reduce((g,f)=>Xe(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,S)=>{let O;for(O in m){const w=m[O];if(g.includes(O)&&Object.keys(w).length>0){if(process.env.NODE_ENV!=="production"){const v=Ee("",O);console.error([`MUI: The \`${S}\` component increases the CSS specificity of the \`${O}\` 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}`]:w}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
- `))}m[O]={}}}};Object.keys(y.components).forEach(m=>{const S=y.components[m].styleOverrides;S&&m.startsWith("Mui")&&f(S,m)})}return y.unstable_sxConfig={...gn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return Xt({sx:f,theme:this})},y.toRuntimeSource=Id,_x(y),y}function Zs(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 Ix=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=Zs(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function $d(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Rd(e){return e==="dark"?Ix:[]}function Ax(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,s=Js({...t,colorSpace:o});return{palette:s,opacity:{...$d(s.mode),...r},overlays:n||Rd(s.mode),...i}}function $x(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 Rx=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Dx=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Rx(e.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function Mx(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function A(e,t,r){!e[t]&&r&&(e[t]=r)}function bn(e){return typeof e!="string"||!e.startsWith("hsl")?e:md(e)}function kt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=yn(bn(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 jx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const yt=e=>{try{return e()}catch{}},zx=(e="mui")=>nx(e);function ea(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=Ax({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:s,...l}=Qs({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...$d(i),...r?.opacity},overlays:r?.overlays||Rd(i)},l}function Bx(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=$x,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(r)[0],b=n||(r.light&&p!=="light"?"light":p),y=zx(i),{[b]:g,light:f,dark:m,...S}=r,O={...S};let w=g;if((b==="dark"&&!("dark"in r)||b==="light"&&!("light"in r))&&(w=!0),!w)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:Ot(21,b));let v;s&&(v="oklch");const x=ea(v,O,w,d,b);f&&!O.light&&ea(v,O,f,void 0,"light"),m&&!O.dark&&ea(v,O,m,void 0,"dark");let T={defaultColorScheme:b,...x,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:O,font:{...gx(x.typography),...x.font},spacing:jx(d.spacing)};Object.keys(T.colorSchemes).forEach(W=>{const E=T.colorSchemes[W].palette,D=R=>{const M=R.split("-"),X=M[1],ee=M[2];return y(R,E[X][ee])};E.mode==="light"&&(A(E.common,"background","#fff"),A(E.common,"onBackground","#000")),E.mode==="dark"&&(A(E.common,"background","#000"),A(E.common,"onBackground","#fff"));function _(R,M,X){if(v){let ee;return R===Qt&&(ee=`transparent ${((1-X)*100).toFixed(0)}%`),R===ge&&(ee=`#000 ${(X*100).toFixed(0)}%`),R===me&&(ee=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${v}, ${M}, ${ee})`}return R(M,X)}if(Mx(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){A(E.Alert,"errorColor",_(ge,E.error.light,.6)),A(E.Alert,"infoColor",_(ge,E.info.light,.6)),A(E.Alert,"successColor",_(ge,E.success.light,.6)),A(E.Alert,"warningColor",_(ge,E.warning.light,.6)),A(E.Alert,"errorFilledBg",D("palette-error-main")),A(E.Alert,"infoFilledBg",D("palette-info-main")),A(E.Alert,"successFilledBg",D("palette-success-main")),A(E.Alert,"warningFilledBg",D("palette-warning-main")),A(E.Alert,"errorFilledColor",yt(()=>E.getContrastText(E.error.main))),A(E.Alert,"infoFilledColor",yt(()=>E.getContrastText(E.info.main))),A(E.Alert,"successFilledColor",yt(()=>E.getContrastText(E.success.main))),A(E.Alert,"warningFilledColor",yt(()=>E.getContrastText(E.warning.main))),A(E.Alert,"errorStandardBg",_(me,E.error.light,.9)),A(E.Alert,"infoStandardBg",_(me,E.info.light,.9)),A(E.Alert,"successStandardBg",_(me,E.success.light,.9)),A(E.Alert,"warningStandardBg",_(me,E.warning.light,.9)),A(E.Alert,"errorIconColor",D("palette-error-main")),A(E.Alert,"infoIconColor",D("palette-info-main")),A(E.Alert,"successIconColor",D("palette-success-main")),A(E.Alert,"warningIconColor",D("palette-warning-main")),A(E.AppBar,"defaultBg",D("palette-grey-100")),A(E.Avatar,"defaultBg",D("palette-grey-400")),A(E.Button,"inheritContainedBg",D("palette-grey-300")),A(E.Button,"inheritContainedHoverBg",D("palette-grey-A100")),A(E.Chip,"defaultBorder",D("palette-grey-400")),A(E.Chip,"defaultAvatarColor",D("palette-grey-700")),A(E.Chip,"defaultIconColor",D("palette-grey-700")),A(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(E.LinearProgress,"primaryBg",_(me,E.primary.main,.62)),A(E.LinearProgress,"secondaryBg",_(me,E.secondary.main,.62)),A(E.LinearProgress,"errorBg",_(me,E.error.main,.62)),A(E.LinearProgress,"infoBg",_(me,E.info.main,.62)),A(E.LinearProgress,"successBg",_(me,E.success.main,.62)),A(E.LinearProgress,"warningBg",_(me,E.warning.main,.62)),A(E.Skeleton,"bg",v?_(Qt,E.text.primary,.11):`rgba(${D("palette-text-primaryChannel")} / 0.11)`),A(E.Slider,"primaryTrack",_(me,E.primary.main,.62)),A(E.Slider,"secondaryTrack",_(me,E.secondary.main,.62)),A(E.Slider,"errorTrack",_(me,E.error.main,.62)),A(E.Slider,"infoTrack",_(me,E.info.main,.62)),A(E.Slider,"successTrack",_(me,E.success.main,.62)),A(E.Slider,"warningTrack",_(me,E.warning.main,.62));const R=v?_(ge,E.background.default,.6825):ei(E.background.default,.8);A(E.SnackbarContent,"bg",R),A(E.SnackbarContent,"color",yt(()=>v?Xs.text.primary:E.getContrastText(R))),A(E.SpeedDialAction,"fabHoverBg",ei(E.background.paper,.15)),A(E.StepConnector,"border",D("palette-grey-400")),A(E.StepContent,"border",D("palette-grey-400")),A(E.Switch,"defaultColor",D("palette-common-white")),A(E.Switch,"defaultDisabledColor",D("palette-grey-100")),A(E.Switch,"primaryDisabledColor",_(me,E.primary.main,.62)),A(E.Switch,"secondaryDisabledColor",_(me,E.secondary.main,.62)),A(E.Switch,"errorDisabledColor",_(me,E.error.main,.62)),A(E.Switch,"infoDisabledColor",_(me,E.info.main,.62)),A(E.Switch,"successDisabledColor",_(me,E.success.main,.62)),A(E.Switch,"warningDisabledColor",_(me,E.warning.main,.62)),A(E.TableCell,"border",_(me,_(Qt,E.divider,1),.88)),A(E.Tooltip,"bg",_(Qt,E.grey[700],.92))}if(E.mode==="dark"){A(E.Alert,"errorColor",_(me,E.error.light,.6)),A(E.Alert,"infoColor",_(me,E.info.light,.6)),A(E.Alert,"successColor",_(me,E.success.light,.6)),A(E.Alert,"warningColor",_(me,E.warning.light,.6)),A(E.Alert,"errorFilledBg",D("palette-error-dark")),A(E.Alert,"infoFilledBg",D("palette-info-dark")),A(E.Alert,"successFilledBg",D("palette-success-dark")),A(E.Alert,"warningFilledBg",D("palette-warning-dark")),A(E.Alert,"errorFilledColor",yt(()=>E.getContrastText(E.error.dark))),A(E.Alert,"infoFilledColor",yt(()=>E.getContrastText(E.info.dark))),A(E.Alert,"successFilledColor",yt(()=>E.getContrastText(E.success.dark))),A(E.Alert,"warningFilledColor",yt(()=>E.getContrastText(E.warning.dark))),A(E.Alert,"errorStandardBg",_(ge,E.error.light,.9)),A(E.Alert,"infoStandardBg",_(ge,E.info.light,.9)),A(E.Alert,"successStandardBg",_(ge,E.success.light,.9)),A(E.Alert,"warningStandardBg",_(ge,E.warning.light,.9)),A(E.Alert,"errorIconColor",D("palette-error-main")),A(E.Alert,"infoIconColor",D("palette-info-main")),A(E.Alert,"successIconColor",D("palette-success-main")),A(E.Alert,"warningIconColor",D("palette-warning-main")),A(E.AppBar,"defaultBg",D("palette-grey-900")),A(E.AppBar,"darkBg",D("palette-background-paper")),A(E.AppBar,"darkColor",D("palette-text-primary")),A(E.Avatar,"defaultBg",D("palette-grey-600")),A(E.Button,"inheritContainedBg",D("palette-grey-800")),A(E.Button,"inheritContainedHoverBg",D("palette-grey-700")),A(E.Chip,"defaultBorder",D("palette-grey-700")),A(E.Chip,"defaultAvatarColor",D("palette-grey-300")),A(E.Chip,"defaultIconColor",D("palette-grey-300")),A(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(E.LinearProgress,"primaryBg",_(ge,E.primary.main,.5)),A(E.LinearProgress,"secondaryBg",_(ge,E.secondary.main,.5)),A(E.LinearProgress,"errorBg",_(ge,E.error.main,.5)),A(E.LinearProgress,"infoBg",_(ge,E.info.main,.5)),A(E.LinearProgress,"successBg",_(ge,E.success.main,.5)),A(E.LinearProgress,"warningBg",_(ge,E.warning.main,.5)),A(E.Skeleton,"bg",v?_(Qt,E.text.primary,.13):`rgba(${D("palette-text-primaryChannel")} / 0.13)`),A(E.Slider,"primaryTrack",_(ge,E.primary.main,.5)),A(E.Slider,"secondaryTrack",_(ge,E.secondary.main,.5)),A(E.Slider,"errorTrack",_(ge,E.error.main,.5)),A(E.Slider,"infoTrack",_(ge,E.info.main,.5)),A(E.Slider,"successTrack",_(ge,E.success.main,.5)),A(E.Slider,"warningTrack",_(ge,E.warning.main,.5));const R=v?_(me,E.background.default,.985):ei(E.background.default,.98);A(E.SnackbarContent,"bg",R),A(E.SnackbarContent,"color",yt(()=>v?Cd.text.primary:E.getContrastText(R))),A(E.SpeedDialAction,"fabHoverBg",ei(E.background.paper,.15)),A(E.StepConnector,"border",D("palette-grey-600")),A(E.StepContent,"border",D("palette-grey-600")),A(E.Switch,"defaultColor",D("palette-grey-300")),A(E.Switch,"defaultDisabledColor",D("palette-grey-600")),A(E.Switch,"primaryDisabledColor",_(ge,E.primary.main,.55)),A(E.Switch,"secondaryDisabledColor",_(ge,E.secondary.main,.55)),A(E.Switch,"errorDisabledColor",_(ge,E.error.main,.55)),A(E.Switch,"infoDisabledColor",_(ge,E.info.main,.55)),A(E.Switch,"successDisabledColor",_(ge,E.success.main,.55)),A(E.Switch,"warningDisabledColor",_(ge,E.warning.main,.55)),A(E.TableCell,"border",_(ge,_(Qt,E.divider,1),.68)),A(E.Tooltip,"bg",_(Qt,E.grey[700],.92))}kt(E.background,"default"),kt(E.background,"paper"),kt(E.common,"background"),kt(E.common,"onBackground"),kt(E,"divider"),Object.keys(E).forEach(R=>{const M=E[R];R!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&A(E[R],"mainChannel",yn(bn(M.main))),M.light&&A(E[R],"lightChannel",yn(bn(M.light))),M.dark&&A(E[R],"darkChannel",yn(bn(M.dark))),M.contrastText&&A(E[R],"contrastTextChannel",yn(bn(M.contrastText))),R==="text"&&(kt(E[R],"primary"),kt(E[R],"secondary")),R==="action"&&(M.active&&kt(E[R],"active"),M.selected&&kt(E[R],"selected")))})}),T=t.reduce((W,E)=>Xe(W,E),T);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:Dx(T),enableContrastVars:s},{vars:I,generateThemeVars:j,generateStyleSheets:F}=sx(T,P);return T.vars=I,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([W,E])=>{T[W]=E}),T.generateThemeVars=j,T.generateStyleSheets=F,T.generateSpacing=function(){return rd(d.spacing,Fs(this))},T.getColorSchemeSelector=ax(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...gn,...d?.unstable_sxConfig},T.unstable_sx=function(E){return Xt({sx:E,theme:this})},T.toRuntimeSource=Id,T}function Dd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Js({...r===!0?{}:r.palette,mode:t})})}function ta(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...s}=e,l=i||"light",c=o?.[l],u={...o,...r?{[l]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Qs(e,...t);let d=r;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=Qs({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},Dd(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},Dd(p,"light",u.light)),p}return!r&&!("light"in u)&&l==="light"&&(u.light=!0),Bx({...s,colorSchemes:u,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const ra=ta();function at(){const e=Ws(ra);return process.env.NODE_ENV!=="production"&&C.useDebugValue(e),e[nn]||e}function Fx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Cr=e=>Fx(e)&&e!=="classes",Z=jv({themeId:nn,defaultTheme:ra,rootShouldForwardProp:Cr});function Md(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function jd(e){return h.jsx(od,{...e,defaultTheme:ra,themeId:nn})}process.env.NODE_ENV!=="production"&&(jd.propTypes={styles:a.oneOfType([a.array,a.func,a.number,a.object,a.string,a.bool])});function Lx(e){return function(r){return h.jsx(jd,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Vx(){return id}const Te=rx;process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Pe(e){return ex(e)}function Wx(e){return Ee("MuiSvgIcon",e)}ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ux=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(r)}`]};return Oe(o,Wx,n)},Hx=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Q(r.color)}`],t[`fontSize${Q(r.fontSize)}`]]}})(Te(({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}}]}))),ti=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:b="0 0 24 24",...y}=n,g=C.isValidElement(o)&&o.type==="svg",f={...n,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:b,hasSvgAsChild:g},m={};d||(m.viewBox=b);const S=Ux(f);return h.jsxs(Hx,{as:l,className:ne(S.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...m,...y,...g&&o.props,ownerState:f,children:[g?o.props.children:o,p?h.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),htmlColor:a.string,inheritViewBox:a.bool,shapeRendering:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),titleAccess:a.string,viewBox:a.string}),ti.muiName="SvgIcon";function vn(e,t){function r(n,o){return h.jsx(ti,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=ti.muiName,C.memo(C.forwardRef(r))}function zd(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function bt(e){return e&&e.ownerDocument||document}function Nt(e){return bt(e).defaultView||window}function Bd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qx(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:i}=C.useRef(t!==void 0),[s,l]=C.useState(r),c=i?t:s;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
57
+ export default theme;`}function Dd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Ix=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let r=0;for(let n=0;n<t.length;n+=1)r+=+t[n];return r};function Ax(e){Object.assign(e,{alpha(t,r){const n=this||e;return n.colorSpace?`oklch(from ${t} l c h / ${typeof r=="string"?`calc(${r})`:r})`:n.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:Qo(t,Ix(r))},lighten(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #fff ${Dd(r)})`:ei(t,r)},darken(t,r){const n=this||e;return n.colorSpace?`color-mix(in ${n.colorSpace}, ${t}, #000 ${Dd(r)})`:Zo(t,r)}})}function Zs(e={},...t){const{breakpoints:r,mixins:n={},spacing:o,palette:i={},transitions:s={},typography:l={},shape:c,colorSpace:u,...d}=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.":Tt(20));const p=Qs({...i,colorSpace:u}),b=Ws(e);let y=Xe(b,{mixins:bx(b.breakpoints,n),palette:p,shadows:Cx.slice(),typography:xx(p,l),transitions:kx(s),zIndex:{...Nx}});if(y=Xe(y,d),y=t.reduce((g,f)=>Xe(g,f),y),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,E)=>{let O;for(O in m){const S=m[O];if(g.includes(O)&&Object.keys(S).length>0){if(process.env.NODE_ENV!=="production"){const x=Ee("",O);console.error([`MUI: The \`${E}\` component increases the CSS specificity of the \`${O}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:S}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
58
+ `))}m[O]={}}}};Object.keys(y.components).forEach(m=>{const E=y.components[m].styleOverrides;E&&m.startsWith("Mui")&&f(E,m)})}return y.unstable_sxConfig={...mn,...d?.unstable_sxConfig},y.unstable_sx=function(f){return Jt({sx:f,theme:this})},y.toRuntimeSource=Rd,Ax(y),y}function ea(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 $x=[...Array(25)].map((e,t)=>{if(t===0)return"none";const r=ea(t);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function Md(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function jd(e){return e==="dark"?$x:[]}function Rx(e){const{palette:t={mode:"light"},opacity:r,overlays:n,colorSpace:o,...i}=e,s=Qs({...t,colorSpace:o});return{palette:s,opacity:{...Md(s.mode),...r},overlays:n||jd(s.mode),...i}}function Dx(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 Mx=e=>[...[...Array(25)].map((t,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],jx=e=>(t,r)=>{const n=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o?.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return Mx(e.cssVarPrefix).forEach(l=>{s[l]=r[l],delete r[l]}),i==="media"?{[n]:r,"@media (prefers-color-scheme: dark)":{[n]:s}}:i?{[i.replace("%s",t)]:s,[`${n}, ${i.replace("%s",t)}`]:r}:{[n]:{...r,...s}}}if(i&&i!=="media")return`${n}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[n]:r}};if(i)return i.replace("%s",String(t))}return n};function zx(e,t){t.forEach(r=>{e[r]||(e[r]={})})}function $(e,t,r){!e[t]&&r&&(e[t]=r)}function vn(e){return typeof e!="string"||!e.startsWith("hsl")?e:vd(e)}function Nt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=bn(vn(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 Bx(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const bt=e=>{try{return e()}catch{}},Lx=(e="mui")=>ix(e);function ta(e,t,r,n,o){if(!r)return;r=r===!0?{}:r;const i=o==="dark"?"dark":"light";if(!n){t[o]=Rx({...r,palette:{mode:i,...r?.palette},colorSpace:e});return}const{palette:s,...l}=Zs({...n,palette:{mode:i,...r?.palette},colorSpace:e});return t[o]={...r,palette:s,opacity:{...Md(i),...r?.opacity},overlays:r?.overlays||jd(i)},l}function Fx(e={},...t){const{colorSchemes:r={light:!0},defaultColorScheme:n,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:s=!1,shouldSkipGeneratingVar:l=Dx,colorSchemeSelector:c=r.light&&r.dark?"media":void 0,rootSelector:u=":root",...d}=e,p=Object.keys(r)[0],b=n||(r.light&&p!=="light"?"light":p),y=Lx(i),{[b]:g,light:f,dark:m,...E}=r,O={...E};let S=g;if((b==="dark"&&!("dark"in r)||b==="light"&&!("light"in r))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:Tt(21,b));let x;s&&(x="oklch");const w=ta(x,O,S,d,b);f&&!O.light&&ta(x,O,f,void 0,"light"),m&&!O.dark&&ta(x,O,m,void 0,"dark");let T={defaultColorScheme:b,...w,cssVarPrefix:i,colorSchemeSelector:c,rootSelector:u,getCssVar:y,colorSchemes:O,font:{...yx(w.typography),...w.font},spacing:Bx(d.spacing)};Object.keys(T.colorSchemes).forEach(W=>{const v=T.colorSchemes[W].palette,A=D=>{const M=D.split("-"),X=M[1],ee=M[2];return y(D,v[X][ee])};v.mode==="light"&&($(v.common,"background","#fff"),$(v.common,"onBackground","#000")),v.mode==="dark"&&($(v.common,"background","#000"),$(v.common,"onBackground","#fff"));function N(D,M,X){if(x){let ee;return D===Zt&&(ee=`transparent ${((1-X)*100).toFixed(0)}%`),D===ge&&(ee=`#000 ${(X*100).toFixed(0)}%`),D===me&&(ee=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${x}, ${M}, ${ee})`}return D(M,X)}if(zx(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){$(v.Alert,"errorColor",N(ge,v.error.light,.6)),$(v.Alert,"infoColor",N(ge,v.info.light,.6)),$(v.Alert,"successColor",N(ge,v.success.light,.6)),$(v.Alert,"warningColor",N(ge,v.warning.light,.6)),$(v.Alert,"errorFilledBg",A("palette-error-main")),$(v.Alert,"infoFilledBg",A("palette-info-main")),$(v.Alert,"successFilledBg",A("palette-success-main")),$(v.Alert,"warningFilledBg",A("palette-warning-main")),$(v.Alert,"errorFilledColor",bt(()=>v.getContrastText(v.error.main))),$(v.Alert,"infoFilledColor",bt(()=>v.getContrastText(v.info.main))),$(v.Alert,"successFilledColor",bt(()=>v.getContrastText(v.success.main))),$(v.Alert,"warningFilledColor",bt(()=>v.getContrastText(v.warning.main))),$(v.Alert,"errorStandardBg",N(me,v.error.light,.9)),$(v.Alert,"infoStandardBg",N(me,v.info.light,.9)),$(v.Alert,"successStandardBg",N(me,v.success.light,.9)),$(v.Alert,"warningStandardBg",N(me,v.warning.light,.9)),$(v.Alert,"errorIconColor",A("palette-error-main")),$(v.Alert,"infoIconColor",A("palette-info-main")),$(v.Alert,"successIconColor",A("palette-success-main")),$(v.Alert,"warningIconColor",A("palette-warning-main")),$(v.AppBar,"defaultBg",A("palette-grey-100")),$(v.Avatar,"defaultBg",A("palette-grey-400")),$(v.Button,"inheritContainedBg",A("palette-grey-300")),$(v.Button,"inheritContainedHoverBg",A("palette-grey-A100")),$(v.Chip,"defaultBorder",A("palette-grey-400")),$(v.Chip,"defaultAvatarColor",A("palette-grey-700")),$(v.Chip,"defaultIconColor",A("palette-grey-700")),$(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),$(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),$(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),$(v.LinearProgress,"primaryBg",N(me,v.primary.main,.62)),$(v.LinearProgress,"secondaryBg",N(me,v.secondary.main,.62)),$(v.LinearProgress,"errorBg",N(me,v.error.main,.62)),$(v.LinearProgress,"infoBg",N(me,v.info.main,.62)),$(v.LinearProgress,"successBg",N(me,v.success.main,.62)),$(v.LinearProgress,"warningBg",N(me,v.warning.main,.62)),$(v.Skeleton,"bg",x?N(Zt,v.text.primary,.11):`rgba(${A("palette-text-primaryChannel")} / 0.11)`),$(v.Slider,"primaryTrack",N(me,v.primary.main,.62)),$(v.Slider,"secondaryTrack",N(me,v.secondary.main,.62)),$(v.Slider,"errorTrack",N(me,v.error.main,.62)),$(v.Slider,"infoTrack",N(me,v.info.main,.62)),$(v.Slider,"successTrack",N(me,v.success.main,.62)),$(v.Slider,"warningTrack",N(me,v.warning.main,.62));const D=x?N(ge,v.background.default,.6825):ti(v.background.default,.8);$(v.SnackbarContent,"bg",D),$(v.SnackbarContent,"color",bt(()=>x?Js.text.primary:v.getContrastText(D))),$(v.SpeedDialAction,"fabHoverBg",ti(v.background.paper,.15)),$(v.StepConnector,"border",A("palette-grey-400")),$(v.StepContent,"border",A("palette-grey-400")),$(v.Switch,"defaultColor",A("palette-common-white")),$(v.Switch,"defaultDisabledColor",A("palette-grey-100")),$(v.Switch,"primaryDisabledColor",N(me,v.primary.main,.62)),$(v.Switch,"secondaryDisabledColor",N(me,v.secondary.main,.62)),$(v.Switch,"errorDisabledColor",N(me,v.error.main,.62)),$(v.Switch,"infoDisabledColor",N(me,v.info.main,.62)),$(v.Switch,"successDisabledColor",N(me,v.success.main,.62)),$(v.Switch,"warningDisabledColor",N(me,v.warning.main,.62)),$(v.TableCell,"border",N(me,N(Zt,v.divider,1),.88)),$(v.Tooltip,"bg",N(Zt,v.grey[700],.92))}if(v.mode==="dark"){$(v.Alert,"errorColor",N(me,v.error.light,.6)),$(v.Alert,"infoColor",N(me,v.info.light,.6)),$(v.Alert,"successColor",N(me,v.success.light,.6)),$(v.Alert,"warningColor",N(me,v.warning.light,.6)),$(v.Alert,"errorFilledBg",A("palette-error-dark")),$(v.Alert,"infoFilledBg",A("palette-info-dark")),$(v.Alert,"successFilledBg",A("palette-success-dark")),$(v.Alert,"warningFilledBg",A("palette-warning-dark")),$(v.Alert,"errorFilledColor",bt(()=>v.getContrastText(v.error.dark))),$(v.Alert,"infoFilledColor",bt(()=>v.getContrastText(v.info.dark))),$(v.Alert,"successFilledColor",bt(()=>v.getContrastText(v.success.dark))),$(v.Alert,"warningFilledColor",bt(()=>v.getContrastText(v.warning.dark))),$(v.Alert,"errorStandardBg",N(ge,v.error.light,.9)),$(v.Alert,"infoStandardBg",N(ge,v.info.light,.9)),$(v.Alert,"successStandardBg",N(ge,v.success.light,.9)),$(v.Alert,"warningStandardBg",N(ge,v.warning.light,.9)),$(v.Alert,"errorIconColor",A("palette-error-main")),$(v.Alert,"infoIconColor",A("palette-info-main")),$(v.Alert,"successIconColor",A("palette-success-main")),$(v.Alert,"warningIconColor",A("palette-warning-main")),$(v.AppBar,"defaultBg",A("palette-grey-900")),$(v.AppBar,"darkBg",A("palette-background-paper")),$(v.AppBar,"darkColor",A("palette-text-primary")),$(v.Avatar,"defaultBg",A("palette-grey-600")),$(v.Button,"inheritContainedBg",A("palette-grey-800")),$(v.Button,"inheritContainedHoverBg",A("palette-grey-700")),$(v.Chip,"defaultBorder",A("palette-grey-700")),$(v.Chip,"defaultAvatarColor",A("palette-grey-300")),$(v.Chip,"defaultIconColor",A("palette-grey-300")),$(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),$(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),$(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),$(v.LinearProgress,"primaryBg",N(ge,v.primary.main,.5)),$(v.LinearProgress,"secondaryBg",N(ge,v.secondary.main,.5)),$(v.LinearProgress,"errorBg",N(ge,v.error.main,.5)),$(v.LinearProgress,"infoBg",N(ge,v.info.main,.5)),$(v.LinearProgress,"successBg",N(ge,v.success.main,.5)),$(v.LinearProgress,"warningBg",N(ge,v.warning.main,.5)),$(v.Skeleton,"bg",x?N(Zt,v.text.primary,.13):`rgba(${A("palette-text-primaryChannel")} / 0.13)`),$(v.Slider,"primaryTrack",N(ge,v.primary.main,.5)),$(v.Slider,"secondaryTrack",N(ge,v.secondary.main,.5)),$(v.Slider,"errorTrack",N(ge,v.error.main,.5)),$(v.Slider,"infoTrack",N(ge,v.info.main,.5)),$(v.Slider,"successTrack",N(ge,v.success.main,.5)),$(v.Slider,"warningTrack",N(ge,v.warning.main,.5));const D=x?N(me,v.background.default,.985):ti(v.background.default,.98);$(v.SnackbarContent,"bg",D),$(v.SnackbarContent,"color",bt(()=>x?Pd.text.primary:v.getContrastText(D))),$(v.SpeedDialAction,"fabHoverBg",ti(v.background.paper,.15)),$(v.StepConnector,"border",A("palette-grey-600")),$(v.StepContent,"border",A("palette-grey-600")),$(v.Switch,"defaultColor",A("palette-grey-300")),$(v.Switch,"defaultDisabledColor",A("palette-grey-600")),$(v.Switch,"primaryDisabledColor",N(ge,v.primary.main,.55)),$(v.Switch,"secondaryDisabledColor",N(ge,v.secondary.main,.55)),$(v.Switch,"errorDisabledColor",N(ge,v.error.main,.55)),$(v.Switch,"infoDisabledColor",N(ge,v.info.main,.55)),$(v.Switch,"successDisabledColor",N(ge,v.success.main,.55)),$(v.Switch,"warningDisabledColor",N(ge,v.warning.main,.55)),$(v.TableCell,"border",N(ge,N(Zt,v.divider,1),.68)),$(v.Tooltip,"bg",N(Zt,v.grey[700],.92))}Nt(v.background,"default"),Nt(v.background,"paper"),Nt(v.common,"background"),Nt(v.common,"onBackground"),Nt(v,"divider"),Object.keys(v).forEach(D=>{const M=v[D];D!=="tonalOffset"&&M&&typeof M=="object"&&(M.main&&$(v[D],"mainChannel",bn(vn(M.main))),M.light&&$(v[D],"lightChannel",bn(vn(M.light))),M.dark&&$(v[D],"darkChannel",bn(vn(M.dark))),M.contrastText&&$(v[D],"contrastTextChannel",bn(vn(M.contrastText))),D==="text"&&(Nt(v[D],"primary"),Nt(v[D],"secondary")),D==="action"&&(M.active&&Nt(v[D],"active"),M.selected&&Nt(v[D],"selected")))})}),T=t.reduce((W,v)=>Xe(W,v),T);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:jx(T),enableContrastVars:s},{vars:I,generateThemeVars:j,generateStyleSheets:L}=lx(T,P);return T.vars=I,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([W,v])=>{T[W]=v}),T.generateThemeVars=j,T.generateStyleSheets=L,T.generateSpacing=function(){return id(d.spacing,Fs(this))},T.getColorSchemeSelector=cx(c),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=l,T.unstable_sxConfig={...mn,...d?.unstable_sxConfig},T.unstable_sx=function(v){return Jt({sx:v,theme:this})},T.toRuntimeSource=Rd,T}function zd(e,t,r){e.colorSchemes&&r&&(e.colorSchemes[t]={...r!==!0&&r,palette:Qs({...r===!0?{}:r.palette,mode:t})})}function ra(e={},...t){const{palette:r,cssVariables:n=!1,colorSchemes:o=r?void 0:{light:!0},defaultColorScheme:i=r?.mode,...s}=e,l=i||"light",c=o?.[l],u={...o,...r?{[l]:{...typeof c!="boolean"&&c,palette:r}}:void 0};if(n===!1){if(!("colorSchemes"in e))return Zs(e,...t);let d=r;"palette"in e||u[l]&&(u[l]!==!0?d=u[l].palette:l==="dark"&&(d={mode:"dark"}));const p=Zs({...e,palette:d},...t);return p.defaultColorScheme=l,p.colorSchemes=u,p.palette.mode==="light"&&(p.colorSchemes.light={...u.light!==!0&&u.light,palette:p.palette},zd(p,"dark",u.dark)),p.palette.mode==="dark"&&(p.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:p.palette},zd(p,"light",u.light)),p}return!r&&!("light"in u)&&l==="light"&&(u.light=!0),Fx({...s,colorSchemes:u,defaultColorScheme:l,...typeof n!="boolean"&&n},...t)}const na=ra();function at(){const e=Us(na);return process.env.NODE_ENV!=="production"&&C.useDebugValue(e),e[on]||e}function Vx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Or=e=>Vx(e)&&e!=="classes",Z=Bv({themeId:on,defaultTheme:na,rootShouldForwardProp:Or});function Bd(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function Ld(e){return h.jsx(ad,{...e,defaultTheme:na,themeId:on})}process.env.NODE_ENV!=="production"&&(Ld.propTypes={styles:a.oneOfType([a.array,a.func,a.number,a.object,a.string,a.bool])});function Wx(e){return function(r){return h.jsx(Ld,{styles:typeof e=="function"?n=>e({theme:n,...r}):e})}}function Ux(){return ld}const Te=ox;process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Pe(e){return rx(e)}function Hx(e){return Ee("MuiSvgIcon",e)}ve("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qx=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(r)}`]};return Oe(o,Hx,n)},Yx=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Q(r.color)}`],t[`fontSize${Q(r.fontSize)}`]]}})(Te(({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}}]}))),ri=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:b="0 0 24 24",...y}=n,g=C.isValidElement(o)&&o.type==="svg",f={...n,color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:b,hasSvgAsChild:g},m={};d||(m.viewBox=b);const E=qx(f);return h.jsxs(Yx,{as:l,className:ne(E.root,i),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r,...m,...y,...g&&o.props,ownerState:f,children:[g?o.props.children:o,p?h.jsx("title",{children:p}):null]})});process.env.NODE_ENV!=="production"&&(ri.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),a.string]),component:a.elementType,fontSize:a.oneOfType([a.oneOf(["inherit","large","medium","small"]),a.string]),htmlColor:a.string,inheritViewBox:a.bool,shapeRendering:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),titleAccess:a.string,viewBox:a.string}),ri.muiName="SvgIcon";function xn(e,t){function r(n,o){return h.jsx(ri,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...n,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=ri.muiName,C.memo(C.forwardRef(r))}function Fd(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function vt(e){return e&&e.ownerDocument||document}function _t(e){return vt(e).defaultView||window}function Vd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Kx(e){const{controlled:t,default:r,name:n,state:o="value"}=e,{current:i}=C.useRef(t!==void 0),[s,l]=C.useState(r),c=i?t:s;if(process.env.NODE_ENV!=="production"){C.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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
60
  `))},[o,n,t]);const{current:d}=C.useRef(r);C.useEffect(()=>{!i&&JSON.stringify(r)!==JSON.stringify(d)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
61
- `))},[JSON.stringify(r)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}function Zt(e){const t=C.useRef(e);return Pt(()=>{t.current=e}),C.useRef((...r)=>(0,t.current)(...r)).current}function Qe(...e){const t=C.useRef(void 0),r=C.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(n);return typeof l=="function"?l:()=>{s(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return C.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Yx(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Fd(e,t){if(!e)return t;function r(s,l){const c={};return Object.keys(l).forEach(u=>{Yx(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...d)=>{s[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=ne(s?.className,l?.className,c?.className),d=r(c,l);return{...l,...c,...d,...!!u&&{className:u},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,o=r(e,n),i=ne(n?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ri={exports:{}},xe={};var Ld;function Kx(){if(Ld)return xe;Ld=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=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 r:case o:case n:case c:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case i:return f;default:return m}}case t:return m}}}return xe.ContextConsumer=i,xe.ContextProvider=s,xe.Element=e,xe.ForwardRef=l,xe.Fragment=r,xe.Lazy=p,xe.Memo=d,xe.Portal=t,xe.Profiler=o,xe.StrictMode=n,xe.Suspense=c,xe.SuspenseList=u,xe.isContextConsumer=function(f){return g(f)===i},xe.isContextProvider=function(f){return g(f)===s},xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},xe.isForwardRef=function(f){return g(f)===l},xe.isFragment=function(f){return g(f)===r},xe.isLazy=function(f){return g(f)===p},xe.isMemo=function(f){return g(f)===d},xe.isPortal=function(f){return g(f)===t},xe.isProfiler=function(f){return g(f)===o},xe.isStrictMode=function(f){return g(f)===n},xe.isSuspense=function(f){return g(f)===c},xe.isSuspenseList=function(f){return g(f)===u},xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},xe.typeOf=g,xe}var we={};var Vd;function Gx(){return Vd||(Vd=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 n:case i:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case p:return f;case s:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");we.ContextConsumer=s,we.ContextProvider=l,we.Element=t,we.ForwardRef=c,we.Fragment=n,we.Lazy=b,we.Memo=p,we.Portal=r,we.Profiler=i,we.StrictMode=o,we.Suspense=u,we.SuspenseList=d,we.isContextConsumer=function(f){return e(f)===s},we.isContextProvider=function(f){return e(f)===l},we.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},we.isForwardRef=function(f){return e(f)===c},we.isFragment=function(f){return e(f)===n},we.isLazy=function(f){return e(f)===b},we.isMemo=function(f){return e(f)===p},we.isPortal=function(f){return e(f)===r},we.isProfiler=function(f){return e(f)===i},we.isStrictMode=function(f){return e(f)===o},we.isSuspense=function(f){return e(f)===u},we.isSuspenseList=function(f){return e(f)===d},we.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},we.typeOf=e})()),we}var Wd;function Xx(){return Wd||(Wd=1,process.env.NODE_ENV==="production"?ri.exports=Kx():ri.exports=Gx()),ri.exports}var Ud=Xx();function er(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Hd(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function na(e,t){return na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},na(e,t)}function qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,na(e,t)}const Yd={disabled:!1};var Jx=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.shape({enter:a.number,exit:a.number,appear:a.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&a.oneOfType([a.string,a.shape({enter:a.string,exit:a.string,active:a.string}),a.shape({enter:a.string,enterDone:a.string,enterActive:a.string,exit:a.string,exitDone:a.string,exitActive:a.string})]);const ni=z.createContext(null);var Qx=function(t){return t.scrollTop},xn="unmounted",tr="exited",rr="entering",Or="entered",oa="exiting",vt=(function(e){qd(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,l=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?l?(c=tr,i.appearStatus=rr):c=Or:n.unmountOnExit||n.mountOnEnter?c=xn:c=tr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===xn?{status:tr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==rr&&s!==Or&&(i=rr):(s===rr||s===Or)&&(i=oa)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===rr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);s&&Qx(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tr&&this.setState({status:xn})},r.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Ir.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),b=l?p.appear:p.enter;if(!o&&!s||Yd.disabled){this.safeSetState({status:Or},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:rr},function(){i.props.onEntering(u,d),i.onTransitionEnd(b,function(){i.safeSetState({status:Or},function(){i.props.onEntered(u,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!i||Yd.disabled){this.safeSetState({status:tr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:oa},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:tr},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===xn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Hd(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(ni.Provider,{value:null},typeof s=="function"?s(o,l):z.cloneElement(z.Children.only(s),l))},t})(z.Component);vt.contextType=ni,vt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:a.shape({current:typeof Element>"u"?a.any:function(e,t,r,n,o,i){var s=e[t];return a.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:a.oneOfType([a.func.isRequired,a.element.isRequired]).isRequired,in:a.bool,mountOnEnter:a.bool,unmountOnExit:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,timeout:function(t){var r=Jx;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:a.func,onEnter:a.func,onEntering:a.func,onEntered:a.func,onExit:a.func,onExiting:a.func,onExited:a.func}:{};function Tr(){}vt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tr,onEntering:Tr,onEntered:Tr,onExit:Tr,onExiting:Tr,onExited:Tr},vt.UNMOUNTED=xn,vt.EXITED=tr,vt.ENTERING=rr,vt.ENTERED=Or,vt.EXITING=oa;function Zx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ia(e,t){var r=function(i){return t&&z.isValidElement(i)?t(i):i},n=Object.create(null);return e&&z.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function ew(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,l={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var u=n[c][s];l[n[c][s]]=r(u)}l[c]=r(c)}for(s=0;s<o.length;s++)l[o[s]]=r(o[s]);return l}function nr(e,t,r){return r[t]!=null?r[t]:e.props[t]}function tw(e,t){return ia(e.children,function(r){return z.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:nr(r,"appear",e),enter:nr(r,"enter",e),exit:nr(r,"exit",e)})})}function rw(e,t,r){var n=ia(e.children),o=ew(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(z.isValidElement(s)){var l=i in t,c=i in n,u=t[i],d=z.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[i]=z.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:nr(s,"exit",e),enter:nr(s,"enter",e)}):!c&&l&&!d?o[i]=z.cloneElement(s,{in:!1}):c&&l&&z.isValidElement(u)&&(o[i]=z.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:nr(s,"exit",e),enter:nr(s,"enter",e)}))}}),o}var nw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ow={component:"div",childFactory:function(t){return t}},sa=(function(e){qd(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(Zx(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?tw(o,l):rw(o,s,l),firstRender:!1}},r.handleExited=function(o,i){var s=ia(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=Oo({},l.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=Hd(o,["component","childFactory"]),c=this.state.contextValue,u=nw(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?z.createElement(ni.Provider,{value:c},u):z.createElement(ni.Provider,{value:c},z.createElement(i,l,u))},t})(z.Component);sa.propTypes=process.env.NODE_ENV!=="production"?{component:a.any,children:a.node,appear:a.bool,enter:a.bool,exit:a.bool,childFactory:a.func}:{},sa.defaultProps=ow;const Kd={};function Gd(e,t){const r=C.useRef(Kd);return r.current===Kd&&(r.current=e(t)),r}const iw=[];function sw(e){C.useEffect(e,iw)}class aa{static create(){return new aa}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Xd(){const e=Gd(aa.create).current;return sw(e.disposeEffect),e}function aw(e){const{prototype:t={}}=e;return!!t.isReactComponent}function lw(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!aw(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const la=er(a.elementType,lw),Jd=e=>e.scrollTop;function oi(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function ii(e){return typeof e=="string"}function Qd(e,t,r){return e===void 0||ii(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function Zd(e,t,r){return typeof e=="function"?e(t,r):e}function ef(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function tf(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function rf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=ne(r?.className,i,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const s=ef({...o,...n}),l=tf(n),c=tf(o),u=t(s),d=ne(u?.className,r?.className,i,o?.className,n?.className),p={...u?.style,...r?.style,...o?.style,...n?.style},b={...u,...r,...c,...l};return d.length>0&&(b.className=d),Object.keys(p).length>0&&(b.style=p),{props:b,internalRef:u.ref}}function Ce(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...b}=i,y=d[e]||n,g=Zd(p[e],o),{props:{component:f,...m},internalRef:S}=rf({className:r,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:g}),O=Qe(S,g?.ref,t.ref),w=e==="root"?f||u:f,v=Qd(y,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...m,...w&&!l&&{as:w},...w&&l&&{component:w},ref:O},o);return[y,v]}function cw(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 nf(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=cw(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function of(e,t,r,n){return e[t]===void 0?null:nf(e,t,r,n)}function ca(){return null}of.isRequired=nf,ca.isRequired=ca;const sf=process.env.NODE_ENV==="production"?ca:of;function uw(e){return Ee("MuiPaper",e)}ve("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 dw=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Oe(i,uw,o)},fw=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Te(({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)"}}]}))),si=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiPaper"}),o=at(),{className:i,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=n,p={...n,component:s,elevation:l,square:c,variant:u},b=dw(p);return process.env.NODE_ENV!=="production"&&o.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
- `)),h.jsx(fw,{as:s,ownerState:p,className:ne(b.root,i),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Jo("#fff",Zs(l))}, ${Jo("#fff",Zs(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(si.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,elevation:er(sf,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:a.bool,style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["elevation","outlined"]),a.string])});const Pr=a.oneOfType([a.func,a.object]);function af(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 ai{static create(){return new ai}static use(){const t=Gd(ai.create).current,[r,n]=C.useState(!1);return t.shouldMount=r,t.setShouldMount=n,C.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=hw(),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 pw(){return ai.use()}function hw(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function lf(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=C.useState(!1),b=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=ne(r.child,d&&r.childLeaving,n&&r.childPulsate);return!l&&!d&&p(!0),C.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),h.jsx("span",{className:b,style:y,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(lf.propTypes={classes:a.object.isRequired,className:a.string,in:a.bool,onExited:a.func,pulsate:a.bool,rippleSize:a.number,rippleX:a.number,rippleY:a.number,timeout:a.number.isRequired});const tt=ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ua=550,gw=80,mw=dn`
61
+ `))},[JSON.stringify(r)])}const u=C.useCallback(d=>{i||l(d)},[]);return[c,u]}function er(e){const t=C.useRef(e);return kt(()=>{t.current=e}),C.useRef((...r)=>(0,t.current)(...r)).current}function Qe(...e){const t=C.useRef(void 0),r=C.useCallback(n=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,l=s(n);return typeof l=="function"?l:()=>{s(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i?.())}},e);return C.useMemo(()=>e.every(n=>n==null)?null:n=>{t.current&&(t.current(),t.current=void 0),n!=null&&(t.current=r(n))},e)}function Gx(e,t){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof t=="function"}function Wd(e,t){if(!e)return t;function r(s,l){const c={};return Object.keys(l).forEach(u=>{Gx(u,l[u])&&typeof s[u]=="function"&&(c[u]=(...d)=>{s[u](...d),l[u](...d)})}),c}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,c=typeof e=="function"?e({...s,...l}):e,u=ne(s?.className,l?.className,c?.className),d=r(c,l);return{...l,...c,...d,...!!u&&{className:u},...l?.style&&c?.style&&{style:{...l.style,...c.style}},...l?.sx&&c?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(c.sx)?c.sx:[c.sx]]}}};const n=t,o=r(e,n),i=ne(n?.className,e?.className);return{...t,...e,...o,...!!i&&{className:i},...n?.style&&e?.style&&{style:{...n.style,...e.style}},...n?.sx&&e?.sx&&{sx:[...Array.isArray(n.sx)?n.sx:[n.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var ni={exports:{}},xe={};var Ud;function Xx(){if(Ud)return xe;Ud=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),y=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 r:case o:case n:case c:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case s:case l:case p:case d:return f;case i:return f;default:return m}}case t:return m}}}return xe.ContextConsumer=i,xe.ContextProvider=s,xe.Element=e,xe.ForwardRef=l,xe.Fragment=r,xe.Lazy=p,xe.Memo=d,xe.Portal=t,xe.Profiler=o,xe.StrictMode=n,xe.Suspense=c,xe.SuspenseList=u,xe.isContextConsumer=function(f){return g(f)===i},xe.isContextProvider=function(f){return g(f)===s},xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},xe.isForwardRef=function(f){return g(f)===l},xe.isFragment=function(f){return g(f)===r},xe.isLazy=function(f){return g(f)===p},xe.isMemo=function(f){return g(f)===d},xe.isPortal=function(f){return g(f)===t},xe.isProfiler=function(f){return g(f)===o},xe.isStrictMode=function(f){return g(f)===n},xe.isSuspense=function(f){return g(f)===c},xe.isSuspenseList=function(f){return g(f)===u},xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===o||f===n||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===s||f.$$typeof===i||f.$$typeof===l||f.$$typeof===y||f.getModuleId!==void 0)},xe.typeOf=g,xe}var we={};var Hd;function Jx(){return Hd||(Hd=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 n:case i:case o:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case b:case p:return f;case s:return f;default:return m}}case r:return m}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=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"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");we.ContextConsumer=s,we.ContextProvider=l,we.Element=t,we.ForwardRef=c,we.Fragment=n,we.Lazy=b,we.Memo=p,we.Portal=r,we.Profiler=i,we.StrictMode=o,we.Suspense=u,we.SuspenseList=d,we.isContextConsumer=function(f){return e(f)===s},we.isContextProvider=function(f){return e(f)===l},we.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},we.isForwardRef=function(f){return e(f)===c},we.isFragment=function(f){return e(f)===n},we.isLazy=function(f){return e(f)===b},we.isMemo=function(f){return e(f)===p},we.isPortal=function(f){return e(f)===r},we.isProfiler=function(f){return e(f)===i},we.isStrictMode=function(f){return e(f)===o},we.isSuspense=function(f){return e(f)===u},we.isSuspenseList=function(f){return e(f)===d},we.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===o||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===b||f.$$typeof===p||f.$$typeof===l||f.$$typeof===s||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},we.typeOf=e})()),we}var qd;function Qx(){return qd||(qd=1,process.env.NODE_ENV==="production"?ni.exports=Xx():ni.exports=Jx()),ni.exports}var Yd=Qx();function tr(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function Kd(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function oa(e,t){return oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},oa(e,t)}function Gd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oa(e,t)}const Xd={disabled:!1};var Zx=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.shape({enter:a.number,exit:a.number,appear:a.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&a.oneOfType([a.string,a.shape({enter:a.string,exit:a.string,active:a.string}),a.shape({enter:a.string,enterDone:a.string,enterActive:a.string,exit:a.string,exitDone:a.string,exitActive:a.string})]);const oi=z.createContext(null);var ew=function(t){return t.scrollTop},wn="unmounted",rr="exited",nr="entering",Tr="entered",ia="exiting",xt=(function(e){Gd(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=o,l=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?l?(c=rr,i.appearStatus=nr):c=Tr:n.unmountOnExit||n.mountOnEnter?c=wn:c=rr,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===wn?{status:rr}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==nr&&s!==Tr&&(i=nr):(s===nr||s===Tr)&&(i=ia)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,l;return i=s=l=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,l=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:l}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===nr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this);s&&ew(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rr&&this.setState({status:wn})},r.performEnter=function(o){var i=this,s=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Ar.findDOMNode(this),l],u=c[0],d=c[1],p=this.getTimeouts(),b=l?p.appear:p.enter;if(!o&&!s||Xd.disabled){this.safeSetState({status:Tr},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:nr},function(){i.props.onEntering(u,d),i.onTransitionEnd(b,function(){i.safeSetState({status:Tr},function(){i.props.onEntered(u,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Ar.findDOMNode(this);if(!i||Xd.disabled){this.safeSetState({status:rr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:ia},function(){o.props.onExiting(l),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:rr},function(){o.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Ar.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],d=c[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===wn)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=Kd(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return z.createElement(oi.Provider,{value:null},typeof s=="function"?s(o,l):z.cloneElement(z.Children.only(s),l))},t})(z.Component);xt.contextType=oi,xt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:a.shape({current:typeof Element>"u"?a.any:function(e,t,r,n,o,i){var s=e[t];return a.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:a.oneOfType([a.func.isRequired,a.element.isRequired]).isRequired,in:a.bool,mountOnEnter:a.bool,unmountOnExit:a.bool,appear:a.bool,enter:a.bool,exit:a.bool,timeout:function(t){var r=Zx;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:a.func,onEnter:a.func,onEntering:a.func,onEntered:a.func,onExit:a.func,onExiting:a.func,onExited:a.func}:{};function Pr(){}xt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pr,onEntering:Pr,onEntered:Pr,onExit:Pr,onExiting:Pr,onExited:Pr},xt.UNMOUNTED=wn,xt.EXITED=rr,xt.ENTERING=nr,xt.ENTERED=Tr,xt.EXITING=ia;function tw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sa(e,t){var r=function(i){return t&&z.isValidElement(i)?t(i):i},n=Object.create(null);return e&&z.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function rw(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var s,l={};for(var c in t){if(n[c])for(s=0;s<n[c].length;s++){var u=n[c][s];l[n[c][s]]=r(u)}l[c]=r(c)}for(s=0;s<o.length;s++)l[o[s]]=r(o[s]);return l}function or(e,t,r){return r[t]!=null?r[t]:e.props[t]}function nw(e,t){return sa(e.children,function(r){return z.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:or(r,"appear",e),enter:or(r,"enter",e),exit:or(r,"exit",e)})})}function ow(e,t,r){var n=sa(e.children),o=rw(t,n);return Object.keys(o).forEach(function(i){var s=o[i];if(z.isValidElement(s)){var l=i in t,c=i in n,u=t[i],d=z.isValidElement(u)&&!u.props.in;c&&(!l||d)?o[i]=z.cloneElement(s,{onExited:r.bind(null,s),in:!0,exit:or(s,"exit",e),enter:or(s,"enter",e)}):!c&&l&&!d?o[i]=z.cloneElement(s,{in:!1}):c&&l&&z.isValidElement(u)&&(o[i]=z.cloneElement(s,{onExited:r.bind(null,s),in:u.props.in,exit:or(s,"exit",e),enter:or(s,"enter",e)}))}}),o}var iw=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},sw={component:"div",childFactory:function(t){return t}},aa=(function(e){Gd(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var s=i.handleExited.bind(tw(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,l=i.handleExited,c=i.firstRender;return{children:c?nw(o,l):ow(o,s,l),firstRender:!1}},r.handleExited=function(o,i){var s=sa(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var c=To({},l.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,i=o.component,s=o.childFactory,l=Kd(o,["component","childFactory"]),c=this.state.contextValue,u=iw(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,i===null?z.createElement(oi.Provider,{value:c},u):z.createElement(oi.Provider,{value:c},z.createElement(i,l,u))},t})(z.Component);aa.propTypes=process.env.NODE_ENV!=="production"?{component:a.any,children:a.node,appear:a.bool,enter:a.bool,exit:a.bool,childFactory:a.func}:{},aa.defaultProps=sw;const Jd={};function Qd(e,t){const r=C.useRef(Jd);return r.current===Jd&&(r.current=e(t)),r}const aw=[];function lw(e){C.useEffect(e,aw)}class la{static create(){return new la}currentId=null;start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Zd(){const e=Qd(la.create).current;return lw(e.disposeEffect),e}function cw(e){const{prototype:t={}}=e;return!!t.isReactComponent}function uw(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;return typeof i=="function"&&!cw(i)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ca=tr(a.elementType,uw),ef=e=>e.scrollTop;function ii(e,t){const{timeout:r,easing:n,style:o={}}=e;return{duration:o.transitionDuration??(typeof r=="number"?r:r[t.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[t.mode]:n),delay:o.transitionDelay}}function si(e){return typeof e=="string"}function tf(e,t,r){return e===void 0||si(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function rf(e,t,r){return typeof e=="function"?e(t,r):e}function nf(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function of(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function sf(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const y=ne(r?.className,i,o?.className,n?.className),g={...r?.style,...o?.style,...n?.style},f={...r,...o,...n};return y.length>0&&(f.className=y),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const s=nf({...o,...n}),l=of(n),c=of(o),u=t(s),d=ne(u?.className,r?.className,i,o?.className,n?.className),p={...u?.style,...r?.style,...o?.style,...n?.style},b={...u,...r,...c,...l};return d.length>0&&(b.className=d),Object.keys(p).length>0&&(b.style=p),{props:b,internalRef:u.ref}}function Ce(e,t){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:l=!1,...c}=t,{component:u,slots:d={[e]:void 0},slotProps:p={[e]:void 0},...b}=i,y=d[e]||n,g=rf(p[e],o),{props:{component:f,...m},internalRef:E}=sf({className:r,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:g}),O=Qe(E,g?.ref,t.ref),S=e==="root"?f||u:f,x=tf(y,{...e==="root"&&!u&&!d[e]&&s,...e!=="root"&&!d[e]&&s,...m,...S&&!l&&{as:S},...S&&l&&{component:S},ref:O},o);return[y,x]}function dw(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 af(e,t,r,n){const o=e[t];if(o==null||!Number.isInteger(o)){const i=dw(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function lf(e,t,r,n){return e[t]===void 0?null:af(e,t,r,n)}function ua(){return null}lf.isRequired=af,ua.isRequired=ua;const cf=process.env.NODE_ENV==="production"?ua:lf;function fw(e){return Ee("MuiPaper",e)}ve("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 pw=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,i={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Oe(i,fw,o)},hw=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(Te(({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)"}}]}))),ai=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiPaper"}),o=at(),{className:i,component:s="div",elevation:l=1,square:c=!1,variant:u="elevation",...d}=n,p={...n,component:s,elevation:l,square:c,variant:u},b=pw(p);return process.env.NODE_ENV!=="production"&&o.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
+ `)),h.jsx(hw,{as:s,ownerState:p,className:ne(b.root,i),ref:r,...d,style:{...u==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":o.vars.overlays?.[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Qo("#fff",ea(l))}, ${Qo("#fff",ea(l))})`}},...d.style}})});process.env.NODE_ENV!=="production"&&(ai.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,elevation:tr(cf,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:a.bool,style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["elevation","outlined"]),a.string])});const kr=a.oneOfType([a.func,a.object]);function uf(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 li{static create(){return new li}static use(){const t=Qd(li.create).current,[r,n]=C.useState(!1);return t.shouldMount=r,t.setShouldMount=n,C.useEffect(t.mountEffect,[r]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=mw(),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 gw(){return li.use()}function mw(){let e,t;const r=new Promise((n,o)=>{e=n,t=o});return r.resolve=e,r.reject=t,r}function df(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,p]=C.useState(!1),b=ne(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),y={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=ne(r.child,d&&r.childLeaving,n&&r.childPulsate);return!l&&!d&&p(!0),C.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,u);return()=>{clearTimeout(f)}}},[c,l,u]),h.jsx("span",{className:b,style:y,children:h.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(df.propTypes={classes:a.object.isRequired,className:a.string,in:a.bool,onExited:a.func,pulsate:a.bool,rippleSize:a.number,rippleX:a.number,rippleY:a.number,timeout:a.number.isRequired});const tt=ve("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=550,yw=80,bw=fn`
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
- `,yw=dn`
73
+ `,vw=fn`
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
- `,bw=dn`
81
+ `,xw=fn`
82
82
  0% {
83
83
  transform: scale(1);
84
84
  }
@@ -90,15 +90,15 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
90
90
  100% {
91
91
  transform: scale(1);
92
92
  }
93
- `,vw=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),xw=Z(lf,{name:"MuiTouchRipple",slot:"Ripple"})`
93
+ `,ww=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sw=Z(df,{name:"MuiTouchRipple",slot:"Ripple"})`
94
94
  opacity: 0;
95
95
  position: absolute;
96
96
 
97
97
  &.${tt.rippleVisible} {
98
98
  opacity: 0.3;
99
99
  transform: scale(1);
100
- animation-name: ${mw};
101
- animation-duration: ${ua}ms;
100
+ animation-name: ${bw};
101
+ animation-duration: ${da}ms;
102
102
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
103
103
  }
104
104
 
@@ -117,8 +117,8 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
117
117
 
118
118
  & .${tt.childLeaving} {
119
119
  opacity: 0;
120
- animation-name: ${yw};
121
- animation-duration: ${ua}ms;
120
+ animation-name: ${vw};
121
+ animation-duration: ${da}ms;
122
122
  animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
123
123
  }
124
124
 
@@ -127,13 +127,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
127
127
  /* @noflip */
128
128
  left: 0px;
129
129
  top: 0;
130
- animation-name: ${bw};
130
+ animation-name: ${xw};
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
- `,cf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...l}=n,[c,u]=C.useState([]),d=C.useRef(0),p=C.useRef(null);C.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const b=C.useRef(!1),y=Xd(),g=C.useRef(null),f=C.useRef(null),m=C.useCallback(v=>{const{pulsate:x,rippleX:T,rippleY:P,rippleSize:I,cb:j}=v;u(F=>[...F,h.jsx(xw,{classes:{ripple:ne(i.ripple,tt.ripple),rippleVisible:ne(i.rippleVisible,tt.rippleVisible),ripplePulsate:ne(i.ripplePulsate,tt.ripplePulsate),child:ne(i.child,tt.child),childLeaving:ne(i.childLeaving,tt.childLeaving),childPulsate:ne(i.childPulsate,tt.childPulsate)},timeout:ua,pulsate:x,rippleX:T,rippleY:P,rippleSize:I},d.current)]),d.current+=1,p.current=j},[i]),S=C.useCallback((v={},x={},T=()=>{})=>{const{pulsate:P=!1,center:I=o||x.pulsate,fakeElement:j=!1}=x;if(v?.type==="mousedown"&&b.current){b.current=!1;return}v?.type==="touchstart"&&(b.current=!0);const F=j?null:f.current,W=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let E,D,_;if(I||v===void 0||v.clientX===0&&v.clientY===0||!v.clientX&&!v.touches)E=Math.round(W.width/2),D=Math.round(W.height/2);else{const{clientX:R,clientY:M}=v.touches&&v.touches.length>0?v.touches[0]:v;E=Math.round(R-W.left),D=Math.round(M-W.top)}if(I)_=Math.sqrt((2*W.width**2+W.height**2)/3),_%2===0&&(_+=1);else{const R=Math.max(Math.abs((F?F.clientWidth:0)-E),E)*2+2,M=Math.max(Math.abs((F?F.clientHeight:0)-D),D)*2+2;_=Math.sqrt(R**2+M**2)}v?.touches?g.current===null&&(g.current=()=>{m({pulsate:P,rippleX:E,rippleY:D,rippleSize:_,cb:T})},y.start(gw,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:P,rippleX:E,rippleY:D,rippleSize:_,cb:T})},[o,m,y]),O=C.useCallback(()=>{S({},{pulsate:!0})},[S]),w=C.useCallback((v,x)=>{if(y.clear(),v?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{w(v,x)});return}g.current=null,u(T=>T.length>0?T.slice(1):T),p.current=x},[y]);return C.useImperativeHandle(r,()=>({pulsate:O,start:S,stop:w}),[O,S,w]),h.jsx(vw,{className:ne(tt.root,i.root,s),ref:f,...l,children:h.jsx(sa,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(cf.propTypes={center:a.bool,classes:a.object,className:a.string});function ww(e){return Ee("MuiButtonBase",e)}const Sw=ve("MuiButtonBase",["root","disabled","focusVisible"]),Ew=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,s=Oe({root:["root",t&&"disabled",r&&"focusVisible"]},ww,o);return r&&n&&(s.root+=` ${n}`),s},Cw=Z("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"},[`&.${Sw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:b=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:S,onDragLeave:O,onFocus:w,onFocusVisible:v,onKeyDown:x,onKeyUp:T,onMouseDown:P,onMouseLeave:I,onMouseUp:j,onTouchEnd:F,onTouchMove:W,onTouchStart:E,tabIndex:D=0,TouchRippleProps:_,touchRippleRef:R,type:M,...X}=n,ee=C.useRef(null),H=pw(),$=Qe(H.ref,R),[L,q]=C.useState(!1);u&&L&&q(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),ee.current.focus()}}),[]);const J=H.shouldMount&&!d&&!u;C.useEffect(()=>{L&&b&&!d&&H.pulsate()},[d,b,L,H]);const K=_t(H,"start",P,p),Y=_t(H,"stop",S,p),G=_t(H,"stop",O,p),te=_t(H,"stop",j,p),oe=_t(H,"stop",se=>{L&&se.preventDefault(),I&&I(se)},p),ie=_t(H,"start",E,p),U=_t(H,"stop",F,p),re=_t(H,"stop",W,p),V=_t(H,"stop",se=>{af(se.target)||q(!1),f&&f(se)},!1),he=Zt(se=>{ee.current||(ee.current=se.currentTarget),af(se.target)&&(q(!0),v&&v(se)),w&&w(se)}),ce=()=>{const se=ee.current;return c&&c!=="button"&&!(se.tagName==="A"&&se.href)},Ne=Zt(se=>{b&&!se.repeat&&L&&se.key===" "&&H.stop(se,()=>{H.start(se)}),se.target===se.currentTarget&&ce()&&se.key===" "&&se.preventDefault(),x&&x(se),se.target===se.currentTarget&&ce()&&se.key==="Enter"&&!u&&(se.preventDefault(),m&&m(se))}),Wt=Zt(se=>{b&&se.key===" "&&L&&!se.defaultPrevented&&H.stop(se,()=>{H.pulsate(se)}),T&&T(se),m&&se.target===se.currentTarget&&ce()&&se.key===" "&&!se.defaultPrevented&&m(se)});let ut=c;ut==="button"&&(X.href||X.to)&&(ut=g);const qe={};if(ut==="button"){const se=!!X.formAction;qe.type=M===void 0&&!se?"button":M,qe.disabled=u}else!X.href&&!X.to&&(qe.role="button"),u&&(qe["aria-disabled"]=u);const At=Qe(r,ee),ir={...n,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:b,tabIndex:D,focusVisible:L},Ve=Ew(ir);return h.jsxs(Cw,{as:ut,className:ne(Ve.root,l),ownerState:ir,onBlur:V,onClick:m,onContextMenu:Y,onFocus:he,onKeyDown:Ne,onKeyUp:Wt,onMouseDown:K,onMouseLeave:oe,onMouseUp:te,onDragLeave:G,onTouchEnd:U,onTouchMove:re,onTouchStart:ie,ref:At,tabIndex:u?-1:D,type:M,...qe,...X,children:[s,J?h.jsx(cf,{ref:$,center:i,..._}):null]})});function _t(e,t,r,n=!1){return Zt(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(wn.propTypes={action:Pr,centerRipple:a.bool,children:a.node,classes:a.object,className:a.string,component:la,disabled:a.bool,disableRipple:a.bool,disableTouchRipple:a.bool,focusRipple:a.bool,focusVisibleClassName:a.string,formAction:a.oneOfType([a.func,a.string]),href:a.any,LinkComponent:a.elementType,onBlur:a.func,onClick:a.func,onContextMenu:a.func,onDragLeave:a.func,onFocus:a.func,onFocusVisible:a.func,onKeyDown:a.func,onKeyUp:a.func,onMouseDown:a.func,onMouseLeave:a.func,onMouseUp:a.func,onTouchEnd:a.func,onTouchMove:a.func,onTouchStart:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,TouchRippleProps:a.object,touchRippleRef:a.oneOfType([a.func,a.shape({current:a.shape({pulsate:a.func.isRequired,start:a.func.isRequired,stop:a.func.isRequired})})]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string])});function Ow(e){return typeof e.main=="string"}function Tw(e,t=[]){if(!Ow(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Lt(e=[]){return([,t])=>t&&Tw(t,e)}function Pw(e){return Ee("MuiCircularProgress",e)}ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lt=44,da=dn`
136
+ `,ff=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...l}=n,[c,u]=C.useState([]),d=C.useRef(0),p=C.useRef(null);C.useEffect(()=>{p.current&&(p.current(),p.current=null)},[c]);const b=C.useRef(!1),y=Zd(),g=C.useRef(null),f=C.useRef(null),m=C.useCallback(x=>{const{pulsate:w,rippleX:T,rippleY:P,rippleSize:I,cb:j}=x;u(L=>[...L,h.jsx(Sw,{classes:{ripple:ne(i.ripple,tt.ripple),rippleVisible:ne(i.rippleVisible,tt.rippleVisible),ripplePulsate:ne(i.ripplePulsate,tt.ripplePulsate),child:ne(i.child,tt.child),childLeaving:ne(i.childLeaving,tt.childLeaving),childPulsate:ne(i.childPulsate,tt.childPulsate)},timeout:da,pulsate:w,rippleX:T,rippleY:P,rippleSize:I},d.current)]),d.current+=1,p.current=j},[i]),E=C.useCallback((x={},w={},T=()=>{})=>{const{pulsate:P=!1,center:I=o||w.pulsate,fakeElement:j=!1}=w;if(x?.type==="mousedown"&&b.current){b.current=!1;return}x?.type==="touchstart"&&(b.current=!0);const L=j?null:f.current,W=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,A,N;if(I||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)v=Math.round(W.width/2),A=Math.round(W.height/2);else{const{clientX:D,clientY:M}=x.touches&&x.touches.length>0?x.touches[0]:x;v=Math.round(D-W.left),A=Math.round(M-W.top)}if(I)N=Math.sqrt((2*W.width**2+W.height**2)/3),N%2===0&&(N+=1);else{const D=Math.max(Math.abs((L?L.clientWidth:0)-v),v)*2+2,M=Math.max(Math.abs((L?L.clientHeight:0)-A),A)*2+2;N=Math.sqrt(D**2+M**2)}x?.touches?g.current===null&&(g.current=()=>{m({pulsate:P,rippleX:v,rippleY:A,rippleSize:N,cb:T})},y.start(yw,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:P,rippleX:v,rippleY:A,rippleSize:N,cb:T})},[o,m,y]),O=C.useCallback(()=>{E({},{pulsate:!0})},[E]),S=C.useCallback((x,w)=>{if(y.clear(),x?.type==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{S(x,w)});return}g.current=null,u(T=>T.length>0?T.slice(1):T),p.current=w},[y]);return C.useImperativeHandle(r,()=>({pulsate:O,start:E,stop:S}),[O,E,S]),h.jsx(ww,{className:ne(tt.root,i.root,s),ref:f,...l,children:h.jsx(aa,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(ff.propTypes={center:a.bool,classes:a.object,className:a.string});function Ew(e){return Ee("MuiButtonBase",e)}const Cw=ve("MuiButtonBase",["root","disabled","focusVisible"]),Ow=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,s=Oe({root:["root",t&&"disabled",r&&"focusVisible"]},Ew,o);return r&&n&&(s.root+=` ${n}`),s},Tw=Z("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"},[`&.${Cw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:l,component:c="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:p=!1,focusRipple:b=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:E,onDragLeave:O,onFocus:S,onFocusVisible:x,onKeyDown:w,onKeyUp:T,onMouseDown:P,onMouseLeave:I,onMouseUp:j,onTouchEnd:L,onTouchMove:W,onTouchStart:v,tabIndex:A=0,TouchRippleProps:N,touchRippleRef:D,type:M,...X}=n,ee=C.useRef(null),H=gw(),R=Qe(H.ref,D),[F,q]=C.useState(!1);u&&F&&q(!1),C.useImperativeHandle(o,()=>({focusVisible:()=>{q(!0),ee.current.focus()}}),[]);const J=H.shouldMount&&!d&&!u;C.useEffect(()=>{F&&b&&!d&&H.pulsate()},[d,b,F,H]);const K=It(H,"start",P,p),Y=It(H,"stop",E,p),G=It(H,"stop",O,p),te=It(H,"stop",j,p),oe=It(H,"stop",se=>{F&&se.preventDefault(),I&&I(se)},p),ie=It(H,"start",v,p),U=It(H,"stop",L,p),re=It(H,"stop",W,p),V=It(H,"stop",se=>{uf(se.target)||q(!1),f&&f(se)},!1),he=er(se=>{ee.current||(ee.current=se.currentTarget),uf(se.target)&&(q(!0),x&&x(se)),S&&S(se)}),ce=()=>{const se=ee.current;return c&&c!=="button"&&!(se.tagName==="A"&&se.href)},Ne=er(se=>{b&&!se.repeat&&F&&se.key===" "&&H.stop(se,()=>{H.start(se)}),se.target===se.currentTarget&&ce()&&se.key===" "&&se.preventDefault(),w&&w(se),se.target===se.currentTarget&&ce()&&se.key==="Enter"&&!u&&(se.preventDefault(),m&&m(se))}),Ut=er(se=>{b&&se.key===" "&&F&&!se.defaultPrevented&&H.stop(se,()=>{H.pulsate(se)}),T&&T(se),m&&se.target===se.currentTarget&&ce()&&se.key===" "&&!se.defaultPrevented&&m(se)});let ut=c;ut==="button"&&(X.href||X.to)&&(ut=g);const qe={};if(ut==="button"){const se=!!X.formAction;qe.type=M===void 0&&!se?"button":M,qe.disabled=u}else!X.href&&!X.to&&(qe.role="button"),u&&(qe["aria-disabled"]=u);const $t=Qe(r,ee),sr={...n,centerRipple:i,component:c,disabled:u,disableRipple:d,disableTouchRipple:p,focusRipple:b,tabIndex:A,focusVisible:F},Ve=Ow(sr);return h.jsxs(Tw,{as:ut,className:ne(Ve.root,l),ownerState:sr,onBlur:V,onClick:m,onContextMenu:Y,onFocus:he,onKeyDown:Ne,onKeyUp:Ut,onMouseDown:K,onMouseLeave:oe,onMouseUp:te,onDragLeave:G,onTouchEnd:U,onTouchMove:re,onTouchStart:ie,ref:$t,tabIndex:u?-1:A,type:M,...qe,...X,children:[s,J?h.jsx(ff,{ref:R,center:i,...N}):null]})});function It(e,t,r,n=!1){return er(o=>(r&&r(o),n||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(Sn.propTypes={action:kr,centerRipple:a.bool,children:a.node,classes:a.object,className:a.string,component:ca,disabled:a.bool,disableRipple:a.bool,disableTouchRipple:a.bool,focusRipple:a.bool,focusVisibleClassName:a.string,formAction:a.oneOfType([a.func,a.string]),href:a.any,LinkComponent:a.elementType,onBlur:a.func,onClick:a.func,onContextMenu:a.func,onDragLeave:a.func,onFocus:a.func,onFocusVisible:a.func,onKeyDown:a.func,onKeyUp:a.func,onMouseDown:a.func,onMouseLeave:a.func,onMouseUp:a.func,onTouchEnd:a.func,onTouchMove:a.func,onTouchStart:a.func,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,TouchRippleProps:a.object,touchRippleRef:a.oneOfType([a.func,a.shape({current:a.shape({pulsate:a.func.isRequired,start:a.func.isRequired,stop:a.func.isRequired})})]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string])});function Pw(e){return typeof e.main=="string"}function kw(e,t=[]){if(!Pw(e))return!1;for(const r of t)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function Vt(e=[]){return([,t])=>t&&kw(t,e)}function Nw(e){return Ee("MuiCircularProgress",e)}ve("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const lt=44,fa=fn`
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
- `,fa=dn`
144
+ `,pa=fn`
145
145
  0% {
146
146
  stroke-dasharray: 1px, 200px;
147
147
  stroke-dashoffset: 0;
@@ -156,22 +156,22 @@ 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
- `,kw=typeof da!="string"?Is`
160
- animation: ${da} 1.4s linear infinite;
161
- `:null,Nw=typeof fa!="string"?Is`
162
- animation: ${fa} 1.4s ease-in-out infinite;
163
- `:null,_w=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${Q(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Q(r)}`,o&&"circleDisableShrink"]};return Oe(i,Pw,t)},Iw=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Q(r.color)}`]]}})(Te(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:kw||{animation:`${da} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Aw=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),$w=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Q(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Te(({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:Nw||{animation:`${fa} 1.4s ease-in-out infinite`}}]}))),Rw=Z("circle",{name:"MuiCircularProgress",slot:"Track"})(Te(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),li=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:b="indeterminate",...y}=n,g={...n,color:i,disableShrink:s,size:c,thickness:d,value:p,variant:b,enableTrackSlot:l},f=_w(g),m={},S={},O={};if(b==="determinate"){const w=2*Math.PI*((lt-d)/2);m.strokeDasharray=w.toFixed(3),O["aria-valuenow"]=Math.round(p),m.strokeDashoffset=`${((100-p)/100*w).toFixed(3)}px`,S.transform="rotate(-90deg)"}return h.jsx(Iw,{className:ne(f.root,o),style:{width:c,height:c,...S,...u},ownerState:g,ref:r,role:"progressbar",...O,...y,children:h.jsxs(Aw,{className:f.svg,ownerState:g,viewBox:`${lt/2} ${lt/2} ${lt} ${lt}`,children:[l?h.jsx(Rw,{className:f.track,ownerState:g,cx:lt,cy:lt,r:(lt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,h.jsx($w,{className:f.circle,style:m,ownerState:g,cx:lt,cy:lt,r:(lt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(li.propTypes={classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","error","info","success","warning"]),a.string]),disableShrink:er(a.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:a.bool,size:a.oneOfType([a.number,a.string]),style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),thickness:a.number,value:a.number,variant:a.oneOf(["determinate","indeterminate"])});function Dw(e){return Ee("MuiIconButton",e)}const uf=ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Mw=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:s}=e,l={root:["root",s&&"loading",r&&"disabled",n!=="default"&&`color${Q(n)}`,o&&`edge${Q(o)}`,`size${Q(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Oe(l,Dw,t)},jw=Z(wn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Q(r.color)}`],r.edge&&t[`edge${Q(r.edge)}`],t[`size${Q(r.size)}`]]}})(Te(({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}}]})),Te(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Lt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Lt()).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)}}],[`&.${uf.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${uf.loading}`]:{color:"transparent"}}))),zw=Z("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"}}]})),pa=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:b=null,loadingIndicator:y,...g}=n,f=Ks(p),m=y??h.jsx(li,{"aria-labelledby":f,color:"inherit",size:16}),S={...n,edge:o,color:l,disabled:c,disableFocusRipple:u,loading:b,loadingIndicator:m,size:d},O=Mw(S);return h.jsxs(jw,{id:b?f:p,className:ne(O.root,s),centerRipple:!0,focusRipple:!u,disabled:c||b,ref:r,...g,ownerState:S,children:[typeof b=="boolean"&&h.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:h.jsx(zw,{className:O.loadingIndicator,ownerState:S,children:b&&m})}),i]})});process.env.NODE_ENV!=="production"&&(pa.propTypes={children:er(a.node,e=>C.Children.toArray(e.children).some(r=>C.isValidElement(r)&&r.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:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),a.string]),disabled:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,edge:a.oneOf(["end","start",!1]),id:a.string,loading:a.bool,loadingIndicator:a.node,size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Bw(e){return Ee("MuiTypography",e)}const df=ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Fw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Lw=Vx(),Vw=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${Q(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Oe(l,Bw,s)},Ww=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Q(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Te(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Lt()).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${Q(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}}]}))),ff={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},B=C.forwardRef(function(t,r){const{color:n,...o}=Pe({props:t,name:"MuiTypography"}),i=!Fw[n],s=Lw({...o,...i&&{color:n}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:b=!1,variant:y="body1",variantMapping:g=ff,...f}=s,m={...s,align:l,color:n,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:b,variant:y,variantMapping:g},S=u||(b?"p":g[y]||ff[y])||"span",O=Vw(m);return h.jsx(Ww,{as:S,ref:r,className:ne(O.root,c),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(B.propTypes={align:a.oneOf(["center","inherit","justify","left","right"]),children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),a.string]),component:a.elementType,gutterBottom:a.bool,noWrap:a.bool,paragraph:a.bool,style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string]),variantMapping:a.object});function Sn(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function Uw(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:Zd(r,n),{props:l,internalRef:c}=rf({...i,externalSlotProps:s}),u=Qe(c,s?.ref,e.additionalProps?.ref);return Qd(t,{...l,ref:u},n)}function ci(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Hw(e){return typeof e=="function"?e():e}const ui=C.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[s,l]=C.useState(null),c=Qe(C.isValidElement(n)?ci(n):null,r);if(Pt(()=>{i||l(Hw(o)||document.body)},[o,i]),Pt(()=>{if(s&&!i)return Bd(r,s),()=>{Bd(r,null)}},[r,s,i]),i){if(C.isValidElement(n)){const u={ref:c};return C.cloneElement(n,u)}return n}return s&&ip.createPortal(n,s)});process.env.NODE_ENV!=="production"&&(ui.propTypes={children:a.node,container:a.oneOfType([Sn,a.func]),disablePortal:a.bool}),process.env.NODE_ENV!=="production"&&(ui.propTypes=bd(ui.propTypes));function di(e){return parseInt(e,10)||0}const qw={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Yw(e){for(const t in e)return!1;return!0}function pf(e){return Yw(e)||e.outerHeightStyle===0&&!e.overflowing}const hf=C.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:i=1,style:s,value:l,...c}=t,{current:u}=C.useRef(l!=null),d=C.useRef(null),p=Qe(r,d),b=C.useRef(null),y=C.useRef(null),g=C.useCallback(()=>{const w=d.current,v=y.current;if(!w||!v)return;const T=Nt(w).getComputedStyle(w);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};v.style.width=T.width,v.value=w.value||t.placeholder||"x",v.value.slice(-1)===`
165
- `&&(v.value+=" ");const P=T.boxSizing,I=di(T.paddingBottom)+di(T.paddingTop),j=di(T.borderBottomWidth)+di(T.borderTopWidth),F=v.scrollHeight;v.value="x";const W=v.scrollHeight;let E=F;i&&(E=Math.max(Number(i)*W,E)),o&&(E=Math.min(Number(o)*W,E)),E=Math.max(E,W);const D=E+(P==="border-box"?I+j:0),_=Math.abs(E-F)<=1;return{outerHeightStyle:D,overflowing:_}},[o,i,t.placeholder]),f=Zt(()=>{const w=d.current,v=g();if(!w||!v||pf(v))return!1;const x=v.outerHeightStyle;return b.current!=null&&b.current!==x}),m=C.useCallback(()=>{const w=d.current,v=g();if(!w||!v||pf(v))return;const x=v.outerHeightStyle;b.current!==x&&(b.current=x,w.style.height=`${x}px`),w.style.overflow=v.overflowing?"hidden":""},[g]),S=C.useRef(-1);Pt(()=>{const w=zd(m),v=d?.current;if(!v)return;const x=Nt(v);x.addEventListener("resize",w);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{f()&&(T.unobserve(v),cancelAnimationFrame(S.current),m(),S.current=requestAnimationFrame(()=>{T.observe(v)}))}),T.observe(v)),()=>{w.clear(),cancelAnimationFrame(S.current),x.removeEventListener("resize",w),T&&T.disconnect()}},[g,m,f]),Pt(()=>{m()});const O=w=>{u||m();const v=w.target,x=v.value.length,T=v.value.endsWith(`
166
- `),P=v.selectionStart===x;T&&P&&v.setSelectionRange(x,x),n&&n(w)};return h.jsxs(C.Fragment,{children:[h.jsx("textarea",{value:l,onChange:O,ref:p,rows:i,style:s,...c}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...qw.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(hf.propTypes={className:a.string,maxRows:a.oneOfType([a.number,a.string]),minRows:a.oneOfType([a.number,a.string]),onChange:a.func,placeholder:a.string,style:a.object,value:a.oneOfType([a.arrayOf(a.string),a.number,a.string])});function gf({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const ha=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(ha.displayName="FormControlContext");function ga(){return C.useContext(ha)}function mf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Kw(e,t=!1){return e&&(mf(e.value)&&e.value!==""||t&&mf(e.defaultValue)&&e.defaultValue!=="")}function Gw(e){return Ee("MuiInputBase",e)}const ma=ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var yf;const Xw=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Q(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Jw=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Qw=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:b,startAdornment:y,type:g}=e,f={root:["root",`color${Q(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",b&&b!=="medium"&&`size${Q(b)}`,d&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",b==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Oe(f,Gw,t)},Zw=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Xw})(Te(({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",[`&.${ma.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),eS=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Jw})(Te(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ma.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ma.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),bf=Lx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),vf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:b,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:m=!1,id:S,inputComponent:O="input",inputProps:w={},inputRef:v,margin:x,maxRows:T,minRows:P,multiline:I=!1,name:j,onBlur:F,onChange:W,onClick:E,onFocus:D,onKeyDown:_,onKeyUp:R,placeholder:M,readOnly:X,renderSuffix:ee,rows:H,size:$,slotProps:L={},slots:q={},startAdornment:J,type:K="text",value:Y,...G}=n,te=w.value!=null?w.value:Y,{current:oe}=C.useRef(te!=null),ie=C.useRef(),U=C.useCallback(_e=>{process.env.NODE_ENV!=="production"&&_e&&_e.nodeName!=="INPUT"&&!_e.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(`
167
- `))},[]),re=Qe(ie,v,w.ref,U),[V,he]=C.useState(!1),ce=ga();process.env.NODE_ENV!=="production"&&C.useEffect(()=>{if(ce)return ce.registerEffect()},[ce]);const Ne=gf({props:n,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ne.focused=ce?ce.focused:V,C.useEffect(()=>{!ce&&b&&V&&(he(!1),F&&F())},[ce,b,V,F]);const Wt=ce&&ce.onFilled,ut=ce&&ce.onEmpty,qe=C.useCallback(_e=>{Kw(_e)?Wt&&Wt():ut&&ut()},[Wt,ut]);Pt(()=>{oe&&qe({value:te})},[te,qe,oe]);const At=_e=>{D&&D(_e),w.onFocus&&w.onFocus(_e),ce&&ce.onFocus?ce.onFocus(_e):he(!0)},ir=_e=>{F&&F(_e),w.onBlur&&w.onBlur(_e),ce&&ce.onBlur?ce.onBlur(_e):he(!1)},Ve=(_e,...rp)=>{if(!oe){const np=_e.target||ie.current;if(np==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.":Ot(1));qe({value:np.value})}w.onChange&&w.onChange(_e,...rp),W&&W(_e,...rp)};C.useEffect(()=>{qe(ie.current)},[]);const se=_e=>{ie.current&&_e.currentTarget===_e.target&&ie.current.focus(),E&&E(_e)};let Ya=O,$t=w;I&&Ya==="input"&&(H?(process.env.NODE_ENV!=="production"&&(P||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),$t={type:void 0,minRows:H,maxRows:H,...$t}):$t={type:void 0,maxRows:T,minRows:P,...$t},Ya=hf);const M1=_e=>{qe(_e.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};C.useEffect(()=>{ce&&ce.setAdornedStart(!!J)},[ce,J]);const Ka={...n,color:Ne.color||"primary",disabled:Ne.disabled,endAdornment:g,error:Ne.error,focused:Ne.focused,formControl:ce,fullWidth:m,hiddenLabel:Ne.hiddenLabel,multiline:I,size:Ne.size,startAdornment:J,type:K},Zf=Qw(Ka),ep=q.root||u.Root||Zw,Ga=L.root||d.root||{},tp=q.input||u.Input||eS;return $t={...$t,...L.input??d.input},h.jsxs(C.Fragment,{children:[!y&&typeof bf=="function"&&(yf||(yf=h.jsx(bf,{}))),h.jsxs(ep,{...Ga,ref:r,onClick:se,...G,...!ii(ep)&&{ownerState:{...Ka,...Ga.ownerState}},className:ne(Zf.root,Ga.className,l,X&&"MuiInputBase-readOnly"),children:[J,h.jsx(ha.Provider,{value:null,children:h.jsx(tp,{"aria-invalid":Ne.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:Ne.disabled,id:S,onAnimationStart:M1,name:j,placeholder:M,readOnly:X,required:Ne.required,rows:H,value:te,onKeyDown:_,onKeyUp:R,type:K,...$t,...!ii(tp)&&{as:Ya,ownerState:{...Ka,...$t.ownerState}},ref:re,className:ne(Zf.input,$t.className,X&&"MuiInputBase-readOnly"),onBlur:ir,onChange:Ve,onFocus:At})}),g,ee?ee({...Ne,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(vf.propTypes={"aria-describedby":a.string,autoComplete:a.string,autoFocus:a.bool,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","error","info","success","warning"]),a.string]),components:a.shape({Input:a.elementType,Root:a.elementType}),componentsProps:a.shape({input:a.object,root:a.object}),defaultValue:a.any,disabled:a.bool,disableInjectingGlobalStyles:a.bool,endAdornment:a.node,error:a.bool,fullWidth:a.bool,id:a.string,inputComponent:la,inputProps:a.object,inputRef:Pr,margin:a.oneOf(["dense","none"]),maxRows:a.oneOfType([a.number,a.string]),minRows:a.oneOfType([a.number,a.string]),multiline:a.bool,name:a.string,onBlur:a.func,onChange:a.func,onClick:a.func,onFocus:a.func,onInvalid:a.func,onKeyDown:a.func,onKeyUp:a.func,placeholder:a.string,readOnly:a.bool,renderSuffix:a.func,required:a.bool,rows:a.oneOfType([a.number,a.string]),size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.object,root:a.object}),slots:a.shape({input:a.elementType,root:a.elementType}),startAdornment:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.string,value:a.any});const tS=vn(h.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 rS(e){return Ee("MuiAvatar",e)}ve("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const nS=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Oe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},rS,t)},oS=Z("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(Te(({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]})}}}]}))),iS=Z("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),sS=Z(tS,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function aS({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,i]=C.useState(!1);return C.useEffect(()=>{if(!r&&!n)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{s=!1}},[e,t,r,n]),o}const xf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:b,srcSet:y,variant:g="circular",...f}=n;let m=null;const S={...n,component:l,variant:g},O=aS({...d,...typeof u.img=="function"?u.img(S):u.img,src:b,srcSet:y}),w=b||y,v=w&&O!=="error";S.colorDefault=!v,delete S.ownerState;const x=nS(S),[T,P]=Ce("root",{ref:r,className:ne(x.root,s),elementType:oS,externalForwardedProps:{slots:c,slotProps:u,component:l,...f},ownerState:S}),[I,j]=Ce("img",{className:x.img,elementType:iS,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:b,srcSet:y,sizes:p},ownerState:S}),[F,W]=Ce("fallback",{className:x.fallback,elementType:sS,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:S});return v?m=h.jsx(I,{...j}):i||i===0?m=i:w&&o?m=o[0]:m=h.jsx(F,{...W}),h.jsx(T,{...P,children:m})});process.env.NODE_ENV!=="production"&&(xf.propTypes={alt:a.string,children:a.node,classes:a.object,className:a.string,component:a.elementType,imgProps:a.object,sizes:a.string,slotProps:a.shape({fallback:a.oneOfType([a.func,a.object]),img:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({fallback:a.elementType,img:a.elementType,root:a.elementType}),src:a.string,srcSet:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["circular","rounded","square"]),a.string])});function lS(e){const{prototype:t={}}=e;return!!t.isReactComponent}function wf(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!lS(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const En=er(a.element,wf);En.isRequired=er(a.element.isRequired,wf);const cS={entering:{opacity:1},entered:{opacity:1}},fi=C.forwardRef(function(t,r){const n=at(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:b,onExit:y,onExited:g,onExiting:f,style:m,timeout:S=o,TransitionComponent:O=vt,...w}=t,v=C.useRef(null),x=Qe(v,ci(l),r),T=_=>R=>{if(_){const M=v.current;R===void 0?_(M):_(M,R)}},P=T(b),I=T((_,R)=>{Jd(_);const M=oi({style:m,timeout:S,easing:c},{mode:"enter"});_.style.webkitTransition=n.transitions.create("opacity",M),_.style.transition=n.transitions.create("opacity",M),d&&d(_,R)}),j=T(p),F=T(f),W=T(_=>{const R=oi({style:m,timeout:S,easing:c},{mode:"exit"});_.style.webkitTransition=n.transitions.create("opacity",R),_.style.transition=n.transitions.create("opacity",R),y&&y(_)}),E=T(g),D=_=>{i&&i(v.current,_)};return h.jsx(O,{appear:s,in:u,nodeRef:v,onEnter:I,onEntered:j,onEntering:P,onExit:W,onExited:E,onExiting:F,addEndListener:D,timeout:S,...w,children:(_,{ownerState:R,...M})=>C.cloneElement(l,{style:{opacity:0,visibility:_==="exited"&&!u?"hidden":void 0,...cS[_],...m,...l.props.style},ref:x,...M})})});process.env.NODE_ENV!=="production"&&(fi.propTypes={addEndListener:a.func,appear:a.bool,children:En.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function uS(e){return Ee("MuiBackdrop",e)}ve("MuiBackdrop",["root","invisible"]);const dS=e=>{const{classes:t,invisible:r}=e;return Oe({root:["root",r&&"invisible"]},uS,t)},fS=Z("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),ya=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:b={},TransitionComponent:y,transitionDuration:g,...f}=n,m={...n,component:s,invisible:l},S=dS(m),O={transition:y,root:u.Root,...b},w={...d,...p},v={component:s,slots:O,slotProps:w},[x,T]=Ce("root",{elementType:fS,externalForwardedProps:v,className:ne(S.root,i),ownerState:m}),[P,I]=Ce("transition",{elementType:fi,externalForwardedProps:v,ownerState:m});return h.jsx(P,{in:c,timeout:g,...f,...I,children:h.jsx(x,{"aria-hidden":!0,...T,classes:S,ref:r,children:o})})});process.env.NODE_ENV!=="production"&&(ya.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),invisible:a.bool,open:a.bool.isRequired,slotProps:a.shape({root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});const pS=ve("MuiBox",["root"]),hS=ta(),N=Iv({themeId:nn,defaultTheme:hS,defaultClassName:pS.root,generateClassName:ad.generate});process.env.NODE_ENV!=="production"&&(N.propTypes={children:a.node,component:a.elementType,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function gS(e){return Ee("MuiButton",e)}const or=ve("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"]),Sf=C.createContext({});process.env.NODE_ENV!=="production"&&(Sf.displayName="ButtonGroupContext");const Ef=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(Ef.displayName="ButtonGroupButtonContext");const mS=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",i,`${i}${Q(t)}`,`size${Q(o)}`,`${i}Size${Q(o)}`,`color${Q(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${Q(l)}`],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Oe(u,gS,c);return{...c,...d}},Cf=[{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}}}],yS=Z(wn,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Q(r.color)}`],t[`size${Q(r.size)}`],t[`${r.variant}Size${Q(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Te(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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(Lt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].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:r,"--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"}}}]}})),bS=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Q(r.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}},...Cf]})),vS=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Q(r.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}},...Cf]})),xS=Z("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}}]})),Of=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Vt=C.forwardRef(function(t,r){const n=C.useContext(Sf),o=C.useContext(Ef),i=mn(n,t),s=Pe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:b=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:S,loading:O=null,loadingIndicator:w,loadingPosition:v="center",size:x="medium",startIcon:T,type:P,variant:I="text",...j}=s,F=Ks(S),W=w??h.jsx(li,{"aria-labelledby":F,color:"inherit",size:16}),E={...s,color:c,component:u,disabled:p,disableElevation:b,disableFocusRipple:y,fullWidth:m,loading:O,loadingIndicator:W,loadingPosition:v,size:x,type:P,variant:I},D=mS(E),_=(T||O&&v==="start")&&h.jsx(bS,{className:D.startIcon,ownerState:E,children:T||h.jsx(Of,{className:D.loadingIconPlaceholder,ownerState:E})}),R=(g||O&&v==="end")&&h.jsx(vS,{className:D.endIcon,ownerState:E,children:g||h.jsx(Of,{className:D.loadingIconPlaceholder,ownerState:E})}),M=o||"",X=typeof O=="boolean"?h.jsx("span",{className:D.loadingWrapper,style:{display:"contents"},children:O&&h.jsx(xS,{className:D.loadingIndicator,ownerState:E,children:W})}):null;return h.jsxs(yS,{ownerState:E,className:ne(n.className,D.root,d,M),component:u,disabled:p||O,focusRipple:!y,focusVisibleClassName:ne(D.focusVisible,f),ref:r,type:P,id:O?F:S,...j,classes:D,children:[_,v!=="end"&&X,l,v==="end"&&X,R]})});process.env.NODE_ENV!=="production"&&(Vt.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","success","error","info","warning"]),a.string]),component:a.elementType,disabled:a.bool,disableElevation:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,endIcon:a.node,focusVisibleClassName:a.string,fullWidth:a.bool,href:a.string,id:a.string,loading:a.bool,loadingIndicator:a.node,loadingPosition:a.oneOf(["center","end","start"]),size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),startIcon:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});function wS(e){return Ee("PrivateSwitchBase",e)}ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const SS=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return Oe(i,wS,t)},ES=Z(wn,{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}}]}),CS=Z("input",{name:"MuiSwitchBase",shouldForwardProp:Cr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ba=C.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:b,inputRef:y,name:g,onBlur:f,onChange:m,onFocus:S,readOnly:O,required:w=!1,tabIndex:v,type:x,value:T,slots:P={},slotProps:I={},...j}=t,[F,W]=qx({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),E=ga(),D=Y=>{S&&S(Y),E&&E.onFocus&&E.onFocus(Y)},_=Y=>{f&&f(Y),E&&E.onBlur&&E.onBlur(Y)},R=Y=>{if(Y.nativeEvent.defaultPrevented)return;const G=Y.target.checked;W(G),m&&m(Y,G)};let M=l;E&&typeof M>"u"&&(M=E.disabled);const X=x==="checkbox"||x==="radio",ee={...t,checked:F,disabled:M,disableFocusRipple:c,edge:u},H=SS(ee),$={slots:P,slotProps:{input:b,...I}},[L,q]=Ce("root",{ref:r,elementType:ES,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...$,component:"span",...j},getSlotProps:Y=>({...Y,onFocus:G=>{Y.onFocus?.(G),D(G)},onBlur:G=>{Y.onBlur?.(G),_(G)}}),ownerState:ee,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:M,role:void 0,tabIndex:null}}),[J,K]=Ce("input",{ref:y,elementType:CS,className:H.input,externalForwardedProps:$,getSlotProps:Y=>({...Y,onChange:G=>{Y.onChange?.(G),R(G)}}),ownerState:ee,additionalProps:{autoFocus:n,checked:o,defaultChecked:s,disabled:M,id:X?p:void 0,name:g,readOnly:O,required:w,tabIndex:v,type:x,...x==="checkbox"&&T===void 0?{}:{value:T}}});return h.jsxs(L,{...q,children:[h.jsx(J,{...K}),F?i:d]})});process.env.NODE_ENV!=="production"&&(ba.propTypes={autoFocus:a.bool,checked:a.bool,checkedIcon:a.node.isRequired,classes:a.object,className:a.string,defaultChecked:a.bool,disabled:a.bool,disableFocusRipple:a.bool,edge:a.oneOf(["end","start",!1]),icon:a.node.isRequired,id:a.string,inputProps:a.object,inputRef:Pr,name:a.string,onBlur:a.func,onChange:a.func,onFocus:a.func,readOnly:a.bool,required:a.bool,slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType}),sx:a.object,tabIndex:a.oneOfType([a.number,a.string]),type:a.string.isRequired,value:a.any});const OS=vn(h.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"),TS=vn(h.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"),PS=vn(h.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 kS(e){return Ee("MuiCheckbox",e)}const va=ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),NS=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate",`color${Q(n)}`,`size${Q(o)}`]},s=Oe(i,kS,t);return{...t,...s}},_S=Z(ba,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Q(r.size)}`],r.color!=="default"&&t[`color${Q(r.color)}`]]}})(Te(({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(Lt()).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(Lt()).map(([t])=>({props:{color:t},style:{[`&.${va.checked}, &.${va.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${va.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),IS=h.jsx(TS,{}),AS=h.jsx(OS,{}),$S=h.jsx(PS,{}),ct=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IS,color:i="primary",icon:s=AS,indeterminate:l=!1,indeterminateIcon:c=$S,inputProps:u,size:d="medium",disableRipple:p=!1,className:b,slots:y={},slotProps:g={},...f}=n,m=l?c:s,S=l?c:o,O={...n,disableRipple:p,color:i,indeterminate:l,size:d},w=NS(O),v=g.input??u,[x,T]=Ce("root",{ref:r,elementType:_S,className:ne(w.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:O,additionalProps:{type:"checkbox",icon:C.cloneElement(m,{fontSize:m.props.fontSize??d}),checkedIcon:C.cloneElement(S,{fontSize:S.props.fontSize??d}),disableRipple:p,slots:y,slotProps:{input:Fd(typeof v=="function"?v(O):v,{"data-indeterminate":l})}}});return h.jsx(x,{...T,classes:w})});process.env.NODE_ENV!=="production"&&(ct.propTypes={checked:a.bool,checkedIcon:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["default","primary","secondary","error","info","success","warning"]),a.string]),defaultChecked:a.bool,disabled:a.bool,disableRipple:a.bool,icon:a.node,id:a.string,indeterminate:a.bool,indeterminateIcon:a.node,inputProps:a.object,onChange:a.func,required:a.bool,size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});function Tf(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function RS(e){const t=bt(e);return t.body===e?Nt(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Cn(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Pf(e){return parseInt(Nt(e).getComputedStyle(e).paddingRight,10)||0}function DS(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function kf(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,s=>{const l=!i.includes(s),c=!DS(s);l&&c&&Cn(s,o)})}function xa(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function MS(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(RS(n)){const s=Tf(Nt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Pf(n)+s}px`;const l=bt(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Pf(c)+s}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=bt(n).body;else{const s=n.parentElement,l=Nt(n);i=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function jS(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class zS{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&Cn(t.modalRef,!1);const o=jS(r);kf(r,t.mount,t.modalRef,o,!0);const i=xa(this.containers,s=>s.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=xa(this.containers,i=>i.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=MS(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=xa(this.containers,s=>s.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Cn(t.modalRef,r),kf(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&Cn(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function On(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const BS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function FS(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 LS(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function VS(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||LS(e))}function WS(e){const t=[],r=[];return Array.from(e.querySelectorAll(BS)).forEach((n,o)=>{const i=FS(n);i===-1||!VS(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function US(){return!0}function pi(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=WS,isEnabled:s=US,open:l}=e,c=C.useRef(!1),u=C.useRef(null),d=C.useRef(null),p=C.useRef(null),b=C.useRef(null),y=C.useRef(!1),g=C.useRef(null),f=Qe(ci(t),g),m=C.useRef(null);C.useEffect(()=>{!l||!g.current||(y.current=!r)},[r,l]),C.useEffect(()=>{if(!l||!g.current)return;const w=bt(g.current),v=On(w);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(`
168
- `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),C.useEffect(()=>{if(!l||!g.current)return;const w=bt(g.current),v=On(w),x=I=>{m.current=I,!(n||!s()||I.key!=="Tab")&&v===g.current&&I.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{const I=g.current;if(I===null)return;const j=On(w);if(!w.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(j)||n&&j!==u.current&&j!==d.current)return;if(j!==b.current)b.current=null;else if(b.current!==null)return;if(!y.current)return;let F=[];if((j===u.current||j===d.current)&&(F=i(g.current)),F.length>0){const W=!!(m.current?.shiftKey&&m.current?.key==="Tab"),E=F[0],D=F[F.length-1];typeof E!="string"&&typeof D!="string"&&(W?D.focus():E.focus())}else I.focus()};w.addEventListener("focusin",T),w.addEventListener("keydown",x,!0);const P=setInterval(()=>{const I=On(w);I&&I.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),w.removeEventListener("focusin",T),w.removeEventListener("keydown",x,!0)}},[r,n,o,s,l,i]);const S=w=>{p.current===null&&(p.current=w.relatedTarget),y.current=!0,b.current=w.target;const v=t.props.onFocus;v&&v(w)},O=w=>{p.current===null&&(p.current=w.relatedTarget),y.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:f,onFocus:S}),h.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(pi.propTypes={children:En,disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableRestoreFocus:a.bool,getTabbable:a.func,isEnabled:a.func,open:a.bool.isRequired}),process.env.NODE_ENV!=="production"&&(pi.propTypes=bd(pi.propTypes));function HS(e){return typeof e=="function"?e():e}function qS(e){return e?e.props.hasOwnProperty("in"):!1}const Nf=()=>{},hi=new zS;function YS(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=C.useRef({}),b=C.useRef(null),y=C.useRef(null),g=Qe(y,d),[f,m]=C.useState(!u),S=qS(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const w=()=>bt(b.current),v=()=>(p.current.modalRef=y.current,p.current.mount=b.current,p.current),x=()=>{hi.mount(v(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},T=Zt(()=>{const R=HS(t)||w().body;hi.add(v(),R),y.current&&x()}),P=()=>hi.isTopModal(v()),I=Zt(R=>{b.current=R,R&&(u&&P()?x():y.current&&Cn(y.current,O))}),j=C.useCallback(()=>{hi.remove(v(),O)},[O]);C.useEffect(()=>()=>{j()},[j]),C.useEffect(()=>{u?T():(!S||!o)&&j()},[u,j,S,o,T]);const F=R=>M=>{R.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!P())&&(r||(M.stopPropagation(),c&&c(M,"escapeKeyDown")))},W=R=>M=>{R.onClick?.(M),M.target===M.currentTarget&&c&&c(M,"backdropClick")};return{getRootProps:(R={})=>{const M=ef(e);delete M.onTransitionEnter,delete M.onTransitionExited;const X={...M,...R};return{role:"presentation",...X,onKeyDown:F(X),ref:g}},getBackdropProps:(R={})=>{const M=R;return{"aria-hidden":!0,...M,onClick:W(M),open:u}},getTransitionProps:()=>{const R=()=>{m(!1),i&&i()},M=()=>{m(!0),s&&s(),o&&j()};return{onEnter:Md(R,l?.props.onEnter??Nf),onExited:Md(M,l?.props.onExited??Nf)}},rootRef:g,portalRef:I,isTopModal:P,exited:f,hasTransition:S}}function KS(e){return Ee("MuiModal",e)}ve("MuiModal",["root","hidden","backdrop"]);const GS=e=>{const{open:t,exited:r,classes:n}=e;return Oe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},KS,n)},XS=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Te(({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"}}]}))),JS=Z(ya,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),wa=C.forwardRef(function(t,r){const n=Pe({name:"MuiModal",props:t}),{BackdropComponent:o=JS,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:b={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:S=!1,disableRestoreFocus:O=!1,disableScrollLock:w=!1,hideBackdrop:v=!1,keepMounted:x=!1,onClose:T,onTransitionEnter:P,onTransitionExited:I,open:j,slotProps:F={},slots:W={},theme:E,...D}=n,_={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:S,disableRestoreFocus:O,disableScrollLock:w,hideBackdrop:v,keepMounted:x},{getRootProps:R,getBackdropProps:M,getTransitionProps:X,portalRef:ee,isTopModal:H,exited:$,hasTransition:L}=YS({..._,rootRef:r}),q={..._,exited:$},J=GS(q),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),L){const{onEnter:U,onExited:re}=X();K.onEnter=U,K.onExited=re}const Y={slots:{root:b.Root,backdrop:b.Backdrop,...W},slotProps:{...y,...F}},[G,te]=Ce("root",{ref:r,elementType:XS,externalForwardedProps:{...Y,...D,component:p},getSlotProps:R,ownerState:q,className:ne(l,J?.root,!q.open&&q.exited&&J?.hidden)}),[oe,ie]=Ce("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:U=>M({...U,onClick:re=>{U?.onClick&&U.onClick(re)}}),className:ne(i?.className,J?.backdrop),ownerState:q});return!x&&!j&&(!L||$)?null:h.jsx(ui,{ref:ee,container:d,disablePortal:S,children:h.jsxs(G,{...te,children:[!v&&o?h.jsx(oe,{...ie}):null,h.jsx(pi,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:O,isEnabled:H,open:j,children:C.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(wa.propTypes={BackdropComponent:a.elementType,BackdropProps:a.object,children:En.isRequired,classes:a.object,className:a.string,closeAfterTransition:a.bool,component:a.elementType,components:a.shape({Backdrop:a.elementType,Root:a.elementType}),componentsProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([Sn,a.func]),disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableEscapeKeyDown:a.bool,disablePortal:a.bool,disableRestoreFocus:a.bool,disableScrollLock:a.bool,hideBackdrop:a.bool,keepMounted:a.bool,onClose:a.func,onTransitionEnter:a.func,onTransitionExited:a.func,open:a.bool.isRequired,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function QS(e){return Ee("MuiDialog",e)}const Sa=ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ea=C.createContext({});process.env.NODE_ENV!=="production"&&(Ea.displayName="DialogContext");const ZS=Z(ya,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),eE=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${Q(r)}`],paper:["paper",`paperScroll${Q(r)}`,`paperWidth${Q(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Oe(s,QS,t)},tE=Z(wa,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),rE=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Q(r.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"}}}]}),nE=Z(si,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Q(r.scroll)}`],t[`paperWidth${Q(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Te(({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)`,[`&.${Sa.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}`,[`&.${Sa.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,[`&.${Sa.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),_f=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialog"}),o=at(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:b,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:S,onClose:O,open:w,PaperComponent:v=si,PaperProps:x={},scroll:T="paper",slots:P={},slotProps:I={},TransitionComponent:j=fi,transitionDuration:F=i,TransitionProps:W,...E}=n,D={...n,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:m,scroll:T},_=eE(D),R=C.useRef(),M=he=>{R.current=he.target===he.currentTarget},X=he=>{S&&S(he),R.current&&(R.current=null,O&&O(he,"backdropClick"))},ee=Ks(l),H=C.useMemo(()=>({titleId:ee}),[ee]),$={transition:j,...P},L={transition:W,paper:x,backdrop:d,...I},q={slots:$,slotProps:L},[J,K]=Ce("root",{elementType:tE,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:D,className:ne(_.root,b),ref:r}),[Y,G]=Ce("backdrop",{elementType:ZS,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:D}),[te,oe]=Ce("paper",{elementType:nE,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:D,className:ne(_.paper,x.className)}),[ie,U]=Ce("container",{elementType:rE,externalForwardedProps:q,ownerState:D,className:_.container}),[re,V]=Ce("transition",{elementType:fi,externalForwardedProps:q,ownerState:D,additionalProps:{appear:!0,in:w,timeout:F,role:"presentation"}});return h.jsx(J,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:F,as:u,...G}},disableEscapeKeyDown:y,onClose:O,open:w,onClick:X,...K,...E,children:h.jsx(re,{...V,children:h.jsx(ie,{onMouseDown:M,...U,children:h.jsx(te,{as:v,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ee,"aria-modal":c,...oe,children:h.jsx(Ea.Provider,{value:H,children:p})})})})})});process.env.NODE_ENV!=="production"&&(_f.propTypes={"aria-describedby":a.string,"aria-labelledby":a.string,"aria-modal":a.oneOfType([a.oneOf(["false","true"]),a.bool]),BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,disableEscapeKeyDown:a.bool,fullScreen:a.bool,fullWidth:a.bool,maxWidth:a.oneOfType([a.oneOf(["xs","sm","md","lg","xl",!1]),a.string]),onClick:a.func,onClose:a.func,open:a.bool.isRequired,PaperComponent:a.elementType,PaperProps:a.object,scroll:a.oneOf(["body","paper"]),slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),container:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,container:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function oE(e){return Ee("MuiDialogActions",e)}ve("MuiDialogActions",["root","spacing"]);const iE=e=>{const{classes:t,disableSpacing:r}=e;return Oe({root:["root",!r&&"spacing"]},oE,t)},sE=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.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}}}]}),If=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=n,l={...n,disableSpacing:i},c=iE(l);return h.jsx(sE,{className:ne(c.root,o),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(If.propTypes={children:a.node,classes:a.object,className:a.string,disableSpacing:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function aE(e){return Ee("MuiDialogContent",e)}ve("MuiDialogContent",["root","dividers"]);function lE(e){return Ee("MuiDialogTitle",e)}const cE=ve("MuiDialogTitle",["root"]),uE=e=>{const{classes:t,dividers:r}=e;return Oe({root:["root",r&&"dividers"]},aE,t)},dE=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Te(({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:{[`.${cE.root} + &`]:{paddingTop:0}}}]}))),Af=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=n,l={...n,dividers:i},c=uE(l);return h.jsx(dE,{className:ne(c.root,o),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(Af.propTypes={children:a.node,classes:a.object,className:a.string,dividers:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const fE=e=>{const{classes:t}=e;return Oe({root:["root"]},lE,t)},pE=Z(B,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),$f=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...s}=n,l=n,c=fE(l),{titleId:u=i}=C.useContext(Ea);return h.jsx(pE,{component:"h2",className:ne(c.root,o),ownerState:l,ref:r,variant:"h6",id:i??u,...s})});process.env.NODE_ENV!=="production"&&($f.propTypes={children:a.node,classes:a.object,className:a.string,id:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function hE(e){return Ee("MuiDivider",e)}const Rf=ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gE=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:s,textAlign:l,variant:c}=e;return Oe({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},hE,n)},mE=Z("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Te(({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%"}}}]}))),yE=Z("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Te(({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)`}}]}))),It=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:b="center",variant:y="fullWidth",...g}=n,f={...n,absolute:o,component:c,flexItem:u,light:d,orientation:l,role:p,textAlign:b,variant:y},m=gE(f);return h.jsx(mE,{as:c,className:ne(m.root,s),role:p,ref:r,ownerState:f,"aria-orientation":p==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:i?h.jsx(yE,{className:m.wrapper,ownerState:f,children:i}):null})});It&&(It.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(It.propTypes={absolute:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,flexItem:a.bool,light:a.bool,orientation:a.oneOf(["horizontal","vertical"]),role:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),textAlign:a.oneOf(["center","left","right"]),variant:a.oneOfType([a.oneOf(["fullWidth","inset","middle"]),a.string])});function bE(e){return Ee("MuiFormControlLabel",e)}const Tn=ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),vE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,s={root:["root",r&&"disabled",`labelPlacement${Q(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Oe(s,bE,t)},xE=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Tn.label}`]:t.label},t.root,t[`labelPlacement${Q(r.labelPlacement)}`]]}})(Te(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Tn.disabled}`]:{cursor:"default"},[`& .${Tn.label}`]:{[`&.${Tn.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}}]}))),wE=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Te(({theme:e})=>({[`&.${Tn.error}`]:{color:(e.vars||e).palette.error.main}}))),Pn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:b="end",name:y,onChange:g,required:f,slots:m={},slotProps:S={},value:O,...w}=n,v=ga(),x=c??l.props.disabled??v?.disabled,T=f??l.props.required,P={disabled:x,required:T};["checked","name","onChange","value","inputRef"].forEach(R=>{typeof l.props[R]>"u"&&typeof n[R]<"u"&&(P[R]=n[R])});const I=gf({props:n,muiFormControl:v,states:["error"]}),j={...n,disabled:x,labelPlacement:b,required:T,error:I.error},F=vE(j),W={slots:m,slotProps:{...s,...S}},[E,D]=Ce("typography",{elementType:B,externalForwardedProps:W,ownerState:j});let _=p;return _!=null&&_.type!==B&&!u&&(_=h.jsx(E,{component:"span",...D,className:ne(F.label,D?.className),children:_})),h.jsxs(xE,{className:ne(F.root,i),ownerState:j,ref:r,...w,children:[C.cloneElement(l,P),T?h.jsxs("div",{children:[_,h.jsxs(wE,{ownerState:j,"aria-hidden":!0,className:F.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Pn.propTypes={checked:a.bool,classes:a.object,className:a.string,componentsProps:a.shape({typography:a.object}),control:a.element.isRequired,disabled:a.bool,disableTypography:a.bool,inputRef:Pr,label:a.node,labelPlacement:a.oneOf(["bottom","end","start","top"]),name:a.string,onChange:a.func,required:a.bool,slotProps:a.shape({typography:a.oneOfType([a.func,a.object])}),slots:a.shape({typography:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});function Ca(e){return`scale(${e}, ${e**2})`}const SE={entering:{opacity:1,transform:Ca(1)},entered:{opacity:1,transform:"none"}},Oa=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gi=C.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:b,onExiting:y,style:g,timeout:f="auto",TransitionComponent:m=vt,...S}=t,O=Xd(),w=C.useRef(),v=at(),x=C.useRef(null),T=Qe(x,ci(i),r),P=R=>M=>{if(R){const X=x.current;M===void 0?R(X):R(X,M)}},I=P(d),j=P((R,M)=>{Jd(R);const{duration:X,delay:ee,easing:H}=oi({style:g,timeout:f,easing:s},{mode:"enter"});let $;f==="auto"?($=v.transitions.getAutoHeightDuration(R.clientHeight),w.current=$):$=X,R.style.transition=[v.transitions.create("opacity",{duration:$,delay:ee}),v.transitions.create("transform",{duration:Oa?$:$*.666,delay:ee,easing:H})].join(","),c&&c(R,M)}),F=P(u),W=P(y),E=P(R=>{const{duration:M,delay:X,easing:ee}=oi({style:g,timeout:f,easing:s},{mode:"exit"});let H;f==="auto"?(H=v.transitions.getAutoHeightDuration(R.clientHeight),w.current=H):H=M,R.style.transition=[v.transitions.create("opacity",{duration:H,delay:X}),v.transitions.create("transform",{duration:Oa?H:H*.666,delay:Oa?X:X||H*.333,easing:ee})].join(","),R.style.opacity=0,R.style.transform=Ca(.75),p&&p(R)}),D=P(b),_=R=>{f==="auto"&&O.start(w.current||0,R),n&&n(x.current,R)};return h.jsx(m,{appear:o,in:l,nodeRef:x,onEnter:j,onEntered:F,onEntering:I,onExit:E,onExited:D,onExiting:W,addEndListener:_,timeout:f==="auto"?null:f,...S,children:(R,{ownerState:M,...X})=>C.cloneElement(i,{style:{opacity:0,transform:Ca(.75),visibility:R==="exited"&&!l?"hidden":void 0,...SE[R],...g,...i.props.style},ref:T,...X})})});process.env.NODE_ENV!=="production"&&(gi.propTypes={addEndListener:a.func,appear:a.bool,children:En.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])}),gi&&(gi.muiSupportAuto=!0);const kn=C.createContext({});process.env.NODE_ENV!=="production"&&(kn.displayName="ListContext");function EE(e){return Ee("MuiList",e)}ve("MuiList",["root","padding","dense","subheader"]);const CE=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Oe({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},EE,t)},OE=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),Df=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=n,p=C.useMemo(()=>({dense:l}),[l]),b={...n,component:s,dense:l,disablePadding:c},y=CE(b);return h.jsx(kn.Provider,{value:p,children:h.jsxs(OE,{as:s,className:ne(y.root,i),ref:r,ownerState:b,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(Df.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disablePadding:a.bool,subheader:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const Mf=ve("MuiListItemIcon",["root","alignItemsFlexStart"]);function TE(e){return Ee("MuiListItemText",e)}const kr=ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),PE=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return Oe({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},TE,t)},kE=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${kr.primary}`]:t.primary},{[`& .${kr.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${df.root}:where(& .${kr.primary})`]:{display:"block"},[`.${df.root}:where(& .${kr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Nn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:b={},slotProps:y={},...g}=n,{dense:f}=C.useContext(kn);let m=c??o,S=d;const O={...n,disableTypography:s,inset:l,primary:!!m,secondary:!!S,dense:f},w=PE(O),v={slots:b,slotProps:{primary:u,secondary:p,...y}},[x,T]=Ce("root",{className:ne(w.root,i),elementType:kE,externalForwardedProps:{...v,...g},ownerState:O,ref:r}),[P,I]=Ce("primary",{className:w.primary,elementType:B,externalForwardedProps:v,ownerState:O}),[j,F]=Ce("secondary",{className:w.secondary,elementType:B,externalForwardedProps:v,ownerState:O});return m!=null&&m.type!==B&&!s&&(m=h.jsx(P,{variant:f?"body2":"body1",component:I?.variant?void 0:"span",...I,children:m})),S!=null&&S.type!==B&&!s&&(S=h.jsx(j,{variant:"body2",color:"textSecondary",...F,children:S})),h.jsxs(x,{...T,children:[m,S]})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:a.node,classes:a.object,className:a.string,disableTypography:a.bool,inset:a.bool,primary:a.node,primaryTypographyProps:a.object,secondary:a.node,secondaryTypographyProps:a.object,slotProps:a.shape({primary:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),secondary:a.oneOfType([a.func,a.object])}),slots:a.shape({primary:a.elementType,root:a.elementType,secondary:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Ta(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function jf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function zf(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function _n(e,t,r,n,o,i){let s=!1,l=o(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!zf(l,i)||c)l=o(e,l,r);else return l.focus(),!0}return!1}const Bf=C.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...b}=t,y=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Pt(()=>{o&&y.current.focus()},[o]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(w,{direction:v})=>{const x=!y.current.style.width;if(w.clientHeight<y.current.clientHeight&&x){const T=`${Tf(Nt(w))}px`;y.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=T,y.current.style.width=`calc(100% + ${T})`}return y.current}}),[]);const f=w=>{const v=y.current,x=w.key;if(w.ctrlKey||w.metaKey||w.altKey){d&&d(w);return}const P=On(bt(v));if(x==="ArrowDown")w.preventDefault(),_n(v,P,u,c,Ta);else if(x==="ArrowUp")w.preventDefault(),_n(v,P,u,c,jf);else if(x==="Home")w.preventDefault(),_n(v,null,u,c,Ta);else if(x==="End")w.preventDefault(),_n(v,null,u,c,jf);else if(x.length===1){const I=g.current,j=x.toLowerCase(),F=performance.now();I.keys.length>0&&(F-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&j!==I.keys[0]&&(I.repeating=!1)),I.lastTime=F,I.keys.push(j);const W=P&&!I.repeating&&zf(P,I);I.previousKeyMatched&&(W||_n(v,P,!1,c,Ta,I))?w.preventDefault():I.previousKeyMatched=!1}d&&d(w)},m=Qe(y,r);let S=-1;C.Children.forEach(s,(w,v)=>{if(!C.isValidElement(w)){S===v&&(S+=1,S>=s.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&Ud.isFragment(w)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
169
- `)),w.props.disabled||(p==="selectedMenu"&&w.props.selected||S===-1)&&(S=v),S===v&&(w.props.disabled||w.props.muiSkipListHighlight||w.type.muiSkipListHighlight)&&(S+=1,S>=s.length&&(S=-1))});const O=C.Children.map(s,(w,v)=>{if(v===S){const x={};return i&&(x.autoFocus=!0),w.props.tabIndex===void 0&&p==="selectedMenu"&&(x.tabIndex=0),C.cloneElement(w,x)}return w});return h.jsx(Df,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:o?0:-1,...b,children:O})});process.env.NODE_ENV!=="production"&&(Bf.propTypes={autoFocus:a.bool,autoFocusItem:a.bool,children:a.node,className:a.string,disabledItemsFocusable:a.bool,disableListWrap:a.bool,onKeyDown:a.func,variant:a.oneOf(["menu","selectedMenu"])});function NE(e){return Ee("MuiPopover",e)}ve("MuiPopover",["root","paper"]);function Ff(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Lf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Vf(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function In(e){return typeof e=="function"?e():e}const _E=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"]},NE,t)},IE=Z(wa,{name:"MuiPopover",slot:"Root"})({}),Wf=Z(si,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Uf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:b=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:m={},slotProps:S={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:w,transitionDuration:v="auto",TransitionProps:x={},disableScrollLock:T=!1,...P}=n,I=C.useRef(),j={...n,anchorOrigin:s,anchorReference:c,elevation:b,marginThreshold:y,transformOrigin:O,TransitionComponent:w,transitionDuration:v,TransitionProps:x},F=_E(j),W=C.useCallback(()=>{if(c==="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 U=In(i),re=U&&U.nodeType===1?U:bt(I.current).body,V=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const he=re.getBoundingClientRect();process.env.NODE_ENV!=="test"&&he.top===0&&he.left===0&&he.right===0&&he.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(`
170
- `))}return{top:V.top+Ff(V,s.vertical),left:V.left+Lf(V,s.horizontal)}},[i,s.horizontal,s.vertical,l,c]),E=C.useCallback(U=>({vertical:Ff(U,O.vertical),horizontal:Lf(U,O.horizontal)}),[O.horizontal,O.vertical]),D=C.useCallback(U=>{const re={width:U.offsetWidth,height:U.offsetHeight},V=E(re);if(c==="none")return{top:null,left:null,transformOrigin:Vf(V)};const he=W();let ce=he.top-V.vertical,Ne=he.left-V.horizontal;const Wt=ce+re.height,ut=Ne+re.width,qe=Nt(In(i)),At=qe.innerHeight-y,ir=qe.innerWidth-y;if(y!==null&&ce<y){const Ve=ce-y;ce-=Ve,V.vertical+=Ve}else if(y!==null&&Wt>At){const Ve=Wt-At;ce-=Ve,V.vertical+=Ve}if(process.env.NODE_ENV!=="production"&&re.height>At&&re.height&&At&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-At}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
- `)),y!==null&&Ne<y){const Ve=Ne-y;Ne-=Ve,V.horizontal+=Ve}else if(ut>ir){const Ve=ut-ir;Ne-=Ve,V.horizontal+=Ve}return{top:`${Math.round(ce)}px`,left:`${Math.round(Ne)}px`,transformOrigin:Vf(V)}},[i,c,W,E,y]),[_,R]=C.useState(g),M=C.useCallback(()=>{const U=I.current;if(!U)return;const re=D(U);re.top!==null&&U.style.setProperty("top",re.top),re.left!==null&&(U.style.left=re.left),U.style.transformOrigin=re.transformOrigin,R(!0)},[D]);C.useEffect(()=>(T&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[i,T,M]);const X=()=>{M()},ee=()=>{R(!1)};C.useEffect(()=>{g&&M()}),C.useImperativeHandle(o,()=>g?{updatePosition:()=>{M()}}:null,[g,M]),C.useEffect(()=>{if(!g)return;const U=zd(()=>{M()}),re=Nt(In(i));return re.addEventListener("resize",U),()=>{U.clear(),re.removeEventListener("resize",U)}},[i,g,M]);let H=v;const $={slots:{transition:w,...m},slotProps:{transition:x,paper:f,...S}},[L,q]=Ce("transition",{elementType:gi,externalForwardedProps:$,ownerState:j,getSlotProps:U=>({...U,onEntering:(re,V)=>{U.onEntering?.(re,V),X()},onExited:re=>{U.onExited?.(re),ee()}}),additionalProps:{appear:!0,in:g}});v==="auto"&&!L.muiSupportAuto&&(H=void 0);const J=p||(i?bt(In(i)).body:void 0),[K,{slots:Y,slotProps:G,...te}]=Ce("root",{ref:r,elementType:IE,externalForwardedProps:{...$,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Fd(typeof S.backdrop=="function"?S.backdrop(j):S.backdrop,{invisible:!0})},container:J,open:g},ownerState:j,className:ne(F.root,d)}),[oe,ie]=Ce("paper",{ref:I,className:F.paper,elementType:Wf,externalForwardedProps:$,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:_?void 0:{opacity:0}},ownerState:j});return h.jsx(K,{...te,...!ii(K)&&{slots:Y,slotProps:G,disableScrollLock:T},children:h.jsx(L,{...q,timeout:H,children:h.jsx(oe,{...ie,children:u})})})});process.env.NODE_ENV!=="production"&&(Uf.propTypes={action:Pr,anchorEl:er(a.oneOfType([Sn,a.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=In(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
159
+ `,_w=typeof fa!="string"?As`
160
+ animation: ${fa} 1.4s linear infinite;
161
+ `:null,Iw=typeof pa!="string"?As`
162
+ animation: ${pa} 1.4s ease-in-out infinite;
163
+ `:null,Aw=e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e,i={root:["root",r,`color${Q(n)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Q(r)}`,o&&"circleDisableShrink"]};return Oe(i,Nw,t)},$w=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Q(r.color)}`]]}})(Te(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:_w||{animation:`${fa} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Vt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Rw=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Dw=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Q(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(Te(({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:Iw||{animation:`${pa} 1.4s ease-in-out infinite`}}]}))),Mw=Z("circle",{name:"MuiCircularProgress",slot:"Track"})(Te(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ci=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:s=!1,enableTrackSlot:l=!1,size:c=40,style:u,thickness:d=3.6,value:p=0,variant:b="indeterminate",...y}=n,g={...n,color:i,disableShrink:s,size:c,thickness:d,value:p,variant:b,enableTrackSlot:l},f=Aw(g),m={},E={},O={};if(b==="determinate"){const S=2*Math.PI*((lt-d)/2);m.strokeDasharray=S.toFixed(3),O["aria-valuenow"]=Math.round(p),m.strokeDashoffset=`${((100-p)/100*S).toFixed(3)}px`,E.transform="rotate(-90deg)"}return h.jsx($w,{className:ne(f.root,o),style:{width:c,height:c,...E,...u},ownerState:g,ref:r,role:"progressbar",...O,...y,children:h.jsxs(Rw,{className:f.svg,ownerState:g,viewBox:`${lt/2} ${lt/2} ${lt} ${lt}`,children:[l?h.jsx(Mw,{className:f.track,ownerState:g,cx:lt,cy:lt,r:(lt-d)/2,fill:"none",strokeWidth:d,"aria-hidden":"true"}):null,h.jsx(Dw,{className:f.circle,style:m,ownerState:g,cx:lt,cy:lt,r:(lt-d)/2,fill:"none",strokeWidth:d})]})})});process.env.NODE_ENV!=="production"&&(ci.propTypes={classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","error","info","success","warning"]),a.string]),disableShrink:tr(a.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:a.bool,size:a.oneOfType([a.number,a.string]),style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),thickness:a.number,value:a.number,variant:a.oneOf(["determinate","indeterminate"])});function jw(e){return Ee("MuiIconButton",e)}const pf=ve("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),zw=e=>{const{classes:t,disabled:r,color:n,edge:o,size:i,loading:s}=e,l={root:["root",s&&"loading",r&&"disabled",n!=="default"&&`color${Q(n)}`,o&&`edge${Q(o)}`,`size${Q(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Oe(l,jw,t)},Bw=Z(Sn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.loading&&t.loading,r.color!=="default"&&t[`color${Q(r.color)}`],r.edge&&t[`edge${Q(r.edge)}`],t[`size${Q(r.size)}`]]}})(Te(({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}}]})),Te(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Vt()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Vt()).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)}}],[`&.${pf.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${pf.loading}`]:{color:"transparent"}}))),Lw=Z("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"}}]})),ha=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:s,color:l="default",disabled:c=!1,disableFocusRipple:u=!1,size:d="medium",id:p,loading:b=null,loadingIndicator:y,...g}=n,f=Gs(p),m=y??h.jsx(ci,{"aria-labelledby":f,color:"inherit",size:16}),E={...n,edge:o,color:l,disabled:c,disableFocusRipple:u,loading:b,loadingIndicator:m,size:d},O=zw(E);return h.jsxs(Bw,{id:b?f:p,className:ne(O.root,s),centerRipple:!0,focusRipple:!u,disabled:c||b,ref:r,...g,ownerState:E,children:[typeof b=="boolean"&&h.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:h.jsx(Lw,{className:O.loadingIndicator,ownerState:E,children:b&&m})}),i]})});process.env.NODE_ENV!=="production"&&(ha.propTypes={children:tr(a.node,e=>C.Children.toArray(e.children).some(r=>C.isValidElement(r)&&r.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:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),a.string]),disabled:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,edge:a.oneOf(["end","start",!1]),id:a.string,loading:a.bool,loadingIndicator:a.node,size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Fw(e){return Ee("MuiTypography",e)}const hf=ve("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),Vw={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Ww=Ux(),Uw=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:s}=e,l={root:["root",i,e.align!=="inherit"&&`align${Q(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return Oe(l,Fw,s)},Hw=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${Q(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(Te(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,r])=>t!=="inherit"&&r&&typeof r=="object").map(([t,r])=>({props:{variant:t},style:r})),...Object.entries(e.palette).filter(Vt()).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${Q(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}}]}))),gf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},B=C.forwardRef(function(t,r){const{color:n,...o}=Pe({props:t,name:"MuiTypography"}),i=!Vw[n],s=Ww({...o,...i&&{color:n}}),{align:l="inherit",className:c,component:u,gutterBottom:d=!1,noWrap:p=!1,paragraph:b=!1,variant:y="body1",variantMapping:g=gf,...f}=s,m={...s,align:l,color:n,className:c,component:u,gutterBottom:d,noWrap:p,paragraph:b,variant:y,variantMapping:g},E=u||(b?"p":g[y]||gf[y])||"span",O=Uw(m);return h.jsx(Hw,{as:E,ref:r,className:ne(O.root,c),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(B.propTypes={align:a.oneOf(["center","inherit","justify","left","right"]),children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),a.string]),component:a.elementType,gutterBottom:a.bool,noWrap:a.bool,paragraph:a.bool,style:a.object,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),a.string]),variantMapping:a.object});function En(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],s=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function qw(e){const{elementType:t,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=e,s=o?{}:rf(r,n),{props:l,internalRef:c}=sf({...i,externalSlotProps:s}),u=Qe(c,s?.ref,e.additionalProps?.ref);return tf(t,{...l,ref:u},n)}function ui(e){return parseInt(C.version,10)>=19?e?.props?.ref||null:e?.ref||null}function Yw(e){return typeof e=="function"?e():e}const di=C.forwardRef(function(t,r){const{children:n,container:o,disablePortal:i=!1}=t,[s,l]=C.useState(null),c=Qe(C.isValidElement(n)?ui(n):null,r);if(kt(()=>{i||l(Yw(o)||document.body)},[o,i]),kt(()=>{if(s&&!i)return Vd(r,s),()=>{Vd(r,null)}},[r,s,i]),i){if(C.isValidElement(n)){const u={ref:c};return C.cloneElement(n,u)}return n}return s&&lp.createPortal(n,s)});process.env.NODE_ENV!=="production"&&(di.propTypes={children:a.node,container:a.oneOfType([En,a.func]),disablePortal:a.bool}),process.env.NODE_ENV!=="production"&&(di.propTypes=wd(di.propTypes));function fi(e){return parseInt(e,10)||0}const Kw={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function Gw(e){for(const t in e)return!1;return!0}function mf(e){return Gw(e)||e.outerHeightStyle===0&&!e.overflowing}const yf=C.forwardRef(function(t,r){const{onChange:n,maxRows:o,minRows:i=1,style:s,value:l,...c}=t,{current:u}=C.useRef(l!=null),d=C.useRef(null),p=Qe(r,d),b=C.useRef(null),y=C.useRef(null),g=C.useCallback(()=>{const S=d.current,x=y.current;if(!S||!x)return;const T=_t(S).getComputedStyle(S);if(T.width==="0px")return{outerHeightStyle:0,overflowing:!1};x.style.width=T.width,x.value=S.value||t.placeholder||"x",x.value.slice(-1)===`
165
+ `&&(x.value+=" ");const P=T.boxSizing,I=fi(T.paddingBottom)+fi(T.paddingTop),j=fi(T.borderBottomWidth)+fi(T.borderTopWidth),L=x.scrollHeight;x.value="x";const W=x.scrollHeight;let v=L;i&&(v=Math.max(Number(i)*W,v)),o&&(v=Math.min(Number(o)*W,v)),v=Math.max(v,W);const A=v+(P==="border-box"?I+j:0),N=Math.abs(v-L)<=1;return{outerHeightStyle:A,overflowing:N}},[o,i,t.placeholder]),f=er(()=>{const S=d.current,x=g();if(!S||!x||mf(x))return!1;const w=x.outerHeightStyle;return b.current!=null&&b.current!==w}),m=C.useCallback(()=>{const S=d.current,x=g();if(!S||!x||mf(x))return;const w=x.outerHeightStyle;b.current!==w&&(b.current=w,S.style.height=`${w}px`),S.style.overflow=x.overflowing?"hidden":""},[g]),E=C.useRef(-1);kt(()=>{const S=Fd(m),x=d?.current;if(!x)return;const w=_t(x);w.addEventListener("resize",S);let T;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{f()&&(T.unobserve(x),cancelAnimationFrame(E.current),m(),E.current=requestAnimationFrame(()=>{T.observe(x)}))}),T.observe(x)),()=>{S.clear(),cancelAnimationFrame(E.current),w.removeEventListener("resize",S),T&&T.disconnect()}},[g,m,f]),kt(()=>{m()});const O=S=>{u||m();const x=S.target,w=x.value.length,T=x.value.endsWith(`
166
+ `),P=x.selectionStart===w;T&&P&&x.setSelectionRange(w,w),n&&n(S)};return h.jsxs(C.Fragment,{children:[h.jsx("textarea",{value:l,onChange:O,ref:p,rows:i,style:s,...c}),h.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:y,tabIndex:-1,style:{...Kw.shadow,...s,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(yf.propTypes={className:a.string,maxRows:a.oneOfType([a.number,a.string]),minRows:a.oneOfType([a.number,a.string]),onChange:a.func,placeholder:a.string,style:a.object,value:a.oneOfType([a.arrayOf(a.string),a.number,a.string])});function bf({props:e,states:t,muiFormControl:r}){return t.reduce((n,o)=>(n[o]=e[o],r&&typeof e[o]>"u"&&(n[o]=r[o]),n),{})}const ga=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(ga.displayName="FormControlContext");function ma(){return C.useContext(ga)}function vf(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xw(e,t=!1){return e&&(vf(e.value)&&e.value!==""||t&&vf(e.defaultValue)&&e.defaultValue!=="")}function Jw(e){return Ee("MuiInputBase",e)}const ya=ve("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var xf;const Qw=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Q(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Zw=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},eS=e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:s,formControl:l,fullWidth:c,hiddenLabel:u,multiline:d,readOnly:p,size:b,startAdornment:y,type:g}=e,f={root:["root",`color${Q(r)}`,n&&"disabled",o&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",b&&b!=="medium"&&`size${Q(b)}`,d&&"multiline",y&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",d&&"inputMultiline",b==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",y&&"inputAdornedStart",i&&"inputAdornedEnd",p&&"readOnly"]};return Oe(f,Jw,t)},tS=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qw})(Te(({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",[`&.${ya.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:r})=>t.multiline&&r==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),rS=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zw})(Te(({theme:e})=>{const t=e.palette.mode==="light",r={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},n={opacity:"0 !important"},o=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":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ya.formControl} &`]:{"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${ya.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),wf=Wx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Sf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:s,className:l,color:c,components:u={},componentsProps:d={},defaultValue:p,disabled:b,disableInjectingGlobalStyles:y,endAdornment:g,error:f,fullWidth:m=!1,id:E,inputComponent:O="input",inputProps:S={},inputRef:x,margin:w,maxRows:T,minRows:P,multiline:I=!1,name:j,onBlur:L,onChange:W,onClick:v,onFocus:A,onKeyDown:N,onKeyUp:D,placeholder:M,readOnly:X,renderSuffix:ee,rows:H,size:R,slotProps:F={},slots:q={},startAdornment:J,type:K="text",value:Y,...G}=n,te=S.value!=null?S.value:Y,{current:oe}=C.useRef(te!=null),ie=C.useRef(),U=C.useCallback(_e=>{process.env.NODE_ENV!=="production"&&_e&&_e.nodeName!=="INPUT"&&!_e.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(`
167
+ `))},[]),re=Qe(ie,x,S.ref,U),[V,he]=C.useState(!1),ce=ma();process.env.NODE_ENV!=="production"&&C.useEffect(()=>{if(ce)return ce.registerEffect()},[ce]);const Ne=bf({props:n,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ne.focused=ce?ce.focused:V,C.useEffect(()=>{!ce&&b&&V&&(he(!1),L&&L())},[ce,b,V,L]);const Ut=ce&&ce.onFilled,ut=ce&&ce.onEmpty,qe=C.useCallback(_e=>{Xw(_e)?Ut&&Ut():ut&&ut()},[Ut,ut]);kt(()=>{oe&&qe({value:te})},[te,qe,oe]);const $t=_e=>{A&&A(_e),S.onFocus&&S.onFocus(_e),ce&&ce.onFocus?ce.onFocus(_e):he(!0)},sr=_e=>{L&&L(_e),S.onBlur&&S.onBlur(_e),ce&&ce.onBlur?ce.onBlur(_e):he(!1)},Ve=(_e,...ip)=>{if(!oe){const sp=_e.target||ie.current;if(sp==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.":Tt(1));qe({value:sp.value})}S.onChange&&S.onChange(_e,...ip),W&&W(_e,...ip)};C.useEffect(()=>{qe(ie.current)},[]);const se=_e=>{ie.current&&_e.currentTarget===_e.target&&ie.current.focus(),v&&v(_e)};let Ka=O,Rt=S;I&&Ka==="input"&&(H?(process.env.NODE_ENV!=="production"&&(P||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Rt={type:void 0,minRows:H,maxRows:H,...Rt}):Rt={type:void 0,maxRows:T,minRows:P,...Rt},Ka=yf);const B1=_e=>{qe(_e.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};C.useEffect(()=>{ce&&ce.setAdornedStart(!!J)},[ce,J]);const Ga={...n,color:Ne.color||"primary",disabled:Ne.disabled,endAdornment:g,error:Ne.error,focused:Ne.focused,formControl:ce,fullWidth:m,hiddenLabel:Ne.hiddenLabel,multiline:I,size:Ne.size,startAdornment:J,type:K},rp=eS(Ga),np=q.root||u.Root||tS,Xa=F.root||d.root||{},op=q.input||u.Input||rS;return Rt={...Rt,...F.input??d.input},h.jsxs(C.Fragment,{children:[!y&&typeof wf=="function"&&(xf||(xf=h.jsx(wf,{}))),h.jsxs(np,{...Xa,ref:r,onClick:se,...G,...!si(np)&&{ownerState:{...Ga,...Xa.ownerState}},className:ne(rp.root,Xa.className,l,X&&"MuiInputBase-readOnly"),children:[J,h.jsx(ga.Provider,{value:null,children:h.jsx(op,{"aria-invalid":Ne.error,"aria-describedby":o,autoComplete:i,autoFocus:s,defaultValue:p,disabled:Ne.disabled,id:E,onAnimationStart:B1,name:j,placeholder:M,readOnly:X,required:Ne.required,rows:H,value:te,onKeyDown:N,onKeyUp:D,type:K,...Rt,...!si(op)&&{as:Ka,ownerState:{...Ga,...Rt.ownerState}},ref:re,className:ne(rp.input,Rt.className,X&&"MuiInputBase-readOnly"),onBlur:sr,onChange:Ve,onFocus:$t})}),g,ee?ee({...Ne,startAdornment:J}):null]})]})});process.env.NODE_ENV!=="production"&&(Sf.propTypes={"aria-describedby":a.string,autoComplete:a.string,autoFocus:a.bool,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","error","info","success","warning"]),a.string]),components:a.shape({Input:a.elementType,Root:a.elementType}),componentsProps:a.shape({input:a.object,root:a.object}),defaultValue:a.any,disabled:a.bool,disableInjectingGlobalStyles:a.bool,endAdornment:a.node,error:a.bool,fullWidth:a.bool,id:a.string,inputComponent:ca,inputProps:a.object,inputRef:kr,margin:a.oneOf(["dense","none"]),maxRows:a.oneOfType([a.number,a.string]),minRows:a.oneOfType([a.number,a.string]),multiline:a.bool,name:a.string,onBlur:a.func,onChange:a.func,onClick:a.func,onFocus:a.func,onInvalid:a.func,onKeyDown:a.func,onKeyUp:a.func,placeholder:a.string,readOnly:a.bool,renderSuffix:a.func,required:a.bool,rows:a.oneOfType([a.number,a.string]),size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.object,root:a.object}),slots:a.shape({input:a.elementType,root:a.elementType}),startAdornment:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.string,value:a.any});const nS=xn(h.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 oS(e){return Ee("MuiAvatar",e)}ve("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const iS=e=>{const{classes:t,variant:r,colorDefault:n}=e;return Oe({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},oS,t)},sS=Z("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(Te(({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]})}}}]}))),aS=Z("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),lS=Z(nS,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function cS({crossOrigin:e,referrerPolicy:t,src:r,srcSet:n}){const[o,i]=C.useState(!1);return C.useEffect(()=>{if(!r&&!n)return;i(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&i("loaded")},l.onerror=()=>{s&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=r,n&&(l.srcset=n),()=>{s=!1}},[e,t,r,n]),o}const Ef=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:s,component:l="div",slots:c={},slotProps:u={},imgProps:d,sizes:p,src:b,srcSet:y,variant:g="circular",...f}=n;let m=null;const E={...n,component:l,variant:g},O=cS({...d,...typeof u.img=="function"?u.img(E):u.img,src:b,srcSet:y}),S=b||y,x=S&&O!=="error";E.colorDefault=!x,delete E.ownerState;const w=iS(E),[T,P]=Ce("root",{ref:r,className:ne(w.root,s),elementType:sS,externalForwardedProps:{slots:c,slotProps:u,component:l,...f},ownerState:E}),[I,j]=Ce("img",{className:w.img,elementType:aS,externalForwardedProps:{slots:c,slotProps:{img:{...d,...u.img}}},additionalProps:{alt:o,src:b,srcSet:y,sizes:p},ownerState:E}),[L,W]=Ce("fallback",{className:w.fallback,elementType:lS,externalForwardedProps:{slots:c,slotProps:u},shouldForwardComponentProp:!0,ownerState:E});return x?m=h.jsx(I,{...j}):i||i===0?m=i:S&&o?m=o[0]:m=h.jsx(L,{...W}),h.jsx(T,{...P,children:m})});process.env.NODE_ENV!=="production"&&(Ef.propTypes={alt:a.string,children:a.node,classes:a.object,className:a.string,component:a.elementType,imgProps:a.object,sizes:a.string,slotProps:a.shape({fallback:a.oneOfType([a.func,a.object]),img:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({fallback:a.elementType,img:a.elementType,root:a.elementType}),src:a.string,srcSet:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),variant:a.oneOfType([a.oneOf(["circular","rounded","square"]),a.string])});function uS(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Cf(e,t,r,n,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let l;const c=i.type;return typeof c=="function"&&!uS(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${n} \`${s}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Cn=tr(a.element,Cf);Cn.isRequired=tr(a.element.isRequired,Cf);const dS={entering:{opacity:1},entered:{opacity:1}},pi=C.forwardRef(function(t,r){const n=at(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:s=!0,children:l,easing:c,in:u,onEnter:d,onEntered:p,onEntering:b,onExit:y,onExited:g,onExiting:f,style:m,timeout:E=o,TransitionComponent:O=xt,...S}=t,x=C.useRef(null),w=Qe(x,ui(l),r),T=N=>D=>{if(N){const M=x.current;D===void 0?N(M):N(M,D)}},P=T(b),I=T((N,D)=>{ef(N);const M=ii({style:m,timeout:E,easing:c},{mode:"enter"});N.style.webkitTransition=n.transitions.create("opacity",M),N.style.transition=n.transitions.create("opacity",M),d&&d(N,D)}),j=T(p),L=T(f),W=T(N=>{const D=ii({style:m,timeout:E,easing:c},{mode:"exit"});N.style.webkitTransition=n.transitions.create("opacity",D),N.style.transition=n.transitions.create("opacity",D),y&&y(N)}),v=T(g),A=N=>{i&&i(x.current,N)};return h.jsx(O,{appear:s,in:u,nodeRef:x,onEnter:I,onEntered:j,onEntering:P,onExit:W,onExited:v,onExiting:L,addEndListener:A,timeout:E,...S,children:(N,{ownerState:D,...M})=>C.cloneElement(l,{style:{opacity:0,visibility:N==="exited"&&!u?"hidden":void 0,...dS[N],...m,...l.props.style},ref:w,...M})})});process.env.NODE_ENV!=="production"&&(pi.propTypes={addEndListener:a.func,appear:a.bool,children:Cn.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});function fS(e){return Ee("MuiBackdrop",e)}ve("MuiBackdrop",["root","invisible"]);const pS=e=>{const{classes:t,invisible:r}=e;return Oe({root:["root",r&&"invisible"]},fS,t)},hS=Z("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.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"}}]}),ba=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:s="div",invisible:l=!1,open:c,components:u={},componentsProps:d={},slotProps:p={},slots:b={},TransitionComponent:y,transitionDuration:g,...f}=n,m={...n,component:s,invisible:l},E=pS(m),O={transition:y,root:u.Root,...b},S={...d,...p},x={component:s,slots:O,slotProps:S},[w,T]=Ce("root",{elementType:hS,externalForwardedProps:x,className:ne(E.root,i),ownerState:m}),[P,I]=Ce("transition",{elementType:pi,externalForwardedProps:x,ownerState:m});return h.jsx(P,{in:c,timeout:g,...f,...I,children:h.jsx(w,{"aria-hidden":!0,...T,classes:E,ref:r,children:o})})});process.env.NODE_ENV!=="production"&&(ba.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,components:a.shape({Root:a.elementType}),componentsProps:a.shape({root:a.object}),invisible:a.bool,open:a.bool.isRequired,slotProps:a.shape({root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])});const gS=ve("MuiBox",["root"]),mS=ra(),_=$v({themeId:on,defaultTheme:mS,defaultClassName:gS.root,generateClassName:ud.generate});process.env.NODE_ENV!=="production"&&(_.propTypes={children:a.node,component:a.elementType,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function yS(e){return Ee("MuiButton",e)}const ir=ve("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"]),Of=C.createContext({});process.env.NODE_ENV!=="production"&&(Of.displayName="ButtonGroupContext");const Tf=C.createContext(void 0);process.env.NODE_ENV!=="production"&&(Tf.displayName="ButtonGroupButtonContext");const bS=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,loading:s,loadingPosition:l,classes:c}=e,u={root:["root",s&&"loading",i,`${i}${Q(t)}`,`size${Q(o)}`,`${i}Size${Q(o)}`,`color${Q(t)}`,r&&"disableElevation",n&&"fullWidth",s&&`loadingPosition${Q(l)}`],startIcon:["icon","startIcon",`iconSize${Q(o)}`],endIcon:["icon","endIcon",`iconSize${Q(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},d=Oe(u,yS,c);return{...c,...d}},Pf=[{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}}}],vS=Z(Sn,{shouldForwardProp:e=>Or(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Q(r.color)}`],t[`size${Q(r.size)}`],t[`${r.variant}Size${Q(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,r.loading&&t.loading]}})(Te(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],r=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"},[`&.${ir.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]},[`&.${ir.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ir.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)",[`&.${ir.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(Vt()).map(([n])=>({props:{color:n},style:{"--variant-textColor":(e.vars||e).palette[n].main,"--variant-outlinedColor":(e.vars||e).palette[n].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[n].main,.5),"--variant-containedColor":(e.vars||e).palette[n].contrastText,"--variant-containedBg":(e.vars||e).palette[n].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[n].dark,"--variant-textBg":e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[n].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[n].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:r,"--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"},[`&.${ir.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ir.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}),[`&.${ir.loading}`]:{color:"transparent"}}}]}})),xS=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,r.loading&&t.startIconLoadingStart,t[`iconSize${Q(r.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}},...Pf]})),wS=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,r.loading&&t.endIconLoadingEnd,t[`iconSize${Q(r.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}},...Pf]})),SS=Z("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}}]})),kf=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Wt=C.forwardRef(function(t,r){const n=C.useContext(Of),o=C.useContext(Tf),i=yn(n,t),s=Pe({props:i,name:"MuiButton"}),{children:l,color:c="primary",component:u="button",className:d,disabled:p=!1,disableElevation:b=!1,disableFocusRipple:y=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:E,loading:O=null,loadingIndicator:S,loadingPosition:x="center",size:w="medium",startIcon:T,type:P,variant:I="text",...j}=s,L=Gs(E),W=S??h.jsx(ci,{"aria-labelledby":L,color:"inherit",size:16}),v={...s,color:c,component:u,disabled:p,disableElevation:b,disableFocusRipple:y,fullWidth:m,loading:O,loadingIndicator:W,loadingPosition:x,size:w,type:P,variant:I},A=bS(v),N=(T||O&&x==="start")&&h.jsx(xS,{className:A.startIcon,ownerState:v,children:T||h.jsx(kf,{className:A.loadingIconPlaceholder,ownerState:v})}),D=(g||O&&x==="end")&&h.jsx(wS,{className:A.endIcon,ownerState:v,children:g||h.jsx(kf,{className:A.loadingIconPlaceholder,ownerState:v})}),M=o||"",X=typeof O=="boolean"?h.jsx("span",{className:A.loadingWrapper,style:{display:"contents"},children:O&&h.jsx(SS,{className:A.loadingIndicator,ownerState:v,children:W})}):null;return h.jsxs(vS,{ownerState:v,className:ne(n.className,A.root,d,M),component:u,disabled:p||O,focusRipple:!y,focusVisibleClassName:ne(A.focusVisible,f),ref:r,type:P,id:O?L:E,...j,classes:A,children:[N,x!=="end"&&X,l,x==="end"&&X,D]})});process.env.NODE_ENV!=="production"&&(Wt.propTypes={children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["inherit","primary","secondary","success","error","info","warning"]),a.string]),component:a.elementType,disabled:a.bool,disableElevation:a.bool,disableFocusRipple:a.bool,disableRipple:a.bool,endIcon:a.node,focusVisibleClassName:a.string,fullWidth:a.bool,href:a.string,id:a.string,loading:a.bool,loadingIndicator:a.node,loadingPosition:a.oneOf(["center","end","start"]),size:a.oneOfType([a.oneOf(["small","medium","large"]),a.string]),startIcon:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),type:a.oneOfType([a.oneOf(["button","reset","submit"]),a.string]),variant:a.oneOfType([a.oneOf(["contained","outlined","text"]),a.string])});function ES(e){return Ee("PrivateSwitchBase",e)}ve("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const CS=e=>{const{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&`edge${Q(o)}`],input:["input"]};return Oe(i,ES,t)},OS=Z(Sn,{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}}]}),TS=Z("input",{name:"MuiSwitchBase",shouldForwardProp:Or})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),va=C.forwardRef(function(t,r){const{autoFocus:n,checked:o,checkedIcon:i,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:u=!1,icon:d,id:p,inputProps:b,inputRef:y,name:g,onBlur:f,onChange:m,onFocus:E,readOnly:O,required:S=!1,tabIndex:x,type:w,value:T,slots:P={},slotProps:I={},...j}=t,[L,W]=Kx({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),v=ma(),A=Y=>{E&&E(Y),v&&v.onFocus&&v.onFocus(Y)},N=Y=>{f&&f(Y),v&&v.onBlur&&v.onBlur(Y)},D=Y=>{if(Y.nativeEvent.defaultPrevented)return;const G=Y.target.checked;W(G),m&&m(Y,G)};let M=l;v&&typeof M>"u"&&(M=v.disabled);const X=w==="checkbox"||w==="radio",ee={...t,checked:L,disabled:M,disableFocusRipple:c,edge:u},H=CS(ee),R={slots:P,slotProps:{input:b,...I}},[F,q]=Ce("root",{ref:r,elementType:OS,className:H.root,shouldForwardComponentProp:!0,externalForwardedProps:{...R,component:"span",...j},getSlotProps:Y=>({...Y,onFocus:G=>{Y.onFocus?.(G),A(G)},onBlur:G=>{Y.onBlur?.(G),N(G)}}),ownerState:ee,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:M,role:void 0,tabIndex:null}}),[J,K]=Ce("input",{ref:y,elementType:TS,className:H.input,externalForwardedProps:R,getSlotProps:Y=>({...Y,onChange:G=>{Y.onChange?.(G),D(G)}}),ownerState:ee,additionalProps:{autoFocus:n,checked:o,defaultChecked:s,disabled:M,id:X?p:void 0,name:g,readOnly:O,required:S,tabIndex:x,type:w,...w==="checkbox"&&T===void 0?{}:{value:T}}});return h.jsxs(F,{...q,children:[h.jsx(J,{...K}),L?i:d]})});process.env.NODE_ENV!=="production"&&(va.propTypes={autoFocus:a.bool,checked:a.bool,checkedIcon:a.node.isRequired,classes:a.object,className:a.string,defaultChecked:a.bool,disabled:a.bool,disableFocusRipple:a.bool,edge:a.oneOf(["end","start",!1]),icon:a.node.isRequired,id:a.string,inputProps:a.object,inputRef:kr,name:a.string,onBlur:a.func,onChange:a.func,onFocus:a.func,readOnly:a.bool,required:a.bool,slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType}),sx:a.object,tabIndex:a.oneOfType([a.number,a.string]),type:a.string.isRequired,value:a.any});const PS=xn(h.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"),kS=xn(h.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"),NS=xn(h.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 _S(e){return Ee("MuiCheckbox",e)}const xa=ve("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),IS=e=>{const{classes:t,indeterminate:r,color:n,size:o}=e,i={root:["root",r&&"indeterminate",`color${Q(n)}`,`size${Q(o)}`]},s=Oe(i,_S,t);return{...t,...s}},AS=Z(va,{shouldForwardProp:e=>Or(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Q(r.size)}`],r.color!=="default"&&t[`color${Q(r.color)}`]]}})(Te(({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(Vt()).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(Vt()).map(([t])=>({props:{color:t},style:{[`&.${xa.checked}, &.${xa.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${xa.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),$S=h.jsx(kS,{}),RS=h.jsx(PS,{}),DS=h.jsx(NS,{}),ct=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiCheckbox"}),{checkedIcon:o=$S,color:i="primary",icon:s=RS,indeterminate:l=!1,indeterminateIcon:c=DS,inputProps:u,size:d="medium",disableRipple:p=!1,className:b,slots:y={},slotProps:g={},...f}=n,m=l?c:s,E=l?c:o,O={...n,disableRipple:p,color:i,indeterminate:l,size:d},S=IS(O),x=g.input??u,[w,T]=Ce("root",{ref:r,elementType:AS,className:ne(S.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:y,slotProps:g,...f},ownerState:O,additionalProps:{type:"checkbox",icon:C.cloneElement(m,{fontSize:m.props.fontSize??d}),checkedIcon:C.cloneElement(E,{fontSize:E.props.fontSize??d}),disableRipple:p,slots:y,slotProps:{input:Wd(typeof x=="function"?x(O):x,{"data-indeterminate":l})}}});return h.jsx(w,{...T,classes:S})});process.env.NODE_ENV!=="production"&&(ct.propTypes={checked:a.bool,checkedIcon:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["default","primary","secondary","error","info","success","warning"]),a.string]),defaultChecked:a.bool,disabled:a.bool,disableRipple:a.bool,icon:a.node,id:a.string,indeterminate:a.bool,indeterminateIcon:a.node,inputProps:a.object,onChange:a.func,required:a.bool,size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});function Nf(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function MS(e){const t=vt(e);return t.body===e?_t(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function On(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _f(e){return parseInt(_t(e).getComputedStyle(e).paddingRight,10)||0}function jS(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function If(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,s=>{const l=!i.includes(s),c=!jS(s);l&&c&&On(s,o)})}function wa(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function zS(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(MS(n)){const s=Nf(_t(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${_f(n)+s}px`;const l=vt(n).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${_f(c)+s}px`})}let i;if(n.parentNode instanceof DocumentFragment)i=vt(n).body;else{const s=n.parentElement,l=_t(n);i=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:n}r.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{r.forEach(({value:i,el:s,property:l})=>{i?s.style.setProperty(l,i):s.style.removeProperty(l)})}}function BS(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class LS{constructor(){this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&On(t.modalRef,!1);const o=BS(r);If(r,t.mount,t.modalRef,o,!0);const i=wa(this.containers,s=>s.container===r);return i!==-1?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=wa(this.containers,i=>i.modals.includes(t)),o=this.containers[n];o.restore||(o.restore=zS(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=wa(this.containers,s=>s.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&On(t.modalRef,r),If(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const s=i.modals[i.modals.length-1];s.modalRef&&On(s.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Tn(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const FS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VS(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 WS(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function US(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||WS(e))}function HS(e){const t=[],r=[];return Array.from(e.querySelectorAll(FS)).forEach((n,o)=>{const i=VS(n);i===-1||!US(n)||(i===0?t.push(n):r.push({documentOrder:o,tabIndex:i,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function qS(){return!0}function hi(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=HS,isEnabled:s=qS,open:l}=e,c=C.useRef(!1),u=C.useRef(null),d=C.useRef(null),p=C.useRef(null),b=C.useRef(null),y=C.useRef(!1),g=C.useRef(null),f=Qe(ui(t),g),m=C.useRef(null);C.useEffect(()=>{!l||!g.current||(y.current=!r)},[r,l]),C.useEffect(()=>{if(!l||!g.current)return;const S=vt(g.current),x=Tn(S);return g.current.contains(x)||(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(`
168
+ `)),g.current.setAttribute("tabIndex","-1")),y.current&&g.current.focus()),()=>{o||(p.current&&p.current.focus&&(c.current=!0,p.current.focus()),p.current=null)}},[l]),C.useEffect(()=>{if(!l||!g.current)return;const S=vt(g.current),x=Tn(S),w=I=>{m.current=I,!(n||!s()||I.key!=="Tab")&&x===g.current&&I.shiftKey&&(c.current=!0,d.current&&d.current.focus())},T=()=>{const I=g.current;if(I===null)return;const j=Tn(S);if(!S.hasFocus()||!s()||c.current){c.current=!1;return}if(I.contains(j)||n&&j!==u.current&&j!==d.current)return;if(j!==b.current)b.current=null;else if(b.current!==null)return;if(!y.current)return;let L=[];if((j===u.current||j===d.current)&&(L=i(g.current)),L.length>0){const W=!!(m.current?.shiftKey&&m.current?.key==="Tab"),v=L[0],A=L[L.length-1];typeof v!="string"&&typeof A!="string"&&(W?A.focus():v.focus())}else I.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",w,!0);const P=setInterval(()=>{const I=Tn(S);I&&I.tagName==="BODY"&&T()},50);return()=>{clearInterval(P),S.removeEventListener("focusin",T),S.removeEventListener("keydown",w,!0)}},[r,n,o,s,l,i]);const E=S=>{p.current===null&&(p.current=S.relatedTarget),y.current=!0,b.current=S.target;const x=t.props.onFocus;x&&x(S)},O=S=>{p.current===null&&(p.current=S.relatedTarget),y.current=!0};return h.jsxs(C.Fragment,{children:[h.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:u,"data-testid":"sentinelStart"}),C.cloneElement(t,{ref:f,onFocus:E}),h.jsx("div",{tabIndex:l?0:-1,onFocus:O,ref:d,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(hi.propTypes={children:Cn,disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableRestoreFocus:a.bool,getTabbable:a.func,isEnabled:a.func,open:a.bool.isRequired}),process.env.NODE_ENV!=="production"&&(hi.propTypes=wd(hi.propTypes));function YS(e){return typeof e=="function"?e():e}function KS(e){return e?e.props.hasOwnProperty("in"):!1}const Af=()=>{},gi=new LS;function GS(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=C.useRef({}),b=C.useRef(null),y=C.useRef(null),g=Qe(y,d),[f,m]=C.useState(!u),E=KS(l);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const S=()=>vt(b.current),x=()=>(p.current.modalRef=y.current,p.current.mount=b.current,p.current),w=()=>{gi.mount(x(),{disableScrollLock:n}),y.current&&(y.current.scrollTop=0)},T=er(()=>{const D=YS(t)||S().body;gi.add(x(),D),y.current&&w()}),P=()=>gi.isTopModal(x()),I=er(D=>{b.current=D,D&&(u&&P()?w():y.current&&On(y.current,O))}),j=C.useCallback(()=>{gi.remove(x(),O)},[O]);C.useEffect(()=>()=>{j()},[j]),C.useEffect(()=>{u?T():(!E||!o)&&j()},[u,j,E,o,T]);const L=D=>M=>{D.onKeyDown?.(M),!(M.key!=="Escape"||M.which===229||!P())&&(r||(M.stopPropagation(),c&&c(M,"escapeKeyDown")))},W=D=>M=>{D.onClick?.(M),M.target===M.currentTarget&&c&&c(M,"backdropClick")};return{getRootProps:(D={})=>{const M=nf(e);delete M.onTransitionEnter,delete M.onTransitionExited;const X={...M,...D};return{role:"presentation",...X,onKeyDown:L(X),ref:g}},getBackdropProps:(D={})=>{const M=D;return{"aria-hidden":!0,...M,onClick:W(M),open:u}},getTransitionProps:()=>{const D=()=>{m(!1),i&&i()},M=()=>{m(!0),s&&s(),o&&j()};return{onEnter:Bd(D,l?.props.onEnter??Af),onExited:Bd(M,l?.props.onExited??Af)}},rootRef:g,portalRef:I,isTopModal:P,exited:f,hasTransition:E}}function XS(e){return Ee("MuiModal",e)}ve("MuiModal",["root","hidden","backdrop"]);const JS=e=>{const{open:t,exited:r,classes:n}=e;return Oe({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},XS,n)},QS=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(Te(({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"}}]}))),ZS=Z(ba,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Sa=C.forwardRef(function(t,r){const n=Pe({name:"MuiModal",props:t}),{BackdropComponent:o=ZS,BackdropProps:i,classes:s,className:l,closeAfterTransition:c=!1,children:u,container:d,component:p,components:b={},componentsProps:y={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:E=!1,disableRestoreFocus:O=!1,disableScrollLock:S=!1,hideBackdrop:x=!1,keepMounted:w=!1,onClose:T,onTransitionEnter:P,onTransitionExited:I,open:j,slotProps:L={},slots:W={},theme:v,...A}=n,N={...n,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:E,disableRestoreFocus:O,disableScrollLock:S,hideBackdrop:x,keepMounted:w},{getRootProps:D,getBackdropProps:M,getTransitionProps:X,portalRef:ee,isTopModal:H,exited:R,hasTransition:F}=GS({...N,rootRef:r}),q={...N,exited:R},J=JS(q),K={};if(u.props.tabIndex===void 0&&(K.tabIndex="-1"),F){const{onEnter:U,onExited:re}=X();K.onEnter=U,K.onExited=re}const Y={slots:{root:b.Root,backdrop:b.Backdrop,...W},slotProps:{...y,...L}},[G,te]=Ce("root",{ref:r,elementType:QS,externalForwardedProps:{...Y,...A,component:p},getSlotProps:D,ownerState:q,className:ne(l,J?.root,!q.open&&q.exited&&J?.hidden)}),[oe,ie]=Ce("backdrop",{ref:i?.ref,elementType:o,externalForwardedProps:Y,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:U=>M({...U,onClick:re=>{U?.onClick&&U.onClick(re)}}),className:ne(i?.className,J?.backdrop),ownerState:q});return!w&&!j&&(!F||R)?null:h.jsx(di,{ref:ee,container:d,disablePortal:E,children:h.jsxs(G,{...te,children:[!x&&o?h.jsx(oe,{...ie}):null,h.jsx(hi,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:O,isEnabled:H,open:j,children:C.cloneElement(u,K)})]})})});process.env.NODE_ENV!=="production"&&(Sa.propTypes={BackdropComponent:a.elementType,BackdropProps:a.object,children:Cn.isRequired,classes:a.object,className:a.string,closeAfterTransition:a.bool,component:a.elementType,components:a.shape({Backdrop:a.elementType,Root:a.elementType}),componentsProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),container:a.oneOfType([En,a.func]),disableAutoFocus:a.bool,disableEnforceFocus:a.bool,disableEscapeKeyDown:a.bool,disablePortal:a.bool,disableRestoreFocus:a.bool,disableScrollLock:a.bool,hideBackdrop:a.bool,keepMounted:a.bool,onClose:a.func,onTransitionEnter:a.func,onTransitionExited:a.func,open:a.bool.isRequired,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,root:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function eE(e){return Ee("MuiDialog",e)}const Ea=ve("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ca=C.createContext({});process.env.NODE_ENV!=="production"&&(Ca.displayName="DialogContext");const tE=Z(ba,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),rE=e=>{const{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:i}=e,s={root:["root"],container:["container",`scroll${Q(r)}`],paper:["paper",`paperScroll${Q(r)}`,`paperWidth${Q(String(n))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Oe(s,eE,t)},nE=Z(Sa,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),oE=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.container,t[`scroll${Q(r.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"}}}]}),iE=Z(ai,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`scrollPaper${Q(r.scroll)}`],t[`paperWidth${Q(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(Te(({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)`,[`&.${Ea.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}`,[`&.${Ea.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,[`&.${Ea.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),$f=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialog"}),o=at(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:u,BackdropProps:d,children:p,className:b,disableEscapeKeyDown:y=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:E,onClose:O,open:S,PaperComponent:x=ai,PaperProps:w={},scroll:T="paper",slots:P={},slotProps:I={},TransitionComponent:j=pi,transitionDuration:L=i,TransitionProps:W,...v}=n,A={...n,disableEscapeKeyDown:y,fullScreen:g,fullWidth:f,maxWidth:m,scroll:T},N=rE(A),D=C.useRef(),M=he=>{D.current=he.target===he.currentTarget},X=he=>{E&&E(he),D.current&&(D.current=null,O&&O(he,"backdropClick"))},ee=Gs(l),H=C.useMemo(()=>({titleId:ee}),[ee]),R={transition:j,...P},F={transition:W,paper:w,backdrop:d,...I},q={slots:R,slotProps:F},[J,K]=Ce("root",{elementType:nE,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:A,className:ne(N.root,b),ref:r}),[Y,G]=Ce("backdrop",{elementType:tE,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:A}),[te,oe]=Ce("paper",{elementType:iE,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:A,className:ne(N.paper,w.className)}),[ie,U]=Ce("container",{elementType:oE,externalForwardedProps:q,ownerState:A,className:N.container}),[re,V]=Ce("transition",{elementType:pi,externalForwardedProps:q,ownerState:A,additionalProps:{appear:!0,in:S,timeout:L,role:"presentation"}});return h.jsx(J,{closeAfterTransition:!0,slots:{backdrop:Y},slotProps:{backdrop:{transitionDuration:L,as:u,...G}},disableEscapeKeyDown:y,onClose:O,open:S,onClick:X,...K,...v,children:h.jsx(re,{...V,children:h.jsx(ie,{onMouseDown:M,...U,children:h.jsx(te,{as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ee,"aria-modal":c,...oe,children:h.jsx(Ca.Provider,{value:H,children:p})})})})})});process.env.NODE_ENV!=="production"&&($f.propTypes={"aria-describedby":a.string,"aria-labelledby":a.string,"aria-modal":a.oneOfType([a.oneOf(["false","true"]),a.bool]),BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,disableEscapeKeyDown:a.bool,fullScreen:a.bool,fullWidth:a.bool,maxWidth:a.oneOfType([a.oneOf(["xs","sm","md","lg","xl",!1]),a.string]),onClick:a.func,onClose:a.func,open:a.bool.isRequired,PaperComponent:a.elementType,PaperProps:a.object,scroll:a.oneOf(["body","paper"]),slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),container:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,container:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function sE(e){return Ee("MuiDialogActions",e)}ve("MuiDialogActions",["root","spacing"]);const aE=e=>{const{classes:t,disableSpacing:r}=e;return Oe({root:["root",!r&&"spacing"]},sE,t)},lE=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.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}}}]}),Rf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...s}=n,l={...n,disableSpacing:i},c=aE(l);return h.jsx(lE,{className:ne(c.root,o),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(Rf.propTypes={children:a.node,classes:a.object,className:a.string,disableSpacing:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function cE(e){return Ee("MuiDialogContent",e)}ve("MuiDialogContent",["root","dividers"]);function uE(e){return Ee("MuiDialogTitle",e)}const dE=ve("MuiDialogTitle",["root"]),fE=e=>{const{classes:t,dividers:r}=e;return Oe({root:["root",r&&"dividers"]},cE,t)},pE=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(Te(({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:{[`.${dE.root} + &`]:{paddingTop:0}}}]}))),Df=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...s}=n,l={...n,dividers:i},c=fE(l);return h.jsx(pE,{className:ne(c.root,o),ownerState:l,ref:r,...s})});process.env.NODE_ENV!=="production"&&(Df.propTypes={children:a.node,classes:a.object,className:a.string,dividers:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const hE=e=>{const{classes:t}=e;return Oe({root:["root"]},uE,t)},gE=Z(B,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Mf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...s}=n,l=n,c=hE(l),{titleId:u=i}=C.useContext(Ca);return h.jsx(gE,{component:"h2",className:ne(c.root,o),ownerState:l,ref:r,variant:"h6",id:i??u,...s})});process.env.NODE_ENV!=="production"&&(Mf.propTypes={children:a.node,classes:a.object,className:a.string,id:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function mE(e){return Ee("MuiDivider",e)}const jf=ve("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),yE=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:s,textAlign:l,variant:c}=e;return Oe({root:["root",t&&"absolute",c,i&&"light",s==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},mE,n)},bE=Z("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(Te(({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%"}}}]}))),vE=Z("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(Te(({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)`}}]}))),At=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:s,orientation:l="horizontal",component:c=i||l==="vertical"?"div":"hr",flexItem:u=!1,light:d=!1,role:p=c!=="hr"?"separator":void 0,textAlign:b="center",variant:y="fullWidth",...g}=n,f={...n,absolute:o,component:c,flexItem:u,light:d,orientation:l,role:p,textAlign:b,variant:y},m=yE(f);return h.jsx(bE,{as:c,className:ne(m.root,s),role:p,ref:r,ownerState:f,"aria-orientation":p==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:i?h.jsx(vE,{className:m.wrapper,ownerState:f,children:i}):null})});At&&(At.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(At.propTypes={absolute:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,flexItem:a.bool,light:a.bool,orientation:a.oneOf(["horizontal","vertical"]),role:a.string,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),textAlign:a.oneOf(["center","left","right"]),variant:a.oneOfType([a.oneOf(["fullWidth","inset","middle"]),a.string])});function xE(e){return Ee("MuiFormControlLabel",e)}const Pn=ve("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),wE=e=>{const{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,s={root:["root",r&&"disabled",`labelPlacement${Q(n)}`,o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return Oe(s,xE,t)},SE=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Pn.label}`]:t.label},t.root,t[`labelPlacement${Q(r.labelPlacement)}`]]}})(Te(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pn.disabled}`]:{cursor:"default"},[`& .${Pn.label}`]:{[`&.${Pn.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}}]}))),EE=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Te(({theme:e})=>({[`&.${Pn.error}`]:{color:(e.vars||e).palette.error.main}}))),kn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:s={},control:l,disabled:c,disableTypography:u,inputRef:d,label:p,labelPlacement:b="end",name:y,onChange:g,required:f,slots:m={},slotProps:E={},value:O,...S}=n,x=ma(),w=c??l.props.disabled??x?.disabled,T=f??l.props.required,P={disabled:w,required:T};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof n[D]<"u"&&(P[D]=n[D])});const I=bf({props:n,muiFormControl:x,states:["error"]}),j={...n,disabled:w,labelPlacement:b,required:T,error:I.error},L=wE(j),W={slots:m,slotProps:{...s,...E}},[v,A]=Ce("typography",{elementType:B,externalForwardedProps:W,ownerState:j});let N=p;return N!=null&&N.type!==B&&!u&&(N=h.jsx(v,{component:"span",...A,className:ne(L.label,A?.className),children:N})),h.jsxs(SE,{className:ne(L.root,i),ownerState:j,ref:r,...S,children:[C.cloneElement(l,P),T?h.jsxs("div",{children:[N,h.jsxs(EE,{ownerState:j,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):N]})});process.env.NODE_ENV!=="production"&&(kn.propTypes={checked:a.bool,classes:a.object,className:a.string,componentsProps:a.shape({typography:a.object}),control:a.element.isRequired,disabled:a.bool,disableTypography:a.bool,inputRef:kr,label:a.node,labelPlacement:a.oneOf(["bottom","end","start","top"]),name:a.string,onChange:a.func,required:a.bool,slotProps:a.shape({typography:a.oneOfType([a.func,a.object])}),slots:a.shape({typography:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});function Oa(e){return`scale(${e}, ${e**2})`}const CE={entering:{opacity:1,transform:Oa(1)},entered:{opacity:1,transform:"none"}},Ta=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),mi=C.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:i,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:b,onExiting:y,style:g,timeout:f="auto",TransitionComponent:m=xt,...E}=t,O=Zd(),S=C.useRef(),x=at(),w=C.useRef(null),T=Qe(w,ui(i),r),P=D=>M=>{if(D){const X=w.current;M===void 0?D(X):D(X,M)}},I=P(d),j=P((D,M)=>{ef(D);const{duration:X,delay:ee,easing:H}=ii({style:g,timeout:f,easing:s},{mode:"enter"});let R;f==="auto"?(R=x.transitions.getAutoHeightDuration(D.clientHeight),S.current=R):R=X,D.style.transition=[x.transitions.create("opacity",{duration:R,delay:ee}),x.transitions.create("transform",{duration:Ta?R:R*.666,delay:ee,easing:H})].join(","),c&&c(D,M)}),L=P(u),W=P(y),v=P(D=>{const{duration:M,delay:X,easing:ee}=ii({style:g,timeout:f,easing:s},{mode:"exit"});let H;f==="auto"?(H=x.transitions.getAutoHeightDuration(D.clientHeight),S.current=H):H=M,D.style.transition=[x.transitions.create("opacity",{duration:H,delay:X}),x.transitions.create("transform",{duration:Ta?H:H*.666,delay:Ta?X:X||H*.333,easing:ee})].join(","),D.style.opacity=0,D.style.transform=Oa(.75),p&&p(D)}),A=P(b),N=D=>{f==="auto"&&O.start(S.current||0,D),n&&n(w.current,D)};return h.jsx(m,{appear:o,in:l,nodeRef:w,onEnter:j,onEntered:L,onEntering:I,onExit:v,onExited:A,onExiting:W,addEndListener:N,timeout:f==="auto"?null:f,...E,children:(D,{ownerState:M,...X})=>C.cloneElement(i,{style:{opacity:0,transform:Oa(.75),visibility:D==="exited"&&!l?"hidden":void 0,...CE[D],...g,...i.props.style},ref:T,...X})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={addEndListener:a.func,appear:a.bool,children:Cn.isRequired,easing:a.oneOfType([a.shape({enter:a.string,exit:a.string}),a.string]),in:a.bool,onEnter:a.func,onEntered:a.func,onEntering:a.func,onExit:a.func,onExited:a.func,onExiting:a.func,style:a.object,timeout:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})])}),mi&&(mi.muiSupportAuto=!0);const Nn=C.createContext({});process.env.NODE_ENV!=="production"&&(Nn.displayName="ListContext");function OE(e){return Ee("MuiList",e)}ve("MuiList",["root","padding","dense","subheader"]);const TE=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Oe({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},OE,t)},PE=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.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}}]}),zf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiList"}),{children:o,className:i,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:u,...d}=n,p=C.useMemo(()=>({dense:l}),[l]),b={...n,component:s,dense:l,disablePadding:c},y=TE(b);return h.jsx(Nn.Provider,{value:p,children:h.jsxs(PE,{as:s,className:ne(y.root,i),ref:r,ownerState:b,...d,children:[u,o]})})});process.env.NODE_ENV!=="production"&&(zf.propTypes={children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disablePadding:a.bool,subheader:a.node,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});const Bf=ve("MuiListItemIcon",["root","alignItemsFlexStart"]);function kE(e){return Ee("MuiListItemText",e)}const Nr=ve("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),NE=e=>{const{classes:t,inset:r,primary:n,secondary:o,dense:i}=e;return Oe({root:["root",r&&"inset",i&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},kE,t)},_E=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Nr.primary}`]:t.primary},{[`& .${Nr.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${hf.root}:where(& .${Nr.primary})`]:{display:"block"},[`.${hf.root}:where(& .${Nr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),_n=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:p,slots:b={},slotProps:y={},...g}=n,{dense:f}=C.useContext(Nn);let m=c??o,E=d;const O={...n,disableTypography:s,inset:l,primary:!!m,secondary:!!E,dense:f},S=NE(O),x={slots:b,slotProps:{primary:u,secondary:p,...y}},[w,T]=Ce("root",{className:ne(S.root,i),elementType:_E,externalForwardedProps:{...x,...g},ownerState:O,ref:r}),[P,I]=Ce("primary",{className:S.primary,elementType:B,externalForwardedProps:x,ownerState:O}),[j,L]=Ce("secondary",{className:S.secondary,elementType:B,externalForwardedProps:x,ownerState:O});return m!=null&&m.type!==B&&!s&&(m=h.jsx(P,{variant:f?"body2":"body1",component:I?.variant?void 0:"span",...I,children:m})),E!=null&&E.type!==B&&!s&&(E=h.jsx(j,{variant:"body2",color:"textSecondary",...L,children:E})),h.jsxs(w,{...T,children:[m,E]})});process.env.NODE_ENV!=="production"&&(_n.propTypes={children:a.node,classes:a.object,className:a.string,disableTypography:a.bool,inset:a.bool,primary:a.node,primaryTypographyProps:a.object,secondary:a.node,secondaryTypographyProps:a.object,slotProps:a.shape({primary:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),secondary:a.oneOfType([a.func,a.object])}),slots:a.shape({primary:a.elementType,root:a.elementType,secondary:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object])});function Pa(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Lf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Ff(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.startsWith(t.keys.join(""))}function In(e,t,r,n,o,i){let s=!1,l=o(e,t,t?r:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=n?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Ff(l,i)||c)l=o(e,l,r);else return l.focus(),!0}return!1}const Vf=C.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:d,variant:p="selectedMenu",...b}=t,y=C.useRef(null),g=C.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kt(()=>{o&&y.current.focus()},[o]),C.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,{direction:x})=>{const w=!y.current.style.width;if(S.clientHeight<y.current.clientHeight&&w){const T=`${Nf(_t(S))}px`;y.current.style[x==="rtl"?"paddingLeft":"paddingRight"]=T,y.current.style.width=`calc(100% + ${T})`}return y.current}}),[]);const f=S=>{const x=y.current,w=S.key;if(S.ctrlKey||S.metaKey||S.altKey){d&&d(S);return}const P=Tn(vt(x));if(w==="ArrowDown")S.preventDefault(),In(x,P,u,c,Pa);else if(w==="ArrowUp")S.preventDefault(),In(x,P,u,c,Lf);else if(w==="Home")S.preventDefault(),In(x,null,u,c,Pa);else if(w==="End")S.preventDefault(),In(x,null,u,c,Lf);else if(w.length===1){const I=g.current,j=w.toLowerCase(),L=performance.now();I.keys.length>0&&(L-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&j!==I.keys[0]&&(I.repeating=!1)),I.lastTime=L,I.keys.push(j);const W=P&&!I.repeating&&Ff(P,I);I.previousKeyMatched&&(W||In(x,P,!1,c,Pa,I))?S.preventDefault():I.previousKeyMatched=!1}d&&d(S)},m=Qe(y,r);let E=-1;C.Children.forEach(s,(S,x)=>{if(!C.isValidElement(S)){E===x&&(E+=1,E>=s.length&&(E=-1));return}process.env.NODE_ENV!=="production"&&Yd.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
169
+ `)),S.props.disabled||(p==="selectedMenu"&&S.props.selected||E===-1)&&(E=x),E===x&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(E+=1,E>=s.length&&(E=-1))});const O=C.Children.map(s,(S,x)=>{if(x===E){const w={};return i&&(w.autoFocus=!0),S.props.tabIndex===void 0&&p==="selectedMenu"&&(w.tabIndex=0),C.cloneElement(S,w)}return S});return h.jsx(zf,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:o?0:-1,...b,children:O})});process.env.NODE_ENV!=="production"&&(Vf.propTypes={autoFocus:a.bool,autoFocusItem:a.bool,children:a.node,className:a.string,disabledItemsFocusable:a.bool,disableListWrap:a.bool,onKeyDown:a.func,variant:a.oneOf(["menu","selectedMenu"])});function IE(e){return Ee("MuiPopover",e)}ve("MuiPopover",["root","paper"]);function Wf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function Uf(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function Hf(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function An(e){return typeof e=="function"?e():e}const AE=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"]},IE,t)},$E=Z(Sa,{name:"MuiPopover",slot:"Root"})({}),qf=Z(ai,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Yf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:u,className:d,container:p,elevation:b=8,marginThreshold:y=16,open:g,PaperProps:f={},slots:m={},slotProps:E={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:S,transitionDuration:x="auto",TransitionProps:w={},disableScrollLock:T=!1,...P}=n,I=C.useRef(),j={...n,anchorOrigin:s,anchorReference:c,elevation:b,marginThreshold:y,transformOrigin:O,TransitionComponent:S,transitionDuration:x,TransitionProps:w},L=AE(j),W=C.useCallback(()=>{if(c==="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 U=An(i),re=U&&U.nodeType===1?U:vt(I.current).body,V=re.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const he=re.getBoundingClientRect();process.env.NODE_ENV!=="test"&&he.top===0&&he.left===0&&he.right===0&&he.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(`
170
+ `))}return{top:V.top+Wf(V,s.vertical),left:V.left+Uf(V,s.horizontal)}},[i,s.horizontal,s.vertical,l,c]),v=C.useCallback(U=>({vertical:Wf(U,O.vertical),horizontal:Uf(U,O.horizontal)}),[O.horizontal,O.vertical]),A=C.useCallback(U=>{const re={width:U.offsetWidth,height:U.offsetHeight},V=v(re);if(c==="none")return{top:null,left:null,transformOrigin:Hf(V)};const he=W();let ce=he.top-V.vertical,Ne=he.left-V.horizontal;const Ut=ce+re.height,ut=Ne+re.width,qe=_t(An(i)),$t=qe.innerHeight-y,sr=qe.innerWidth-y;if(y!==null&&ce<y){const Ve=ce-y;ce-=Ve,V.vertical+=Ve}else if(y!==null&&Ut>$t){const Ve=Ut-$t;ce-=Ve,V.vertical+=Ve}if(process.env.NODE_ENV!=="production"&&re.height>$t&&re.height&&$t&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${re.height-$t}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
171
+ `)),y!==null&&Ne<y){const Ve=Ne-y;Ne-=Ve,V.horizontal+=Ve}else if(ut>sr){const Ve=ut-sr;Ne-=Ve,V.horizontal+=Ve}return{top:`${Math.round(ce)}px`,left:`${Math.round(Ne)}px`,transformOrigin:Hf(V)}},[i,c,W,v,y]),[N,D]=C.useState(g),M=C.useCallback(()=>{const U=I.current;if(!U)return;const re=A(U);re.top!==null&&U.style.setProperty("top",re.top),re.left!==null&&(U.style.left=re.left),U.style.transformOrigin=re.transformOrigin,D(!0)},[A]);C.useEffect(()=>(T&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[i,T,M]);const X=()=>{M()},ee=()=>{D(!1)};C.useEffect(()=>{g&&M()}),C.useImperativeHandle(o,()=>g?{updatePosition:()=>{M()}}:null,[g,M]),C.useEffect(()=>{if(!g)return;const U=Fd(()=>{M()}),re=_t(An(i));return re.addEventListener("resize",U),()=>{U.clear(),re.removeEventListener("resize",U)}},[i,g,M]);let H=x;const R={slots:{transition:S,...m},slotProps:{transition:w,paper:f,...E}},[F,q]=Ce("transition",{elementType:mi,externalForwardedProps:R,ownerState:j,getSlotProps:U=>({...U,onEntering:(re,V)=>{U.onEntering?.(re,V),X()},onExited:re=>{U.onExited?.(re),ee()}}),additionalProps:{appear:!0,in:g}});x==="auto"&&!F.muiSupportAuto&&(H=void 0);const J=p||(i?vt(An(i)).body:void 0),[K,{slots:Y,slotProps:G,...te}]=Ce("root",{ref:r,elementType:$E,externalForwardedProps:{...R,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Wd(typeof E.backdrop=="function"?E.backdrop(j):E.backdrop,{invisible:!0})},container:J,open:g},ownerState:j,className:ne(L.root,d)}),[oe,ie]=Ce("paper",{ref:I,className:L.paper,elementType:qf,externalForwardedProps:R,shouldForwardComponentProp:!0,additionalProps:{elevation:b,style:N?void 0:{opacity:0}},ownerState:j});return h.jsx(K,{...te,...!si(K)&&{slots:Y,slotProps:G,disableScrollLock:T},children:h.jsx(F,{...q,timeout:H,children:h.jsx(oe,{...ie,children:u})})})});process.env.NODE_ENV!=="production"&&(Yf.propTypes={action:kr,anchorEl:tr(a.oneOfType([En,a.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=An(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
172
172
  `))}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(`
173
- `))}return null}),anchorOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),anchorPosition:a.shape({left:a.number.isRequired,top:a.number.isRequired}),anchorReference:a.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,container:a.oneOfType([Sn,a.func]),disableScrollLock:a.bool,elevation:sf,marginThreshold:a.number,onClose:a.func,open:a.bool.isRequired,PaperProps:a.shape({component:la}),slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transformOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function AE(e){return Ee("MuiMenu",e)}ve("MuiMenu",["root","paper","list"]);const $E={vertical:"top",horizontal:"right"},RE={vertical:"top",horizontal:"left"},DE=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"],list:["list"]},AE,t)},ME=Z(Uf,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),jE=Z(Wf,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zE=Z(Bf,{name:"MuiMenu",slot:"List"})({outline:0}),Pa=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:b,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:S={},slotProps:O={},...w}=n,v=Jv(),x={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:f,variant:m},T=DE(x),P=o&&!l&&d,I=C.useRef(null),j=(H,$)=>{I.current&&I.current.adjustStyleForScrollbar(H,{direction:v?"rtl":"ltr"}),g&&g(H,$)},F=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let W=-1;C.Children.map(i,(H,$)=>{C.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Ud.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
- `)),H.props.disabled||(m==="selectedMenu"&&H.props.selected||W===-1)&&(W=$))});const E={slots:S,slotProps:{list:c,transition:f,paper:p,...O}},D=Uw({elementType:S.root,externalSlotProps:O.root,ownerState:x,className:[T.root,s]}),[_,R]=Ce("paper",{className:T.paper,elementType:jE,externalForwardedProps:E,shouldForwardComponentProp:!0,ownerState:x}),[M,X]=Ce("list",{className:ne(T.list,c.className),elementType:zE,shouldForwardComponentProp:!0,externalForwardedProps:E,getSlotProps:H=>({...H,onKeyDown:$=>{F($),H.onKeyDown?.($)}}),ownerState:x}),ee=typeof E.slotProps.transition=="function"?E.slotProps.transition(x):E.slotProps.transition;return h.jsx(ME,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?$E:RE,slots:{root:S.root,paper:_,backdrop:S.backdrop,...S.transition&&{transition:S.transition}},slotProps:{root:D,paper:R,backdrop:typeof O.backdrop=="function"?O.backdrop(x):O.backdrop,transition:{...ee,onEntering:(...H)=>{j(...H),ee?.onEntering?.(...H)}}},open:d,ref:r,transitionDuration:y,ownerState:x,...w,classes:b,children:h.jsx(M,{actions:I,autoFocus:o&&(W===-1||l),autoFocusItem:P,variant:m,...X,children:i})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={anchorEl:a.oneOfType([Sn,a.func]),autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,disableAutoFocusItem:a.bool,MenuListProps:a.object,onClose:a.func,open:a.bool.isRequired,PaperProps:a.object,PopoverClasses:a.object,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),list:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,list:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object,variant:a.oneOf(["menu","selectedMenu"])});function BE(e){return Ee("MuiMenuItem",e)}const An=ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),FE=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},LE=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,c=Oe({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},BE,s);return{...s,...c}},VE=Z(wn,{shouldForwardProp:e=>Cr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:FE})(Te(({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"}},[`&.${An.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${An.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${An.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)}},[`&.${An.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${An.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Rf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Rf.inset}`]:{marginLeft:52},[`& .${kr.root}`]:{marginTop:0,marginBottom:0},[`& .${kr.inset}`]:{paddingLeft:36},[`& .${Mf.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,[`& .${Mf.root} svg`]:{fontSize:"1.25rem"}}}]}))),$n=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:b,...y}=n,g=C.useContext(kn),f=C.useMemo(()=>({dense:s||g.dense||!1,disableGutters:c}),[g.dense,s,c]),m=C.useRef(null);Pt(()=>{o&&(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."))},[o]);const S={...n,dense:f.dense,divider:l,disableGutters:c},O=LE(n),w=Qe(m,r);let v;return n.disabled||(v=p!==void 0?p:-1),h.jsx(kn.Provider,{value:f,children:h.jsx(VE,{ref:w,role:d,tabIndex:v,component:i,focusVisibleClassName:ne(O.focusVisible,u),className:ne(O.root,b),...y,ownerState:S,classes:O})})});process.env.NODE_ENV!=="production"&&($n.propTypes={autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disabled:a.bool,disableGutters:a.bool,divider:a.bool,focusVisibleClassName:a.string,role:a.string,selected:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number});function WE(e){return Ee("MuiSwitch",e)}const Le=ve("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),UE=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:s}=e,l={root:["root",r&&`edge${Q(r)}`,`size${Q(n)}`],switchBase:["switchBase",`color${Q(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Oe(l,WE,t);return{...t,...c}},HE=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Q(r.edge)}`],t[`size${Q(r.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,[`& .${Le.thumb}`]:{width:16,height:16},[`& .${Le.switchBase}`]:{padding:4,[`&.${Le.checked}`]:{transform:"translateX(16px)"}}}}]}),qE=Z(ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Le.input}`]:t.input},r.color!=="default"&&t[`color${Q(r.color)}`]]}})(Te(({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}),[`&.${Le.checked}`]:{transform:"translateX(20px)"},[`&.${Le.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Le.checked} + .${Le.track}`]:{opacity:.5},[`&.${Le.disabled} + .${Le.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Le.input}`]:{left:"-100%",width:"300%"}})),Te(({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(Lt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Le.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"}},[`&.${Le.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)}`}},[`&.${Le.checked} + .${Le.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),YE=Z("span",{name:"MuiSwitch",slot:"Track"})(Te(({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}`}))),KE=Z("span",{name:"MuiSwitch",slot:"Thumb"})(Te(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Hf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...p}=n,b={...n,color:i,edge:s,size:l},y=UE(b),g={slots:u,slotProps:d},[f,m]=Ce("root",{className:ne(y.root,o),elementType:HE,externalForwardedProps:g,ownerState:b,additionalProps:{sx:c}}),[S,O]=Ce("thumb",{className:y.thumb,elementType:KE,externalForwardedProps:g,ownerState:b}),w=h.jsx(S,{...O}),[v,x]=Ce("track",{className:y.track,elementType:YE,externalForwardedProps:g,ownerState:b});return h.jsxs(f,{...m,children:[h.jsx(qE,{type:"checkbox",icon:w,checkedIcon:w,ref:r,ownerState:b,...p,classes:{...y,root:y.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(b):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(b):d.input}}}),h.jsx(v,{...x})]})});process.env.NODE_ENV!=="production"&&(Hf.propTypes={checked:a.bool,checkedIcon:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["default","primary","secondary","error","info","success","warning"]),a.string]),defaultChecked:a.bool,disabled:a.bool,disableRipple:a.bool,edge:a.oneOf(["end","start",!1]),icon:a.node,id:a.string,inputProps:a.object,inputRef:Pr,onChange:a.func,required:a.bool,size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),switchBase:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType,switchBase:a.elementType,thumb:a.elementType,track:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});const rt=gd({themeId:nn});function Nr(){return z.useMemo(()=>({topBar:{root:{bgcolor:"background.paper",py:1.5,px:2,borderBottom:1,borderColor:"divider"},headerRow:{display:"flex",justifyContent:"flex-end",alignItems:"right",mb:1.5},controlRow:{display:"flex",alignItems:"center",gap:1},storeDropdown:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333",fontWeight:500},filterBtn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333"},iconBtn:{minWidth:36,width:36,height:36,p:0,color:"#666","&:hover":{bgcolor:"#f5f5f5"}},rightIcons:{display:"flex",alignItems:"center",gap:1}},header:{container:{px:2,py:1.5},title:{fontSize:"18px",fontWeight:700,color:"#333",mb:1.5},statsScroll:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:140,bgcolor:"background.paper",border:1,borderColor:"#e8e8e8",borderRadius:2,p:1.5},statLabel:{fontSize:"12px",color:"#888",mb:.3,fontWeight:400},statValue:{fontSize:"28px",fontWeight:700,color:"#333",lineHeight:1.2,mb:.3},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",cursor:"pointer",ml:.5}},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1.5,bgcolor:"#fafafa"},productCount:{fontSize:"13px",fontWeight:400,color:"#666"},checkboxIcon:{display:"flex",alignItems:"center",justifyContent:"center"}},productCard:{root:{bgcolor:"background.paper",borderBottom:1,borderColor:"#f0f0f0",p:2,position:"relative"},offerBadge:{position:"absolute",top:12,right:12,color:"#454545",px:1,py:.3,borderRadius:.5,fontSize:"11px",fontWeight:500},contentRow:{display:"flex",alignItems:"flex-start",gap:1.5},checkbox:{p:0,mt:.5},image:{width:56,height:56,bgcolor:"#f8f8f8",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},details:{flex:1,minWidth:0,pr:10},name:{fontSize:"14px",fontWeight:600,color:"#333",textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:1.3,mb:.3},meta:{fontSize:"12px",color:"#888",mb:.2},sku:{fontSize:"11px",color:"#aaa",mb:.5},priceRow:{display:"flex",alignItems:"center",gap:.5},price:{fontSize:"14px",fontWeight:700,color:"#333"},originalPrice:{fontSize:"12px",color:"#999",textDecoration:"line-through"},discount:{fontSize:"11px",color:"#28a745",fontWeight:600}},floatingActions:{root:{position:"fixed",left:0,right:0,bottom:0,bgcolor:"#1a1a1a",color:"white",px:2,pt:1.5,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,zIndex:1200,borderRadius:"16px 16px 0 0"},countText:{fontSize:"15px",fontWeight:400,color:"#fff",textAlign:"center"},buttonRow:{display:"flex",gap:1.5,width:"100%"},btn:{flex:1,bgcolor:"#333",color:"white",fontSize:"14px",fontWeight:500,py:1.2,borderRadius:1.5,textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",gap:1,"&:hover":{bgcolor:"#444"}}},logo:{container:{display:"flex",alignItems:"center",gap:1},icon:{width:32,height:32,bgcolor:"#f97316",borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center"},iconText:{color:"white",fontSize:"14px",fontWeight:700},textContainer:{display:"flex",flexDirection:"column"},brandName:{fontSize:"16px",fontWeight:700,color:"#333",lineHeight:1.2},tagline:{fontSize:"10px",color:"#888",lineHeight:1}},headerIcons:{container:{display:"flex",alignItems:"center",gap:1.5},iconBtn:{position:"relative",color:"#333"},notificationDot:{position:"absolute",top:0,right:0,width:8,height:8,bgcolor:"#ef4444",borderRadius:"50%"},avatar:{width:32,height:32,bgcolor:"#3b82f6",fontSize:"13px",fontWeight:600}},emptyProduct:{wrapper:{position:"relative",mx:1,my:1},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"350px",bgcolor:"#fff",mx:0,py:6,px:2,borderRadius:2,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:2},sparkleContainer:{position:"absolute",top:-20,left:"50%",transform:"translateX(-50%)",width:40,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:16,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:70,height:55,border:"2px solid #5b9bd5",borderRadius:"6px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-2,left:"50%",transform:"translateX(-50%)",width:28,height:18,bgcolor:"#fff",borderBottomLeftRadius:14,borderBottomRightRadius:14,borderLeft:"2px solid #5b9bd5",borderRight:"2px solid #5b9bd5",borderBottom:"2px solid #5b9bd5"},title:{fontSize:"14px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"12px",color:"#888",mb:1},actionLink:{fontSize:"12px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}}}),[])}function Rn(){return z.useMemo(()=>({topBar:{root:{bgcolor:"background.paper",py:1.5,px:3,borderBottom:1,borderColor:"divider"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:240},searchInput:{fontSize:"14px",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:1.5},btn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"13px",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},iconOnly:{minWidth:36,width:36,height:36,p:0,color:"#555",borderRadius:1,"&:hover":{bgcolor:"#f3f4f6",color:"#111"}}},header:{container:{display:"flex",flexDirection:"row",gap:2,my:1,px:3,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:180,bgcolor:"background.paper",borderRadius:2,p:2,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.04)"},statLabel:{fontSize:"12px",color:"#888",mb:.5},statValue:{fontSize:"26px",fontWeight:700,color:"#333",mb:.5},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",display:"block",mt:.5}},productCard:{root:{borderBottom:1,borderColor:"divider",p:2,mx:2,bgcolor:"background.paper",transition:"all 0.2s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"}},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},image:{width:56,height:56,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",overflow:"hidden",flexShrink:0},name:{fontSize:"13px",fontWeight:600,color:"#454545",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{px:2,py:.4,borderRadius:.5,fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(200px, 1fr) 90px 120px 100px 140px",gap:1.5,alignItems:"center",px:2},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(280px, 1fr) 100px 150px",gap:2,alignItems:"center",px:2},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:1.5,bgcolor:"#f9fafb",borderBottom:1,borderColor:"divider"},productCount:{fontSize:"14px",color:"#666"},gridHeader:{display:"grid",bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"13px",color:"#6b7280"}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:24,zIndex:1200},inner:{bgcolor:"#111",color:"white",px:3,py:1.5,borderRadius:2,display:"flex",alignItems:"center",gap:2,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.3)"},count:{fontWeight:600,fontSize:"15px",whiteSpace:"nowrap"},divider:{width:1,height:28,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2.5,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}}},table:{container:{mx:2,borderRadius:2,border:1,borderColor:"divider",overflow:"hidden"},cell:{fontSize:"13px",py:1.5,px:1.5},headerCell:{fontSize:"12px",fontWeight:600,color:"#6b7280",py:1.5,px:1.5,bgcolor:"#f9fafb"}},modal:{dialog:{borderRadius:2,maxWidth:520,mx:3},content:{p:3}}}),[])}const qf=({product:e,isSelected:t,onToggle:r,styles:n,showLimitedColumns:o})=>{const i=at(),s=rt(i.breakpoints.down("sm")),l=rt(i.breakpoints.between("sm","md")),c=Nr(),u=Rn(),d=s?c:l?u:n,p=e.price??0,b=e.percentageOff??0;let y=p;p>0&&b>0&&(y=Math.round(p*(1-b/100)));const g=e.inshelff??e.onShelf??e.quantity??0,f=e.stock??e.totalStock??e.maxStock??0,m=f>0?Math.round(g/f*100):0,O=(w=>w?w.startsWith("http")?w:`${iu()}${w}`:null)(e.productImage||e.image);return!n||!n.productCard?null:s?h.jsxs(N,{sx:{...d.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[e.offer&&h.jsx(N,{sx:d.productCard.offerBadge,children:e.offer}),h.jsxs(N,{sx:d.productCard.contentRow,children:[h.jsx(ct,{checked:t||!1,onChange:r,size:"small",sx:d.productCard.checkbox}),h.jsx(N,{sx:d.productCard.image,children:O?h.jsx(N,{component:"img",src:O,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):h.jsx("span",{style:{fontSize:"24px"},children:"📷"})}),h.jsxs(N,{sx:d.productCard.details,children:[h.jsx(B,{component:cr,to:`/product/${e.id}`,sx:d.productCard.name,children:e.name}),h.jsx(B,{sx:d.productCard.meta,children:e.productWeight||"43g"}),h.jsxs(B,{sx:d.productCard.sku,children:["SKU: ",e.sku||"234987"]}),h.jsxs(N,{sx:d.productCard.priceRow,children:[h.jsxs(B,{sx:d.productCard.price,children:["₹",y]}),b>0&&h.jsxs(h.Fragment,{children:[h.jsxs(B,{sx:d.productCard.originalPrice,children:["₹",p]}),h.jsxs(B,{sx:d.productCard.discount,children:[b,"% OFF"]})]})]})]})]})]}):h.jsxs(N,{sx:{...n.productCard.root,...o?n.gridSystemLimited:n.gridSystem,bgcolor:t?"#f0f9ff":"background.paper"},children:[h.jsx(ct,{checked:t||!1,onChange:r,size:"small",sx:{p:.5}}),h.jsxs(N,{sx:n.productCard.content,children:[" ",h.jsx(N,{sx:n.productCard.image,children:O?h.jsx(N,{component:"img",src:O,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):h.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),h.jsxs(N,{sx:{flex:1,minWidth:0},children:[h.jsx(B,{component:cr,to:`/product/${e.id}`,sx:{...n.productCard.name,textDecoration:"none",display:"block"},children:e.name}),h.jsxs(B,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),h.jsx(B,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),h.jsx(N,{children:h.jsx(N,{sx:{...n.productCard.badge,...e.status===!0||e.status==="Active"?n.productCard.badge.active:n.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),!o&&h.jsx(N,{children:b>0?h.jsxs(h.Fragment,{children:[h.jsxs(B,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",y]}),h.jsxs(B,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",p]}),h.jsxs(B,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[b,"% OFF"]})]}):h.jsxs(B,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",p]})}),h.jsxs(N,{children:[h.jsxs(N,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[h.jsx(B,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),h.jsxs(B,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",f.toLocaleString()]})]}),h.jsxs(N,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[h.jsxs(B,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[m,"%"]}),h.jsx(B,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),!o&&h.jsx(N,{children:h.jsx(B,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]})};function ka(){return{theme:z.useMemo(()=>ta({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",py:1.5,borderBottom:1,borderColor:"divider"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},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},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:1,color:"primary.main",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,color:"#555",borderRadius:1,"&:hover":{bgcolor:"#f3f4f6",color:"#111"}},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)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"},width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"80%",px:2.5,py:.5,mr:8,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:2,my:2},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:10,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"}}}}}function Yf(){const e=at(),t=rt(e.breakpoints.down("sm")),r=Pi(),n=ka(),o=Nr(),i=t?o.emptyProduct:n.emptyProduct,s=l=>{l.preventDefault(),r("/settings")};return h.jsx(N,{sx:i.wrapper,children:h.jsxs(N,{sx:i.card,children:[h.jsxs(N,{sx:i.iconContainer,children:[h.jsxs(N,{sx:i.sparkleContainer,children:[h.jsx(N,{sx:i.sparkleLeft}),h.jsx(N,{sx:i.sparkleCenter}),h.jsx(N,{sx:i.sparkleRight})]}),h.jsx(N,{sx:i.inboxIcon,children:h.jsx(N,{sx:i.notch})})]}),h.jsx(B,{sx:i.title,children:"No Products"}),h.jsx(B,{sx:i.subtitle,children:"Start by setting up sync"}),h.jsx(B,{component:"a",href:"#",sx:i.actionLink,onClick:s,children:"Start Syncing Products"})]})})}const GE=({products:e,loading:t,selectedProducts:r,onToggleProduct:n,styles:o,onHeaderToggle:i,showLimitedColumns:s})=>{const l=at(),c=rt(l.breakpoints.down("sm")),u=rt(l.breakpoints.between("sm","md")),d=Nr(),p=Rn(),b=c?d:u?p:o;return!o||!o.listHeader?null:t?h.jsxs(N,{sx:{display:"flex",justifyContent:"center",p:4,bgcolor:"background.paper",borderRadius:2},children:[h.jsx(li,{}),h.jsx(B,{sx:{ml:2,color:"text.secondary"},children:"Loading products..."})]}):e.length===0?h.jsx(Yf,{}):c?h.jsxs(N,{children:[h.jsxs(N,{sx:b.listHeader.root,children:[h.jsx(N,{sx:b.listHeader.checkboxIcon,children:Array.isArray(r)&&r.length>0?h.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),h.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):h.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#ccc",strokeWidth:"2"})})}),h.jsxs(B,{sx:b.listHeader.productCount,children:[e.length," Products"]})]}),h.jsx(N,{sx:{display:"flex",flexDirection:"column"},children:e.map(y=>h.jsx(qf,{product:y,isSelected:r?.includes(y.id),onToggle:()=>n(y.id),styles:o,showLimitedColumns:s},y.id))})]}):h.jsxs(N,{children:[h.jsxs(N,{sx:{...o.listHeader.root,...s?o.gridSystemLimited:o.gridSystem},children:[h.jsx(N,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?h.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),h.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):h.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:i?"pointer":"default"},onClick:y=>{y.stopPropagation()},onMouseDown:y=>{y.preventDefault()},children:[h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),h.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[h.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),h.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!s&&h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!s&&h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),h.jsx(N,{sx:{display:"flex",flexDirection:"column"},children:e.map(y=>h.jsx(qf,{product:y,isSelected:r?.includes(y.id),onToggle:()=>n(y.id),styles:o,showLimitedColumns:s},y.id))})]})};function Na(){return Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function XE(e,t){if(e==null)return{};var r=JE(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JE(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var mi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=XE(e,["color","size"]);return z.createElement("svg",Na({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),z.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),z.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),z.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});mi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},mi.displayName="AlignLeft";function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_a.apply(this,arguments)}function QE(e,t){if(e==null)return{};var r=ZE(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZE(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var yi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=QE(e,["color","size"]);return z.createElement("svg",_a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),z.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});yi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},yi.displayName="Bell";function Ia(){return Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ia.apply(this,arguments)}function e1(e,t){if(e==null)return{};var r=t1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Dn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=e1(e,["color","size"]);return z.createElement("svg",Ia({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"6 9 12 15 18 9"}))});Dn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Dn.displayName="ChevronDown";function Aa(){return Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Aa.apply(this,arguments)}function r1(e,t){if(e==null)return{};var r=n1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Mn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=r1(e,["color","size"]);return z.createElement("svg",Aa({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),z.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))});Mn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Mn.displayName="Link";function $a(){return $a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$a.apply(this,arguments)}function o1(e,t){if(e==null)return{};var r=i1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var bi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=o1(e,["color","size"]);return z.createElement("svg",$a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"12",cy:"12",r:"1"}),z.createElement("circle",{cx:"12",cy:"5",r:"1"}),z.createElement("circle",{cx:"12",cy:"19",r:"1"}))});bi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},bi.displayName="MoreVertical";function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(this,arguments)}function s1(e,t){if(e==null)return{};var r=a1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var jn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=s1(e,["color","size"]);return z.createElement("svg",Ra({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),z.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),z.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});jn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},jn.displayName="Printer";function Da(){return Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(this,arguments)}function l1(e,t){if(e==null)return{};var r=c1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var vi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=l1(e,["color","size"]);return z.createElement("svg",Da({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"23 4 23 10 17 10"}),z.createElement("polyline",{points:"1 20 1 14 7 14"}),z.createElement("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}))});vi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},vi.displayName="RefreshCw";function Ma(){return Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(this,arguments)}function u1(e,t){if(e==null)return{};var r=d1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var xi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=u1(e,["color","size"]);return z.createElement("svg",Ma({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"11",cy:"11",r:"8"}),z.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});xi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},xi.displayName="Search";function ja(){return ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ja.apply(this,arguments)}function f1(e,t){if(e==null)return{};var r=p1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var za=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=f1(e,["color","size"]);return z.createElement("svg",ja({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"12",cy:"12",r:"3"}),z.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"}))});za.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},za.displayName="Settings";function Ba(){return Ba=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ba.apply(this,arguments)}function h1(e,t){if(e==null)return{};var r=g1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Fa=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=h1(e,["color","size"]);return z.createElement("svg",Ba({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),z.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),z.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Fa.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Fa.displayName="ShoppingBag";function La(){return La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},La.apply(this,arguments)}function m1(e,t){if(e==null)return{};var r=y1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Va=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=m1(e,["color","size"]);return z.createElement("svg",La({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});Va.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Va.displayName="Star";function Wa(){return Wa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}function b1(e,t){if(e==null)return{};var r=v1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ua=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=b1(e,["color","size"]);return z.createElement("svg",Wa({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ua.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Ua.displayName="X";const x1=({filters:e,onFilterChange:t,styles:r,stores:n=[]})=>{const o=at(),i=rt(o.breakpoints.down("sm")),s=rt(o.breakpoints.between("sm","md")),l=Nr(),c=Rn(),u=i?l:s?c:r,d=v=>t({...e,search:v.target.value}),[p,b]=z.useState("OSA"),[y,g]=z.useState(null),f=!!y,m=Array.isArray(e.store)?e.store:["all"],S=v=>{g(v.currentTarget)},O=()=>{g(null)},w=v=>{let x;v==="all"?m.includes("all")?x=[]:x=["all"]:(m.includes(v)?x=m.filter(T=>T!==v&&T!=="all"):(x=m.filter(T=>T!=="all"),x.push(v)),x.length===0&&(x=["all"])),t({...e,store:x})};return!r||!r.topBar?null:i?h.jsxs(N,{sx:u.topBar.root,children:[h.jsx(N,{sx:u.topBar.headerRow,children:h.jsxs(N,{sx:u.headerIcons.container,children:[h.jsx(N,{component:"button",sx:{...u.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(xi,{size:20,color:"#333"})}),h.jsxs(N,{component:"button",sx:{...u.topBar.iconBtn,bgcolor:"transparent",border:"none",position:"relative"},children:[h.jsx(yi,{size:20,color:"#333"}),h.jsx(N,{sx:u.headerIcons.notificationDot})]}),h.jsx(xf,{sx:u.headerIcons.avatar,children:"U"})]})}),h.jsxs(N,{sx:u.topBar.controlRow,children:[h.jsxs(N,{sx:u.topBar.storeDropdown,onClick:S,children:[h.jsx(B,{sx:{fontSize:"13px",fontWeight:500},children:m.includes("all")?"All Stores":m.length===1?n.find(v=>v.id===m[0])?.name||"All Stores":`${m.length} stores`}),h.jsx(Dn,{size:14,color:"#666"})]}),h.jsxs(N,{sx:u.topBar.filterBtn,children:[h.jsx(B,{sx:{fontSize:"13px"},children:"Filter / Sort"}),h.jsx(mi,{size:14,color:"#666"})]}),h.jsx(N,{component:"button",sx:{...u.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(vi,{size:18,color:"#666"})}),h.jsx(N,{component:"button",sx:{...u.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(bi,{size:18,color:"#666"})})]}),h.jsxs(Pa,{anchorEl:y,open:f,onClose:O,PaperProps:{style:{minWidth:180}},children:[h.jsxs($n,{onClick:()=>w("all"),children:[h.jsx(ct,{checked:m.includes("all"),size:"small"}),h.jsx(Nn,{primary:"All Stores"})]}),h.jsx(It,{}),n.filter(v=>v.id!=="all").map(v=>h.jsxs($n,{onClick:()=>w(v.id),children:[h.jsx(ct,{checked:m.includes(v.id),size:"small"}),h.jsx(Nn,{primary:v.name})]},v.id))]})]}):h.jsx(N,{sx:r.topBar.root,children:h.jsxs(N,{sx:r.topBar.inner,children:[h.jsxs(N,{sx:r.topBar.searchBox,children:[h.jsx(xi,{size:18,style:{position:"absolute",left:0,color:"#888"}}),h.jsx(vf,{placeholder:"Search Products",value:e.search,onChange:d,sx:{...r.topBar.searchInput,pl:3.5}})]}),h.jsxs(N,{sx:r.topBar.controlGroup,children:[h.jsxs(N,{sx:{display:"flex",gap:1},children:[h.jsxs(N,{sx:r.topBar.btn,onClick:S,style:{cursor:"pointer"},children:[h.jsx(Fa,{size:18,style:{color:"#555"}}),h.jsx(B,{variant:"body2",fontWeight:600,color:"text.primary",children:m.includes("all")?"All Stores":m.length===1?n.find(v=>v.id===m[0])?.name||"All Stores":`${m.length} stores`}),h.jsxs(B,{variant:"caption",color:"text.secondary",sx:{display:{xs:"none",lg:"block"},mx:.5},children:[n.length-1," stores"]}),h.jsx(Dn,{size:14,color:"#888"})]}),h.jsxs(Pa,{anchorEl:y,open:f,onClose:O,PaperProps:{style:{minWidth:180}},children:[h.jsxs($n,{onClick:()=>w("all"),children:[h.jsx(ct,{checked:m.includes("all")}),h.jsx(Nn,{primary:"All Stores"})]}),h.jsx(It,{}),n.filter(v=>v.id!=="all").map(v=>h.jsxs($n,{onClick:()=>w(v.id),children:[h.jsx(ct,{checked:m.includes(v.id)}),h.jsx(Nn,{primary:v.name})]},v.id))]}),h.jsxs(N,{sx:r.topBar.btn,children:[h.jsx(B,{variant:"body2",children:"Filter"}),h.jsx(Dn,{size:14,color:"#888"})]}),h.jsxs(N,{sx:r.topBar.btn,children:[h.jsx(B,{variant:"body2",children:"Sort"}),h.jsx(mi,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),h.jsx(It,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(N,{sx:{display:"flex",gap:1.5},children:[h.jsx(N,{component:"button",onClick:()=>b("OSA"),sx:{...r.topBar.viewSwitch.opt,...p==="OSA"&&r.topBar.viewSwitch.active},children:"OSA"}),h.jsx(N,{component:"button",onClick:()=>b("Catalogs"),sx:{...r.topBar.viewSwitch.opt,...p==="Catalogs"&&r.topBar.viewSwitch.active},children:"Catalogs"})]}),h.jsx(It,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(N,{sx:{display:"flex",gap:1,alignItems:"center"},children:[h.jsx(N,{component:"button",sx:r.topBar.iconOnly,title:"Refresh",children:h.jsx(vi,{size:20})}),h.jsx(N,{component:"button",sx:r.topBar.iconOnly,title:"Settings",children:h.jsx(za,{size:20})}),h.jsx(N,{component:"button",sx:r.topBar.iconOnly,title:"More",children:h.jsx(bi,{size:20})})]}),h.jsx(It,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[h.jsx(N,{component:"button",sx:r.topBar.iconOnly,title:"Notifications",children:h.jsx(yi,{size:20})}),h.jsx(N,{component:"button",sx:r.topBar.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:h.jsx(Va,{size:20})})]})]})]})})},Kf=vn(h.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");const w1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),S1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Gf=e=>{const t=S1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Xf=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),E1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var C1={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 O1=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>z.createElement("svg",{ref:c,...C1,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Xf("lucide",o),...!i&&!E1(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,d])=>z.createElement(u,d)),...Array.isArray(i)?i:[i]]));const _r=(e,t)=>{const r=z.forwardRef(({className:n,...o},i)=>z.createElement(O1,{ref:i,iconNode:t,className:Xf(`lucide-${w1(Gf(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Gf(e),r};const T1=_r("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const P1=_r("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const Ha=_r("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Jf=_r("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const k1=_r("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 Qf=_r("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),N1=({products:e=[],styles:t})=>{const r=at(),n=rt(r.breakpoints.down("sm")),o=rt(r.breakpoints.between("sm","md")),i=Nr(),s=Rn(),l=n?i:o?s:t,c=m=>m.status===!0||m.status==="Active",u=()=>{if(!e.length)return null;const m=e.filter(S=>S.updatedAt).sort((S,O)=>new Date(O.updatedAt)-new Date(S.updatedAt))[0];return m?m.updatedAt:null},d=m=>{if(!m)return"Unknown";const S=new Date,O=new Date(m),w=Math.floor((S-O)/6e4);if(w<1)return"Just now";const v=Math.floor(w/1440),x=Math.floor(w%1440/60),T=w%60;let P="";return v>0&&(P+=`${v} days `),x>0&&(P+=`${x} hour `),T>0&&(P+=`${T} minutes `),P=P.trim(),P?`${P} ago`:"Just now"},p=z.useMemo(()=>e.length?e[0]:null,[e]),y=p?(m=>m?m.startsWith("http")?m:`${iu()}${m}`:null)(p.productImage||p.image):null,g=e.filter(c).length,f=u();return!t||!t.header?null:n?h.jsxs(N,{component:"header",sx:l.header.container,children:[h.jsx(B,{sx:l.header.title,children:"Christmas Super Sale 2025"}),h.jsxs(N,{sx:l.header.statsScroll,children:[h.jsxs(N,{sx:l.header.statCard,children:[h.jsx(B,{sx:l.header.statLabel,children:"Active Products"}),h.jsx(B,{sx:l.header.statValue,children:g}),h.jsxs(N,{sx:l.header.statMeta,children:[h.jsx(Kf,{sx:{color:"#27ae60",fontSize:14}}),h.jsxs(B,{sx:l.header.statMetaText,children:["Sync ",d(f)]})]})]}),h.jsx(N,{sx:l.header.statCard,children:h.jsx(B,{sx:l.header.statLabel,children:"Active Catalogs"})}),p&&h.jsxs(N,{sx:{...l.header.statCard,minWidth:180,display:"flex",flexDirection:"column",gap:.5},children:[h.jsx(B,{sx:l.header.statLabel,children:"Best Product"}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[y&&h.jsx(N,{component:"img",src:y,alt:p.name,sx:{width:48,height:48,objectFit:"cover",borderRadius:1,bgcolor:"#f5f5f5"}}),h.jsxs(N,{sx:{display:"flex",flexDirection:"column"},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333",lineHeight:1.3},children:p.name}),h.jsx(B,{sx:{fontSize:"12px",color:"rgba(0, 0, 0, 0.6)",fontWeight:500},children:"250 units"})]})]})]})]})]}):h.jsxs(N,{component:"header",sx:t.header.container,children:[h.jsxs(N,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Active Products"}),h.jsx(B,{sx:t.header.bigNumber,children:g}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[h.jsx(Kf,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),h.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),h.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:d(f)})]})]}),h.jsxs(N,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Active Catalogs"}),h.jsx(N,{sx:{display:"flex",alignItems:"center",gap:.5}})]}),h.jsxs(N,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Best Product"}),p?h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[y?h.jsx(N,{component:"img",src:y,alt:p.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):h.jsx(N,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),h.jsxs(N,{children:[h.jsx(B,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:p.name}),h.jsxs(B,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[p.quantity||p.stock," units",p.category?` · ${p.category}`:""]})]})]}):h.jsx(N,{sx:{display:"flex",alignItems:"center",mt:1},children:h.jsx(B,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]})},_1=({selectedProducts:e,selectedDesign:t,sheetSize:r,itemsToShow:n})=>{if(console.log("printPromoDesigns called with:",{selectedDesign:t,sheetSize:r,itemsToShow:n,productsCount:e.length,selectedProducts:e}),!e||e.length===0){alert("No products selected for printing");return}const o=window.open("","_blank","width=800,height=600");if(!o){alert("Please allow popups to print promo designs");return}const i={A2:{width:420,height:594,stickersPerSheet:4},A3:{width:297,height:420,stickersPerSheet:6},A4:{width:210,height:297,stickersPerSheet:1},A5:{width:148,height:210,stickersPerSheet:12},A7:{width:74,height:105,stickersPerSheet:24}},s=i[r]||i.A5,c=(()=>{const S=r==="A2"||r==="A3"?2:r==="A4"?1:r==="A5"?3:4,O=Math.ceil(s.stickersPerSheet/S);return{width:r==="A4"?s.width-20:s.width/S-5,height:r==="A4"?s.height-20:s.height/O-5,cols:S,rows:O}})(),u=(S,O=0)=>{const w=Number(S);return Number.isFinite(w)?w:O},y={design1:S=>{const O=S?.productName||S?.name||"Product",w=S?.originalPrice??S?.mrp??S?.price??0,v=S?.price??S?.discountPrice??0,x=u(w,0),T=u(v,0),P=x>T&&x>0?Math.round((x-T)/x*100):5,I=T;return`
173
+ `))}return null}),anchorOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),anchorPosition:a.shape({left:a.number.isRequired,top:a.number.isRequired}),anchorReference:a.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:a.elementType,BackdropProps:a.object,children:a.node,classes:a.object,className:a.string,container:a.oneOfType([En,a.func]),disableScrollLock:a.bool,elevation:cf,marginThreshold:a.number,onClose:a.func,open:a.bool.isRequired,PaperProps:a.shape({component:ca}),slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transformOrigin:a.shape({horizontal:a.oneOfType([a.oneOf(["center","left","right"]),a.number]).isRequired,vertical:a.oneOfType([a.oneOf(["bottom","center","top"]),a.number]).isRequired}),TransitionComponent:a.elementType,transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object});function RE(e){return Ee("MuiMenu",e)}ve("MuiMenu",["root","paper","list"]);const DE={vertical:"top",horizontal:"right"},ME={vertical:"top",horizontal:"left"},jE=e=>{const{classes:t}=e;return Oe({root:["root"],paper:["paper"],list:["list"]},RE,t)},zE=Z(Yf,{shouldForwardProp:e=>Or(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),BE=Z(qf,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),LE=Z(Vf,{name:"MuiMenu",slot:"List"})({outline:0}),ka=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:b,transitionDuration:y="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:E={},slotProps:O={},...S}=n,x=Zv(),w={...n,autoFocus:o,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:p,transitionDuration:y,TransitionProps:f,variant:m},T=jE(w),P=o&&!l&&d,I=C.useRef(null),j=(H,R)=>{I.current&&I.current.adjustStyleForScrollbar(H,{direction:x?"rtl":"ltr"}),g&&g(H,R)},L=H=>{H.key==="Tab"&&(H.preventDefault(),u&&u(H,"tabKeyDown"))};let W=-1;C.Children.map(i,(H,R)=>{C.isValidElement(H)&&(process.env.NODE_ENV!=="production"&&Yd.isFragment(H)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
+ `)),H.props.disabled||(m==="selectedMenu"&&H.props.selected||W===-1)&&(W=R))});const v={slots:E,slotProps:{list:c,transition:f,paper:p,...O}},A=qw({elementType:E.root,externalSlotProps:O.root,ownerState:w,className:[T.root,s]}),[N,D]=Ce("paper",{className:T.paper,elementType:BE,externalForwardedProps:v,shouldForwardComponentProp:!0,ownerState:w}),[M,X]=Ce("list",{className:ne(T.list,c.className),elementType:LE,shouldForwardComponentProp:!0,externalForwardedProps:v,getSlotProps:H=>({...H,onKeyDown:R=>{L(R),H.onKeyDown?.(R)}}),ownerState:w}),ee=typeof v.slotProps.transition=="function"?v.slotProps.transition(w):v.slotProps.transition;return h.jsx(zE,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?DE:ME,slots:{root:E.root,paper:N,backdrop:E.backdrop,...E.transition&&{transition:E.transition}},slotProps:{root:A,paper:D,backdrop:typeof O.backdrop=="function"?O.backdrop(w):O.backdrop,transition:{...ee,onEntering:(...H)=>{j(...H),ee?.onEntering?.(...H)}}},open:d,ref:r,transitionDuration:y,ownerState:w,...S,classes:b,children:h.jsx(M,{actions:I,autoFocus:o&&(W===-1||l),autoFocusItem:P,variant:m,...X,children:i})})});process.env.NODE_ENV!=="production"&&(ka.propTypes={anchorEl:a.oneOfType([En,a.func]),autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,disableAutoFocusItem:a.bool,MenuListProps:a.object,onClose:a.func,open:a.bool.isRequired,PaperProps:a.object,PopoverClasses:a.object,slotProps:a.shape({backdrop:a.oneOfType([a.func,a.object]),list:a.oneOfType([a.func,a.object]),paper:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),transition:a.oneOfType([a.func,a.object])}),slots:a.shape({backdrop:a.elementType,list:a.elementType,paper:a.elementType,root:a.elementType,transition:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),transitionDuration:a.oneOfType([a.oneOf(["auto"]),a.number,a.shape({appear:a.number,enter:a.number,exit:a.number})]),TransitionProps:a.object,variant:a.oneOf(["menu","selectedMenu"])});function FE(e){return Ee("MuiMenuItem",e)}const $n=ve("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VE=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},WE=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:s}=e,c=Oe({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},FE,s);return{...s,...c}},UE=Z(Sn,{shouldForwardProp:e=>Or(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:VE})(Te(({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"}},[`&.${$n.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${$n.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${$n.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)}},[`&.${$n.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$n.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jf.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jf.inset}`]:{marginLeft:52},[`& .${Nr.root}`]:{marginTop:0,marginBottom:0},[`& .${Nr.inset}`]:{paddingLeft:36},[`& .${Bf.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,[`& .${Bf.root} svg`]:{fontSize:"1.25rem"}}}]}))),Rn=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:p,className:b,...y}=n,g=C.useContext(Nn),f=C.useMemo(()=>({dense:s||g.dense||!1,disableGutters:c}),[g.dense,s,c]),m=C.useRef(null);kt(()=>{o&&(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."))},[o]);const E={...n,dense:f.dense,divider:l,disableGutters:c},O=WE(n),S=Qe(m,r);let x;return n.disabled||(x=p!==void 0?p:-1),h.jsx(Nn.Provider,{value:f,children:h.jsx(UE,{ref:S,role:d,tabIndex:x,component:i,focusVisibleClassName:ne(O.focusVisible,u),className:ne(O.root,b),...y,ownerState:E,classes:O})})});process.env.NODE_ENV!=="production"&&(Rn.propTypes={autoFocus:a.bool,children:a.node,classes:a.object,className:a.string,component:a.elementType,dense:a.bool,disabled:a.bool,disableGutters:a.bool,divider:a.bool,focusVisibleClassName:a.string,role:a.string,selected:a.bool,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number});function HE(e){return Ee("MuiSwitch",e)}const Fe=ve("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),qE=e=>{const{classes:t,edge:r,size:n,color:o,checked:i,disabled:s}=e,l={root:["root",r&&`edge${Q(r)}`,`size${Q(n)}`],switchBase:["switchBase",`color${Q(o)}`,i&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Oe(l,HE,t);return{...t,...c}},YE=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Q(r.edge)}`],t[`size${Q(r.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,[`& .${Fe.thumb}`]:{width:16,height:16},[`& .${Fe.switchBase}`]:{padding:4,[`&.${Fe.checked}`]:{transform:"translateX(16px)"}}}}]}),KE=Z(va,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Fe.input}`]:t.input},r.color!=="default"&&t[`color${Q(r.color)}`]]}})(Te(({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}),[`&.${Fe.checked}`]:{transform:"translateX(20px)"},[`&.${Fe.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Fe.checked} + .${Fe.track}`]:{opacity:.5},[`&.${Fe.disabled} + .${Fe.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Fe.input}`]:{left:"-100%",width:"300%"}})),Te(({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(Vt(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Fe.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"}},[`&.${Fe.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)}`}},[`&.${Fe.checked} + .${Fe.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),GE=Z("span",{name:"MuiSwitch",slot:"Track"})(Te(({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}`}))),XE=Z("span",{name:"MuiSwitch",slot:"Thumb"})(Te(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Kf=C.forwardRef(function(t,r){const n=Pe({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:s=!1,size:l="medium",sx:c,slots:u={},slotProps:d={},...p}=n,b={...n,color:i,edge:s,size:l},y=qE(b),g={slots:u,slotProps:d},[f,m]=Ce("root",{className:ne(y.root,o),elementType:YE,externalForwardedProps:g,ownerState:b,additionalProps:{sx:c}}),[E,O]=Ce("thumb",{className:y.thumb,elementType:XE,externalForwardedProps:g,ownerState:b}),S=h.jsx(E,{...O}),[x,w]=Ce("track",{className:y.track,elementType:GE,externalForwardedProps:g,ownerState:b});return h.jsxs(f,{...m,children:[h.jsx(KE,{type:"checkbox",icon:S,checkedIcon:S,ref:r,ownerState:b,...p,classes:{...y,root:y.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...d.switchBase&&{root:typeof d.switchBase=="function"?d.switchBase(b):d.switchBase},input:{role:"switch"},...d.input&&{input:typeof d.input=="function"?d.input(b):d.input}}}),h.jsx(x,{...w})]})});process.env.NODE_ENV!=="production"&&(Kf.propTypes={checked:a.bool,checkedIcon:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["default","primary","secondary","error","info","success","warning"]),a.string]),defaultChecked:a.bool,disabled:a.bool,disableRipple:a.bool,edge:a.oneOf(["end","start",!1]),icon:a.node,id:a.string,inputProps:a.object,inputRef:kr,onChange:a.func,required:a.bool,size:a.oneOfType([a.oneOf(["medium","small"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),switchBase:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object])}),slots:a.shape({input:a.elementType,root:a.elementType,switchBase:a.elementType,thumb:a.elementType,track:a.elementType}),sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),value:a.any});const rt=bd({themeId:on});function _r(){return z.useMemo(()=>({topBar:{root:{bgcolor:"background.paper",py:1.5,px:2,borderBottom:1,borderColor:"divider"},headerRow:{display:"flex",justifyContent:"flex-end",alignItems:"right",mb:1.5},controlRow:{display:"flex",alignItems:"center",gap:1},storeDropdown:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333",fontWeight:500},filterBtn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"#fff",border:1,borderColor:"#e0e0e0",borderRadius:1,px:1.5,py:.8,cursor:"pointer",fontSize:"13px",color:"#333"},iconBtn:{minWidth:36,width:36,height:36,p:0,color:"#666","&:hover":{bgcolor:"#f5f5f5"}},rightIcons:{display:"flex",alignItems:"center",gap:1}},header:{container:{px:2,py:1.5},title:{fontSize:"18px",fontWeight:700,color:"#333",mb:1.5},statsScroll:{display:"flex",gap:1.5,overflowX:"auto",pb:1,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:140,bgcolor:"background.paper",border:1,borderColor:"#e8e8e8",borderRadius:2,p:1.5},statLabel:{fontSize:"12px",color:"#888",mb:.3,fontWeight:400},statValue:{fontSize:"28px",fontWeight:700,color:"#333",lineHeight:1.2,mb:.3},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",cursor:"pointer",ml:.5}},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:2,py:1.5,bgcolor:"#fafafa"},productCount:{fontSize:"13px",fontWeight:400,color:"#666"},checkboxIcon:{display:"flex",alignItems:"center",justifyContent:"center"}},productCard:{root:{bgcolor:"background.paper",borderBottom:1,borderColor:"#f0f0f0",p:2,position:"relative"},offerBadge:{position:"absolute",top:12,right:12,color:"#454545",px:1,py:.3,borderRadius:.5,fontSize:"11px",fontWeight:500},contentRow:{display:"flex",alignItems:"flex-start",gap:1.5},checkbox:{p:0,mt:.5},image:{width:56,height:56,bgcolor:"#f8f8f8",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",flexShrink:0},details:{flex:1,minWidth:0,pr:10},name:{fontSize:"14px",fontWeight:600,color:"#333",textDecoration:"none",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",lineHeight:1.3,mb:.3},meta:{fontSize:"12px",color:"#888",mb:.2},sku:{fontSize:"11px",color:"#aaa",mb:.5},priceRow:{display:"flex",alignItems:"center",gap:.5},price:{fontSize:"14px",fontWeight:700,color:"#333"},originalPrice:{fontSize:"12px",color:"#999",textDecoration:"line-through"},discount:{fontSize:"11px",color:"#28a745",fontWeight:600}},floatingActions:{root:{position:"fixed",left:0,right:0,bottom:0,bgcolor:"#1a1a1a",color:"white",px:2,pt:1.5,pb:2,display:"flex",flexDirection:"column",alignItems:"center",gap:1.5,zIndex:1200,borderRadius:"16px 16px 0 0"},countText:{fontSize:"15px",fontWeight:400,color:"#fff",textAlign:"center"},buttonRow:{display:"flex",gap:1.5,width:"100%"},btn:{flex:1,bgcolor:"#333",color:"white",fontSize:"14px",fontWeight:500,py:1.2,borderRadius:1.5,textTransform:"none",display:"flex",alignItems:"center",justifyContent:"center",gap:1,"&:hover":{bgcolor:"#444"}}},logo:{container:{display:"flex",alignItems:"center",gap:1},icon:{width:32,height:32,bgcolor:"#f97316",borderRadius:1.5,display:"flex",alignItems:"center",justifyContent:"center"},iconText:{color:"white",fontSize:"14px",fontWeight:700},textContainer:{display:"flex",flexDirection:"column"},brandName:{fontSize:"16px",fontWeight:700,color:"#333",lineHeight:1.2},tagline:{fontSize:"10px",color:"#888",lineHeight:1}},headerIcons:{container:{display:"flex",alignItems:"center",gap:1.5},iconBtn:{position:"relative",color:"#333"},notificationDot:{position:"absolute",top:0,right:0,width:8,height:8,bgcolor:"#ef4444",borderRadius:"50%"},avatar:{width:32,height:32,bgcolor:"#3b82f6",fontSize:"13px",fontWeight:600}},emptyProduct:{wrapper:{position:"relative",mx:1,my:1},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"350px",bgcolor:"#fff",mx:0,py:6,px:2,borderRadius:2,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:2},sparkleContainer:{position:"absolute",top:-20,left:"50%",transform:"translateX(-50%)",width:40,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:16,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:12,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:70,height:55,border:"2px solid #5b9bd5",borderRadius:"6px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-2,left:"50%",transform:"translateX(-50%)",width:28,height:18,bgcolor:"#fff",borderBottomLeftRadius:14,borderBottomRightRadius:14,borderLeft:"2px solid #5b9bd5",borderRight:"2px solid #5b9bd5",borderBottom:"2px solid #5b9bd5"},title:{fontSize:"14px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"12px",color:"#888",mb:1},actionLink:{fontSize:"12px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}}}),[])}function Dn(){return z.useMemo(()=>({topBar:{root:{bgcolor:"background.paper",py:1.5,px:3,borderBottom:1,borderColor:"divider"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center"},searchBox:{display:"flex",alignItems:"center",position:"relative",width:240},searchInput:{fontSize:"14px",color:"text.primary",pl:1,width:"100%"},controlGroup:{display:"flex",alignItems:"center",gap:1.5},btn:{display:"flex",alignItems:"center",gap:.5,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"13px",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},iconOnly:{minWidth:36,width:36,height:36,p:0,color:"#555",borderRadius:1,"&:hover":{bgcolor:"#f3f4f6",color:"#111"}}},header:{container:{display:"flex",flexDirection:"row",gap:2,my:1,px:3,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none"},statCard:{flex:"0 0 auto",minWidth:180,bgcolor:"background.paper",borderRadius:2,p:2,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.04)"},statLabel:{fontSize:"12px",color:"#888",mb:.5},statValue:{fontSize:"26px",fontWeight:700,color:"#333",mb:.5},statMeta:{display:"flex",alignItems:"center",gap:.5},statMetaText:{fontSize:"11px",color:"#888"},statLink:{fontSize:"11px",color:"#3b82f6",textDecoration:"underline",display:"block",mt:.5}},productCard:{root:{borderBottom:1,borderColor:"divider",p:2,mx:2,bgcolor:"background.paper",transition:"all 0.2s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"}},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:2},image:{width:56,height:56,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"28px",overflow:"hidden",flexShrink:0},name:{fontSize:"13px",fontWeight:600,color:"#454545",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{px:2,py:.4,borderRadius:.5,fontSize:"12px",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(200px, 1fr) 90px 120px 100px 140px",gap:1.5,alignItems:"center",px:2},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(280px, 1fr) 100px 150px",gap:2,alignItems:"center",px:2},listHeader:{root:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,py:1.5,bgcolor:"#f9fafb",borderBottom:1,borderColor:"divider"},productCount:{fontSize:"14px",color:"#666"},gridHeader:{display:"grid",bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"13px",color:"#6b7280"}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:24,zIndex:1200},inner:{bgcolor:"#111",color:"white",px:3,py:1.5,borderRadius:2,display:"flex",alignItems:"center",gap:2,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.3)"},count:{fontWeight:600,fontSize:"15px",whiteSpace:"nowrap"},divider:{width:1,height:28,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2.5,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"14px",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}}},table:{container:{mx:2,borderRadius:2,border:1,borderColor:"divider",overflow:"hidden"},cell:{fontSize:"13px",py:1.5,px:1.5},headerCell:{fontSize:"12px",fontWeight:600,color:"#6b7280",py:1.5,px:1.5,bgcolor:"#f9fafb"}},modal:{dialog:{borderRadius:2,maxWidth:520,mx:3},content:{p:3}}}),[])}const Gf=({product:e,isSelected:t,onToggle:r,styles:n,showLimitedColumns:o})=>{const i=at(),s=rt(i.breakpoints.down("sm")),l=rt(i.breakpoints.between("sm","md")),c=_r(),u=Dn(),d=s?c:l?u:n,p=e.price??0,b=e.percentageOff??0;let y=p;p>0&&b>0&&(y=Math.round(p*(1-b/100)));const g=e.inshelff??e.onShelf??e.quantity??0,f=e.stock??e.totalStock??e.maxStock??0,m=f>0?Math.round(g/f*100):0,O=(S=>S?S.startsWith("http")?S:`${su()}${S}`:null)(e.productImage||e.image);return!n||!n.productCard?null:s?h.jsxs(_,{sx:{...d.productCard.root,bgcolor:t?"#f0f9ff":"background.paper"},children:[e.offer&&h.jsx(_,{sx:d.productCard.offerBadge,children:e.offer}),h.jsxs(_,{sx:d.productCard.contentRow,children:[h.jsx(ct,{checked:t||!1,onChange:r,size:"small",sx:d.productCard.checkbox}),h.jsx(_,{sx:d.productCard.image,children:O?h.jsx(_,{component:"img",src:O,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):h.jsx("span",{style:{fontSize:"24px"},children:"📷"})}),h.jsxs(_,{sx:d.productCard.details,children:[h.jsx(B,{component:ur,to:`/product/${e.id}`,sx:d.productCard.name,children:e.name}),h.jsx(B,{sx:d.productCard.meta,children:e.productWeight||"43g"}),h.jsxs(B,{sx:d.productCard.sku,children:["SKU: ",e.sku||"234987"]}),h.jsxs(_,{sx:d.productCard.priceRow,children:[h.jsxs(B,{sx:d.productCard.price,children:["₹",y]}),b>0&&h.jsxs(h.Fragment,{children:[h.jsxs(B,{sx:d.productCard.originalPrice,children:["₹",p]}),h.jsxs(B,{sx:d.productCard.discount,children:[b,"% OFF"]})]})]})]})]})]}):h.jsxs(_,{sx:{...n.productCard.root,...o?n.gridSystemLimited:n.gridSystem,bgcolor:t?"#f0f9ff":"background.paper"},children:[h.jsx(ct,{checked:t||!1,onChange:r,size:"small",sx:{p:.5}}),h.jsxs(_,{sx:n.productCard.content,children:[" ",h.jsx(_,{sx:n.productCard.image,children:O?h.jsx(_,{component:"img",src:O,alt:e.name,sx:{width:"100%",height:"100%",objectFit:"contain"}}):h.jsx("span",{style:{fontSize:"1.5rem"},children:"📷"})}),h.jsxs(_,{sx:{flex:1,minWidth:0},children:[h.jsx(B,{component:ur,to:`/product/${e.id}`,sx:{...n.productCard.name,textDecoration:"none",display:"block"},children:e.name}),h.jsxs(B,{variant:"caption",color:"text.secondary",sx:{display:"block",mb:.5},children:[e.productWeight," • ",e.category]}),h.jsx(B,{variant:"caption",color:"text.disabled",children:e.sku})]})]}),h.jsx(_,{children:h.jsx(_,{sx:{...n.productCard.badge,...e.status===!0||e.status==="Active"?n.productCard.badge.active:n.productCard.badge.inactive},children:e.status===!0||e.status==="Active"?"Active":"No Stock"})}),!o&&h.jsx(_,{children:b>0?h.jsxs(h.Fragment,{children:[h.jsxs(B,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",y]}),h.jsxs(B,{variant:"caption",sx:{textDecoration:"line-through",color:"text.disabled",display:"block",lineHeight:1},children:["₹",p]}),h.jsxs(B,{variant:"caption",color:"success.main",fontWeight:600,sx:{display:"block",lineHeight:1,mt:.2},children:[b,"% OFF"]})]}):h.jsxs(B,{fontWeight:600,fontSize:"0.9rem",color:"text.primary",children:["₹",p]})}),h.jsxs(_,{children:[h.jsxs(_,{sx:{display:"flex",alignItems:"baseline",gap:.2,minHeight:20},children:[h.jsx(B,{fontSize:"1rem",fontWeight:400,sx:{color:"#f2992f"},children:g}),h.jsxs(B,{fontSize:"1rem",fontWeight:400,sx:{color:"#333",ml:.2},children:["/",f.toLocaleString()]})]}),h.jsxs(_,{sx:{display:"flex",alignItems:"baseline",gap:.5,mt:"-2px"},children:[h.jsxs(B,{fontSize:"0.95rem",fontWeight:400,sx:{color:"#f44336"},children:[m,"%"]}),h.jsx(B,{fontSize:"0.85rem",fontWeight:400,sx:{color:"#bdbdbd",ml:.2},children:"on shelf"})]})]}),!o&&h.jsx(_,{children:h.jsx(B,{variant:"body2",fontSize:"0.85rem",color:"text.primary",noWrap:!0,children:e.offer||""})})]})};function Na(){return{theme:z.useMemo(()=>ra({typography:{fontFamily:"'Inter', sans-serif",h1:{fontWeight:700,fontSize:"3.2rem"},h2:{fontWeight:600,fontSize:"2.4rem"},h3:{fontWeight:600,fontSize:"1.8rem"},h4:{fontWeight:600,fontSize:"0.85rem",color:"#444"},body1:{fontSize:"0.9rem",color:"#333"},body2:{fontSize:"0.85rem",color:"#666"},button:{textTransform:"none",fontWeight:500}},palette:{primary:{main:"#3b82f6",light:"#eff6ff"},secondary:{main:"#22d3ee"},text:{primary:"#454545",secondary:"#666666",disabled:"#999999"},divider:"#e0e0e0",background:{default:"#ffffff",paper:"#ffffff",neutral:"#f5f7fa"},success:{main:"#155724",light:"#d4edda"},error:{main:"#721c24",light:"#f8d7da",contrastText:"#d9534f"}},shape:{borderRadius:6},components:{MuiButton:{styleOverrides:{root:{boxShadow:"none","&:hover":{boxShadow:"none"}}}}}}),[]),flexBetween:{display:"flex",justifyContent:"space-between",alignItems:"center"},flexCenter:{display:"flex",justifyContent:"center",alignItems:"center"},topBar:{root:{bgcolor:"background.paper",py:1.5,borderBottom:1,borderColor:"divider"},inner:{display:"flex",justifyContent:"space-between",alignItems:"center",px:3,maxWidth:"100%"},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},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:1,color:"primary.main",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,color:"#555",borderRadius:1,"&:hover":{bgcolor:"#f3f4f6",color:"#111"}},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)"}}},productCard:{root:{borderBottom:1,borderColor:"divider",p:"0.25rem 0.25rem",m:"4px",bgcolor:"background.paper",transition:"all 0.3s ease",borderRadius:1,"&:hover":{bgcolor:"#f9f9f9"},width:"100%",maxWidth:1100,mx:"auto"},content:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:3},image:{width:50,height:50,bgcolor:"#f0f0f0",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"2rem",overflow:"hidden",flexShrink:0},name:{fontFamily:"'Inter', sans-serif",fontSize:"12px",fontWeight:600,letterSpacing:"0px",color:"#454545",width:"166px",display:"-webkit-box",WebkitLineClamp:2,lineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",mb:.5},badge:{width:"80%",px:2.5,py:.5,mr:8,borderRadius:.5,fontSize:"0.8rem",fontWeight:600,whiteSpace:"nowrap",active:{bgcolor:"#dcfce7",color:"#166534"},inactive:{bgcolor:"#f3f4f6",color:"#4b5563"}}},gridSystem:{display:"grid",gridTemplateColumns:"30px minmax(250px, 1fr) 100px 150px 120px 160px",gap:2,alignItems:"center",px:3},gridSystemLimited:{display:"grid",gridTemplateColumns:"30px minmax(400px, 1fr) 120px 180px",gap:5,alignItems:"center",px:3},listHeader:{root:{bgcolor:"#f9fafb",py:1.5,borderBottom:1,borderColor:"divider",fontWeight:500,fontSize:"0.85rem",color:"#6b7280",width:"100%",maxWidth:1100,mx:"auto"}},header:{container:{display:"flex",gap:3,my:1,width:"100%",px:3,maxWidth:1e3,mx:"auto"},statCard:{bgcolor:"background.paper",borderRadius:2,p:3,flex:1,border:1,borderColor:"#e6e6e6",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.05)"},bigNumber:{fontSize:"1.8rem",fontWeight:700,color:"#000",mb:.5}},floatingActions:{root:{position:"fixed",left:"50%",transform:"translateX(-50%)",bottom:30,zIndex:1200,animation:"slideUp 0.3s ease-out","@keyframes slideUp":{from:{transform:"translate(-50%, 100%)",opacity:0},to:{transform:"translate(-50%, 0)",opacity:1}}},inner:{bgcolor:"#111",color:"white",px:2,py:1,borderRadius:2,display:"flex",alignItems:"center",gap:1.5,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",justifyContent:"space-between"},count:{fontWeight:600,fontSize:"0.9rem",whiteSpace:"nowrap"},divider:{width:1,height:24,bgcolor:"#333"},btn:{bgcolor:"#333",border:"none",color:"#fff",px:2,py:1,borderRadius:1,cursor:"pointer",fontWeight:600,fontSize:"0.85rem",display:"flex",alignItems:"center",gap:1,transition:"background 0.2s",textTransform:"none","&:hover":{bgcolor:"#444"}},btnPrimary:{"&:hover":{bgcolor:"#2563eb"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto","&::-webkit-scrollbar":{display:"none"},msOverflowStyle:"none",scrollbarWidth:"none"},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,height:120,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)"},selected:{borderColor:"#1976D2",bgcolor:"linear-gradient(135deg, #E3F2FD 0%, #FFFFFF 100%)",boxShadow:"0 4px 12px rgba(0, 0, 0, 0)"},unselected:{borderColor:"#E0E0E0"}},design1:{topSection:{display:"flex",flexDirection:"column",alignItems:"center",minHeight:50,justifyContent:"center"},saveText:{fontFamily:"Inter, sans-serif",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",color:"#000000",lineHeight:1.2,mb:.5},percentText:{fontFamily:"Inter, sans-serif",fontSize:"22px",fontWeight:600,fontStyle:"italic",color:"#000000",lineHeight:1,letterSpacing:"0px",display:"flex",justifyContent:"center",alignItems:"center"},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif",color:"#000000"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2,letterSpacing:"0px"},ourPrice:{textAlign:"left"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",minHeight:14}},design2:{topSection:{minHeight:60},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:600,color:"#000000",mt:.5,lineHeight:1.3,letterSpacing:"0px"},bottomSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"}},design3:{topSection:{minHeight:20},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px"},middleSection:{minHeight:30},priceRow:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:.5,minHeight:12},priceText:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",textAlign:"left",lineHeight:1.2,letterSpacing:"0px"},bottomSection:{minHeight:30},percentOffText:{fontFamily:"Inter, sans-serif",fontSize:"20px",fontWeight:600,color:"#000000",lineHeight:1},percentSymbol:{fontSize:"18px",fontWeight:600,fontFamily:"Inter, sans-serif"}},sheetSizeGroup:{display:"flex",gap:1},sheetSizeBtn:{flex:1,py:1,border:1,borderColor:"divider",borderRadius:1,cursor:"pointer",transition:"all 0.2s","&:hover":{borderColor:"primary.main"}},sheetSizeBtnSelected:{borderColor:"primary.main"},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:2,my:2},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:10,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"}}}}}function Xf(){const e=at(),t=rt(e.breakpoints.down("sm")),r=ki(),n=Na(),o=_r(),i=t?o.emptyProduct:n.emptyProduct,s=l=>{l.preventDefault(),r("/settings")};return h.jsx(_,{sx:i.wrapper,children:h.jsxs(_,{sx:i.card,children:[h.jsxs(_,{sx:i.iconContainer,children:[h.jsxs(_,{sx:i.sparkleContainer,children:[h.jsx(_,{sx:i.sparkleLeft}),h.jsx(_,{sx:i.sparkleCenter}),h.jsx(_,{sx:i.sparkleRight})]}),h.jsx(_,{sx:i.inboxIcon,children:h.jsx(_,{sx:i.notch})})]}),h.jsx(B,{sx:i.title,children:"No Products"}),h.jsx(B,{sx:i.subtitle,children:"Start by setting up sync"}),h.jsx(B,{component:"a",href:"#",sx:i.actionLink,onClick:s,children:"Start Syncing Products"})]})})}const JE=({products:e,loading:t,selectedProducts:r,onToggleProduct:n,styles:o,onHeaderToggle:i,showLimitedColumns:s})=>{const l=at(),c=rt(l.breakpoints.down("sm")),u=rt(l.breakpoints.between("sm","md")),d=_r(),p=Dn(),b=c?d:u?p:o;return!o||!o.listHeader?null:t?h.jsxs(_,{sx:{display:"flex",justifyContent:"center",p:4,bgcolor:"background.paper",borderRadius:2},children:[h.jsx(ci,{}),h.jsx(B,{sx:{ml:2,color:"text.secondary"},children:"Loading products..."})]}):e.length===0?h.jsx(Xf,{}):c?h.jsxs(_,{children:[h.jsxs(_,{sx:b.listHeader.root,children:[h.jsx(_,{sx:b.listHeader.checkboxIcon,children:Array.isArray(r)&&r.length>0?h.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),h.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):h.jsx("svg",{width:"24",height:"24",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#ccc",strokeWidth:"2"})})}),h.jsxs(B,{sx:b.listHeader.productCount,children:[e.length," Products"]})]}),h.jsx(_,{sx:{display:"flex",flexDirection:"column"},children:e.map(y=>h.jsx(Gf,{product:y,isSelected:r?.includes(y.id),onToggle:()=>n(y.id),styles:o,showLimitedColumns:s},y.id))})]}):h.jsxs(_,{children:[h.jsxs(_,{sx:{...o.listHeader.root,...s?o.gridSystemLimited:o.gridSystem},children:[h.jsx(_,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",mr:1.5},children:Array.isArray(r)&&r.length>0?h.jsxs("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:[h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#F6FAFF",stroke:"#2196F3",strokeWidth:"2"}),h.jsx("rect",{x:"9",y:"13",width:"10",height:"2",rx:"1",fill:"#2196F3"})]}):h.jsx("svg",{width:"28",height:"28",viewBox:"0 0 28 28",style:{display:"block"},"aria-hidden":"true",children:h.jsx("rect",{x:"3",y:"3",width:"22",height:"22",rx:"6",fill:"#fff",stroke:"#b3b0b0ff",strokeWidth:"2"})})}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:i?"pointer":"default"},onClick:y=>{y.stopPropagation()},onMouseDown:y=>{y.preventDefault()},children:[h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Product"}),h.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",style:{marginLeft:2,display:"inline",verticalAlign:"middle"},"aria-hidden":"true",children:[h.jsx("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round"}),h.jsx("polyline",{points:"6,13 12,19 18,13",fill:"none",stroke:"#444",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})]})]}),h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Status"}),!s&&h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Price"}),h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Stock / OSA"}),!s&&h.jsx(B,{fontSize:"inherit",fontWeight:"inherit",children:"Offer"})]}),h.jsx(_,{sx:{display:"flex",flexDirection:"column"},children:e.map(y=>h.jsx(Gf,{product:y,isSelected:r?.includes(y.id),onToggle:()=>n(y.id),styles:o,showLimitedColumns:s},y.id))})]})};function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_a.apply(this,arguments)}function QE(e,t){if(e==null)return{};var r=ZE(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZE(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var yi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=QE(e,["color","size"]);return z.createElement("svg",_a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),z.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),z.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),z.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});yi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},yi.displayName="AlignLeft";function Ia(){return Ia=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ia.apply(this,arguments)}function e1(e,t){if(e==null)return{};var r=t1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function t1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var bi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=e1(e,["color","size"]);return z.createElement("svg",Ia({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),z.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});bi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},bi.displayName="Bell";function Aa(){return Aa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Aa.apply(this,arguments)}function r1(e,t){if(e==null)return{};var r=n1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function n1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Mn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=r1(e,["color","size"]);return z.createElement("svg",Aa({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"6 9 12 15 18 9"}))});Mn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Mn.displayName="ChevronDown";function $a(){return $a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$a.apply(this,arguments)}function o1(e,t){if(e==null)return{};var r=i1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var jn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=o1(e,["color","size"]);return z.createElement("svg",$a({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),z.createElement("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}))});jn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},jn.displayName="Link";function Ra(){return Ra=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ra.apply(this,arguments)}function s1(e,t){if(e==null)return{};var r=a1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function a1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var vi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=s1(e,["color","size"]);return z.createElement("svg",Ra({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"12",cy:"12",r:"1"}),z.createElement("circle",{cx:"12",cy:"5",r:"1"}),z.createElement("circle",{cx:"12",cy:"19",r:"1"}))});vi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},vi.displayName="MoreVertical";function Da(){return Da=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Da.apply(this,arguments)}function l1(e,t){if(e==null)return{};var r=c1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var zn=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=l1(e,["color","size"]);return z.createElement("svg",Da({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"6 9 6 2 18 2 18 9"}),z.createElement("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),z.createElement("rect",{x:"6",y:"14",width:"12",height:"8"}))});zn.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},zn.displayName="Printer";function Ma(){return Ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(this,arguments)}function u1(e,t){if(e==null)return{};var r=d1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var xi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=u1(e,["color","size"]);return z.createElement("svg",Ma({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polyline",{points:"23 4 23 10 17 10"}),z.createElement("polyline",{points:"1 20 1 14 7 14"}),z.createElement("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}))});xi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},xi.displayName="RefreshCw";function ja(){return ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ja.apply(this,arguments)}function f1(e,t){if(e==null)return{};var r=p1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var wi=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=f1(e,["color","size"]);return z.createElement("svg",ja({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"11",cy:"11",r:"8"}),z.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});wi.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},wi.displayName="Search";function za(){return za=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function h1(e,t){if(e==null)return{};var r=g1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ba=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=h1(e,["color","size"]);return z.createElement("svg",za({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("circle",{cx:"12",cy:"12",r:"3"}),z.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"}))});Ba.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Ba.displayName="Settings";function La(){return La=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},La.apply(this,arguments)}function m1(e,t){if(e==null)return{};var r=y1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function y1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Fa=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=m1(e,["color","size"]);return z.createElement("svg",La({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),z.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),z.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Fa.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Fa.displayName="ShoppingBag";function Va(){return Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)}function b1(e,t){if(e==null)return{};var r=v1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Wa=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=b1(e,["color","size"]);return z.createElement("svg",Va({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"}))});Wa.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Wa.displayName="Star";function Ua(){return Ua=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(this,arguments)}function x1(e,t){if(e==null)return{};var r=w1(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function w1(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}var Ha=z.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,o=e.size,i=o===void 0?24:o,s=x1(e,["color","size"]);return z.createElement("svg",Ua({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:n,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Ha.propTypes={color:a.string,size:a.oneOfType([a.string,a.number])},Ha.displayName="X";const S1=({filters:e,onFilterChange:t,styles:r,stores:n=[]})=>{const o=at(),i=rt(o.breakpoints.down("sm")),s=rt(o.breakpoints.between("sm","md")),{onAllStoresClick:l,onStoreSelect:c,hasStoresModal:u,StoresModal:d,storesModalProps:p}=du(),b=_r(),y=Dn(),g=i?b:s?y:r,f=v=>t({...e,search:v.target.value}),[m,E]=z.useState("OSA"),[O,S]=z.useState(!1),[x,w]=z.useState(null),T=!!x,P=Array.isArray(e.store)?e.store:["all"],I=v=>{u?(l({stores:n,selectedStores:P,filters:e,updateSelection:A=>{t({...e,store:A})}}),d&&S(!0)):w(v.currentTarget)},j=()=>{w(null)},L=()=>{S(!1)},W=v=>{let A;v==="all"?P.includes("all")?A=[]:A=["all"]:(P.includes(v)?A=P.filter(N=>N!==v&&N!=="all"):(A=P.filter(N=>N!=="all"),A.push(v)),A.length===0&&(A=["all"])),c&&c(A,n),t({...e,store:A})};return!r||!r.topBar?null:i?h.jsxs(_,{sx:g.topBar.root,children:[h.jsx(_,{sx:g.topBar.headerRow,children:h.jsxs(_,{sx:g.headerIcons.container,children:[h.jsx(_,{component:"button",sx:{...g.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(wi,{size:20,color:"#333"})}),h.jsxs(_,{component:"button",sx:{...g.topBar.iconBtn,bgcolor:"transparent",border:"none",position:"relative"},children:[h.jsx(bi,{size:20,color:"#333"}),h.jsx(_,{sx:g.headerIcons.notificationDot})]}),h.jsx(Ef,{sx:g.headerIcons.avatar,children:"U"})]})}),h.jsxs(_,{sx:g.topBar.controlRow,children:[h.jsxs(_,{sx:g.topBar.storeDropdown,onClick:I,children:[h.jsx(B,{sx:{fontSize:"13px",fontWeight:500},children:P.includes("all")?"All Stores":P.length===1?n.find(v=>v.id===P[0])?.name||"All Stores":`${P.length} stores`}),h.jsx(Mn,{size:14,color:"#666"})]}),h.jsxs(_,{sx:g.topBar.filterBtn,children:[h.jsx(B,{sx:{fontSize:"13px"},children:"Filter / Sort"}),h.jsx(yi,{size:14,color:"#666"})]}),h.jsx(_,{component:"button",sx:{...g.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(xi,{size:18,color:"#666"})}),h.jsx(_,{component:"button",sx:{...g.topBar.iconBtn,bgcolor:"transparent",border:"none"},children:h.jsx(vi,{size:18,color:"#666"})})]}),h.jsxs(ka,{anchorEl:x,open:T,onClose:j,PaperProps:{style:{minWidth:180}},children:[h.jsxs(Rn,{onClick:()=>W("all"),children:[h.jsx(ct,{checked:P.includes("all"),size:"small"}),h.jsx(_n,{primary:"All Stores"})]}),h.jsx(At,{}),n.filter(v=>v.id!=="all").map(v=>h.jsxs(Rn,{onClick:()=>W(v.id),children:[h.jsx(ct,{checked:P.includes(v.id),size:"small"}),h.jsx(_n,{primary:v.name})]},v.id))]})]}):h.jsxs(_,{sx:r.topBar.root,children:[h.jsxs(_,{sx:r.topBar.inner,children:[h.jsxs(_,{sx:r.topBar.searchBox,children:[h.jsx(wi,{size:18,style:{position:"absolute",left:0,color:"#888"}}),h.jsx(Sf,{placeholder:"Search Products",value:e.search,onChange:f,sx:{...r.topBar.searchInput,pl:3.5}})]}),h.jsxs(_,{sx:r.topBar.controlGroup,children:[h.jsxs(_,{sx:{display:"flex",gap:1},children:[h.jsxs(_,{sx:r.topBar.btn,onClick:I,style:{cursor:"pointer"},children:[h.jsx(Fa,{size:18,style:{color:"#555"}}),h.jsx(B,{variant:"body2",fontWeight:600,color:"text.primary",children:P.includes("all")?"All Stores":P.length===1?n.find(v=>v.id===P[0])?.name||"All Stores":`${P.length} stores`}),h.jsxs(B,{variant:"caption",color:"text.secondary",sx:{display:{xs:"none",lg:"block"},mx:.5},children:[n.length-1," stores"]}),h.jsx(Mn,{size:14,color:"#888"})]}),h.jsxs(ka,{anchorEl:x,open:T,onClose:j,PaperProps:{style:{minWidth:180}},children:[h.jsxs(Rn,{onClick:()=>W("all"),children:[h.jsx(ct,{checked:P.includes("all")}),h.jsx(_n,{primary:"All Stores"})]}),h.jsx(At,{}),n.filter(v=>v.id!=="all").map(v=>h.jsxs(Rn,{onClick:()=>W(v.id),children:[h.jsx(ct,{checked:P.includes(v.id)}),h.jsx(_n,{primary:v.name})]},v.id))]}),h.jsxs(_,{sx:r.topBar.btn,children:[h.jsx(B,{variant:"body2",children:"Filter"}),h.jsx(Mn,{size:14,color:"#888"})]}),h.jsxs(_,{sx:r.topBar.btn,children:[h.jsx(B,{variant:"body2",children:"Sort"}),h.jsx(yi,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),h.jsx(At,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(_,{sx:{display:"flex",gap:1.5},children:[h.jsx(_,{component:"button",onClick:()=>E("OSA"),sx:{...r.topBar.viewSwitch.opt,...m==="OSA"&&r.topBar.viewSwitch.active},children:"OSA"}),h.jsx(_,{component:"button",onClick:()=>E("Catalogs"),sx:{...r.topBar.viewSwitch.opt,...m==="Catalogs"&&r.topBar.viewSwitch.active},children:"Catalogs"})]}),h.jsx(At,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(_,{sx:{display:"flex",gap:1,alignItems:"center"},children:[h.jsx(_,{component:"button",sx:r.topBar.iconOnly,title:"Refresh",children:h.jsx(xi,{size:20})}),h.jsx(_,{component:"button",sx:r.topBar.iconOnly,title:"Settings",children:h.jsx(Ba,{size:20})}),h.jsx(_,{component:"button",sx:r.topBar.iconOnly,title:"More",children:h.jsx(vi,{size:20})})]}),h.jsx(At,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[h.jsx(_,{component:"button",sx:r.topBar.iconOnly,title:"Notifications",children:h.jsx(bi,{size:20})}),h.jsx(_,{component:"button",sx:r.topBar.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:h.jsx(Wa,{size:20})})]})]})]}),d&&h.jsx(d,{open:O,onClose:L,stores:n,selectedStores:P,onStoreSelect:v=>{t({...e,store:v}),c&&c(v,n)},...p})]})},Jf=xn(h.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");const E1=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C1=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Qf=e=>{const t=C1(e);return t.charAt(0).toUpperCase()+t.slice(1)},Zf=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),O1=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var T1={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 P1=z.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:s,...l},c)=>z.createElement("svg",{ref:c,...T1,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Zf("lucide",o),...!i&&!O1(l)&&{"aria-hidden":"true"},...l},[...s.map(([u,d])=>z.createElement(u,d)),...Array.isArray(i)?i:[i]]));const Ir=(e,t)=>{const r=z.forwardRef(({className:n,...o},i)=>z.createElement(P1,{ref:i,iconNode:t,className:Zf(`lucide-${E1(Qf(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Qf(e),r};const k1=Ir("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);const N1=Ir("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const qa=Ir("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const ep=Ir("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const _1=Ir("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 tp=Ir("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]),I1=({products:e=[],styles:t})=>{const r=at(),n=rt(r.breakpoints.down("sm")),o=rt(r.breakpoints.between("sm","md")),i=_r(),s=Dn(),l=n?i:o?s:t,c=m=>m.status===!0||m.status==="Active",u=()=>{if(!e.length)return null;const m=e.filter(E=>E.updatedAt).sort((E,O)=>new Date(O.updatedAt)-new Date(E.updatedAt))[0];return m?m.updatedAt:null},d=m=>{if(!m)return"Unknown";const E=new Date,O=new Date(m),S=Math.floor((E-O)/6e4);if(S<1)return"Just now";const x=Math.floor(S/1440),w=Math.floor(S%1440/60),T=S%60;let P="";return x>0&&(P+=`${x} days `),w>0&&(P+=`${w} hour `),T>0&&(P+=`${T} minutes `),P=P.trim(),P?`${P} ago`:"Just now"},p=z.useMemo(()=>e.length?e[0]:null,[e]),y=p?(m=>m?m.startsWith("http")?m:`${su()}${m}`:null)(p.productImage||p.image):null,g=e.filter(c).length,f=u();return!t||!t.header?null:n?h.jsxs(_,{component:"header",sx:l.header.container,children:[h.jsx(B,{sx:l.header.title,children:"Christmas Super Sale 2025"}),h.jsxs(_,{sx:l.header.statsScroll,children:[h.jsxs(_,{sx:l.header.statCard,children:[h.jsx(B,{sx:l.header.statLabel,children:"Active Products"}),h.jsx(B,{sx:l.header.statValue,children:g}),h.jsxs(_,{sx:l.header.statMeta,children:[h.jsx(Jf,{sx:{color:"#27ae60",fontSize:14}}),h.jsxs(B,{sx:l.header.statMetaText,children:["Sync ",d(f)]})]})]}),h.jsx(_,{sx:l.header.statCard,children:h.jsx(B,{sx:l.header.statLabel,children:"Active Catalogs"})}),p&&h.jsxs(_,{sx:{...l.header.statCard,minWidth:180,display:"flex",flexDirection:"column",gap:.5},children:[h.jsx(B,{sx:l.header.statLabel,children:"Best Product"}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[y&&h.jsx(_,{component:"img",src:y,alt:p.name,sx:{width:48,height:48,objectFit:"cover",borderRadius:1,bgcolor:"#f5f5f5"}}),h.jsxs(_,{sx:{display:"flex",flexDirection:"column"},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333",lineHeight:1.3},children:p.name}),h.jsx(B,{sx:{fontSize:"12px",color:"rgba(0, 0, 0, 0.6)",fontWeight:500},children:"250 units"})]})]})]})]})]}):h.jsxs(_,{component:"header",sx:t.header.container,children:[h.jsxs(_,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Active Products"}),h.jsx(B,{sx:t.header.bigNumber,children:g}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[h.jsx(Jf,{sx:{color:"#27ae60",fontSize:15,mr:.5}}),h.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem",letterSpacing:.2,marginRight:1},children:"Sync"}),h.jsx("span",{style:{color:"#757575",fontWeight:500,fontSize:"0.8rem"},children:d(f)})]})]}),h.jsxs(_,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Active Catalogs"}),h.jsx(_,{sx:{display:"flex",alignItems:"center",gap:.5}})]}),h.jsxs(_,{sx:t.header.statCard,children:[h.jsx(B,{variant:"h4",sx:t.theme.typography.h4,children:"Best Product"}),p?h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5,mt:.5},children:[y?h.jsx(_,{component:"img",src:y,alt:p.name,sx:{width:40,height:40,objectFit:"contain",borderRadius:1}}):h.jsx(_,{sx:{width:40,height:40,bgcolor:"#eee",borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:"📷"}),h.jsxs(_,{children:[h.jsx(B,{sx:{fontSize:"0.95rem",fontWeight:600,m:0},children:p.name}),h.jsxs(B,{sx:{fontSize:"0.78rem",color:"text.secondary"},children:[p.quantity||p.stock," units",p.category?` · ${p.category}`:""]})]})]}):h.jsx(_,{sx:{display:"flex",alignItems:"center",mt:1},children:h.jsx(B,{variant:"body2",color:"text.secondary",children:"No data available"})})]})]})},A1=({selectedProducts:e,selectedDesign:t,sheetSize:r,itemsToShow:n})=>{if(console.log("printPromoDesigns called with:",{selectedDesign:t,sheetSize:r,itemsToShow:n,productsCount:e.length,selectedProducts:e}),!e||e.length===0){alert("No products selected for printing");return}const o=window.open("","_blank","width=800,height=600");if(!o){alert("Please allow popups to print promo designs");return}const i={A2:{width:420,height:594,stickersPerSheet:4},A3:{width:297,height:420,stickersPerSheet:6},A4:{width:210,height:297,stickersPerSheet:1},A5:{width:148,height:210,stickersPerSheet:12},A7:{width:74,height:105,stickersPerSheet:24}},s=i[r]||i.A5,c=(()=>{const E=r==="A2"||r==="A3"?2:r==="A4"?1:r==="A5"?3:4,O=Math.ceil(s.stickersPerSheet/E);return{width:r==="A4"?s.width-20:s.width/E-5,height:r==="A4"?s.height-20:s.height/O-5,cols:E,rows:O}})(),u=(E,O=0)=>{const S=Number(E);return Number.isFinite(S)?S:O},y={design1:E=>{const O=E?.productName||E?.name||"Product",S=E?.originalPrice??E?.mrp??E?.price??0,x=E?.price??E?.discountPrice??0,w=u(S,0),T=u(x,0),P=w>T&&w>0?Math.round((w-T)/w*100):5,I=T;return`
175
175
  <div class="sticker design-1">
176
176
  <div class="top-section">
177
177
  ${n.percentOff?`
@@ -183,13 +183,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
183
183
  ${n.discountPrice||n.mrp?`
184
184
  <div class="price-row">
185
185
  ${n.discountPrice?`<div class="price-text our-price">OUR PRICE: ₹${u(I,0).toFixed(0)}</div>`:""}
186
- ${n.mrp?`<div class="price-text">MRP: ₹${u(x,0).toFixed(0)}</div>`:""}
186
+ ${n.mrp?`<div class="price-text">MRP: ₹${u(w,0).toFixed(0)}</div>`:""}
187
187
  </div>
188
188
  `:""}
189
189
  ${n.productName?`<div class="product-name">${O}</div>`:""}
190
190
  </div>
191
191
  </div>
192
- `},design2:S=>{const O=S?.productName||S?.name||"Product",w=S?.originalPrice??S?.mrp??S?.price??0,v=S?.price??S?.discountPrice??0,x=u(w,0),T=u(v,0),P=x>T&&x>0?Math.round((x-T)/x*100):5,I=T;return`
192
+ `},design2:E=>{const O=E?.productName||E?.name||"Product",S=E?.originalPrice??E?.mrp??E?.price??0,x=E?.price??E?.discountPrice??0,w=u(S,0),T=u(x,0),P=w>T&&w>0?Math.round((w-T)/w*100):5,I=T;return`
193
193
  <div class="sticker design-2">
194
194
  <div class="top-section">
195
195
  ${n.percentOff?`<div class="percent-off-text">${P}<span class="percent-symbol">%</span> OFF</div>`:""}
@@ -198,22 +198,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
198
198
  ${n.discountPrice||n.mrp?`
199
199
  <div class="price-row">
200
200
  ${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${u(I,0).toFixed(0)}</div>`:""}
201
- ${n.mrp?`<div class="price-text">MRP: ₹${u(x,0).toFixed(0)}</div>`:""}
201
+ ${n.mrp?`<div class="price-text">MRP: ₹${u(w,0).toFixed(0)}</div>`:""}
202
202
  </div>
203
203
  `:""}
204
204
  </div>
205
- `},design3:S=>{const O=S?.productName||S?.name||"Product",w=S?.originalPrice??S?.mrp??S?.price??0,v=S?.price??S?.discountPrice??0,x=u(w,0),T=u(v,0),P=x>T&&x>0?Math.round((x-T)/x*100):5,I=T;return`
205
+ `},design3:E=>{const O=E?.productName||E?.name||"Product",S=E?.originalPrice??E?.mrp??E?.price??0,x=E?.price??E?.discountPrice??0,w=u(S,0),T=u(x,0),P=w>T&&w>0?Math.round((w-T)/w*100):5,I=T;return`
206
206
  <div class="sticker design-3">
207
207
  ${n.productName?`<div class="product-name">${O}</div>`:""}
208
208
  ${n.discountPrice||n.mrp?`
209
209
  <div class="price-row">
210
210
  ${n.discountPrice?`<div class="price-text">OUR PRICE: ₹${u(I,0).toFixed(0)}</div>`:""}
211
- ${n.mrp?`<div class="price-text">MRP: ₹${u(x,0).toFixed(0)}</div>`:""}
211
+ ${n.mrp?`<div class="price-text">MRP: ₹${u(w,0).toFixed(0)}</div>`:""}
212
212
  </div>
213
213
  `:""}
214
214
  ${n.percentOff?`<div class="percent-off-text">${P}<span class="percent-symbol">%</span> OFF</div>`:""}
215
215
  </div>
216
- `}},g=y[t]||y.design1,f=e.map(S=>g(S)).join(""),m=`
216
+ `}},g=y[t]||y.design1,f=e.map(E=>g(E)).join(""),m=`
217
217
  <!DOCTYPE html>
218
218
  <html>
219
219
  <head>
@@ -467,5 +467,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
467
467
  <\/script>
468
468
  </body>
469
469
  </html>
470
- `;console.log("Generated stickers HTML length:",f.length),console.log("Generated HTML content length:",m.length);try{o.document.open(),o.document.write(m),o.document.close(),console.log("HTML written successfully to print window")}catch(S){console.error("Error writing to print window:",S),alert("Error generating print preview. Please check console for details.")}},qa=({open:e,onClose:t,selectedProducts:r=[]})=>{const o=ka().promoPrintModal,[i,s]=z.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,c]=z.useState("design1"),[u,d]=z.useState("A5"),p=y=>{s(g=>({...g,[y]:!g[y]}))},b=()=>{if(console.log("=== PRINT BUTTON CLICKED ==="),console.log("Selected Products:",r),console.log("Print triggered with:",{selectedDesign:l,sheetSize:u,itemsToShow:i,productsCount:r.length}),!r||r.length===0){alert("No products selected. Please select products first.");return}console.log("Calling printPromoDesigns..."),_1({selectedProducts:r,selectedDesign:l,sheetSize:u,itemsToShow:i}),t()};return h.jsxs(_f,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:o.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[h.jsx($f,{children:h.jsxs(N,{sx:o.header,children:[h.jsx(B,{variant:"h6",fontWeight:600,children:"Promo Print"}),h.jsx(pa,{onClick:t,size:"small",children:h.jsx(Ua,{size:20})})]})}),h.jsxs(Af,{sx:o.content,children:[h.jsxs(N,{sx:o.section,children:[h.jsx(B,{sx:o.sectionTitle,children:"Items to show"}),h.jsxs(N,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[h.jsx(Pn,{control:h.jsx(ct,{checked:i.productName,onChange:()=>p("productName"),size:"small"}),label:"Product Name",sx:o.checkboxLabel}),h.jsx(Pn,{control:h.jsx(ct,{checked:i.percentOff,onChange:()=>p("percentOff"),size:"small"}),label:"Percent OFF",sx:o.checkboxLabel}),h.jsx(Pn,{control:h.jsx(ct,{checked:i.mrp,onChange:()=>p("mrp"),size:"small"}),label:"MRP",sx:o.checkboxLabel}),h.jsx(Pn,{control:h.jsx(ct,{checked:i.discountPrice,onChange:()=>p("discountPrice"),size:"small"}),label:"Discount Price",sx:o.checkboxLabel})]})]}),h.jsxs(N,{sx:o.section,children:[h.jsx(B,{sx:o.sectionTitle,children:"Promo Design"}),h.jsxs(N,{sx:o.designContainer,children:[h.jsxs(N,{onClick:()=>c("design1"),sx:{...o.designCard.base,...l==="design1"?o.designCard.selected:o.designCard.unselected},children:[h.jsxs(N,{sx:o.design1.topSection,children:[h.jsx(B,{sx:{...o.design1.saveText,visibility:i.percentOff?"visible":"hidden"},children:"SAVE"}),h.jsxs(B,{sx:{...o.design1.percentText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design1.percentSymbol,children:"%"})]})]}),h.jsxs(N,{sx:o.design1.bottomSection,children:[h.jsxs(N,{sx:{...o.design1.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design1.priceText,...o.design1.ourPrice,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design1.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),h.jsx(B,{sx:{...o.design1.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),h.jsxs(N,{onClick:()=>c("design2"),sx:{...o.designCard.base,...l==="design2"?o.designCard.selected:o.designCard.unselected},children:[h.jsxs(N,{sx:o.design2.topSection,children:[h.jsxs(B,{sx:{...o.design2.percentOffText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design2.percentSymbol,children:"%"})," OFF"]}),h.jsx(B,{sx:{...o.design2.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),h.jsxs(N,{sx:{...o.design2.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design2.priceText,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design2.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),h.jsxs(N,{onClick:()=>c("design3"),sx:{...o.designCard.base,...l==="design3"?o.designCard.selected:o.designCard.unselected},children:[h.jsx(B,{sx:{...o.design3.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),h.jsxs(N,{sx:{...o.design3.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design3.priceText,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design3.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),h.jsxs(B,{sx:{...o.design3.percentOffText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),h.jsxs(N,{children:[h.jsxs(N,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[h.jsx(B,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),h.jsx(B,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),h.jsx(N,{sx:o.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(y=>h.jsx(N,{onClick:()=>d(y),sx:{...o.sheetSizeBtn,...u===y?o.sheetSizeBtnSelected:{}},children:h.jsx(B,{variant:"body2",textAlign:"center",children:y})},y))})]})]}),h.jsx(If,{sx:{px:3,pb:2},children:h.jsx(Vt,{type:"button",onClick:b,variant:"contained",sx:o.printButton,children:"Print"})})]})},I1=({selectedCount:e,selectedProducts:t=[],styles:r})=>{const[n,o]=z.useState(!1),i=at(),s=rt(i.breakpoints.down("sm")),l=rt(i.breakpoints.between("sm","md")),c=Nr(),u=Rn(),d=s?c:l?u:r;return!e||e===0||!r||!r.floatingActions?null:s?h.jsxs(h.Fragment,{children:[h.jsxs(N,{sx:d.floatingActions.root,children:[h.jsxs(B,{sx:d.floatingActions.countText,children:[e," items selected"]}),h.jsxs(N,{sx:d.floatingActions.buttonRow,children:[h.jsxs(Vt,{onClick:()=>o(!0),sx:d.floatingActions.btn,children:[h.jsx(jn,{size:18}),"Promo Print"]}),h.jsxs(Vt,{sx:d.floatingActions.btn,children:[h.jsx(Mn,{size:18}),"Create Catalog"]})]})]}),h.jsx(qa,{open:n,onClose:()=>o(!1),selectedProducts:t})]}):l?h.jsxs(h.Fragment,{children:[h.jsx(N,{sx:d.floatingActions.root,children:h.jsxs(N,{sx:d.floatingActions.inner,children:[h.jsxs(B,{sx:d.floatingActions.count,children:[e," items selected"]}),h.jsx(N,{sx:d.floatingActions.divider}),h.jsxs(Vt,{sx:d.floatingActions.btn,onClick:()=>o(!0),children:[h.jsx(jn,{size:16}),h.jsx("span",{children:"Promo Print"})]}),h.jsxs(Vt,{sx:d.floatingActions.btn,children:[h.jsx(Mn,{size:16}),h.jsx("span",{children:"Create Catalog"})]})]})}),h.jsx(qa,{open:n,onClose:()=>o(!1),selectedProducts:t})]}):h.jsxs(h.Fragment,{children:[h.jsx(N,{sx:r.floatingActions.root,children:h.jsxs(N,{sx:r.floatingActions.inner,children:[h.jsxs(B,{sx:r.floatingActions.count,children:[e," items selected"]}),h.jsxs(Vt,{sx:{...r.floatingActions.btn},onClick:()=>o(!0),children:[h.jsx(jn,{size:16}),h.jsx("span",{children:"Promo Print"})]}),h.jsxs(Vt,{sx:r.floatingActions.btn,children:[h.jsx(Mn,{size:16}),h.jsx("span",{children:"Create Catalog"})]})]})}),h.jsx(qa,{open:n,onClose:()=>o(!1),selectedProducts:t})]})};function A1(){const e=ka(),[t,r]=z.useState([]),[n,o]=z.useState(!0),[i,s]=z.useState({category:"all",status:"all",search:"",store:["all"]}),l=Kh(x=>x.products),{productIds:c=[],productsById:u={},loading:d}=l||{};console.log(c,"productIds we get at page");const p=Hh();z.useEffect(()=>{p(So())},[p]),z.useEffect(()=>{requestAnimationFrame(()=>{if(c.length){let T=c.map(P=>u[P]).filter(P=>P&&P.id);i.store&&Array.isArray(i.store)&&!i.store.includes("all")&&(T=T.filter(P=>i.store.includes(String(P.storeId)))),r(T),o(!1)}else r([]),o(d)})},[c,u,d,i.store]);const b=x=>{s(x)},[y,g]=z.useState([]),f=x=>{g(T=>T.includes(x)?T.filter(P=>P!==x):[...T,x])},m=t.filter(x=>y.includes(x.id)),S={};Object.values(u).forEach(x=>{x.storeId&&x.storeName&&(S[x.storeId]=x.storeName)});const O=[{id:"all",name:"All Stores"},...Object.entries(S).map(([x,T])=>({id:x,name:T}))],w=Array.isArray(i.store)?i.store:[],v=w.length===0||w.includes("all")||w.length>1;return h.jsxs("div",{className:"app-container",children:[h.jsx(x1,{styles:e,onFilterChange:b,filters:i,stores:O}),t.length>0&&h.jsx(N1,{products:t,styles:e}),h.jsx(GE,{products:t,loading:n,selectedProducts:y,onToggleProduct:f,styles:e,showLimitedColumns:v}),h.jsx(I1,{selectedCount:y.length,selectedProducts:m,styles:e})]})}function $1(){const e=at(),t=rt(e.breakpoints.down("sm")),r=Pi(),[n,o]=z.useState(!0),i=()=>{r("/empty-products")},s=()=>{console.log("Sync Now clicked")},l=()=>{console.log("Setup Sync clicked")},c=()=>{console.log("Manage Shared Catalogs clicked")};return h.jsxs(N,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:t?2:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:2},children:[h.jsxs(N,{onClick:i,sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},children:[h.jsx(P1,{size:18}),h.jsx(B,{sx:{fontSize:"14px",color:"inherit"},children:"Back"})]}),h.jsx(It,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(B,{sx:{fontSize:"14px",color:"#666"},children:"Products"}),h.jsx(Ha,{size:16,color:"#999"}),h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#000"},children:"Settings"})]})]}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(pa,{size:"small",sx:{color:"#666"},children:h.jsx(T1,{size:20})}),h.jsx(N,{sx:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:h.jsx(Qf,{size:16,color:"#fff"})})]})]}),h.jsxs(N,{sx:{maxWidth:600,mx:"auto",px:t?2:4,py:3},children:[h.jsxs(N,{sx:{mb:3},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5,mb:1.5},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333"},children:"General"}),h.jsx(B,{sx:{fontSize:"12px",color:"#999"},children:"2"})]}),h.jsxs(N,{onClick:c,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(N,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(k1,{size:18,color:"#666"})}),h.jsxs(N,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Manage Shared Catalogs"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"4 shared"})]})]}),h.jsx(Ha,{size:20,color:"#999"})]}),h.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(N,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(Qf,{size:18,color:"#666"})}),h.jsxs(N,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Aira AI"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"Make your workflows faster and smarter"})]})]}),h.jsx(Hf,{checked:n,onChange:u=>o(u.target.checked),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}})]})]}),h.jsxs(N,{children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333"},children:"Sync"}),h.jsx(B,{sx:{fontSize:"12px",color:"#999"},children:"2"})]}),h.jsxs(N,{onClick:s,sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},children:[h.jsx(Jf,{size:14}),h.jsx(B,{sx:{fontSize:"12px"},children:"Sync Now"})]})]}),h.jsxs(N,{onClick:l,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#F3F8FF",border:"1px solid #2D64B8",borderRadius:2,px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#dbeafe"}},children:[h.jsxs(N,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(N,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(Jf,{size:18,color:"#454545"})}),h.jsxs(N,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Setup Sync"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"Sync products"})]})]}),h.jsx(Ha,{size:20,color:"#888"})]})]})]})]})}function R1(){return h.jsxs(Qp,{children:[h.jsx(Fr,{path:"/",element:h.jsx(A1,{})}),h.jsx(Fr,{path:"/product/:id",element:h.jsx(Eb,{})}),h.jsx(Fr,{path:"/settings",element:h.jsx($1,{})}),h.jsx(Fr,{path:"/empty-products",element:h.jsx(Yf,{})})]})}const D1=()=>h.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:h.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:r="/"})=>h.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:h.jsx(Sb,{apiUrl:e,authToken:t,children:h.jsx(Vh,{store:lu,children:h.jsx(Xh.PersistGate,{loading:h.jsx(D1,{}),persistor:xb,children:h.jsx(fh,{basename:r,children:h.jsx(R1,{})})})})})})}));
470
+ `;console.log("Generated stickers HTML length:",f.length),console.log("Generated HTML content length:",m.length);try{o.document.open(),o.document.write(m),o.document.close(),console.log("HTML written successfully to print window")}catch(E){console.error("Error writing to print window:",E),alert("Error generating print preview. Please check console for details.")}},Ya=({open:e,onClose:t,selectedProducts:r=[]})=>{const o=Na().promoPrintModal,[i,s]=z.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,c]=z.useState("design1"),[u,d]=z.useState("A5"),p=y=>{s(g=>({...g,[y]:!g[y]}))},b=()=>{if(console.log("=== PRINT BUTTON CLICKED ==="),console.log("Selected Products:",r),console.log("Print triggered with:",{selectedDesign:l,sheetSize:u,itemsToShow:i,productsCount:r.length}),!r||r.length===0){alert("No products selected. Please select products first.");return}console.log("Calling printPromoDesigns..."),A1({selectedProducts:r,selectedDesign:l,sheetSize:u,itemsToShow:i}),t()};return h.jsxs($f,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:o.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[h.jsx(Mf,{children:h.jsxs(_,{sx:o.header,children:[h.jsx(B,{variant:"h6",fontWeight:600,children:"Promo Print"}),h.jsx(ha,{onClick:t,size:"small",children:h.jsx(Ha,{size:20})})]})}),h.jsxs(Df,{sx:o.content,children:[h.jsxs(_,{sx:o.section,children:[h.jsx(B,{sx:o.sectionTitle,children:"Items to show"}),h.jsxs(_,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[h.jsx(kn,{control:h.jsx(ct,{checked:i.productName,onChange:()=>p("productName"),size:"small"}),label:"Product Name",sx:o.checkboxLabel}),h.jsx(kn,{control:h.jsx(ct,{checked:i.percentOff,onChange:()=>p("percentOff"),size:"small"}),label:"Percent OFF",sx:o.checkboxLabel}),h.jsx(kn,{control:h.jsx(ct,{checked:i.mrp,onChange:()=>p("mrp"),size:"small"}),label:"MRP",sx:o.checkboxLabel}),h.jsx(kn,{control:h.jsx(ct,{checked:i.discountPrice,onChange:()=>p("discountPrice"),size:"small"}),label:"Discount Price",sx:o.checkboxLabel})]})]}),h.jsxs(_,{sx:o.section,children:[h.jsx(B,{sx:o.sectionTitle,children:"Promo Design"}),h.jsxs(_,{sx:o.designContainer,children:[h.jsxs(_,{onClick:()=>c("design1"),sx:{...o.designCard.base,...l==="design1"?o.designCard.selected:o.designCard.unselected},children:[h.jsxs(_,{sx:o.design1.topSection,children:[h.jsx(B,{sx:{...o.design1.saveText,visibility:i.percentOff?"visible":"hidden"},children:"SAVE"}),h.jsxs(B,{sx:{...o.design1.percentText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design1.percentSymbol,children:"%"})]})]}),h.jsxs(_,{sx:o.design1.bottomSection,children:[h.jsxs(_,{sx:{...o.design1.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design1.priceText,...o.design1.ourPrice,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design1.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),h.jsx(B,{sx:{...o.design1.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]})]}),h.jsxs(_,{onClick:()=>c("design2"),sx:{...o.designCard.base,...l==="design2"?o.designCard.selected:o.designCard.unselected},children:[h.jsxs(_,{sx:o.design2.topSection,children:[h.jsxs(B,{sx:{...o.design2.percentOffText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design2.percentSymbol,children:"%"})," OFF"]}),h.jsx(B,{sx:{...o.design2.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"})]}),h.jsxs(_,{sx:{...o.design2.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design2.priceText,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design2.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]})]}),h.jsxs(_,{onClick:()=>c("design3"),sx:{...o.designCard.base,...l==="design3"?o.designCard.selected:o.designCard.unselected},children:[h.jsx(B,{sx:{...o.design3.productName,visibility:i.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),h.jsxs(_,{sx:{...o.design3.priceRow,visibility:i.discountPrice||i.mrp?"visible":"hidden"},children:[h.jsx(B,{sx:{...o.design3.priceText,visibility:i.discountPrice?"visible":"hidden"},children:"OUR PRICE: ₹1387"}),h.jsx(B,{sx:{...o.design3.priceText,visibility:i.mrp?"visible":"hidden"},children:"MRP: ₹1460"})]}),h.jsxs(B,{sx:{...o.design3.percentOffText,visibility:i.percentOff?"visible":"hidden"},children:["5",h.jsx(B,{component:"span",sx:o.design3.percentSymbol,children:"%"})," OFF"]})]})]})]}),h.jsxs(_,{children:[h.jsxs(_,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},children:[h.jsx(B,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"}),h.jsx(B,{variant:"caption",color:"text.secondary",children:"Stickers per sheet: 20"})]}),h.jsx(_,{sx:o.sheetSizeGroup,children:["A2","A3","A4","A5","A7"].map(y=>h.jsx(_,{onClick:()=>d(y),sx:{...o.sheetSizeBtn,...u===y?o.sheetSizeBtnSelected:{}},children:h.jsx(B,{variant:"body2",textAlign:"center",children:y})},y))})]})]}),h.jsx(Rf,{sx:{px:3,pb:2},children:h.jsx(Wt,{type:"button",onClick:b,variant:"contained",sx:o.printButton,children:"Print"})})]})},$1=({selectedCount:e,selectedProducts:t=[],styles:r})=>{const[n,o]=z.useState(!1),i=at(),s=rt(i.breakpoints.down("sm")),l=rt(i.breakpoints.between("sm","md")),c=_r(),u=Dn(),d=s?c:l?u:r;return!e||e===0||!r||!r.floatingActions?null:s?h.jsxs(h.Fragment,{children:[h.jsxs(_,{sx:d.floatingActions.root,children:[h.jsxs(B,{sx:d.floatingActions.countText,children:[e," items selected"]}),h.jsxs(_,{sx:d.floatingActions.buttonRow,children:[h.jsxs(Wt,{onClick:()=>o(!0),sx:d.floatingActions.btn,children:[h.jsx(zn,{size:18}),"Promo Print"]}),h.jsxs(Wt,{sx:d.floatingActions.btn,children:[h.jsx(jn,{size:18}),"Create Catalog"]})]})]}),h.jsx(Ya,{open:n,onClose:()=>o(!1),selectedProducts:t})]}):l?h.jsxs(h.Fragment,{children:[h.jsx(_,{sx:d.floatingActions.root,children:h.jsxs(_,{sx:d.floatingActions.inner,children:[h.jsxs(B,{sx:d.floatingActions.count,children:[e," items selected"]}),h.jsx(_,{sx:d.floatingActions.divider}),h.jsxs(Wt,{sx:d.floatingActions.btn,onClick:()=>o(!0),children:[h.jsx(zn,{size:16}),h.jsx("span",{children:"Promo Print"})]}),h.jsxs(Wt,{sx:d.floatingActions.btn,children:[h.jsx(jn,{size:16}),h.jsx("span",{children:"Create Catalog"})]})]})}),h.jsx(Ya,{open:n,onClose:()=>o(!1),selectedProducts:t})]}):h.jsxs(h.Fragment,{children:[h.jsx(_,{sx:r.floatingActions.root,children:h.jsxs(_,{sx:r.floatingActions.inner,children:[h.jsxs(B,{sx:r.floatingActions.count,children:[e," items selected"]}),h.jsxs(Wt,{sx:{...r.floatingActions.btn},onClick:()=>o(!0),children:[h.jsx(zn,{size:16}),h.jsx("span",{children:"Promo Print"})]}),h.jsxs(Wt,{sx:r.floatingActions.btn,children:[h.jsx(jn,{size:16}),h.jsx("span",{children:"Create Catalog"})]})]})}),h.jsx(Ya,{open:n,onClose:()=>o(!1),selectedProducts:t})]})};function R1(){const e=Na(),[t,r]=z.useState([]),[n,o]=z.useState(!0),[i,s]=z.useState({category:"all",status:"all",search:"",store:["all"]}),l=Jh(w=>w.products),{productIds:c=[],productsById:u={},loading:d}=l||{};console.log(c,"productIds we get at page");const p=Kh();z.useEffect(()=>{p(Eo())},[p]),z.useEffect(()=>{requestAnimationFrame(()=>{if(c.length){let T=c.map(P=>u[P]).filter(P=>P&&P.id);i.store&&Array.isArray(i.store)&&!i.store.includes("all")&&(T=T.filter(P=>i.store.includes(String(P.storeId)))),r(T),o(!1)}else r([]),o(d)})},[c,u,d,i.store]);const b=w=>{s(w)},[y,g]=z.useState([]),f=w=>{g(T=>T.includes(w)?T.filter(P=>P!==w):[...T,w])},m=t.filter(w=>y.includes(w.id)),E={};Object.values(u).forEach(w=>{w.storeId&&w.storeName&&(E[w.storeId]=w.storeName)});const O=[{id:"all",name:"All Stores"},...Object.entries(E).map(([w,T])=>({id:w,name:T}))],S=Array.isArray(i.store)?i.store:[],x=S.length===0||S.includes("all")||S.length>1;return h.jsxs("div",{className:"app-container",children:[h.jsx(S1,{styles:e,onFilterChange:b,filters:i,stores:O}),t.length>0&&h.jsx(I1,{products:t,styles:e}),h.jsx(JE,{products:t,loading:n,selectedProducts:y,onToggleProduct:f,styles:e,showLimitedColumns:x}),h.jsx($1,{selectedCount:y.length,selectedProducts:m,styles:e})]})}function D1(){const e=at(),t=rt(e.breakpoints.down("sm")),r=ki(),[n,o]=z.useState(!0),i=()=>{r("/empty-products")},s=()=>{console.log("Sync Now clicked")},l=()=>{console.log("Setup Sync clicked")},c=()=>{console.log("Manage Shared Catalogs clicked")};return h.jsxs(_,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa"},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",px:t?2:3,py:1.5,bgcolor:"#fff",borderBottom:"1px solid #e8e8e8"},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:2},children:[h.jsxs(_,{onClick:i,sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#666","&:hover":{color:"#333"}},children:[h.jsx(N1,{size:18}),h.jsx(B,{sx:{fontSize:"14px",color:"inherit"},children:"Back"})]}),h.jsx(At,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(B,{sx:{fontSize:"14px",color:"#666"},children:"Products"}),h.jsx(qa,{size:16,color:"#999"}),h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#000"},children:"Settings"})]})]}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(ha,{size:"small",sx:{color:"#666"},children:h.jsx(k1,{size:20})}),h.jsx(_,{sx:{width:32,height:32,borderRadius:"50%",bgcolor:"#3b82f6",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:h.jsx(tp,{size:16,color:"#fff"})})]})]}),h.jsxs(_,{sx:{maxWidth:600,mx:"auto",px:t?2:4,py:3},children:[h.jsxs(_,{sx:{mb:3},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:.5,mb:1.5},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333"},children:"General"}),h.jsx(B,{sx:{fontSize:"12px",color:"#999"},children:"2"})]}),h.jsxs(_,{onClick:c,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5,mb:1.5,cursor:"pointer","&:hover":{bgcolor:"#fafafa"}},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(_,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(_1,{size:18,color:"#666"})}),h.jsxs(_,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Manage Shared Catalogs"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"4 shared"})]})]}),h.jsx(qa,{size:20,color:"#999"})]}),h.jsxs(_,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#fff",border:"1px solid #e8e8e8",borderRadius:2,px:2,py:1.5},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(_,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(tp,{size:18,color:"#666"})}),h.jsxs(_,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Aira AI"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"Make your workflows faster and smarter"})]})]}),h.jsx(Kf,{checked:n,onChange:u=>o(u.target.checked),sx:{"& .MuiSwitch-switchBase.Mui-checked":{color:"#3b82f6"},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:"#3b82f6"}}})]})]}),h.jsxs(_,{children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:1.5},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:.5},children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:600,color:"#333"},children:"Sync"}),h.jsx(B,{sx:{fontSize:"12px",color:"#999"},children:"2"})]}),h.jsxs(_,{onClick:s,sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer",color:"#888","&:hover":{color:"#3b82f6"}},children:[h.jsx(ep,{size:14}),h.jsx(B,{sx:{fontSize:"12px"},children:"Sync Now"})]})]}),h.jsxs(_,{onClick:l,sx:{display:"flex",alignItems:"center",justifyContent:"space-between",bgcolor:"#F3F8FF",border:"1px solid #2D64B8",borderRadius:2,px:2,py:1.5,cursor:"pointer","&:hover":{bgcolor:"#dbeafe"}},children:[h.jsxs(_,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[h.jsx(_,{sx:{width:36,height:36,borderRadius:1,display:"flex",alignItems:"center",justifyContent:"center"},children:h.jsx(ep,{size:18,color:"#454545"})}),h.jsxs(_,{children:[h.jsx(B,{sx:{fontSize:"14px",fontWeight:700,color:"#000"},children:"Setup Sync"}),h.jsx(B,{sx:{fontSize:"12px",color:"#888"},children:"Sync products"})]})]}),h.jsx(qa,{size:20,color:"#888"})]})]})]})]})}function M1(){return h.jsxs(th,{children:[h.jsx(Fr,{path:"/",element:h.jsx(R1,{})}),h.jsx(Fr,{path:"/product/:id",element:h.jsx(Ob,{})}),h.jsx(Fr,{path:"/settings",element:h.jsx(D1,{})}),h.jsx(Fr,{path:"/empty-products",element:h.jsx(Xf,{})})]})}const j1=()=>h.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:h.jsx("div",{children:"Loading..."})}),z1=({apiUrl:e,authToken:t,auth:r=null,basePath:n="/",onAllStoresClick:o,onStoreSelect:i,StoresModal:s,storesModalProps:l={}})=>h.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:h.jsx(Cb,{apiUrl:e,authToken:t,auth:r,onAllStoresClick:o,onStoreSelect:i,StoresModal:s,storesModalProps:l,children:h.jsx(Hh,{store:cu,children:h.jsx(Zh.PersistGate,{loading:h.jsx(j1,{}),persistor:Eb,children:h.jsx(gh,{basename:n,children:h.jsx(M1,{})})})})})});dt.default=z1,dt.useApiContext=du,Object.defineProperties(dt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
471
471
  //# sourceMappingURL=product-app.umd.js.map