@attabot/product-app 1.0.18 → 1.0.19
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.
- package/dist/product-app.js +13151 -11507
- package/dist/product-app.js.map +1 -1
- package/dist/product-app.umd.js +132 -141
- package/dist/product-app.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/product-app.umd.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
(function(F,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react/jsx-runtime","react-dom"],d):(F=typeof globalThis<"u"?globalThis:F||self,F.ProductApp=d(F.React,F["react/jsx-runtime"],F.ReactDOM))})(this,(function(F,d,Hr){"use strict";var Sa=typeof document<"u"?document.currentScript:null;function md(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=md(F),um=md(Hr);function qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qr.apply(this,arguments)}var _n;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(_n||(_n={}));const yd="popstate";function pm(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:a,hash:l}=r.location;return wa("",{pathname:s,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Yr(o)}return hm(t,n,null,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function _t(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fm(){return Math.random().toString(36).substr(2,8)}function bd(e,t){return{usr:e.state,key:e.key,idx:t}}function wa(e,t,n,r){return n===void 0&&(n=null),qr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?gr(t):t,{state:n,key:t&&t.key||r||fm()})}function Yr(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function gr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function hm(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,a=o.history,l=_n.Pop,c=null,f=u();f==null&&(f=0,a.replaceState(qr({},a.state,{idx:f}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=_n.Pop;let y=u(),x=y==null?null:y-f;f=y,c&&c({action:l,location:p.location,delta:x})}function b(y,x){l=_n.Push;let w=wa(p.location,y,x);f=u()+1;let S=bd(w,f),v=p.createHref(w);try{a.pushState(S,"",v)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(v)}s&&c&&c({action:l,location:p.location,delta:1})}function m(y,x){l=_n.Replace;let w=wa(p.location,y,x);f=u();let S=bd(w,f),v=p.createHref(w);a.replaceState(S,"",v),s&&c&&c({action:l,location:p.location,delta:0})}function g(y){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof y=="string"?y:Yr(y);return w=w.replace(/ $/,"%20"),ve(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let p={get action(){return l},get location(){return e(o,a)},listen(y){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(yd,h),c=y,()=>{o.removeEventListener(yd,h),c=null}},createHref(y){return t(o,y)},createURL:g,encodeLocation(y){let x=g(y);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:b,replace:m,go(y){return a.go(y)}};return p}var vd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(vd||(vd={}));function gm(e,t,n){return n===void 0&&(n="/"),mm(e,t,n)}function mm(e,t,n,r){let o=typeof t=="string"?gr(t):t,s=Mn(o.pathname||"/",n);if(s==null)return null;let a=xd(e);ym(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let f=km(s);l=Om(a[c],f)}return l}function xd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&(ve(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=mn([r,c.relativePath]),u=n.concat(c);s.children&&s.children.length>0&&(ve(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),xd(s.children,t,u,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:Em(f,s.index),routesMeta:u})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))o(s,a);else for(let c of Sd(s.path))o(s,a,c)}),t}function Sd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let a=Sd(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function ym(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Tm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const bm=/^:[\w-]+$/,vm=3,xm=2,Sm=1,wm=10,Cm=-2,wd=e=>e==="*";function Em(e,t){let n=e.split("/"),r=n.length;return n.some(wd)&&(r+=Cm),t&&(r+=xm),n.filter(o=>!wd(o)).reduce((o,s)=>o+(bm.test(s)?vm:s===""?Sm:wm),r)}function Tm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Om(e,t,n){let{routesMeta:r}=e,o={},s="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],f=l===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Ca({path:c.relativePath,caseSensitive:c.caseSensitive,end:f},u),b=c.route;if(!h)return null;Object.assign(o,h.params),a.push({params:o,pathname:mn([s,h.pathname]),pathnameBase:Mm(mn([s,h.pathnameBase])),route:b}),h.pathnameBase!=="/"&&(s=mn([s,h.pathnameBase]))}return a}function Ca(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Pm(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],a=s.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((f,u,h)=>{let{paramName:b,isOptional:m}=u;if(b==="*"){let p=l[h]||"";a=s.slice(0,s.length-p.length).replace(/(.)\/+$/,"$1")}const g=l[h];return m&&!g?f[b]=void 0:f[b]=(g||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:a,pattern:e}}function Pm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_t(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function km(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _t(!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 Mn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Nm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Im=e=>Nm.test(e);function Am(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?gr(e):e,s;if(n)if(Im(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),_t(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Cd(n.substring(1),"/"):s=Cd(n,t)}else s=t;return{pathname:s,search:$m(r),hash:Dm(o)}}function Cd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ea(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _m(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ed(e,t){let n=_m(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Td(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=gr(e):(o=qr({},e),ve(!o.pathname||!o.pathname.includes("?"),Ea("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),Ea("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),Ea("#","search","hash",o)));let s=e===""||o.pathname==="",a=s?"/":o.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let b=a.split("/");for(;b[0]==="..";)b.shift(),h-=1;o.pathname=b.join("/")}l=h>=0?t[h]:"/"}let c=Am(o,l),f=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||u)&&(c.pathname+="/"),c}const mn=e=>e.join("/").replace(/\/\/+/g,"/"),Mm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$m=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Fm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Od=["post","put","patch","delete"];new Set(Od);const jm=["get",...Od];new Set(jm);function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}const Gr=E.createContext(null);process.env.NODE_ENV!=="production"&&(Gr.displayName="DataRouter");const Ta=E.createContext(null);process.env.NODE_ENV!=="production"&&(Ta.displayName="DataRouterState");const zm=E.createContext(null);process.env.NODE_ENV!=="production"&&(zm.displayName="Await");const Rt=E.createContext(null);process.env.NODE_ENV!=="production"&&(Rt.displayName="Navigation");const Jr=E.createContext(null);process.env.NODE_ENV!=="production"&&(Jr.displayName="Location");const yn=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(yn.displayName="Route");const Oa=E.createContext(null);process.env.NODE_ENV!=="production"&&(Oa.displayName="RouteError");function Lm(e,t){let{relative:n}=t===void 0?{}:t;Xr()||(process.env.NODE_ENV!=="production"?ve(!1,"useHref() may be used only in the context of a <Router> component."):ve(!1));let{basename:r,navigator:o}=E.useContext(Rt),{hash:s,pathname:a,search:l}=Qr(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:mn([r,a])),o.createHref({pathname:c,search:l,hash:s})}function Xr(){return E.useContext(Jr)!=null}function bt(){return Xr()||(process.env.NODE_ENV!=="production"?ve(!1,"useLocation() may be used only in the context of a <Router> component."):ve(!1)),E.useContext(Jr).location}const Pd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kd(e){E.useContext(Rt).static||E.useLayoutEffect(e)}function lt(){let{isDataRoute:e}=E.useContext(yn);return e?Zm():Bm()}function Bm(){Xr()||(process.env.NODE_ENV!=="production"?ve(!1,"useNavigate() may be used only in the context of a <Router> component."):ve(!1));let e=E.useContext(Gr),{basename:t,future:n,navigator:r}=E.useContext(Rt),{matches:o}=E.useContext(yn),{pathname:s}=bt(),a=JSON.stringify(Ed(o,n.v7_relativeSplatPath)),l=E.useRef(!1);return kd(()=>{l.current=!0}),E.useCallback(function(f,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&_t(l.current,Pd),!l.current)return;if(typeof f=="number"){r.go(f);return}let h=Td(f,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:mn([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}function Qr(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Rt),{matches:o}=E.useContext(yn),{pathname:s}=bt(),a=JSON.stringify(Ed(o,r.v7_relativeSplatPath));return E.useMemo(()=>Td(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function Rm(e,t){return Wm(e,t)}function Wm(e,t,n,r){Xr()||(process.env.NODE_ENV!=="production"?ve(!1,"useRoutes() may be used only in the context of a <Router> component."):ve(!1));let{navigator:o}=E.useContext(Rt),{matches:s}=E.useContext(yn),a=s[s.length-1],l=a?a.params:{},c=a?a.pathname:"/",f=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";Ad(c,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+c+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
1
|
+
(function(F,d){typeof exports=="object"&&typeof module<"u"?module.exports=d(require("react"),require("react/jsx-runtime"),require("react-dom")):typeof define=="function"&&define.amd?define(["react","react/jsx-runtime","react-dom"],d):(F=typeof globalThis<"u"?globalThis:F||self,F.ProductApp=d(F.React,F["react/jsx-runtime"],F.ReactDOM))})(this,(function(F,d,lo){"use strict";var La=typeof document<"u"?document.currentScript:null;function _d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const E=_d(F),_m=_d(lo);function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(this,arguments)}var Rn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rn||(Rn={}));const $d="popstate";function $m(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:a,hash:l}=r.location;return za("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:uo(i)}return Fm(t,n,null,e)}function ke(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function zt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Dm(){return Math.random().toString(36).substr(2,8)}function Dd(e,t){return{usr:e.state,key:e.key,idx:t}}function za(e,t,n,r){return n===void 0&&(n=null),co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tr(t):t,{state:n,key:t&&t.key||r||Dm()})}function uo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Fm(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Rn.Pop,c=null,p=u();p==null&&(p=0,a.replaceState(co({},a.state,{idx:p}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=Rn.Pop;let m=u(),y=m==null?null:m-p;p=m,c&&c({action:l,location:f.location,delta:y})}function v(m,y){l=Rn.Push;let w=za(f.location,m,y);p=u()+1;let x=Dd(w,p),S=f.createHref(w);try{a.pushState(x,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(S)}s&&c&&c({action:l,location:f.location,delta:1})}function b(m,y){l=Rn.Replace;let w=za(f.location,m,y);p=u();let x=Dd(w,p),S=f.createHref(w);a.replaceState(x,"",S),s&&c&&c({action:l,location:f.location,delta:0})}function g(m){let y=i.location.origin!=="null"?i.location.origin:i.location.href,w=typeof m=="string"?m:uo(m);return w=w.replace(/ $/,"%20"),ke(y,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,y)}let f={get action(){return l},get location(){return e(i,a)},listen(m){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener($d,h),c=m,()=>{i.removeEventListener($d,h),c=null}},createHref(m){return t(i,m)},createURL:g,encodeLocation(m){let y=g(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:v,replace:b,go(m){return a.go(m)}};return f}var Fd;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Fd||(Fd={}));function jm(e,t,n){return n===void 0&&(n="/"),Lm(e,t,n)}function Lm(e,t,n,r){let i=typeof t=="string"?Tr(t):t,s=Wn(i.pathname||"/",n);if(s==null)return null;let a=jd(e);zm(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let p=Xm(s);l=Km(a[c],p)}return l}function jd(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&(ke(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let p=On([r,c.relativePath]),u=n.concat(c);s.children&&s.children.length>0&&(ke(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+p+'".')),jd(s.children,t,u,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:qm(p,s.index),routesMeta:u})};return e.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let c of Ld(s.path))i(s,a,c)}),t}function Ld(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=Ld(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),i&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function zm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ym(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Bm=/^:[\w-]+$/,Rm=3,Wm=2,Vm=1,Um=10,Hm=-2,zd=e=>e==="*";function qm(e,t){let n=e.split("/"),r=n.length;return n.some(zd)&&(r+=Hm),t&&(r+=Wm),n.filter(i=>!zd(i)).reduce((i,s)=>i+(Bm.test(s)?Rm:s===""?Vm:Um),r)}function Ym(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function Km(e,t,n){let{routesMeta:r}=e,i={},s="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],p=l===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",h=Ba({path:c.relativePath,caseSensitive:c.caseSensitive,end:p},u),v=c.route;if(!h)return null;Object.assign(i,h.params),a.push({params:i,pathname:On([s,h.pathname]),pathnameBase:ty(On([s,h.pathnameBase])),route:v}),h.pathnameBase!=="/"&&(s=On([s,h.pathnameBase]))}return a}function Ba(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gm(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((p,u,h)=>{let{paramName:v,isOptional:b}=u;if(v==="*"){let f=l[h]||"";a=s.slice(0,s.length-f.length).replace(/(.)\/+$/,"$1")}const g=l[h];return b&&!g?p[v]=void 0:p[v]=(g||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:a,pattern:e}}function Gm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function Xm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zt(!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 Wn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Jm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qm=e=>Jm.test(e);function Zm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Tr(e):e,s;if(n)if(Qm(n))s=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),zt(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?s=Bd(n.substring(1),"/"):s=Bd(n,t)}else s=t;return{pathname:s,search:ny(r),hash:ry(i)}}function Bd(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Ra(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function ey(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rd(e,t){let n=ey(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Tr(e):(i=co({},e),ke(!i.pathname||!i.pathname.includes("?"),Ra("?","pathname","search",i)),ke(!i.pathname||!i.pathname.includes("#"),Ra("#","pathname","hash",i)),ke(!i.search||!i.search.includes("#"),Ra("#","search","hash",i)));let s=e===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),h-=1;i.pathname=v.join("/")}l=h>=0?t[h]:"/"}let c=Zm(i,l),p=a&&a!=="/"&&a.endsWith("/"),u=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(p||u)&&(c.pathname+="/"),c}const On=e=>e.join("/").replace(/\/\/+/g,"/"),ty=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ny=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ry=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oy(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vd=["post","put","patch","delete"];new Set(Vd);const iy=["get",...Vd];new Set(iy);function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},po.apply(this,arguments)}const fo=E.createContext(null);process.env.NODE_ENV!=="production"&&(fo.displayName="DataRouter");const Wa=E.createContext(null);process.env.NODE_ENV!=="production"&&(Wa.displayName="DataRouterState");const sy=E.createContext(null);process.env.NODE_ENV!=="production"&&(sy.displayName="Await");const Gt=E.createContext(null);process.env.NODE_ENV!=="production"&&(Gt.displayName="Navigation");const ho=E.createContext(null);process.env.NODE_ENV!=="production"&&(ho.displayName="Location");const Pn=E.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Pn.displayName="Route");const Va=E.createContext(null);process.env.NODE_ENV!=="production"&&(Va.displayName="RouteError");function ay(e,t){let{relative:n}=t===void 0?{}:t;go()||(process.env.NODE_ENV!=="production"?ke(!1,"useHref() may be used only in the context of a <Router> component."):ke(!1));let{basename:r,navigator:i}=E.useContext(Gt),{hash:s,pathname:a,search:l}=mo(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:On([r,a])),i.createHref({pathname:c,search:l,hash:s})}function go(){return E.useContext(ho)!=null}function Tt(){return go()||(process.env.NODE_ENV!=="production"?ke(!1,"useLocation() may be used only in the context of a <Router> component."):ke(!1)),E.useContext(ho).location}const Ud="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Hd(e){E.useContext(Gt).static||E.useLayoutEffect(e)}function gt(){let{isDataRoute:e}=E.useContext(Pn);return e?Sy():ly()}function ly(){go()||(process.env.NODE_ENV!=="production"?ke(!1,"useNavigate() may be used only in the context of a <Router> component."):ke(!1));let e=E.useContext(fo),{basename:t,future:n,navigator:r}=E.useContext(Gt),{matches:i}=E.useContext(Pn),{pathname:s}=Tt(),a=JSON.stringify(Rd(i,n.v7_relativeSplatPath)),l=E.useRef(!1);return Hd(()=>{l.current=!0}),E.useCallback(function(p,u){if(u===void 0&&(u={}),process.env.NODE_ENV!=="production"&&zt(l.current,Ud),!l.current)return;if(typeof p=="number"){r.go(p);return}let h=Wd(p,JSON.parse(a),s,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:On([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,s,e])}function mo(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Gt),{matches:i}=E.useContext(Pn),{pathname:s}=Tt(),a=JSON.stringify(Rd(i,r.v7_relativeSplatPath));return E.useMemo(()=>Wd(e,JSON.parse(a),s,n==="path"),[e,a,s,n])}function cy(e,t){return dy(e,t)}function dy(e,t,n,r){go()||(process.env.NODE_ENV!=="production"?ke(!1,"useRoutes() may be used only in the context of a <Router> component."):ke(!1));let{navigator:i}=E.useContext(Gt),{matches:s}=E.useContext(Pn),a=s[s.length-1],l=a?a.params:{},c=a?a.pathname:"/",p=a?a.pathnameBase:"/",u=a&&a.route;if(process.env.NODE_ENV!=="production"){let w=u&&u.path||"";Kd(c,!u||w.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+c+'" (under <Route path="'+w+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
2
|
|
|
3
|
-
`+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=bt(),b;if(t){var m;let w=typeof t=="string"?gr(t):t;f==="/"||(m=w.pathname)!=null&&m.startsWith(f)||(process.env.NODE_ENV!=="production"?ve(!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 "'+f+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):ve(!1)),b=w}else b=h;let g=b.pathname||"/",p=g;if(f!=="/"){let w=f.replace(/^\//,"").split("/");p="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let y=gm(e,{pathname:p});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&_t(u||y!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&_t(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.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 x=Ym(y&&y.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:mn([f,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:mn([f,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&x?E.createElement(Jr.Provider,{value:{location:Kr({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:_n.Pop}},x):x}function Vm(){let e=Qm(),t=Fm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,a)}const Um=E.createElement(Vm,null);class Hm extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(yn.Provider,{value:this.props.routeContext},E.createElement(Oa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qm(e){let{routeContext:t,match:n,children:r}=e,o=E.useContext(Gr);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(yn.Provider,{value:t},r)}function Ym(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?ve(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):ve(!1)),a=a.slice(0,Math.min(a.length,u+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=u),h.route.id){let{loaderData:b,errors:m}=n,g=h.route.loader&&b[h.route.id]===void 0&&(!m||m[h.route.id]===void 0);if(h.route.lazy||g){c=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((u,h,b)=>{let m,g=!1,p=null,y=null;n&&(m=l&&h.route.id?l[h.route.id]:void 0,p=h.route.errorElement||Um,c&&(f<0&&b===0?(Ad("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,y=null):f===b&&(g=!0,y=h.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,b+1)),w=()=>{let S;return m?S=p:g?S=y:h.route.Component?S=E.createElement(h.route.Component,null):h.route.element?S=h.route.element:S=u,E.createElement(qm,{match:h,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:S})};return n&&(h.route.ErrorBoundary||h.route.errorElement||b===0)?E.createElement(Hm,{location:n.location,revalidation:n.revalidation,component:p,error:m,children:w(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):w()},null)}var Nd=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(Nd||{}),Zr=(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})(Zr||{});function Pa(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function Km(e){let t=E.useContext(Gr);return t||(process.env.NODE_ENV!=="production"?ve(!1,Pa(e)):ve(!1)),t}function Gm(e){let t=E.useContext(Ta);return t||(process.env.NODE_ENV!=="production"?ve(!1,Pa(e)):ve(!1)),t}function Jm(e){let t=E.useContext(yn);return t||(process.env.NODE_ENV!=="production"?ve(!1,Pa(e)):ve(!1)),t}function ka(e){let t=Jm(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?ve(!1,e+' can only be used on routes that contain a unique "id"'):ve(!1)),n.route.id}function Xm(){return ka(Zr.UseRouteId)}function Qm(){var e;let t=E.useContext(Oa),n=Gm(Zr.UseRouteError),r=ka(Zr.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Zm(){let{router:e}=Km(Nd.UseNavigateStable),t=ka(Zr.UseNavigateStable),n=E.useRef(!1);return kd(()=>{n.current=!0}),E.useCallback(function(o,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&_t(n.current,Pd),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Kr({fromRouteId:t},s)))},[e,t])}const Id={};function Ad(e,t,n){!t&&!Id[e]&&(Id[e]=!0,process.env.NODE_ENV!=="production"&&_t(!1,n))}const _d={};function ey(e,t){process.env.NODE_ENV!=="production"&&!_d[t]&&(_d[t]=!0,console.warn(t))}const Md=(e,t,n)=>ey(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function ty(e,t){e?.v7_startTransition===void 0&&Md("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&&Md("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function $n(e){process.env.NODE_ENV!=="production"?ve(!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>."):ve(!1)}function ny(e){let{basename:t="/",children:n=null,location:r,navigationType:o=_n.Pop,navigator:s,static:a=!1,future:l}=e;Xr()&&(process.env.NODE_ENV!=="production"?ve(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):ve(!1));let c=t.replace(/^\/*/,"/"),f=E.useMemo(()=>({basename:c,navigator:s,static:a,future:Kr({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=gr(r));let{pathname:u="/",search:h="",hash:b="",state:m=null,key:g="default"}=r,p=E.useMemo(()=>{let y=Mn(u,c);return y==null?null:{location:{pathname:y,search:h,hash:b,state:m,key:g},navigationType:o}},[c,u,h,b,m,g,o]);return process.env.NODE_ENV!=="production"&&_t(p!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+u+h+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),p==null?null:E.createElement(Rt.Provider,{value:f},E.createElement(Jr.Provider,{children:n,value:p}))}function ry(e){let{children:t,location:n}=e;return Rm(Na(t),n)}new Promise(()=>{});function Na(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,o)=>{if(!E.isValidElement(r))return;let s=[...t,o];if(r.type===E.Fragment){n.push.apply(n,Na(r.props.children,s));return}r.type!==$n&&(process.env.NODE_ENV!=="production"?ve(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):ve(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?ve(!1,"An index route cannot have child routes."):ve(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Na(r.props.children,s)),n.push(a)}),n}function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mr.apply(this,arguments)}function Ia(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const bi="get",vi="application/x-www-form-urlencoded";function xi(e){return e!=null&&typeof e.tagName=="string"}function oy(e){return xi(e)&&e.tagName.toLowerCase()==="button"}function iy(e){return xi(e)&&e.tagName.toLowerCase()==="form"}function sy(e){return xi(e)&&e.tagName.toLowerCase()==="input"}function ay(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ly(e,t){return e.button===0&&(!t||t==="_self")&&!ay(e)}function Aa(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function cy(e,t){let n=Aa(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(s=>{n.append(o,s)})}),n}let Si=null;function dy(){if(Si===null)try{new FormData(document.createElement("form"),0),Si=!1}catch{Si=!0}return Si}const uy=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _a(e){return e!=null&&!uy.has(e)?(process.env.NODE_ENV!=="production"&&_t(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+vi+'"')),null):e}function py(e,t){let n,r,o,s,a;if(iy(e)){let l=e.getAttribute("action");r=l?Mn(l,t):null,n=e.getAttribute("method")||bi,o=_a(e.getAttribute("enctype"))||vi,s=new FormData(e)}else if(oy(e)||sy(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(r=c?Mn(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||bi,o=_a(e.getAttribute("formenctype"))||_a(l.getAttribute("enctype"))||vi,s=new FormData(l,e),!dy()){let{name:f,type:u,value:h}=e;if(u==="image"){let b=f?f+".":"";s.append(b+"x","0"),s.append(b+"y","0")}else f&&s.append(f,h)}}else{if(xi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=bi,r=null,o=vi,a=e}return s&&o==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:s,body:a}}const fy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],hy=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],gy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],my="6";try{window.__reactRouterVersion=my}catch{}const $d=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&($d.displayName="ViewTransition");const yy=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(yy.displayName="Fetchers");const Dd=E["startTransition"];function by(e){let{basename:t,children:n,future:r,window:o}=e,s=E.useRef();s.current==null&&(s.current=pm({window:o,v5Compat:!0}));let a=s.current,[l,c]=E.useState({action:a.action,location:a.location}),{v7_startTransition:f}=r||{},u=E.useCallback(h=>{f&&Dd?Dd(()=>c(h)):c(h)},[c,f]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.useEffect(()=>ty(r),[r]),E.createElement(ny,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const vy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fd=E.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:a,state:l,target:c,to:f,preventScrollReset:u,viewTransition:h}=t,b=Ia(t,fy),{basename:m}=E.useContext(Rt),g,p=!1;if(typeof f=="string"&&xy.test(f)&&(g=f,vy))try{let S=new URL(window.location.href),v=f.startsWith("//")?new URL(S.protocol+f):new URL(f),C=Mn(v.pathname,m);v.origin===S.origin&&C!=null?f=C+v.search+v.hash:p=!0}catch{process.env.NODE_ENV!=="production"&&_t(!1,'<Link to="'+f+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let y=Lm(f,{relative:o}),x=Ey(f,{replace:a,state:l,target:c,preventScrollReset:u,relative:o,viewTransition:h});function w(S){r&&r(S),S.defaultPrevented||x(S)}return E.createElement("a",mr({},b,{href:g||y,onClick:p||s?r:w,ref:n,target:c}))});process.env.NODE_ENV!=="production"&&(Fd.displayName="Link");const Sy=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:f,children:u}=t,h=Ia(t,hy),b=Qr(c,{relative:h.relative}),m=bt(),g=E.useContext(Ta),{navigator:p,basename:y}=E.useContext(Rt),x=g!=null&&Ay(b)&&f===!0,w=p.encodeLocation?p.encodeLocation(b).pathname:b.pathname,S=m.pathname,v=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;o||(S=S.toLowerCase(),v=v?v.toLowerCase():null,w=w.toLowerCase()),v&&y&&(v=Mn(v,y)||v);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=S===w||!a&&S.startsWith(w)&&S.charAt(C)==="/",P=v!=null&&(v===w||!a&&v.startsWith(w)&&v.charAt(w.length)==="/"),$={isActive:O,isPending:P,isTransitioning:x},A=O?r:void 0,B;typeof s=="function"?B=s($):B=[s,O?"active":null,P?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l($):l;return E.createElement(Fd,mr({},h,{"aria-current":A,className:B,ref:n,style:L,to:c,viewTransition:f}),typeof u=="function"?u($):u)});process.env.NODE_ENV!=="production"&&(Sy.displayName="NavLink");const wy=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:o,replace:s,state:a,method:l=bi,action:c,onSubmit:f,relative:u,preventScrollReset:h,viewTransition:b}=e,m=Ia(e,gy),g=Ny(),p=Iy(c,{relative:u}),y=l.toLowerCase()==="get"?"get":"post",x=w=>{if(f&&f(w),w.defaultPrevented)return;w.preventDefault();let S=w.nativeEvent.submitter,v=S?.getAttribute("formmethod")||l;g(S||w.currentTarget,{fetcherKey:n,method:v,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:b})};return E.createElement("form",mr({ref:t,method:y,action:p,onSubmit:o?f:x},m))});process.env.NODE_ENV!=="production"&&(wy.displayName="Form"),process.env.NODE_ENV;var wi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(wi||(wi={}));var jd;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(jd||(jd={}));function Cy(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function zd(e){let t=E.useContext(Gr);return t||(process.env.NODE_ENV!=="production"?ve(!1,Cy(e)):ve(!1)),t}function Ey(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,c=lt(),f=bt(),u=Qr(e,{relative:a});return E.useCallback(h=>{if(ly(h,n)){h.preventDefault();let b=r!==void 0?r:Yr(f)===Yr(u);c(e,{replace:b,state:o,preventScrollReset:s,relative:a,viewTransition:l})}},[f,c,u,r,o,n,e,s,a,l])}function Ty(e){process.env.NODE_ENV!=="production"&&_t(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(Aa(e)),n=E.useRef(!1),r=bt(),o=E.useMemo(()=>cy(r.search,n.current?null:t.current),[r.search]),s=lt(),a=E.useCallback((l,c)=>{const f=Aa(typeof l=="function"?l(o):l);n.current=!0,s("?"+f,c)},[s,o]);return[o,a]}function Oy(){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 Py=0,ky=()=>"__"+String(++Py)+"__";function Ny(){let{router:e}=zd(wi.UseSubmit),{basename:t}=E.useContext(Rt),n=Xm();return E.useCallback(function(r,o){o===void 0&&(o={}),Oy();let{action:s,method:a,encType:l,formData:c,body:f}=py(r,t);if(o.navigate===!1){let u=o.fetcherKey||ky();e.fetch(u,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:c,body:f,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function Iy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(Rt),o=E.useContext(yn);o||(process.env.NODE_ENV!=="production"?ve(!1,"useFormAction must be used inside a RouteContext"):ve(!1));let[s]=o.matches.slice(-1),a=mr({},Qr(e||".",{relative:n})),l=bt();if(e==null){a.search=l.search;let c=new URLSearchParams(a.search),f=c.getAll("index");if(f.some(h=>h==="")){c.delete("index"),f.filter(b=>b).forEach(b=>c.append("index",b));let h=c.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:mn([r,a.pathname])),Yr(a)}function Ay(e,t){t===void 0&&(t={});let n=E.useContext($d);n==null&&(process.env.NODE_ENV!=="production"?ve(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ve(!1));let{basename:r}=zd(wi.useViewTransitionState),o=Qr(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Mn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Mn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ca(o.pathname,a)!=null||Ca(o.pathname,s)!=null}function Ld(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ci={exports:{}},Ma={};var Bd;function _y(){if(Bd)return Ma;Bd=1;var e=F;function t(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Ma.useSyncExternalStoreWithSelector=function(c,f,u,h,b){var m=o(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function y(C){if(!x){if(x=!0,w=C,C=h(C),b!==void 0&&g.hasValue){var O=g.value;if(b(O,C))return S=O}return S=C}if(O=S,n(w,C))return O;var P=h(C);return b!==void 0&&b(O,P)?(w=C,O):(w=C,S=P)}var x=!1,w,S,v=u===void 0?null:u;return[function(){return y(f())},v===null?void 0:function(){return y(v())}]},[f,u,h,b]);var p=r(c,m[0],m[1]);return s(function(){g.hasValue=!0,g.value=p},[p]),l(p),p},Ma}var $a={};var Rd;function My(){return Rd||(Rd=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=F,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,o=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;$a.useSyncExternalStoreWithSelector=function(c,f,u,h,b){var m=o(null);if(m.current===null){var g={hasValue:!1,value:null};m.current=g}else g=m.current;m=a(function(){function y(C){if(!x){if(x=!0,w=C,C=h(C),b!==void 0&&g.hasValue){var O=g.value;if(b(O,C))return S=O}return S=C}if(O=S,n(w,C))return O;var P=h(C);return b!==void 0&&b(O,P)?(w=C,O):(w=C,S=P)}var x=!1,w,S,v=u===void 0?null:u;return[function(){return y(f())},v===null?void 0:function(){return y(v())}]},[f,u,h,b]);var p=r(c,m[0],m[1]);return s(function(){g.hasValue=!0,g.value=p},[p]),l(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),$a}var Wd;function $y(){return Wd||(Wd=1,process.env.NODE_ENV==="production"?Ci.exports=_y():Ci.exports=My()),Ci.exports}var Dy=$y();function Fy(e){e()}function jy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Fy(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Vd={notify(){},get:()=>[]};function zy(e,t){let n,r=Vd,o=0,s=!1;function a(p){u();const y=r.subscribe(p);let x=!1;return()=>{x||(x=!0,y(),h())}}function l(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function f(){return s}function u(){o++,n||(n=e.subscribe(c),r=jy())}function h(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=Vd)}function b(){s||(s=!0,u())}function m(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:f,trySubscribe:b,tryUnsubscribe:m,getListeners:()=>r};return g}var Ly=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",By=Ly(),Ry=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Wy=Ry(),Vy=()=>By||Wy?E.useLayoutEffect:E.useEffect,Uy=Vy(),Hy=Symbol.for("react-redux-context"),qy=typeof globalThis<"u"?globalThis:{};function Yy(){if(!E.createContext)return{};const e=qy[Hy]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var Dn=Yy();function Ky(e){const{children:t,context:n,serverState:r,store:o}=e,s=E.useMemo(()=>{const c=zy(o),f={store:o,subscription:c,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return f;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(f,{stabilityCheck:h,identityFunctionCheck:u})}},[o,r]),a=E.useMemo(()=>o.getState(),[o]);Uy(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==o.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=n||Dn;return E.createElement(l.Provider,{value:s},t)}var Gy=Ky;function Da(e=Dn){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var Ud=Da();function Hd(e=Dn){const t=e===Dn?Ud:Da(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Jy=Hd();function Xy(e=Dn){const t=e===Dn?Jy:Hd(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Wt=Xy(),Qy=(e,t)=>e===t;function Zy(e=Dn){const t=e===Dn?Ud:Da(e),n=(r,o={})=>{const{equalityFn:s=Qy}=typeof o=="function"?{equalityFn:o}:o;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:c,getServerState:f}=a,u=E.useRef(!0),h=E.useCallback({[r.name](m){const g=r(m);if(process.env.NODE_ENV!=="production"){const{devModeChecks:p={}}=typeof o=="function"?{}:o,{identityFunctionCheck:y,stabilityCheck:x}=a,{identityFunctionCheck:w,stabilityCheck:S}={stabilityCheck:x,identityFunctionCheck:y,...p};if(S==="always"||S==="once"&&u.current){const v=r(m);if(!s(g,v)){let C;try{throw new Error}catch(O){({stack:C}=O)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
4
|
-
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:
|
|
5
|
-
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:v})}u.current&&(u.current=!1)}return g}}[r.name],[r]),b=Dy.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,f||l.getState,h,s);return E.useDebugValue(b),b};return Object.assign(n,{withTypes:()=>n}),n}var Ae=Zy(),eo={},qd;function eb(){if(qd)return eo;qd=1,eo.__esModule=!0,eo.PersistGate=void 0;var e=t(F);function t(m){if(m&&m.__esModule)return m;var g={};if(m!=null){for(var p in m)if(Object.prototype.hasOwnProperty.call(m,p)){var y=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(m,p):{};y.get||y.set?Object.defineProperty(g,p,y):g[p]=m[p]}}return g.default=m,g}function n(m){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(p){return typeof p}:n=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},n(m)}function r(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function o(m,g){for(var p=0;p<g.length;p++){var y=g[p];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}function s(m,g,p){return g&&o(m.prototype,g),m}function a(m,g){return g&&(n(g)==="object"||typeof g=="function")?g:c(m)}function l(m){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},l(m)}function c(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function f(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),g&&u(m,g)}function u(m,g){return u=Object.setPrototypeOf||function(y,x){return y.__proto__=x,y},u(m,g)}function h(m,g,p){return g in m?Object.defineProperty(m,g,{value:p,enumerable:!0,configurable:!0,writable:!0}):m[g]=p,m}var b=(function(m){f(g,m);function g(){var p,y;r(this,g);for(var x=arguments.length,w=new Array(x),S=0;S<x;S++)w[S]=arguments[S];return y=a(this,(p=l(g)).call.apply(p,[this].concat(w))),h(c(y),"state",{bootstrapped:!1}),h(c(y),"_unsubscribe",void 0),h(c(y),"handlePersistorState",function(){var v=y.props.persistor,C=v.getState(),O=C.bootstrapped;O&&(y.props.onBeforeLift?Promise.resolve(y.props.onBeforeLift()).finally(function(){return y.setState({bootstrapped:!0})}):y.setState({bootstrapped:!0}),y._unsubscribe&&y._unsubscribe())}),y}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return eo.PersistGate=b,h(b,"defaultProps",{children:null,loading:null}),eo}var tb=eb();function rt(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 nb=typeof Symbol=="function"&&Symbol.observable||"@@observable",Yd=nb,Fa=()=>Math.random().toString(36).substring(7).split("").join("."),rb={INIT:`@@redux/INIT${Fa()}`,REPLACE:`@@redux/REPLACE${Fa()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fa()}`},Yn=rb;function to(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 ob(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(ab(e))return"date";if(sb(e))return"error";const n=ib(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function ib(e){return typeof e.constructor=="function"?e.constructor.name:null}function sb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function ab(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Fn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=ob(e)),t}function ja(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?rt(2):`Expected the root reducer to be a function. Instead, received: '${Fn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?rt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?rt(1):`Expected the enhancer to be a function. Instead, received: '${Fn(n)}'`);return n(ja)(e,t)}let r=e,o=t,s=new Map,a=s,l=0,c=!1;function f(){a===s&&(a=new Map,s.forEach((y,x)=>{a.set(x,y)}))}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?rt(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 h(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?rt(4):`Expected the listener to be a function. Instead, received: '${Fn(y)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?rt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let x=!0;f();const w=l++;return a.set(w,y),function(){if(x){if(c)throw new Error(process.env.NODE_ENV==="production"?rt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,f(),a.delete(w),s=null}}}function b(y){if(!to(y))throw new Error(process.env.NODE_ENV==="production"?rt(7):`Actions must be plain objects. Instead, the actual type was: '${Fn(y)}'. 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 y.type>"u")throw new Error(process.env.NODE_ENV==="production"?rt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof y.type!="string")throw new Error(process.env.NODE_ENV==="production"?rt(17):`Action "type" property must be a string. Instead, the actual type was: '${Fn(y.type)}'. Value was: '${y.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?rt(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,y)}finally{c=!1}return(s=a).forEach(w=>{w()}),y}function m(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?rt(10):`Expected the nextReducer to be a function. Instead, received: '${Fn(y)}`);r=y,b({type:Yn.REPLACE})}function g(){const y=h;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(process.env.NODE_ENV==="production"?rt(11):`Expected the observer to be an object. Instead, received: '${Fn(x)}'`);function w(){const v=x;v.next&&v.next(u())}return w(),{unsubscribe:y(w)}},[Yd](){return this}}}return b({type:Yn.INIT}),{dispatch:b,subscribe:h,getState:u,replaceReducer:m,[Yd]:g}}function Kd(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function lb(e,t,n,r){const o=Object.keys(t),s=n&&n.type===Yn.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(!to(e))return`The ${s} has unexpected type of "${Fn(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===Yn.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function cb(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Yn.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?rt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:Yn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?rt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Yn.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 Gd(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&Kd(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let o;process.env.NODE_ENV!=="production"&&(o={});let s;try{cb(n)}catch(a){s=a}return function(l={},c){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=lb(l,n,c,o);h&&Kd(h)}let f=!1;const u={};for(let h=0;h<r.length;h++){const b=r[h],m=n[b],g=l[b],p=m(g,c);if(typeof p>"u"){const y=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?rt(14):`When called with an action of type ${y?`"${String(y)}"`:"(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.`)}u[b]=p,f=f||p!==g}return f=f||r.length!==Object.keys(l).length,f?u:l}}function Ei(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function db(...e){return t=>(n,r)=>{const o=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?rt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:o.getState,dispatch:(c,...f)=>s(c,...f)},l=e.map(c=>c(a));return s=Ei(...l)(o.dispatch),{...o,dispatch:s}}}function Jd(e){return to(e)&&"type"in e&&typeof e.type=="string"}var Xd=Symbol.for("immer-nothing"),Qd=Symbol.for("immer-draftable"),ht=Symbol.for("immer-state"),ub=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 Ot(e,...t){if(process.env.NODE_ENV!=="production"){const n=ub[e],r=Kn(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Pt=Object,yr=Pt.getPrototypeOf,Ti="constructor",Oi="prototype",za="configurable",Pi="enumerable",ki="writable",no="value",bn=e=>!!e&&!!e[ht];function Vt(e){return e?eu(e)||Ii(e)||!!e[Qd]||!!e[Ti]?.[Qd]||Ai(e)||_i(e):!1}var pb=Pt[Oi][Ti].toString(),Zd=new WeakMap;function eu(e){if(!e||!Ba(e))return!1;const t=yr(e);if(t===null||t===Pt[Oi])return!0;const n=Pt.hasOwnProperty.call(t,Ti)&&t[Ti];if(n===Object)return!0;if(!Kn(n))return!1;let r=Zd.get(n);return r===void 0&&(r=Function.toString.call(n),Zd.set(n,r)),r===pb}function ro(e,t,n=!0){oo(e)===0?(n?Reflect.ownKeys(e):Pt.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function oo(e){const t=e[ht];return t?t.type_:Ii(e)?1:Ai(e)?2:_i(e)?3:0}var tu=(e,t,n=oo(e))=>n===2?e.has(t):Pt[Oi].hasOwnProperty.call(e,t),La=(e,t,n=oo(e))=>n===2?e.get(t):e[t],Ni=(e,t,n,r=oo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function fb(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Ii=Array.isArray,Ai=e=>e instanceof Map,_i=e=>e instanceof Set,Ba=e=>typeof e=="object",Kn=e=>typeof e=="function",Ra=e=>typeof e=="boolean",vn=e=>e.copy_||e.base_,Wa=e=>e.modified_?e.copy_:e.base_;function Va(e,t){if(Ai(e))return new Map(e);if(_i(e))return new Set(e);if(Ii(e))return Array[Oi].slice.call(e);const n=eu(e);if(t===!0||t==="class_only"&&!n){const r=Pt.getOwnPropertyDescriptors(e);delete r[ht];let o=Reflect.ownKeys(r);for(let s=0;s<o.length;s++){const a=o[s],l=r[a];l[ki]===!1&&(l[ki]=!0,l[za]=!0),(l.get||l.set)&&(r[a]={[za]:!0,[ki]:!0,[Pi]:l[Pi],[no]:e[a]})}return Pt.create(yr(e),r)}else{const r=yr(e);if(r!==null&&n)return{...e};const o=Pt.create(r);return Pt.assign(o,e)}}function Ua(e,t=!1){return $i(e)||bn(e)||!Vt(e)||(oo(e)>1&&Pt.defineProperties(e,{set:Mi,add:Mi,clear:Mi,delete:Mi}),Pt.freeze(e),t&&ro(e,(n,r)=>{Ua(r,!0)},!1)),e}function hb(){Ot(2)}var Mi={[no]:hb};function $i(e){return e===null||!Ba(e)?!0:Pt.isFrozen(e)}var Di="MapSet",Ha="Patches",nu={};function br(e){const t=nu[e];return t||Ot(0,e),t}var gb=e=>!!nu[e],io,ru=()=>io,mb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:gb(Di)?br(Di):void 0});function ou(e,t){t&&(e.patchPlugin_=br(Ha),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function qa(e){Ya(e),e.drafts_.forEach(yb),e.drafts_=null}function Ya(e){e===io&&(io=e.parent_)}var iu=e=>io=mb(io,e);function yb(e){const t=e[ht];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function su(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[ht].modified_&&(qa(t),Ot(4)),Vt(e)&&(e=au(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[ht].base_,e,t)}else e=au(t,n);return bb(t,e,!0),qa(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Xd?e:void 0}function au(e,t){if($i(t))return t;const n=t[ht];if(!n)return Ka(t,e.handledSet_,e);if(!Fi(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);du(n,e)}return n.copy_}function bb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ua(t,n)}function lu(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Fi=(e,t)=>e.scope_===t,vb=[];function cu(e,t,n,r){const o=vn(e),s=e.type_;if(r!==void 0&&La(o,r,s)===t){Ni(o,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;ro(o,(c,f)=>{if(bn(f)){const u=l.get(f)||[];u.push(c),l.set(f,u)}})}const a=e.draftLocations_.get(t)??vb;for(const l of a)Ni(o,l,n,s)}function xb(e,t,n){e.callbacks_.push(function(o){const s=t;if(!s||!Fi(s,o))return;o.mapSetPlugin_?.fixSetContents(s);const a=Wa(s);cu(e,s.draft_??s,a,n),du(s,o)})}function du(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const o=r.getPath(e);o&&r.generatePatches_(e,o,t)}lu(e)}}function Sb(e,t,n){const{scope_:r}=e;if(bn(n)){const o=n[ht];Fi(o,r)&&o.callbacks_.push(function(){ji(e);const a=Wa(o);cu(e,n,a,t)})}else Vt(n)&&e.callbacks_.push(function(){const s=vn(e);La(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Ka(La(e.copy_,t,e.type_),r.handledSet_,r)})}function Ka(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||bn(e)||t.has(e)||!Vt(e)||$i(e)||(t.add(e),ro(e,(r,o)=>{if(bn(o)){const s=o[ht];if(Fi(s,n)){const a=Wa(s);Ni(e,r,a,e.type_),lu(s)}}else Vt(o)&&Ka(o,t,n)})),e}function wb(e,t){const n=Ii(e),r={type_:n?1:0,scope_:t?t.scope_:ru(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,s=Ga;n&&(o=[r],s=so);const{revoke:a,proxy:l}=Proxy.revocable(o,s);return r.draft_=l,r.revoke_=a,[l,r]}var Ga={get(e,t){if(t===ht)return e;const n=vn(e);if(!tu(n,t,e.type_))return Cb(e,n,t);const r=n[t];if(e.finalized_||!Vt(r))return r;if(r===Ja(e.base_,t)){ji(e);const o=e.type_===1?+t:t,s=Qa(e.scope_,r,e,o);return e.copy_[o]=s}return r},has(e,t){return t in vn(e)},ownKeys(e){return Reflect.ownKeys(vn(e))},set(e,t,n){const r=uu(vn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Ja(vn(e),t),s=o?.[ht];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(fb(n,o)&&(n!==void 0||tu(e.base_,t,e.type_)))return!0;ji(e),Xa(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Sb(e,t,n)),!0},deleteProperty(e,t){return ji(e),Ja(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Xa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=vn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[ki]:!0,[za]:e.type_!==1||t!=="length",[Pi]:r[Pi],[no]:n[t]}},defineProperty(){Ot(11)},getPrototypeOf(e){return yr(e.base_)},setPrototypeOf(){Ot(12)}},so={};ro(Ga,(e,t)=>{so[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),so.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ot(13),so.set.call(this,e,t,void 0)},so.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ot(14),Ga.set.call(this,e[0],t,n,e[0])};function Ja(e,t){const n=e[ht];return(n?vn(n):e)[t]}function Cb(e,t,n){const r=uu(t,n);return r?no in r?r[no]:r.get?.call(e.draft_):void 0}function uu(e,t){if(!(t in e))return;let n=yr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=yr(n)}}function Xa(e){e.modified_||(e.modified_=!0,e.parent_&&Xa(e.parent_))}function ji(e){e.copy_||(e.assigned_=new Map,e.copy_=Va(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Eb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(Kn(t)&&!Kn(n)){const s=n;n=t;const a=this;return function(c=s,...f){return a.produce(c,u=>n.call(this,u,...f))}}Kn(n)||Ot(6),r!==void 0&&!Kn(r)&&Ot(7);let o;if(Vt(t)){const s=iu(this),a=Qa(s,t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?qa(s):Ya(s)}return ou(s,r),su(o,s)}else if(!t||!Ba(t)){if(o=n(t),o===void 0&&(o=t),o===Xd&&(o=void 0),this.autoFreeze_&&Ua(o,!0),r){const s=[],a=[];br(Ha).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:a}),r(s,a)}return o}else Ot(1,t)},this.produceWithPatches=(t,n)=>{if(Kn(t))return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},Ra(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ra(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ra(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Vt(e)||Ot(8),bn(e)&&(e=Tb(e));const t=iu(this),n=Qa(t,e,void 0);return n[ht].isManual_=!0,Ya(t),n}finishDraft(e,t){const n=e&&e[ht];(!n||!n.isManual_)&&Ot(9);const{scope_:r}=n;return ou(r,t),su(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=br(Ha).applyPatches_;return bn(e)?r(e,t):this.produce(e,o=>r(o,t))}};function Qa(e,t,n,r){const[o,s]=Ai(t)?br(Di).proxyMap_(t,n):_i(t)?br(Di).proxySet_(t,n):wb(t,n);return(n?.scope_??ru()).drafts_.push(o),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?xb(n,s,r):s.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:f}=c;s.modified_&&f&&f.generatePatches_(s,[],c)}),o}function Tb(e){return bn(e)||Ot(10,e),pu(e)}function pu(e){if(!Vt(e)||$i(e))return e;const t=e[ht];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Va(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Va(e,!0);return ro(n,(o,s)=>{Ni(n,o,pu(s))},r),t&&(t.finalized_=!1),n}var Ob=new Eb,fu=Ob.produce,Pb=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const o={};e(o)===o&&(r=!0)}catch{}if(r){let o;try{throw new Error}catch(s){({stack:o}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
3
|
+
`+('Please change the parent <Route path="'+w+'"> to <Route ')+('path="'+(w==="/"?"*":w+"/*")+'">.'))}let h=Tt(),v;if(t){var b;let w=typeof t=="string"?Tr(t):t;p==="/"||(b=w.pathname)!=null&&b.startsWith(p)||(process.env.NODE_ENV!=="production"?ke(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+w.pathname+'" was given in the `location` prop.')):ke(!1)),v=w}else v=h;let g=v.pathname||"/",f=g;if(p!=="/"){let w=p.replace(/^\//,"").split("/");f="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let m=jm(e,{pathname:f});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&zt(u||m!=null,'No routes matched location "'+v.pathname+v.search+v.hash+'" '),process.env.NODE_ENV!=="production"&&zt(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 "'+v.pathname+v.search+v.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let y=gy(m&&m.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:On([p,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:On([p,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&y?E.createElement(ho.Provider,{value:{location:po({pathname:"/",search:"",hash:"",state:null,key:"default"},v),navigationType:Rn.Pop}},y):y}function uy(){let e=xy(),t=oy(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},a=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),a=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route."))),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:i},n):null,a)}const py=E.createElement(uy,null);class fy extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(Pn.Provider,{value:this.props.routeContext},E.createElement(Va.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function hy(e){let{routeContext:t,match:n,children:r}=e,i=E.useContext(fo);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Pn.Provider,{value:t},r)}function gy(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&l?.[h.route.id]!==void 0);u>=0||(process.env.NODE_ENV!=="production"?ke(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(l).join(",")):ke(!1)),a=a.slice(0,Math.min(a.length,u+1))}let c=!1,p=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(p=u),h.route.id){let{loaderData:v,errors:b}=n,g=h.route.loader&&v[h.route.id]===void 0&&(!b||b[h.route.id]===void 0);if(h.route.lazy||g){c=!0,p>=0?a=a.slice(0,p+1):a=[a[0]];break}}}return a.reduceRight((u,h,v)=>{let b,g=!1,f=null,m=null;n&&(b=l&&h.route.id?l[h.route.id]:void 0,f=h.route.errorElement||py,c&&(p<0&&v===0?(Kd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):p===v&&(g=!0,m=h.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,v+1)),w=()=>{let x;return b?x=f:g?x=m:h.route.Component?x=E.createElement(h.route.Component,null):h.route.element?x=h.route.element:x=u,E.createElement(hy,{match:h,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:x})};return n&&(h.route.ErrorBoundary||h.route.errorElement||v===0)?E.createElement(fy,{location:n.location,revalidation:n.revalidation,component:f,error:b,children:w(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):w()},null)}var qd=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(qd||{}),yo=(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})(yo||{});function Ua(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function my(e){let t=E.useContext(fo);return t||(process.env.NODE_ENV!=="production"?ke(!1,Ua(e)):ke(!1)),t}function yy(e){let t=E.useContext(Wa);return t||(process.env.NODE_ENV!=="production"?ke(!1,Ua(e)):ke(!1)),t}function by(e){let t=E.useContext(Pn);return t||(process.env.NODE_ENV!=="production"?ke(!1,Ua(e)):ke(!1)),t}function Ha(e){let t=by(e),n=t.matches[t.matches.length-1];return n.route.id||(process.env.NODE_ENV!=="production"?ke(!1,e+' can only be used on routes that contain a unique "id"'):ke(!1)),n.route.id}function vy(){return Ha(yo.UseRouteId)}function xy(){var e;let t=E.useContext(Va),n=yy(yo.UseRouteError),r=Ha(yo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Sy(){let{router:e}=my(qd.UseNavigateStable),t=Ha(yo.UseNavigateStable),n=E.useRef(!1);return Hd(()=>{n.current=!0}),E.useCallback(function(i,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&zt(n.current,Ud),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,po({fromRouteId:t},s)))},[e,t])}const Yd={};function Kd(e,t,n){!t&&!Yd[e]&&(Yd[e]=!0,process.env.NODE_ENV!=="production"&&zt(!1,n))}const Gd={};function wy(e,t){process.env.NODE_ENV!=="production"&&!Gd[t]&&(Gd[t]=!0,console.warn(t))}const Xd=(e,t,n)=>wy(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function Cy(e,t){e?.v7_startTransition===void 0&&Xd("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&&Xd("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath")}function Vn(e){process.env.NODE_ENV!=="production"?ke(!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>."):ke(!1)}function Ey(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Rn.Pop,navigator:s,static:a=!1,future:l}=e;go()&&(process.env.NODE_ENV!=="production"?ke(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):ke(!1));let c=t.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:c,navigator:s,static:a,future:po({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=Tr(r));let{pathname:u="/",search:h="",hash:v="",state:b=null,key:g="default"}=r,f=E.useMemo(()=>{let m=Wn(u,c);return m==null?null:{location:{pathname:m,search:h,hash:v,state:b,key:g},navigationType:i}},[c,u,h,v,b,g,i]);return process.env.NODE_ENV!=="production"&&zt(f!=null,'<Router basename="'+c+'"> is not able to match the URL '+('"'+u+h+v+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),f==null?null:E.createElement(Gt.Provider,{value:p},E.createElement(ho.Provider,{children:n,value:f}))}function Ty(e){let{children:t,location:n}=e;return cy(qa(t),n)}new Promise(()=>{});function qa(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,i)=>{if(!E.isValidElement(r))return;let s=[...t,i];if(r.type===E.Fragment){n.push.apply(n,qa(r.props.children,s));return}r.type!==Vn&&(process.env.NODE_ENV!=="production"?ke(!1,"["+(typeof r.type=="string"?r.type:r.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):ke(!1)),!r.props.index||!r.props.children||(process.env.NODE_ENV!=="production"?ke(!1,"An index route cannot have child routes."):ke(!1));let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=qa(r.props.children,s)),n.push(a)}),n}function Or(){return Or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}function Ya(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const Di="get",Fi="application/x-www-form-urlencoded";function ji(e){return e!=null&&typeof e.tagName=="string"}function Oy(e){return ji(e)&&e.tagName.toLowerCase()==="button"}function Py(e){return ji(e)&&e.tagName.toLowerCase()==="form"}function ky(e){return ji(e)&&e.tagName.toLowerCase()==="input"}function Ny(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Iy(e,t){return e.button===0&&(!t||t==="_self")&&!Ny(e)}function Ka(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Ay(e,t){let n=Ka(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(s=>{n.append(i,s)})}),n}let Li=null;function My(){if(Li===null)try{new FormData(document.createElement("form"),0),Li=!1}catch{Li=!0}return Li}const _y=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ga(e){return e!=null&&!_y.has(e)?(process.env.NODE_ENV!=="production"&&zt(!1,'"'+e+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Fi+'"')),null):e}function $y(e,t){let n,r,i,s,a;if(Py(e)){let l=e.getAttribute("action");r=l?Wn(l,t):null,n=e.getAttribute("method")||Di,i=Ga(e.getAttribute("enctype"))||Fi,s=new FormData(e)}else if(Oy(e)||ky(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(r=c?Wn(c,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Di,i=Ga(e.getAttribute("formenctype"))||Ga(l.getAttribute("enctype"))||Fi,s=new FormData(l,e),!My()){let{name:p,type:u,value:h}=e;if(u==="image"){let v=p?p+".":"";s.append(v+"x","0"),s.append(v+"y","0")}else p&&s.append(p,h)}}else{if(ji(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Di,r=null,i=Fi,a=e}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const Dy=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Fy=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],jy=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"],Ly="6";try{window.__reactRouterVersion=Ly}catch{}const Jd=E.createContext({isTransitioning:!1});process.env.NODE_ENV!=="production"&&(Jd.displayName="ViewTransition");const zy=E.createContext(new Map);process.env.NODE_ENV!=="production"&&(zy.displayName="Fetchers");const Qd=E["startTransition"];function By(e){let{basename:t,children:n,future:r,window:i}=e,s=E.useRef();s.current==null&&(s.current=$m({window:i,v5Compat:!0}));let a=s.current,[l,c]=E.useState({action:a.action,location:a.location}),{v7_startTransition:p}=r||{},u=E.useCallback(h=>{p&&Qd?Qd(()=>c(h)):c(h)},[c,p]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.useEffect(()=>Cy(r),[r]),E.createElement(Ey,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}process.env.NODE_ENV;const Ry=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Zd=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:c,to:p,preventScrollReset:u,viewTransition:h}=t,v=Ya(t,Dy),{basename:b}=E.useContext(Gt),g,f=!1;if(typeof p=="string"&&Wy.test(p)&&(g=p,Ry))try{let x=new URL(window.location.href),S=p.startsWith("//")?new URL(x.protocol+p):new URL(p),C=Wn(S.pathname,b);S.origin===x.origin&&C!=null?p=C+S.search+S.hash:f=!0}catch{process.env.NODE_ENV!=="production"&&zt(!1,'<Link to="'+p+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let m=ay(p,{relative:i}),y=qy(p,{replace:a,state:l,target:c,preventScrollReset:u,relative:i,viewTransition:h});function w(x){r&&r(x),x.defaultPrevented||y(x)}return E.createElement("a",Or({},v,{href:g||m,onClick:f||s?r:w,ref:n,target:c}))});process.env.NODE_ENV!=="production"&&(Zd.displayName="Link");const Vy=E.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:p,children:u}=t,h=Ya(t,Fy),v=mo(c,{relative:h.relative}),b=Tt(),g=E.useContext(Wa),{navigator:f,basename:m}=E.useContext(Gt),y=g!=null&&Zy(v)&&p===!0,w=f.encodeLocation?f.encodeLocation(v).pathname:v.pathname,x=b.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(x=x.toLowerCase(),S=S?S.toLowerCase():null,w=w.toLowerCase()),S&&m&&(S=Wn(S,m)||S);const C=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let O=x===w||!a&&x.startsWith(w)&&x.charAt(C)==="/",P=S!=null&&(S===w||!a&&S.startsWith(w)&&S.charAt(w.length)==="/"),$={isActive:O,isPending:P,isTransitioning:y},A=O?r:void 0,j;typeof s=="function"?j=s($):j=[s,O?"active":null,P?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let L=typeof l=="function"?l($):l;return E.createElement(Zd,Or({},h,{"aria-current":A,className:j,ref:n,style:L,to:c,viewTransition:p}),typeof u=="function"?u($):u)});process.env.NODE_ENV!=="production"&&(Vy.displayName="NavLink");const Uy=E.forwardRef((e,t)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=Di,action:c,onSubmit:p,relative:u,preventScrollReset:h,viewTransition:v}=e,b=Ya(e,jy),g=Jy(),f=Qy(c,{relative:u}),m=l.toLowerCase()==="get"?"get":"post",y=w=>{if(p&&p(w),w.defaultPrevented)return;w.preventDefault();let x=w.nativeEvent.submitter,S=x?.getAttribute("formmethod")||l;g(x||w.currentTarget,{fetcherKey:n,method:S,navigate:r,replace:s,state:a,relative:u,preventScrollReset:h,viewTransition:v})};return E.createElement("form",Or({ref:t,method:m,action:f,onSubmit:i?p:y},b))});process.env.NODE_ENV!=="production"&&(Uy.displayName="Form"),process.env.NODE_ENV;var zi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(zi||(zi={}));var eu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(eu||(eu={}));function Hy(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function tu(e){let t=E.useContext(fo);return t||(process.env.NODE_ENV!=="production"?ke(!1,Hy(e)):ke(!1)),t}function qy(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,viewTransition:l}=t===void 0?{}:t,c=gt(),p=Tt(),u=mo(e,{relative:a});return E.useCallback(h=>{if(Iy(h,n)){h.preventDefault();let v=r!==void 0?r:uo(p)===uo(u);c(e,{replace:v,state:i,preventScrollReset:s,relative:a,viewTransition:l})}},[p,c,u,r,i,n,e,s,a,l])}function Yy(e){process.env.NODE_ENV!=="production"&&zt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=E.useRef(Ka(e)),n=E.useRef(!1),r=Tt(),i=E.useMemo(()=>Ay(r.search,n.current?null:t.current),[r.search]),s=gt(),a=E.useCallback((l,c)=>{const p=Ka(typeof l=="function"?l(i):l);n.current=!0,s("?"+p,c)},[s,i]);return[i,a]}function Ky(){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 Gy=0,Xy=()=>"__"+String(++Gy)+"__";function Jy(){let{router:e}=tu(zi.UseSubmit),{basename:t}=E.useContext(Gt),n=vy();return E.useCallback(function(r,i){i===void 0&&(i={}),Ky();let{action:s,method:a,encType:l,formData:c,body:p}=$y(r,t);if(i.navigate===!1){let u=i.fetcherKey||Xy();e.fetch(u,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:c,body:p,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:c,body:p,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function Qy(e,t){let{relative:n}=t===void 0?{}:t,{basename:r}=E.useContext(Gt),i=E.useContext(Pn);i||(process.env.NODE_ENV!=="production"?ke(!1,"useFormAction must be used inside a RouteContext"):ke(!1));let[s]=i.matches.slice(-1),a=Or({},mo(e||".",{relative:n})),l=Tt();if(e==null){a.search=l.search;let c=new URLSearchParams(a.search),p=c.getAll("index");if(p.some(h=>h==="")){c.delete("index"),p.filter(v=>v).forEach(v=>c.append("index",v));let h=c.toString();a.search=h?"?"+h:""}}return(!e||e===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:On([r,a.pathname])),uo(a)}function Zy(e,t){t===void 0&&(t={});let n=E.useContext(Jd);n==null&&(process.env.NODE_ENV!=="production"?ke(!1,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"):ke(!1));let{basename:r}=tu(zi.useViewTransitionState),i=mo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Wn(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Wn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ba(i.pathname,a)!=null||Ba(i.pathname,s)!=null}function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bi={exports:{}},Xa={};var ru;function eb(){if(ru)return Xa;ru=1;var e=F;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Xa.useSyncExternalStoreWithSelector=function(c,p,u,h,v){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(C){if(!y){if(y=!0,w=C,C=h(C),v!==void 0&&g.hasValue){var O=g.value;if(v(O,C))return x=O}return x=C}if(O=x,n(w,C))return O;var P=h(C);return v!==void 0&&v(O,P)?(w=C,O):(w=C,x=P)}var y=!1,w,x,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=r(c,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},Xa}var Ja={};var ou;function tb(){return ou||(ou=1,process.env.NODE_ENV!=="production"&&(function(){function e(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=F,n=typeof Object.is=="function"?Object.is:e,r=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;Ja.useSyncExternalStoreWithSelector=function(c,p,u,h,v){var b=i(null);if(b.current===null){var g={hasValue:!1,value:null};b.current=g}else g=b.current;b=a(function(){function m(C){if(!y){if(y=!0,w=C,C=h(C),v!==void 0&&g.hasValue){var O=g.value;if(v(O,C))return x=O}return x=C}if(O=x,n(w,C))return O;var P=h(C);return v!==void 0&&v(O,P)?(w=C,O):(w=C,x=P)}var y=!1,w,x,S=u===void 0?null:u;return[function(){return m(p())},S===null?void 0:function(){return m(S())}]},[p,u,h,v]);var f=r(c,b[0],b[1]);return s(function(){g.hasValue=!0,g.value=f},[f]),l(f),f},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ja}var iu;function nb(){return iu||(iu=1,process.env.NODE_ENV==="production"?Bi.exports=eb():Bi.exports=tb()),Bi.exports}var rb=nb();function ob(e){e()}function ib(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ob(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var su={notify(){},get:()=>[]};function sb(e,t){let n,r=su,i=0,s=!1;function a(f){u();const m=r.subscribe(f);let y=!1;return()=>{y||(y=!0,m(),h())}}function l(){r.notify()}function c(){g.onStateChange&&g.onStateChange()}function p(){return s}function u(){i++,n||(n=e.subscribe(c),r=ib())}function h(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=su)}function v(){s||(s=!0,u())}function b(){s&&(s=!1,h())}const g={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:p,trySubscribe:v,tryUnsubscribe:b,getListeners:()=>r};return g}var ab=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",lb=ab(),cb=()=>typeof navigator<"u"&&navigator.product==="ReactNative",db=cb(),ub=()=>lb||db?E.useLayoutEffect:E.useEffect,pb=ub(),fb=Symbol.for("react-redux-context"),hb=typeof globalThis<"u"?globalThis:{};function gb(){if(!E.createContext)return{};const e=hb[fb]??=new Map;let t=e.get(E.createContext);return t||(t=E.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(E.createContext,t)),t}var Un=gb();function mb(e){const{children:t,context:n,serverState:r,store:i}=e,s=E.useMemo(()=>{const c=sb(i),p={store:i,subscription:c,getServerState:r?()=>r:void 0};if(process.env.NODE_ENV==="production")return p;{const{identityFunctionCheck:u="once",stabilityCheck:h="once"}=e;return Object.assign(p,{stabilityCheck:h,identityFunctionCheck:u})}},[i,r]),a=E.useMemo(()=>i.getState(),[i]);pb(()=>{const{subscription:c}=s;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[s,a]);const l=n||Un;return E.createElement(l.Provider,{value:s},t)}var yb=mb;function Qa(e=Un){return function(){const n=E.useContext(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("could not find react-redux context value; please ensure the component is wrapped in a <Provider>");return n}}var au=Qa();function lu(e=Un){const t=e===Un?au:Qa(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var bb=lu();function vb(e=Un){const t=e===Un?bb:lu(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Xt=vb(),xb=(e,t)=>e===t;function Sb(e=Un){const t=e===Un?au:Qa(e),n=(r,i={})=>{const{equalityFn:s=xb}=typeof i=="function"?{equalityFn:i}:i;if(process.env.NODE_ENV!=="production"){if(!r)throw new Error("You must pass a selector to useSelector");if(typeof r!="function")throw new Error("You must pass a function as a selector to useSelector");if(typeof s!="function")throw new Error("You must pass a function as an equality function to useSelector")}const a=t(),{store:l,subscription:c,getServerState:p}=a,u=E.useRef(!0),h=E.useCallback({[r.name](b){const g=r(b);if(process.env.NODE_ENV!=="production"){const{devModeChecks:f={}}=typeof i=="function"?{}:i,{identityFunctionCheck:m,stabilityCheck:y}=a,{identityFunctionCheck:w,stabilityCheck:x}={stabilityCheck:y,identityFunctionCheck:m,...f};if(x==="always"||x==="once"&&u.current){const S=r(b);if(!s(g,S)){let C;try{throw new Error}catch(O){({stack:C}=O)}console.warn("Selector "+(r.name||"unknown")+` returned a different result when called with the same parameters. This can lead to unnecessary rerenders.
|
|
4
|
+
Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization`,{state:b,selected:g,selected2:S,stack:C})}}if((w==="always"||w==="once"&&u.current)&&g===b){let S;try{throw new Error}catch(C){({stack:S}=C)}console.warn("Selector "+(r.name||"unknown")+` returned the root state when called. This can lead to unnecessary rerenders.
|
|
5
|
+
Selectors that return the entire state are almost certainly a mistake, as they will cause a rerender whenever *anything* in state changes.`,{stack:S})}u.current&&(u.current=!1)}return g}}[r.name],[r]),v=rb.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,p||l.getState,h,s);return E.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var qe=Sb(),bo={},cu;function wb(){if(cu)return bo;cu=1,bo.__esModule=!0,bo.PersistGate=void 0;var e=t(F);function t(b){if(b&&b.__esModule)return b;var g={};if(b!=null){for(var f in b)if(Object.prototype.hasOwnProperty.call(b,f)){var m=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(b,f):{};m.get||m.set?Object.defineProperty(g,f,m):g[f]=b[f]}}return g.default=b,g}function n(b){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(f){return typeof f}:n=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},n(b)}function r(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function i(b,g){for(var f=0;f<g.length;f++){var m=g[f];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(b,m.key,m)}}function s(b,g,f){return g&&i(b.prototype,g),b}function a(b,g){return g&&(n(g)==="object"||typeof g=="function")?g:c(b)}function l(b){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},l(b)}function c(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function p(b,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(g&&g.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),g&&u(b,g)}function u(b,g){return u=Object.setPrototypeOf||function(m,y){return m.__proto__=y,m},u(b,g)}function h(b,g,f){return g in b?Object.defineProperty(b,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):b[g]=f,b}var v=(function(b){p(g,b);function g(){var f,m;r(this,g);for(var y=arguments.length,w=new Array(y),x=0;x<y;x++)w[x]=arguments[x];return m=a(this,(f=l(g)).call.apply(f,[this].concat(w))),h(c(m),"state",{bootstrapped:!1}),h(c(m),"_unsubscribe",void 0),h(c(m),"handlePersistorState",function(){var S=m.props.persistor,C=S.getState(),O=C.bootstrapped;O&&(m.props.onBeforeLift?Promise.resolve(m.props.onBeforeLift()).finally(function(){return m.setState({bootstrapped:!0})}):m.setState({bootstrapped:!0}),m._unsubscribe&&m._unsubscribe())}),m}return s(g,[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return process.env.NODE_ENV!=="production"&&typeof this.props.children=="function"&&this.props.loading&&console.error("redux-persist: PersistGate expects either a function child or loading prop, but not both. The loading prop will be ignored."),typeof this.props.children=="function"?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}]),g})(e.PureComponent);return bo.PersistGate=v,h(v,"defaultProps",{children:null,loading:null}),bo}var Cb=wb();function pt(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 Eb=typeof Symbol=="function"&&Symbol.observable||"@@observable",du=Eb,Za=()=>Math.random().toString(36).substring(7).split("").join("."),Tb={INIT:`@@redux/INIT${Za()}`,REPLACE:`@@redux/REPLACE${Za()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Za()}`},rr=Tb;function vo(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 Ob(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(Nb(e))return"date";if(kb(e))return"error";const n=Pb(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Pb(e){return typeof e.constructor=="function"?e.constructor.name:null}function kb(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function Nb(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Hn(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=Ob(e)),t}function el(e,t,n){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?pt(2):`Expected the root reducer to be a function. Instead, received: '${Hn(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?pt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?pt(1):`Expected the enhancer to be a function. Instead, received: '${Hn(n)}'`);return n(el)(e,t)}let r=e,i=t,s=new Map,a=s,l=0,c=!1;function p(){a===s&&(a=new Map,s.forEach((m,y)=>{a.set(y,m)}))}function u(){if(c)throw new Error(process.env.NODE_ENV==="production"?pt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function h(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?pt(4):`Expected the listener to be a function. Instead, received: '${Hn(m)}'`);if(c)throw new Error(process.env.NODE_ENV==="production"?pt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let y=!0;p();const w=l++;return a.set(w,m),function(){if(y){if(c)throw new Error(process.env.NODE_ENV==="production"?pt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");y=!1,p(),a.delete(w),s=null}}}function v(m){if(!vo(m))throw new Error(process.env.NODE_ENV==="production"?pt(7):`Actions must be plain objects. Instead, the actual type was: '${Hn(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"?pt(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"?pt(17):`Action "type" property must be a string. Instead, the actual type was: '${Hn(m.type)}'. Value was: '${m.type}' (stringified)`);if(c)throw new Error(process.env.NODE_ENV==="production"?pt(9):"Reducers may not dispatch actions.");try{c=!0,i=r(i,m)}finally{c=!1}return(s=a).forEach(w=>{w()}),m}function b(m){if(typeof m!="function")throw new Error(process.env.NODE_ENV==="production"?pt(10):`Expected the nextReducer to be a function. Instead, received: '${Hn(m)}`);r=m,v({type:rr.REPLACE})}function g(){const m=h;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(process.env.NODE_ENV==="production"?pt(11):`Expected the observer to be an object. Instead, received: '${Hn(y)}'`);function w(){const S=y;S.next&&S.next(u())}return w(),{unsubscribe:m(w)}},[du](){return this}}}return v({type:rr.INIT}),{dispatch:v,subscribe:h,getState:u,replaceReducer:b,[du]:g}}function uu(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Ib(e,t,n,r){const i=Object.keys(t),s=n&&n.type===rr.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(i.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!vo(e))return`The ${s} has unexpected type of "${Hn(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(l=>!t.hasOwnProperty(l)&&!r[l]);if(a.forEach(l=>{r[l]=!0}),!(n&&n.type===rr.REPLACE)&&a.length>0)return`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`}function Ab(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:rr.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?pt(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:rr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?pt(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${rr.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 pu(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const l=t[a];process.env.NODE_ENV!=="production"&&typeof e[l]>"u"&&uu(`No reducer provided for key "${l}"`),typeof e[l]=="function"&&(n[l]=e[l])}const r=Object.keys(n);let i;process.env.NODE_ENV!=="production"&&(i={});let s;try{Ab(n)}catch(a){s=a}return function(l={},c){if(s)throw s;if(process.env.NODE_ENV!=="production"){const h=Ib(l,n,c,i);h&&uu(h)}let p=!1;const u={};for(let h=0;h<r.length;h++){const v=r[h],b=n[v],g=l[v],f=b(g,c);if(typeof f>"u"){const m=c&&c.type;throw new Error(process.env.NODE_ENV==="production"?pt(14):`When called with an action of type ${m?`"${String(m)}"`:"(unknown type)"}, the slice reducer for key "${v}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}u[v]=f,p=p||f!==g}return p=p||r.length!==Object.keys(l).length,p?u:l}}function Ri(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Mb(...e){return t=>(n,r)=>{const i=t(n,r);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?pt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(c,...p)=>s(c,...p)},l=e.map(c=>c(a));return s=Ri(...l)(i.dispatch),{...i,dispatch:s}}}function fu(e){return vo(e)&&"type"in e&&typeof e.type=="string"}var hu=Symbol.for("immer-nothing"),gu=Symbol.for("immer-draftable"),xt=Symbol.for("immer-state"),_b=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 _t(e,...t){if(process.env.NODE_ENV!=="production"){const n=_b[e],r=or(n)?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $t=Object,Pr=$t.getPrototypeOf,Wi="constructor",Vi="prototype",tl="configurable",Ui="enumerable",Hi="writable",xo="value",kn=e=>!!e&&!!e[xt];function Jt(e){return e?yu(e)||Yi(e)||!!e[gu]||!!e[Wi]?.[gu]||Ki(e)||Gi(e):!1}var $b=$t[Vi][Wi].toString(),mu=new WeakMap;function yu(e){if(!e||!rl(e))return!1;const t=Pr(e);if(t===null||t===$t[Vi])return!0;const n=$t.hasOwnProperty.call(t,Wi)&&t[Wi];if(n===Object)return!0;if(!or(n))return!1;let r=mu.get(n);return r===void 0&&(r=Function.toString.call(n),mu.set(n,r)),r===$b}function So(e,t,n=!0){wo(e)===0?(n?Reflect.ownKeys(e):$t.keys(e)).forEach(i=>{t(i,e[i],e)}):e.forEach((r,i)=>t(i,r,e))}function wo(e){const t=e[xt];return t?t.type_:Yi(e)?1:Ki(e)?2:Gi(e)?3:0}var bu=(e,t,n=wo(e))=>n===2?e.has(t):$t[Vi].hasOwnProperty.call(e,t),nl=(e,t,n=wo(e))=>n===2?e.get(t):e[t],qi=(e,t,n,r=wo(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Db(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Yi=Array.isArray,Ki=e=>e instanceof Map,Gi=e=>e instanceof Set,rl=e=>typeof e=="object",or=e=>typeof e=="function",ol=e=>typeof e=="boolean",Nn=e=>e.copy_||e.base_,il=e=>e.modified_?e.copy_:e.base_;function sl(e,t){if(Ki(e))return new Map(e);if(Gi(e))return new Set(e);if(Yi(e))return Array[Vi].slice.call(e);const n=yu(e);if(t===!0||t==="class_only"&&!n){const r=$t.getOwnPropertyDescriptors(e);delete r[xt];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],l=r[a];l[Hi]===!1&&(l[Hi]=!0,l[tl]=!0),(l.get||l.set)&&(r[a]={[tl]:!0,[Hi]:!0,[Ui]:l[Ui],[xo]:e[a]})}return $t.create(Pr(e),r)}else{const r=Pr(e);if(r!==null&&n)return{...e};const i=$t.create(r);return $t.assign(i,e)}}function al(e,t=!1){return Ji(e)||kn(e)||!Jt(e)||(wo(e)>1&&$t.defineProperties(e,{set:Xi,add:Xi,clear:Xi,delete:Xi}),$t.freeze(e),t&&So(e,(n,r)=>{al(r,!0)},!1)),e}function Fb(){_t(2)}var Xi={[xo]:Fb};function Ji(e){return e===null||!rl(e)?!0:$t.isFrozen(e)}var Qi="MapSet",ll="Patches",vu={};function kr(e){const t=vu[e];return t||_t(0,e),t}var jb=e=>!!vu[e],Co,xu=()=>Co,Lb=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:jb(Qi)?kr(Qi):void 0});function Su(e,t){t&&(e.patchPlugin_=kr(ll),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function cl(e){dl(e),e.drafts_.forEach(zb),e.drafts_=null}function dl(e){e===Co&&(Co=e.parent_)}var wu=e=>Co=Lb(Co,e);function zb(e){const t=e[xt];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Cu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[xt].modified_&&(cl(t),_t(4)),Jt(e)&&(e=Eu(t,e));const{patchPlugin_:i}=t;i&&i.generateReplacementPatches_(n[xt].base_,e,t)}else e=Eu(t,n);return Bb(t,e,!0),cl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==hu?e:void 0}function Eu(e,t){if(Ji(t))return t;const n=t[xt];if(!n)return ul(t,e.handledSet_,e);if(!Zi(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);Pu(n,e)}return n.copy_}function Bb(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&al(t,n)}function Tu(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Zi=(e,t)=>e.scope_===t,Rb=[];function Ou(e,t,n,r){const i=Nn(e),s=e.type_;if(r!==void 0&&nl(i,r,s)===t){qi(i,r,n,s);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;So(i,(c,p)=>{if(kn(p)){const u=l.get(p)||[];u.push(c),l.set(p,u)}})}const a=e.draftLocations_.get(t)??Rb;for(const l of a)qi(i,l,n,s)}function Wb(e,t,n){e.callbacks_.push(function(i){const s=t;if(!s||!Zi(s,i))return;i.mapSetPlugin_?.fixSetContents(s);const a=il(s);Ou(e,s.draft_??s,a,n),Pu(s,i)})}function Pu(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const i=r.getPath(e);i&&r.generatePatches_(e,i,t)}Tu(e)}}function Vb(e,t,n){const{scope_:r}=e;if(kn(n)){const i=n[xt];Zi(i,r)&&i.callbacks_.push(function(){es(e);const a=il(i);Ou(e,n,a,t)})}else Jt(n)&&e.callbacks_.push(function(){const s=Nn(e);nl(s,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ul(nl(e.copy_,t,e.type_),r.handledSet_,r)})}function ul(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||kn(e)||t.has(e)||!Jt(e)||Ji(e)||(t.add(e),So(e,(r,i)=>{if(kn(i)){const s=i[xt];if(Zi(s,n)){const a=il(s);qi(e,r,a,e.type_),Tu(s)}}else Jt(i)&&ul(i,t,n)})),e}function Ub(e,t){const n=Yi(e),r={type_:n?1:0,scope_:t?t.scope_:xu(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=r,s=pl;n&&(i=[r],s=Eo);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,[l,r]}var pl={get(e,t){if(t===xt)return e;const n=Nn(e);if(!bu(n,t,e.type_))return Hb(e,n,t);const r=n[t];if(e.finalized_||!Jt(r))return r;if(r===fl(e.base_,t)){es(e);const i=e.type_===1?+t:t,s=gl(e.scope_,r,e,i);return e.copy_[i]=s}return r},has(e,t){return t in Nn(e)},ownKeys(e){return Reflect.ownKeys(Nn(e))},set(e,t,n){const r=ku(Nn(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=fl(Nn(e),t),s=i?.[xt];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Db(n,i)&&(n!==void 0||bu(e.base_,t,e.type_)))return!0;es(e),hl(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Vb(e,t,n)),!0},deleteProperty(e,t){return es(e),fl(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),hl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Nn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Hi]:!0,[tl]:e.type_!==1||t!=="length",[Ui]:r[Ui],[xo]:n[t]}},defineProperty(){_t(11)},getPrototypeOf(e){return Pr(e.base_)},setPrototypeOf(){_t(12)}},Eo={};So(pl,(e,t)=>{Eo[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}),Eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&_t(13),Eo.set.call(this,e,t,void 0)},Eo.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&_t(14),pl.set.call(this,e[0],t,n,e[0])};function fl(e,t){const n=e[xt];return(n?Nn(n):e)[t]}function Hb(e,t,n){const r=ku(t,n);return r?xo in r?r[xo]:r.get?.call(e.draft_):void 0}function ku(e,t){if(!(t in e))return;let n=Pr(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Pr(n)}}function hl(e){e.modified_||(e.modified_=!0,e.parent_&&hl(e.parent_))}function es(e){e.copy_||(e.assigned_=new Map,e.copy_=sl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var qb=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,r)=>{if(or(t)&&!or(n)){const s=n;n=t;const a=this;return function(c=s,...p){return a.produce(c,u=>n.call(this,u,...p))}}or(n)||_t(6),r!==void 0&&!or(r)&&_t(7);let i;if(Jt(t)){const s=wu(this),a=gl(s,t,void 0);let l=!0;try{i=n(a),l=!1}finally{l?cl(s):dl(s)}return Su(s,r),Cu(i,s)}else if(!t||!rl(t)){if(i=n(t),i===void 0&&(i=t),i===hu&&(i=void 0),this.autoFreeze_&&al(i,!0),r){const s=[],a=[];kr(ll).generateReplacementPatches_(t,i,{patches_:s,inversePatches_:a}),r(s,a)}return i}else _t(1,t)},this.produceWithPatches=(t,n)=>{if(or(t))return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let r,i;return[this.produce(t,n,(a,l)=>{r=a,i=l}),r,i]},ol(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),ol(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),ol(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Jt(e)||_t(8),kn(e)&&(e=Yb(e));const t=wu(this),n=gl(t,e,void 0);return n[xt].isManual_=!0,dl(t),n}finishDraft(e,t){const n=e&&e[xt];(!n||!n.isManual_)&&_t(9);const{scope_:r}=n;return Su(r,t),Cu(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=kr(ll).applyPatches_;return kn(e)?r(e,t):this.produce(e,i=>r(i,t))}};function gl(e,t,n,r){const[i,s]=Ki(t)?kr(Qi).proxyMap_(t,n):Gi(t)?kr(Qi).proxySet_(t,n):Ub(t,n);return(n?.scope_??xu()).drafts_.push(i),s.callbacks_=n?.callbacks_??[],s.key_=r,n&&r!==void 0?Wb(n,s,r):s.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(s);const{patchPlugin_:p}=c;s.modified_&&p&&p.generatePatches_(s,[],c)}),i}function Yb(e){return kn(e)||_t(10,e),Nu(e)}function Nu(e){if(!Jt(e)||Ji(e))return e;const t=e[xt];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sl(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=sl(e,!0);return So(n,(i,s)=>{qi(n,i,Nu(s))},r),t&&(t.finalized_=!1),n}var Kb=new qb,Iu=Kb.produce,Gb=(e,t,n)=>{if(t.length===1&&t[0]===n){let r=!1;try{const i={};e(i)===i&&(r=!0)}catch{}if(r){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
|
|
6
6
|
\`createSelector([state => state.todos], todos => todos)\`
|
|
7
7
|
This could lead to inefficient memoization and unnecessary re-renders.
|
|
8
|
-
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:
|
|
8
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Xb=(e,t,n)=>{const{memoize:r,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,l=r(()=>({}),...i);if(!(l.apply(null,s)===l.apply(null,a))){let p;try{throw new Error}catch(u){({stack:p}=u)}console.warn(`An input selector returned a different result when passed same arguments.
|
|
9
9
|
This means your output selector will likely run more frequently than intended.
|
|
10
10
|
Avoid returning a new reference inside your input selector, e.g.
|
|
11
|
-
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:
|
|
12
|
-
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function
|
|
11
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:n,firstInputs:s,secondInputs:a,stack:p})}},Jb={inputStabilityCheck:"once",identityFunctionCheck:"once"};function Qb(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Zb(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function e0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var Au=e=>Array.isArray(e)?e:[e];function t0(e){const t=Array.isArray(e[0])?e[0]:e;return e0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Mu(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var n0=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:r}={...Jb,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:Gb},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Xb}}},r0=class{constructor(e){this.value=e}deref(){return this.value}},o0=typeof WeakRef<"u"?WeakRef:r0,i0=0,_u=1;function ts(){return{s:i0,v:void 0,o:null,p:null}}function $u(e,t={}){let n=ts();const{resultEqualityCheck:r}=t;let i,s=0;function a(){let l=n;const{length:c}=arguments;for(let h=0,v=c;h<v;h++){const b=arguments[h];if(typeof b=="function"||typeof b=="object"&&b!==null){let g=l.o;g===null&&(l.o=g=new WeakMap);const f=g.get(b);f===void 0?(l=ts(),g.set(b,l)):l=f}else{let g=l.p;g===null&&(l.p=g=new Map);const f=g.get(b);f===void 0?(l=ts(),g.set(b,l)):l=f}}const p=l;let u;if(l.s===_u)u=l.v;else if(u=e.apply(null,arguments),s++,r){const h=i?.deref?.()??i;h!=null&&r(h,u)&&(u=h,s!==0&&s--),i=typeof u=="object"&&u!==null||typeof u=="function"?new o0(u):u}return p.s=_u,p.v=u,u}return a.clearCache=()=>{n=ts(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function s0(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let s=0,a=0,l,c={},p=i.pop();typeof p=="object"&&(c=p,p=i.pop()),Qb(p,`createSelector expects an output function after the inputs, but received: [${typeof p}]`);const u={...n,...c},{memoize:h,memoizeOptions:v=[],argsMemoize:b=$u,argsMemoizeOptions:g=[],devModeChecks:f={}}=u,m=Au(v),y=Au(g),w=t0(i),x=h(function(){return s++,p.apply(null,arguments)},...m);let S=!0;const C=b(function(){a++;const P=Mu(w,arguments);if(l=x.apply(null,P),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:$,inputStabilityCheck:A}=n0(S,f);if($.shouldRun&&$.run(p,P,l),A.shouldRun){const j=Mu(w,arguments);A.run({inputSelectorResults:P,inputSelectorResultsCopy:j},{memoize:h,memoizeOptions:m},arguments)}S&&(S=!1)}return l},...y);return Object.assign(C,{resultFunc:p,memoizedResultFunc:x,dependencies:w,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:h,argsMemoize:b})};return Object.assign(r,{withTypes:()=>r}),r}var a0=s0($u),l0=Object.assign((e,t=a0)=>{Zb(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(s=>e[s]);return t(r,(...s)=>s.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>l0});function Du(e){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,e):i(s)}var c0=Du(),d0=Du,u0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ri:Ri.apply(null,arguments)},Fu=e=>e&&typeof e.match=="function";function To(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?Ye(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>fu(r)&&r.type===e,n}function p0(e){return typeof e=="function"&&"type"in e&&Fu(e)}function f0(e){const t=e?`${e}`.split("/"):[],n=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.
|
|
12
|
+
Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${n}())\` instead of \`dispatch(${n})\`. This is necessary even if the action has no payload.`}function h0(e={}){if(process.env.NODE_ENV==="production")return()=>n=>r=>n(r);const{isActionCreator:t=p0}=e;return()=>n=>r=>(t(r)&&console.warn(f0(r.type)),n(r))}function ju(e,t){let n=0;return{measureTime(r){const i=Date.now();try{return r()}finally{const s=Date.now();n+=s-i}},warnIfExceeded(){n>e&&console.warn(`${t} took ${n}ms, which is more than the warning threshold of ${e}ms.
|
|
13
13
|
If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
|
|
14
|
-
It is disabled in production builds, so you don't need to worry about that.`)}}}var
|
|
15
|
-
Take a look at the logic that dispatched this action: `,
|
|
14
|
+
It is disabled in production builds, so you don't need to worry about that.`)}}}var Lu=class $i extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,$i.prototype)}static get[Symbol.species](){return $i}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new $i(...t[0].concat(this)):new $i(...t.concat(this))}};function zu(e){return Jt(e)?Iu(e,()=>{}):e}function ns(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function g0(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function m0(e,t,n){const r=Bu(e,t,n);return{detectMutations(){return Ru(e,t,r,n)}}}function Bu(e,t=[],n,r="",i=new Set){const s={value:n};if(!e(n)&&!i.has(n)){i.add(n),s.children={};const a=t.length>0;for(const l in n){const c=r?r+"."+l:l;a&&t.some(u=>u instanceof RegExp?u.test(c):c===u)||(s.children[l]=Bu(e,t,n[l],c))}}return s}function Ru(e,t=[],n,r,i=!1,s=""){const a=n?n.value:void 0,l=a===r;if(i&&!l&&!Number.isNaN(r))return{wasMutated:!0,path:s};if(e(a)||e(r))return{wasMutated:!1};const c={};for(let u in n.children)c[u]=!0;for(let u in r)c[u]=!0;const p=t.length>0;for(let u in c){const h=s?s+"."+u:u;if(p&&t.some(g=>g instanceof RegExp?g.test(h):h===g))continue;const v=Ru(e,t,n.children[u],r[u],l,h);if(v.wasMutated)return v}return{wasMutated:!1}}function y0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{let t=function(l,c,p,u){return JSON.stringify(l,n(c,u),p)},n=function(l,c){let p=[],u=[];return c||(c=function(h,v){return p[0]===v?"[Circular ~]":"[Circular ~."+u.slice(0,p.indexOf(v)).join(".")+"]"}),function(h,v){if(p.length>0){var b=p.indexOf(this);~b?p.splice(b+1):p.push(this),~b?u.splice(b,1/0,h):u.push(h),~p.indexOf(v)&&(v=c.call(this,h,v))}else p.push(v);return l==null?v:l.call(this,h,v)}},{isImmutable:r=g0,ignoredPaths:i,warnAfter:s=32}=e;const a=m0.bind(null,r,i);return({getState:l})=>{let c=l(),p=a(c),u;return h=>v=>{const b=ju(s,"ImmutableStateInvariantMiddleware");b.measureTime(()=>{if(c=l(),u=p.detectMutations(),p=a(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ye(19):`A state mutation was detected between dispatches, in the path '${u.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const g=h(v);return b.measureTime(()=>{if(c=l(),u=p.detectMutations(),p=a(c),u.wasMutated)throw new Error(process.env.NODE_ENV==="production"?Ye(20):`A state mutation was detected inside a dispatch, in the path: ${u.path||""}. Take a look at the reducer(s) handling the action ${t(v)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),b.warnIfExceeded(),g}}}}function Wu(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||vo(e)}function ml(e,t="",n=Wu,r,i=[],s){let a;if(!n(e))return{keyPath:t||"<root>",value:e};if(typeof e!="object"||e===null||s?.has(e))return!1;const l=r!=null?r(e):Object.entries(e),c=i.length>0;for(const[p,u]of l){const h=t?t+"."+p:p;if(!(c&&i.some(b=>b instanceof RegExp?b.test(h):h===b))){if(!n(u))return{keyPath:h,value:u};if(typeof u=="object"&&(a=ml(u,h,n,r,i,s),a))return a}}return s&&Vu(e)&&s.add(e),!1}function Vu(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!Vu(t))return!1;return!0}function b0(e={}){if(process.env.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=Wu,getEntries:n,ignoredActions:r=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:p=!1}=e,u=!p&&WeakSet?new WeakSet:void 0;return h=>v=>b=>{if(!fu(b))return v(b);const g=v(b),f=ju(a,"SerializableStateInvariantMiddleware");return!c&&!(r.length&&r.indexOf(b.type)!==-1)&&f.measureTime(()=>{const m=ml(b,"",t,n,i,u);if(m){const{keyPath:y,value:w}=m;console.error(`A non-serializable value was detected in an action, in the path: \`${y}\`. Value:`,w,`
|
|
15
|
+
Take a look at the logic that dispatched this action: `,b,`
|
|
16
16
|
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)`,`
|
|
17
|
-
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(
|
|
18
|
-
Take a look at the reducer(s) handling this action type: ${
|
|
19
|
-
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),g}}}function Bi(e){return typeof e=="boolean"}var Xb=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let a=new Su;if(n&&(Bi(n)?a.push(Rb):a.push(Wb(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};Bi(r)||(l=r),a.unshift(Gb(l))}if(o){let l={};Bi(o)||(l=o),a.push(Jb(l))}if(s){let l={};Bi(s)||(l=s),a.unshift(qb(l))}}return a},Qb="RTK_autoBatch",Pu=e=>t=>{setTimeout(t,e)},Zb=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,s=!1,a=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Pu(10):e.type==="callback"?e.queueNotification:Pu(e.timeout),f=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>o&&u(),b=r.subscribe(h);return l.add(u),()=>{b(),l.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Qb],s=!o,s&&(a||(a=!0,c(f))),r.dispatch(u)}finally{o=!0}}})},e0=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new Su(e);return r&&o.push(Zb(typeof r=="object"?r:void 0)),o};function t0(e){const t=Xb(),{reducer:n=void 0,middleware:r,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(to(n))c=Gd(n);else throw new Error(process.env.NODE_ENV==="production"?Fe(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(2):"`middleware` field must be a callback");let f;if(typeof r=="function"){if(f=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(f))throw new Error(process.env.NODE_ENV==="production"?Fe(3):"when using a middleware builder function, an array of middleware must be returned")}else f=t();if(process.env.NODE_ENV!=="production"&&f.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?Fe(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let p=new Set;f.forEach(y=>{if(p.has(y))throw new Error(process.env.NODE_ENV==="production"?Fe(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");p.add(y)})}let u=Ei;o&&(u=Vb({trace:process.env.NODE_ENV!=="production",...typeof o=="object"&&o}));const h=db(...f),b=e0(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Fe(5):"`enhancers` field must be a callback");let m=typeof l=="function"?l(b):b();if(process.env.NODE_ENV!=="production"&&!Array.isArray(m))throw new Error(process.env.NODE_ENV==="production"?Fe(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&m.some(p=>typeof p!="function"))throw new Error(process.env.NODE_ENV==="production"?Fe(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&f.length&&!m.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...m);return ja(c,a,g)}function ku(e){const t={},n=[];let r;const o={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Fe(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Fe(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof s=="string"?s:s.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Fe(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Fe(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,o},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Fe(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),o},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Fe(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Fe(31):"`builder.addDefaultCase` can only be called once");return r=s,o}};return e(o),[t,n,r]}function n0(e){return typeof e=="function"}function r0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Fe(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,o]=ku(t),s;if(n0(e))s=()=>wu(e());else{const l=wu(e);s=()=>l}function a(l=s(),c){let f=[n[c.type],...r.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return f.filter(u=>!!u).length===0&&(f=[o]),f.reduce((u,h)=>{if(h)if(bn(u)){const m=h(u,c);return m===void 0?u:m}else{if(Vt(u))return fu(u,b=>h(b,c));{const b=h(u,c);if(b===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return u},l)}return a.getInitialState=s,a}var o0=(e,t)=>vu(e)?e.match(t):e(t);function i0(...e){return t=>e.some(n=>o0(n,t))}var s0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",a0=(e=21)=>{let t="",n=e;for(;n--;)t+=s0[Math.random()*64|0];return t},l0=["name","message","stack","code"],el=class{constructor(e,t){this.payload=e,this.meta=t}_type},Nu=class{constructor(e,t){this.payload=e,this.meta=t}_type},c0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of l0)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Iu="External signal was aborted",Ut=(()=>{function e(t,n,r){const o=ao(t+"/fulfilled",(c,f,u,h)=>({payload:c,meta:{...h||{},arg:u,requestId:f,requestStatus:"fulfilled"}})),s=ao(t+"/pending",(c,f,u)=>({payload:void 0,meta:{...u||{},arg:f,requestId:c,requestStatus:"pending"}})),a=ao(t+"/rejected",(c,f,u,h,b)=>({payload:h,error:(r&&r.serializeError||c0)(c||"Rejected"),meta:{...b||{},arg:u,requestId:f,rejectedWithValue:!!h,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:f}={}){return(u,h,b)=>{const m=r?.idGenerator?r.idGenerator(c):a0(),g=new AbortController;let p,y;function x(S){y=S,g.abort()}f&&(f.aborted?x(Iu):f.addEventListener("abort",()=>x(Iu),{once:!0}));const w=(async function(){let S;try{let C=r?.condition?.(c,{getState:h,extra:b});if(u0(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((P,$)=>{p=()=>{$({name:"AbortError",message:y||"Aborted"})},g.signal.addEventListener("abort",p,{once:!0})});u(s(m,c,r?.getPendingMeta?.({requestId:m,arg:c},{getState:h,extra:b}))),S=await Promise.race([O,Promise.resolve(n(c,{dispatch:u,getState:h,extra:b,requestId:m,signal:g.signal,abort:x,rejectWithValue:(P,$)=>new el(P,$),fulfillWithValue:(P,$)=>new Nu(P,$)})).then(P=>{if(P instanceof el)throw P;return P instanceof Nu?o(P.payload,m,c,P.meta):o(P,m,c)})])}catch(C){S=C instanceof el?a(null,m,c,C.payload,C.meta):a(C,m,c)}finally{p&&g.signal.removeEventListener("abort",p)}return r&&!r.dispatchConditionRejection&&a.match(S)&&S.meta.condition||u(S),S})();return Object.assign(w,{abort:x,requestId:m,arg:c,unwrap(){return w.then(d0)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:o,settled:i0(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function d0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function u0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var p0=Symbol.for("rtk-slice-createasyncthunk");function f0(e,t){return`${e}/${t}`}function h0({creators:e}={}){const t=e?.asyncThunk?.[p0];return function(r){const{name:o,reducerPath:s=o}=r;if(!o)throw new Error(process.env.NODE_ENV==="production"?Fe(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(m0()):r.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(S,v){const C=typeof S=="string"?S:S.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Fe(12):"`context.addCase` cannot be called with an empty action type");if(C in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Fe(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return c.sliceCaseReducersByType[C]=v,f},addMatcher(S,v){return c.sliceMatchers.push({matcher:S,reducer:v}),f},exposeAction(S,v){return c.actionCreators[S]=v,f},exposeCaseReducer(S,v){return c.sliceCaseReducersByName[S]=v,f}};l.forEach(S=>{const v=a[S],C={reducerName:S,type:f0(o,S),createNotation:typeof r.reducers=="function"};b0(v)?x0(C,v,f,t):y0(C,v,f)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Fe(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[S={},v=[],C=void 0]=typeof r.extraReducers=="function"?ku(r.extraReducers):[r.extraReducers],O={...S,...c.sliceCaseReducersByType};return r0(r.initialState,P=>{for(let $ in O)P.addCase($,O[$]);for(let $ of c.sliceMatchers)P.addMatcher($.matcher,$.reducer);for(let $ of v)P.addMatcher($.matcher,$.reducer);C&&P.addDefaultCase(C)})}const h=S=>S,b=new Map,m=new WeakMap;let g;function p(S,v){return g||(g=u()),g(S,v)}function y(){return g||(g=u()),g.getInitialState()}function x(S,v=!1){function C(P){let $=P[S];if(typeof $>"u"){if(v)$=Li(m,C,y);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Fe(15):"selectSlice returned undefined for an uninjected slice reducer")}return $}function O(P=h){const $=Li(b,v,()=>new WeakMap);return Li($,P,()=>{const A={};for(const[B,L]of Object.entries(r.selectors??{}))A[B]=g0(L,P,()=>Li(m,P,y),v);return A})}return{reducerPath:S,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const w={name:o,reducer:p,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...x(s),injectInto(S,{reducerPath:v,...C}={}){const O=v??s;return S.inject({reducerPath:O,reducer:p},C),{...w,...x(O,!0)}}};return w}}function g0(e,t,n,r){function o(s,...a){let l=t(s);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Fe(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return o.unwrapped=e,o}var Au=h0();function m0(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function y0({type:e,reducerName:t,createNotation:n},r,o){let s,a;if("reducer"in r){if(n&&!v0(r))throw new Error(process.env.NODE_ENV==="production"?Fe(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?ao(e,a):ao(e))}function b0(e){return e._reducerDefinitionType==="asyncThunk"}function v0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function x0({type:e,reducerName:t},n,r,o){if(!o)throw new Error(process.env.NODE_ENV==="production"?Fe(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:l,rejected:c,settled:f,options:u}=n,h=o(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),c&&r.addCase(h.rejected,c),f&&r.addMatcher(h.settled,f),r.exposeCaseReducer(t,{fulfilled:a||Ri,pending:l||Ri,rejected:c||Ri,settled:f||Ri})}function Ri(){}function Fe(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 tl="persist:",_u="persist/FLUSH",nl="persist/REHYDRATE",Mu="persist/PAUSE",$u="persist/PERSIST",Du="persist/PURGE",Fu="persist/REGISTER",S0=-1;function lo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?lo=function(n){return typeof n}:lo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lo(e)}function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function w0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ju(n,!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E0(e,t,n,r){var o=r.debug,s=w0({},n);return e&&lo(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&o&&e&&lo(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function T0(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:tl).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(C){return C}:typeof e.serialize=="function"?l=e.serialize:l=O0;var c=e.writeFailHandler||null,f={},u={},h=[],b=null,m=null,g=function(C){Object.keys(C).forEach(function(O){x(O)&&f[O]!==C[O]&&h.indexOf(O)===-1&&h.push(O)}),Object.keys(f).forEach(function(O){C[O]===void 0&&x(O)&&h.indexOf(O)===-1&&f[O]!==void 0&&h.push(O)}),b===null&&(b=setInterval(p,o)),f=C};function p(){if(h.length===0){b&&clearInterval(b),b=null;return}var v=h.shift(),C=r.reduce(function(O,P){return P.in(O,v,f)},f[v]);if(C!==void 0)try{u[v]=l(C)}catch(O){console.error("redux-persist/createPersistoid: error serializing state",O)}else delete u[v];h.length===0&&y()}function y(){Object.keys(u).forEach(function(v){f[v]===void 0&&delete u[v]}),m=a.setItem(s,l(u)).catch(w)}function x(v){return!(n&&n.indexOf(v)===-1&&v!=="_persist"||t&&t.indexOf(v)!==-1)}function w(v){c&&c(v),v&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",v)}var S=function(){for(;h.length!==0;)p();return m||Promise.resolve()};return{update:g,flush:S}}function O0(e){return JSON.stringify(e)}function P0(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:tl).concat(e.key),r=e.storage,o=e.debug,s;return e.deserialize===!1?s=function(l){return l}:typeof e.deserialize=="function"?s=e.deserialize:s=k0,r.getItem(n).then(function(a){if(a)try{var l={},c=s(a);return Object.keys(c).forEach(function(f){l[f]=t.reduceRight(function(u,h){return h.out(u,f,c)},s(c[f]))}),l}catch(f){throw process.env.NODE_ENV!=="production"&&o&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),f),f}else return})}function k0(e){return JSON.parse(e)}function N0(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:tl).concat(e.key);return t.removeItem(n,I0)}function I0(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function zu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zu(n,!0).forEach(function(r){A0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _0(e,t){if(e==null)return{};var n=M0(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function M0(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var $0=5e3;function D0(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:S0;e.debug;var r=e.stateReconciler===void 0?E0:e.stateReconciler,o=e.getStoredState||P0,s=e.timeout!==void 0?e.timeout:$0,a=null,l=!1,c=!0,f=function(h){return h._persist.rehydrated&&a&&!c&&a.update(h),h};return function(u,h){var b=u||{},m=b._persist,g=_0(b,["_persist"]),p=g;if(h.type===$u){var y=!1,x=function($,A){process.env.NODE_ENV!=="production"&&y&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),$,A),y||(h.rehydrate(e.key,$,A),y=!0)};if(s&&setTimeout(function(){!y&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),c=!1,a||(a=T0(e)),m)return xn({},t(p,h),{_persist:m});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),o(e).then(function(P){var $=e.migrate||function(A,B){return Promise.resolve(A)};$(P,n).then(function(A){x(A)},function(A){process.env.NODE_ENV!=="production"&&A&&console.error("redux-persist: migration error",A),x(void 0,A)})},function(P){x(void 0,P)}),xn({},t(p,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Du)return l=!0,h.result(N0(e)),xn({},t(p,h),{_persist:m});if(h.type===_u)return h.result(a&&a.flush()),xn({},t(p,h),{_persist:m});if(h.type===Mu)c=!0;else if(h.type===nl){if(l)return xn({},p,{_persist:xn({},m,{rehydrated:!0})});if(h.key===e.key){var w=t(p,h),S=h.payload,v=r!==!1&&S!==void 0?r(S,u,w,e):w,C=xn({},v,{_persist:xn({},m,{rehydrated:!0})});return f(C)}}}if(!m)return t(u,h);var O=t(p,h);return O===p?u:f(xn({},O,{_persist:m}))}}function Lu(e){return z0(e)||j0(e)||F0()}function F0(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function j0(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function z0(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function Bu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function rl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bu(n,!0).forEach(function(r){L0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bu(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ru={registry:[],bootstrapped:!1},B0=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ru,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Fu:return rl({},t,{registry:[].concat(Lu(t.registry),[n.key])});case nl:var r=t.registry.indexOf(n.key),o=Lu(t.registry);return o.splice(r,1),rl({},t,{registry:o,bootstrapped:o.length===0});default:return t}};function R0(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},o=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];o.forEach(function(f){r[f]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(f,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=ja(B0,Ru,void 0),a=function(u){s.dispatch({type:Fu,key:u})},l=function(u,h,b){var m={type:nl,payload:h,err:b,key:u};e.dispatch(m),s.dispatch(m)},c=rl({},s,{purge:function(){var u=[];return e.dispatch({type:Du,result:function(b){u.push(b)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:_u,result:function(b){u.push(b)}}),Promise.all(u)},pause:function(){e.dispatch({type:Mu})},persist:function(){e.dispatch({type:$u,register:a,rehydrate:l})}});return c.persist(),c}function Wu(e,t){return function(){return e.apply(t,arguments)}}const{toString:W0}=Object.prototype,{getPrototypeOf:ol}=Object,{iterator:Wi,toStringTag:Vu}=Symbol,Vi=(e=>t=>{const n=W0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ht=e=>(e=e.toLowerCase(),t=>Vi(t)===e),Ui=e=>t=>typeof t===e,{isArray:vr}=Array,xr=Ui("undefined");function co(e){return e!==null&&!xr(e)&&e.constructor!==null&&!xr(e.constructor)&&vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Uu=Ht("ArrayBuffer");function V0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Uu(e.buffer),t}const U0=Ui("string"),vt=Ui("function"),Hu=Ui("number"),uo=e=>e!==null&&typeof e=="object",H0=e=>e===!0||e===!1,Hi=e=>{if(Vi(e)!=="object")return!1;const t=ol(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Vu in e)&&!(Wi in e)},q0=e=>{if(!uo(e)||co(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Y0=Ht("Date"),K0=Ht("File"),G0=Ht("Blob"),J0=Ht("FileList"),X0=e=>uo(e)&&vt(e.pipe),Q0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||vt(e.append)&&((t=Vi(e))==="formdata"||t==="object"&&vt(e.toString)&&e.toString()==="[object FormData]"))},Z0=Ht("URLSearchParams"),[ev,tv,nv,rv]=["ReadableStream","Request","Response","Headers"].map(Ht),ov=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function po(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),vr(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(co(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function qu(e,t){if(co(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Gn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yu=e=>!xr(e)&&e!==Gn;function il(){const{caseless:e,skipUndefined:t}=Yu(this)&&this||{},n={},r=(o,s)=>{const a=e&&qu(n,s)||s;Hi(n[a])&&Hi(o)?n[a]=il(n[a],o):Hi(o)?n[a]=il({},o):vr(o)?n[a]=o.slice():(!t||!xr(o))&&(n[a]=o)};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&po(arguments[o],r);return n}const iv=(e,t,n,{allOwnKeys:r}={})=>(po(t,(o,s)=>{n&&vt(o)?e[s]=Wu(o,n):e[s]=o},{allOwnKeys:r}),e),sv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),av=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},lv=(e,t,n,r)=>{let o,s,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)a=o[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&ol(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},cv=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},dv=e=>{if(!e)return null;if(vr(e))return e;let t=e.length;if(!Hu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},uv=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ol(Uint8Array)),pv=(e,t)=>{const r=(e&&e[Wi]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},fv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},hv=Ht("HTMLFormElement"),gv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Ku=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),mv=Ht("RegExp"),Gu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};po(n,(o,s)=>{let a;(a=t(o,s,e))!==!1&&(r[s]=a||o)}),Object.defineProperties(e,r)},yv=e=>{Gu(e,(t,n)=>{if(vt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(vt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},bv=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return vr(e)?r(e):r(String(e).split(t)),n},vv=()=>{},xv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Sv(e){return!!(e&&vt(e.append)&&e[Vu]==="FormData"&&e[Wi])}const wv=e=>{const t=new Array(10),n=(r,o)=>{if(uo(r)){if(t.indexOf(r)>=0)return;if(co(r))return r;if(!("toJSON"in r)){t[o]=r;const s=vr(r)?[]:{};return po(r,(a,l)=>{const c=n(a,o+1);!xr(c)&&(s[l]=c)}),t[o]=void 0,s}}return r};return n(e,0)},Cv=Ht("AsyncFunction"),Ev=e=>e&&(uo(e)||vt(e))&&vt(e.then)&&vt(e.catch),Ju=((e,t)=>e?setImmediate:t?((n,r)=>(Gn.addEventListener("message",({source:o,data:s})=>{o===Gn&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Gn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",vt(Gn.postMessage)),Tv=typeof queueMicrotask<"u"?queueMicrotask.bind(Gn):typeof process<"u"&&process.nextTick||Ju,U={isArray:vr,isArrayBuffer:Uu,isBuffer:co,isFormData:Q0,isArrayBufferView:V0,isString:U0,isNumber:Hu,isBoolean:H0,isObject:uo,isPlainObject:Hi,isEmptyObject:q0,isReadableStream:ev,isRequest:tv,isResponse:nv,isHeaders:rv,isUndefined:xr,isDate:Y0,isFile:K0,isBlob:G0,isRegExp:mv,isFunction:vt,isStream:X0,isURLSearchParams:Z0,isTypedArray:uv,isFileList:J0,forEach:po,merge:il,extend:iv,trim:ov,stripBOM:sv,inherits:av,toFlatObject:lv,kindOf:Vi,kindOfTest:Ht,endsWith:cv,toArray:dv,forEachEntry:pv,matchAll:fv,isHTMLForm:hv,hasOwnProperty:Ku,hasOwnProp:Ku,reduceDescriptors:Gu,freezeMethods:yv,toObjectSet:bv,toCamelCase:gv,noop:vv,toFiniteNumber:xv,findKey:qu,global:Gn,isContextDefined:Yu,isSpecCompliantForm:Sv,toJSONObject:wv,isAsyncFn:Cv,isThenable:Ev,setImmediate:Ju,asap:Tv,isIterable:e=>e!=null&&vt(e[Wi])};function ye(e,t,n,r,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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}U.inherits(ye,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:U.toJSONObject(this.config),code:this.code,status:this.status}}});const Xu=ye.prototype,Qu={};["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=>{Qu[e]={value:e}}),Object.defineProperties(ye,Qu),Object.defineProperty(Xu,"isAxiosError",{value:!0}),ye.from=(e,t,n,r,o,s)=>{const a=Object.create(Xu);U.toFlatObject(e,a,function(u){return u!==Error.prototype},f=>f!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return ye.call(a,l,c,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const Ov=null;function sl(e){return U.isPlainObject(e)||U.isArray(e)}function Zu(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function ep(e,t,n){return e?e.concat(t).map(function(o,s){return o=Zu(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function Pv(e){return U.isArray(e)&&!e.some(sl)}const kv=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function qi(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!U.isUndefined(y[p])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function f(g){if(g===null)return"";if(U.isDate(g))return g.toISOString();if(U.isBoolean(g))return g.toString();if(!c&&U.isBlob(g))throw new ye("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(g)||U.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,y){let x=g;if(g&&!y&&typeof g=="object"){if(U.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(U.isArray(g)&&Pv(g)||(U.isFileList(g)||U.endsWith(p,"[]"))&&(x=U.toArray(g)))return p=Zu(p),x.forEach(function(S,v){!(U.isUndefined(S)||S===null)&&t.append(a===!0?ep([p],v,s):a===null?p:p+"[]",f(S))}),!1}return sl(g)?!0:(t.append(ep(y,p,s),f(g)),!1)}const h=[],b=Object.assign(kv,{defaultVisitor:u,convertValue:f,isVisitable:sl});function m(g,p){if(!U.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),U.forEach(g,function(x,w){(!(U.isUndefined(x)||x===null)&&o.call(t,x,U.isString(w)?w.trim():w,p,b))===!0&&m(x,p?p.concat(w):[w])}),h.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return m(e),t}function tp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function al(e,t){this._pairs=[],e&&qi(e,this,t)}const np=al.prototype;np.append=function(t,n){this._pairs.push([t,n])},np.toString=function(t){const n=t?function(r){return t.call(this,r,tp)}:tp;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Nv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rp(e,t,n){if(!t)return e;const r=n&&n.encode||Nv;U.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(o?s=o(t,n):s=U.isURLSearchParams(t)?t.toString():new al(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class op{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ip={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Iv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:al,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ll=typeof window<"u"&&typeof document<"u",cl=typeof navigator=="object"&&navigator||void 0,Av=ll&&(!cl||["ReactNative","NativeScript","NS"].indexOf(cl.product)<0),_v=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mv=ll&&window.location.href||"http://localhost",ct={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ll,hasStandardBrowserEnv:Av,hasStandardBrowserWebWorkerEnv:_v,navigator:cl,origin:Mv},Symbol.toStringTag,{value:"Module"})),...Iv};function $v(e,t){return qi(e,new ct.classes.URLSearchParams,{visitor:function(n,r,o,s){return ct.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function Dv(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Fv(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}function sp(e){function t(n,r,o,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&U.isArray(o)?o.length:a,c?(U.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!U.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],s)&&U.isArray(o[a])&&(o[a]=Fv(o[a])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,o)=>{t(Dv(r),o,n,0)}),n}return null}function jv(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const fo={transitional:ip,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=U.isObject(t);if(s&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return o?JSON.stringify(sp(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $v(t,this.formSerializer).toString();if((l=U.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return qi(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),jv(t)):t}],transformResponse:[function(t){const n=this.transitional||fo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?ye.from(l,ye.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:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{fo.headers[e]={}});const zv=U.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"]),Lv=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
20
|
-
`).forEach(function(a){
|
|
21
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[ap]=this[ap]={accessors:{}}).accessors,o=this.prototype;function s(a){const l=ho(a);r[l]||(Vv(o,a),r[l]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}};xt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(xt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),U.freezeMethods(xt);function ul(e,t){const n=this||fo,r=t||n,o=xt.from(r.headers);let s=r.data;return U.forEach(e,function(l){s=l.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function lp(e){return!!(e&&e.__CANCEL__)}function Sr(e,t,n){ye.call(this,e??"canceled",ye.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Sr,ye,{__CANCEL__:!0});function cp(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Uv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Hv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const f=Date.now(),u=r[s];a||(a=f),n[o]=c,r[o]=f;let h=s,b=0;for(;h!==o;)b+=n[h++],h=h%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),f-a<t)return;const m=u&&f-u;return m?Math.round(b*1e3/m):void 0}}function qv(e,t){let n=0,r=1e3/t,o,s;const a=(f,u=Date.now())=>{n=u,o=null,s&&(clearTimeout(s),s=null),e(...f)};return[(...f)=>{const u=Date.now(),h=u-n;h>=r?a(f,u):(o=f,s||(s=setTimeout(()=>{s=null,a(o)},r-h)))},()=>o&&a(o)]}const Ki=(e,t,n=3)=>{let r=0;const o=Hv(50,250);return qv(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,f=o(c),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&u?(l-a)/f:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},dp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},up=e=>(...t)=>U.asap(()=>e(...t)),Yv=ct.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ct.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,Kv=ct.hasStandardBrowserEnv?{write(e,t,n,r,o,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];U.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),U.isString(r)&&l.push(`path=${r}`),U.isString(o)&&l.push(`domain=${o}`),s===!0&&l.push("secure"),U.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Gv(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Jv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pp(e,t,n){let r=!Gv(t);return e&&(r||n==!1)?Jv(e,t):t}const fp=e=>e instanceof xt?{...e}:e;function Jn(e,t){t=t||{};const n={};function r(f,u,h,b){return U.isPlainObject(f)&&U.isPlainObject(u)?U.merge.call({caseless:b},f,u):U.isPlainObject(u)?U.merge({},u):U.isArray(u)?u.slice():u}function o(f,u,h,b){if(U.isUndefined(u)){if(!U.isUndefined(f))return r(void 0,f,h,b)}else return r(f,u,h,b)}function s(f,u){if(!U.isUndefined(u))return r(void 0,u)}function a(f,u){if(U.isUndefined(u)){if(!U.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,h){if(h in t)return r(f,u);if(h in e)return r(void 0,f)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(f,u,h)=>o(fp(f),fp(u),h,!0)};return U.forEach(Object.keys({...e,...t}),function(u){const h=c[u]||o,b=h(e[u],t[u],u);U.isUndefined(b)&&h!==l||(n[u]=b)}),n}const hp=e=>{const t=Jn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=xt.from(a),t.url=rp(pp(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(n)){if(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(U.isFunction(n.getHeaders)){const c=n.getHeaders(),f=["content-type","content-length"];Object.entries(c).forEach(([u,h])=>{f.includes(u.toLowerCase())&&a.set(u,h)})}}if(ct.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(t)),r||r!==!1&&Yv(t.url))){const c=o&&s&&Kv.read(s);c&&a.set(o,c)}return t},Xv=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const o=hp(e);let s=o.data;const a=xt.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=o,u,h,b,m,g;function p(){m&&m(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function x(){if(!y)return;const S=xt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:S,config:e,request:y};cp(function(P){n(P),p()},function(P){r(P),p()},C),y=null}"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(r(new ye("Request aborted",ye.ECONNABORTED,e,y)),y=null)},y.onerror=function(v){const C=v&&v.message?v.message:"Network Error",O=new ye(C,ye.ERR_NETWORK,e,y);O.event=v||null,r(O),y=null},y.ontimeout=function(){let v=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||ip;o.timeoutErrorMessage&&(v=o.timeoutErrorMessage),r(new ye(v,C.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,y)),y=null},s===void 0&&a.setContentType(null),"setRequestHeader"in y&&U.forEach(a.toJSON(),function(v,C){y.setRequestHeader(C,v)}),U.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),l&&l!=="json"&&(y.responseType=o.responseType),f&&([b,g]=Ki(f,!0),y.addEventListener("progress",b)),c&&y.upload&&([h,m]=Ki(c),y.upload.addEventListener("progress",h),y.upload.addEventListener("loadend",m)),(o.cancelToken||o.signal)&&(u=S=>{y&&(r(!S||S.type?new Sr(null,e,y):S),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const w=Uv(o.url);if(w&&ct.protocols.indexOf(w)===-1){r(new ye("Unsupported protocol "+w+":",ye.ERR_BAD_REQUEST,e));return}y.send(s||null)})},Qv=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const s=function(f){if(!o){o=!0,l();const u=f instanceof Error?f:this.reason;r.abort(u instanceof ye?u:new Sr(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new ye(`timeout ${t} of ms exceeded`,ye.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),e=null)};e.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>U.asap(l),c}},Zv=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},ex=async function*(e,t){for await(const n of tx(e))yield*Zv(n,t)},tx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},gp=(e,t,n,r)=>{const o=ex(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:u}=await o.next();if(f){l(),c.close();return}let h=u.byteLength;if(n){let b=s+=h;n(b)}c.enqueue(new Uint8Array(u))}catch(f){throw l(f),f}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},mp=64*1024,{isFunction:Gi}=U,nx=(({Request:e,Response:t})=>({Request:e,Response:t}))(U.global),{ReadableStream:yp,TextEncoder:bp}=U.global,vp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},rx=e=>{e=U.merge.call({skipUndefined:!0},nx,e);const{fetch:t,Request:n,Response:r}=e,o=t?Gi(t):typeof fetch=="function",s=Gi(n),a=Gi(r);if(!o)return!1;const l=o&&Gi(yp),c=o&&(typeof bp=="function"?(g=>p=>g.encode(p))(new bp):async g=>new Uint8Array(await new n(g).arrayBuffer())),f=s&&l&&vp(()=>{let g=!1;const p=new n(ct.origin,{body:new yp,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!p}),u=a&&l&&vp(()=>U.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(p,y)=>{let x=p&&p[g];if(x)return x.call(p);throw new ye(`Response type '${g}' is not supported`,ye.ERR_NOT_SUPPORT,y)})});const b=async g=>{if(g==null)return 0;if(U.isBlob(g))return g.size;if(U.isSpecCompliantForm(g))return(await new n(ct.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(U.isArrayBufferView(g)||U.isArrayBuffer(g))return g.byteLength;if(U.isURLSearchParams(g)&&(g=g+""),U.isString(g))return(await c(g)).byteLength},m=async(g,p)=>{const y=U.toFiniteNumber(g.getContentLength());return y??b(p)};return async g=>{let{url:p,method:y,data:x,signal:w,cancelToken:S,timeout:v,onDownloadProgress:C,onUploadProgress:O,responseType:P,headers:$,withCredentials:A="same-origin",fetchOptions:B}=hp(g),L=t||fetch;P=P?(P+"").toLowerCase():"text";let T=Qv([w,S&&S.toAbortSignal()],v),N=null;const _=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let D;try{if(O&&f&&y!=="get"&&y!=="head"&&(D=await m($,x))!==0){let V=new n(p,{method:"POST",body:x,duplex:"half"}),K;if(U.isFormData(x)&&(K=V.headers.get("content-type"))&&$.setContentType(K),V.body){const[Z,Q]=dp(D,Ki(up(O)));x=gp(V.body,mp,Z,Q)}}U.isString(A)||(A=A?"include":"omit");const k=s&&"credentials"in n.prototype,z={...B,signal:T,method:y.toUpperCase(),headers:$.normalize().toJSON(),body:x,duplex:"half",credentials:k?A:void 0};N=s&&new n(p,z);let M=await(s?L(N,B):L(p,z));const R=u&&(P==="stream"||P==="response");if(u&&(C||R&&_)){const V={};["status","statusText","headers"].forEach(G=>{V[G]=M[G]});const K=U.toFiniteNumber(M.headers.get("content-length")),[Z,Q]=C&&dp(K,Ki(up(C),!0))||[];M=new r(gp(M.body,mp,Z,()=>{Q&&Q(),_&&_()}),V)}P=P||"text";let j=await h[U.findKey(h,P)||"text"](M,g);return!R&&_&&_(),await new Promise((V,K)=>{cp(V,K,{data:j,headers:xt.from(M.headers),status:M.status,statusText:M.statusText,config:g,request:N})})}catch(k){throw _&&_(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new ye("Network Error",ye.ERR_NETWORK,g,N),{cause:k.cause||k}):ye.from(k,k&&k.code,g,N)}}},ox=new Map,xp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,s=[r,o,n];let a=s.length,l=a,c,f,u=ox;for(;l--;)c=s[l],f=u.get(c),f===void 0&&u.set(c,f=l?new Map:rx(t)),u=f;return f};xp();const pl={http:Ov,xhr:Xv,fetch:{get:xp}};U.forEach(pl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Sp=e=>`- ${e}`,ix=e=>U.isFunction(e)||e===null||e===!1;function sx(e,t){e=U.isArray(e)?e:[e];const{length:n}=e;let r,o;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(o=r,!ix(r)&&(o=pl[(l=String(r)).toLowerCase()],o===void 0))throw new ye(`Unknown adapter '${l}'`);if(o&&(U.isFunction(o)||(o=o.get(t))))break;s[l||"#"+a]=o}if(!o){const a=Object.entries(s).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
22
|
-
`+a.map(
|
|
23
|
-
`):" "+
|
|
24
|
-
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Jn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Xi.assertOptions(r,{silentJSONParsing:Zt.transitional(Zt.boolean),forcedJSONParsing:Zt.transitional(Zt.boolean),clarifyTimeoutError:Zt.transitional(Zt.boolean)},!1),o!=null&&(U.isFunction(o)?n.paramsSerializer={serialize:o}:Xi.assertOptions(o,{encode:Zt.function,serialize:Zt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Xi.assertOptions(n,{baseUrl:Zt.spelling("baseURL"),withXsrfToken:Zt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&U.merge(s.common,s[n.method]);s&&U.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=xt.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,l.unshift(p.fulfilled,p.rejected))});const f=[];this.interceptors.response.forEach(function(p){f.push(p.fulfilled,p.rejected)});let u,h=0,b;if(!c){const g=[Cp.bind(this),void 0];for(g.unshift(...l),g.push(...f),b=g.length,u=Promise.resolve(n);h<b;)u=u.then(g[h++],g[h++]);return u}b=l.length;let m=n;for(;h<b;){const g=l[h++],p=l[h++];try{m=g(m)}catch(y){p.call(this,y);break}}try{u=Cp.call(this,m)}catch(g){return Promise.reject(g)}for(h=0,b=f.length;h<b;)u=u.then(f[h++],f[h++]);return u}getUri(t){t=Jn(this.defaults,t);const n=pp(t.baseURL,t.url,t.allowAbsoluteUrls);return rp(n,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){Xn.prototype[t]=function(n,r){return this.request(Jn(r||{},{method:t,url:n,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(Jn(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Xn.prototype[t]=n(),Xn.prototype[t+"Form"]=n(!0)});let lx=class dm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(o);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Sr(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new dm(function(o){t=o}),cancel:t}}};function cx(e){return function(n){return e.apply(null,n)}}function dx(e){return U.isObject(e)&&e.isAxiosError===!0}const hl={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(hl).forEach(([e,t])=>{hl[t]=e});function Op(e){const t=new Xn(e),n=Wu(Xn.prototype.request,t);return U.extend(n,Xn.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Op(Jn(e,o))},n}const qe=Op(fo);qe.Axios=Xn,qe.CanceledError=Sr,qe.CancelToken=lx,qe.isCancel=lp,qe.VERSION=Ep,qe.toFormData=qi,qe.AxiosError=ye,qe.Cancel=qe.CanceledError,qe.all=function(t){return Promise.all(t)},qe.spread=cx,qe.isAxiosError=dx,qe.mergeConfig=Jn,qe.AxiosHeaders=xt,qe.formToJSON=e=>sp(U.isHTMLForm(e)?new FormData(e):e),qe.getAdapter=wp.getAdapter,qe.HttpStatusCode=hl,qe.default=qe;const{Axios:pI,AxiosError:fI,CanceledError:hI,isCancel:gI,CancelToken:mI,VERSION:yI,all:bI,Cancel:vI,isAxiosError:xI,spread:SI,toFormData:wI,AxiosHeaders:CI,HttpStatusCode:EI,formToJSON:TI,getAdapter:OI,mergeConfig:PI}=qe;function Qi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ux={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 gl(e,t){function n(o,s,a){if(!(typeof document>"u")){a=Qi({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=o+"="+e.write(s,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),f=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(f,u),o===u)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,s){n(o,"",Qi({},s,{expires:-1}))},withAttributes:function(o){return gl(this.converter,Qi({},this.attributes,o))},withConverter:function(o){return gl(Qi({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Sn=gl(ux,{path:"/"});const px={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let wr="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:Sa&&Sa.tagName.toUpperCase()==="SCRIPT"&&Sa.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&px?.VITE_API_URL)wr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(wr=process.env.VITE_API_URL)}}catch{}const fx=e=>{wr=e,St.defaults.baseURL=wr},hx=e=>{e?Sn.set("token",e,{secure:!0,sameSite:"Strict"}):Sn.remove("token")},gx=()=>Sn.get("token")||null,St=qe.create({baseURL:wr,transformRequest:[function(e,t){const n=gx();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let ml=!1,yl=null;St.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=Sn.get("refreshToken");if(r)try{ml||(ml=!0,yl=qe.post(`${wr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const o=await yl,{token:s,refreshToken:a}=o.data;return Sn.set("token",s,{secure:!0,sameSite:"Strict"}),Sn.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,St(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Sn.remove("token"),Sn.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{ml=!1,yl=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(Sn.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const Zi=Ut("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const o=(await St.get("/dashboard/metrics",{params:e})).data||{};return o.data||o}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),go=Ut("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const n=await St.get("/auth/verify");console.log("/auth/verify response:",n.data);const r=n.data?.companyId||n.data?.data?.companyId;if(r)return r;throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),wt=Ut("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await St.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Qn=Ut("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await St.get("/store-inventory",{params:e})).data||{}}catch(n){return console.log("Error fetching products:",n),t(n.response?.data||n.message)}}),Pp=Au({name:"dashboard",initialState:{loading:!1,companyId:"",error:null,metrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:""},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1}},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(Zi.pending,t=>{t.loading=!0,t.error=null}).addCase(Zi.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(Zi.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(wt.pending,t=>{t.loading=!0}).addCase(wt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(wt.rejected,t=>{t.loading=!1}),e.addCase(go.pending,t=>{t.loading=!0,t.error=null}),e.addCase(go.fulfilled,(t,n)=>{t.loading=!1,t.companyId=n.payload,t.error=null}),e.addCase(go.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Qn.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Qn.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},o=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=o;const s=(m,g=0)=>{if(m==null||m==="")return g;const p=Number(m);return Number.isFinite(p)?p:g},a={};o.forEach(m=>{if(!m)return;const g=m.categoryName||"Uncategorized";a[g]||(a[g]=[]),a[g].push({...m,stock:s(m.stock),inventory:s(m.inventory),inShelf:s(m.inShelf)})}),t.categorySummary=Object.entries(a).map(([m,g])=>{let p=0,y=0,x=null,w=[];g.forEach(v=>{p+=Number(v.stock)||0,y+=Number(v.inventory)||0,(!x||v.updated&&new Date(v.updated)>new Date(x.updated))&&(x=v),v.productImage&&w.length<5&&w.push(v.productImage)});const S=y>0?Math.round(p/y*100):0;return{name:m,products:g.length,stock:`${p}/${y}`,osa:`${S}% on shelf`,updated:x?.updated?new Date(x.updated).toLocaleString():"",images:w}});const l=Object.values(a).flat(),c=Object.keys(a).length,f=l.length;let u="";if(l.length>0){const m=l.reduce((g,p)=>g?p?new Date(g.updated)>new Date(p.updated)?g:p:g:p);u=m?.updated?new Date(m.updated).toLocaleString():""}t.homePageCardSummary={totalCategories:c,totalProducts:f,lastSync:u},t.productsByCategory=a;const h=r.pagination||{},b=typeof h.totalCount=="number"?h.totalCount:Object.values(a).reduce((m,g)=>m+g.length,0);t.pagination={currentPage:typeof h.currentPage=="number"?h.currentPage:1,limit:typeof h.limit=="number"?h.limit:20,totalCount:b,totalPages:typeof h.totalPages=="number"?h.totalPages:1,hasNextPage:typeof h.hasNextPage=="boolean"?h.hasNextPage:!1}}).addCase(Qn.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""})}}),{clearMetrics:NI,clearError:II,updateMetric:AI}=Pp.actions,mx=Pp.reducer,mo=Ut("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:o},{rejectWithValue:s})=>{try{const a=r||o;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,c,f,u,h]=l;if(c=c.toLowerCase(),c!=="ftp"&&c!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const b={tenantId:a,type:c,configs:{host:f,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""},m=await St.post("/ftp/sync/test-connection",b);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",m.data),console.log("existing_mapping:",m.data?.existing_mapping),console.log("================================================"),m.data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),yo=Ut("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(n,null,2)),(await St.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),Cr=Ut("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API..."),console.log("[FTP SYNC] API payload (mapped):",JSON.stringify(n,null,2));try{const r=await St.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return console.log("[FTP SYNC] API call successful:",r.data),r.data;{const o=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(o)}}catch(r){const o=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:o,payload:n,fullError:r}),t(o)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),bo=Ut("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await St.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),vo=Ut("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await St.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const o=r.data?.message||"Failed to fetch mapping columns";return t(o)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),xo=Ut("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");console.log(`[Integration] Calling PATCH /integrations/${e} API...`),console.log("[Integration] PATCH payload:",JSON.stringify(t,null,2));const r=`/integrations/${e}`,o=await St.patch(r,t);if(o.status>=200&&o.status<300)return console.log(`[Integration] PATCH API call successful for channelId ${e}:`,o.data),o.data;{const s=o.data?.message||o.data?.error||`Server returned status ${o.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:o.status,data:o.data}),n(s)}}catch(r){const o=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:o}),n(o)}}),Er=Ut("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await St.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const o=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(o)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),bl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null},kp=Au({name:"productSettings",initialState:bl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=bl.syncData}},extraReducers:e=>{e.addCase(mo.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(mo.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let o=r.entity_type||"";if(!o&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(o="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=o,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(mo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(vo.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(vo.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(vo.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(Er.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(Er.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;r&&typeof r=="object"&&Array.isArray(r.data)?(t.sharedCatalogues=r.data,t.sharedCataloguesTotal=typeof r.total=="number"?r.total:0,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10):t.sharedCatalogues=[],t.sharedCataloguesError=null}).addCase(Er.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(yo.pending,t=>{t.loading=!0,t.error=null}).addCase(yo.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=bl.syncData}).addCase(yo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase(Cr.pending,t=>{t.loading=!0,t.error=null}).addCase(Cr.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase(Cr.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase(bo.pending,t=>{t.loading=!0,t.error=null}).addCase(bo.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase(bo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(xo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(xo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(xo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:_I,clearTestConnectionResult:MI,clearSaveResult:yx,clearAll:$I,clearTestConnectionData:DI,clearUpdateDetailsResult:FI,clearSyncNowResult:jI,setFtpSyncData:es,clearFtpSyncData:zI,clearMappingColumnsError:LI,clearMappingColumns:BI,clearSharedCataloguesError:RI,clearSharedCatalogues:WI,clearUpdateIntegrationByChannelIdResult:VI}=kp.actions,bx=kp.reducer;var ts={},ns={},Np;function vx(){if(Np)return ns;Np=1,ns.__esModule=!0,ns.default=o;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],l="redux-persist ".concat(s," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function o(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return ns}var Ip;function xx(){if(Ip)return ts;Ip=1,ts.__esModule=!0,ts.default=n;var e=t(vx());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var o=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,c){l(o.getItem(a))})},setItem:function(a,l){return new Promise(function(c,f){c(o.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,c){l(o.removeItem(a))})}}}return ts}var Sx=xx();const wx={key:"auth",storage:typeof window<"u"?Ld(Sx)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},Cx=Gd({dashboard:mx,productSettings:bx}),Ex=D0(wx,Cx),Ap=t0({reducer:Ex,middleware:e=>e({serializableCheck:!1})}),Tx=R0(Ap),Ox=F.createContext(null),Px=({children:e,apiUrl:t,authToken:n})=>(F.useEffect(()=>{t&&fx(t)},[t]),F.useEffect(()=>{hx(n||null)},[n]),d.jsx(Ox.Provider,{value:{apiUrl:t},children:e})),So={black:"#000",white:"#fff"},Tr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Or={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Pr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},kr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Nr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},wo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},kx={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 en(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Co="$$material";function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rs.apply(null,arguments)}function Nx(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 Ix(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 Ax=(function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ix(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Nx(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e})(),dt="-ms-",os="-moz-",Ee="-webkit-",_p="comm",vl="rule",xl="decl",_x="@import",Mp="@keyframes",Mx="@layer",$x=Math.abs,is=String.fromCharCode,Dx=Object.assign;function Fx(e,t){return ot(e,0)^45?(((t<<2^ot(e,0))<<2^ot(e,1))<<2^ot(e,2))<<2^ot(e,3):0}function $p(e){return e.trim()}function jx(e,t){return(e=t.exec(e))?e[0]:e}function Te(e,t,n){return e.replace(t,n)}function Sl(e,t){return e.indexOf(t)}function ot(e,t){return e.charCodeAt(t)|0}function Eo(e,t,n){return e.slice(t,n)}function tn(e){return e.length}function wl(e){return e.length}function ss(e,t){return t.push(e),e}function zx(e,t){return e.map(t).join("")}var as=1,Ir=1,Dp=0,Ct=0,Qe=0,Ar="";function ls(e,t,n,r,o,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:as,column:Ir,length:a,return:""}}function To(e,t){return Dx(ls("",null,null,"",null,null,0),e,{length:-e.length},t)}function Lx(){return Qe}function Bx(){return Qe=Ct>0?ot(Ar,--Ct):0,Ir--,Qe===10&&(Ir=1,as--),Qe}function kt(){return Qe=Ct<Dp?ot(Ar,Ct++):0,Ir++,Qe===10&&(Ir=1,as++),Qe}function nn(){return ot(Ar,Ct)}function cs(){return Ct}function Oo(e,t){return Eo(Ar,e,t)}function Po(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 Fp(e){return as=Ir=1,Dp=tn(Ar=e),Ct=0,[]}function jp(e){return Ar="",e}function ds(e){return $p(Oo(Ct-1,Cl(e===91?e+2:e===40?e+1:e)))}function Rx(e){for(;(Qe=nn())&&Qe<33;)kt();return Po(e)>2||Po(Qe)>3?"":" "}function Wx(e,t){for(;--t&&kt()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Oo(e,cs()+(t<6&&nn()==32&&kt()==32))}function Cl(e){for(;kt();)switch(Qe){case e:return Ct;case 34:case 39:e!==34&&e!==39&&Cl(Qe);break;case 40:e===41&&Cl(e);break;case 92:kt();break}return Ct}function Vx(e,t){for(;kt()&&e+Qe!==57;)if(e+Qe===84&&nn()===47)break;return"/*"+Oo(t,Ct-1)+"*"+is(e===47?e:kt())}function Ux(e){for(;!Po(nn());)kt();return Oo(e,Ct)}function Hx(e){return jp(us("",null,null,null,[""],e=Fp(e),0,[0],e))}function us(e,t,n,r,o,s,a,l,c){for(var f=0,u=0,h=a,b=0,m=0,g=0,p=1,y=1,x=1,w=0,S="",v=o,C=s,O=r,P=S;y;)switch(g=w,w=kt()){case 40:if(g!=108&&ot(P,h-1)==58){Sl(P+=Te(ds(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:P+=ds(w);break;case 9:case 10:case 13:case 32:P+=Rx(g);break;case 92:P+=Wx(cs()-1,7);continue;case 47:switch(nn()){case 42:case 47:ss(qx(Vx(kt(),cs()),t,n),c);break;default:P+="/"}break;case 123*p:l[f++]=tn(P)*x;case 125*p:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+u:x==-1&&(P=Te(P,/\f/g,"")),m>0&&tn(P)-h&&ss(m>32?Lp(P+";",r,n,h-1):Lp(Te(P," ","")+";",r,n,h-2),c);break;case 59:P+=";";default:if(ss(O=zp(P,t,n,f,u,o,l,S,v=[],C=[],h),s),w===123)if(u===0)us(P,t,O,O,v,s,h,l,C);else switch(b===99&&ot(P,3)===110?100:b){case 100:case 108:case 109:case 115:us(e,O,O,r&&ss(zp(e,O,O,0,0,o,l,S,o,v=[],h),C),o,C,h,l,r?v:C);break;default:us(P,O,O,O,[""],C,0,l,C)}}f=u=m=0,p=x=1,S=P="",h=a;break;case 58:h=1+tn(P),m=g;default:if(p<1){if(w==123)--p;else if(w==125&&p++==0&&Bx()==125)continue}switch(P+=is(w),w*p){case 38:x=u>0?1:(P+="\f",-1);break;case 44:l[f++]=(tn(P)-1)*x,x=1;break;case 64:nn()===45&&(P+=ds(kt())),b=nn(),u=h=tn(S=P+=Ux(cs())),w++;break;case 45:g===45&&tn(P)==2&&(p=0)}}return s}function zp(e,t,n,r,o,s,a,l,c,f,u){for(var h=o-1,b=o===0?s:[""],m=wl(b),g=0,p=0,y=0;g<r;++g)for(var x=0,w=Eo(e,h+1,h=$x(p=a[g])),S=e;x<m;++x)(S=$p(p>0?b[x]+" "+w:Te(w,/&\f/g,b[x])))&&(c[y++]=S);return ls(e,t,n,o===0?vl:l,c,f,u)}function qx(e,t,n){return ls(e,t,n,_p,is(Lx()),Eo(e,2,-2),0)}function Lp(e,t,n,r){return ls(e,t,n,xl,Eo(e,0,r),Eo(e,r+1,-1),r)}function _r(e,t){for(var n="",r=wl(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Yx(e,t,n,r){switch(e.type){case Mx:if(e.children.length)break;case _x:case xl:return e.return=e.return||e.value;case _p:return"";case Mp:return e.return=e.value+"{"+_r(e.children,r)+"}";case vl:e.value=e.props.join(",")}return tn(n=_r(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kx(e){var t=wl(e);return function(n,r,o,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,s)||"";return a}}function Gx(e){return function(t){t.root||(t=t.return)&&e(t)}}function Bp(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Jx=function(t,n,r){for(var o=0,s=0;o=s,s=nn(),o===38&&s===12&&(n[r]=1),!Po(s);)kt();return Oo(t,Ct)},Xx=function(t,n){var r=-1,o=44;do switch(Po(o)){case 0:o===38&&nn()===12&&(n[r]=1),t[r]+=Jx(Ct-1,n,r);break;case 2:t[r]+=ds(o);break;case 4:if(o===44){t[++r]=nn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=is(o)}while(o=kt());return t},Qx=function(t,n){return jp(Xx(Fp(t),n))},Rp=new WeakMap,Zx=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Rp.get(r))&&!o){Rp.set(t,!0);for(var s=[],a=Qx(n,s),l=r.props,c=0,f=0;c<a.length;c++)for(var u=0;u<l.length;u++,f++)t.props[f]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},e1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Wp(e,t){switch(Fx(e,t)){case 5103:return Ee+"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 Ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+os+e+dt+e+e;case 6828:case 4268:return Ee+e+dt+e+e;case 6165:return Ee+e+dt+"flex-"+e+e;case 5187:return Ee+e+Te(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+dt+"flex-$1$2")+e;case 5443:return Ee+e+dt+"flex-item-"+Te(e,/flex-|-self/,"")+e;case 4675:return Ee+e+dt+"flex-line-pack"+Te(e,/align-content|flex-|-self/,"")+e;case 5548:return Ee+e+dt+Te(e,"shrink","negative")+e;case 5292:return Ee+e+dt+Te(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+Te(e,"-grow","")+Ee+e+dt+Te(e,"grow","positive")+e;case 4554:return Ee+Te(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return Te(Te(Te(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return Te(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return Te(Te(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+dt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4095:case 3583:case 4068:case 2532:return Te(e,/(.+)-inline(.+)/,Ee+"$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(tn(e)-1-t>6)switch(ot(e,t+1)){case 109:if(ot(e,t+4)!==45)break;case 102:return Te(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+os+(ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sl(e,"stretch")?Wp(Te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ot(e,t+1)!==115)break;case 6444:switch(ot(e,tn(e)-3-(~Sl(e,"!important")&&10))){case 107:return Te(e,":",":"+Ee)+e;case 101:return Te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(ot(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+dt+"$2box$3")+e}break;case 5936:switch(ot(e,t+11)){case 114:return Ee+e+dt+Te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+dt+Te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+dt+Te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+dt+e+e}return e}var t1=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case xl:t.return=Wp(t.value,t.length);break;case Mp:return _r([To(t,{value:Te(t.value,"@","@"+Ee)})],o);case vl:if(t.length)return zx(t.props,function(s){switch(jx(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _r([To(t,{props:[Te(s,/:(read-\w+)/,":"+os+"$1")]})],o);case"::placeholder":return _r([To(t,{props:[Te(s,/:(plac\w+)/,":"+Ee+"input-$1")]}),To(t,{props:[Te(s,/:(plac\w+)/,":"+os+"$1")]}),To(t,{props:[Te(s,/:(plac\w+)/,dt+"input-$1")]})],o)}return""})}},n1=[t1],r1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var o=t.stylisPlugins||n1,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)s[y[x]]=!0;l.push(p)});var c,f=[Zx,e1];{var u,h=[Yx,Gx(function(p){u.insert(p)})],b=Kx(f.concat(o,h)),m=function(y){return _r(Hx(y),b)};c=function(y,x,w,S){u=w,m(y?y+"{"+x.styles+"}":x.styles),S&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new Ax({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},ps={exports:{}},Oe={};var Vp;function o1(){if(Vp)return Oe;Vp=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case c:case f:case r:case s:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case g:case m:case a:return C;default:return O}}case n:return O}}}function v(C){return S(C)===f}return Oe.AsyncMode=c,Oe.ConcurrentMode=f,Oe.ContextConsumer=l,Oe.ContextProvider=a,Oe.Element=t,Oe.ForwardRef=u,Oe.Fragment=r,Oe.Lazy=g,Oe.Memo=m,Oe.Portal=n,Oe.Profiler=s,Oe.StrictMode=o,Oe.Suspense=h,Oe.isAsyncMode=function(C){return v(C)||S(C)===c},Oe.isConcurrentMode=v,Oe.isContextConsumer=function(C){return S(C)===l},Oe.isContextProvider=function(C){return S(C)===a},Oe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Oe.isForwardRef=function(C){return S(C)===u},Oe.isFragment=function(C){return S(C)===r},Oe.isLazy=function(C){return S(C)===g},Oe.isMemo=function(C){return S(C)===m},Oe.isPortal=function(C){return S(C)===n},Oe.isProfiler=function(C){return S(C)===s},Oe.isStrictMode=function(C){return S(C)===o},Oe.isSuspense=function(C){return S(C)===h},Oe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===f||C===s||C===o||C===h||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===m||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===y||C.$$typeof===x||C.$$typeof===w||C.$$typeof===p)},Oe.typeOf=S,Oe}var Pe={};var Up;function i1(){return Up||(Up=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function S(H){return typeof H=="string"||typeof H=="function"||H===r||H===f||H===s||H===o||H===h||H===b||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===m||H.$$typeof===a||H.$$typeof===l||H.$$typeof===u||H.$$typeof===y||H.$$typeof===x||H.$$typeof===w||H.$$typeof===p)}function v(H){if(typeof H=="object"&&H!==null){var de=H.$$typeof;switch(de){case t:var oe=H.type;switch(oe){case c:case f:case r:case s:case o:case h:return oe;default:var me=oe&&oe.$$typeof;switch(me){case l:case u:case g:case m:case a:return me;default:return de}}case n:return de}}}var C=c,O=f,P=l,$=a,A=t,B=u,L=r,T=g,N=m,_=n,D=s,k=o,z=h,M=!1;function R(H){return M||(M=!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.")),j(H)||v(H)===c}function j(H){return v(H)===f}function V(H){return v(H)===l}function K(H){return v(H)===a}function Z(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function Q(H){return v(H)===u}function G(H){return v(H)===r}function J(H){return v(H)===g}function ne(H){return v(H)===m}function re(H){return v(H)===n}function se(H){return v(H)===s}function ee(H){return v(H)===o}function ae(H){return v(H)===h}Pe.AsyncMode=C,Pe.ConcurrentMode=O,Pe.ContextConsumer=P,Pe.ContextProvider=$,Pe.Element=A,Pe.ForwardRef=B,Pe.Fragment=L,Pe.Lazy=T,Pe.Memo=N,Pe.Portal=_,Pe.Profiler=D,Pe.StrictMode=k,Pe.Suspense=z,Pe.isAsyncMode=R,Pe.isConcurrentMode=j,Pe.isContextConsumer=V,Pe.isContextProvider=K,Pe.isElement=Z,Pe.isForwardRef=Q,Pe.isFragment=G,Pe.isLazy=J,Pe.isMemo=ne,Pe.isPortal=re,Pe.isProfiler=se,Pe.isStrictMode=ee,Pe.isSuspense=ae,Pe.isValidElementType=S,Pe.typeOf=v})()),Pe}var Hp;function El(){return Hp||(Hp=1,process.env.NODE_ENV==="production"?ps.exports=o1():ps.exports=i1()),ps.exports}var Tl,qp;function s1(){if(qp)return Tl;qp=1;var e=El(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=o;function a(g){return e.isMemo(g)?o:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,b=Object.prototype;function m(g,p,y){if(typeof p!="string"){if(b){var x=h(p);x&&x!==b&&m(g,x,y)}var w=c(p);f&&(w=w.concat(f(p)));for(var S=a(g),v=a(p),C=0;C<w.length;++C){var O=w[C];if(!n[O]&&!(y&&y[O])&&!(v&&v[O])&&!(S&&S[O])){var P=u(p,O);try{l(g,O,P)}catch{}}}}return g}return Tl=m,Tl}s1();var a1=!0;function Yp(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var Ol=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||a1===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Pl=function(t,n,r){Ol(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+o:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function l1(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var c1={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},d1=/[A-Z]|^ms/g,u1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kp=function(t){return t.charCodeAt(1)===45},Gp=function(t){return t!=null&&typeof t!="boolean"},kl=Bp(function(e){return Kp(e)?e:e.replace(d1,"-$&").toLowerCase()}),Jp=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(u1,function(r,o,s){return rn={name:o,styles:s,next:rn},o})}return c1[t]!==1&&!Kp(t)&&typeof n=="number"&&n!==0?n+"px":n};function ko(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return rn={name:o.name,styles:o.styles,next:rn},o.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)rn={name:a.name,styles:a.styles,next:rn},a=a.next;var l=s.styles+";";return l}return p1(e,t,n)}case"function":{if(e!==void 0){var c=rn,f=n(e);return rn=c,ko(e,t,f)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function p1(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ko(e,t,n[o])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":Gp(l)&&(r+=kl(s)+":"+Jp(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)Gp(a[c])&&(r+=kl(s)+":"+Jp(s,a[c])+";");else{var f=ko(e,t,a);switch(s){case"animation":case"animationName":{r+=kl(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var Xp=/label:\s*([^\s;{]+)\s*(;|$)/g,rn;function No(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";rn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,o+=ko(n,t,s);else{var a=s;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=ko(n,t,e[l]),r){var c=s;o+=c[l]}Xp.lastIndex=0;for(var f="",u;(u=Xp.exec(o))!==null;)f+="-"+u[1];var h=l1(o)+f;return{name:h,styles:o,next:rn}}var f1=function(t){return t()},Qp=E.useInsertionEffect?E.useInsertionEffect:!1,Zp=Qp||f1,ef=Qp||E.useLayoutEffect,tf=E.createContext(typeof HTMLElement<"u"?r1({key:"css"}):null);tf.Provider;var Nl=function(t){return F.forwardRef(function(n,r){var o=F.useContext(tf);return t(n,o,r)})},fs=E.createContext({}),Il={}.hasOwnProperty,Al="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h1=function(t,n){var r={};for(var o in n)Il.call(n,o)&&(r[o]=n[o]);return r[Al]=t,r},g1=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ol(n,r,o),Zp(function(){return Pl(n,r,o)}),null},m1=Nl(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Al],s=[r],a="";typeof e.className=="string"?a=Yp(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=No(s,void 0,E.useContext(fs));a+=t.key+"-"+l.name;var c={};for(var f in e)Il.call(e,f)&&f!=="css"&&f!==Al&&(c[f]=e[f]);return c.className=a,n&&(c.ref=n),E.createElement(E.Fragment,null,E.createElement(g1,{cache:t,serialized:l,isStringTag:typeof o=="string"}),E.createElement(o,c))}),y1=m1,nf=function(t,n){var r=arguments;if(n==null||!Il.call(n,"css"))return E.createElement.apply(void 0,r);var o=r.length,s=new Array(o);s[0]=y1,s[1]=h1(t,n);for(var a=2;a<o;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(nf||(nf={}));var b1=Nl(function(e,t){var n=e.styles,r=No([n],void 0,E.useContext(fs)),o=E.useRef();return ef(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),o.current=[a,l],function(){a.flush()}},[t]),ef(function(){var s=o.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Pl(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return No(t)}function jn(){var e=Mr.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 v1=/^((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)-.*))$/,x1=Bp(function(e){return v1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),S1=x1,w1=function(t){return t!=="theme"},rf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?S1:w1},of=function(t,n,r){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},C1=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ol(n,r,o),Zp(function(){return Pl(n,r,o)}),null},E1=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=of(t,n,r),c=l||rf(o),f=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var b=u[0];h.push(b[0]);for(var m=u.length,g=1;g<m;g++)h.push(u[g],b[g])}var p=Nl(function(y,x,w){var S=f&&y.as||o,v="",C=[],O=y;if(y.theme==null){O={};for(var P in y)O[P]=y[P];O.theme=E.useContext(fs)}typeof y.className=="string"?v=Yp(x.registered,C,y.className):y.className!=null&&(v=y.className+" ");var $=No(h.concat(C),x.registered,O);v+=x.key+"-"+$.name,a!==void 0&&(v+=" "+a);var A=f&&l===void 0?rf(S):c,B={};for(var L in y)f&&L==="as"||A(L)&&(B[L]=y[L]);return B.className=v,w&&(B.ref=w),E.createElement(E.Fragment,null,E.createElement(C1,{cache:x,serialized:$,isStringTag:typeof S=="string"}),E.createElement(S,B))});return p.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=o,p.__emotion_styles=h,p.__emotion_forwardProp=l,Object.defineProperty(p,"toString",{value:function(){return"."+a}}),p.withComponent=function(y,x){var w=e(y,rs({},n,x,{shouldForwardProp:of(p,x,!0)}));return w.apply(void 0,h)},p}},T1=["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"],_l=E1.bind(null);T1.forEach(function(e){_l[e]=_l(e)});var hs={exports:{}};var Ml,sf;function O1(){if(sf)return Ml;sf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(u){f[u]=u}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ml=o()?Object.assign:function(s,a){for(var l,c=r(s),f,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){f=e(l);for(var b=0;b<f.length;b++)n.call(l,f[b])&&(c[f[b]]=l[f[b]])}}return c},Ml}var $l,af;function Dl(){if(af)return $l;af=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $l=e,$l}var Fl,lf;function cf(){return lf||(lf=1,Fl=Function.call.bind(Object.prototype.hasOwnProperty)),Fl}var jl,df;function P1(){if(df)return jl;df=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Dl(),n={},r=cf();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(s,a,l,c,f){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var b=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}h=s[u](a,u,c,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var m=f?f():"";e("Failed "+l+" type: "+h.message+(m??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},jl=o,jl}var zl,uf;function k1(){if(uf)return zl;uf=1;var e=El(),t=O1(),n=Dl(),r=cf(),o=P1(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return zl=function(l,c){var f=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(j){var V=j&&(f&&j[f]||j[u]);if(typeof V=="function")return V}var b="<<anonymous>>",m={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:w(),arrayOf:S,element:v(),elementType:C(),instanceOf:O,node:B(),objectOf:$,oneOf:P,oneOfType:A,shape:T,exact:N};function g(j,V){return j===V?j!==0||1/j===1/V:j!==j&&V!==V}function p(j,V){this.message=j,this.data=V&&typeof V=="object"?V:{},this.stack=""}p.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var V={},K=0;function Z(G,J,ne,re,se,ee,ae){if(re=re||b,ee=ee||ne,ae!==n){if(c){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=re+":"+ne;!V[de]&&K<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+re+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),V[de]=!0,K++)}}return J[ne]==null?G?J[ne]===null?new p("The "+se+" `"+ee+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new p("The "+se+" `"+ee+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:j(J,ne,re,se,ee)}var Q=Z.bind(null,!1);return Q.isRequired=Z.bind(null,!0),Q}function x(j){function V(K,Z,Q,G,J,ne){var re=K[Z],se=k(re);if(se!==j){var ee=z(re);return new p("Invalid "+G+" `"+J+"` of type "+("`"+ee+"` supplied to `"+Q+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(V)}function w(){return y(a)}function S(j){function V(K,Z,Q,G,J){if(typeof j!="function")return new p("Property `"+J+"` of component `"+Q+"` has invalid PropType notation inside arrayOf.");var ne=K[Z];if(!Array.isArray(ne)){var re=k(ne);return new p("Invalid "+G+" `"+J+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected an array."))}for(var se=0;se<ne.length;se++){var ee=j(ne,se,Q,G,J+"["+se+"]",n);if(ee instanceof Error)return ee}return null}return y(V)}function v(){function j(V,K,Z,Q,G){var J=V[K];if(!l(J)){var ne=k(J);return new p("Invalid "+Q+" `"+G+"` of type "+("`"+ne+"` supplied to `"+Z+"`, expected a single ReactElement."))}return null}return y(j)}function C(){function j(V,K,Z,Q,G){var J=V[K];if(!e.isValidElementType(J)){var ne=k(J);return new p("Invalid "+Q+" `"+G+"` of type "+("`"+ne+"` supplied to `"+Z+"`, expected a single ReactElement type."))}return null}return y(j)}function O(j){function V(K,Z,Q,G,J){if(!(K[Z]instanceof j)){var ne=j.name||b,re=R(K[Z]);return new p("Invalid "+G+" `"+J+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(V)}function P(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function V(K,Z,Q,G,J){for(var ne=K[Z],re=0;re<j.length;re++)if(g(ne,j[re]))return null;var se=JSON.stringify(j,function(ae,H){var de=z(H);return de==="symbol"?String(H):H});return new p("Invalid "+G+" `"+J+"` of value `"+String(ne)+"` "+("supplied to `"+Q+"`, expected one of "+se+"."))}return y(V)}function $(j){function V(K,Z,Q,G,J){if(typeof j!="function")return new p("Property `"+J+"` of component `"+Q+"` has invalid PropType notation inside objectOf.");var ne=K[Z],re=k(ne);if(re!=="object")return new p("Invalid "+G+" `"+J+"` of type "+("`"+re+"` supplied to `"+Q+"`, expected an object."));for(var se in ne)if(r(ne,se)){var ee=j(ne,se,Q,G,J+"."+se,n);if(ee instanceof Error)return ee}return null}return y(V)}function A(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var V=0;V<j.length;V++){var K=j[V];if(typeof K!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+M(K)+" at index "+V+"."),a}function Z(Q,G,J,ne,re){for(var se=[],ee=0;ee<j.length;ee++){var ae=j[ee],H=ae(Q,G,J,ne,re,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&se.push(H.data.expectedType)}var de=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new p("Invalid "+ne+" `"+re+"` supplied to "+("`"+J+"`"+de+"."))}return y(Z)}function B(){function j(V,K,Z,Q,G){return _(V[K])?null:new p("Invalid "+Q+" `"+G+"` supplied to "+("`"+Z+"`, expected a ReactNode."))}return y(j)}function L(j,V,K,Z,Q){return new p((j||"React class")+": "+V+" type `"+K+"."+Z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Q+"`.")}function T(j){function V(K,Z,Q,G,J){var ne=K[Z],re=k(ne);if(re!=="object")return new p("Invalid "+G+" `"+J+"` of type `"+re+"` "+("supplied to `"+Q+"`, expected `object`."));for(var se in j){var ee=j[se];if(typeof ee!="function")return L(Q,G,J,se,z(ee));var ae=ee(ne,se,Q,G,J+"."+se,n);if(ae)return ae}return null}return y(V)}function N(j){function V(K,Z,Q,G,J){var ne=K[Z],re=k(ne);if(re!=="object")return new p("Invalid "+G+" `"+J+"` of type `"+re+"` "+("supplied to `"+Q+"`, expected `object`."));var se=t({},K[Z],j);for(var ee in se){var ae=j[ee];if(r(j,ee)&&typeof ae!="function")return L(Q,G,J,ee,z(ae));if(!ae)return new p("Invalid "+G+" `"+J+"` key `"+ee+"` supplied to `"+Q+"`.\nBad object: "+JSON.stringify(K[Z],null," ")+`
|
|
25
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
26
|
-
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${
|
|
27
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:
|
|
17
|
+
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`)}}),l||(f.measureTime(()=>{const m=h.getState(),y=ml(m,"",t,n,s,u);if(y){const{keyPath:w,value:x}=y;console.error(`A non-serializable value was detected in the state, in the path: \`${w}\`. Value:`,x,`
|
|
18
|
+
Take a look at the reducer(s) handling this action type: ${b.type}.
|
|
19
|
+
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),f.warnIfExceeded()),g}}}function rs(e){return typeof e=="boolean"}var v0=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=t??{};let a=new Lu;if(n&&(rs(n)?a.push(c0):a.push(d0(n.extraArgument))),process.env.NODE_ENV!=="production"){if(r){let l={};rs(r)||(l=r),a.unshift(y0(l))}if(i){let l={};rs(i)||(l=i),a.push(b0(l))}if(s){let l={};rs(s)||(l=s),a.unshift(h0(l))}}return a},x0="RTK_autoBatch",Uu=e=>t=>{setTimeout(t,e)},S0=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,s=!1,a=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Uu(10):e.type==="callback"?e.queueNotification:Uu(e.timeout),p=()=>{a=!1,s&&(s=!1,l.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){const h=()=>i&&u(),v=r.subscribe(h);return l.add(u),()=>{v(),l.delete(u)}},dispatch(u){try{return i=!u?.meta?.[x0],s=!i,s&&(a||(a=!0,c(p))),r.dispatch(u)}finally{i=!0}}})},w0=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Lu(e);return r&&i.push(S0(typeof r=="object"?r:void 0)),i};function C0(e){const t=v0(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:s=!0,preloadedState:a=void 0,enhancers:l=void 0}=e||{};let c;if(typeof n=="function")c=n;else if(vo(n))c=pu(n);else throw new Error(process.env.NODE_ENV==="production"?Ye(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(process.env.NODE_ENV!=="production"&&r&&typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Ye(2):"`middleware` field must be a callback");let p;if(typeof r=="function"){if(p=r(t),process.env.NODE_ENV!=="production"&&!Array.isArray(p))throw new Error(process.env.NODE_ENV==="production"?Ye(3):"when using a middleware builder function, an array of middleware must be returned")}else p=t();if(process.env.NODE_ENV!=="production"&&p.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ye(4):"each middleware provided to configureStore must be a function");if(process.env.NODE_ENV!=="production"&&s){let f=new Set;p.forEach(m=>{if(f.has(m))throw new Error(process.env.NODE_ENV==="production"?Ye(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");f.add(m)})}let u=Ri;i&&(u=u0({trace:process.env.NODE_ENV!=="production",...typeof i=="object"&&i}));const h=Mb(...p),v=w0(h);if(process.env.NODE_ENV!=="production"&&l&&typeof l!="function")throw new Error(process.env.NODE_ENV==="production"?Ye(5):"`enhancers` field must be a callback");let b=typeof l=="function"?l(v):v();if(process.env.NODE_ENV!=="production"&&!Array.isArray(b))throw new Error(process.env.NODE_ENV==="production"?Ye(6):"`enhancers` callback must return an array");if(process.env.NODE_ENV!=="production"&&b.some(f=>typeof f!="function"))throw new Error(process.env.NODE_ENV==="production"?Ye(7):"each enhancer provided to configureStore must be a function");process.env.NODE_ENV!=="production"&&p.length&&!b.includes(h)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const g=u(...b);return el(c,a,g)}function Hu(e){const t={},n=[];let r;const i={addCase(s,a){if(process.env.NODE_ENV!=="production"){if(n.length>0)throw new Error(process.env.NODE_ENV==="production"?Ye(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?Ye(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof s=="string"?s:s.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?Ye(28):"`builder.addCase` cannot be called with an empty action type");if(l in t)throw new Error(process.env.NODE_ENV==="production"?Ye(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return t[l]=a,i},addAsyncThunk(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ye(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[s.pending.type]=a.pending),a.rejected&&(t[s.rejected.type]=a.rejected),a.fulfilled&&(t[s.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:s.settled,reducer:a.settled}),i},addMatcher(s,a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ye(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?Ye(31):"`builder.addDefaultCase` can only be called once");return r=s,i}};return e(i),[t,n,r]}function E0(e){return typeof e=="function"}function T0(e,t){if(process.env.NODE_ENV!=="production"&&typeof t=="object")throw new Error(process.env.NODE_ENV==="production"?Ye(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[n,r,i]=Hu(t),s;if(E0(e))s=()=>zu(e());else{const l=zu(e);s=()=>l}function a(l=s(),c){let p=[n[c.type],...r.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return p.filter(u=>!!u).length===0&&(p=[i]),p.reduce((u,h)=>{if(h)if(kn(u)){const b=h(u,c);return b===void 0?u:b}else{if(Jt(u))return Iu(u,v=>h(v,c));{const v=h(u,c);if(v===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return u},l)}return a.getInitialState=s,a}var O0=(e,t)=>Fu(e)?e.match(t):e(t);function P0(...e){return t=>e.some(n=>O0(n,t))}var k0="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",N0=(e=21)=>{let t="",n=e;for(;n--;)t+=k0[Math.random()*64|0];return t},I0=["name","message","stack","code"],yl=class{constructor(e,t){this.payload=e,this.meta=t}_type},qu=class{constructor(e,t){this.payload=e,this.meta=t}_type},A0=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of I0)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Yu="External signal was aborted",Qt=(()=>{function e(t,n,r){const i=To(t+"/fulfilled",(c,p,u,h)=>({payload:c,meta:{...h||{},arg:u,requestId:p,requestStatus:"fulfilled"}})),s=To(t+"/pending",(c,p,u)=>({payload:void 0,meta:{...u||{},arg:p,requestId:c,requestStatus:"pending"}})),a=To(t+"/rejected",(c,p,u,h,v)=>({payload:h,error:(r&&r.serializeError||A0)(c||"Rejected"),meta:{...v||{},arg:u,requestId:p,rejectedWithValue:!!h,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:p}={}){return(u,h,v)=>{const b=r?.idGenerator?r.idGenerator(c):N0(),g=new AbortController;let f,m;function y(x){m=x,g.abort()}p&&(p.aborted?y(Yu):p.addEventListener("abort",()=>y(Yu),{once:!0}));const w=(async function(){let x;try{let C=r?.condition?.(c,{getState:h,extra:v});if(_0(C)&&(C=await C),C===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const O=new Promise((P,$)=>{f=()=>{$({name:"AbortError",message:m||"Aborted"})},g.signal.addEventListener("abort",f,{once:!0})});u(s(b,c,r?.getPendingMeta?.({requestId:b,arg:c},{getState:h,extra:v}))),x=await Promise.race([O,Promise.resolve(n(c,{dispatch:u,getState:h,extra:v,requestId:b,signal:g.signal,abort:y,rejectWithValue:(P,$)=>new yl(P,$),fulfillWithValue:(P,$)=>new qu(P,$)})).then(P=>{if(P instanceof yl)throw P;return P instanceof qu?i(P.payload,b,c,P.meta):i(P,b,c)})])}catch(C){x=C instanceof yl?a(null,b,c,C.payload,C.meta):a(C,b,c)}finally{f&&g.signal.removeEventListener("abort",f)}return r&&!r.dispatchConditionRejection&&a.match(x)&&x.meta.condition||u(x),x})();return Object.assign(w,{abort:y,requestId:b,arg:c,unwrap(){return w.then(M0)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:P0(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function M0(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function _0(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var $0=Symbol.for("rtk-slice-createasyncthunk");function D0(e,t){return`${e}/${t}`}function F0({creators:e}={}){const t=e?.asyncThunk?.[$0];return function(r){const{name:i,reducerPath:s=i}=r;if(!i)throw new Error(process.env.NODE_ENV==="production"?Ye(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&r.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=(typeof r.reducers=="function"?r.reducers(L0()):r.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(x,S){const C=typeof x=="string"?x:x.type;if(!C)throw new Error(process.env.NODE_ENV==="production"?Ye(12):"`context.addCase` cannot be called with an empty action type");if(C in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?Ye(13):"`context.addCase` cannot be called with two reducers for the same action type: "+C);return c.sliceCaseReducersByType[C]=S,p},addMatcher(x,S){return c.sliceMatchers.push({matcher:x,reducer:S}),p},exposeAction(x,S){return c.actionCreators[x]=S,p},exposeCaseReducer(x,S){return c.sliceCaseReducersByName[x]=S,p}};l.forEach(x=>{const S=a[x],C={reducerName:x,type:D0(i,x),createNotation:typeof r.reducers=="function"};B0(S)?W0(C,S,p,t):z0(C,S,p)});function u(){if(process.env.NODE_ENV!=="production"&&typeof r.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?Ye(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[x={},S=[],C=void 0]=typeof r.extraReducers=="function"?Hu(r.extraReducers):[r.extraReducers],O={...x,...c.sliceCaseReducersByType};return T0(r.initialState,P=>{for(let $ in O)P.addCase($,O[$]);for(let $ of c.sliceMatchers)P.addMatcher($.matcher,$.reducer);for(let $ of S)P.addMatcher($.matcher,$.reducer);C&&P.addDefaultCase(C)})}const h=x=>x,v=new Map,b=new WeakMap;let g;function f(x,S){return g||(g=u()),g(x,S)}function m(){return g||(g=u()),g.getInitialState()}function y(x,S=!1){function C(P){let $=P[x];if(typeof $>"u"){if(S)$=ns(b,C,m);else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ye(15):"selectSlice returned undefined for an uninjected slice reducer")}return $}function O(P=h){const $=ns(v,S,()=>new WeakMap);return ns($,P,()=>{const A={};for(const[j,L]of Object.entries(r.selectors??{}))A[j]=j0(L,P,()=>ns(b,P,m),S);return A})}return{reducerPath:x,getSelectors:O,get selectors(){return O(C)},selectSlice:C}}const w={name:i,reducer:f,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...y(s),injectInto(x,{reducerPath:S,...C}={}){const O=S??s;return x.inject({reducerPath:O,reducer:f},C),{...w,...y(O,!0)}}};return w}}function j0(e,t,n,r){function i(s,...a){let l=t(s);if(typeof l>"u"){if(r)l=n();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?Ye(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...a)}return i.unwrapped=e,i}var Ku=F0();function L0(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function z0({type:e,reducerName:t,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!R0(r))throw new Error(process.env.NODE_ENV==="production"?Ye(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=r.reducer,a=r.prepare}else s=r;i.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,a?To(e,a):To(e))}function B0(e){return e._reducerDefinitionType==="asyncThunk"}function R0(e){return e._reducerDefinitionType==="reducerWithPrepare"}function W0({type:e,reducerName:t},n,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?Ye(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:s,fulfilled:a,pending:l,rejected:c,settled:p,options:u}=n,h=i(e,s,u);r.exposeAction(t,h),a&&r.addCase(h.fulfilled,a),l&&r.addCase(h.pending,l),c&&r.addCase(h.rejected,c),p&&r.addMatcher(h.settled,p),r.exposeCaseReducer(t,{fulfilled:a||os,pending:l||os,rejected:c||os,settled:p||os})}function os(){}function Ye(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 bl="persist:",Gu="persist/FLUSH",vl="persist/REHYDRATE",Xu="persist/PAUSE",Ju="persist/PERSIST",Qu="persist/PURGE",Zu="persist/REGISTER",V0=-1;function Oo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Oo=function(n){return typeof n}:Oo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Oo(e)}function ep(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function U0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ep(n,!0).forEach(function(r){H0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ep(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q0(e,t,n,r){var i=r.debug,s=U0({},n);return e&&Oo(e)==="object"&&Object.keys(e).forEach(function(a){if(a!=="_persist"){if(t[a]!==n[a]){process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/stateReconciler: sub state for key `%s` modified, skipping.",a);return}s[a]=e[a]}}),process.env.NODE_ENV!=="production"&&i&&e&&Oo(e)==="object"&&console.log("redux-persist/stateReconciler: rehydrated keys '".concat(Object.keys(e).join(", "),"'")),s}function Y0(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],i=e.throttle||0,s="".concat(e.keyPrefix!==void 0?e.keyPrefix:bl).concat(e.key),a=e.storage,l;e.serialize===!1?l=function(C){return C}:typeof e.serialize=="function"?l=e.serialize:l=K0;var c=e.writeFailHandler||null,p={},u={},h=[],v=null,b=null,g=function(C){Object.keys(C).forEach(function(O){y(O)&&p[O]!==C[O]&&h.indexOf(O)===-1&&h.push(O)}),Object.keys(p).forEach(function(O){C[O]===void 0&&y(O)&&h.indexOf(O)===-1&&p[O]!==void 0&&h.push(O)}),v===null&&(v=setInterval(f,i)),p=C};function f(){if(h.length===0){v&&clearInterval(v),v=null;return}var S=h.shift(),C=r.reduce(function(O,P){return P.in(O,S,p)},p[S]);if(C!==void 0)try{u[S]=l(C)}catch(O){console.error("redux-persist/createPersistoid: error serializing state",O)}else delete u[S];h.length===0&&m()}function m(){Object.keys(u).forEach(function(S){p[S]===void 0&&delete u[S]}),b=a.setItem(s,l(u)).catch(w)}function y(S){return!(n&&n.indexOf(S)===-1&&S!=="_persist"||t&&t.indexOf(S)!==-1)}function w(S){c&&c(S),S&&process.env.NODE_ENV!=="production"&&console.error("Error storing data",S)}var x=function(){for(;h.length!==0;)f();return b||Promise.resolve()};return{update:g,flush:x}}function K0(e){return JSON.stringify(e)}function G0(e){var t=e.transforms||[],n="".concat(e.keyPrefix!==void 0?e.keyPrefix:bl).concat(e.key),r=e.storage,i=e.debug,s;return e.deserialize===!1?s=function(l){return l}:typeof e.deserialize=="function"?s=e.deserialize:s=X0,r.getItem(n).then(function(a){if(a)try{var l={},c=s(a);return Object.keys(c).forEach(function(p){l[p]=t.reduceRight(function(u,h){return h.out(u,p,c)},s(c[p]))}),l}catch(p){throw process.env.NODE_ENV!=="production"&&i&&console.log("redux-persist/getStoredState: Error restoring data ".concat(a),p),p}else return})}function X0(e){return JSON.parse(e)}function J0(e){var t=e.storage,n="".concat(e.keyPrefix!==void 0?e.keyPrefix:bl).concat(e.key);return t.removeItem(n,Q0)}function Q0(e){e&&process.env.NODE_ENV!=="production"&&console.error("redux-persist/purgeStoredState: Error purging data stored state",e)}function tp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function In(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tp(n,!0).forEach(function(r){Z0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ev(e,t){if(e==null)return{};var n=tv(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tv(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nv=5e3;function rv(e,t){if(process.env.NODE_ENV!=="production"){if(!e)throw new Error("config is required for persistReducer");if(!e.key)throw new Error("key is required in persistor config");if(!e.storage)throw new Error("redux-persist: config.storage is required. Try using one of the provided storage engines `import storage from 'redux-persist/lib/storage'`")}var n=e.version!==void 0?e.version:V0;e.debug;var r=e.stateReconciler===void 0?q0:e.stateReconciler,i=e.getStoredState||G0,s=e.timeout!==void 0?e.timeout:nv,a=null,l=!1,c=!0,p=function(h){return h._persist.rehydrated&&a&&!c&&a.update(h),h};return function(u,h){var v=u||{},b=v._persist,g=ev(v,["_persist"]),f=g;if(h.type===Ju){var m=!1,y=function($,A){process.env.NODE_ENV!=="production"&&m&&console.error('redux-persist: rehydrate for "'.concat(e.key,'" called after timeout.'),$,A),m||(h.rehydrate(e.key,$,A),m=!0)};if(s&&setTimeout(function(){!m&&y(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},s),c=!1,a||(a=Y0(e)),b)return In({},t(f,h),{_persist:b});if(typeof h.rehydrate!="function"||typeof h.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return h.register(e.key),i(e).then(function(P){var $=e.migrate||function(A,j){return Promise.resolve(A)};$(P,n).then(function(A){y(A)},function(A){process.env.NODE_ENV!=="production"&&A&&console.error("redux-persist: migration error",A),y(void 0,A)})},function(P){y(void 0,P)}),In({},t(f,h),{_persist:{version:n,rehydrated:!1}})}else{if(h.type===Qu)return l=!0,h.result(J0(e)),In({},t(f,h),{_persist:b});if(h.type===Gu)return h.result(a&&a.flush()),In({},t(f,h),{_persist:b});if(h.type===Xu)c=!0;else if(h.type===vl){if(l)return In({},f,{_persist:In({},b,{rehydrated:!0})});if(h.key===e.key){var w=t(f,h),x=h.payload,S=r!==!1&&x!==void 0?r(x,u,w,e):w,C=In({},S,{_persist:In({},b,{rehydrated:!0})});return p(C)}}}if(!b)return t(u,h);var O=t(f,h);return O===f?u:p(In({},O,{_persist:b}))}}function np(e){return sv(e)||iv(e)||ov()}function ov(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function iv(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sv(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rp(n,!0).forEach(function(r){av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function av(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var op={registry:[],bootstrapped:!1},lv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:op,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case Zu:return xl({},t,{registry:[].concat(np(t.registry),[n.key])});case vl:var r=t.registry.indexOf(n.key),i=np(t.registry);return i.splice(r,1),xl({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function cv(e,t,n){if(process.env.NODE_ENV!=="production"){var r={},i=["blacklist","whitelist","transforms","storage","keyPrefix","migrate"];i.forEach(function(p){r[p]&&console.error('redux-persist: invalid option passed to persistStore: "'.concat(p,'". You may be incorrectly passing persistConfig into persistStore, whereas it should be passed into persistReducer.'))})}var s=el(lv,op,void 0),a=function(u){s.dispatch({type:Zu,key:u})},l=function(u,h,v){var b={type:vl,payload:h,err:v,key:u};e.dispatch(b),s.dispatch(b)},c=xl({},s,{purge:function(){var u=[];return e.dispatch({type:Qu,result:function(v){u.push(v)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Gu,result:function(v){u.push(v)}}),Promise.all(u)},pause:function(){e.dispatch({type:Xu})},persist:function(){e.dispatch({type:Ju,register:a,rehydrate:l})}});return c.persist(),c}function ip(e,t){return function(){return e.apply(t,arguments)}}const{toString:dv}=Object.prototype,{getPrototypeOf:Sl}=Object,{iterator:is,toStringTag:sp}=Symbol,ss=(e=>t=>{const n=dv.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=e=>(e=e.toLowerCase(),t=>ss(t)===e),as=e=>t=>typeof t===e,{isArray:Nr}=Array,Ir=as("undefined");function Po(e){return e!==null&&!Ir(e)&&e.constructor!==null&&!Ir(e.constructor)&&Ot(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ap=Zt("ArrayBuffer");function uv(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ap(e.buffer),t}const pv=as("string"),Ot=as("function"),lp=as("number"),ko=e=>e!==null&&typeof e=="object",fv=e=>e===!0||e===!1,ls=e=>{if(ss(e)!=="object")return!1;const t=Sl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(sp in e)&&!(is in e)},hv=e=>{if(!ko(e)||Po(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},gv=Zt("Date"),mv=Zt("File"),yv=Zt("Blob"),bv=Zt("FileList"),vv=e=>ko(e)&&Ot(e.pipe),xv=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ot(e.append)&&((t=ss(e))==="formdata"||t==="object"&&Ot(e.toString)&&e.toString()==="[object FormData]"))},Sv=Zt("URLSearchParams"),[wv,Cv,Ev,Tv]=["ReadableStream","Request","Response","Headers"].map(Zt),Ov=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function No(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),Nr(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(Po(e))return;const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let l;for(r=0;r<a;r++)l=s[r],t.call(null,e[l],l,e)}}function cp(e,t){if(Po(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,dp=e=>!Ir(e)&&e!==ir;function wl(){const{caseless:e,skipUndefined:t}=dp(this)&&this||{},n={},r=(i,s)=>{const a=e&&cp(n,s)||s;ls(n[a])&&ls(i)?n[a]=wl(n[a],i):ls(i)?n[a]=wl({},i):Nr(i)?n[a]=i.slice():(!t||!Ir(i))&&(n[a]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&No(arguments[i],r);return n}const Pv=(e,t,n,{allOwnKeys:r}={})=>(No(t,(i,s)=>{n&&Ot(i)?e[s]=ip(i,n):e[s]=i},{allOwnKeys:r}),e),kv=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Nv=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Iv=(e,t,n,r)=>{let i,s,a;const l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)a=i[s],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&Sl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Av=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Mv=e=>{if(!e)return null;if(Nr(e))return e;let t=e.length;if(!lp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},_v=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sl(Uint8Array)),$v=(e,t)=>{const r=(e&&e[is]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},Dv=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Fv=Zt("HTMLFormElement"),jv=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),up=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Lv=Zt("RegExp"),pp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};No(n,(i,s)=>{let a;(a=t(i,s,e))!==!1&&(r[s]=a||i)}),Object.defineProperties(e,r)},zv=e=>{pp(e,(t,n)=>{if(Ot(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ot(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Bv=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return Nr(e)?r(e):r(String(e).split(t)),n},Rv=()=>{},Wv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Vv(e){return!!(e&&Ot(e.append)&&e[sp]==="FormData"&&e[is])}const Uv=e=>{const t=new Array(10),n=(r,i)=>{if(ko(r)){if(t.indexOf(r)>=0)return;if(Po(r))return r;if(!("toJSON"in r)){t[i]=r;const s=Nr(r)?[]:{};return No(r,(a,l)=>{const c=n(a,i+1);!Ir(c)&&(s[l]=c)}),t[i]=void 0,s}}return r};return n(e,0)},Hv=Zt("AsyncFunction"),qv=e=>e&&(ko(e)||Ot(e))&&Ot(e.then)&&Ot(e.catch),fp=((e,t)=>e?setImmediate:t?((n,r)=>(ir.addEventListener("message",({source:i,data:s})=>{i===ir&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ir.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ot(ir.postMessage)),Yv=typeof queueMicrotask<"u"?queueMicrotask.bind(ir):typeof process<"u"&&process.nextTick||fp,U={isArray:Nr,isArrayBuffer:ap,isBuffer:Po,isFormData:xv,isArrayBufferView:uv,isString:pv,isNumber:lp,isBoolean:fv,isObject:ko,isPlainObject:ls,isEmptyObject:hv,isReadableStream:wv,isRequest:Cv,isResponse:Ev,isHeaders:Tv,isUndefined:Ir,isDate:gv,isFile:mv,isBlob:yv,isRegExp:Lv,isFunction:Ot,isStream:vv,isURLSearchParams:Sv,isTypedArray:_v,isFileList:bv,forEach:No,merge:wl,extend:Pv,trim:Ov,stripBOM:kv,inherits:Nv,toFlatObject:Iv,kindOf:ss,kindOfTest:Zt,endsWith:Av,toArray:Mv,forEachEntry:$v,matchAll:Dv,isHTMLForm:Fv,hasOwnProperty:up,hasOwnProp:up,reduceDescriptors:pp,freezeMethods:zv,toObjectSet:Bv,toCamelCase:jv,noop:Rv,toFiniteNumber:Wv,findKey:cp,global:ir,isContextDefined:dp,isSpecCompliantForm:Vv,toJSONObject:Uv,isAsyncFn:Hv,isThenable:qv,setImmediate:fp,asap:Yv,isIterable:e=>e!=null&&Ot(e[is])};function Ee(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}U.inherits(Ee,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:U.toJSONObject(this.config),code:this.code,status:this.status}}});const hp=Ee.prototype,gp={};["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=>{gp[e]={value:e}}),Object.defineProperties(Ee,gp),Object.defineProperty(hp,"isAxiosError",{value:!0}),Ee.from=(e,t,n,r,i,s)=>{const a=Object.create(hp);U.toFlatObject(e,a,function(u){return u!==Error.prototype},p=>p!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Ee.call(a,l,c,n,r,i),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",s&&Object.assign(a,s),a};const Kv=null;function Cl(e){return U.isPlainObject(e)||U.isArray(e)}function mp(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function yp(e,t,n){return e?e.concat(t).map(function(i,s){return i=mp(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function Gv(e){return U.isArray(e)&&!e.some(Cl)}const Xv=U.toFlatObject(U,{},null,function(t){return/^is[A-Z]/.test(t)});function cs(e,t,n){if(!U.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!U.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||u,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(t);if(!U.isFunction(i))throw new TypeError("visitor must be a function");function p(g){if(g===null)return"";if(U.isDate(g))return g.toISOString();if(U.isBoolean(g))return g.toString();if(!c&&U.isBlob(g))throw new Ee("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(g)||U.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,f,m){let y=g;if(g&&!m&&typeof g=="object"){if(U.endsWith(f,"{}"))f=r?f:f.slice(0,-2),g=JSON.stringify(g);else if(U.isArray(g)&&Gv(g)||(U.isFileList(g)||U.endsWith(f,"[]"))&&(y=U.toArray(g)))return f=mp(f),y.forEach(function(x,S){!(U.isUndefined(x)||x===null)&&t.append(a===!0?yp([f],S,s):a===null?f:f+"[]",p(x))}),!1}return Cl(g)?!0:(t.append(yp(m,f,s),p(g)),!1)}const h=[],v=Object.assign(Xv,{defaultVisitor:u,convertValue:p,isVisitable:Cl});function b(g,f){if(!U.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+f.join("."));h.push(g),U.forEach(g,function(y,w){(!(U.isUndefined(y)||y===null)&&i.call(t,y,U.isString(w)?w.trim():w,f,v))===!0&&b(y,f?f.concat(w):[w])}),h.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return b(e),t}function bp(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function El(e,t){this._pairs=[],e&&cs(e,this,t)}const vp=El.prototype;vp.append=function(t,n){this._pairs.push([t,n])},vp.toString=function(t){const n=t?function(r){return t.call(this,r,bp)}:bp;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function Jv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function xp(e,t,n){if(!t)return e;const r=n&&n.encode||Jv;U.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let s;if(i?s=i(t,n):s=U.isURLSearchParams(t)?t.toString():new El(t,n).toString(r),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Sp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,function(r){r!==null&&t(r)})}}const wp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Qv={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:El,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Tl=typeof window<"u"&&typeof document<"u",Ol=typeof navigator=="object"&&navigator||void 0,Zv=Tl&&(!Ol||["ReactNative","NativeScript","NS"].indexOf(Ol.product)<0),ex=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",tx=Tl&&window.location.href||"http://localhost",mt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tl,hasStandardBrowserEnv:Zv,hasStandardBrowserWebWorkerEnv:ex,navigator:Ol,origin:tx},Symbol.toStringTag,{value:"Module"})),...Qv};function nx(e,t){return cs(e,new mt.classes.URLSearchParams,{visitor:function(n,r,i,s){return mt.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}function rx(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ox(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],t[s]=e[s];return t}function Cp(e){function t(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&U.isArray(i)?i.length:a,c?(U.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!U.isObject(i[a]))&&(i[a]=[]),t(n,r,i[a],s)&&U.isArray(i[a])&&(i[a]=ox(i[a])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,i)=>{t(rx(r),i,n,0)}),n}return null}function ix(e,t,n){if(U.isString(e))try{return(t||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Io={transitional:wp,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=U.isObject(t);if(s&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return i?JSON.stringify(Cp(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t)||U.isReadableStream(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return nx(t,this.formSerializer).toString();if((l=U.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return cs(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),ix(t)):t}],transformResponse:[function(t){const n=this.transitional||Io.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(U.isResponse(t)||U.isReadableStream(t))return t;if(t&&U.isString(t)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(l){if(a)throw l.name==="SyntaxError"?Ee.from(l,Ee.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:mt.classes.FormData,Blob:mt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{Io.headers[e]={}});const sx=U.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"]),ax=e=>{const t={};let n,r,i;return e&&e.split(`
|
|
20
|
+
`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&sx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ep=Symbol("internals");function Ao(e){return e&&String(e).trim().toLowerCase()}function ds(e){return e===!1||e==null?e:U.isArray(e)?e.map(ds):String(e)}function lx(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const cx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pl(e,t,n,r,i){if(U.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!U.isString(t)){if(U.isString(r))return t.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(t)}}function dx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ux(e,t){const n=U.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,a){return this[r].call(this,t,i,s,a)},configurable:!0})})}let Pt=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(l,c,p){const u=Ao(c);if(!u)throw new Error("header name must be a non-empty string");const h=U.findKey(i,u);(!h||i[h]===void 0||p===!0||p===void 0&&i[h]!==!1)&&(i[h||c]=ds(l))}const a=(l,c)=>U.forEach(l,(p,u)=>s(p,u,c));if(U.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(U.isString(t)&&(t=t.trim())&&!cx(t))a(ax(t),n);else if(U.isObject(t)&&U.isIterable(t)){let l={},c,p;for(const u of t){if(!U.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[p=u[0]]=(c=l[p])?U.isArray(c)?[...c,u[1]]:[c,u[1]]:u[1]}a(l,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=Ao(t),t){const r=U.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return lx(i);if(U.isFunction(n))return n.call(this,i,r);if(U.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ao(t),t){const r=U.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Pl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(a){if(a=Ao(a),a){const l=U.findKey(r,a);l&&(!n||Pl(r,r[l],l,n))&&(delete r[l],i=!0)}}return U.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||Pl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return U.forEach(this,(i,s)=>{const a=U.findKey(r,s);if(a){n[a]=ds(i),delete n[s];return}const l=t?dx(s):String(s).trim();l!==s&&delete n[s],n[l]=ds(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
21
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[Ep]=this[Ep]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=Ao(a);r[l]||(ux(i,a),r[l]=!0)}return U.isArray(t)?t.forEach(s):s(t),this}};Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(Pt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}}),U.freezeMethods(Pt);function kl(e,t){const n=this||Io,r=t||n,i=Pt.from(r.headers);let s=r.data;return U.forEach(e,function(l){s=l.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function Tp(e){return!!(e&&e.__CANCEL__)}function Ar(e,t,n){Ee.call(this,e??"canceled",Ee.ERR_CANCELED,t,n),this.name="CanceledError"}U.inherits(Ar,Ee,{__CANCEL__:!0});function Op(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Ee("Request failed with status code "+n.status,[Ee.ERR_BAD_REQUEST,Ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function px(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function fx(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,a;return t=t!==void 0?t:1e3,function(c){const p=Date.now(),u=r[s];a||(a=p),n[i]=c,r[i]=p;let h=s,v=0;for(;h!==i;)v+=n[h++],h=h%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),p-a<t)return;const b=u&&p-u;return b?Math.round(v*1e3/b):void 0}}function hx(e,t){let n=0,r=1e3/t,i,s;const a=(p,u=Date.now())=>{n=u,i=null,s&&(clearTimeout(s),s=null),e(...p)};return[(...p)=>{const u=Date.now(),h=u-n;h>=r?a(p,u):(i=p,s||(s=setTimeout(()=>{s=null,a(i)},r-h)))},()=>i&&a(i)]}const us=(e,t,n=3)=>{let r=0;const i=fx(50,250);return hx(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,p=i(c),u=a<=l;r=a;const h={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:p||void 0,estimated:p&&l&&u?(l-a)/p:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(h)},n)},Pp=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},kp=e=>(...t)=>U.asap(()=>e(...t)),gx=mt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,mt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(mt.origin),mt.navigator&&/(msie|trident)/i.test(mt.navigator.userAgent)):()=>!0,mx=mt.hasStandardBrowserEnv?{write(e,t,n,r,i,s,a){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];U.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),U.isString(r)&&l.push(`path=${r}`),U.isString(i)&&l.push(`domain=${i}`),s===!0&&l.push("secure"),U.isString(a)&&l.push(`SameSite=${a}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function yx(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function bx(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Np(e,t,n){let r=!yx(t);return e&&(r||n==!1)?bx(e,t):t}const Ip=e=>e instanceof Pt?{...e}:e;function sr(e,t){t=t||{};const n={};function r(p,u,h,v){return U.isPlainObject(p)&&U.isPlainObject(u)?U.merge.call({caseless:v},p,u):U.isPlainObject(u)?U.merge({},u):U.isArray(u)?u.slice():u}function i(p,u,h,v){if(U.isUndefined(u)){if(!U.isUndefined(p))return r(void 0,p,h,v)}else return r(p,u,h,v)}function s(p,u){if(!U.isUndefined(u))return r(void 0,u)}function a(p,u){if(U.isUndefined(u)){if(!U.isUndefined(p))return r(void 0,p)}else return r(void 0,u)}function l(p,u,h){if(h in t)return r(p,u);if(h in e)return r(void 0,p)}const c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(p,u,h)=>i(Ip(p),Ip(u),h,!0)};return U.forEach(Object.keys({...e,...t}),function(u){const h=c[u]||i,v=h(e[u],t[u],u);U.isUndefined(v)&&h!==l||(n[u]=v)}),n}const Ap=e=>{const t=sr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Pt.from(a),t.url=xp(Np(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),U.isFormData(n)){if(mt.hasStandardBrowserEnv||mt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(U.isFunction(n.getHeaders)){const c=n.getHeaders(),p=["content-type","content-length"];Object.entries(c).forEach(([u,h])=>{p.includes(u.toLowerCase())&&a.set(u,h)})}}if(mt.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(t)),r||r!==!1&&gx(t.url))){const c=i&&s&&mx.read(s);c&&a.set(i,c)}return t},vx=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const i=Ap(e);let s=i.data;const a=Pt.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:p}=i,u,h,v,b,g;function f(){b&&b(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(u),i.signal&&i.signal.removeEventListener("abort",u)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function y(){if(!m)return;const x=Pt.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),C={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:x,config:e,request:m};Op(function(P){n(P),f()},function(P){r(P),f()},C),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(r(new Ee("Request aborted",Ee.ECONNABORTED,e,m)),m=null)},m.onerror=function(S){const C=S&&S.message?S.message:"Network Error",O=new Ee(C,Ee.ERR_NETWORK,e,m);O.event=S||null,r(O),m=null},m.ontimeout=function(){let S=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||wp;i.timeoutErrorMessage&&(S=i.timeoutErrorMessage),r(new Ee(S,C.clarifyTimeoutError?Ee.ETIMEDOUT:Ee.ECONNABORTED,e,m)),m=null},s===void 0&&a.setContentType(null),"setRequestHeader"in m&&U.forEach(a.toJSON(),function(S,C){m.setRequestHeader(C,S)}),U.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),l&&l!=="json"&&(m.responseType=i.responseType),p&&([v,g]=us(p,!0),m.addEventListener("progress",v)),c&&m.upload&&([h,b]=us(c),m.upload.addEventListener("progress",h),m.upload.addEventListener("loadend",b)),(i.cancelToken||i.signal)&&(u=x=>{m&&(r(!x||x.type?new Ar(null,e,m):x),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(u),i.signal&&(i.signal.aborted?u():i.signal.addEventListener("abort",u)));const w=px(i.url);if(w&&mt.protocols.indexOf(w)===-1){r(new Ee("Unsupported protocol "+w+":",Ee.ERR_BAD_REQUEST,e));return}m.send(s||null)})},xx=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,i;const s=function(p){if(!i){i=!0,l();const u=p instanceof Error?p:this.reason;r.abort(u instanceof Ee?u:new Ar(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,s(new Ee(`timeout ${t} of ms exceeded`,Ee.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>U.asap(l),c}},Sx=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},wx=async function*(e,t){for await(const n of Cx(e))yield*Sx(n,t)},Cx=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Mp=(e,t,n,r)=>{const i=wx(e,t);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:p,value:u}=await i.next();if(p){l(),c.close();return}let h=u.byteLength;if(n){let v=s+=h;n(v)}c.enqueue(new Uint8Array(u))}catch(p){throw l(p),p}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},_p=64*1024,{isFunction:ps}=U,Ex=(({Request:e,Response:t})=>({Request:e,Response:t}))(U.global),{ReadableStream:$p,TextEncoder:Dp}=U.global,Fp=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Tx=e=>{e=U.merge.call({skipUndefined:!0},Ex,e);const{fetch:t,Request:n,Response:r}=e,i=t?ps(t):typeof fetch=="function",s=ps(n),a=ps(r);if(!i)return!1;const l=i&&ps($p),c=i&&(typeof Dp=="function"?(g=>f=>g.encode(f))(new Dp):async g=>new Uint8Array(await new n(g).arrayBuffer())),p=s&&l&&Fp(()=>{let g=!1;const f=new n(mt.origin,{body:new $p,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!f}),u=a&&l&&Fp(()=>U.isReadableStream(new r("").body)),h={stream:u&&(g=>g.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!h[g]&&(h[g]=(f,m)=>{let y=f&&f[g];if(y)return y.call(f);throw new Ee(`Response type '${g}' is not supported`,Ee.ERR_NOT_SUPPORT,m)})});const v=async g=>{if(g==null)return 0;if(U.isBlob(g))return g.size;if(U.isSpecCompliantForm(g))return(await new n(mt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(U.isArrayBufferView(g)||U.isArrayBuffer(g))return g.byteLength;if(U.isURLSearchParams(g)&&(g=g+""),U.isString(g))return(await c(g)).byteLength},b=async(g,f)=>{const m=U.toFiniteNumber(g.getContentLength());return m??v(f)};return async g=>{let{url:f,method:m,data:y,signal:w,cancelToken:x,timeout:S,onDownloadProgress:C,onUploadProgress:O,responseType:P,headers:$,withCredentials:A="same-origin",fetchOptions:j}=Ap(g),L=t||fetch;P=P?(P+"").toLowerCase():"text";let T=xx([w,x&&x.toAbortSignal()],S),k=null;const _=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let D;try{if(O&&p&&m!=="get"&&m!=="head"&&(D=await b($,y))!==0){let R=new n(f,{method:"POST",body:y,duplex:"half"}),Y;if(U.isFormData(y)&&(Y=R.headers.get("content-type"))&&$.setContentType(Y),R.body){const[te,G]=Pp(D,us(kp(O)));y=Mp(R.body,_p,te,G)}}U.isString(A)||(A=A?"include":"omit");const N=s&&"credentials"in n.prototype,B={...j,signal:T,method:m.toUpperCase(),headers:$.normalize().toJSON(),body:y,duplex:"half",credentials:N?A:void 0};k=s&&new n(f,B);let I=await(s?L(k,j):L(f,B));const W=u&&(P==="stream"||P==="response");if(u&&(C||W&&_)){const R={};["status","statusText","headers"].forEach(q=>{R[q]=I[q]});const Y=U.toFiniteNumber(I.headers.get("content-length")),[te,G]=C&&Pp(Y,us(kp(C),!0))||[];I=new r(Mp(I.body,_p,te,()=>{G&&G(),_&&_()}),R)}P=P||"text";let z=await h[U.findKey(h,P)||"text"](I,g);return!W&&_&&_(),await new Promise((R,Y)=>{Op(R,Y,{data:z,headers:Pt.from(I.headers),status:I.status,statusText:I.statusText,config:g,request:k})})}catch(N){throw _&&_(),N&&N.name==="TypeError"&&/Load failed|fetch/i.test(N.message)?Object.assign(new Ee("Network Error",Ee.ERR_NETWORK,g,k),{cause:N.cause||N}):Ee.from(N,N&&N.code,g,k)}}},Ox=new Map,jp=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,s=[r,i,n];let a=s.length,l=a,c,p,u=Ox;for(;l--;)c=s[l],p=u.get(c),p===void 0&&u.set(c,p=l?new Map:Tx(t)),u=p;return p};jp();const Nl={http:Kv,xhr:vx,fetch:{get:jp}};U.forEach(Nl,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Lp=e=>`- ${e}`,Px=e=>U.isFunction(e)||e===null||e===!1;function kx(e,t){e=U.isArray(e)?e:[e];const{length:n}=e;let r,i;const s={};for(let a=0;a<n;a++){r=e[a];let l;if(i=r,!Px(r)&&(i=Nl[(l=String(r)).toLowerCase()],i===void 0))throw new Ee(`Unknown adapter '${l}'`);if(i&&(U.isFunction(i)||(i=i.get(t))))break;s[l||"#"+a]=i}if(!i){const a=Object.entries(s).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let l=n?a.length>1?`since :
|
|
22
|
+
`+a.map(Lp).join(`
|
|
23
|
+
`):" "+Lp(a[0]):"as no adapter specified";throw new Ee("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i}const zp={getAdapter:kx,adapters:Nl};function Il(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ar(null,e)}function Bp(e){return Il(e),e.headers=Pt.from(e.headers),e.data=kl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zp.getAdapter(e.adapter||Io.adapter,e)(e).then(function(r){return Il(e),r.data=kl.call(e,e.transformResponse,r),r.headers=Pt.from(r.headers),r},function(r){return Tp(r)||(Il(e),r&&r.response&&(r.response.data=kl.call(e,e.transformResponse,r.response),r.response.headers=Pt.from(r.response.headers))),Promise.reject(r)})}const Rp="1.13.2",fs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Wp={};fs.transitional=function(t,n,r){function i(s,a){return"[Axios v"+Rp+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(t===!1)throw new Ee(i(a," has been removed"+(n?" in "+n:"")),Ee.ERR_DEPRECATED);return n&&!Wp[a]&&(Wp[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,a,l):!0}},fs.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Nx(e,t,n){if(typeof e!="object")throw new Ee("options must be an object",Ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],a=t[s];if(a){const l=e[s],c=l===void 0||a(l,s,e);if(c!==!0)throw new Ee("option "+s+" must be "+c,Ee.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ee("Unknown option "+s,Ee.ERR_BAD_OPTION)}}const hs={assertOptions:Nx,validators:fs},ln=hs.validators;let ar=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Sp,response:new Sp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
24
|
+
`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=sr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&hs.assertOptions(r,{silentJSONParsing:ln.transitional(ln.boolean),forcedJSONParsing:ln.transitional(ln.boolean),clarifyTimeoutError:ln.transitional(ln.boolean)},!1),i!=null&&(U.isFunction(i)?n.paramsSerializer={serialize:i}:hs.assertOptions(i,{encode:ln.function,serialize:ln.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),hs.assertOptions(n,{baseUrl:ln.spelling("baseURL"),withXsrfToken:ln.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&U.merge(s.common,s[n.method]);s&&U.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),n.headers=Pt.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(f){typeof f.runWhen=="function"&&f.runWhen(n)===!1||(c=c&&f.synchronous,l.unshift(f.fulfilled,f.rejected))});const p=[];this.interceptors.response.forEach(function(f){p.push(f.fulfilled,f.rejected)});let u,h=0,v;if(!c){const g=[Bp.bind(this),void 0];for(g.unshift(...l),g.push(...p),v=g.length,u=Promise.resolve(n);h<v;)u=u.then(g[h++],g[h++]);return u}v=l.length;let b=n;for(;h<v;){const g=l[h++],f=l[h++];try{b=g(b)}catch(m){f.call(this,m);break}}try{u=Bp.call(this,b)}catch(g){return Promise.reject(g)}for(h=0,v=p.length;h<v;)u=u.then(p[h++],p[h++]);return u}getUri(t){t=sr(this.defaults,t);const n=Np(t.baseURL,t.url,t.allowAbsoluteUrls);return xp(n,t.params,t.paramsSerializer)}};U.forEach(["delete","get","head","options"],function(t){ar.prototype[t]=function(n,r){return this.request(sr(r||{},{method:t,url:n,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(t){function n(r){return function(s,a,l){return this.request(sr(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}ar.prototype[t]=n(),ar.prototype[t+"Form"]=n(!0)});let Ix=class Mm{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},t(function(s,a,l){r.reason||(r.reason=new Ar(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Mm(function(i){t=i}),cancel:t}}};function Ax(e){return function(n){return e.apply(null,n)}}function Mx(e){return U.isObject(e)&&e.isAxiosError===!0}const Al={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(Al).forEach(([e,t])=>{Al[t]=e});function Vp(e){const t=new ar(e),n=ip(ar.prototype.request,t);return U.extend(n,ar.prototype,t,{allOwnKeys:!0}),U.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Vp(sr(e,i))},n}const tt=Vp(Io);tt.Axios=ar,tt.CanceledError=Ar,tt.CancelToken=Ix,tt.isCancel=Tp,tt.VERSION=Rp,tt.toFormData=cs,tt.AxiosError=Ee,tt.Cancel=tt.CanceledError,tt.all=function(t){return Promise.all(t)},tt.spread=Ax,tt.isAxiosError=Mx,tt.mergeConfig=sr,tt.AxiosHeaders=Pt,tt.formToJSON=e=>Cp(U.isHTMLForm(e)?new FormData(e):e),tt.getAdapter=zp.getAdapter,tt.HttpStatusCode=Al,tt.default=tt;const{Axios:KI,AxiosError:GI,CanceledError:XI,isCancel:JI,CancelToken:QI,VERSION:ZI,all:eA,Cancel:tA,isAxiosError:nA,spread:rA,toFormData:oA,AxiosHeaders:iA,HttpStatusCode:sA,formToJSON:aA,getAdapter:lA,mergeConfig:cA}=tt;function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var _x={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 Ml(e,t){function n(i,s,a){if(!(typeof document>"u")){a=gs({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=i+"="+e.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),p=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(p,u),i===u)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",gs({},s,{expires:-1}))},withAttributes:function(i){return Ml(this.converter,gs({},this.attributes,i))},withConverter:function(i){return Ml(gs({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var An=Ml(_x,{path:"/"});const $x={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};let Mr="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:La&&La.tagName.toUpperCase()==="SCRIPT"&&La.src||new URL("product-app.umd.js",document.baseURI).href}<"u"&&$x?.VITE_API_URL)Mr=void 0;else{const e=typeof process<"u"?process:null;e&&e.env&&e.env.VITE_API_URL&&(Mr=process.env.VITE_API_URL)}}catch{}const Dx=e=>{Mr=e,kt.defaults.baseURL=Mr},Fx=e=>{e?An.set("token",e,{secure:!0,sameSite:"Strict"}):An.remove("token")},jx=()=>An.get("token")||null,kt=tt.create({baseURL:Mr,transformRequest:[function(e,t){const n=jx();return n?t.Authorization=`Bearer ${n}`:delete t.Authorization,JSON.stringify(e)}],headers:{Accept:"application/json","Content-Type":"application/json"}});let _l=!1,$l=null;kt.interceptors.response.use(e=>e,async e=>{const t=e.config,n=e.response;if(n&&(n.status===401||n.status===402)){const r=An.get("refreshToken");if(r)try{_l||(_l=!0,$l=tt.post(`${Mr}/api/v1/auth/refresh`,{},{headers:{Authorization:`Bearer ${r}`}}));const i=await $l,{token:s,refreshToken:a}=i.data;return An.set("token",s,{secure:!0,sameSite:"Strict"}),An.set("refreshToken",a),localStorage.setItem("justRefreshed","true"),t.headers.Authorization=`Bearer ${s}`,kt(t)}catch{(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(An.remove("token"),An.remove("refreshToken"),localStorage.clear(),window.location.href="/")}finally{_l=!1,$l=null}else(t?.url||t?.baseURL+t?.url||"").includes("/auth/verify")||(An.remove("token"),localStorage.clear(),window.location.href="/")}return Promise.reject(e)});const ms=Qt("dashboard/fetchMetrics",async(e={},{rejectWithValue:t})=>{try{const i=(await kt.get("/dashboard/metrics",{params:e})).data||{};return i.data||i}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),_r=Qt("dashboard/verifyAuth",async(e,{rejectWithValue:t})=>{try{console.log("Calling /auth/verify API...");const n=await kt.get("/auth/verify");console.log("/auth/verify response:",n.data);const r=n.data?.companyId||n.data?.data?.companyId;if(r)return r;throw new Error("companyId not found in /auth/verify response")}catch(n){const r=n.response?.data?.message||n.message||"Failed to verify auth";return t(r)}}),Nt=Qt("dashboard/fetchCompanyIntegrations",async(e,{rejectWithValue:t})=>{try{const n=e?`/integrations/tenant/${e}`:"/integrations/tenant/";return(await kt.get(n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to fetch dashboard metrics";return t(r)}}),Mn=Qt("dashboard/fetchAllProducts",async(e={},{rejectWithValue:t})=>{try{return(await kt.get("/store-inventory",{params:e})).data||{}}catch(n){return console.log("Error fetching products:",n),t(n.response?.data||n.message)}}),Up=Ku({name:"dashboard",initialState:{loading:!1,companyId:"",error:null,metrics:{},integrationData:{},lastUpdated:null,productsByCategory:{},products:[],categorySummary:[],stores:[],homePageCardSummary:{totalCategories:0,totalProducts:0,lastSync:""},pagination:{currentPage:1,limit:20,totalCount:0,totalPages:1,hasNextPage:!1}},reducers:{clearMetrics:e=>{e.metrics={},e.error=null,e.lastUpdated=null},clearError:e=>{e.error=null},updateMetric:(e,t)=>{const{key:n,value:r}=t.payload;e.metrics&&(e.metrics[n]=r)}},extraReducers:e=>{e.addCase(ms.pending,t=>{t.loading=!0,t.error=null}).addCase(ms.fulfilled,(t,n)=>{t.loading=!1,t.metrics=n.payload,t.lastUpdated=Date.now(),t.error=null}).addCase(ms.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch dashboard metrics"}),e.addCase(Nt.pending,t=>{t.loading=!0}).addCase(Nt.fulfilled,(t,n)=>{t.loading=!1,n.payload&&Array.isArray(n.payload.data)&&n.payload.data.length>0?t.integrationData=n.payload.data[0]:t.integrationData={}}).addCase(Nt.rejected,t=>{t.loading=!1}),e.addCase(_r.pending,t=>{t.loading=!0,t.error=null}),e.addCase(_r.fulfilled,(t,n)=>{t.loading=!1,t.companyId=n.payload,t.error=null}),e.addCase(_r.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to verify auth"}),e.addCase(Mn.pending,t=>{t.loading=!0,t.error=null,t.loadingMessage="Fetching Schedules"}).addCase(Mn.fulfilled,(t,n)=>{t.loading=!1,t.error=null,t.loadingMessage="";const r=n.payload||{},i=Array.isArray(r.data)?r.data:Array.isArray(r.products)?r.products:Array.isArray(r)?r:[];t.products=i;const s=(m,y=0)=>{if(m==null||m==="")return y;const w=Number(m);return Number.isFinite(w)?w:y},a={};i.forEach(m=>{if(!m)return;const y=m.categoryName||"Uncategorized";a[y]||(a[y]=[]),a[y].push({...m,stock:s(m.stock),inventory:s(m.inventory),inShelf:s(m.inShelf)})}),t.categorySummary=Object.entries(a).map(([m,y])=>{let w=0,x=0,S=null,C=[];y.forEach(P=>{w+=Number(P.stock)||0,x+=Number(P.inventory)||0,(!S||P.updated&&new Date(P.updated)>new Date(S.updated))&&(S=P),P.productImage&&C.length<5&&C.push(P.productImage)});const O=x>0?Math.round(w/x*100):0;return{name:m,products:y.length,stock:`${w}/${x}`,osa:`${O}% on shelf`,updated:S?.updated?new Date(S.updated).toLocaleString():"",images:C}});const l=Object.values(a).flat(),c=Object.keys(a).length,p=l.length;let u="";if(l.length>0){const m=l.reduce((y,w)=>y?w?new Date(y.updated)>new Date(w.updated)?y:w:y:w);u=m?.updated?new Date(m.updated).toLocaleString():""}t.homePageCardSummary={totalCategories:c,totalProducts:p,lastSync:u},t.productsByCategory=a;const h=n.meta?.arg||{},v=Object.keys(h).length>0;if(t.stores.length===0||!v){const m=new Map;i.forEach(y=>{y&&y.storeName&&y.storeCode&&(m.has(y.storeName)||m.set(y.storeName,{id:y.storeCode,name:y.storeName,storeCode:y.storeCode}))}),t.stores=[{id:"all",name:"All Stores",storeCode:"all"},...Array.from(m.values())]}const g=r.pagination||{},f=typeof g.totalCount=="number"?g.totalCount:Object.values(a).reduce((m,y)=>m+y.length,0);t.pagination={currentPage:typeof g.currentPage=="number"?g.currentPage:1,limit:typeof g.limit=="number"?g.limit:20,totalCount:f,totalPages:typeof g.totalPages=="number"?g.totalPages:1,hasNextPage:typeof g.hasNextPage=="boolean"?g.hasNextPage:!1}}).addCase(Mn.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to fetch products",t.loadingMessage=""})}}),{clearMetrics:uA,clearError:pA,updateMetric:fA}=Up.actions,Lx=Up.reducer,Mo=Qt("productSettings/testConnection",async({serverAddress:e,username:t,password:n,companyId:r,tenantId:i},{rejectWithValue:s})=>{try{const a=r||i;if(!a)throw new Error("Company ID is required");const l=e.match(/^(\w+):\/\/(.*?):(\d+)(\/.*)$/);if(!l)throw new Error("Invalid server address format. Expected format: protocol://host:port/path");let[,c,p,u,h]=l;if(c=c.toLowerCase(),c!=="ftp"&&c!=="sftp")throw new Error("type must be 'ftp' or 'sftp'");const v={tenantId:a,type:c,configs:{host:p,port:Number(u),username:t,password:n,path:h.replace(/^\//,"")},entity_type:""},b=await kt.post("/ftp/sync/test-connection",v);return console.log("=== API Response from /ftp/sync/test-connection ==="),console.log("Full response.data:",b.data),console.log("existing_mapping:",b.data?.existing_mapping),console.log("================================================"),b.data}catch(a){const l=a.response?.data?.message||a.message||"Failed to test FTP connection";return s(l)}}),_o=Qt("productSettings/saveFtpSync",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};return console.log("[FTP Sync] Calling POST /ftp/sync/save with payload:",JSON.stringify(n,null,2)),(await kt.post("/ftp/sync/save",n)).data}catch(n){const r=n.response?.data?.message||n.message||"Failed to save FTP sync configuration";return t(r)}}),$r=Qt("productSettings/updateDetails",async(e,{rejectWithValue:t})=>{try{const n={...e,tenantId:e.tenantId||e.companyId};if(n.companyId&&n.tenantId&&delete n.companyId,!n.configs||typeof n.configs!="object"){const r="Invalid payload: configs object is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.tenantId){const r="Invalid payload: tenantId is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.type){const r="Invalid payload: type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}if(!n.entity_type){const r="Invalid payload: entity_type is required";return console.error("[FTP SYNC]",r,"Received:",n),t(r)}console.log("[FTP SYNC] Calling PUT /ftp/sync/update-details API..."),console.log("[FTP SYNC] API payload (mapped):",JSON.stringify(n,null,2));try{const r=await kt.put("/ftp/sync/update-details",n);if(r.status>=200&&r.status<300)return console.log("[FTP SYNC] API call successful:",r.data),r.data;{const i=r.data?.message||r.data?.error||`Server returned status ${r.status}`;return console.error("[FTP SYNC] API returned non-2xx status:",{status:r.status,data:r.data,payload:n}),t(i)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] API error details:",{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i,payload:n,fullError:r}),t(i)}}catch(n){const r=n.message||"Failed to update FTP sync details";return console.error("[FTP SYNC] Unexpected error:",{error:n,message:r,payload:e}),t(r)}}),$o=Qt("productSettings/syncNow",async(e,{rejectWithValue:t})=>{try{if(!e)throw new Error("Channel ID is required");const n=await kt.post(`/ftp/sync/${e}/sync-now`);if(n.status>=200&&n.status<300)return n.data;{const r=n.data?.message||"Failed to start sync";return t(r)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to start sync";return t(r)}}),Do=Qt("productSettings/fetchMappingColumns",async(e="products",{rejectWithValue:t})=>{try{const n=e?{entity_type:e}:{},r=await kt.get("/store-inventory/mapping-columns",{params:n});if(r.status>=200&&r.status<300)return r.data&&typeof r.data=="object"&&"status"in r.data&&r.data.status?r.data.data||[]:r.data||[];{const i=r.data?.message||"Failed to fetch mapping columns";return t(i)}}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch mapping columns";return t(r)}}),Fo=Qt("productSettings/updateIntegrationByChannelId",async({channelId:e,data:t},{rejectWithValue:n})=>{try{if(!e)throw new Error("Channel ID is required");if(!t||typeof t!="object")throw new Error("Update data is required");console.log(`[Integration] Calling PATCH /integrations/${e} API...`),console.log("[Integration] PATCH payload:",JSON.stringify(t,null,2));const r=`/integrations/${e}`,i=await kt.patch(r,t);if(i.status>=200&&i.status<300)return console.log(`[Integration] PATCH API call successful for channelId ${e}:`,i.data),i.data;{const s=i.data?.message||i.data?.error||`Server returned status ${i.status}`;return console.error(`[Integration] PATCH API returned non-2xx status for channelId ${e}:`,{status:i.status,data:i.data}),n(s)}}catch(r){const i=r.response?.data?.message||r.response?.data?.error||r.message||"Failed to update integration by channel ID";return console.error(`[Integration] PATCH API error for channelId ${e}:`,{status:r.response?.status,statusText:r.response?.statusText,data:r.response?.data,message:i}),n(i)}}),Dr=Qt("productSettings/fetchSharedCatalogues",async(e,{rejectWithValue:t})=>{try{const n=e&&typeof e=="object"?e:{},r=await kt.get("/catalogues/shared",{params:n});if(r.status>=200&&r.status<300){const s=r.data;return s&&typeof s=="object"&&Array.isArray(s.data)&&typeof s.total=="number"?{total:s.total,page:s.page,limit:s.limit,data:s.data}:{total:0,page:1,limit:10,data:Array.isArray(s)?s:[]}}const i=r.data?.message||r.data?.error||"Failed to fetch shared catalogues";return t(i)}catch(n){const r=n.response?.data?.message||n.response?.data?.error||n.message||"Failed to fetch shared catalogues";return t(r)}}),Dl={loading:!1,error:null,testConnectionResult:null,saveResult:null,updateDetailsResult:null,syncNowResult:null,updateIntegrationByChannelIdResult:null,updateIntegrationByChannelIdLoading:!1,updateIntegrationByChannelIdError:null,syncData:{tenantId:"",companyId:"",type:"",serverAddress:"",configs:{host:"",port:"",username:"",password:"",path:"",sync_frequency:"",sync_time:""},entity_type:"",mappings:[]},ftpColumns:[],preview:[],configs:{},integration_type:"",companyId:"",entity_type:"",existingMapping:null,mappingColumns:[],mappingColumnsLoading:!1,mappingColumnsError:null,sharedCatalogues:[],sharedCataloguesTotal:0,sharedCataloguesPage:1,sharedCataloguesLimit:10,sharedCataloguesLoading:!1,sharedCataloguesError:null},Hp=Ku({name:"productSettings",initialState:Dl,reducers:{clearError:e=>{e.error=null},clearTestConnectionResult:e=>{e.testConnectionResult=null},clearSaveResult:e=>{e.saveResult=null},clearAll:e=>{e.testConnectionResult=null,e.saveResult=null,e.error=null,e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null},clearTestConnectionData:e=>{e.ftpColumns=[],e.preview=[],e.configs={},e.integration_type="",e.companyId="",e.entity_type="",e.existingMapping=null,e.testConnectionResult=null},clearUpdateDetailsResult:e=>{e.updateDetailsResult=null},clearSyncNowResult:e=>{e.syncNowResult=null},clearMappingColumnsError:e=>{e.mappingColumnsError=null},clearMappingColumns:e=>{e.mappingColumns=[],e.mappingColumnsError=null},clearSharedCataloguesError:e=>{e.sharedCataloguesError=null},clearSharedCatalogues:e=>{e.sharedCatalogues=[],e.sharedCataloguesTotal=0,e.sharedCataloguesPage=1,e.sharedCataloguesLimit=10,e.sharedCataloguesError=null},clearIntegrationByChannelIdResult:e=>{e.integrationByChannelIdResult=null,e.integrationByChannelIdError=null},setFtpSyncData:(e,t)=>{e.syncData={...e.syncData,...t.payload}},clearFtpSyncData:e=>{e.syncData=Dl.syncData}},extraReducers:e=>{e.addCase(Mo.pending,t=>{t.loading=!0,t.error=null,t.ftpColumns=[],t.preview=[],t.existingMapping=null}).addCase(Mo.fulfilled,(t,n)=>{t.loading=!1,t.testConnectionResult=n.payload,t.error=null;const r=n.payload;t.ftpColumns=r.ftp_columns||[],t.preview=r.preview||[],t.configs=r.configs||{},t.integration_type=r.integration_type||"",t.companyId=r.companyId||r.tenantId||"";let i=r.entity_type||"";if(!i&&r.existing_mapping?.mappings?.length>0){const s=r.existing_mapping.mappings[0]?.target_table;(s==="products"||s==="storeInventory")&&(i="products",console.log('✅ Inferred entity_type as "products" from existing_mapping target_table'))}t.entity_type=i,t.existingMapping=r.existing_mapping||null,r.existing_mapping?.mappings?.length||(t.syncData.mappings=[]),console.log("=== productSettings reducer: testFtpConnection fulfilled ==="),console.log("ftp_columns from API:",t.ftpColumns),console.log("preview rows count:",t.preview.length),console.log("existingMapping:",t.existingMapping),t.existingMapping?.mappings&&(console.log("existingMapping.mappings count:",t.existingMapping.mappings.length),console.log("First mapping example:",t.existingMapping.mappings[0])),console.log("entity_type:",t.entity_type),console.log("===========================================================")}).addCase(Mo.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to test FTP connection"}),e.addCase(Do.pending,t=>{t.mappingColumnsLoading=!0,t.mappingColumnsError=null}).addCase(Do.fulfilled,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumns=Array.isArray(n.payload)?n.payload:[],t.mappingColumnsError=null}).addCase(Do.rejected,(t,n)=>{t.mappingColumnsLoading=!1,t.mappingColumnsError=n.payload||"Failed to fetch mapping columns"}),e.addCase(Dr.pending,t=>{t.sharedCataloguesLoading=!0,t.sharedCataloguesError=null}).addCase(Dr.fulfilled,(t,n)=>{t.sharedCataloguesLoading=!1;const r=n.payload;r&&typeof r=="object"&&Array.isArray(r.data)?(t.sharedCatalogues=r.data,t.sharedCataloguesTotal=typeof r.total=="number"?r.total:0,t.sharedCataloguesPage=typeof r.page=="number"?r.page:1,t.sharedCataloguesLimit=typeof r.limit=="number"?r.limit:10):t.sharedCatalogues=[],t.sharedCataloguesError=null}).addCase(Dr.rejected,(t,n)=>{t.sharedCataloguesLoading=!1,t.sharedCataloguesError=n.payload||"Failed to fetch shared catalogues"}),e.addCase(_o.pending,t=>{t.loading=!0,t.error=null}).addCase(_o.fulfilled,(t,n)=>{t.loading=!1,t.saveResult=n.payload,t.error=null,t.syncData=Dl.syncData}).addCase(_o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to save FTP sync configuration"}),e.addCase($r.pending,t=>{t.loading=!0,t.error=null}).addCase($r.fulfilled,(t,n)=>{t.loading=!1,t.updateDetailsResult=n.payload,t.error=null}).addCase($r.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to update FTP sync details"}),e.addCase($o.pending,t=>{t.loading=!0,t.error=null}).addCase($o.fulfilled,(t,n)=>{t.loading=!1,t.syncNowResult=n.payload,t.error=null}).addCase($o.rejected,(t,n)=>{t.loading=!1,t.error=n.payload||"Failed to start sync"}),e.addCase(Fo.pending,t=>{t.updateIntegrationByChannelIdLoading=!0,t.updateIntegrationByChannelIdError=null}).addCase(Fo.fulfilled,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdResult=n.payload,t.updateIntegrationByChannelIdError=null}).addCase(Fo.rejected,(t,n)=>{t.updateIntegrationByChannelIdLoading=!1,t.updateIntegrationByChannelIdError=n.payload||"Failed to update integration by channel ID"})}}),{clearError:hA,clearTestConnectionResult:gA,clearSaveResult:zx,clearAll:mA,clearTestConnectionData:yA,clearUpdateDetailsResult:bA,clearSyncNowResult:vA,setFtpSyncData:ys,clearFtpSyncData:xA,clearMappingColumnsError:SA,clearMappingColumns:wA,clearSharedCataloguesError:CA,clearSharedCatalogues:EA,clearUpdateIntegrationByChannelIdResult:TA}=Hp.actions,Bx=Hp.reducer;var bs={},vs={},qp;function Rx(){if(qp)return vs;qp=1,vs.__esModule=!0,vs.default=i;function e(s){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(l){return typeof l}:e=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(s)}function t(){}var n={getItem:t,setItem:t,removeItem:t};function r(s){if((typeof self>"u"?"undefined":e(self))!=="object"||!(s in self))return!1;try{var a=self[s],l="redux-persist ".concat(s," test");a.setItem(l,"test"),a.getItem(l),a.removeItem(l)}catch{return process.env.NODE_ENV!=="production"&&console.warn("redux-persist ".concat(s," test failed, persistence will be disabled.")),!1}return!0}function i(s){var a="".concat(s,"Storage");return r(a)?self[a]:(process.env.NODE_ENV!=="production"&&console.error("redux-persist failed to create sync storage. falling back to noop storage."),n)}return vs}var Yp;function Wx(){if(Yp)return bs;Yp=1,bs.__esModule=!0,bs.default=n;var e=t(Rx());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){var i=(0,e.default)(r);return{getItem:function(a){return new Promise(function(l,c){l(i.getItem(a))})},setItem:function(a,l){return new Promise(function(c,p){c(i.setItem(a,l))})},removeItem:function(a){return new Promise(function(l,c){l(i.removeItem(a))})}}}return bs}var Vx=Wx();const Ux={key:"auth",storage:typeof window<"u"?nu(Vx)("local"):{getItem(){return Promise.resolve(null)},setItem(e,t){return Promise.resolve(t)},removeItem(){return Promise.resolve()}},whitelist:["auth"]},Hx=pu({dashboard:Lx,productSettings:Bx}),qx=rv(Ux,Hx),Kp=C0({reducer:qx,middleware:e=>e({serializableCheck:!1})}),Yx=cv(Kp),Kx=F.createContext(null),Gx=({children:e,apiUrl:t,authToken:n})=>(F.useEffect(()=>{t&&Dx(t)},[t]),F.useEffect(()=>{Fx(n||null)},[n]),d.jsx(Kx.Provider,{value:{apiUrl:t},children:e})),jo={black:"#000",white:"#fff"},Fr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},jr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Lr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},zr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Br={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Lo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xx={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 cn(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const zo="$$material";function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(null,arguments)}function Jx(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 Qx(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 Zx=(function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Qx(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Jx(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e})(),yt="-ms-",Ss="-moz-",_e="-webkit-",Gp="comm",Fl="rule",jl="decl",eS="@import",Xp="@keyframes",tS="@layer",nS=Math.abs,ws=String.fromCharCode,rS=Object.assign;function oS(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Jp(e){return e.trim()}function iS(e,t){return(e=t.exec(e))?e[0]:e}function $e(e,t,n){return e.replace(t,n)}function Ll(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function Bo(e,t,n){return e.slice(t,n)}function dn(e){return e.length}function zl(e){return e.length}function Cs(e,t){return t.push(e),e}function sS(e,t){return e.map(t).join("")}var Es=1,Rr=1,Qp=0,It=0,lt=0,Wr="";function Ts(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Es,column:Rr,length:a,return:""}}function Ro(e,t){return rS(Ts("",null,null,"",null,null,0),e,{length:-e.length},t)}function aS(){return lt}function lS(){return lt=It>0?ft(Wr,--It):0,Rr--,lt===10&&(Rr=1,Es--),lt}function Dt(){return lt=It<Qp?ft(Wr,It++):0,Rr++,lt===10&&(Rr=1,Es++),lt}function un(){return ft(Wr,It)}function Os(){return It}function Wo(e,t){return Bo(Wr,e,t)}function Vo(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 Zp(e){return Es=Rr=1,Qp=dn(Wr=e),It=0,[]}function ef(e){return Wr="",e}function Ps(e){return Jp(Wo(It-1,Bl(e===91?e+2:e===40?e+1:e)))}function cS(e){for(;(lt=un())&<<33;)Dt();return Vo(e)>2||Vo(lt)>3?"":" "}function dS(e,t){for(;--t&&Dt()&&!(lt<48||lt>102||lt>57&<<65||lt>70&<<97););return Wo(e,Os()+(t<6&&un()==32&&Dt()==32))}function Bl(e){for(;Dt();)switch(lt){case e:return It;case 34:case 39:e!==34&&e!==39&&Bl(lt);break;case 40:e===41&&Bl(e);break;case 92:Dt();break}return It}function uS(e,t){for(;Dt()&&e+lt!==57;)if(e+lt===84&&un()===47)break;return"/*"+Wo(t,It-1)+"*"+ws(e===47?e:Dt())}function pS(e){for(;!Vo(un());)Dt();return Wo(e,It)}function fS(e){return ef(ks("",null,null,null,[""],e=Zp(e),0,[0],e))}function ks(e,t,n,r,i,s,a,l,c){for(var p=0,u=0,h=a,v=0,b=0,g=0,f=1,m=1,y=1,w=0,x="",S=i,C=s,O=r,P=x;m;)switch(g=w,w=Dt()){case 40:if(g!=108&&ft(P,h-1)==58){Ll(P+=$e(Ps(w),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:P+=Ps(w);break;case 9:case 10:case 13:case 32:P+=cS(g);break;case 92:P+=dS(Os()-1,7);continue;case 47:switch(un()){case 42:case 47:Cs(hS(uS(Dt(),Os()),t,n),c);break;default:P+="/"}break;case 123*f:l[p++]=dn(P)*y;case 125*f:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+u:y==-1&&(P=$e(P,/\f/g,"")),b>0&&dn(P)-h&&Cs(b>32?nf(P+";",r,n,h-1):nf($e(P," ","")+";",r,n,h-2),c);break;case 59:P+=";";default:if(Cs(O=tf(P,t,n,p,u,i,l,x,S=[],C=[],h),s),w===123)if(u===0)ks(P,t,O,O,S,s,h,l,C);else switch(v===99&&ft(P,3)===110?100:v){case 100:case 108:case 109:case 115:ks(e,O,O,r&&Cs(tf(e,O,O,0,0,i,l,x,i,S=[],h),C),i,C,h,l,r?S:C);break;default:ks(P,O,O,O,[""],C,0,l,C)}}p=u=b=0,f=y=1,x=P="",h=a;break;case 58:h=1+dn(P),b=g;default:if(f<1){if(w==123)--f;else if(w==125&&f++==0&&lS()==125)continue}switch(P+=ws(w),w*f){case 38:y=u>0?1:(P+="\f",-1);break;case 44:l[p++]=(dn(P)-1)*y,y=1;break;case 64:un()===45&&(P+=Ps(Dt())),v=un(),u=h=dn(x=P+=pS(Os())),w++;break;case 45:g===45&&dn(P)==2&&(f=0)}}return s}function tf(e,t,n,r,i,s,a,l,c,p,u){for(var h=i-1,v=i===0?s:[""],b=zl(v),g=0,f=0,m=0;g<r;++g)for(var y=0,w=Bo(e,h+1,h=nS(f=a[g])),x=e;y<b;++y)(x=Jp(f>0?v[y]+" "+w:$e(w,/&\f/g,v[y])))&&(c[m++]=x);return Ts(e,t,n,i===0?Fl:l,c,p,u)}function hS(e,t,n){return Ts(e,t,n,Gp,ws(aS()),Bo(e,2,-2),0)}function nf(e,t,n,r){return Ts(e,t,n,jl,Bo(e,0,r),Bo(e,r+1,-1),r)}function Vr(e,t){for(var n="",r=zl(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function gS(e,t,n,r){switch(e.type){case tS:if(e.children.length)break;case eS:case jl:return e.return=e.return||e.value;case Gp:return"";case Xp:return e.return=e.value+"{"+Vr(e.children,r)+"}";case Fl:e.value=e.props.join(",")}return dn(n=Vr(e.children,r))?e.return=e.value+"{"+n+"}":""}function mS(e){var t=zl(e);return function(n,r,i,s){for(var a="",l=0;l<t;l++)a+=e[l](n,r,i,s)||"";return a}}function yS(e){return function(t){t.root||(t=t.return)&&e(t)}}function rf(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bS=function(t,n,r){for(var i=0,s=0;i=s,s=un(),i===38&&s===12&&(n[r]=1),!Vo(s);)Dt();return Wo(t,It)},vS=function(t,n){var r=-1,i=44;do switch(Vo(i)){case 0:i===38&&un()===12&&(n[r]=1),t[r]+=bS(It-1,n,r);break;case 2:t[r]+=Ps(i);break;case 4:if(i===44){t[++r]=un()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ws(i)}while(i=Dt());return t},xS=function(t,n){return ef(vS(Zp(t),n))},of=new WeakMap,SS=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!of.get(r))&&!i){of.set(t,!0);for(var s=[],a=xS(n,s),l=r.props,c=0,p=0;c<a.length;c++)for(var u=0;u<l.length;u++,p++)t.props[p]=s[c]?a[c].replace(/&\f/g,l[u]):l[u]+" "+a[c]}}},wS=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function sf(e,t){switch(oS(e,t)){case 5103:return _e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return _e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _e+e+Ss+e+yt+e+e;case 6828:case 4268:return _e+e+yt+e+e;case 6165:return _e+e+yt+"flex-"+e+e;case 5187:return _e+e+$e(e,/(\w+).+(:[^]+)/,_e+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return _e+e+yt+"flex-item-"+$e(e,/flex-|-self/,"")+e;case 4675:return _e+e+yt+"flex-line-pack"+$e(e,/align-content|flex-|-self/,"")+e;case 5548:return _e+e+yt+$e(e,"shrink","negative")+e;case 5292:return _e+e+yt+$e(e,"basis","preferred-size")+e;case 6060:return _e+"box-"+$e(e,"-grow","")+_e+e+yt+$e(e,"grow","positive")+e;case 4554:return _e+$e(e,/([^-])(transform)/g,"$1"+_e+"$2")+e;case 6187:return $e($e($e(e,/(zoom-|grab)/,_e+"$1"),/(image-set)/,_e+"$1"),e,"")+e;case 5495:case 3959:return $e(e,/(image-set\([^]*)/,_e+"$1$`$1");case 4968:return $e($e(e,/(.+:)(flex-)?(.*)/,_e+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_e+e+e;case 4095:case 3583:case 4068:case 2532:return $e(e,/(.+)-inline(.+)/,_e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(dn(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return $e(e,/(.+:)(.+)-([^]+)/,"$1"+_e+"$2-$3$1"+Ss+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ll(e,"stretch")?sf($e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,dn(e)-3-(~Ll(e,"!important")&&10))){case 107:return $e(e,":",":"+_e)+e;case 101:return $e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_e+(ft(e,14)===45?"inline-":"")+"box$3$1"+_e+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return _e+e+yt+$e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _e+e+yt+$e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _e+e+yt+$e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _e+e+yt+e+e}return e}var CS=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case jl:t.return=sf(t.value,t.length);break;case Xp:return Vr([Ro(t,{value:$e(t.value,"@","@"+_e)})],i);case Fl:if(t.length)return sS(t.props,function(s){switch(iS(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vr([Ro(t,{props:[$e(s,/:(read-\w+)/,":"+Ss+"$1")]})],i);case"::placeholder":return Vr([Ro(t,{props:[$e(s,/:(plac\w+)/,":"+_e+"input-$1")]}),Ro(t,{props:[$e(s,/:(plac\w+)/,":"+Ss+"$1")]}),Ro(t,{props:[$e(s,/:(plac\w+)/,yt+"input-$1")]})],i)}return""})}},ES=[CS],TS=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var m=f.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var i=t.stylisPlugins||ES,s={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var m=f.getAttribute("data-emotion").split(" "),y=1;y<m.length;y++)s[m[y]]=!0;l.push(f)});var c,p=[SS,wS];{var u,h=[gS,yS(function(f){u.insert(f)})],v=mS(p.concat(i,h)),b=function(m){return Vr(fS(m),v)};c=function(m,y,w,x){u=w,b(m?m+"{"+y.styles+"}":y.styles),x&&(g.inserted[y.name]=!0)}}var g={key:n,sheet:new Zx({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return g.sheet.hydrate(l),g},Ns={exports:{}},De={};var af;function OS(){if(af)return De;af=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case c:case p:case r:case s:case i:case h:return C;default:switch(C=C&&C.$$typeof,C){case l:case u:case g:case b:case a:return C;default:return O}}case n:return O}}}function S(C){return x(C)===p}return De.AsyncMode=c,De.ConcurrentMode=p,De.ContextConsumer=l,De.ContextProvider=a,De.Element=t,De.ForwardRef=u,De.Fragment=r,De.Lazy=g,De.Memo=b,De.Portal=n,De.Profiler=s,De.StrictMode=i,De.Suspense=h,De.isAsyncMode=function(C){return S(C)||x(C)===c},De.isConcurrentMode=S,De.isContextConsumer=function(C){return x(C)===l},De.isContextProvider=function(C){return x(C)===a},De.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},De.isForwardRef=function(C){return x(C)===u},De.isFragment=function(C){return x(C)===r},De.isLazy=function(C){return x(C)===g},De.isMemo=function(C){return x(C)===b},De.isPortal=function(C){return x(C)===n},De.isProfiler=function(C){return x(C)===s},De.isStrictMode=function(C){return x(C)===i},De.isSuspense=function(C){return x(C)===h},De.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===p||C===s||C===i||C===h||C===v||typeof C=="object"&&C!==null&&(C.$$typeof===g||C.$$typeof===b||C.$$typeof===a||C.$$typeof===l||C.$$typeof===u||C.$$typeof===m||C.$$typeof===y||C.$$typeof===w||C.$$typeof===f)},De.typeOf=x,De}var Fe={};var lf;function PS(){return lf||(lf=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(H){return typeof H=="string"||typeof H=="function"||H===r||H===p||H===s||H===i||H===h||H===v||typeof H=="object"&&H!==null&&(H.$$typeof===g||H.$$typeof===b||H.$$typeof===a||H.$$typeof===l||H.$$typeof===u||H.$$typeof===m||H.$$typeof===y||H.$$typeof===w||H.$$typeof===f)}function S(H){if(typeof H=="object"&&H!==null){var de=H.$$typeof;switch(de){case t:var se=H.type;switch(se){case c:case p:case r:case s:case i:case h:return se;default:var ve=se&&se.$$typeof;switch(ve){case l:case u:case g:case b:case a:return ve;default:return de}}case n:return de}}}var C=c,O=p,P=l,$=a,A=t,j=u,L=r,T=g,k=b,_=n,D=s,N=i,B=h,I=!1;function W(H){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(H)||S(H)===c}function z(H){return S(H)===p}function R(H){return S(H)===l}function Y(H){return S(H)===a}function te(H){return typeof H=="object"&&H!==null&&H.$$typeof===t}function G(H){return S(H)===u}function q(H){return S(H)===r}function J(H){return S(H)===g}function oe(H){return S(H)===b}function re(H){return S(H)===n}function ie(H){return S(H)===s}function ee(H){return S(H)===i}function ce(H){return S(H)===h}Fe.AsyncMode=C,Fe.ConcurrentMode=O,Fe.ContextConsumer=P,Fe.ContextProvider=$,Fe.Element=A,Fe.ForwardRef=j,Fe.Fragment=L,Fe.Lazy=T,Fe.Memo=k,Fe.Portal=_,Fe.Profiler=D,Fe.StrictMode=N,Fe.Suspense=B,Fe.isAsyncMode=W,Fe.isConcurrentMode=z,Fe.isContextConsumer=R,Fe.isContextProvider=Y,Fe.isElement=te,Fe.isForwardRef=G,Fe.isFragment=q,Fe.isLazy=J,Fe.isMemo=oe,Fe.isPortal=re,Fe.isProfiler=ie,Fe.isStrictMode=ee,Fe.isSuspense=ce,Fe.isValidElementType=x,Fe.typeOf=S})()),Fe}var cf;function Rl(){return cf||(cf=1,process.env.NODE_ENV==="production"?Ns.exports=OS():Ns.exports=PS()),Ns.exports}var Wl,df;function kS(){if(df)return Wl;df=1;var e=Rl(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=i;function a(g){return e.isMemo(g)?i:s[g.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function b(g,f,m){if(typeof f!="string"){if(v){var y=h(f);y&&y!==v&&b(g,y,m)}var w=c(f);p&&(w=w.concat(p(f)));for(var x=a(g),S=a(f),C=0;C<w.length;++C){var O=w[C];if(!n[O]&&!(m&&m[O])&&!(S&&S[O])&&!(x&&x[O])){var P=u(f,O);try{l(g,O,P)}catch{}}}}return g}return Wl=b,Wl}kS();var NS=!0;function uf(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Vl=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||NS===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ul=function(t,n,r){Vl(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function IS(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var AS={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},MS=/[A-Z]|^ms/g,_S=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pf=function(t){return t.charCodeAt(1)===45},ff=function(t){return t!=null&&typeof t!="boolean"},Hl=rf(function(e){return pf(e)?e:e.replace(MS,"-$&").toLowerCase()}),hf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(_S,function(r,i,s){return pn={name:i,styles:s,next:pn},i})}return AS[t]!==1&&!pf(t)&&typeof n=="number"&&n!==0?n+"px":n};function Uo(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return pn={name:i.name,styles:i.styles,next:pn},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)pn={name:a.name,styles:a.styles,next:pn},a=a.next;var l=s.styles+";";return l}return $S(e,t,n)}case"function":{if(e!==void 0){var c=pn,p=n(e);return pn=c,Uo(e,t,p)}break}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function $S(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Uo(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=s+"{"+t[l]+"}":ff(l)&&(r+=Hl(s)+":"+hf(s,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var c=0;c<a.length;c++)ff(a[c])&&(r+=Hl(s)+":"+hf(s,a[c])+";");else{var p=Uo(e,t,a);switch(s){case"animation":case"animationName":{r+=Hl(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var gf=/label:\s*([^\s;{]+)\s*(;|$)/g,pn;function Ho(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";pn=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Uo(n,t,s);else{var a=s;i+=a[0]}for(var l=1;l<e.length;l++)if(i+=Uo(n,t,e[l]),r){var c=s;i+=c[l]}gf.lastIndex=0;for(var p="",u;(u=gf.exec(i))!==null;)p+="-"+u[1];var h=IS(i)+p;return{name:h,styles:i,next:pn}}var DS=function(t){return t()},mf=E.useInsertionEffect?E.useInsertionEffect:!1,yf=mf||DS,bf=mf||E.useLayoutEffect,vf=E.createContext(typeof HTMLElement<"u"?TS({key:"css"}):null);vf.Provider;var ql=function(t){return F.forwardRef(function(n,r){var i=F.useContext(vf);return t(n,i,r)})},Is=E.createContext({}),Yl={}.hasOwnProperty,Kl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",FS=function(t,n){var r={};for(var i in n)Yl.call(n,i)&&(r[i]=n[i]);return r[Kl]=t,r},jS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Vl(n,r,i),yf(function(){return Ul(n,r,i)}),null},LS=ql(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Kl],s=[r],a="";typeof e.className=="string"?a=uf(t.registered,s,e.className):e.className!=null&&(a=e.className+" ");var l=Ho(s,void 0,E.useContext(Is));a+=t.key+"-"+l.name;var c={};for(var p in e)Yl.call(e,p)&&p!=="css"&&p!==Kl&&(c[p]=e[p]);return c.className=a,n&&(c.ref=n),E.createElement(E.Fragment,null,E.createElement(jS,{cache:t,serialized:l,isStringTag:typeof i=="string"}),E.createElement(i,c))}),zS=LS,xf=function(t,n){var r=arguments;if(n==null||!Yl.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=zS,s[1]=FS(t,n);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(xf||(xf={}));var BS=ql(function(e,t){var n=e.styles,r=Ho([n],void 0,E.useContext(Is)),i=E.useRef();return bf(function(){var s=t.key+"-global",a=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,c=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),c!==null&&(l=!0,c.setAttribute("data-emotion",s),a.hydrate([c])),i.current=[a,l],function(){a.flush()}},[t]),bf(function(){var s=i.current,a=s[0],l=s[1];if(l){s[1]=!1;return}if(r.next!==void 0&&Ul(t,r.next,!0),a.tags.length){var c=a.tags[a.tags.length-1].nextElementSibling;a.before=c,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function Ur(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ho(t)}function qn(){var e=Ur.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 RS=/^((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)-.*))$/,WS=rf(function(e){return RS.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),VS=WS,US=function(t){return t!=="theme"},Sf=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?VS:US},wf=function(t,n,r){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(a){return t.__emotion_forwardProp(a)&&s(a)}:s}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},HS=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Vl(n,r,i),yf(function(){return Ul(n,r,i)}),null},qS=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,s,a;n!==void 0&&(s=n.label,a=n.target);var l=wf(t,n,r),c=l||Sf(i),p=!c("as");return function(){var u=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&h.push("label:"+s+";"),u[0]==null||u[0].raw===void 0)h.push.apply(h,u);else{var v=u[0];h.push(v[0]);for(var b=u.length,g=1;g<b;g++)h.push(u[g],v[g])}var f=ql(function(m,y,w){var x=p&&m.as||i,S="",C=[],O=m;if(m.theme==null){O={};for(var P in m)O[P]=m[P];O.theme=E.useContext(Is)}typeof m.className=="string"?S=uf(y.registered,C,m.className):m.className!=null&&(S=m.className+" ");var $=Ho(h.concat(C),y.registered,O);S+=y.key+"-"+$.name,a!==void 0&&(S+=" "+a);var A=p&&l===void 0?Sf(x):c,j={};for(var L in m)p&&L==="as"||A(L)&&(j[L]=m[L]);return j.className=S,w&&(j.ref=w),E.createElement(E.Fragment,null,E.createElement(HS,{cache:y,serialized:$,isStringTag:typeof x=="string"}),E.createElement(x,j))});return f.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=h,f.__emotion_forwardProp=l,Object.defineProperty(f,"toString",{value:function(){return"."+a}}),f.withComponent=function(m,y){var w=e(m,xs({},n,y,{shouldForwardProp:wf(f,y,!0)}));return w.apply(void 0,h)},f}},YS=["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"],Gl=qS.bind(null);YS.forEach(function(e){Gl[e]=Gl(e)});var As={exports:{}};var Xl,Cf;function KS(){if(Cf)return Xl;Cf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(u){p[u]=u}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Xl=i()?Object.assign:function(s,a){for(var l,c=r(s),p,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var h in l)t.call(l,h)&&(c[h]=l[h]);if(e){p=e(l);for(var v=0;v<p.length;v++)n.call(l,p[v])&&(c[p[v]]=l[p[v]])}}return c},Xl}var Jl,Ef;function Ql(){if(Ef)return Jl;Ef=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Jl=e,Jl}var Zl,Tf;function Of(){return Tf||(Tf=1,Zl=Function.call.bind(Object.prototype.hasOwnProperty)),Zl}var ec,Pf;function GS(){if(Pf)return ec;Pf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ql(),n={},r=Of();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,l,c,p){if(process.env.NODE_ENV!=="production"){for(var u in s)if(r(s,u)){var h;try{if(typeof s[u]!="function"){var v=Error((c||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}h=s[u](a,u,c,l,null,t)}catch(g){h=g}if(h&&!(h instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var b=p?p():"";e("Failed "+l+" type: "+h.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ec=i,ec}var tc,kf;function XS(){if(kf)return tc;kf=1;var e=Rl(),t=KS(),n=Ql(),r=Of(),i=GS(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return tc=function(l,c){var p=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function h(z){var R=z&&(p&&z[p]||z[u]);if(typeof R=="function")return R}var v="<<anonymous>>",b={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:w(),arrayOf:x,element:S(),elementType:C(),instanceOf:O,node:j(),objectOf:$,oneOf:P,oneOfType:A,shape:T,exact:k};function g(z,R){return z===R?z!==0||1/z===1/R:z!==z&&R!==R}function f(z,R){this.message=z,this.data=R&&typeof R=="object"?R:{},this.stack=""}f.prototype=Error.prototype;function m(z){if(process.env.NODE_ENV!=="production")var R={},Y=0;function te(q,J,oe,re,ie,ee,ce){if(re=re||v,ee=ee||oe,ce!==n){if(c){var H=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=re+":"+oe;!R[de]&&Y<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ee+"` prop on `"+re+"`. 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."),R[de]=!0,Y++)}}return J[oe]==null?q?J[oe]===null?new f("The "+ie+" `"+ee+"` is marked as required "+("in `"+re+"`, but its value is `null`.")):new f("The "+ie+" `"+ee+"` is marked as required in "+("`"+re+"`, but its value is `undefined`.")):null:z(J,oe,re,ie,ee)}var G=te.bind(null,!1);return G.isRequired=te.bind(null,!0),G}function y(z){function R(Y,te,G,q,J,oe){var re=Y[te],ie=N(re);if(ie!==z){var ee=B(re);return new f("Invalid "+q+" `"+J+"` of type "+("`"+ee+"` supplied to `"+G+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return m(R)}function w(){return m(a)}function x(z){function R(Y,te,G,q,J){if(typeof z!="function")return new f("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var oe=Y[te];if(!Array.isArray(oe)){var re=N(oe);return new f("Invalid "+q+" `"+J+"` of type "+("`"+re+"` supplied to `"+G+"`, expected an array."))}for(var ie=0;ie<oe.length;ie++){var ee=z(oe,ie,G,q,J+"["+ie+"]",n);if(ee instanceof Error)return ee}return null}return m(R)}function S(){function z(R,Y,te,G,q){var J=R[Y];if(!l(J)){var oe=N(J);return new f("Invalid "+G+" `"+q+"` of type "+("`"+oe+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return m(z)}function C(){function z(R,Y,te,G,q){var J=R[Y];if(!e.isValidElementType(J)){var oe=N(J);return new f("Invalid "+G+" `"+q+"` of type "+("`"+oe+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return m(z)}function O(z){function R(Y,te,G,q,J){if(!(Y[te]instanceof z)){var oe=z.name||v,re=W(Y[te]);return new f("Invalid "+q+" `"+J+"` of type "+("`"+re+"` supplied to `"+G+"`, expected ")+("instance of `"+oe+"`."))}return null}return m(R)}function P(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function R(Y,te,G,q,J){for(var oe=Y[te],re=0;re<z.length;re++)if(g(oe,z[re]))return null;var ie=JSON.stringify(z,function(ce,H){var de=B(H);return de==="symbol"?String(H):H});return new f("Invalid "+q+" `"+J+"` of value `"+String(oe)+"` "+("supplied to `"+G+"`, expected one of "+ie+"."))}return m(R)}function $(z){function R(Y,te,G,q,J){if(typeof z!="function")return new f("Property `"+J+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var oe=Y[te],re=N(oe);if(re!=="object")return new f("Invalid "+q+" `"+J+"` of type "+("`"+re+"` supplied to `"+G+"`, expected an object."));for(var ie in oe)if(r(oe,ie)){var ee=z(oe,ie,G,q,J+"."+ie,n);if(ee instanceof Error)return ee}return null}return m(R)}function A(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<z.length;R++){var Y=z[R];if(typeof Y!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+I(Y)+" at index "+R+"."),a}function te(G,q,J,oe,re){for(var ie=[],ee=0;ee<z.length;ee++){var ce=z[ee],H=ce(G,q,J,oe,re,n);if(H==null)return null;H.data&&r(H.data,"expectedType")&&ie.push(H.data.expectedType)}var de=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new f("Invalid "+oe+" `"+re+"` supplied to "+("`"+J+"`"+de+"."))}return m(te)}function j(){function z(R,Y,te,G,q){return _(R[Y])?null:new f("Invalid "+G+" `"+q+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return m(z)}function L(z,R,Y,te,G){return new f((z||"React class")+": "+R+" type `"+Y+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function T(z){function R(Y,te,G,q,J){var oe=Y[te],re=N(oe);if(re!=="object")return new f("Invalid "+q+" `"+J+"` of type `"+re+"` "+("supplied to `"+G+"`, expected `object`."));for(var ie in z){var ee=z[ie];if(typeof ee!="function")return L(G,q,J,ie,B(ee));var ce=ee(oe,ie,G,q,J+"."+ie,n);if(ce)return ce}return null}return m(R)}function k(z){function R(Y,te,G,q,J){var oe=Y[te],re=N(oe);if(re!=="object")return new f("Invalid "+q+" `"+J+"` of type `"+re+"` "+("supplied to `"+G+"`, expected `object`."));var ie=t({},Y[te],z);for(var ee in ie){var ce=z[ee];if(r(z,ee)&&typeof ce!="function")return L(G,q,J,ee,B(ce));if(!ce)return new f("Invalid "+q+" `"+J+"` key `"+ee+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(Y[te],null," ")+`
|
|
25
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var H=ce(oe,ee,G,q,J+"."+ee,n);if(H)return H}return null}return m(R)}function _(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(_);if(z===null||l(z))return!0;var R=h(z);if(R){var Y=R.call(z),te;if(R!==z.entries){for(;!(te=Y.next()).done;)if(!_(te.value))return!1}else for(;!(te=Y.next()).done;){var G=te.value;if(G&&!_(G[1]))return!1}}else return!1;return!0;default:return!1}}function D(z,R){return z==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function N(z){var R=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":D(R,z)?"symbol":R}function B(z){if(typeof z>"u"||z===null)return""+z;var R=N(z);if(R==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return R}function I(z){var R=B(z);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function W(z){return!z.constructor||!z.constructor.name?v:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},tc}var nc,Nf;function JS(){if(Nf)return nc;Nf=1;var e=Ql();function t(){}function n(){}return n.resetWarningCache=t,nc=function(){function r(a,l,c,p,u,h){if(h!==e){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}}r.isRequired=r;function i(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},nc}var If;function QS(){if(If)return As.exports;if(If=1,process.env.NODE_ENV!=="production"){var e=Rl(),t=!0;As.exports=XS()(e.isElement,t)}else As.exports=JS()();return As.exports}var ZS=QS();const o=nu(ZS);function e1(e){return e==null||Object.keys(e).length===0}function Af(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(e1(i)?n:i):t;return d.jsx(BS,{styles:r})}process.env.NODE_ENV!=="production"&&(Af.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.string,o.object,o.func])});function Mf(e,t){const n=Gl(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
26
|
+
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}function t1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const _f=[];function Yn(e){return _f[0]=e,Ho(_f)}var Ms={exports:{}},We={};var $f;function n1(){if($f)return We;$f=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case c:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return We.ContextConsumer=s,We.ContextProvider=a,We.Element=e,We.ForwardRef=l,We.Fragment=n,We.Lazy=h,We.Memo=u,We.Portal=t,We.Profiler=i,We.StrictMode=r,We.Suspense=c,We.SuspenseList=p,We.isContextConsumer=function(f){return g(f)===s},We.isContextProvider=function(f){return g(f)===a},We.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},We.isForwardRef=function(f){return g(f)===l},We.isFragment=function(f){return g(f)===n},We.isLazy=function(f){return g(f)===h},We.isMemo=function(f){return g(f)===u},We.isPortal=function(f){return g(f)===t},We.isProfiler=function(f){return g(f)===i},We.isStrictMode=function(f){return g(f)===r},We.isSuspense=function(f){return g(f)===c},We.isSuspenseList=function(f){return g(f)===p},We.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},We.typeOf=g,We}var Ve={};var Df;function r1(){return Df||(Df=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case v:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Ve.ContextConsumer=a,Ve.ContextProvider=l,Ve.Element=t,Ve.ForwardRef=c,Ve.Fragment=r,Ve.Lazy=v,Ve.Memo=h,Ve.Portal=n,Ve.Profiler=s,Ve.StrictMode=i,Ve.Suspense=p,Ve.SuspenseList=u,Ve.isContextConsumer=function(f){return e(f)===a},Ve.isContextProvider=function(f){return e(f)===l},Ve.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ve.isForwardRef=function(f){return e(f)===c},Ve.isFragment=function(f){return e(f)===r},Ve.isLazy=function(f){return e(f)===v},Ve.isMemo=function(f){return e(f)===h},Ve.isPortal=function(f){return e(f)===n},Ve.isProfiler=function(f){return e(f)===s},Ve.isStrictMode=function(f){return e(f)===i},Ve.isSuspense=function(f){return e(f)===p},Ve.isSuspenseList=function(f){return e(f)===u},Ve.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},Ve.typeOf=e})()),Ve}var Ff;function o1(){return Ff||(Ff=1,process.env.NODE_ENV==="production"?Ms.exports=n1():Ms.exports=r1()),Ms.exports}var _s=o1();function fn(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 jf(e){if(E.isValidElement(e)||_s.isValidElementType(e)||!fn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=jf(e[n])}),t}function bt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return fn(e)&&fn(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||_s.isValidElementType(t[i])?r[i]=t[i]:fn(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fn(e[i])?r[i]=bt(e[i],t[i],n):n.clone?r[i]=fn(t[i])?jf(t[i]):t[i]:r[i]=t[i]}),r}const i1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function s1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,s=i1(t),a=Object.keys(s);function l(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function c(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function p(v,b){const g=a.indexOf(b);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:b)-r/100}${n})`}function u(v){return a.indexOf(v)+1<a.length?p(v,a[a.indexOf(v)+1]):l(v)}function h(v){const b=a.indexOf(v);return b===0?l(a[1]):b===a.length-1?c(a[b]):p(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:a,values:s,up:l,down:c,between:p,only:u,not:h,unit:n,...i}}function Lf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{const s=/min-width:\s*([0-9.]+)/;return+(r.match(s)?.[1]||0)-+(i.match(s)?.[1]||0)});return n.length?n.reduce((r,i)=>{const s=t[i];return delete r[i],r[i]=s,r},{...t}):t}function a1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function l1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
27
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:cn(18,`(${t})`));return null}const[,r,i]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(s)}function c1(e){const t=(s,a)=>s.replace("@media",a?`@container ${a}`:"@container");function n(s,a){s.up=(...l)=>t(e.breakpoints.up(...l),a),s.down=(...l)=>t(e.breakpoints.down(...l),a),s.between=(...l)=>t(e.breakpoints.between(...l),a),s.only=(...l)=>t(e.breakpoints.only(...l),a),s.not=(...l)=>{const c=t(e.breakpoints.not(...l),a);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}const r={},i=s=>(n(r,s),r);return n(i),{...e,containerQueries:i}}const d1={borderRadius:4},Kn=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.string,o.object,o.array]):{};function qo(e,t){return t?bt(e,t,{clone:!1}):e}const $s={xs:0,sm:600,md:900,lg:1200,xl:1536},zf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$s[e]}px)`},u1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:$s[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function _n(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||zf;return t.reduce((a,l,c)=>(a[s.up(s.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const s=r.breakpoints||zf;return Object.keys(t).reduce((a,l)=>{if(a1(s.keys,l)){const c=l1(r.containerQueries?r:u1,l);c&&(a[c]=n(t[l],l))}else if(Object.keys(s.values||$s).includes(l)){const c=s.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function p1(e={}){return e.keys?.reduce((n,r)=>{const i=e.up(r);return n[i]={},n},{})||{}}function Bf(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Q(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ds(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,s)=>i&&i[s]?i[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Fs(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ds(e,n)||r,t&&(i=t(i,r,e)),i}function st(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,s=a=>{if(a[t]==null)return null;const l=a[t],c=a.theme,p=Ds(c,r)||{};return _n(a,l,h=>{let v=Fs(p,i,h);return h===v&&typeof h=="string"&&(v=Fs(p,i,`${t}${h==="default"?"":Q(h)}`,h)),n===!1?v:{[n]:v}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Kn}:{},s.filterProps=[t],s}function f1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const h1={m:"margin",p:"padding"},g1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},m1=f1(e=>{if(e.length>2)if(Rf[e])e=Rf[e];else return[e];const[t,n]=e.split(""),r=h1[t],i=g1[n]||"";return Array.isArray(i)?i.map(s=>r+s):[r+i]}),js=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ls=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],y1=[...js,...Ls];function Yo(e,t,n,r){const i=Ds(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${s}.`),typeof i=="string"?i.startsWith("var(")&&s===0?0:i.startsWith("var(")&&s===1?i:`calc(${s} * ${i})`:i*s):Array.isArray(i)?s=>{if(typeof s=="string")return s;const a=Math.abs(s);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
|
|
28
28
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
29
|
-
`)));const l=
|
|
30
|
-
`)),()=>{})}function Bl(e){return Ao(e,"spacing",8,"spacing")}function _o(e,t){return typeof t=="string"||t==null?t:e(t)}function J1(e,t){return n=>e.reduce((r,o)=>(r[o]=_o(t,n),r),{})}function X1(e,t,n,r){if(!t.includes(n))return null;const o=K1(n),s=J1(o,r),a=e[n];return wn(e,a,s)}function Tf(e,t){const n=Bl(e.theme);return Object.keys(e).map(r=>X1(e,t,r,n)).reduce(Io,{})}function Ye(e){return Tf(e,xs)}Ye.propTypes=process.env.NODE_ENV!=="production"?xs.reduce((e,t)=>(e[t]=Ln,e),{}):{},Ye.filterProps=xs;function Ke(e){return Tf(e,Ss)}Ke.propTypes=process.env.NODE_ENV!=="production"?Ss.reduce((e,t)=>(e[t]=Ln,e),{}):{},Ke.filterProps=Ss,process.env.NODE_ENV!=="production"&&G1.reduce((e,t)=>(e[t]=Ln,e),{});function Of(e=8,t=Bl({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function ws(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?Io(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Mt(e){return typeof e!="number"?e:`${e}px solid`}function $t(e,t){return Je({prop:e,themeKey:"borders",transform:t})}const Q1=$t("border",Mt),Z1=$t("borderTop",Mt),eS=$t("borderRight",Mt),tS=$t("borderBottom",Mt),nS=$t("borderLeft",Mt),rS=$t("borderColor"),oS=$t("borderTopColor"),iS=$t("borderRightColor"),sS=$t("borderBottomColor"),aS=$t("borderLeftColor"),lS=$t("outline",Mt),cS=$t("outlineColor"),Cs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ao(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:_o(t,r)});return wn(e,e.borderRadius,n)}return null};Cs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ln}:{},Cs.filterProps=["borderRadius"],ws(Q1,Z1,eS,tS,nS,rS,oS,iS,sS,aS,Cs,lS,cS);const Es=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ao(e.theme,"spacing",8,"gap"),n=r=>({gap:_o(t,r)});return wn(e,e.gap,n)}return null};Es.propTypes=process.env.NODE_ENV!=="production"?{gap:Ln}:{},Es.filterProps=["gap"];const Ts=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ao(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:_o(t,r)});return wn(e,e.columnGap,n)}return null};Ts.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ln}:{},Ts.filterProps=["columnGap"];const Os=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ao(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:_o(t,r)});return wn(e,e.rowGap,n)}return null};Os.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ln}:{},Os.filterProps=["rowGap"];const dS=Je({prop:"gridColumn"}),uS=Je({prop:"gridRow"}),pS=Je({prop:"gridAutoFlow"}),fS=Je({prop:"gridAutoColumns"}),hS=Je({prop:"gridAutoRows"}),gS=Je({prop:"gridTemplateColumns"}),mS=Je({prop:"gridTemplateRows"}),yS=Je({prop:"gridTemplateAreas"}),bS=Je({prop:"gridArea"});ws(Es,Ts,Os,dS,uS,pS,fS,hS,gS,mS,yS,bS);function $r(e,t){return t==="grey"?t:e}const vS=Je({prop:"color",themeKey:"palette",transform:$r}),xS=Je({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$r}),SS=Je({prop:"backgroundColor",themeKey:"palette",transform:$r});ws(vS,xS,SS);function Nt(e){return e<=1&&e!==0?`${e*100}%`:e}const wS=Je({prop:"width",transform:Nt}),Rl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||ys[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Nt(n)}};return wn(e,e.maxWidth,t)}return null};Rl.filterProps=["maxWidth"];const CS=Je({prop:"minWidth",transform:Nt}),ES=Je({prop:"height",transform:Nt}),TS=Je({prop:"maxHeight",transform:Nt}),OS=Je({prop:"minHeight",transform:Nt});Je({prop:"size",cssProperty:"width",transform:Nt}),Je({prop:"size",cssProperty:"height",transform:Nt});const PS=Je({prop:"boxSizing"});ws(wS,Rl,CS,ES,TS,OS,PS);const Mo={border:{themeKey:"borders",transform:Mt},borderTop:{themeKey:"borders",transform:Mt},borderRight:{themeKey:"borders",transform:Mt},borderBottom:{themeKey:"borders",transform:Mt},borderLeft:{themeKey:"borders",transform:Mt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Mt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cs},color:{themeKey:"palette",transform:$r},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$r},backgroundColor:{themeKey:"palette",transform:$r},p:{style:Ke},pt:{style:Ke},pr:{style:Ke},pb:{style:Ke},pl:{style:Ke},px:{style:Ke},py:{style:Ke},padding:{style:Ke},paddingTop:{style:Ke},paddingRight:{style:Ke},paddingBottom:{style:Ke},paddingLeft:{style:Ke},paddingX:{style:Ke},paddingY:{style:Ke},paddingInline:{style:Ke},paddingInlineStart:{style:Ke},paddingInlineEnd:{style:Ke},paddingBlock:{style:Ke},paddingBlockStart:{style:Ke},paddingBlockEnd:{style:Ke},m:{style:Ye},mt:{style:Ye},mr:{style:Ye},mb:{style:Ye},ml:{style:Ye},mx:{style:Ye},my:{style:Ye},margin:{style:Ye},marginTop:{style:Ye},marginRight:{style:Ye},marginBottom:{style:Ye},marginLeft:{style:Ye},marginX:{style:Ye},marginY:{style:Ye},marginInline:{style:Ye},marginInlineStart:{style:Ye},marginInlineEnd:{style:Ye},marginBlock:{style:Ye},marginBlockStart:{style:Ye},marginBlockEnd:{style:Ye},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:Es},rowGap:{style:Os},columnGap:{style:Ts},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Nt},maxWidth:{style:Rl},minWidth:{transform:Nt},height:{transform:Nt},maxHeight:{transform:Nt},minHeight:{transform:Nt},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 kS(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function NS(e,t){return typeof e=="function"?e(t):e}function IS(){function e(n,r,o,s){const a={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:f,transform:u,style:h}=l;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const b=bs(o,f)||{};return h?h(a):wn(a,r,g=>{let p=vs(b,u,g);return g===p&&typeof g=="string"&&(p=vs(b,u,`${n}${g==="default"?"":X(g)}`,g)),c===!1?p:{[c]:p}})}function t(n){const{sx:r,theme:o={},nested:s}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Mo;function l(c){let f=c;if(typeof c=="function")f=c(o);else if(typeof c!="object")return c;if(!f)return null;const u=U1(o.breakpoints),h=Object.keys(u);let b=u;return Object.keys(f).forEach(m=>{const g=NS(f[m],o);if(g!=null)if(typeof g=="object")if(a[m])b=Io(b,e(m,g,o,a));else{const p=wn({theme:o},g,y=>({[m]:y}));kS(p,g)?b[m]=t({sx:g,theme:o,nested:!0}):b=Io(b,p)}else b=Io(b,e(m,g,o,a))}),!s&&o.modularCssLayers?{"@layer sx":Sf(o,Cf(h,b))}:Sf(o,Cf(h,b))}return Array.isArray(r)?r.map(l):l(r)}return t}const Zn=IS();Zn.filterProps=["sx"];function AS(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Wl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={},...a}=e,l=z1(n),c=Of(o);let f=ut({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...W1,...s}},a);return f=R1(f),f.applyStyles=AS,f=t.reduce((u,h)=>ut(u,h),f),f.unstable_sxConfig={...Mo,...a?.unstable_sxConfig},f.unstable_sx=function(h){return Zn({sx:h,theme:this})},f}function _S(e){return Object.keys(e).length===0}function Pf(e=null){const t=E.useContext(fs);return!t||_S(t)?e:t}const MS=Wl();function Vl(e=MS){return Pf(e)}function Ul(e){const t=zn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function kf({styles:e,themeId:t,defaultTheme:n={}}){const r=Vl(n),o=t&&r[t]||r;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>Ul(typeof a=="function"?a(o):a)):s=Ul(s)),d.jsx(hf,{styles:s})}process.env.NODE_ENV!=="production"&&(kf.propTypes={defaultTheme:i.object,styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool]),themeId:i.string});const $S=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Mo;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function Nf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=$S(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return on(l)?{...r,...l}:r}:s={...r,...t},{...o,sx:s}}const If=e=>e,Af=(()=>{let e=If;return{configure(t){e=t},generate(t){return e(t)},reset(){e=If}}})();function _f(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_f(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ie(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_f(e))&&(r&&(r+=" "),r+=t);return r}function DS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,s=gf("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Zn);return E.forwardRef(function(c,f){const u=Vl(n),{className:h,component:b="div",...m}=Nf(c);return d.jsx(s,{as:b,ref:f,className:ie(h,o?o(r):r),theme:t&&u[t]||u,...m})})}const FS={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 ue(e,t,n="Mui"){const r=FS[t];return r?`${n}-${r}`:`${Af.generate(e)}-${t}`}function ce(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ue(e,o,n)}),r}function Mf(e,t=""){return e.displayName||e.name||t}function $f(e,t,n){const r=Mf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function jS(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Mf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ms.ForwardRef:return $f(e,e.render,"ForwardRef");case ms.Memo:return $f(e,e.type,"memo");default:return}}}function Df(e){const{variants:t,...n}=e,r={variants:t,style:zn(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=zn(o.style))}),r}const zS=Wl();function Hl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function er(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function LS(e){return e?(t,n)=>n[e]:null}function BS(e,t,n){e.theme=US(e.theme)?n:e.theme[t]||e.theme}function Ps(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>Ps(e,o,n));if(Array.isArray(r?.variants)){let o;if(r.isProcessed)o=n?er(r.style,n):r.style;else{const{variants:s,...a}=r;o=n?er(zn(a),n):a}return Ff(e,r.variants,[o],n)}return r?.isProcessed?n?er(zn(r.style),n):r.style:n?er(zn(r),n):r}function Ff(e,t,n=[],r=void 0){let o;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(o??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(o))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(o??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?er(zn(a.style(o)),r):a.style(o))):n.push(r?er(zn(a.style),r):a.style)}return n}function RS(e={}){const{themeId:t,defaultTheme:n=zS,rootShouldForwardProp:r=Hl,slotShouldForwardProp:o=Hl}=e;function s(l){BS(l,t,n)}return(l,c={})=>{M1(l,O=>O.filter(P=>P!==Zn));const{name:f,slot:u,skipVariantsResolver:h,skipSx:b,overridesResolver:m=LS(jf(u)),...g}=c,p=f&&f.startsWith("Mui")||u?"components":"custom",y=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,x=b||!1;let w=Hl;u==="Root"||u==="root"?w=r:u?w=o:HS(l)&&(w=void 0);const S=gf(l,{shouldForwardProp:w,label:VS(f,u),...g}),v=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function($){return Ps($,O,$.theme.modularCssLayers?p:void 0)};if(on(O)){const P=Df(O);return function(A){return P.variants?Ps(A,P,A.theme.modularCssLayers?p:void 0):A.theme.modularCssLayers?er(P.style,p):P.style}}return O},C=(...O)=>{const P=[],$=O.map(v),A=[];if(P.push(s),f&&m&&A.push(function(N){const D=N.theme.components?.[f]?.styleOverrides;if(!D)return null;const k={};for(const z in D)k[z]=Ps(N,D[z],N.theme.modularCssLayers?"theme":void 0);return m(N,k)}),f&&!y&&A.push(function(N){const D=N.theme?.components?.[f]?.variants;return D?Ff(N,D,[],N.theme.modularCssLayers?"theme":void 0):null}),x||A.push(Zn),Array.isArray($[0])){const T=$.shift(),N=new Array(P.length).fill(""),_=new Array(A.length).fill("");let D;D=[...N,...T,..._],D.raw=[...N,...T.raw,..._],P.unshift(D)}const B=[...P,...$,...A],L=S(...B);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=WS(f,u,l)),L};return S.withConfig&&(C.withConfig=S.withConfig),C}}function WS(e,t,n){return e?`${e}${X(t||"")}`:`Styled(${jS(n)})`}function VS(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${jf(t||"Root")}`),n}function US(e){for(const t in e)return!1;return!0}function HS(e){return typeof e=="string"&&e.charCodeAt(0)>96}function jf(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function $o(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const f=c;r[s][f]=$o(a[f],l[f],n)}}}else s==="className"&&n&&t.className?r.className=ie(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function qS(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:$o(t.components[n].defaultProps,r)}const qt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function YS(e,t,n,r,o){const[s,a]=E.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return qt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),s}const zf={...E}.useSyncExternalStore;function KS(e,t,n,r,o){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,o,n]),[l,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return zf(c,l,a)}function Lf(e={}){const{themeId:t}=e;return function(r,o={}){let s=Pf();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:f=null,noSsr:u=!1}=qS({name:"MuiUseMediaQuery",props:o,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
29
|
+
`)));const l=i[a];return s>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
30
|
+
`)),()=>{})}function rc(e){return Yo(e,"spacing",8,"spacing")}function Ko(e,t){return typeof t=="string"||t==null?t:e(t)}function b1(e,t){return n=>e.reduce((r,i)=>(r[i]=Ko(t,n),r),{})}function v1(e,t,n,r){if(!t.includes(n))return null;const i=m1(n),s=b1(i,r),a=e[n];return _n(e,a,s)}function Wf(e,t){const n=rc(e.theme);return Object.keys(e).map(r=>v1(e,t,r,n)).reduce(qo,{})}function nt(e){return Wf(e,js)}nt.propTypes=process.env.NODE_ENV!=="production"?js.reduce((e,t)=>(e[t]=Kn,e),{}):{},nt.filterProps=js;function rt(e){return Wf(e,Ls)}rt.propTypes=process.env.NODE_ENV!=="production"?Ls.reduce((e,t)=>(e[t]=Kn,e),{}):{},rt.filterProps=Ls,process.env.NODE_ENV!=="production"&&y1.reduce((e,t)=>(e[t]=Kn,e),{});function Vf(e=8,t=rc({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const a=t(s);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function zs(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(s=>{r[s]=i}),r),{}),n=r=>Object.keys(r).reduce((i,s)=>t[s]?qo(i,t[s](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Bt(e){return typeof e!="number"?e:`${e}px solid`}function Rt(e,t){return st({prop:e,themeKey:"borders",transform:t})}const x1=Rt("border",Bt),S1=Rt("borderTop",Bt),w1=Rt("borderRight",Bt),C1=Rt("borderBottom",Bt),E1=Rt("borderLeft",Bt),T1=Rt("borderColor"),O1=Rt("borderTopColor"),P1=Rt("borderRightColor"),k1=Rt("borderBottomColor"),N1=Rt("borderLeftColor"),I1=Rt("outline",Bt),A1=Rt("outlineColor"),Bs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yo(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ko(t,r)});return _n(e,e.borderRadius,n)}return null};Bs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Kn}:{},Bs.filterProps=["borderRadius"],zs(x1,S1,w1,C1,E1,T1,O1,P1,k1,N1,Bs,I1,A1);const Rs=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yo(e.theme,"spacing",8,"gap"),n=r=>({gap:Ko(t,r)});return _n(e,e.gap,n)}return null};Rs.propTypes=process.env.NODE_ENV!=="production"?{gap:Kn}:{},Rs.filterProps=["gap"];const Ws=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yo(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ko(t,r)});return _n(e,e.columnGap,n)}return null};Ws.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Kn}:{},Ws.filterProps=["columnGap"];const Vs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yo(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ko(t,r)});return _n(e,e.rowGap,n)}return null};Vs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Kn}:{},Vs.filterProps=["rowGap"];const M1=st({prop:"gridColumn"}),_1=st({prop:"gridRow"}),$1=st({prop:"gridAutoFlow"}),D1=st({prop:"gridAutoColumns"}),F1=st({prop:"gridAutoRows"}),j1=st({prop:"gridTemplateColumns"}),L1=st({prop:"gridTemplateRows"}),z1=st({prop:"gridTemplateAreas"}),B1=st({prop:"gridArea"});zs(Rs,Ws,Vs,M1,_1,$1,D1,F1,j1,L1,z1,B1);function Hr(e,t){return t==="grey"?t:e}const R1=st({prop:"color",themeKey:"palette",transform:Hr}),W1=st({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hr}),V1=st({prop:"backgroundColor",themeKey:"palette",transform:Hr});zs(R1,W1,V1);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const U1=st({prop:"width",transform:Ft}),oc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||$s[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ft(n)}};return _n(e,e.maxWidth,t)}return null};oc.filterProps=["maxWidth"];const H1=st({prop:"minWidth",transform:Ft}),q1=st({prop:"height",transform:Ft}),Y1=st({prop:"maxHeight",transform:Ft}),K1=st({prop:"minHeight",transform:Ft});st({prop:"size",cssProperty:"width",transform:Ft}),st({prop:"size",cssProperty:"height",transform:Ft});const G1=st({prop:"boxSizing"});zs(U1,oc,H1,q1,Y1,K1,G1);const Go={border:{themeKey:"borders",transform:Bt},borderTop:{themeKey:"borders",transform:Bt},borderRight:{themeKey:"borders",transform:Bt},borderBottom:{themeKey:"borders",transform:Bt},borderLeft:{themeKey:"borders",transform:Bt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bs},color:{themeKey:"palette",transform:Hr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hr},backgroundColor:{themeKey:"palette",transform:Hr},p:{style:rt},pt:{style:rt},pr:{style:rt},pb:{style:rt},pl:{style:rt},px:{style:rt},py:{style:rt},padding:{style:rt},paddingTop:{style:rt},paddingRight:{style:rt},paddingBottom:{style:rt},paddingLeft:{style:rt},paddingX:{style:rt},paddingY:{style:rt},paddingInline:{style:rt},paddingInlineStart:{style:rt},paddingInlineEnd:{style:rt},paddingBlock:{style:rt},paddingBlockStart:{style:rt},paddingBlockEnd:{style:rt},m:{style:nt},mt:{style:nt},mr:{style:nt},mb:{style:nt},ml:{style:nt},mx:{style:nt},my:{style:nt},margin:{style:nt},marginTop:{style:nt},marginRight:{style:nt},marginBottom:{style:nt},marginLeft:{style:nt},marginX:{style:nt},marginY:{style:nt},marginInline:{style:nt},marginInlineStart:{style:nt},marginInlineEnd:{style:nt},marginBlock:{style:nt},marginBlockStart:{style:nt},marginBlockEnd:{style:nt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Rs},rowGap:{style:Vs},columnGap:{style:Ws},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:oc},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},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 X1(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function J1(e,t){return typeof e=="function"?e(t):e}function Q1(){function e(n,r,i,s){const a={[n]:r,theme:i},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:p,transform:u,style:h}=l;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const v=Ds(i,p)||{};return h?h(a):_n(a,r,g=>{let f=Fs(v,u,g);return g===f&&typeof g=="string"&&(f=Fs(v,u,`${n}${g==="default"?"":Q(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){const{sx:r,theme:i={},nested:s}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Go;function l(c){let p=c;if(typeof c=="function")p=c(i);else if(typeof c!="object")return c;if(!p)return null;const u=p1(i.breakpoints),h=Object.keys(u);let v=u;return Object.keys(p).forEach(b=>{const g=J1(p[b],i);if(g!=null)if(typeof g=="object")if(a[b])v=qo(v,e(b,g,i,a));else{const f=_n({theme:i},g,m=>({[b]:m}));X1(f,g)?v[b]=t({sx:g,theme:i,nested:!0}):v=qo(v,f)}else v=qo(v,e(b,g,i,a))}),!s&&i.modularCssLayers?{"@layer sx":Lf(i,Bf(h,v))}:Lf(i,Bf(h,v))}return Array.isArray(r)?r.map(l):l(r)}return t}const lr=Q1();lr.filterProps=["sx"];function Z1(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ic(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:s={},...a}=e,l=s1(n),c=Vf(i);let p=bt({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...d1,...s}},a);return p=c1(p),p.applyStyles=Z1,p=t.reduce((u,h)=>bt(u,h),p),p.unstable_sxConfig={...Go,...a?.unstable_sxConfig},p.unstable_sx=function(h){return lr({sx:h,theme:this})},p}function ew(e){return Object.keys(e).length===0}function Uf(e=null){const t=E.useContext(Is);return!t||ew(t)?e:t}const tw=ic();function sc(e=tw){return Uf(e)}function ac(e){const t=Yn(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Hf({styles:e,themeId:t,defaultTheme:n={}}){const r=sc(n),i=t&&r[t]||r;let s=typeof e=="function"?e(i):e;return i.modularCssLayers&&(Array.isArray(s)?s=s.map(a=>ac(typeof a=="function"?a(i):a)):s=ac(s)),d.jsx(Af,{styles:s})}process.env.NODE_ENV!=="production"&&(Hf.propTypes={defaultTheme:o.object,styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool]),themeId:o.string});const nw=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??Go;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function qf(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=nw(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...a)=>{const l=t(...a);return fn(l)?{...r,...l}:r}:s={...r,...t},{...i,sx:s}}const Yf=e=>e,Kf=(()=>{let e=Yf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Yf}}})();function Gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function le(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Gf(e))&&(r&&(r+=" "),r+=t);return r}function rw(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,s=Mf("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(lr);return E.forwardRef(function(c,p){const u=sc(n),{className:h,component:v="div",...b}=qf(c);return d.jsx(s,{as:v,ref:p,className:le(h,i?i(r):r),theme:t&&u[t]||u,...b})})}const ow={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 ge(e,t,n="Mui"){const r=ow[t];return r?`${n}-${r}`:`${Kf.generate(e)}-${t}`}function he(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ge(e,i,n)}),r}function Xf(e,t=""){return e.displayName||e.name||t}function Jf(e,t,n){const r=Xf(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function iw(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Xf(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _s.ForwardRef:return Jf(e,e.render,"ForwardRef");case _s.Memo:return Jf(e,e.type,"memo");default:return}}}function Qf(e){const{variants:t,...n}=e,r={variants:t,style:Yn(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Yn(i.style))}),r}const sw=ic();function lc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function cr(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function aw(e){return e?(t,n)=>n[e]:null}function lw(e,t,n){e.theme=pw(e.theme)?n:e.theme[t]||e.theme}function Us(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(i=>Us(e,i,n));if(Array.isArray(r?.variants)){let i;if(r.isProcessed)i=n?cr(r.style,n):r.style;else{const{variants:s,...a}=r;i=n?cr(Yn(a),n):a}return Zf(e,r.variants,[i],n)}return r?.isProcessed?n?cr(Yn(r.style),n):r.style:n?cr(Yn(r),n):r}function Zf(e,t,n=[],r=void 0){let i;e:for(let s=0;s<t.length;s+=1){const a=t[s];if(typeof a.props=="function"){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!a.props(i))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&e.ownerState?.[l]!==a.props[l])continue e;typeof a.style=="function"?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?cr(Yn(a.style(i)),r):a.style(i))):n.push(r?cr(Yn(a.style),r):a.style)}return n}function cw(e={}){const{themeId:t,defaultTheme:n=sw,rootShouldForwardProp:r=lc,slotShouldForwardProp:i=lc}=e;function s(l){lw(l,t,n)}return(l,c={})=>{t1(l,O=>O.filter(P=>P!==lr));const{name:p,slot:u,skipVariantsResolver:h,skipSx:v,overridesResolver:b=aw(eh(u)),...g}=c,f=p&&p.startsWith("Mui")||u?"components":"custom",m=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,y=v||!1;let w=lc;u==="Root"||u==="root"?w=r:u?w=i:fw(l)&&(w=void 0);const x=Mf(l,{shouldForwardProp:w,label:uw(p,u),...g}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function($){return Us($,O,$.theme.modularCssLayers?f:void 0)};if(fn(O)){const P=Qf(O);return function(A){return P.variants?Us(A,P,A.theme.modularCssLayers?f:void 0):A.theme.modularCssLayers?cr(P.style,f):P.style}}return O},C=(...O)=>{const P=[],$=O.map(S),A=[];if(P.push(s),p&&b&&A.push(function(k){const D=k.theme.components?.[p]?.styleOverrides;if(!D)return null;const N={};for(const B in D)N[B]=Us(k,D[B],k.theme.modularCssLayers?"theme":void 0);return b(k,N)}),p&&!m&&A.push(function(k){const D=k.theme?.components?.[p]?.variants;return D?Zf(k,D,[],k.theme.modularCssLayers?"theme":void 0):null}),y||A.push(lr),Array.isArray($[0])){const T=$.shift(),k=new Array(P.length).fill(""),_=new Array(A.length).fill("");let D;D=[...k,...T,..._],D.raw=[...k,...T.raw,..._],P.unshift(D)}const j=[...P,...$,...A],L=x(...j);return l.muiName&&(L.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(L.displayName=dw(p,u,l)),L};return x.withConfig&&(C.withConfig=x.withConfig),C}}function dw(e,t,n){return e?`${e}${Q(t||"")}`:`Styled(${iw(n)})`}function uw(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${eh(t||"Root")}`),n}function pw(e){for(const t in e)return!1;return!0}function fw(e){return typeof e=="string"&&e.charCodeAt(0)>96}function eh(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Xo(e,t,n=!1){const r={...t};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)){const s=i;if(s==="components"||s==="slots")r[s]={...e[s],...r[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)r[s]=a||{};else if(!a)r[s]=l;else{r[s]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const p=c;r[s][p]=Xo(a[p],l[p],n)}}}else s==="className"&&n&&t.className?r.className=le(e?.className,t?.className):s==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[s]===void 0&&(r[s]=e[s])}return r}function hw(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Xo(t.components[n].defaultProps,r)}const Wt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function gw(e,t,n,r,i){const[s,a]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Wt(()=>{if(!n)return;const l=n(e),c=()=>{a(l.matches)};return c(),l.addEventListener("change",c),()=>{l.removeEventListener("change",c)}},[e,n]),s}const th={...E}.useSyncExternalStore;function mw(e,t,n,r,i){const s=E.useCallback(()=>t,[t]),a=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:u}=r(e);return()=>u}return s},[s,e,r,i,n]),[l,c]=E.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const u=n(e);return[()=>u.matches,h=>(u.addEventListener("change",h),()=>{u.removeEventListener("change",h)})]},[s,n,e]);return th(c,l,a)}function nh(e={}){const{themeId:t}=e;return function(r,i={}){let s=Uf();s&&t&&(s=s[t]||s);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:c=a?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:u=!1}=hw({name:"MuiUseMediaQuery",props:i,theme:s});process.env.NODE_ENV!=="production"&&typeof r=="function"&&s===null&&console.error(["MUI: The `query` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
31
31
|
`));let h=typeof r=="function"?r(s):r;h=h.replace(/^@media( ?)/m,""),h.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
32
|
-
`));const
|
|
33
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
34
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
35
|
-
`))}return
|
|
36
|
-
The color object needs to have a \`main\` property or a \`${w}\` property.`:
|
|
37
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
32
|
+
`));const b=(th!==void 0?mw:gw)(h,l,c,p,u);return process.env.NODE_ENV!=="production"&&E.useDebugValue({query:h,match:b}),b}}nh();function qr(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function cc(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),qr(e,t,n)}function yw(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gn(e){if(e.type)return e;if(e.charAt(0)==="#")return Gn(yw(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
33
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:cn(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
|
|
34
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:cn(10,i))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:i}}const bw=e=>{const t=Gn(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Jo=(e,t)=>{try{return bw(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function Hs(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,s)=>s<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function rh(e){e=Gn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),a=(p,u=(p+n/30)%12)=>i-s*Math.max(Math.min(u-3,9-u,1),-1);let l="rgb";const c=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),Hs({type:l,values:c})}function dc(e){e=Gn(e);let t=e.type==="hsl"||e.type==="hsla"?Gn(rh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function oh(e,t){const n=dc(e),r=dc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function qs(e,t){return e=Gn(e),t=cc(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Hs(e)}function dr(e,t,n){try{return qs(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ys(e,t){if(e=Gn(e),t=cc(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Hs(e)}function Le(e,t,n){try{return Ys(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Ks(e,t){if(e=Gn(e),t=cc(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Hs(e)}function ze(e,t,n){try{return Ks(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function uc(e,t=.15){return dc(e)>.5?Ys(e,t):Ks(e,t)}function Gs(e,t,n){try{return uc(e,t)}catch{return e}}const vw="exact-prop: ";function pc(e){return process.env.NODE_ENV==="production"?e:{...e,[vw]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}}}const xw=E.createContext();process.env.NODE_ENV!=="production"&&(o.node,o.bool);const Qo=()=>E.useContext(xw)??!1,Sw=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(o.node,o.object);function ww(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Xo(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Xo(i,r,t.components.mergeClassNameAndStyle):r}function Cw({props:e,name:t}){const n=E.useContext(Sw);return ww({props:e,name:t,theme:{components:n}})}let ih=0;function Ew(e){const[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t==null&&(ih+=1,n(`mui-${ih}`))},[t]),r}const sh={...E}.useId;function ur(e){if(sh!==void 0){const t=sh();return e??t}return Ew(e)}const ah={theme:void 0};function Tw(e){let t,n;return function(i){let s=t;return(s===void 0||i.theme!==n)&&(ah.theme=i.theme,s=Qf(e(ah)),t=s,n=i.theme),s}}function Ow(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const lh=(e,t,n,r=[])=>{let i=e;t.forEach((s,a)=>{a===t.length-1?Array.isArray(i)?i[Number(s)]=n:i&&typeof i=="object"&&(i[s]=n):i&&typeof i=="object"&&(i[s]||(i[s]=r.includes(s)?[]:{}),i=i[s])})},Pw=(e,t,n)=>{function r(i,s=[],a=[]){Object.entries(i).forEach(([l,c])=>{(!n||n&&!n([...s,l]))&&c!=null&&(typeof c=="object"&&Object.keys(c).length>0?r(c,[...s,l],Array.isArray(c)?[...a,l]:a):t([...s,l],c,a))})}r(e)},kw=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function fc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},s={},a={};return Pw(e,(l,c,p)=>{if((typeof c=="string"||typeof c=="number")&&(!r||!r(l,c))){const u=`--${n?`${n}-`:""}${l.join("-")}`,h=kw(l,c);Object.assign(i,{[u]:h}),lh(s,l,`var(${u})`,p),lh(a,l,`var(${u}, ${h})`,p)}},l=>l[0]==="vars"),{css:i,vars:s,varsWithDefaults:a}}function Nw(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...p}=e,{vars:u,css:h,varsWithDefaults:v}=fc(p,t);let b=v;const g={},{[c]:f,...m}=a;if(Object.entries(m||{}).forEach(([S,C])=>{const{vars:O,css:P,varsWithDefaults:$}=fc(C,t);b=bt(b,$),g[S]={css:P,vars:O}}),f){const{css:S,vars:C,varsWithDefaults:O}=fc(f,t);b=bt(b,O),g[c]={css:S,vars:C}}function y(S,C){let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),S){if(O==="media")return e.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${a[S]?.palette?.mode||S})`]:{":root":C}};if(O)return e.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:b,generateThemeVars:()=>{let S={...u};return Object.entries(g).forEach(([,{vars:C}])=>{S=bt(S,C)}),S},generateStyleSheets:()=>{const S=[],C=e.defaultColorScheme||"light";function O(A,j){Object.keys(j).length&&S.push(typeof A=="string"?{[A]:{...j}}:A)}O(n(void 0,{...h}),h);const{[C]:P,...$}=g;if(P){const{css:A}=P,j=a[C]?.palette?.mode,L=!r&&j?{colorScheme:j,...A}:{...A};O(n(C,{...L}),L)}return Object.entries($).forEach(([A,{css:j}])=>{const L=a[A]?.palette?.mode,T=!r&&L?{colorScheme:L,...j}:{...j};O(n(A,{...T}),T)}),s&&S.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)"}}),S}}}function Iw(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function me(e,t,n=void 0){const r={};for(const i in e){const s=e[i];let a="",l=!0;for(let c=0;c<s.length;c+=1){const p=s[c];p&&(a+=(l===!0?"":" ")+t(p),l=!1,n&&n[p]&&(a+=" "+n[p]))}r[i]=a}return r}function hc(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function ch(){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:jo.white,default:jo.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const dh=ch();function uh(){return{text:{primary:jo.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:jo.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 gc=uh();function ph(e,t,n,r){const i=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ks(e.main,i):t==="dark"&&(e.dark=Ys(e.main,s)))}function fh(e,t,n,r,i){const s=i.light||i,a=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(s*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function Aw(e="light"){return e==="dark"?{main:Lr[200],light:Lr[50],dark:Lr[400]}:{main:Lr[700],light:Lr[400],dark:Lr[800]}}function Mw(e="light"){return e==="dark"?{main:jr[200],light:jr[50],dark:jr[400]}:{main:jr[500],light:jr[300],dark:jr[700]}}function _w(e="light"){return e==="dark"?{main:Fr[500],light:Fr[300],dark:Fr[700]}:{main:Fr[700],light:Fr[400],dark:Fr[800]}}function $w(e="light"){return e==="dark"?{main:zr[400],light:zr[300],dark:zr[700]}:{main:zr[700],light:zr[500],dark:zr[900]}}function Dw(e="light"){return e==="dark"?{main:Br[400],light:Br[300],dark:Br[700]}:{main:Br[800],light:Br[500],dark:Br[900]}}function Fw(e="light"){return e==="dark"?{main:Lo[400],light:Lo[300],dark:Lo[700]}:{main:"#ed6c02",light:Lo[500],dark:Lo[900]}}function jw(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function mc(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...s}=e,a=e.primary||Aw(t),l=e.secondary||Mw(t),c=e.error||_w(t),p=e.info||$w(t),u=e.success||Dw(t),h=e.warning||Fw(t);function v(m){if(i)return jw(m);const y=oh(m,gc.text.primary)>=n?gc.text.primary:dh.text.primary;if(process.env.NODE_ENV!=="production"){const w=oh(m,y);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${y} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
35
|
+
`))}return y}const b=({color:m,name:y,mainShade:w=500,lightShade:x=300,darkShade:S=700})=>{if(m={...m},!m.main&&m[w]&&(m.main=m[w]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
36
|
+
The color object needs to have a \`main\` property or a \`${w}\` property.`:cn(11,y?` (${y})`:"",w));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
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?
|
|
40
40
|
|
|
@@ -46,21 +46,21 @@ const theme1 = createTheme({ palette: {
|
|
|
46
46
|
|
|
47
47
|
const theme2 = createTheme({ palette: {
|
|
48
48
|
primary: { main: green[500] },
|
|
49
|
-
} });`:
|
|
50
|
-
`)),Object.keys(
|
|
49
|
+
} });`:cn(12,y?` (${y})`:"",JSON.stringify(m.main)));return i?(fh(i,m,"light",x,r),fh(i,m,"dark",S,r)):(ph(m,"light",x,r),ph(m,"dark",S,r)),m.contrastText||(m.contrastText=v(m.main)),m};let g;return t==="light"?g=ch():t==="dark"&&(g=uh()),process.env.NODE_ENV!=="production"&&(g||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),bt({common:{...jo},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:c,name:"error"}),warning:b({color:h,name:"warning"}),info:b({color:p,name:"info"}),success:b({color:u,name:"success"}),grey:Xx,contrastThreshold:n,getContrastText:v,augmentColor:b,tonalOffset:r,...g},s)}function Lw(e){const t={};return Object.entries(e).forEach(r=>{const[i,s]=r;typeof s=="object"&&(t[i]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function zw(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function Bw(e){return Math.round(e*1e5)/1e5}const hh={textTransform:"uppercase"},gh='"Roboto", "Helvetica", "Arial", sans-serif';function Rw(e,t){const{fontFamily:n=gh,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:p,pxToRem:u,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof c!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=r/14,b=u||(m=>`${m/c*v}rem`),g=(m,y,w,x,S)=>({fontFamily:n,fontWeight:m,fontSize:b(y),lineHeight:w,...n===gh?{letterSpacing:`${Bw(x/y)}em`}:{},...S,...p}),f={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(s,48,1.167,0),h4:g(s,34,1.235,.25),h5:g(s,24,1.334,0),h6:g(a,20,1.6,.15),subtitle1:g(s,16,1.75,.15),subtitle2:g(a,14,1.57,.1),body1:g(s,16,1.5,.15),body2:g(s,14,1.43,.15),button:g(a,14,1.75,.4,hh),caption:g(s,12,1.66,.4),overline:g(s,12,2.66,1,hh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return bt({htmlFontSize:c,pxToRem:b,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l,...f},h,{clone:!1})}const Ww=.2,Vw=.14,Uw=.12;function Qe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Ww})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vw})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Uw})`].join(",")}const Hw=["none",Qe(0,2,1,-1,0,1,1,0,0,1,3,0),Qe(0,3,1,-2,0,2,2,0,0,1,5,0),Qe(0,3,3,-2,0,3,4,0,0,1,8,0),Qe(0,2,4,-1,0,4,5,0,0,1,10,0),Qe(0,3,5,-1,0,5,8,0,0,1,14,0),Qe(0,3,5,-1,0,6,10,0,0,1,18,0),Qe(0,4,5,-2,0,7,10,1,0,2,16,1),Qe(0,5,5,-3,0,8,10,1,0,3,14,2),Qe(0,5,6,-3,0,9,12,1,0,3,16,2),Qe(0,6,6,-3,0,10,14,1,0,4,18,3),Qe(0,6,7,-4,0,11,15,1,0,4,20,3),Qe(0,7,8,-4,0,12,17,2,0,5,22,4),Qe(0,7,8,-4,0,13,19,2,0,5,24,4),Qe(0,7,9,-4,0,14,21,2,0,5,26,4),Qe(0,8,9,-5,0,15,22,2,0,6,28,5),Qe(0,8,10,-5,0,16,24,2,0,6,30,5),Qe(0,8,11,-5,0,17,26,2,0,6,32,5),Qe(0,9,11,-5,0,18,28,2,0,7,34,6),Qe(0,9,12,-6,0,19,29,2,0,7,36,6),Qe(0,10,13,-6,0,20,31,3,0,8,38,7),Qe(0,10,13,-6,0,21,33,3,0,8,40,7),Qe(0,10,14,-6,0,22,35,3,0,8,42,7),Qe(0,11,14,-7,0,23,36,3,0,9,44,8),Qe(0,11,15,-7,0,24,38,3,0,9,46,8)],qw={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)"},Yw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mh(e){return`${Math.round(e)}ms`}function Kw(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Gw(e){const t={...qw,...e.easing},n={...Yw,...e.duration};return{getAutoHeightDuration:Kw,create:(i=["all"],s={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0,...p}=s;if(process.env.NODE_ENV!=="production"){const u=v=>typeof v=="string",h=v=>!Number.isNaN(parseFloat(v));!u(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!u(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),u(l)||console.error('MUI: Argument "easing" must be a string.'),!h(c)&&!u(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
50
|
+
`)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:mh(a)} ${l} ${typeof c=="string"?c:mh(c)}`).join(",")},...e,easing:t,duration:n}}const Xw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Jw(e){return fn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function yh(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let s=0;s<i.length;s++){const[a,l]=i[s];!Jw(l)||a.startsWith("unstable_")?delete r[a]:fn(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
51
51
|
|
|
52
52
|
const theme = ${JSON.stringify(t,null,2)};
|
|
53
53
|
|
|
54
54
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
55
55
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
56
56
|
|
|
57
|
-
export default theme;`}function
|
|
58
|
-
`))}
|
|
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 Lw(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const sn=e=>{try{return e()}catch{}},Bw=(e="mui")=>iw(e);function nc(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!r){t[o]=$w({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=ec({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...nh(s),...n?.opacity},overlays:n?.overlays||rh(s)},l}function Rw(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=Dw,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:f=":root",...u}=e,h=Object.keys(n)[0],b=r||(n.light&&h!=="light"?"light":h),m=Bw(s),{[b]:g,light:p,dark:y,...x}=n,w={...x};let S=g;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(S=!0),!S)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${b}\` option is either missing or invalid.`:en(21,b));let v;a&&(v="oklch");const C=nc(v,w,S,u,b);p&&!w.light&&nc(v,w,p,void 0,"light"),y&&!w.dark&&nc(v,w,y,void 0,"dark");let O={defaultColorScheme:b,...C,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:f,getCssVar:m,colorSchemes:w,font:{...yw(C.typography),...C.font},spacing:Lw(u.spacing)};Object.keys(O.colorSchemes).forEach(L=>{const T=O.colorSchemes[L].palette,N=D=>{const k=D.split("-"),z=k[1],M=k[2];return m(D,T[z][M])};T.mode==="light"&&(q(T.common,"background","#fff"),q(T.common,"onBackground","#000")),T.mode==="dark"&&(q(T.common,"background","#000"),q(T.common,"onBackground","#fff"));function _(D,k,z){if(v){let M;return D===tr&&(M=`transparent ${((1-z)*100).toFixed(0)}%`),D===ke&&(M=`#000 ${(z*100).toFixed(0)}%`),D===Ne&&(M=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${v}, ${k}, ${M})`}return D(k,z)}if(zw(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){q(T.Alert,"errorColor",_(ke,T.error.light,.6)),q(T.Alert,"infoColor",_(ke,T.info.light,.6)),q(T.Alert,"successColor",_(ke,T.success.light,.6)),q(T.Alert,"warningColor",_(ke,T.warning.light,.6)),q(T.Alert,"errorFilledBg",N("palette-error-main")),q(T.Alert,"infoFilledBg",N("palette-info-main")),q(T.Alert,"successFilledBg",N("palette-success-main")),q(T.Alert,"warningFilledBg",N("palette-warning-main")),q(T.Alert,"errorFilledColor",sn(()=>T.getContrastText(T.error.main))),q(T.Alert,"infoFilledColor",sn(()=>T.getContrastText(T.info.main))),q(T.Alert,"successFilledColor",sn(()=>T.getContrastText(T.success.main))),q(T.Alert,"warningFilledColor",sn(()=>T.getContrastText(T.warning.main))),q(T.Alert,"errorStandardBg",_(Ne,T.error.light,.9)),q(T.Alert,"infoStandardBg",_(Ne,T.info.light,.9)),q(T.Alert,"successStandardBg",_(Ne,T.success.light,.9)),q(T.Alert,"warningStandardBg",_(Ne,T.warning.light,.9)),q(T.Alert,"errorIconColor",N("palette-error-main")),q(T.Alert,"infoIconColor",N("palette-info-main")),q(T.Alert,"successIconColor",N("palette-success-main")),q(T.Alert,"warningIconColor",N("palette-warning-main")),q(T.AppBar,"defaultBg",N("palette-grey-100")),q(T.Avatar,"defaultBg",N("palette-grey-400")),q(T.Button,"inheritContainedBg",N("palette-grey-300")),q(T.Button,"inheritContainedHoverBg",N("palette-grey-A100")),q(T.Chip,"defaultBorder",N("palette-grey-400")),q(T.Chip,"defaultAvatarColor",N("palette-grey-700")),q(T.Chip,"defaultIconColor",N("palette-grey-700")),q(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(T.LinearProgress,"primaryBg",_(Ne,T.primary.main,.62)),q(T.LinearProgress,"secondaryBg",_(Ne,T.secondary.main,.62)),q(T.LinearProgress,"errorBg",_(Ne,T.error.main,.62)),q(T.LinearProgress,"infoBg",_(Ne,T.info.main,.62)),q(T.LinearProgress,"successBg",_(Ne,T.success.main,.62)),q(T.LinearProgress,"warningBg",_(Ne,T.warning.main,.62)),q(T.Skeleton,"bg",v?_(tr,T.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),q(T.Slider,"primaryTrack",_(Ne,T.primary.main,.62)),q(T.Slider,"secondaryTrack",_(Ne,T.secondary.main,.62)),q(T.Slider,"errorTrack",_(Ne,T.error.main,.62)),q(T.Slider,"infoTrack",_(Ne,T.info.main,.62)),q(T.Slider,"successTrack",_(Ne,T.success.main,.62)),q(T.Slider,"warningTrack",_(Ne,T.warning.main,.62));const D=v?_(ke,T.background.default,.6825):_s(T.background.default,.8);q(T.SnackbarContent,"bg",D),q(T.SnackbarContent,"color",sn(()=>v?Ql.text.primary:T.getContrastText(D))),q(T.SpeedDialAction,"fabHoverBg",_s(T.background.paper,.15)),q(T.StepConnector,"border",N("palette-grey-400")),q(T.StepContent,"border",N("palette-grey-400")),q(T.Switch,"defaultColor",N("palette-common-white")),q(T.Switch,"defaultDisabledColor",N("palette-grey-100")),q(T.Switch,"primaryDisabledColor",_(Ne,T.primary.main,.62)),q(T.Switch,"secondaryDisabledColor",_(Ne,T.secondary.main,.62)),q(T.Switch,"errorDisabledColor",_(Ne,T.error.main,.62)),q(T.Switch,"infoDisabledColor",_(Ne,T.info.main,.62)),q(T.Switch,"successDisabledColor",_(Ne,T.success.main,.62)),q(T.Switch,"warningDisabledColor",_(Ne,T.warning.main,.62)),q(T.TableCell,"border",_(Ne,_(tr,T.divider,1),.88)),q(T.Tooltip,"bg",_(tr,T.grey[700],.92))}if(T.mode==="dark"){q(T.Alert,"errorColor",_(Ne,T.error.light,.6)),q(T.Alert,"infoColor",_(Ne,T.info.light,.6)),q(T.Alert,"successColor",_(Ne,T.success.light,.6)),q(T.Alert,"warningColor",_(Ne,T.warning.light,.6)),q(T.Alert,"errorFilledBg",N("palette-error-dark")),q(T.Alert,"infoFilledBg",N("palette-info-dark")),q(T.Alert,"successFilledBg",N("palette-success-dark")),q(T.Alert,"warningFilledBg",N("palette-warning-dark")),q(T.Alert,"errorFilledColor",sn(()=>T.getContrastText(T.error.dark))),q(T.Alert,"infoFilledColor",sn(()=>T.getContrastText(T.info.dark))),q(T.Alert,"successFilledColor",sn(()=>T.getContrastText(T.success.dark))),q(T.Alert,"warningFilledColor",sn(()=>T.getContrastText(T.warning.dark))),q(T.Alert,"errorStandardBg",_(ke,T.error.light,.9)),q(T.Alert,"infoStandardBg",_(ke,T.info.light,.9)),q(T.Alert,"successStandardBg",_(ke,T.success.light,.9)),q(T.Alert,"warningStandardBg",_(ke,T.warning.light,.9)),q(T.Alert,"errorIconColor",N("palette-error-main")),q(T.Alert,"infoIconColor",N("palette-info-main")),q(T.Alert,"successIconColor",N("palette-success-main")),q(T.Alert,"warningIconColor",N("palette-warning-main")),q(T.AppBar,"defaultBg",N("palette-grey-900")),q(T.AppBar,"darkBg",N("palette-background-paper")),q(T.AppBar,"darkColor",N("palette-text-primary")),q(T.Avatar,"defaultBg",N("palette-grey-600")),q(T.Button,"inheritContainedBg",N("palette-grey-800")),q(T.Button,"inheritContainedHoverBg",N("palette-grey-700")),q(T.Chip,"defaultBorder",N("palette-grey-700")),q(T.Chip,"defaultAvatarColor",N("palette-grey-300")),q(T.Chip,"defaultIconColor",N("palette-grey-300")),q(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(T.LinearProgress,"primaryBg",_(ke,T.primary.main,.5)),q(T.LinearProgress,"secondaryBg",_(ke,T.secondary.main,.5)),q(T.LinearProgress,"errorBg",_(ke,T.error.main,.5)),q(T.LinearProgress,"infoBg",_(ke,T.info.main,.5)),q(T.LinearProgress,"successBg",_(ke,T.success.main,.5)),q(T.LinearProgress,"warningBg",_(ke,T.warning.main,.5)),q(T.Skeleton,"bg",v?_(tr,T.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),q(T.Slider,"primaryTrack",_(ke,T.primary.main,.5)),q(T.Slider,"secondaryTrack",_(ke,T.secondary.main,.5)),q(T.Slider,"errorTrack",_(ke,T.error.main,.5)),q(T.Slider,"infoTrack",_(ke,T.info.main,.5)),q(T.Slider,"successTrack",_(ke,T.success.main,.5)),q(T.Slider,"warningTrack",_(ke,T.warning.main,.5));const D=v?_(Ne,T.background.default,.985):_s(T.background.default,.98);q(T.SnackbarContent,"bg",D),q(T.SnackbarContent,"color",sn(()=>v?Yf.text.primary:T.getContrastText(D))),q(T.SpeedDialAction,"fabHoverBg",_s(T.background.paper,.15)),q(T.StepConnector,"border",N("palette-grey-600")),q(T.StepContent,"border",N("palette-grey-600")),q(T.Switch,"defaultColor",N("palette-grey-300")),q(T.Switch,"defaultDisabledColor",N("palette-grey-600")),q(T.Switch,"primaryDisabledColor",_(ke,T.primary.main,.55)),q(T.Switch,"secondaryDisabledColor",_(ke,T.secondary.main,.55)),q(T.Switch,"errorDisabledColor",_(ke,T.error.main,.55)),q(T.Switch,"infoDisabledColor",_(ke,T.info.main,.55)),q(T.Switch,"successDisabledColor",_(ke,T.success.main,.55)),q(T.Switch,"warningDisabledColor",_(ke,T.warning.main,.55)),q(T.TableCell,"border",_(ke,_(tr,T.divider,1),.68)),q(T.Tooltip,"bg",_(tr,T.grey[700],.92))}Cn(T.background,"default"),Cn(T.background,"paper"),Cn(T.common,"background"),Cn(T.common,"onBackground"),Cn(T,"divider"),Object.keys(T).forEach(D=>{const k=T[D];D!=="tonalOffset"&&k&&typeof k=="object"&&(k.main&&q(T[D],"mainChannel",Do(Fo(k.main))),k.light&&q(T[D],"lightChannel",Do(Fo(k.light))),k.dark&&q(T[D],"darkChannel",Do(Fo(k.dark))),k.contrastText&&q(T[D],"contrastTextChannel",Do(Fo(k.contrastText))),D==="text"&&(Cn(T[D],"primary"),Cn(T[D],"secondary")),D==="action"&&(k.active&&Cn(T[D],"active"),k.selected&&Cn(T[D],"selected")))})}),O=t.reduce((L,T)=>ut(L,T),O);const P={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:l,getSelector:jw(O),enableContrastVars:a},{vars:$,generateThemeVars:A,generateStyleSheets:B}=lw(O,P);return O.vars=$,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([L,T])=>{O[L]=T}),O.generateThemeVars=A,O.generateStyleSheets=B,O.generateSpacing=function(){return Of(u.spacing,Bl(this))},O.getColorSchemeSelector=cw(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={...Mo,...u?.unstable_sxConfig},O.unstable_sx=function(T){return Zn({sx:T,theme:this})},O.toRuntimeSource=eh,O}function oh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Zl({...n===!0?{}:n.palette,mode:t})})}function rc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=o?.[l],f={...o,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ec(e,...t);let u=n;"palette"in e||f[l]&&(f[l]!==!0?u=f[l].palette:l==="dark"&&(u={mode:"dark"}));const h=ec({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=f,h.palette.mode==="light"&&(h.colorSchemes.light={...f.light!==!0&&f.light,palette:h.palette},oh(h,"dark",f.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:h.palette},oh(h,"light",f.light)),h}return!n&&!("light"in f)&&l==="light"&&(f.light=!0),Rw({...a,colorSchemes:f,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const oc=rc();function Yt(){const e=Vl(oc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[Co]||e}function ic(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const pt=e=>ic(e)&&e!=="classes",Y=RS({themeId:Co,defaultTheme:oc,rootShouldForwardProp:pt});function sc(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ih(e){return d.jsx(kf,{...e,defaultTheme:oc,themeId:Co})}process.env.NODE_ENV!=="production"&&(ih.propTypes={styles:i.oneOfType([i.array,i.func,i.number,i.object,i.string,i.bool])});function Ww(e){return function(n){return d.jsx(ih,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Vw(){return Nf}const fe=ow;process.env.NODE_ENV!=="production"&&(i.node,i.object.isRequired);function he(e){return nw(e)}function Uw(e){return ue("MuiSvgIcon",e)}ce("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hw=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${X(t)}`,`fontSize${X(n)}`]};return pe(o,Uw,r)},qw=Y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(fe(({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}}]}))),jo=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:h,viewBox:b="0 0 24 24",...m}=r,g=E.isValidElement(o)&&o.type==="svg",p={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:b,hasSvgAsChild:g},y={};u||(y.viewBox=b);const x=Hw(p);return d.jsxs(qw,{as:l,className:ie(x.root,s),focusable:"false",color:f,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...y,...m,...g&&o.props,ownerState:p,children:[g?o.props.children:o,h?d.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(jo.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,fontSize:i.oneOfType([i.oneOf(["inherit","large","medium","small"]),i.string]),htmlColor:i.string,inheritViewBox:i.bool,shapeRendering:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),titleAccess:i.string,viewBox:i.string}),jo.muiName="SvgIcon";function Be(e,t){function n(r,o){return d.jsx(jo,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=jo.muiName,E.memo(E.forwardRef(n))}function sh(e,t=166){let n;function r(...o){const s=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ft(e){return e&&e.ownerDocument||document}function En(e){return ft(e).defaultView||window}function ah(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function zo(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:s}=E.useRef(t!==void 0),[a,l]=E.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${o} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
60
|
-
`))},[
|
|
61
|
-
`))},[JSON.stringify(n)])}const f=E.useCallback(u=>{s||l(u)},[]);return[c,f]}function Dt(e){const t=E.useRef(e);return qt(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function Ze(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const o=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{o.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Yw(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function lh(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(f=>{Yw(f,l[f])&&typeof a[f]=="function"&&(c[f]=(...u)=>{a[f](...u),l[f](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,f=ie(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!f&&{className:f},...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 r=t,o=n(e,r),s=ie(r?.className,e?.className);return{...t,...e,...o,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var $s={exports:{}},$e={};var ch;function Kw(){if(ch)return $e;ch=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function g(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case e:switch(p=p.type,p){case n:case o:case r:case c:case f:case b:return p;default:switch(p=p&&p.$$typeof,p){case a:case l:case h:case u:return p;case s:return p;default:return y}}case t:return y}}}return $e.ContextConsumer=s,$e.ContextProvider=a,$e.Element=e,$e.ForwardRef=l,$e.Fragment=n,$e.Lazy=h,$e.Memo=u,$e.Portal=t,$e.Profiler=o,$e.StrictMode=r,$e.Suspense=c,$e.SuspenseList=f,$e.isContextConsumer=function(p){return g(p)===s},$e.isContextProvider=function(p){return g(p)===a},$e.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},$e.isForwardRef=function(p){return g(p)===l},$e.isFragment=function(p){return g(p)===n},$e.isLazy=function(p){return g(p)===h},$e.isMemo=function(p){return g(p)===u},$e.isPortal=function(p){return g(p)===t},$e.isProfiler=function(p){return g(p)===o},$e.isStrictMode=function(p){return g(p)===r},$e.isSuspense=function(p){return g(p)===c},$e.isSuspenseList=function(p){return g(p)===f},$e.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===o||p===r||p===c||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===u||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===m||p.getModuleId!==void 0)},$e.typeOf=g,$e}var De={};var dh;function Gw(){return dh||(dh=1,process.env.NODE_ENV!=="production"&&(function(){function e(p){if(typeof p=="object"&&p!==null){var y=p.$$typeof;switch(y){case t:switch(p=p.type,p){case r:case s:case o:case f:case u:case m:return p;default:switch(p=p&&p.$$typeof,p){case l:case c:case b:case h:return p;case a:return p;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");De.ContextConsumer=a,De.ContextProvider=l,De.Element=t,De.ForwardRef=c,De.Fragment=r,De.Lazy=b,De.Memo=h,De.Portal=n,De.Profiler=s,De.StrictMode=o,De.Suspense=f,De.SuspenseList=u,De.isContextConsumer=function(p){return e(p)===a},De.isContextProvider=function(p){return e(p)===l},De.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},De.isForwardRef=function(p){return e(p)===c},De.isFragment=function(p){return e(p)===r},De.isLazy=function(p){return e(p)===b},De.isMemo=function(p){return e(p)===h},De.isPortal=function(p){return e(p)===n},De.isProfiler=function(p){return e(p)===s},De.isStrictMode=function(p){return e(p)===o},De.isSuspense=function(p){return e(p)===f},De.isSuspenseList=function(p){return e(p)===u},De.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===s||p===o||p===f||p===u||typeof p=="object"&&p!==null&&(p.$$typeof===b||p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===c||p.$$typeof===g||p.getModuleId!==void 0)},De.typeOf=e})()),De}var uh;function Jw(){return uh||(uh=1,process.env.NODE_ENV==="production"?$s.exports=Kw():$s.exports=Gw()),$s.exports}var ac=Jw();function Tn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function ph(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lc(e,t){return lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},lc(e,t)}function fh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lc(e,t)}const hh={disabled:!1};var Xw=process.env.NODE_ENV!=="production"?i.oneOfType([i.number,i.shape({enter:i.number,exit:i.number,appear:i.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&i.oneOfType([i.string,i.shape({enter:i.string,exit:i.string,active:i.string}),i.shape({enter:i.string,enterDone:i.string,enterActive:i.string,exit:i.string,exitDone:i.string,exitActive:i.string})]);const Ds=F.createContext(null);var Qw=function(t){return t.scrollTop},Lo="unmounted",rr="exited",or="entering",Dr="entered",cc="exiting",an=(function(e){fh(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=rr,s.appearStatus=or):c=Dr:r.unmountOnExit||r.mountOnEnter?c=Lo:c=rr,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var a=o.in;return a&&s.status===Lo?{status:rr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var s=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==or&&a!==Dr&&(s=or):(a===or||a===Dr)&&(s=cc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,a,l;return s=a=l=o,o!=null&&typeof o!="number"&&(s=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===or){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Hr.findDOMNode(this);a&&Qw(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rr&&this.setState({status:Lo})},n.performEnter=function(o){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:o,c=this.props.nodeRef?[l]:[Hr.findDOMNode(this),l],f=c[0],u=c[1],h=this.getTimeouts(),b=l?h.appear:h.enter;if(!o&&!a||hh.disabled){this.safeSetState({status:Dr},function(){s.props.onEntered(f)});return}this.props.onEnter(f,u),this.safeSetState({status:or},function(){s.props.onEntering(f,u),s.onTransitionEnd(b,function(){s.safeSetState({status:Dr},function(){s.props.onEntered(f,u)})})})},n.performExit=function(){var o=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Hr.findDOMNode(this);if(!s||hh.disabled){this.safeSetState({status:rr},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:cc},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:rr},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,s){s=this.setNextCallback(s),this.setState(o,s)},n.setNextCallback=function(o){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Hr.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],u=c[1];this.props.addEndListener(f,u)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Lo)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=ph(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(Ds.Provider,{value:null},typeof a=="function"?a(o,l):F.cloneElement(F.Children.only(a),l))},t})(F.Component);an.contextType=Ds,an.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:i.shape({current:typeof Element>"u"?i.any:function(e,t,n,r,o,s){var a=e[t];return i.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,s)}}),children:i.oneOfType([i.func.isRequired,i.element.isRequired]).isRequired,in:i.bool,mountOnEnter:i.bool,unmountOnExit:i.bool,appear:i.bool,enter:i.bool,exit:i.bool,timeout:function(t){var n=Xw;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return n.apply(void 0,[t].concat(o))},addEndListener:i.func,onEnter:i.func,onEntering:i.func,onEntered:i.func,onExit:i.func,onExiting:i.func,onExited:i.func}:{};function Fr(){}an.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fr,onEntering:Fr,onEntered:Fr,onExit:Fr,onExiting:Fr,onExited:Fr},an.UNMOUNTED=Lo,an.EXITED=rr,an.ENTERING=or,an.ENTERED=Dr,an.EXITING=cc;function Zw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dc(e,t){var n=function(s){return t&&F.isValidElement(s)?t(s):s},r=Object.create(null);return e&&F.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function eC(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var s in e)s in t?o.length&&(r[s]=o,o=[]):o.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var f=r[c][a];l[r[c][a]]=n(f)}l[c]=n(c)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function ir(e,t,n){return n[t]!=null?n[t]:e.props[t]}function tC(e,t){return dc(e.children,function(n){return F.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ir(n,"appear",e),enter:ir(n,"enter",e),exit:ir(n,"exit",e)})})}function nC(e,t,n){var r=dc(e.children),o=eC(t,r);return Object.keys(o).forEach(function(s){var a=o[s];if(F.isValidElement(a)){var l=s in t,c=s in r,f=t[s],u=F.isValidElement(f)&&!f.props.in;c&&(!l||u)?o[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ir(a,"exit",e),enter:ir(a,"enter",e)}):!c&&l&&!u?o[s]=F.cloneElement(a,{in:!1}):c&&l&&F.isValidElement(f)&&(o[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:f.props.in,exit:ir(a,"exit",e),enter:ir(a,"enter",e)}))}}),o}var rC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},oC={component:"div",childFactory:function(t){return t}},uc=(function(e){fh(t,e);function t(r,o){var s;s=e.call(this,r,o)||this;var a=s.handleExited.bind(Zw(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?tC(o,l):nC(o,a,l),firstRender:!1}},n.handleExited=function(o,s){var a=dc(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(l){var c=rs({},l.children);return delete c[o.key],{children:c}}))},n.render=function(){var o=this.props,s=o.component,a=o.childFactory,l=ph(o,["component","childFactory"]),c=this.state.contextValue,f=rC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?F.createElement(Ds.Provider,{value:c},f):F.createElement(Ds.Provider,{value:c},F.createElement(s,l,f))},t})(F.Component);uc.propTypes=process.env.NODE_ENV!=="production"?{component:i.any,children:i.node,appear:i.bool,enter:i.bool,exit:i.bool,childFactory:i.func}:{},uc.defaultProps=oC;const gh={};function mh(e,t){const n=E.useRef(gh);return n.current===gh&&(n.current=e(t)),n}const iC=[];function sC(e){E.useEffect(e,iC)}class Fs{static create(){return new Fs}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function sr(){const e=mh(Fs.create).current;return sC(e.disposeEffect),e}function aC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function lC(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!aC(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const pc=Tn(i.elementType,lC),yh=e=>e.scrollTop;function js(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function zs(e){return typeof e=="string"}function bh(e,t,n){return e===void 0||zs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function vh(e,t,n){return typeof e=="function"?e(t,n):e}function Ls(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function xh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Sh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const m=ie(n?.className,s,o?.className,r?.className),g={...n?.style,...o?.style,...r?.style},p={...n,...o,...r};return m.length>0&&(p.className=m),Object.keys(g).length>0&&(p.style=g),{props:p,internalRef:void 0}}const a=Ls({...o,...r}),l=xh(r),c=xh(o),f=t(a),u=ie(f?.className,n?.className,s,o?.className,r?.className),h={...f?.style,...n?.style,...o?.style,...r?.style},b={...f,...n,...c,...l};return u.length>0&&(b.className=u),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:f.ref}}function ge(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:f,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...b}=s,m=u[e]||r,g=vh(h[e],o),{props:{component:p,...y},internalRef:x}=Sh({className:n,...c,externalForwardedProps:e==="root"?b:void 0,externalSlotProps:g}),w=Ze(x,g?.ref,t.ref),S=e==="root"?p||f:p,v=bh(m,{...e==="root"&&!f&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...y,...S&&!l&&{as:S},...S&&l&&{component:S},ref:w},o);return[m,v]}function cC(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 wh(e,t,n,r){const o=e[t];if(o==null||!Number.isInteger(o)){const s=cC(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Ch(e,t,n,r){return e[t]===void 0?null:wh(e,t,n,r)}function fc(){return null}Ch.isRequired=wh,fc.isRequired=fc;const Bs=process.env.NODE_ENV==="production"?fc:Ch;function dC(e){return ue("MuiPaper",e)}ce("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 uC=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return pe(s,dC,o)},pC=Y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(fe(({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)"}}]}))),Kt=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiPaper"}),o=Yt(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:f="elevation",...u}=r,h={...r,component:a,elevation:l,square:c,variant:f},b=uC(h);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
|
-
`)),d.jsx(
|
|
63
|
-
`))}return!1}class
|
|
57
|
+
export default theme;`}function bh(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const Qw=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function Zw(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:qs(t,Qw(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${bh(n)})`:Ks(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${bh(n)})`:Ys(t,n)}})}function yc(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:s={},transitions:a={},typography:l={},shape:c,colorSpace:p,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":cn(20));const h=mc({...s,colorSpace:p}),v=ic(e);let b=bt(v,{mixins:zw(v.breakpoints,r),palette:h,shadows:Hw.slice(),typography:Rw(h,l),transitions:Gw(a),zIndex:{...Xw}});if(b=bt(b,u),b=t.reduce((g,f)=>bt(g,f),b),process.env.NODE_ENV!=="production"){const g=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(m,y)=>{let w;for(w in m){const x=m[w];if(g.includes(w)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const S=ge("",w);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${w}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${S}' syntax:`,JSON.stringify({root:{[`&.${S}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
58
|
+
`))}m[w]={}}}};Object.keys(b.components).forEach(m=>{const y=b.components[m].styleOverrides;y&&m.startsWith("Mui")&&f(y,m)})}return b.unstable_sxConfig={...Go,...u?.unstable_sxConfig},b.unstable_sx=function(f){return lr({sx:f,theme:this})},b.toRuntimeSource=yh,Zw(b),b}function bc(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 eC=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=bc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function vh(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function xh(e){return e==="dark"?eC:[]}function tC(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:i,...s}=e,a=mc({...t,colorSpace:i});return{palette:a,opacity:{...vh(a.mode),...n},overlays:r||xh(a.mode),...s}}function nC(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 rC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],oC=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let s=i;if(i==="class"&&(s=".%s"),i==="data"&&(s="[data-%s]"),i?.startsWith("data-")&&!i.includes("%s")&&(s=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return rC(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:s?{[s.replace("%s",t)]:a,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function iC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function Zo(e){return typeof e!="string"||!e.startsWith("hsl")?e:rh(e)}function $n(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Jo(Zo(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 sC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const hn=e=>{try{return e()}catch{}},aC=(e="mui")=>Ow(e);function vc(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;const s=i==="dark"?"dark":"light";if(!r){t[i]=tC({...n,palette:{mode:s,...n?.palette},colorSpace:e});return}const{palette:a,...l}=yc({...r,palette:{mode:s,...n?.palette},colorSpace:e});return t[i]={...n,palette:a,opacity:{...vh(s),...n?.opacity},overlays:n?.overlays||xh(s)},l}function lC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:s="mui",nativeColor:a=!1,shouldSkipGeneratingVar:l=nC,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:p=":root",...u}=e,h=Object.keys(n)[0],v=r||(n.light&&h!=="light"?"light":h),b=aC(s),{[v]:g,light:f,dark:m,...y}=n,w={...y};let x=g;if((v==="dark"&&!("dark"in n)||v==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${v}\` option is either missing or invalid.`:cn(21,v));let S;a&&(S="oklch");const C=vc(S,w,x,u,v);f&&!w.light&&vc(S,w,f,void 0,"light"),m&&!w.dark&&vc(S,w,m,void 0,"dark");let O={defaultColorScheme:v,...C,cssVarPrefix:s,colorSchemeSelector:c,rootSelector:p,getCssVar:b,colorSchemes:w,font:{...Lw(C.typography),...C.font},spacing:sC(u.spacing)};Object.keys(O.colorSchemes).forEach(L=>{const T=O.colorSchemes[L].palette,k=D=>{const N=D.split("-"),B=N[1],I=N[2];return b(D,T[B][I])};T.mode==="light"&&(K(T.common,"background","#fff"),K(T.common,"onBackground","#000")),T.mode==="dark"&&(K(T.common,"background","#000"),K(T.common,"onBackground","#fff"));function _(D,N,B){if(S){let I;return D===dr&&(I=`transparent ${((1-B)*100).toFixed(0)}%`),D===Le&&(I=`#000 ${(B*100).toFixed(0)}%`),D===ze&&(I=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${S}, ${N}, ${I})`}return D(N,B)}if(iC(T,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),T.mode==="light"){K(T.Alert,"errorColor",_(Le,T.error.light,.6)),K(T.Alert,"infoColor",_(Le,T.info.light,.6)),K(T.Alert,"successColor",_(Le,T.success.light,.6)),K(T.Alert,"warningColor",_(Le,T.warning.light,.6)),K(T.Alert,"errorFilledBg",k("palette-error-main")),K(T.Alert,"infoFilledBg",k("palette-info-main")),K(T.Alert,"successFilledBg",k("palette-success-main")),K(T.Alert,"warningFilledBg",k("palette-warning-main")),K(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.main))),K(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.main))),K(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.main))),K(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.main))),K(T.Alert,"errorStandardBg",_(ze,T.error.light,.9)),K(T.Alert,"infoStandardBg",_(ze,T.info.light,.9)),K(T.Alert,"successStandardBg",_(ze,T.success.light,.9)),K(T.Alert,"warningStandardBg",_(ze,T.warning.light,.9)),K(T.Alert,"errorIconColor",k("palette-error-main")),K(T.Alert,"infoIconColor",k("palette-info-main")),K(T.Alert,"successIconColor",k("palette-success-main")),K(T.Alert,"warningIconColor",k("palette-warning-main")),K(T.AppBar,"defaultBg",k("palette-grey-100")),K(T.Avatar,"defaultBg",k("palette-grey-400")),K(T.Button,"inheritContainedBg",k("palette-grey-300")),K(T.Button,"inheritContainedHoverBg",k("palette-grey-A100")),K(T.Chip,"defaultBorder",k("palette-grey-400")),K(T.Chip,"defaultAvatarColor",k("palette-grey-700")),K(T.Chip,"defaultIconColor",k("palette-grey-700")),K(T.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(T.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(T.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(T.LinearProgress,"primaryBg",_(ze,T.primary.main,.62)),K(T.LinearProgress,"secondaryBg",_(ze,T.secondary.main,.62)),K(T.LinearProgress,"errorBg",_(ze,T.error.main,.62)),K(T.LinearProgress,"infoBg",_(ze,T.info.main,.62)),K(T.LinearProgress,"successBg",_(ze,T.success.main,.62)),K(T.LinearProgress,"warningBg",_(ze,T.warning.main,.62)),K(T.Skeleton,"bg",S?_(dr,T.text.primary,.11):`rgba(${k("palette-text-primaryChannel")} / 0.11)`),K(T.Slider,"primaryTrack",_(ze,T.primary.main,.62)),K(T.Slider,"secondaryTrack",_(ze,T.secondary.main,.62)),K(T.Slider,"errorTrack",_(ze,T.error.main,.62)),K(T.Slider,"infoTrack",_(ze,T.info.main,.62)),K(T.Slider,"successTrack",_(ze,T.success.main,.62)),K(T.Slider,"warningTrack",_(ze,T.warning.main,.62));const D=S?_(Le,T.background.default,.6825):Gs(T.background.default,.8);K(T.SnackbarContent,"bg",D),K(T.SnackbarContent,"color",hn(()=>S?gc.text.primary:T.getContrastText(D))),K(T.SpeedDialAction,"fabHoverBg",Gs(T.background.paper,.15)),K(T.StepConnector,"border",k("palette-grey-400")),K(T.StepContent,"border",k("palette-grey-400")),K(T.Switch,"defaultColor",k("palette-common-white")),K(T.Switch,"defaultDisabledColor",k("palette-grey-100")),K(T.Switch,"primaryDisabledColor",_(ze,T.primary.main,.62)),K(T.Switch,"secondaryDisabledColor",_(ze,T.secondary.main,.62)),K(T.Switch,"errorDisabledColor",_(ze,T.error.main,.62)),K(T.Switch,"infoDisabledColor",_(ze,T.info.main,.62)),K(T.Switch,"successDisabledColor",_(ze,T.success.main,.62)),K(T.Switch,"warningDisabledColor",_(ze,T.warning.main,.62)),K(T.TableCell,"border",_(ze,_(dr,T.divider,1),.88)),K(T.Tooltip,"bg",_(dr,T.grey[700],.92))}if(T.mode==="dark"){K(T.Alert,"errorColor",_(ze,T.error.light,.6)),K(T.Alert,"infoColor",_(ze,T.info.light,.6)),K(T.Alert,"successColor",_(ze,T.success.light,.6)),K(T.Alert,"warningColor",_(ze,T.warning.light,.6)),K(T.Alert,"errorFilledBg",k("palette-error-dark")),K(T.Alert,"infoFilledBg",k("palette-info-dark")),K(T.Alert,"successFilledBg",k("palette-success-dark")),K(T.Alert,"warningFilledBg",k("palette-warning-dark")),K(T.Alert,"errorFilledColor",hn(()=>T.getContrastText(T.error.dark))),K(T.Alert,"infoFilledColor",hn(()=>T.getContrastText(T.info.dark))),K(T.Alert,"successFilledColor",hn(()=>T.getContrastText(T.success.dark))),K(T.Alert,"warningFilledColor",hn(()=>T.getContrastText(T.warning.dark))),K(T.Alert,"errorStandardBg",_(Le,T.error.light,.9)),K(T.Alert,"infoStandardBg",_(Le,T.info.light,.9)),K(T.Alert,"successStandardBg",_(Le,T.success.light,.9)),K(T.Alert,"warningStandardBg",_(Le,T.warning.light,.9)),K(T.Alert,"errorIconColor",k("palette-error-main")),K(T.Alert,"infoIconColor",k("palette-info-main")),K(T.Alert,"successIconColor",k("palette-success-main")),K(T.Alert,"warningIconColor",k("palette-warning-main")),K(T.AppBar,"defaultBg",k("palette-grey-900")),K(T.AppBar,"darkBg",k("palette-background-paper")),K(T.AppBar,"darkColor",k("palette-text-primary")),K(T.Avatar,"defaultBg",k("palette-grey-600")),K(T.Button,"inheritContainedBg",k("palette-grey-800")),K(T.Button,"inheritContainedHoverBg",k("palette-grey-700")),K(T.Chip,"defaultBorder",k("palette-grey-700")),K(T.Chip,"defaultAvatarColor",k("palette-grey-300")),K(T.Chip,"defaultIconColor",k("palette-grey-300")),K(T.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(T.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(T.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(T.LinearProgress,"primaryBg",_(Le,T.primary.main,.5)),K(T.LinearProgress,"secondaryBg",_(Le,T.secondary.main,.5)),K(T.LinearProgress,"errorBg",_(Le,T.error.main,.5)),K(T.LinearProgress,"infoBg",_(Le,T.info.main,.5)),K(T.LinearProgress,"successBg",_(Le,T.success.main,.5)),K(T.LinearProgress,"warningBg",_(Le,T.warning.main,.5)),K(T.Skeleton,"bg",S?_(dr,T.text.primary,.13):`rgba(${k("palette-text-primaryChannel")} / 0.13)`),K(T.Slider,"primaryTrack",_(Le,T.primary.main,.5)),K(T.Slider,"secondaryTrack",_(Le,T.secondary.main,.5)),K(T.Slider,"errorTrack",_(Le,T.error.main,.5)),K(T.Slider,"infoTrack",_(Le,T.info.main,.5)),K(T.Slider,"successTrack",_(Le,T.success.main,.5)),K(T.Slider,"warningTrack",_(Le,T.warning.main,.5));const D=S?_(ze,T.background.default,.985):Gs(T.background.default,.98);K(T.SnackbarContent,"bg",D),K(T.SnackbarContent,"color",hn(()=>S?dh.text.primary:T.getContrastText(D))),K(T.SpeedDialAction,"fabHoverBg",Gs(T.background.paper,.15)),K(T.StepConnector,"border",k("palette-grey-600")),K(T.StepContent,"border",k("palette-grey-600")),K(T.Switch,"defaultColor",k("palette-grey-300")),K(T.Switch,"defaultDisabledColor",k("palette-grey-600")),K(T.Switch,"primaryDisabledColor",_(Le,T.primary.main,.55)),K(T.Switch,"secondaryDisabledColor",_(Le,T.secondary.main,.55)),K(T.Switch,"errorDisabledColor",_(Le,T.error.main,.55)),K(T.Switch,"infoDisabledColor",_(Le,T.info.main,.55)),K(T.Switch,"successDisabledColor",_(Le,T.success.main,.55)),K(T.Switch,"warningDisabledColor",_(Le,T.warning.main,.55)),K(T.TableCell,"border",_(Le,_(dr,T.divider,1),.68)),K(T.Tooltip,"bg",_(dr,T.grey[700],.92))}$n(T.background,"default"),$n(T.background,"paper"),$n(T.common,"background"),$n(T.common,"onBackground"),$n(T,"divider"),Object.keys(T).forEach(D=>{const N=T[D];D!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&K(T[D],"mainChannel",Jo(Zo(N.main))),N.light&&K(T[D],"lightChannel",Jo(Zo(N.light))),N.dark&&K(T[D],"darkChannel",Jo(Zo(N.dark))),N.contrastText&&K(T[D],"contrastTextChannel",Jo(Zo(N.contrastText))),D==="text"&&($n(T[D],"primary"),$n(T[D],"secondary")),D==="action"&&(N.active&&$n(T[D],"active"),N.selected&&$n(T[D],"selected")))})}),O=t.reduce((L,T)=>bt(L,T),O);const P={prefix:s,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:oC(O),enableContrastVars:a},{vars:$,generateThemeVars:A,generateStyleSheets:j}=Nw(O,P);return O.vars=$,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([L,T])=>{O[L]=T}),O.generateThemeVars=A,O.generateStyleSheets=j,O.generateSpacing=function(){return Vf(u.spacing,rc(this))},O.getColorSchemeSelector=Iw(c),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=l,O.unstable_sxConfig={...Go,...u?.unstable_sxConfig},O.unstable_sx=function(T){return lr({sx:T,theme:this})},O.toRuntimeSource=yh,O}function Sh(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:mc({...n===!0?{}:n.palette,mode:t})})}function xc(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:s=n?.mode,...a}=e,l=s||"light",c=i?.[l],p={...i,...n?{[l]:{...typeof c!="boolean"&&c,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return yc(e,...t);let u=n;"palette"in e||p[l]&&(p[l]!==!0?u=p[l].palette:l==="dark"&&(u={mode:"dark"}));const h=yc({...e,palette:u},...t);return h.defaultColorScheme=l,h.colorSchemes=p,h.palette.mode==="light"&&(h.colorSchemes.light={...p.light!==!0&&p.light,palette:h.palette},Sh(h,"dark",p.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:h.palette},Sh(h,"light",p.light)),h}return!n&&!("light"in p)&&l==="light"&&(p.light=!0),lC({...a,colorSchemes:p,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}const Sc=xc();function en(){const e=sc(Sc);return process.env.NODE_ENV!=="production"&&E.useDebugValue(e),e[zo]||e}function ei(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vt=e=>ei(e)&&e!=="classes",X=cw({themeId:zo,defaultTheme:Sc,rootShouldForwardProp:vt});function wc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function wh(e){return d.jsx(Hf,{...e,defaultTheme:Sc,themeId:zo})}process.env.NODE_ENV!=="production"&&(wh.propTypes={styles:o.oneOfType([o.array,o.func,o.number,o.object,o.string,o.bool])});function cC(e){return function(n){return d.jsx(wh,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function dC(){return qf}const fe=Tw;process.env.NODE_ENV!=="production"&&(o.node,o.object.isRequired);function be(e){return Cw(e)}function uC(e){return ge("MuiSvgIcon",e)}he("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pC=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Q(t)}`,`fontSize${Q(n)}`]};return me(i,uC,r)},fC=X("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Q(n.color)}`],t[`fontSize${Q(n.fontSize)}`]]}})(fe(({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=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiSvgIcon"}),{children:i,className:s,color:a="inherit",component:l="svg",fontSize:c="medium",htmlColor:p,inheritViewBox:u=!1,titleAccess:h,viewBox:v="0 0 24 24",...b}=r,g=E.isValidElement(i)&&i.type==="svg",f={...r,color:a,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:g},m={};u||(m.viewBox=v);const y=pC(f);return d.jsxs(fC,{as:l,className:le(y.root,s),focusable:"false",color:p,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n,...m,...b,...g&&i.props,ownerState:f,children:[g?i.props.children:i,h?d.jsx("title",{children:h}):null]})});process.env.NODE_ENV!=="production"&&(ti.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,fontSize:o.oneOfType([o.oneOf(["inherit","large","medium","small"]),o.string]),htmlColor:o.string,inheritViewBox:o.bool,shapeRendering:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),titleAccess:o.string,viewBox:o.string}),ti.muiName="SvgIcon";function Ge(e,t){function n(r,i){return d.jsx(ti,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:i,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ti.muiName,E.memo(E.forwardRef(n))}function Ch(e,t=166){let n;function r(...i){const s=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function ct(e){return e&&e.ownerDocument||document}function Dn(e){return ct(e).defaultView||window}function Eh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Yr(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:s}=E.useRef(t!==void 0),[a,l]=E.useState(n),c=s?t:a;if(process.env.NODE_ENV!=="production"){E.useEffect(()=>{s!==(t!==void 0)&&console.error([`MUI: A component is changing the ${s?"":"un"}controlled ${i} state of ${r} to be ${s?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
60
|
+
`))},[i,r,t]);const{current:u}=E.useRef(n);E.useEffect(()=>{!s&&JSON.stringify(n)!==JSON.stringify(u)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
61
|
+
`))},[JSON.stringify(n)])}const p=E.useCallback(u=>{s||l(u)},[]);return[c,p]}function St(e){const t=E.useRef(e);return Wt(()=>{t.current=e}),E.useRef((...n)=>(0,t.current)(...n)).current}function at(...e){const t=E.useRef(void 0),n=E.useCallback(r=>{const i=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const a=s,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return s.current=r,()=>{s.current=null}});return()=>{i.forEach(s=>s?.())}},e);return E.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function hC(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function Th(e,t){if(!e)return t;function n(a,l){const c={};return Object.keys(l).forEach(p=>{hC(p,l[p])&&typeof a[p]=="function"&&(c[p]=(...u)=>{a[p](...u),l[p](...u)})}),c}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,c=typeof e=="function"?e({...a,...l}):e,p=le(a?.className,l?.className,c?.className),u=n(c,l);return{...l,...c,...u,...!!p&&{className:p},...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 r=t,i=n(e,r),s=le(r?.className,e?.className);return{...t,...e,...i,...!!s&&{className:s},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Xs={exports:{}},Ue={};var Oh;function gC(){if(Oh)return Ue;Oh=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function g(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case e:switch(f=f.type,f){case n:case i:case r:case c:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case h:case u:return f;case s:return f;default:return m}}case t:return m}}}return Ue.ContextConsumer=s,Ue.ContextProvider=a,Ue.Element=e,Ue.ForwardRef=l,Ue.Fragment=n,Ue.Lazy=h,Ue.Memo=u,Ue.Portal=t,Ue.Profiler=i,Ue.StrictMode=r,Ue.Suspense=c,Ue.SuspenseList=p,Ue.isContextConsumer=function(f){return g(f)===s},Ue.isContextProvider=function(f){return g(f)===a},Ue.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ue.isForwardRef=function(f){return g(f)===l},Ue.isFragment=function(f){return g(f)===n},Ue.isLazy=function(f){return g(f)===h},Ue.isMemo=function(f){return g(f)===u},Ue.isPortal=function(f){return g(f)===t},Ue.isProfiler=function(f){return g(f)===i},Ue.isStrictMode=function(f){return g(f)===r},Ue.isSuspense=function(f){return g(f)===c},Ue.isSuspenseList=function(f){return g(f)===p},Ue.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===i||f===r||f===c||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===u||f.$$typeof===a||f.$$typeof===s||f.$$typeof===l||f.$$typeof===b||f.getModuleId!==void 0)},Ue.typeOf=g,Ue}var He={};var Ph;function mC(){return Ph||(Ph=1,process.env.NODE_ENV!=="production"&&(function(){function e(f){if(typeof f=="object"&&f!==null){var m=f.$$typeof;switch(m){case t:switch(f=f.type,f){case r:case s:case i:case p:case u:case b:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case v:case h:return f;case a:return f;default:return m}}case n:return m}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");He.ContextConsumer=a,He.ContextProvider=l,He.Element=t,He.ForwardRef=c,He.Fragment=r,He.Lazy=v,He.Memo=h,He.Portal=n,He.Profiler=s,He.StrictMode=i,He.Suspense=p,He.SuspenseList=u,He.isContextConsumer=function(f){return e(f)===a},He.isContextProvider=function(f){return e(f)===l},He.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},He.isForwardRef=function(f){return e(f)===c},He.isFragment=function(f){return e(f)===r},He.isLazy=function(f){return e(f)===v},He.isMemo=function(f){return e(f)===h},He.isPortal=function(f){return e(f)===n},He.isProfiler=function(f){return e(f)===s},He.isStrictMode=function(f){return e(f)===i},He.isSuspense=function(f){return e(f)===p},He.isSuspenseList=function(f){return e(f)===u},He.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===i||f===p||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},He.typeOf=e})()),He}var kh;function yC(){return kh||(kh=1,process.env.NODE_ENV==="production"?Xs.exports=gC():Xs.exports=mC()),Xs.exports}var Cc=yC();function tn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Nh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ec(e,t){return Ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ec(e,t)}function Ih(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ec(e,t)}const Ah={disabled:!1};var bC=process.env.NODE_ENV!=="production"?o.oneOfType([o.number,o.shape({enter:o.number,exit:o.number,appear:o.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&o.oneOfType([o.string,o.shape({enter:o.string,exit:o.string,active:o.string}),o.shape({enter:o.string,enterDone:o.string,enterActive:o.string,exit:o.string,exitDone:o.string,exitActive:o.string})]);const Js=F.createContext(null);var vC=function(t){return t.scrollTop},ni="unmounted",pr="exited",fr="entering",Kr="entered",Tc="exiting",gn=(function(e){Ih(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=pr,s.appearStatus=fr):c=Kr:r.unmountOnExit||r.mountOnEnter?c=ni:c=pr,s.state={status:c},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===ni?{status:pr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==fr&&a!==Kr&&(s=fr):(a===fr||a===Kr)&&(s=Tc)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===fr){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:lo.findDOMNode(this);a&&vC(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===pr&&this.setState({status:ni})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[lo.findDOMNode(this),l],p=c[0],u=c[1],h=this.getTimeouts(),v=l?h.appear:h.enter;if(!i&&!a||Ah.disabled){this.safeSetState({status:Kr},function(){s.props.onEntered(p)});return}this.props.onEnter(p,u),this.safeSetState({status:fr},function(){s.props.onEntering(p,u),s.onTransitionEnd(v,function(){s.safeSetState({status:Kr},function(){s.props.onEntered(p,u)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:lo.findDOMNode(this);if(!s||Ah.disabled){this.safeSetState({status:pr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Tc},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:pr},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:lo.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],p=c[0],u=c[1];this.props.addEndListener(p,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ni)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Nh(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return F.createElement(Js.Provider,{value:null},typeof a=="function"?a(i,l):F.cloneElement(F.Children.only(a),l))},t})(F.Component);gn.contextType=Js,gn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:o.shape({current:typeof Element>"u"?o.any:function(e,t,n,r,i,s){var a=e[t];return o.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,s)}}),children:o.oneOfType([o.func.isRequired,o.element.isRequired]).isRequired,in:o.bool,mountOnEnter:o.bool,unmountOnExit:o.bool,appear:o.bool,enter:o.bool,exit:o.bool,timeout:function(t){var n=bC;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return n.apply(void 0,[t].concat(i))},addEndListener:o.func,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}:{};function Gr(){}gn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gr,onEntering:Gr,onEntered:Gr,onExit:Gr,onExiting:Gr,onExited:Gr},gn.UNMOUNTED=ni,gn.EXITED=pr,gn.ENTERING=fr,gn.ENTERED=Kr,gn.EXITING=Tc;function xC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(e,t){var n=function(s){return t&&F.isValidElement(s)?t(s):s},r=Object.create(null);return e&&F.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function SC(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),i=[];for(var s in e)s in t?i.length&&(r[s]=i,i=[]):i.push(s);var a,l={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var p=r[c][a];l[r[c][a]]=n(p)}l[c]=n(c)}for(a=0;a<i.length;a++)l[i[a]]=n(i[a]);return l}function hr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function wC(e,t){return Oc(e.children,function(n){return F.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:hr(n,"appear",e),enter:hr(n,"enter",e),exit:hr(n,"exit",e)})})}function CC(e,t,n){var r=Oc(e.children),i=SC(t,r);return Object.keys(i).forEach(function(s){var a=i[s];if(F.isValidElement(a)){var l=s in t,c=s in r,p=t[s],u=F.isValidElement(p)&&!p.props.in;c&&(!l||u)?i[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:hr(a,"exit",e),enter:hr(a,"enter",e)}):!c&&l&&!u?i[s]=F.cloneElement(a,{in:!1}):c&&l&&F.isValidElement(p)&&(i[s]=F.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:hr(a,"exit",e),enter:hr(a,"enter",e)}))}}),i}var EC=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},TC={component:"div",childFactory:function(t){return t}},Pc=(function(e){Ih(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var a=s.handleExited.bind(xC(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,s){var a=s.children,l=s.handleExited,c=s.firstRender;return{children:c?wC(i,l):CC(i,a,l),firstRender:!1}},n.handleExited=function(i,s){var a=Oc(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(s),this.mounted&&this.setState(function(l){var c=xs({},l.children);return delete c[i.key],{children:c}}))},n.render=function(){var i=this.props,s=i.component,a=i.childFactory,l=Nh(i,["component","childFactory"]),c=this.state.contextValue,p=EC(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,s===null?F.createElement(Js.Provider,{value:c},p):F.createElement(Js.Provider,{value:c},F.createElement(s,l,p))},t})(F.Component);Pc.propTypes=process.env.NODE_ENV!=="production"?{component:o.any,children:o.node,appear:o.bool,enter:o.bool,exit:o.bool,childFactory:o.func}:{},Pc.defaultProps=TC;const Mh={};function _h(e,t){const n=E.useRef(Mh);return n.current===Mh&&(n.current=e(t)),n}const OC=[];function PC(e){E.useEffect(e,OC)}class Qs{static create(){return new Qs}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function gr(){const e=_h(Qs.create).current;return PC(e.disposeEffect),e}function kC(e){const{prototype:t={}}=e;return!!t.isReactComponent}function NC(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;return typeof s=="function"&&!kC(s)&&(l="Did you accidentally provide a plain function component instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const kc=tn(o.elementType,NC),$h=e=>e.scrollTop;function Zs(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function Xn(e){return typeof e=="string"}function Dh(e,t,n){return e===void 0||Xn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Fh(e,t,n){return typeof e=="function"?e(t,n):e}function mr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function jh(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Lh(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const b=le(n?.className,s,i?.className,r?.className),g={...n?.style,...i?.style,...r?.style},f={...n,...i,...r};return b.length>0&&(f.className=b),Object.keys(g).length>0&&(f.style=g),{props:f,internalRef:void 0}}const a=mr({...i,...r}),l=jh(r),c=jh(i),p=t(a),u=le(p?.className,n?.className,s,i?.className,r?.className),h={...p?.style,...n?.style,...i?.style,...r?.style},v={...p,...n,...c,...l};return u.length>0&&(v.className=u),Object.keys(h).length>0&&(v.style=h),{props:v,internalRef:p.ref}}function Se(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:s,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...c}=t,{component:p,slots:u={[e]:void 0},slotProps:h={[e]:void 0},...v}=s,b=u[e]||r,g=Fh(h[e],i),{props:{component:f,...m},internalRef:y}=Lh({className:n,...c,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:g}),w=at(y,g?.ref,t.ref),x=e==="root"?f||p:f,S=Dh(b,{...e==="root"&&!p&&!u[e]&&a,...e!=="root"&&!u[e]&&a,...m,...x&&!l&&{as:x},...x&&l&&{component:x},ref:w},i);return[b,S]}function IC(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 zh(e,t,n,r){const i=e[t];if(i==null||!Number.isInteger(i)){const s=IC(i);return new RangeError(`Invalid ${r} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function Bh(e,t,n,r){return e[t]===void 0?null:zh(e,t,n,r)}function Nc(){return null}Bh.isRequired=zh,Nc.isRequired=Nc;const ea=process.env.NODE_ENV==="production"?Nc:Bh;function AC(e){return ge("MuiPaper",e)}he("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 MC=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return me(s,AC,i)},_C=X("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(fe(({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)"}}]}))),nn=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiPaper"}),i=en(),{className:s,component:a="div",elevation:l=1,square:c=!1,variant:p="elevation",...u}=r,h={...r,component:a,elevation:l,square:c,variant:p},v=MC(h);return process.env.NODE_ENV!=="production"&&i.shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
62
|
+
`)),d.jsx(_C,{as:a,ownerState:h,className:le(v.root,s),ref:n,...u,style:{...p==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[l],...i.vars&&{"--Paper-overlay":i.vars.overlays?.[l]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${qs("#fff",bc(l))}, ${qs("#fff",bc(l))})`}},...u.style}})});process.env.NODE_ENV!=="production"&&(nn.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,elevation:tn(ea,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["elevation","outlined"]),o.string])});const wt=o.oneOfType([o.func,o.object]);function Xr(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 ta{static create(){return new ta}static use(){const t=_h(ta.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=DC(),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 $C(){return ta.use()}function DC(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function Rh(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:s,rippleSize:a,in:l,onExited:c,timeout:p}=e,[u,h]=E.useState(!1),v=le(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:a,height:a,top:-(a/2)+s,left:-(a/2)+i},g=le(n.child,u&&n.childLeaving,r&&n.childPulsate);return!l&&!u&&h(!0),E.useEffect(()=>{if(!l&&c!=null){const f=setTimeout(c,p);return()=>{clearTimeout(f)}}},[c,l,p]),d.jsx("span",{className:v,style:b,children:d.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(Rh.propTypes={classes:o.object.isRequired,className:o.string,in:o.bool,onExited:o.func,pulsate:o.bool,rippleSize:o.number,rippleX:o.number,rippleY:o.number,timeout:o.number.isRequired});const Vt=he("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ic=550,FC=80,jC=qn`
|
|
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
|
-
`,
|
|
73
|
+
`,LC=qn`
|
|
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
|
-
`,
|
|
81
|
+
`,zC=qn`
|
|
82
82
|
0% {
|
|
83
83
|
transform: scale(1);
|
|
84
84
|
}
|
|
@@ -90,23 +90,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
90
90
|
100% {
|
|
91
91
|
transform: scale(1);
|
|
92
92
|
}
|
|
93
|
-
`,
|
|
93
|
+
`,BC=X("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),RC=X(Rh,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
94
94
|
opacity: 0;
|
|
95
95
|
position: absolute;
|
|
96
96
|
|
|
97
|
-
&.${
|
|
97
|
+
&.${Vt.rippleVisible} {
|
|
98
98
|
opacity: 0.3;
|
|
99
99
|
transform: scale(1);
|
|
100
|
-
animation-name: ${
|
|
101
|
-
animation-duration: ${
|
|
100
|
+
animation-name: ${jC};
|
|
101
|
+
animation-duration: ${Ic}ms;
|
|
102
102
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
&.${
|
|
105
|
+
&.${Vt.ripplePulsate} {
|
|
106
106
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
& .${
|
|
109
|
+
& .${Vt.child} {
|
|
110
110
|
opacity: 1;
|
|
111
111
|
display: block;
|
|
112
112
|
width: 100%;
|
|
@@ -115,25 +115,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
115
115
|
background-color: currentColor;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
& .${
|
|
118
|
+
& .${Vt.childLeaving} {
|
|
119
119
|
opacity: 0;
|
|
120
|
-
animation-name: ${
|
|
121
|
-
animation-duration: ${
|
|
120
|
+
animation-name: ${LC};
|
|
121
|
+
animation-duration: ${Ic}ms;
|
|
122
122
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
& .${
|
|
125
|
+
& .${Vt.childPulsate} {
|
|
126
126
|
position: absolute;
|
|
127
127
|
/* @noflip */
|
|
128
128
|
left: 0px;
|
|
129
129
|
top: 0;
|
|
130
|
-
animation-name: ${
|
|
130
|
+
animation-name: ${zC};
|
|
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
|
-
`,
|
|
136
|
+
`,Wh=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:s={},className:a,...l}=r,[c,p]=E.useState([]),u=E.useRef(0),h=E.useRef(null);E.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const v=E.useRef(!1),b=gr(),g=E.useRef(null),f=E.useRef(null),m=E.useCallback(S=>{const{pulsate:C,rippleX:O,rippleY:P,rippleSize:$,cb:A}=S;p(j=>[...j,d.jsx(RC,{classes:{ripple:le(s.ripple,Vt.ripple),rippleVisible:le(s.rippleVisible,Vt.rippleVisible),ripplePulsate:le(s.ripplePulsate,Vt.ripplePulsate),child:le(s.child,Vt.child),childLeaving:le(s.childLeaving,Vt.childLeaving),childPulsate:le(s.childPulsate,Vt.childPulsate)},timeout:Ic,pulsate:C,rippleX:O,rippleY:P,rippleSize:$},u.current)]),u.current+=1,h.current=A},[s]),y=E.useCallback((S={},C={},O=()=>{})=>{const{pulsate:P=!1,center:$=i||C.pulsate,fakeElement:A=!1}=C;if(S?.type==="mousedown"&&v.current){v.current=!1;return}S?.type==="touchstart"&&(v.current=!0);const j=A?null:f.current,L=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let T,k,_;if($||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)T=Math.round(L.width/2),k=Math.round(L.height/2);else{const{clientX:D,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;T=Math.round(D-L.left),k=Math.round(N-L.top)}if($)_=Math.sqrt((2*L.width**2+L.height**2)/3),_%2===0&&(_+=1);else{const D=Math.max(Math.abs((j?j.clientWidth:0)-T),T)*2+2,N=Math.max(Math.abs((j?j.clientHeight:0)-k),k)*2+2;_=Math.sqrt(D**2+N**2)}S?.touches?g.current===null&&(g.current=()=>{m({pulsate:P,rippleX:T,rippleY:k,rippleSize:_,cb:O})},b.start(FC,()=>{g.current&&(g.current(),g.current=null)})):m({pulsate:P,rippleX:T,rippleY:k,rippleSize:_,cb:O})},[i,m,b]),w=E.useCallback(()=>{y({},{pulsate:!0})},[y]),x=E.useCallback((S,C)=>{if(b.clear(),S?.type==="touchend"&&g.current){g.current(),g.current=null,b.start(0,()=>{x(S,C)});return}g.current=null,p(O=>O.length>0?O.slice(1):O),h.current=C},[b]);return E.useImperativeHandle(n,()=>({pulsate:w,start:y,stop:x}),[w,y,x]),d.jsx(BC,{className:le(Vt.root,s.root,a),ref:f,...l,children:d.jsx(Pc,{component:null,exit:!0,children:c})})});process.env.NODE_ENV!=="production"&&(Wh.propTypes={center:o.bool,classes:o.object,className:o.string});function WC(e){return ge("MuiButtonBase",e)}const VC=he("MuiButtonBase",["root","disabled","focusVisible"]),UC=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=me({root:["root",t&&"disabled",n&&"focusVisible"]},WC,i);return n&&r&&(a.root+=` ${r}`),a},HC=X("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${VC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ri=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:s=!1,children:a,className:l,component:c="button",disabled:p=!1,disableRipple:u=!1,disableTouchRipple:h=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:g="a",onBlur:f,onClick:m,onContextMenu:y,onDragLeave:w,onFocus:x,onFocusVisible:S,onKeyDown:C,onKeyUp:O,onMouseDown:P,onMouseLeave:$,onMouseUp:A,onTouchEnd:j,onTouchMove:L,onTouchStart:T,tabIndex:k=0,TouchRippleProps:_,touchRippleRef:D,type:N,...B}=r,I=E.useRef(null),W=$C(),z=at(W.ref,D),[R,Y]=E.useState(!1);p&&R&&Y(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{Y(!0),I.current.focus()}}),[]);const te=W.shouldMount&&!u&&!p;E.useEffect(()=>{R&&v&&!u&&W.pulsate()},[u,v,R,W]);const G=Fn(W,"start",P,h),q=Fn(W,"stop",y,h),J=Fn(W,"stop",w,h),oe=Fn(W,"stop",A,h),re=Fn(W,"stop",ae=>{R&&ae.preventDefault(),$&&$(ae)},h),ie=Fn(W,"start",T,h),ee=Fn(W,"stop",j,h),ce=Fn(W,"stop",L,h),H=Fn(W,"stop",ae=>{Xr(ae.target)||Y(!1),f&&f(ae)},!1),de=St(ae=>{I.current||(I.current=ae.currentTarget),Xr(ae.target)&&(Y(!0),S&&S(ae)),x&&x(ae)}),se=()=>{const ae=I.current;return c&&c!=="button"&&!(ae.tagName==="A"&&ae.href)},ve=St(ae=>{v&&!ae.repeat&&R&&ae.key===" "&&W.stop(ae,()=>{W.start(ae)}),ae.target===ae.currentTarget&&se()&&ae.key===" "&&ae.preventDefault(),C&&C(ae),ae.target===ae.currentTarget&&se()&&ae.key==="Enter"&&!p&&(ae.preventDefault(),m&&m(ae))}),Be=St(ae=>{v&&ae.key===" "&&R&&!ae.defaultPrevented&&W.stop(ae,()=>{W.pulsate(ae)}),O&&O(ae),m&&ae.target===ae.currentTarget&&se()&&ae.key===" "&&!ae.defaultPrevented&&m(ae)});let Te=c;Te==="button"&&(B.href||B.to)&&(Te=g);const Ne={};if(Te==="button"){const ae=!!B.formAction;Ne.type=N===void 0&&!ae?"button":N,Ne.disabled=p}else!B.href&&!B.to&&(Ne.role="button"),p&&(Ne["aria-disabled"]=p);const je=at(n,I),Re={...r,centerRipple:s,component:c,disabled:p,disableRipple:u,disableTouchRipple:h,focusRipple:v,tabIndex:k,focusVisible:R},Me=UC(Re);return d.jsxs(HC,{as:Te,className:le(Me.root,l),ownerState:Re,onBlur:H,onClick:m,onContextMenu:q,onFocus:de,onKeyDown:ve,onKeyUp:Be,onMouseDown:G,onMouseLeave:re,onMouseUp:oe,onDragLeave:J,onTouchEnd:ee,onTouchMove:ce,onTouchStart:ie,ref:je,tabIndex:p?-1:k,type:N,...Ne,...B,children:[a,te?d.jsx(Wh,{ref:z,center:s,..._}):null]})});function Fn(e,t,n,r=!1){return St(i=>(n&&n(i),r||e[t](i),!0))}process.env.NODE_ENV!=="production"&&(ri.propTypes={action:wt,centerRipple:o.bool,children:o.node,classes:o.object,className:o.string,component:kc,disabled:o.bool,disableRipple:o.bool,disableTouchRipple:o.bool,focusRipple:o.bool,focusVisibleClassName:o.string,formAction:o.oneOfType([o.func,o.string]),href:o.any,LinkComponent:o.elementType,onBlur:o.func,onClick:o.func,onContextMenu:o.func,onDragLeave:o.func,onFocus:o.func,onFocusVisible:o.func,onKeyDown:o.func,onKeyUp:o.func,onMouseDown:o.func,onMouseLeave:o.func,onMouseUp:o.func,onTouchEnd:o.func,onTouchMove:o.func,onTouchStart:o.func,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,TouchRippleProps:o.object,touchRippleRef:o.oneOfType([o.func,o.shape({current:o.shape({pulsate:o.func.isRequired,start:o.func.isRequired,stop:o.func.isRequired})})]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string])});function qC(e){return typeof e.main=="string"}function YC(e,t=[]){if(!qC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ot(e=[]){return([,t])=>t&&YC(t,e)}function KC(e){return ge("MuiCircularProgress",e)}he("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rn=44,Ac=qn`
|
|
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
|
-
`,
|
|
144
|
+
`,Mc=qn`
|
|
145
145
|
0% {
|
|
146
146
|
stroke-dasharray: 1px, 200px;
|
|
147
147
|
stroke-dashoffset: 0;
|
|
@@ -156,20 +156,20 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
156
156
|
stroke-dasharray: 1px, 200px;
|
|
157
157
|
stroke-dashoffset: -126px;
|
|
158
158
|
}
|
|
159
|
-
`,
|
|
160
|
-
animation: ${
|
|
161
|
-
`:null,
|
|
162
|
-
animation: ${
|
|
163
|
-
`:null,
|
|
164
|
-
`)):null),classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),id:i.string,loading:i.bool,loadingIndicator:i.node,size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function LC(e){return ue("MuiTypography",e)}const Ph=ce("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),BC={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},RC=Vw(),WC=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${X(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return pe(l,LC,a)},VC=Y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(et()).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${X(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}}]}))),kh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},W=E.forwardRef(function(t,n){const{color:r,...o}=he({props:t,name:"MuiTypography"}),s=!BC[r],a=RC({...o,...s&&{color:r}}),{align:l="inherit",className:c,component:f,gutterBottom:u=!1,noWrap:h=!1,paragraph:b=!1,variant:m="body1",variantMapping:g=kh,...p}=a,y={...a,align:l,color:r,className:c,component:f,gutterBottom:u,noWrap:h,paragraph:b,variant:m,variantMapping:g},x=f||(b?"p":g[m]||kh[m])||"span",w=WC(y);return d.jsx(VC,{as:x,ref:n,className:ie(w.root,c),...p,ownerState:y,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...p.style}})});process.env.NODE_ENV!=="production"&&(W.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),i.string]),component:i.elementType,gutterBottom:i.bool,noWrap:i.bool,paragraph:i.bool,style:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),i.string]),variantMapping:i.object});function Pn(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Et="top",jt="bottom",zt="right",Tt="left",yc="auto",Ro=[Et,jt,zt,Tt],jr="start",Wo="end",UC="clippingParents",Nh="viewport",Vo="popper",HC="reference",Ih=Ro.reduce(function(e,t){return e.concat([t+"-"+jr,t+"-"+Wo])},[]),Ah=[].concat(Ro,[yc]).reduce(function(e,t){return e.concat([t,t+"-"+jr,t+"-"+Wo])},[]),qC="beforeRead",YC="read",KC="afterRead",GC="beforeMain",JC="main",XC="afterMain",QC="beforeWrite",ZC="write",eE="afterWrite",tE=[qC,YC,KC,GC,JC,XC,QC,ZC,eE];function ln(e){return e?(e.nodeName||"").toLowerCase():null}function At(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ar(e){var t=At(e).Element;return e instanceof t||e instanceof Element}function Lt(e){var t=At(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bc(e){if(typeof ShadowRoot>"u")return!1;var t=At(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Lt(s)||!ln(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function rE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,f){return c[f]="",c},{});!Lt(o)||!ln(o)||(Object.assign(o.style,l),Object.keys(s).forEach(function(c){o.removeAttribute(c)}))})}}const oE={name:"applyStyles",enabled:!0,phase:"write",fn:nE,effect:rE,requires:["computeStyles"]};function cn(e){return e.split("-")[0]}var lr=Math.max,Us=Math.min,zr=Math.round;function vc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function _h(){return!/^((?!chrome|android).)*safari/i.test(vc())}function Lr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Lt(e)&&(o=e.offsetWidth>0&&zr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&zr(r.height)/e.offsetHeight||1);var a=ar(e)?At(e):window,l=a.visualViewport,c=!_h()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/o,u=(r.top+(c&&l?l.offsetTop:0))/s,h=r.width/o,b=r.height/s;return{width:h,height:b,top:u,right:f+h,bottom:u+b,left:f,x:f,y:u}}function xc(e){var t=Lr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Mh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function kn(e){return At(e).getComputedStyle(e)}function iE(e){return["table","td","th"].indexOf(ln(e))>=0}function Rn(e){return((ar(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hs(e){return ln(e)==="html"?e:e.assignedSlot||e.parentNode||(bc(e)?e.host:null)||Rn(e)}function $h(e){return!Lt(e)||kn(e).position==="fixed"?null:e.offsetParent}function sE(e){var t=/firefox/i.test(vc()),n=/Trident/i.test(vc());if(n&&Lt(e)){var r=kn(e);if(r.position==="fixed")return null}var o=Hs(e);for(bc(o)&&(o=o.host);Lt(o)&&["html","body"].indexOf(ln(o))<0;){var s=kn(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Uo(e){for(var t=At(e),n=$h(e);n&&iE(n)&&kn(n).position==="static";)n=$h(n);return n&&(ln(n)==="html"||ln(n)==="body"&&kn(n).position==="static")?t:n||sE(e)||t}function Sc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ho(e,t,n){return lr(e,Us(t,n))}function aE(e,t,n){var r=Ho(e,t,n);return r>n?n:r}function Dh(){return{top:0,right:0,bottom:0,left:0}}function Fh(e){return Object.assign({},Dh(),e)}function jh(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var lE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Fh(typeof t!="number"?t:jh(t,Ro))};function cE(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=cn(n.placement),c=Sc(l),f=[Tt,zt].indexOf(l)>=0,u=f?"height":"width";if(!(!s||!a)){var h=lE(o.padding,n),b=xc(s),m=c==="y"?Et:Tt,g=c==="y"?jt:zt,p=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],y=a[c]-n.rects.reference[c],x=Uo(s),w=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,S=p/2-y/2,v=h[m],C=w-b[u]-h[g],O=w/2-b[u]/2+S,P=Ho(v,O,C),$=c;n.modifiersData[r]=(t={},t[$]=P,t.centerOffset=P-O,t)}}function dE(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Mh(t.elements.popper,o)&&(t.elements.arrow=o))}const uE={name:"arrow",enabled:!0,phase:"main",fn:cE,effect:dE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Br(e){return e.split("-")[1]}var pE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fE(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:zr(n*o)/o||0,y:zr(r*o)/o||0}}function zh(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,h=e.isFixed,b=a.x,m=b===void 0?0:b,g=a.y,p=g===void 0?0:g,y=typeof u=="function"?u({x:m,y:p}):{x:m,y:p};m=y.x,p=y.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),S=Tt,v=Et,C=window;if(f){var O=Uo(n),P="clientHeight",$="clientWidth";if(O===At(n)&&(O=Rn(n),kn(O).position!=="static"&&l==="absolute"&&(P="scrollHeight",$="scrollWidth")),O=O,o===Et||(o===Tt||o===zt)&&s===Wo){v=jt;var A=h&&O===C&&C.visualViewport?C.visualViewport.height:O[P];p-=A-r.height,p*=c?1:-1}if(o===Tt||(o===Et||o===jt)&&s===Wo){S=zt;var B=h&&O===C&&C.visualViewport?C.visualViewport.width:O[$];m-=B-r.width,m*=c?1:-1}}var L=Object.assign({position:l},f&&pE),T=u===!0?fE({x:m,y:p},At(n)):{x:m,y:p};if(m=T.x,p=T.y,c){var N;return Object.assign({},L,(N={},N[v]=w?"0":"",N[S]=x?"0":"",N.transform=(C.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",N))}return Object.assign({},L,(t={},t[v]=w?p+"px":"",t[S]=x?m+"px":"",t.transform="",t))}function hE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,f={placement:cn(t.placement),variation:Br(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zh(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zh(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hE,data:{}};var qs={passive:!0};function mE(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,c=At(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(u){u.addEventListener("scroll",n.update,qs)}),l&&c.addEventListener("resize",n.update,qs),function(){s&&f.forEach(function(u){u.removeEventListener("scroll",n.update,qs)}),l&&c.removeEventListener("resize",n.update,qs)}}const yE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:mE,data:{}};var bE={left:"right",right:"left",bottom:"top",top:"bottom"};function Ys(e){return e.replace(/left|right|bottom|top/g,function(t){return bE[t]})}var vE={start:"end",end:"start"};function Lh(e){return e.replace(/start|end/g,function(t){return vE[t]})}function wc(e){var t=At(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cc(e){return Lr(Rn(e)).left+wc(e).scrollLeft}function xE(e,t){var n=At(e),r=Rn(e),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var f=_h();(f||!f&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+Cc(e),y:c}}function SE(e){var t,n=Rn(e),r=wc(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=lr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=lr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Cc(e),c=-r.scrollTop;return kn(o||n).direction==="rtl"&&(l+=lr(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Ec(e){var t=kn(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Bh(e){return["html","body","#document"].indexOf(ln(e))>=0?e.ownerDocument.body:Lt(e)&&Ec(e)?e:Bh(Hs(e))}function qo(e,t){var n;t===void 0&&(t=[]);var r=Bh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=At(r),a=o?[s].concat(s.visualViewport||[],Ec(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(qo(Hs(a)))}function Tc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wE(e,t){var n=Lr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Rh(e,t,n){return t===Nh?Tc(xE(e,n)):ar(t)?wE(t,n):Tc(SE(Rn(e)))}function CE(e){var t=qo(Hs(e)),n=["absolute","fixed"].indexOf(kn(e).position)>=0,r=n&&Lt(e)?Uo(e):e;return ar(r)?t.filter(function(o){return ar(o)&&Mh(o,r)&&ln(o)!=="body"}):[]}function EE(e,t,n,r){var o=t==="clippingParents"?CE(e):[].concat(t),s=[].concat(o,[n]),a=s[0],l=s.reduce(function(c,f){var u=Rh(e,f,r);return c.top=lr(u.top,c.top),c.right=Us(u.right,c.right),c.bottom=Us(u.bottom,c.bottom),c.left=lr(u.left,c.left),c},Rh(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wh(e){var t=e.reference,n=e.element,r=e.placement,o=r?cn(r):null,s=r?Br(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(o){case Et:c={x:a,y:t.y-n.height};break;case jt:c={x:a,y:t.y+t.height};break;case zt:c={x:t.x+t.width,y:l};break;case Tt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var f=o?Sc(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(s){case jr:c[f]=c[f]-(t[u]/2-n[u]/2);break;case Wo:c[f]=c[f]+(t[u]/2-n[u]/2);break}}return c}function Yo(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?UC:l,f=n.rootBoundary,u=f===void 0?Nh:f,h=n.elementContext,b=h===void 0?Vo:h,m=n.altBoundary,g=m===void 0?!1:m,p=n.padding,y=p===void 0?0:p,x=Fh(typeof y!="number"?y:jh(y,Ro)),w=b===Vo?HC:Vo,S=e.rects.popper,v=e.elements[g?w:b],C=EE(ar(v)?v:v.contextElement||Rn(e.elements.popper),c,u,a),O=Lr(e.elements.reference),P=Wh({reference:O,element:S,placement:o}),$=Tc(Object.assign({},S,P)),A=b===Vo?$:O,B={top:C.top-A.top+x.top,bottom:A.bottom-C.bottom+x.bottom,left:C.left-A.left+x.left,right:A.right-C.right+x.right},L=e.modifiersData.offset;if(b===Vo&&L){var T=L[o];Object.keys(B).forEach(function(N){var _=[zt,jt].indexOf(N)>=0?1:-1,D=[Et,jt].indexOf(N)>=0?"y":"x";B[N]+=T[D]*_})}return B}function TE(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?Ah:c,u=Br(r),h=u?l?Ih:Ih.filter(function(g){return Br(g)===u}):Ro,b=h.filter(function(g){return f.indexOf(g)>=0});b.length===0&&(b=h);var m=b.reduce(function(g,p){return g[p]=Yo(e,{placement:p,boundary:o,rootBoundary:s,padding:a})[cn(p)],g},{});return Object.keys(m).sort(function(g,p){return m[g]-m[p]})}function OE(e){if(cn(e)===yc)return[];var t=Ys(e);return[Lh(e),t,Lh(t)]}function PE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,b=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,p=n.allowedAutoPlacements,y=t.options.placement,x=cn(y),w=x===y,S=c||(w||!g?[Ys(y)]:OE(y)),v=[y].concat(S).reduce(function(Q,G){return Q.concat(cn(G)===yc?TE(t,{placement:G,boundary:u,rootBoundary:h,padding:f,flipVariations:g,allowedAutoPlacements:p}):G)},[]),C=t.rects.reference,O=t.rects.popper,P=new Map,$=!0,A=v[0],B=0;B<v.length;B++){var L=v[B],T=cn(L),N=Br(L)===jr,_=[Et,jt].indexOf(T)>=0,D=_?"width":"height",k=Yo(t,{placement:L,boundary:u,rootBoundary:h,altBoundary:b,padding:f}),z=_?N?zt:Tt:N?jt:Et;C[D]>O[D]&&(z=Ys(z));var M=Ys(z),R=[];if(s&&R.push(k[T]<=0),l&&R.push(k[z]<=0,k[M]<=0),R.every(function(Q){return Q})){A=L,$=!1;break}P.set(L,R)}if($)for(var j=g?3:1,V=function(G){var J=v.find(function(ne){var re=P.get(ne);if(re)return re.slice(0,G).every(function(se){return se})});if(J)return A=J,"break"},K=j;K>0;K--){var Z=V(K);if(Z==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const kE={name:"flip",enabled:!0,phase:"main",fn:PE,requiresIfExists:["offset"],data:{_skip:!1}};function Vh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Uh(e){return[Et,zt,jt,Tt].some(function(t){return e[t]>=0})}function NE(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,a=Yo(t,{elementContext:"reference"}),l=Yo(t,{altBoundary:!0}),c=Vh(a,r),f=Vh(l,o,s),u=Uh(c),h=Uh(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const IE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NE};function AE(e,t,n){var r=cn(e),o=[Tt,Et].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*o,[Tt,zt].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function _E(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,a=Ah.reduce(function(u,h){return u[h]=AE(h,t.rects,s),u},{}),l=a[t.placement],c=l.x,f=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}const ME={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_E};function $E(e){var t=e.state,n=e.name;t.modifiersData[n]=Wh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const DE={name:"popperOffsets",enabled:!0,phase:"read",fn:$E,data:{}};function FE(e){return e==="x"?"y":"x"}function jE(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,b=n.tether,m=b===void 0?!0:b,g=n.tetherOffset,p=g===void 0?0:g,y=Yo(t,{boundary:c,rootBoundary:f,padding:h,altBoundary:u}),x=cn(t.placement),w=Br(t.placement),S=!w,v=Sc(x),C=FE(v),O=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,A=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,B=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(O){if(s){var N,_=v==="y"?Et:Tt,D=v==="y"?jt:zt,k=v==="y"?"height":"width",z=O[v],M=z+y[_],R=z-y[D],j=m?-$[k]/2:0,V=w===jr?P[k]:$[k],K=w===jr?-$[k]:-P[k],Z=t.elements.arrow,Q=m&&Z?xc(Z):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Dh(),J=G[_],ne=G[D],re=Ho(0,P[k],Q[k]),se=S?P[k]/2-j-re-J-B.mainAxis:V-re-J-B.mainAxis,ee=S?-P[k]/2+j+re+ne+B.mainAxis:K+re+ne+B.mainAxis,ae=t.elements.arrow&&Uo(t.elements.arrow),H=ae?v==="y"?ae.clientTop||0:ae.clientLeft||0:0,de=(N=L?.[v])!=null?N:0,oe=z+se-de-H,me=z+ee-de,Ue=Ho(m?Us(M,oe):M,z,m?lr(R,me):R);O[v]=Ue,T[v]=Ue-z}if(l){var ze,we=v==="x"?Et:Tt,Re=v==="x"?jt:zt,He=O[C],Ie=C==="y"?"height":"width",te=He+y[we],tt=He-y[Re],Se=[Et,Tt].indexOf(x)!==-1,Xe=(ze=L?.[C])!=null?ze:0,je=Se?te:He-P[Ie]-$[Ie]-Xe+B.altAxis,Le=Se?He+P[Ie]+$[Ie]-Xe-B.altAxis:tt,st=m&&Se?aE(je,He,Le):Ho(m?je:te,He,m?Le:tt);O[C]=st,T[C]=st-He}t.modifiersData[r]=T}}const zE={name:"preventOverflow",enabled:!0,phase:"main",fn:jE,requiresIfExists:["offset"]};function LE(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BE(e){return e===At(e)||!Lt(e)?wc(e):LE(e)}function RE(e){var t=e.getBoundingClientRect(),n=zr(t.width)/e.offsetWidth||1,r=zr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function WE(e,t,n){n===void 0&&(n=!1);var r=Lt(t),o=Lt(t)&&RE(t),s=Rn(t),a=Lr(e,o,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ln(t)!=="body"||Ec(s))&&(l=BE(t)),Lt(t)?(c=Lr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=Cc(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function VE(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&o(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function UE(e){var t=VE(e);return tE.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function HE(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qE(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hh={placement:"bottom",modifiers:[],strategy:"absolute"};function qh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function YE(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?Hh:o;return function(l,c,f){f===void 0&&(f=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Hh,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],b=!1,m={state:u,setOptions:function(x){var w=typeof x=="function"?x(u.options):x;p(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:ar(l)?qo(l):l.contextElement?qo(l.contextElement):[],popper:qo(c)};var S=UE(qE([].concat(r,u.options.modifiers)));return u.orderedModifiers=S.filter(function(v){return v.enabled}),g(),m.update()},forceUpdate:function(){if(!b){var x=u.elements,w=x.reference,S=x.popper;if(qh(w,S)){u.rects={reference:WE(w,Uo(S),u.options.strategy==="fixed"),popper:xc(S)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(B){return u.modifiersData[B.name]=Object.assign({},B.data)});for(var v=0;v<u.orderedModifiers.length;v++){if(u.reset===!0){u.reset=!1,v=-1;continue}var C=u.orderedModifiers[v],O=C.fn,P=C.options,$=P===void 0?{}:P,A=C.name;typeof O=="function"&&(u=O({state:u,options:$,name:A,instance:m})||u)}}}},update:HE(function(){return new Promise(function(y){m.forceUpdate(),y(u)})}),destroy:function(){p(),b=!0}};if(!qh(l,c))return m;m.setOptions(f).then(function(y){!b&&f.onFirstUpdate&&f.onFirstUpdate(y)});function g(){u.orderedModifiers.forEach(function(y){var x=y.name,w=y.options,S=w===void 0?{}:w,v=y.effect;if(typeof v=="function"){var C=v({state:u,name:x,instance:m,options:S}),O=function(){};h.push(C||O)}})}function p(){h.forEach(function(y){return y()}),h=[]}return m}}var KE=[yE,DE,gE,oE,ME,kE,zE,uE,IE],GE=YE({defaultModifiers:KE});function Yh(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...s}=e,a=o?{}:vh(n,r),{props:l,internalRef:c}=Sh({...s,externalSlotProps:a}),f=Ze(c,a?.ref,e.additionalProps?.ref);return bh(t,{...l,ref:f},r)}function cr(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function JE(e){return typeof e=="function"?e():e}const Ko=E.forwardRef(function(t,n){const{children:r,container:o,disablePortal:s=!1}=t,[a,l]=E.useState(null),c=Ze(E.isValidElement(r)?cr(r):null,n);if(qt(()=>{s||l(JE(o)||document.body)},[o,s]),qt(()=>{if(a&&!s)return ah(n,a),()=>{ah(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const f={ref:c};return E.cloneElement(r,f)}return r}return a&&um.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(Ko.propTypes={children:i.node,container:i.oneOfType([Pn,i.func]),disablePortal:i.bool}),process.env.NODE_ENV!=="production"&&(Ko.propTypes=Gl(Ko.propTypes));function XE(e){return ue("MuiPopper",e)}ce("MuiPopper",["root"]);function QE(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Ks(e){return typeof e=="function"?e():e}function Gs(e){return e.nodeType!==void 0}function ZE(e){return!Gs(e)}const eT=e=>{const{classes:t}=e;return pe({root:["root"]},XE,t)},tT={},nT=E.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:s,disablePortal:a,modifiers:l,open:c,placement:f,popperOptions:u,popperRef:h,slotProps:b={},slots:m={},TransitionProps:g,ownerState:p,...y}=t,x=E.useRef(null),w=Ze(x,n),S=E.useRef(null),v=Ze(S,h),C=E.useRef(v);qt(()=>{C.current=v},[v]),E.useImperativeHandle(h,()=>S.current,[]);const O=QE(f,s),[P,$]=E.useState(O),[A,B]=E.useState(Ks(r));E.useEffect(()=>{S.current&&S.current.forceUpdate()}),E.useEffect(()=>{r&&B(Ks(r))},[r]),qt(()=>{if(!A||!c)return;const D=M=>{$(M.placement)};if(process.env.NODE_ENV!=="production"&&A&&Gs(A)&&A.nodeType===1){const M=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&M.top===0&&M.left===0&&M.right===0&&M.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
165
|
-
`))}let
|
|
166
|
-
`))}else if(!t||typeof t.getBoundingClientRect!="function"||
|
|
167
|
-
`))}return null}),children:
|
|
168
|
-
`&&(
|
|
169
|
-
`),P=
|
|
170
|
-
`))},[]),ae=Ze(se,v,S.ref,ee),[H,de]=E.useState(!1),oe=dn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(oe)return oe.registerEffect()},[oe]);const me=Wn({props:r,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});me.focused=oe?oe.focused:H,E.useEffect(()=>{!oe&&b&&H&&(de(!1),B&&B())},[oe,b,H,B]);const Ue=oe&&oe.onFilled,ze=oe&&oe.onEmpty,we=E.useCallback(xe=>{Qs(xe)?Ue&&Ue():ze&&ze()},[Ue,ze]);qt(()=>{re&&we({value:ne})},[ne,we,re]);const Re=xe=>{N&&N(xe),S.onFocus&&S.onFocus(xe),oe&&oe.onFocus?oe.onFocus(xe):de(!0)},He=xe=>{B&&B(xe),S.onBlur&&S.onBlur(xe),oe&&oe.onBlur?oe.onBlur(xe):de(!1)},Ie=(xe,...Qt)=>{if(!re){const at=xe.target||se.current;if(at==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.":en(1));we({value:at.value})}S.onChange&&S.onChange(xe,...Qt),L&&L(xe,...Qt)};E.useEffect(()=>{we(se.current)},[]);const te=xe=>{se.current&&xe.currentTarget===xe.target&&se.current.focus(),T&&T(xe)};let tt=w,Se=S;$&&tt==="input"&&(R?(process.env.NODE_ENV!=="production"&&(P||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Se={type:void 0,minRows:R,maxRows:R,...Se}):Se={type:void 0,maxRows:O,minRows:P,...Se},tt=Jh);const Xe=xe=>{we(xe.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};E.useEffect(()=>{oe&&oe.setAdornedStart(!!Z)},[oe,Z]);const je={...r,color:me.color||"primary",disabled:me.disabled,endAdornment:g,error:me.error,focused:me.focused,formControl:oe,fullWidth:y,hiddenLabel:me.hiddenLabel,multiline:$,size:me.size,startAdornment:Z,type:Q},Le=lT(je),st=K.root||f.Root||ta,Xt=V.root||u.root||{},In=K.input||f.Input||na;return Se={...Se,...V.input??u.input},d.jsxs(E.Fragment,{children:[!m&&typeof Zh=="function"&&(Qh||(Qh=d.jsx(Zh,{}))),d.jsxs(st,{...Xt,ref:n,onClick:te,...J,...!zs(st)&&{ownerState:{...je,...Xt.ownerState}},className:ie(Le.root,Xt.className,l,z&&"MuiInputBase-readOnly"),children:[Z,d.jsx(Xs.Provider,{value:null,children:d.jsx(In,{"aria-invalid":me.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:me.disabled,id:x,onAnimationStart:Xe,name:A,placeholder:k,readOnly:z,required:me.required,rows:R,value:ne,onKeyDown:_,onKeyUp:D,type:Q,...Se,...!zs(In)&&{as:tt,ownerState:{...je,...Se.ownerState}},ref:ae,className:ie(Le.input,Se.className,z&&"MuiInputBase-readOnly"),onBlur:He,onChange:Ie,onFocus:Re})}),g,M?M({...me,startAdornment:Z}):null]})]})});process.env.NODE_ENV!=="production"&&(Go.propTypes={"aria-describedby":i.string,autoComplete:i.string,autoFocus:i.bool,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableInjectingGlobalStyles:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:pc,inputProps:i.object,inputRef:gt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClick:i.func,onFocus:i.func,onInvalid:i.func,onKeyDown:i.func,onKeyUp:i.func,placeholder:i.string,readOnly:i.bool,renderSuffix:i.func,required:i.bool,rows:i.oneOfType([i.number,i.string]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any});function cT(e){return ue("MuiInput",e)}const Jo={...Rr,...ce("MuiInput",["root","underline","input"])};function dT(e){return ue("MuiOutlinedInput",e)}const un={...Rr,...ce("MuiOutlinedInput",["root","notchedOutline","input"])};function uT(e){return ue("MuiFilledInput",e)}const dr={...Rr,...ce("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},pT=Be(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),fT=Be(d.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 hT(e){return ue("MuiAvatar",e)}ce("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const gT=e=>{const{classes:t,variant:n,colorDefault:r}=e;return pe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},hT,t)},mT=Y("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(fe(({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]})}}}]}))),yT=Y("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),bT=Y(fT,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function vT({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const ra=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:a,component:l="div",slots:c={},slotProps:f={},imgProps:u,sizes:h,src:b,srcSet:m,variant:g="circular",...p}=r;let y=null;const x={...r,component:l,variant:g},w=vT({...u,...typeof f.img=="function"?f.img(x):f.img,src:b,srcSet:m}),S=b||m,v=S&&w!=="error";x.colorDefault=!v,delete x.ownerState;const C=gT(x),[O,P]=ge("root",{ref:n,className:ie(C.root,a),elementType:mT,externalForwardedProps:{slots:c,slotProps:f,component:l,...p},ownerState:x}),[$,A]=ge("img",{className:C.img,elementType:yT,externalForwardedProps:{slots:c,slotProps:{img:{...u,...f.img}}},additionalProps:{alt:o,src:b,srcSet:m,sizes:h},ownerState:x}),[B,L]=ge("fallback",{className:C.fallback,elementType:bT,externalForwardedProps:{slots:c,slotProps:f},shouldForwardComponentProp:!0,ownerState:x});return v?y=d.jsx($,{...A}):s||s===0?y=s:S&&o?y=o[0]:y=d.jsx(B,{...L}),d.jsx(O,{...P,children:y})});process.env.NODE_ENV!=="production"&&(ra.propTypes={alt:i.string,children:i.node,classes:i.object,className:i.string,component:i.elementType,imgProps:i.object,sizes:i.string,slotProps:i.shape({fallback:i.oneOfType([i.func,i.object]),img:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({fallback:i.elementType,img:i.elementType,root:i.elementType}),src:i.string,srcSet:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["circular","rounded","square"]),i.string])});function xT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eg(e,t,n,r,o){const s=e[t],a=o||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!xT(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const ur=Tn(i.element,eg);ur.isRequired=Tn(i.element.isRequired,eg);const ST={entering:{opacity:1},entered:{opacity:1}},oa=E.forwardRef(function(t,n){const r=Yt(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:f,onEnter:u,onEntered:h,onEntering:b,onExit:m,onExited:g,onExiting:p,style:y,timeout:x=o,TransitionComponent:w=an,...S}=t,v=E.useRef(null),C=Ze(v,cr(l),n),O=_=>D=>{if(_){const k=v.current;D===void 0?_(k):_(k,D)}},P=O(b),$=O((_,D)=>{yh(_);const k=js({style:y,timeout:x,easing:c},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",k),_.style.transition=r.transitions.create("opacity",k),u&&u(_,D)}),A=O(h),B=O(p),L=O(_=>{const D=js({style:y,timeout:x,easing:c},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",D),_.style.transition=r.transitions.create("opacity",D),m&&m(_)}),T=O(g),N=_=>{s&&s(v.current,_)};return d.jsx(w,{appear:a,in:f,nodeRef:v,onEnter:$,onEntered:A,onEntering:P,onExit:L,onExited:T,onExiting:B,addEndListener:N,timeout:x,...S,children:(_,{ownerState:D,...k})=>E.cloneElement(l,{style:{opacity:0,visibility:_==="exited"&&!f?"hidden":void 0,...ST[_],...y,...l.props.style},ref:C,...k})})});process.env.NODE_ENV!=="production"&&(oa.propTypes={addEndListener:i.func,appear:i.bool,children:ur.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});function wT(e){return ue("MuiBackdrop",e)}ce("MuiBackdrop",["root","invisible"]);const CT=e=>{const{classes:t,invisible:n}=e;return pe({root:["root",n&&"invisible"]},wT,t)},ET=Y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Pc=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:a="div",invisible:l=!1,open:c,components:f={},componentsProps:u={},slotProps:h={},slots:b={},TransitionComponent:m,transitionDuration:g,...p}=r,y={...r,component:a,invisible:l},x=CT(y),w={transition:m,root:f.Root,...b},S={...u,...h},v={component:a,slots:w,slotProps:S},[C,O]=ge("root",{elementType:ET,externalForwardedProps:v,className:ie(x.root,s),ownerState:y}),[P,$]=ge("transition",{elementType:oa,externalForwardedProps:v,ownerState:y});return d.jsx(P,{in:c,timeout:g,...p,...$,children:d.jsx(C,{"aria-hidden":!0,...O,classes:x,ref:n,children:o})})});process.env.NODE_ENV!=="production"&&(Pc.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,components:i.shape({Root:i.elementType}),componentsProps:i.shape({root:i.object}),invisible:i.bool,open:i.bool.isRequired,slotProps:i.shape({root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])});const TT=ce("MuiBox",["root"]),OT=rc(),I=DS({themeId:Co,defaultTheme:OT,defaultClassName:TT.root,generateClassName:Af.generate});process.env.NODE_ENV!=="production"&&(I.propTypes={children:i.node,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function PT(e){return ue("MuiButton",e)}const pr=ce("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"]),tg=E.createContext({});process.env.NODE_ENV!=="production"&&(tg.displayName="ButtonGroupContext");const ng=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ng.displayName="ButtonGroupButtonContext");const kT=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:s,loading:a,loadingPosition:l,classes:c}=e,f={root:["root",a&&"loading",s,`${s}${X(t)}`,`size${X(o)}`,`${s}Size${X(o)}`,`color${X(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${X(l)}`],startIcon:["icon","startIcon",`iconSize${X(o)}`],endIcon:["icon","endIcon",`iconSize${X(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=pe(f,PT,c);return{...c,...u}},rg=[{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}}}],NT=Y(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${X(n.color)}`],t[`size${X(n.size)}`],t[`${n.variant}Size${X(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${pr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pr.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${pr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(et()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${pr.loading}`]:{color:"transparent"}}}]}})),IT=Y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${X(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...rg]})),AT=Y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${X(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...rg]})),_T=Y("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}}]})),og=Y("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Ve=E.forwardRef(function(t,n){const r=E.useContext(tg),o=E.useContext(ng),s=$o(r,t),a=he({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:f="button",className:u,disabled:h=!1,disableElevation:b=!1,disableFocusRipple:m=!1,endIcon:g,focusVisibleClassName:p,fullWidth:y=!1,id:x,loading:w=null,loadingIndicator:S,loadingPosition:v="center",size:C="medium",startIcon:O,type:P,variant:$="text",...A}=a,B=nr(x),L=S??d.jsx(Vs,{"aria-labelledby":B,color:"inherit",size:16}),T={...a,color:c,component:f,disabled:h,disableElevation:b,disableFocusRipple:m,fullWidth:y,loading:w,loadingIndicator:L,loadingPosition:v,size:C,type:P,variant:$},N=kT(T),_=(O||w&&v==="start")&&d.jsx(IT,{className:N.startIcon,ownerState:T,children:O||d.jsx(og,{className:N.loadingIconPlaceholder,ownerState:T})}),D=(g||w&&v==="end")&&d.jsx(AT,{className:N.endIcon,ownerState:T,children:g||d.jsx(og,{className:N.loadingIconPlaceholder,ownerState:T})}),k=o||"",z=typeof w=="boolean"?d.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:w&&d.jsx(_T,{className:N.loadingIndicator,ownerState:T,children:L})}):null;return d.jsxs(NT,{ownerState:T,className:ie(r.className,N.root,u,k),component:f,disabled:h||w,focusRipple:!m,focusVisibleClassName:ie(N.focusVisible,p),ref:n,type:P,id:w?B:x,...A,classes:N,children:[_,v!=="end"&&z,l,v==="end"&&z,D]})});process.env.NODE_ENV!=="production"&&(Ve.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary","success","error","info","warning"]),i.string]),component:i.elementType,disabled:i.bool,disableElevation:i.bool,disableFocusRipple:i.bool,disableRipple:i.bool,endIcon:i.node,focusVisibleClassName:i.string,fullWidth:i.bool,href:i.string,id:i.string,loading:i.bool,loadingIndicator:i.node,loadingPosition:i.oneOf(["center","end","start"]),size:i.oneOfType([i.oneOf(["small","medium","large"]),i.string]),startIcon:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.oneOfType([i.oneOf(["button","reset","submit"]),i.string]),variant:i.oneOfType([i.oneOf(["contained","outlined","text"]),i.string])});function MT(e){return ue("MuiCard",e)}ce("MuiCard",["root"]);const $T=e=>{const{classes:t}=e;return pe({root:["root"]},MT,t)},DT=Y(Kt,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Nn=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiCard"}),{className:o,raised:s=!1,...a}=r,l={...r,raised:s},c=$T(l);return d.jsx(DT,{className:ie(c.root,o),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Nn.propTypes={children:i.node,classes:i.object,className:i.string,raised:Tn(i.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function FT(e){return ue("MuiCardContent",e)}ce("MuiCardContent",["root"]);const jT=e=>{const{classes:t}=e;return pe({root:["root"]},FT,t)},zT=Y("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),ig=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiCardContent"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=jT(l);return d.jsx(zT,{as:s,className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(ig.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function LT(e){return ue("PrivateSwitchBase",e)}ce("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const BT=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,s={root:["root",n&&"checked",r&&"disabled",o&&`edge${X(o)}`],input:["input"]};return pe(s,LT,t)},RT=Y(Bo,{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}}]}),WT=Y("input",{name:"MuiSwitchBase",shouldForwardProp:pt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ia=E.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:f=!1,icon:u,id:h,inputProps:b,inputRef:m,name:g,onBlur:p,onChange:y,onFocus:x,readOnly:w,required:S=!1,tabIndex:v,type:C,value:O,slots:P={},slotProps:$={},...A}=t,[B,L]=zo({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),T=dn(),N=G=>{x&&x(G),T&&T.onFocus&&T.onFocus(G)},_=G=>{p&&p(G),T&&T.onBlur&&T.onBlur(G)},D=G=>{if(G.nativeEvent.defaultPrevented)return;const J=G.target.checked;L(J),y&&y(G,J)};let k=l;T&&typeof k>"u"&&(k=T.disabled);const z=C==="checkbox"||C==="radio",M={...t,checked:B,disabled:k,disableFocusRipple:c,edge:f},R=BT(M),j={slots:P,slotProps:{input:b,...$}},[V,K]=ge("root",{ref:n,elementType:RT,className:R.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...A},getSlotProps:G=>({...G,onFocus:J=>{G.onFocus?.(J),N(J)},onBlur:J=>{G.onBlur?.(J),_(J)}}),ownerState:M,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:k,role:void 0,tabIndex:null}}),[Z,Q]=ge("input",{ref:m,elementType:WT,className:R.input,externalForwardedProps:j,getSlotProps:G=>({...G,onChange:J=>{G.onChange?.(J),D(J)}}),ownerState:M,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:k,id:z?h:void 0,name:g,readOnly:w,required:S,tabIndex:v,type:C,...C==="checkbox"&&O===void 0?{}:{value:O}}});return d.jsxs(V,{...K,children:[d.jsx(Z,{...Q}),B?s:u]})});process.env.NODE_ENV!=="production"&&(ia.propTypes={autoFocus:i.bool,checked:i.bool,checkedIcon:i.node.isRequired,classes:i.object,className:i.string,defaultChecked:i.bool,disabled:i.bool,disableFocusRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node.isRequired,id:i.string,inputProps:i.object,inputRef:gt,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,readOnly:i.bool,required:i.bool,slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.string.isRequired,value:i.any});const VT=Be(d.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"),UT=Be(d.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"),HT=Be(d.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 qT(e){return ue("MuiCheckbox",e)}const kc=ce("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),YT=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,s={root:["root",n&&"indeterminate",`color${X(r)}`,`size${X(o)}`]},a=pe(s,qT,t);return{...t,...a}},KT=Y(ia,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${X(n.size)}`],n.color!=="default"&&t[`color${X(n.color)}`]]}})(fe(({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(et()).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(et()).map(([t])=>({props:{color:t},style:{[`&.${kc.checked}, &.${kc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${kc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),GT=d.jsx(UT,{}),JT=d.jsx(VT,{}),XT=d.jsx(HT,{}),pn=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiCheckbox"}),{checkedIcon:o=GT,color:s="primary",icon:a=JT,indeterminate:l=!1,indeterminateIcon:c=XT,inputProps:f,size:u="medium",disableRipple:h=!1,className:b,slots:m={},slotProps:g={},...p}=r,y=l?c:a,x=l?c:o,w={...r,disableRipple:h,color:s,indeterminate:l,size:u},S=YT(w),v=g.input??f,[C,O]=ge("root",{ref:n,elementType:KT,className:ie(S.root,b),shouldForwardComponentProp:!0,externalForwardedProps:{slots:m,slotProps:g,...p},ownerState:w,additionalProps:{type:"checkbox",icon:E.cloneElement(y,{fontSize:y.props.fontSize??u}),checkedIcon:E.cloneElement(x,{fontSize:x.props.fontSize??u}),disableRipple:h,slots:m,slotProps:{input:lh(typeof v=="function"?v(w):v,{"data-indeterminate":l})}}});return d.jsx(C,{...O,classes:S})});process.env.NODE_ENV!=="production"&&(pn.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,indeterminate:i.bool,indeterminateIcon:i.node,inputProps:i.object,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function sg(e){return e.substring(2).toLowerCase()}function QT(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function sa(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),l=E.useRef(null),c=E.useRef(!1),f=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=Ze(cr(t),l),h=Dt(g=>{const p=f.current;f.current=!1;const y=ft(l.current);if(!c.current||!l.current||"clientX"in g&&QT(g,y))return;if(a.current){a.current=!1;return}let x;g.composedPath?x=g.composedPath().includes(l.current):x=!y.documentElement.contains(g.target)||l.current.contains(g.target),!x&&(n||!p)&&o(g)}),b=g=>p=>{f.current=!0;const y=t.props[g];y&&y(p)},m={ref:u};return s!==!1&&(m[s]=b(s)),E.useEffect(()=>{if(s!==!1){const g=sg(s),p=ft(l.current),y=()=>{a.current=!0};return p.addEventListener(g,h),p.addEventListener("touchmove",y),()=>{p.removeEventListener(g,h),p.removeEventListener("touchmove",y)}}},[h,s]),r!==!1&&(m[r]=b(r)),E.useEffect(()=>{if(r!==!1){const g=sg(r),p=ft(l.current);return p.addEventListener(g,h),()=>{p.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,m)}process.env.NODE_ENV!=="production"&&(sa.propTypes={children:ur.isRequired,disableReactTree:i.bool,mouseEvent:i.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:i.func.isRequired,touchEvent:i.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(sa.propTypes=Gl(sa.propTypes));function ag(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ZT(e){const t=ft(e);return t.body===e?En(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Xo(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lg(e){return parseInt(En(e).getComputedStyle(e).paddingRight,10)||0}function eO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function cg(e,t,n,r,o){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!eO(a);l&&c&&Xo(a,o)})}function Nc(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function tO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ZT(r)){const a=ag(En(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${lg(r)+a}px`;const l=ft(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${lg(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=ft(r).body;else{const a=r.parentElement,l=En(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function nO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rO{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Xo(t.modalRef,!1);const o=nO(n);cg(n,t.mount,t.modalRef,o,!0);const s=Nc(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=Nc(this.containers,s=>s.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=tO(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=Nc(this.containers,a=>a.modals.includes(t)),s=this.containers[o];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&Xo(t.modalRef,n),cg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&Xo(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Qo(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const oO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function iO(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 sO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function aO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||sO(e))}function lO(e){const t=[],n=[];return Array.from(e.querySelectorAll(oO)).forEach((r,o)=>{const s=iO(r);s===-1||!aO(r)||(s===0?t.push(r):n.push({documentOrder:o,tabIndex:s,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function cO(){return!0}function aa(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:s=lO,isEnabled:a=cO,open:l}=e,c=E.useRef(!1),f=E.useRef(null),u=E.useRef(null),h=E.useRef(null),b=E.useRef(null),m=E.useRef(!1),g=E.useRef(null),p=Ze(cr(t),g),y=E.useRef(null);E.useEffect(()=>{!l||!g.current||(m.current=!n)},[n,l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ft(g.current),v=Qo(S);return g.current.contains(v)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
171
|
-
`)),g.current.setAttribute("tabIndex","-1")),m.current&&g.current.focus()),()=>{o||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),E.useEffect(()=>{if(!l||!g.current)return;const S=ft(g.current),v=Qo(S),C=$=>{y.current=$,!(r||!a()||$.key!=="Tab")&&v===g.current&&$.shiftKey&&(c.current=!0,u.current&&u.current.focus())},O=()=>{const $=g.current;if($===null)return;const A=Qo(S);if(!S.hasFocus()||!a()||c.current){c.current=!1;return}if($.contains(A)||r&&A!==f.current&&A!==u.current)return;if(A!==b.current)b.current=null;else if(b.current!==null)return;if(!m.current)return;let B=[];if((A===f.current||A===u.current)&&(B=s(g.current)),B.length>0){const L=!!(y.current?.shiftKey&&y.current?.key==="Tab"),T=B[0],N=B[B.length-1];typeof T!="string"&&typeof N!="string"&&(L?N.focus():T.focus())}else $.focus()};S.addEventListener("focusin",O),S.addEventListener("keydown",C,!0);const P=setInterval(()=>{const $=Qo(S);$&&$.tagName==="BODY"&&O()},50);return()=>{clearInterval(P),S.removeEventListener("focusin",O),S.removeEventListener("keydown",C,!0)}},[n,r,o,a,l,s]);const x=S=>{h.current===null&&(h.current=S.relatedTarget),m.current=!0,b.current=S.target;const v=t.props.onFocus;v&&v(S)},w=S=>{h.current===null&&(h.current=S.relatedTarget),m.current=!0};return d.jsxs(E.Fragment,{children:[d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:f,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:p,onFocus:x}),d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(aa.propTypes={children:ur,disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableRestoreFocus:i.bool,getTabbable:i.func,isEnabled:i.func,open:i.bool.isRequired}),process.env.NODE_ENV!=="production"&&(aa.propTypes=Gl(aa.propTypes));function dO(e){return typeof e=="function"?e():e}function uO(e){return e?e.props.hasOwnProperty("in"):!1}const dg=()=>{},la=new rO;function pO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:f,rootRef:u}=e,h=E.useRef({}),b=E.useRef(null),m=E.useRef(null),g=Ze(m,u),[p,y]=E.useState(!f),x=uO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const S=()=>ft(b.current),v=()=>(h.current.modalRef=m.current,h.current.mount=b.current,h.current),C=()=>{la.mount(v(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},O=Dt(()=>{const D=dO(t)||S().body;la.add(v(),D),m.current&&C()}),P=()=>la.isTopModal(v()),$=Dt(D=>{b.current=D,D&&(f&&P()?C():m.current&&Xo(m.current,w))}),A=E.useCallback(()=>{la.remove(v(),w)},[w]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{f?O():(!x||!o)&&A()},[f,A,x,o,O]);const B=D=>k=>{D.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!P())&&(n||(k.stopPropagation(),c&&c(k,"escapeKeyDown")))},L=D=>k=>{D.onClick?.(k),k.target===k.currentTarget&&c&&c(k,"backdropClick")};return{getRootProps:(D={})=>{const k=Ls(e);delete k.onTransitionEnter,delete k.onTransitionExited;const z={...k,...D};return{role:"presentation",...z,onKeyDown:B(z),ref:g}},getBackdropProps:(D={})=>{const k=D;return{"aria-hidden":!0,...k,onClick:L(k),open:f}},getTransitionProps:()=>{const D=()=>{y(!1),s&&s()},k=()=>{y(!0),a&&a(),o&&A()};return{onEnter:sc(D,l?.props.onEnter??dg),onExited:sc(k,l?.props.onExited??dg)}},rootRef:g,portalRef:$,isTopModal:P,exited:p,hasTransition:x}}function fO(e){return ue("MuiModal",e)}ce("MuiModal",["root","hidden","backdrop"]);const hO=e=>{const{open:t,exited:n,classes:r}=e;return pe({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},fO,r)},gO=Y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fe(({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"}}]}))),mO=Y(Pc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Zo=E.forwardRef(function(t,n){const r=he({name:"MuiModal",props:t}),{BackdropComponent:o=mO,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:f,container:u,component:h,components:b={},componentsProps:m={},disableAutoFocus:g=!1,disableEnforceFocus:p=!1,disableEscapeKeyDown:y=!1,disablePortal:x=!1,disableRestoreFocus:w=!1,disableScrollLock:S=!1,hideBackdrop:v=!1,keepMounted:C=!1,onClose:O,onTransitionEnter:P,onTransitionExited:$,open:A,slotProps:B={},slots:L={},theme:T,...N}=r,_={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:p,disableEscapeKeyDown:y,disablePortal:x,disableRestoreFocus:w,disableScrollLock:S,hideBackdrop:v,keepMounted:C},{getRootProps:D,getBackdropProps:k,getTransitionProps:z,portalRef:M,isTopModal:R,exited:j,hasTransition:V}=pO({..._,rootRef:n}),K={..._,exited:j},Z=hO(K),Q={};if(f.props.tabIndex===void 0&&(Q.tabIndex="-1"),V){const{onEnter:ee,onExited:ae}=z();Q.onEnter=ee,Q.onExited=ae}const G={slots:{root:b.Root,backdrop:b.Backdrop,...L},slotProps:{...m,...B}},[J,ne]=ge("root",{ref:n,elementType:gO,externalForwardedProps:{...G,...N,component:h},getSlotProps:D,ownerState:K,className:ie(l,Z?.root,!K.open&&K.exited&&Z?.hidden)}),[re,se]=ge("backdrop",{ref:s?.ref,elementType:o,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ee=>k({...ee,onClick:ae=>{ee?.onClick&&ee.onClick(ae)}}),className:ie(s?.className,Z?.backdrop),ownerState:K});return!C&&!A&&(!V||j)?null:d.jsx(Ko,{ref:M,container:u,disablePortal:x,children:d.jsxs(J,{...ne,children:[!v&&o?d.jsx(re,{...se}):null,d.jsx(aa,{disableEnforceFocus:p,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:R,open:A,children:E.cloneElement(f,Q)})]})})});process.env.NODE_ENV!=="production"&&(Zo.propTypes={BackdropComponent:i.elementType,BackdropProps:i.object,children:ur.isRequired,classes:i.object,className:i.string,closeAfterTransition:i.bool,component:i.elementType,components:i.shape({Backdrop:i.elementType,Root:i.elementType}),componentsProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),container:i.oneOfType([Pn,i.func]),disableAutoFocus:i.bool,disableEnforceFocus:i.bool,disableEscapeKeyDown:i.bool,disablePortal:i.bool,disableRestoreFocus:i.bool,disableScrollLock:i.bool,hideBackdrop:i.bool,keepMounted:i.bool,onClose:i.func,onTransitionEnter:i.func,onTransitionExited:i.func,open:i.bool.isRequired,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function yO(e){return ue("MuiDialog",e)}const Ic=ce("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Ac=E.createContext({});process.env.NODE_ENV!=="production"&&(Ac.displayName="DialogContext");const bO=Y(Pc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),vO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${X(n)}`],paper:["paper",`paperScroll${X(n)}`,`paperWidth${X(String(r))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return pe(a,yO,t)},xO=Y(Zo,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),SO=Y("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${X(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),wO=Y(Kt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${X(n.scroll)}`],t[`paperWidth${X(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fe(({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)`,[`&.${Ic.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}`,[`&.${Ic.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,[`&.${Ic.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ei=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiDialog"}),o=Yt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:f,BackdropProps:u,children:h,className:b,disableEscapeKeyDown:m=!1,fullScreen:g=!1,fullWidth:p=!1,maxWidth:y="sm",onClick:x,onClose:w,open:S,PaperComponent:v=Kt,PaperProps:C={},scroll:O="paper",slots:P={},slotProps:$={},TransitionComponent:A=oa,transitionDuration:B=s,TransitionProps:L,...T}=r,N={...r,disableEscapeKeyDown:m,fullScreen:g,fullWidth:p,maxWidth:y,scroll:O},_=vO(N),D=E.useRef(),k=de=>{D.current=de.target===de.currentTarget},z=de=>{x&&x(de),D.current&&(D.current=null,w&&w(de,"backdropClick"))},M=nr(l),R=E.useMemo(()=>({titleId:M}),[M]),j={transition:A,...P},V={transition:L,paper:C,backdrop:u,...$},K={slots:j,slotProps:V},[Z,Q]=ge("root",{elementType:xO,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:N,className:ie(_.root,b),ref:n}),[G,J]=ge("backdrop",{elementType:bO,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:N}),[ne,re]=ge("paper",{elementType:wO,shouldForwardComponentProp:!0,externalForwardedProps:K,ownerState:N,className:ie(_.paper,C.className)}),[se,ee]=ge("container",{elementType:SO,externalForwardedProps:K,ownerState:N,className:_.container}),[ae,H]=ge("transition",{elementType:oa,externalForwardedProps:K,ownerState:N,additionalProps:{appear:!0,in:S,timeout:B,role:"presentation"}});return d.jsx(Z,{closeAfterTransition:!0,slots:{backdrop:G},slotProps:{backdrop:{transitionDuration:B,as:f,...J}},disableEscapeKeyDown:m,onClose:w,open:S,onClick:z,...Q,...T,children:d.jsx(ae,{...H,children:d.jsx(se,{onMouseDown:k,...ee,children:d.jsx(ne,{as:v,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":M,"aria-modal":c,...re,children:d.jsx(Ac.Provider,{value:R,children:h})})})})})});process.env.NODE_ENV!=="production"&&(ei.propTypes={"aria-describedby":i.string,"aria-labelledby":i.string,"aria-modal":i.oneOfType([i.oneOf(["false","true"]),i.bool]),BackdropComponent:i.elementType,BackdropProps:i.object,children:i.node,classes:i.object,className:i.string,disableEscapeKeyDown:i.bool,fullScreen:i.bool,fullWidth:i.bool,maxWidth:i.oneOfType([i.oneOf(["xs","sm","md","lg","xl",!1]),i.string]),onClick:i.func,onClose:i.func,open:i.bool.isRequired,PaperComponent:i.elementType,PaperProps:i.object,scroll:i.oneOf(["body","paper"]),slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),container:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,container:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function CO(e){return ue("MuiDialogActions",e)}ce("MuiDialogActions",["root","spacing"]);const EO=e=>{const{classes:t,disableSpacing:n}=e;return pe({root:["root",!n&&"spacing"]},CO,t)},TO=Y("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),_c=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=EO(l);return d.jsx(TO,{className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(_c.propTypes={children:i.node,classes:i.object,className:i.string,disableSpacing:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function OO(e){return ue("MuiDialogContent",e)}ce("MuiDialogContent",["root","dividers"]);function PO(e){return ue("MuiDialogTitle",e)}const kO=ce("MuiDialogTitle",["root"]),NO=e=>{const{classes:t,dividers:n}=e;return pe({root:["root",n&&"dividers"]},OO,t)},IO=Y("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fe(({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:{[`.${kO.root} + &`]:{paddingTop:0}}}]}))),ca=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...a}=r,l={...r,dividers:s},c=NO(l);return d.jsx(IO,{className:ie(c.root,o),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(ca.propTypes={children:i.node,classes:i.object,className:i.string,dividers:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const AO=e=>{const{classes:t}=e;return pe({root:["root"]},PO,t)},_O=Y(W,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),ti=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...a}=r,l=r,c=AO(l),{titleId:f=s}=E.useContext(Ac);return d.jsx(_O,{component:"h2",className:ie(c.root,o),ownerState:l,ref:n,variant:"h6",id:s??f,...a})});process.env.NODE_ENV!=="production"&&(ti.propTypes={children:i.node,classes:i.object,className:i.string,id:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function MO(e){return ue("MuiDivider",e)}const ug=ce("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$O=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:s,orientation:a,textAlign:l,variant:c}=e;return pe({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},MO,r)},DO=Y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(fe(({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%"}}}]}))),FO=Y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(fe(({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)`}}]}))),Bt=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:f=!1,light:u=!1,role:h=c!=="hr"?"separator":void 0,textAlign:b="center",variant:m="fullWidth",...g}=r,p={...r,absolute:o,component:c,flexItem:f,light:u,orientation:l,role:h,textAlign:b,variant:m},y=$O(p);return d.jsx(DO,{as:c,className:ie(y.root,a),role:h,ref:n,ownerState:p,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?d.jsx(FO,{className:y.wrapper,ownerState:p,children:s}):null})});Bt&&(Bt.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Bt.propTypes={absolute:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,flexItem:i.bool,light:i.bool,orientation:i.oneOf(["horizontal","vertical"]),role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),textAlign:i.oneOf(["center","left","right"]),variant:i.oneOfType([i.oneOf(["fullWidth","inset","middle"]),i.string])});const jO=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${X(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},f=pe(c,uT,t);return{...t,...f}},zO=Y(ta,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(fe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${dr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${dr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${dr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${dr.disabled}, .${dr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${dr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(et()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),LO=Y(na,{name:"MuiFilledInput",slot:"Input",overridesResolver:ea})(fe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),da=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:f="input",multiline:u=!1,slotProps:h,slots:b={},type:m="text",...g}=r,p={...r,disableUnderline:o,fullWidth:l,inputComponent:f,multiline:u,type:m},y=jO(r),x={root:{ownerState:p},input:{ownerState:p}},w=h??a?ut(x,h??a):x,S=b.root??s.Root??zO,v=b.input??s.Input??LO;return d.jsx(Go,{slots:{root:S,input:v},slotProps:w,fullWidth:l,inputComponent:f,multiline:u,ref:n,type:m,...g,classes:y})});process.env.NODE_ENV!=="production"&&(da.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:gt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),da.muiName="Input";function BO(e){return ue("MuiFormControl",e)}ce("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const RO=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${X(n)}`,r&&"fullWidth"]};return pe(o,BO,t)},WO=Y("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${X(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),pg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFormControl"}),{children:o,className:s,color:a="primary",component:l="div",disabled:c=!1,error:f=!1,focused:u,fullWidth:h=!1,hiddenLabel:b=!1,margin:m="none",required:g=!1,size:p="medium",variant:y="outlined",...x}=r,w={...r,color:a,component:l,disabled:c,error:f,fullWidth:h,hiddenLabel:b,margin:m,required:g,size:p,variant:y},S=RO(w),[v,C]=E.useState(()=>{let k=!1;return o&&E.Children.forEach(o,z=>{if(!Xl(z,["Input","Select"]))return;const M=Xl(z,["Select"])?z.props.input:z;M&&sT(M.props)&&(k=!0)}),k}),[O,P]=E.useState(()=>{let k=!1;return o&&E.Children.forEach(o,z=>{Xl(z,["Input","Select"])&&(Qs(z.props,!0)||Qs(z.props.inputProps,!0))&&(k=!0)}),k}),[$,A]=E.useState(!1);c&&$&&A(!1);const B=u!==void 0&&!c?u:$;let L;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
-
`)),T.current=!0,()=>{T.current=!1}));const N=E.useCallback(()=>{P(!0)},[]),_=E.useCallback(()=>{P(!1)},[]),D=E.useMemo(()=>({adornedStart:v,setAdornedStart:C,color:a,disabled:c,error:f,filled:O,focused:B,fullWidth:h,hiddenLabel:b,size:p,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:_,onFilled:N,registerEffect:L,required:g,variant:y}),[v,a,c,f,O,B,h,b,L,_,N,g,p,y]);return d.jsx(Xs.Provider,{value:D,children:d.jsx(WO,{as:l,ownerState:w,className:ie(S.root,s),ref:n,...x,children:o})})});process.env.NODE_ENV!=="production"&&(pg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,focused:i.bool,fullWidth:i.bool,hiddenLabel:i.bool,margin:i.oneOf(["dense","none","normal"]),required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function VO(e){return ue("MuiFormControlLabel",e)}const ni=ce("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),UO=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${X(r)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return pe(a,VO,t)},HO=Y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ni.label}`]:t.label},t.root,t[`labelPlacement${X(n.labelPlacement)}`]]}})(fe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ni.disabled}`]:{cursor:"default"},[`& .${ni.label}`]:{[`&.${ni.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}}]}))),qO=Y("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(fe(({theme:e})=>({[`&.${ni.error}`]:{color:(e.vars||e).palette.error.main}}))),fr=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:a={},control:l,disabled:c,disableTypography:f,inputRef:u,label:h,labelPlacement:b="end",name:m,onChange:g,required:p,slots:y={},slotProps:x={},value:w,...S}=r,v=dn(),C=c??l.props.disabled??v?.disabled,O=p??l.props.required,P={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof r[D]<"u"&&(P[D]=r[D])});const $=Wn({props:r,muiFormControl:v,states:["error"]}),A={...r,disabled:C,labelPlacement:b,required:O,error:$.error},B=UO(A),L={slots:y,slotProps:{...a,...x}},[T,N]=ge("typography",{elementType:W,externalForwardedProps:L,ownerState:A});let _=h;return _!=null&&_.type!==W&&!f&&(_=d.jsx(T,{component:"span",...N,className:ie(B.label,N?.className),children:_})),d.jsxs(HO,{className:ie(B.root,s),ownerState:A,ref:n,...S,children:[E.cloneElement(l,P),O?d.jsxs("div",{children:[_,d.jsxs(qO,{ownerState:A,"aria-hidden":!0,className:B.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(fr.propTypes={checked:i.bool,classes:i.object,className:i.string,componentsProps:i.shape({typography:i.object}),control:i.element.isRequired,disabled:i.bool,disableTypography:i.bool,inputRef:gt,label:i.node,labelPlacement:i.oneOf(["bottom","end","start","top"]),name:i.string,onChange:i.func,required:i.bool,slotProps:i.shape({typography:i.oneOfType([i.func,i.object])}),slots:i.shape({typography:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function YO(e){return ue("MuiFormGroup",e)}ce("MuiFormGroup",["root","row","error"]);const KO=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},YO,t)},GO=Y("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),fg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...a}=r,l=dn(),c=Wn({props:r,muiFormControl:l,states:["error"]}),f={...r,row:s,error:c.error},u=KO(f);return d.jsx(GO,{className:ie(u.root,o),ownerState:f,ref:n,...a})});process.env.NODE_ENV!=="production"&&(fg.propTypes={children:i.node,classes:i.object,className:i.string,row:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function JO(e){return ue("MuiFormHelperText",e)}const hg=ce("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gg;const XO=e=>{const{classes:t,contained:n,size:r,disabled:o,error:s,filled:a,focused:l,required:c}=e,f={root:["root",o&&"disabled",s&&"error",r&&`size${X(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return pe(f,JO,t)},QO=Y("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${X(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),mg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:a="p",disabled:l,error:c,filled:f,focused:u,margin:h,required:b,variant:m,...g}=r,p=dn(),y=Wn({props:r,muiFormControl:p,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:a,contained:y.variant==="filled"||y.variant==="outlined",variant:y.variant,size:y.size,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required};delete x.ownerState;const w=XO(x);return d.jsx(QO,{as:a,className:ie(w.root,s),ref:n,...g,ownerState:x,children:o===" "?gg||(gg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):o})});process.env.NODE_ENV!=="production"&&(mg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["filled","outlined","standard"]),i.string])});function ZO(e){return ue("MuiFormLabel",e)}const ri=ce("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),eP=e=>{const{classes:t,color:n,focused:r,disabled:o,error:s,filled:a,required:l}=e,c={root:["root",`color${X(n)}`,o&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return pe(c,ZO,t)},tP=Y("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{[`&.${ri.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ri.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ri.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),nP=Y("span",{name:"MuiFormLabel",slot:"Asterisk"})(fe(({theme:e})=>({[`&.${ri.error}`]:{color:(e.vars||e).palette.error.main}}))),yg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:a,component:l="label",disabled:c,error:f,filled:u,focused:h,required:b,...m}=r,g=dn(),p=Wn({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),y={...r,color:p.color||"primary",component:l,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},x=eP(y);return d.jsxs(tP,{as:l,ownerState:y,className:ie(x.root,s),ref:n,...m,children:[o,p.required&&d.jsxs(nP,{ownerState:y,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(yg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),component:i.elementType,disabled:i.bool,error:i.bool,filled:i.bool,focused:i.bool,required:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Mc(e){return`scale(${e}, ${e**2})`}const rP={entering:{opacity:1,transform:Mc(1)},entered:{opacity:1,transform:"none"}},$c=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wr=E.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:s,easing:a,in:l,onEnter:c,onEntered:f,onEntering:u,onExit:h,onExited:b,onExiting:m,style:g,timeout:p="auto",TransitionComponent:y=an,...x}=t,w=sr(),S=E.useRef(),v=Yt(),C=E.useRef(null),O=Ze(C,cr(s),n),P=D=>k=>{if(D){const z=C.current;k===void 0?D(z):D(z,k)}},$=P(u),A=P((D,k)=>{yh(D);const{duration:z,delay:M,easing:R}=js({style:g,timeout:p,easing:a},{mode:"enter"});let j;p==="auto"?(j=v.transitions.getAutoHeightDuration(D.clientHeight),S.current=j):j=z,D.style.transition=[v.transitions.create("opacity",{duration:j,delay:M}),v.transitions.create("transform",{duration:$c?j:j*.666,delay:M,easing:R})].join(","),c&&c(D,k)}),B=P(f),L=P(m),T=P(D=>{const{duration:k,delay:z,easing:M}=js({style:g,timeout:p,easing:a},{mode:"exit"});let R;p==="auto"?(R=v.transitions.getAutoHeightDuration(D.clientHeight),S.current=R):R=k,D.style.transition=[v.transitions.create("opacity",{duration:R,delay:z}),v.transitions.create("transform",{duration:$c?R:R*.666,delay:$c?z:z||R*.333,easing:M})].join(","),D.style.opacity=0,D.style.transform=Mc(.75),h&&h(D)}),N=P(b),_=D=>{p==="auto"&&w.start(S.current||0,D),r&&r(C.current,D)};return d.jsx(y,{appear:o,in:l,nodeRef:C,onEnter:A,onEntered:B,onEntering:$,onExit:T,onExited:N,onExiting:L,addEndListener:_,timeout:p==="auto"?null:p,...x,children:(D,{ownerState:k,...z})=>E.cloneElement(s,{style:{opacity:0,transform:Mc(.75),visibility:D==="exited"&&!l?"hidden":void 0,...rP[D],...g,...s.props.style},ref:O,...z})})});process.env.NODE_ENV!=="production"&&(Wr.propTypes={addEndListener:i.func,appear:i.bool,children:ur.isRequired,easing:i.oneOfType([i.shape({enter:i.string,exit:i.string}),i.string]),in:i.bool,onEnter:i.func,onEntered:i.func,onEntering:i.func,onExit:i.func,onExited:i.func,onExiting:i.func,style:i.object,timeout:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})])}),Wr&&(Wr.muiSupportAuto=!0);const oP=e=>{const{classes:t,disableUnderline:n}=e,o=pe({root:["root",!n&&"underline"],input:["input"]},cT,t);return{...t,...o}},iP=Y(ta,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(fe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Jo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Jo.disabled}, .${Jo.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(et()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),sP=Y(na,{name:"MuiInput",slot:"Input",overridesResolver:ea})({}),ua=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:f=!1,slotProps:u,slots:h={},type:b="text",...m}=r,g=oP(r),y={root:{ownerState:{disableUnderline:o}}},x=u??a?ut(u??a,y):y,w=h.root??s.Root??iP,S=h.input??s.Input??sP;return d.jsx(Go,{slots:{root:w,input:S},slotProps:x,fullWidth:l,inputComponent:c,multiline:f,ref:n,type:b,...m,classes:g})});process.env.NODE_ENV!=="production"&&(ua.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),componentsProps:i.shape({input:i.object,root:i.object}),defaultValue:i.any,disabled:i.bool,disableUnderline:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:gt,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,root:i.object}),slots:i.shape({input:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),ua.muiName="Input";function aP(e){return ue("MuiInputLabel",e)}ce("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const lP=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",r&&r!=="medium"&&`size${X(r)}`,a],asterisk:[l&&"asterisk"]},f=pe(c,aP,t);return{...t,...f}},cP=Y(yg,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ri.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),bg=E.forwardRef(function(t,n){const r=he({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:a,variant:l,className:c,...f}=r,u=dn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const b=Wn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),m={...r,disableAnimation:o,formControl:u,shrink:h,size:b.size,variant:b.variant,required:b.required,focused:b.focused},g=lP(m);return d.jsx(cP,{"data-shrink":h,ref:n,className:ie(g.root,c),...f,ownerState:m,classes:g})});process.env.NODE_ENV!=="production"&&(bg.propTypes={children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["error","info","primary","secondary","success","warning"]),i.string]),disableAnimation:i.bool,disabled:i.bool,error:i.bool,focused:i.bool,margin:i.oneOf(["dense"]),required:i.bool,shrink:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["filled","outlined","standard"])});function dP(e){return ue("MuiLinearProgress",e)}ce("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Dc=4,Fc=jn`
|
|
159
|
+
`,GC=typeof Ac!="string"?Ur`
|
|
160
|
+
animation: ${Ac} 1.4s linear infinite;
|
|
161
|
+
`:null,XC=typeof Mc!="string"?Ur`
|
|
162
|
+
animation: ${Mc} 1.4s ease-in-out infinite;
|
|
163
|
+
`:null,JC=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,s={root:["root",n,`color${Q(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Q(n)}`,i&&"circleDisableShrink"]};return me(s,KC,t)},QC=X("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Q(n.color)}`]]}})(fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:GC||{animation:`${Ac} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ZC=X("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),eE=X("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Q(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(fe(({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:XC||{animation:`${Mc} 1.4s ease-in-out infinite`}}]}))),tE=X("circle",{name:"MuiCircularProgress",slot:"Track"})(fe(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),na=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiCircularProgress"}),{className:i,color:s="primary",disableShrink:a=!1,enableTrackSlot:l=!1,size:c=40,style:p,thickness:u=3.6,value:h=0,variant:v="indeterminate",...b}=r,g={...r,color:s,disableShrink:a,size:c,thickness:u,value:h,variant:v,enableTrackSlot:l},f=JC(g),m={},y={},w={};if(v==="determinate"){const x=2*Math.PI*((rn-u)/2);m.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(h),m.strokeDashoffset=`${((100-h)/100*x).toFixed(3)}px`,y.transform="rotate(-90deg)"}return d.jsx(QC,{className:le(f.root,i),style:{width:c,height:c,...y,...p},ownerState:g,ref:n,role:"progressbar",...w,...b,children:d.jsxs(ZC,{className:f.svg,ownerState:g,viewBox:`${rn/2} ${rn/2} ${rn} ${rn}`,children:[l?d.jsx(tE,{className:f.track,ownerState:g,cx:rn,cy:rn,r:(rn-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,d.jsx(eE,{className:f.circle,style:m,ownerState:g,cx:rn,cy:rn,r:(rn-u)/2,fill:"none",strokeWidth:u})]})})});process.env.NODE_ENV!=="production"&&(na.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","error","info","success","warning"]),o.string]),disableShrink:tn(o.bool,e=>e.disableShrink&&e.variant&&e.variant!=="indeterminate"?new Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:o.bool,size:o.oneOfType([o.number,o.string]),style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),thickness:o.number,value:o.number,variant:o.oneOf(["determinate","indeterminate"])});function nE(e){return ge("MuiIconButton",e)}const Vh=he("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),rE=e=>{const{classes:t,disabled:n,color:r,edge:i,size:s,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Q(r)}`,i&&`edge${Q(i)}`,`size${Q(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return me(l,nE,t)},oE=X(ri,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Q(n.color)}`],n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})(fe(({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}}]})),fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Vh.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Vh.loading}`]:{color:"transparent"}}))),iE=X("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),jt=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiIconButton"}),{edge:i=!1,children:s,className:a,color:l="default",disabled:c=!1,disableFocusRipple:p=!1,size:u="medium",id:h,loading:v=null,loadingIndicator:b,...g}=r,f=ur(h),m=b??d.jsx(na,{"aria-labelledby":f,color:"inherit",size:16}),y={...r,edge:i,color:l,disabled:c,disableFocusRipple:p,loading:v,loadingIndicator:m,size:u},w=rE(y);return d.jsxs(oE,{id:v?f:h,className:le(w.root,a),centerRipple:!0,focusRipple:!p,disabled:c||v,ref:n,...g,ownerState:y,children:[typeof v=="boolean"&&d.jsx("span",{className:w.loadingWrapper,style:{display:"contents"},children:d.jsx(iE,{className:w.loadingIndicator,ownerState:y,children:v&&m})}),s]})});process.env.NODE_ENV!=="production"&&(jt.propTypes={children:tn(o.node,e=>E.Children.toArray(e.children).some(n=>E.isValidElement(n)&&n.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
164
|
+
`)):null),classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),id:o.string,loading:o.bool,loadingIndicator:o.node,size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function sE(e){return ge("MuiTypography",e)}const Uh=he("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),aE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},lE=dC(),cE=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:s,classes:a}=e,l={root:["root",s,e.align!=="inherit"&&`align${Q(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return me(l,sE,a)},dE=X("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(fe(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${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}}]}))),Hh={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},V=E.forwardRef(function(t,n){const{color:r,...i}=be({props:t,name:"MuiTypography"}),s=!aE[r],a=lE({...i,...s&&{color:r}}),{align:l="inherit",className:c,component:p,gutterBottom:u=!1,noWrap:h=!1,paragraph:v=!1,variant:b="body1",variantMapping:g=Hh,...f}=a,m={...a,align:l,color:r,className:c,component:p,gutterBottom:u,noWrap:h,paragraph:v,variant:b,variantMapping:g},y=p||(v?"p":g[b]||Hh[b])||"span",w=cE(m);return d.jsx(dE,{as:y,ref:n,className:le(w.root,c),...f,ownerState:m,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...f.style}})});process.env.NODE_ENV!=="production"&&(V.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","success","error","info","warning","textPrimary","textSecondary","textDisabled"]),o.string]),component:o.elementType,gutterBottom:o.bool,noWrap:o.bool,paragraph:o.bool,style:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),o.string]),variantMapping:o.object});function jn(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const s=e[t],a=i||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var At="top",Ut="bottom",Ht="right",Mt="left",_c="auto",oi=[At,Ut,Ht,Mt],Jr="start",ii="end",uE="clippingParents",qh="viewport",si="popper",pE="reference",Yh=oi.reduce(function(e,t){return e.concat([t+"-"+Jr,t+"-"+ii])},[]),Kh=[].concat(oi,[_c]).reduce(function(e,t){return e.concat([t,t+"-"+Jr,t+"-"+ii])},[]),fE="beforeRead",hE="read",gE="afterRead",mE="beforeMain",yE="main",bE="afterMain",vE="beforeWrite",xE="write",SE="afterWrite",wE=[fE,hE,gE,mE,yE,bE,vE,xE,SE];function mn(e){return e?(e.nodeName||"").toLowerCase():null}function Lt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function yr(e){var t=Lt(e).Element;return e instanceof t||e instanceof Element}function qt(e){var t=Lt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $c(e){if(typeof ShadowRoot>"u")return!1;var t=Lt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CE(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!qt(s)||!mn(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function EE(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],s=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(c,p){return c[p]="",c},{});!qt(i)||!mn(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const TE={name:"applyStyles",enabled:!0,phase:"write",fn:CE,effect:EE,requires:["computeStyles"]};function yn(e){return e.split("-")[0]}var br=Math.max,ra=Math.min,Qr=Math.round;function Dc(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Gh(){return!/^((?!chrome|android).)*safari/i.test(Dc())}function Zr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,s=1;t&&qt(e)&&(i=e.offsetWidth>0&&Qr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Qr(r.height)/e.offsetHeight||1);var a=yr(e)?Lt(e):window,l=a.visualViewport,c=!Gh()&&n,p=(r.left+(c&&l?l.offsetLeft:0))/i,u=(r.top+(c&&l?l.offsetTop:0))/s,h=r.width/i,v=r.height/s;return{width:h,height:v,top:u,right:p+h,bottom:u+v,left:p,x:p,y:u}}function Fc(e){var t=Zr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$c(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ln(e){return Lt(e).getComputedStyle(e)}function OE(e){return["table","td","th"].indexOf(mn(e))>=0}function Jn(e){return((yr(e)?e.ownerDocument:e.document)||window.document).documentElement}function oa(e){return mn(e)==="html"?e:e.assignedSlot||e.parentNode||($c(e)?e.host:null)||Jn(e)}function Jh(e){return!qt(e)||Ln(e).position==="fixed"?null:e.offsetParent}function PE(e){var t=/firefox/i.test(Dc()),n=/Trident/i.test(Dc());if(n&&qt(e)){var r=Ln(e);if(r.position==="fixed")return null}var i=oa(e);for($c(i)&&(i=i.host);qt(i)&&["html","body"].indexOf(mn(i))<0;){var s=Ln(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function ai(e){for(var t=Lt(e),n=Jh(e);n&&OE(n)&&Ln(n).position==="static";)n=Jh(n);return n&&(mn(n)==="html"||mn(n)==="body"&&Ln(n).position==="static")?t:n||PE(e)||t}function jc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function li(e,t,n){return br(e,ra(t,n))}function kE(e,t,n){var r=li(e,t,n);return r>n?n:r}function Qh(){return{top:0,right:0,bottom:0,left:0}}function Zh(e){return Object.assign({},Qh(),e)}function eg(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var NE=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Zh(typeof t!="number"?t:eg(t,oi))};function IE(e){var t,n=e.state,r=e.name,i=e.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=yn(n.placement),c=jc(l),p=[Mt,Ht].indexOf(l)>=0,u=p?"height":"width";if(!(!s||!a)){var h=NE(i.padding,n),v=Fc(s),b=c==="y"?At:Mt,g=c==="y"?Ut:Ht,f=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],y=ai(s),w=y?c==="y"?y.clientHeight||0:y.clientWidth||0:0,x=f/2-m/2,S=h[b],C=w-v[u]-h[g],O=w/2-v[u]/2+x,P=li(S,O,C),$=c;n.modifiersData[r]=(t={},t[$]=P,t.centerOffset=P-O,t)}}function AE(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Xh(t.elements.popper,i)&&(t.elements.arrow=i))}const ME={name:"arrow",enabled:!0,phase:"main",fn:IE,effect:AE,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function eo(e){return e.split("-")[1]}var _E={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $E(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Qr(n*i)/i||0,y:Qr(r*i)/i||0}}function tg(e){var t,n=e.popper,r=e.popperRect,i=e.placement,s=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,p=e.adaptive,u=e.roundOffsets,h=e.isFixed,v=a.x,b=v===void 0?0:v,g=a.y,f=g===void 0?0:g,m=typeof u=="function"?u({x:b,y:f}):{x:b,y:f};b=m.x,f=m.y;var y=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),x=Mt,S=At,C=window;if(p){var O=ai(n),P="clientHeight",$="clientWidth";if(O===Lt(n)&&(O=Jn(n),Ln(O).position!=="static"&&l==="absolute"&&(P="scrollHeight",$="scrollWidth")),O=O,i===At||(i===Mt||i===Ht)&&s===ii){S=Ut;var A=h&&O===C&&C.visualViewport?C.visualViewport.height:O[P];f-=A-r.height,f*=c?1:-1}if(i===Mt||(i===At||i===Ut)&&s===ii){x=Ht;var j=h&&O===C&&C.visualViewport?C.visualViewport.width:O[$];b-=j-r.width,b*=c?1:-1}}var L=Object.assign({position:l},p&&_E),T=u===!0?$E({x:b,y:f},Lt(n)):{x:b,y:f};if(b=T.x,f=T.y,c){var k;return Object.assign({},L,(k={},k[S]=w?"0":"",k[x]=y?"0":"",k.transform=(C.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",k))}return Object.assign({},L,(t={},t[S]=w?f+"px":"",t[x]=y?b+"px":"",t.transform="",t))}function DE(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,p={placement:yn(t.placement),variation:eo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,tg(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tg(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const FE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:DE,data:{}};var ia={passive:!0};function jE(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Lt(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&p.forEach(function(u){u.addEventListener("scroll",n.update,ia)}),l&&c.addEventListener("resize",n.update,ia),function(){s&&p.forEach(function(u){u.removeEventListener("scroll",n.update,ia)}),l&&c.removeEventListener("resize",n.update,ia)}}const LE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jE,data:{}};var zE={left:"right",right:"left",bottom:"top",top:"bottom"};function sa(e){return e.replace(/left|right|bottom|top/g,function(t){return zE[t]})}var BE={start:"end",end:"start"};function ng(e){return e.replace(/start|end/g,function(t){return BE[t]})}function Lc(e){var t=Lt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function zc(e){return Zr(Jn(e)).left+Lc(e).scrollLeft}function RE(e,t){var n=Lt(e),r=Jn(e),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var p=Gh();(p||!p&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+zc(e),y:c}}function WE(e){var t,n=Jn(e),r=Lc(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=br(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=br(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+zc(e),c=-r.scrollTop;return Ln(i||n).direction==="rtl"&&(l+=br(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function Bc(e){var t=Ln(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rg(e){return["html","body","#document"].indexOf(mn(e))>=0?e.ownerDocument.body:qt(e)&&Bc(e)?e:rg(oa(e))}function ci(e,t){var n;t===void 0&&(t=[]);var r=rg(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),s=Lt(r),a=i?[s].concat(s.visualViewport||[],Bc(r)?r:[]):r,l=t.concat(a);return i?l:l.concat(ci(oa(a)))}function Rc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function VE(e,t){var n=Zr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function og(e,t,n){return t===qh?Rc(RE(e,n)):yr(t)?VE(t,n):Rc(WE(Jn(e)))}function UE(e){var t=ci(oa(e)),n=["absolute","fixed"].indexOf(Ln(e).position)>=0,r=n&&qt(e)?ai(e):e;return yr(r)?t.filter(function(i){return yr(i)&&Xh(i,r)&&mn(i)!=="body"}):[]}function HE(e,t,n,r){var i=t==="clippingParents"?UE(e):[].concat(t),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,p){var u=og(e,p,r);return c.top=br(u.top,c.top),c.right=ra(u.right,c.right),c.bottom=ra(u.bottom,c.bottom),c.left=br(u.left,c.left),c},og(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ig(e){var t=e.reference,n=e.element,r=e.placement,i=r?yn(r):null,s=r?eo(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case At:c={x:a,y:t.y-n.height};break;case Ut:c={x:a,y:t.y+t.height};break;case Ht:c={x:t.x+t.width,y:l};break;case Mt:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var p=i?jc(i):null;if(p!=null){var u=p==="y"?"height":"width";switch(s){case Jr:c[p]=c[p]-(t[u]/2-n[u]/2);break;case ii:c[p]=c[p]+(t[u]/2-n[u]/2);break}}return c}function di(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,s=n.strategy,a=s===void 0?e.strategy:s,l=n.boundary,c=l===void 0?uE:l,p=n.rootBoundary,u=p===void 0?qh:p,h=n.elementContext,v=h===void 0?si:h,b=n.altBoundary,g=b===void 0?!1:b,f=n.padding,m=f===void 0?0:f,y=Zh(typeof m!="number"?m:eg(m,oi)),w=v===si?pE:si,x=e.rects.popper,S=e.elements[g?w:v],C=HE(yr(S)?S:S.contextElement||Jn(e.elements.popper),c,u,a),O=Zr(e.elements.reference),P=ig({reference:O,element:x,placement:i}),$=Rc(Object.assign({},x,P)),A=v===si?$:O,j={top:C.top-A.top+y.top,bottom:A.bottom-C.bottom+y.bottom,left:C.left-A.left+y.left,right:A.right-C.right+y.right},L=e.modifiersData.offset;if(v===si&&L){var T=L[i];Object.keys(j).forEach(function(k){var _=[Ht,Ut].indexOf(k)>=0?1:-1,D=[At,Ut].indexOf(k)>=0?"y":"x";j[k]+=T[D]*_})}return j}function qE(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,p=c===void 0?Kh:c,u=eo(r),h=u?l?Yh:Yh.filter(function(g){return eo(g)===u}):oi,v=h.filter(function(g){return p.indexOf(g)>=0});v.length===0&&(v=h);var b=v.reduce(function(g,f){return g[f]=di(e,{placement:f,boundary:i,rootBoundary:s,padding:a})[yn(f)],g},{});return Object.keys(b).sort(function(g,f){return b[g]-b[f]})}function YE(e){if(yn(e)===_c)return[];var t=sa(e);return[ng(e),t,ng(t)]}function KE(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,p=n.padding,u=n.boundary,h=n.rootBoundary,v=n.altBoundary,b=n.flipVariations,g=b===void 0?!0:b,f=n.allowedAutoPlacements,m=t.options.placement,y=yn(m),w=y===m,x=c||(w||!g?[sa(m)]:YE(m)),S=[m].concat(x).reduce(function(G,q){return G.concat(yn(q)===_c?qE(t,{placement:q,boundary:u,rootBoundary:h,padding:p,flipVariations:g,allowedAutoPlacements:f}):q)},[]),C=t.rects.reference,O=t.rects.popper,P=new Map,$=!0,A=S[0],j=0;j<S.length;j++){var L=S[j],T=yn(L),k=eo(L)===Jr,_=[At,Ut].indexOf(T)>=0,D=_?"width":"height",N=di(t,{placement:L,boundary:u,rootBoundary:h,altBoundary:v,padding:p}),B=_?k?Ht:Mt:k?Ut:At;C[D]>O[D]&&(B=sa(B));var I=sa(B),W=[];if(s&&W.push(N[T]<=0),l&&W.push(N[B]<=0,N[I]<=0),W.every(function(G){return G})){A=L,$=!1;break}P.set(L,W)}if($)for(var z=g?3:1,R=function(q){var J=S.find(function(oe){var re=P.get(oe);if(re)return re.slice(0,q).every(function(ie){return ie})});if(J)return A=J,"break"},Y=z;Y>0;Y--){var te=R(Y);if(te==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}const GE={name:"flip",enabled:!0,phase:"main",fn:KE,requiresIfExists:["offset"],data:{_skip:!1}};function sg(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ag(e){return[At,Ht,Ut,Mt].some(function(t){return e[t]>=0})}function XE(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,a=di(t,{elementContext:"reference"}),l=di(t,{altBoundary:!0}),c=sg(a,r),p=sg(l,i,s),u=ag(c),h=ag(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const JE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:XE};function QE(e,t,n){var r=yn(e),i=[Mt,At].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[Mt,Ht].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function ZE(e){var t=e.state,n=e.options,r=e.name,i=n.offset,s=i===void 0?[0,0]:i,a=Kh.reduce(function(u,h){return u[h]=QE(h,t.rects,s),u},{}),l=a[t.placement],c=l.x,p=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=a}const eT={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ZE};function tT(e){var t=e.state,n=e.name;t.modifiersData[n]=ig({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const nT={name:"popperOffsets",enabled:!0,phase:"read",fn:tT,data:{}};function rT(e){return e==="x"?"y":"x"}function oT(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,p=n.rootBoundary,u=n.altBoundary,h=n.padding,v=n.tether,b=v===void 0?!0:v,g=n.tetherOffset,f=g===void 0?0:g,m=di(t,{boundary:c,rootBoundary:p,padding:h,altBoundary:u}),y=yn(t.placement),w=eo(t.placement),x=!w,S=jc(y),C=rT(S),O=t.modifiersData.popperOffsets,P=t.rects.reference,$=t.rects.popper,A=typeof f=="function"?f(Object.assign({},t.rects,{placement:t.placement})):f,j=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(O){if(s){var k,_=S==="y"?At:Mt,D=S==="y"?Ut:Ht,N=S==="y"?"height":"width",B=O[S],I=B+m[_],W=B-m[D],z=b?-$[N]/2:0,R=w===Jr?P[N]:$[N],Y=w===Jr?-$[N]:-P[N],te=t.elements.arrow,G=b&&te?Fc(te):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Qh(),J=q[_],oe=q[D],re=li(0,P[N],G[N]),ie=x?P[N]/2-z-re-J-j.mainAxis:R-re-J-j.mainAxis,ee=x?-P[N]/2+z+re+oe+j.mainAxis:Y+re+oe+j.mainAxis,ce=t.elements.arrow&&ai(t.elements.arrow),H=ce?S==="y"?ce.clientTop||0:ce.clientLeft||0:0,de=(k=L?.[S])!=null?k:0,se=B+ie-de-H,ve=B+ee-de,Be=li(b?ra(I,se):I,B,b?br(W,ve):W);O[S]=Be,T[S]=Be-B}if(l){var Te,Ne=S==="x"?At:Mt,je=S==="x"?Ut:Ht,Re=O[C],Me=C==="y"?"height":"width",ae=Re+m[Ne],Ke=Re-m[je],Pe=[At,Mt].indexOf(y)!==-1,ne=(Te=L?.[C])!=null?Te:0,Z=Pe?ae:Re-P[Me]-$[Me]-ne+j.altAxis,ue=Pe?Re+P[Me]+$[Me]-ne-j.altAxis:Ke,xe=b&&Pe?kE(Z,Re,ue):li(b?Z:ae,Re,b?ue:Ke);O[C]=xe,T[C]=xe-Re}t.modifiersData[r]=T}}const iT={name:"preventOverflow",enabled:!0,phase:"main",fn:oT,requiresIfExists:["offset"]};function sT(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function aT(e){return e===Lt(e)||!qt(e)?Lc(e):sT(e)}function lT(e){var t=e.getBoundingClientRect(),n=Qr(t.width)/e.offsetWidth||1,r=Qr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function cT(e,t,n){n===void 0&&(n=!1);var r=qt(t),i=qt(t)&&lT(t),s=Jn(t),a=Zr(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((mn(t)!=="body"||Bc(s))&&(l=aT(t)),qt(t)?(c=Zr(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=zc(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function dT(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||i(s)}),r}function uT(e){var t=dT(e);return wE.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function pT(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fT(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lg={placement:"bottom",modifiers:[],strategy:"absolute"};function cg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function hT(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?lg:i;return function(l,c,p){p===void 0&&(p=s);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},lg,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},h=[],v=!1,b={state:u,setOptions:function(y){var w=typeof y=="function"?y(u.options):y;f(),u.options=Object.assign({},s,u.options,w),u.scrollParents={reference:yr(l)?ci(l):l.contextElement?ci(l.contextElement):[],popper:ci(c)};var x=uT(fT([].concat(r,u.options.modifiers)));return u.orderedModifiers=x.filter(function(S){return S.enabled}),g(),b.update()},forceUpdate:function(){if(!v){var y=u.elements,w=y.reference,x=y.popper;if(cg(w,x)){u.rects={reference:cT(w,ai(x),u.options.strategy==="fixed"),popper:Fc(x)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(j){return u.modifiersData[j.name]=Object.assign({},j.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var C=u.orderedModifiers[S],O=C.fn,P=C.options,$=P===void 0?{}:P,A=C.name;typeof O=="function"&&(u=O({state:u,options:$,name:A,instance:b})||u)}}}},update:pT(function(){return new Promise(function(m){b.forceUpdate(),m(u)})}),destroy:function(){f(),v=!0}};if(!cg(l,c))return b;b.setOptions(p).then(function(m){!v&&p.onFirstUpdate&&p.onFirstUpdate(m)});function g(){u.orderedModifiers.forEach(function(m){var y=m.name,w=m.options,x=w===void 0?{}:w,S=m.effect;if(typeof S=="function"){var C=S({state:u,name:y,instance:b,options:x}),O=function(){};h.push(C||O)}})}function f(){h.forEach(function(m){return m()}),h=[]}return b}}var gT=[LE,nT,FE,TE,eT,GE,iT,ME,JE],mT=hT({defaultModifiers:gT});function bn(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...s}=e,a=i?{}:Fh(n,r),{props:l,internalRef:c}=Lh({...s,externalSlotProps:a}),p=at(c,a?.ref,e.additionalProps?.ref);return Dh(t,{...l,ref:p},r)}function vr(e){return parseInt(E.version,10)>=19?e?.props?.ref||null:e?.ref||null}function yT(e){return typeof e=="function"?e():e}const ui=E.forwardRef(function(t,n){const{children:r,container:i,disablePortal:s=!1}=t,[a,l]=E.useState(null),c=at(E.isValidElement(r)?vr(r):null,n);if(Wt(()=>{s||l(yT(i)||document.body)},[i,s]),Wt(()=>{if(a&&!s)return Eh(n,a),()=>{Eh(n,null)}},[n,a,s]),s){if(E.isValidElement(r)){const p={ref:c};return E.cloneElement(r,p)}return r}return a&&_m.createPortal(r,a)});process.env.NODE_ENV!=="production"&&(ui.propTypes={children:o.node,container:o.oneOfType([jn,o.func]),disablePortal:o.bool}),process.env.NODE_ENV!=="production"&&(ui.propTypes=pc(ui.propTypes));function bT(e){return ge("MuiPopper",e)}he("MuiPopper",["root"]);function vT(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function aa(e){return typeof e=="function"?e():e}function la(e){return e.nodeType!==void 0}function xT(e){return!la(e)}const ST=e=>{const{classes:t}=e;return me({root:["root"]},bT,t)},wT={},CT=E.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:s,disablePortal:a,modifiers:l,open:c,placement:p,popperOptions:u,popperRef:h,slotProps:v={},slots:b={},TransitionProps:g,ownerState:f,...m}=t,y=E.useRef(null),w=at(y,n),x=E.useRef(null),S=at(x,h),C=E.useRef(S);Wt(()=>{C.current=S},[S]),E.useImperativeHandle(h,()=>x.current,[]);const O=vT(p,s),[P,$]=E.useState(O),[A,j]=E.useState(aa(r));E.useEffect(()=>{x.current&&x.current.forceUpdate()}),E.useEffect(()=>{r&&j(aa(r))},[r]),Wt(()=>{if(!A||!c)return;const D=I=>{$(I.placement)};if(process.env.NODE_ENV!=="production"&&A&&la(A)&&A.nodeType===1){const I=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&I.top===0&&I.left===0&&I.right===0&&I.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
165
|
+
`))}let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:I})=>{D(I)}}];l!=null&&(N=N.concat(l)),u&&u.modifiers!=null&&(N=N.concat(u.modifiers));const B=mT(A,y.current,{placement:O,...u,modifiers:N});return C.current(B),()=>{B.destroy(),C.current(null)}},[A,a,l,c,u,O]);const L={placement:P};g!==null&&(L.TransitionProps=g);const T=ST(t),k=b.root??"div",_=bn({elementType:k,externalSlotProps:v.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:T.root});return d.jsx(k,{..._,children:typeof i=="function"?i(L):i})}),dg=E.forwardRef(function(t,n){const{anchorEl:r,children:i,container:s,direction:a="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:p,open:u,placement:h="bottom",popperOptions:v=wT,popperRef:b,style:g,transition:f=!1,slotProps:m={},slots:y={},...w}=t,[x,S]=E.useState(!0),C=()=>{S(!1)},O=()=>{S(!0)};if(!c&&!u&&(!f||x))return null;let P;if(s)P=s;else if(r){const j=aa(r);P=j&&la(j)?ct(j).body:ct(null).body}const $=!u&&c&&(!f||x)?"none":void 0,A=f?{in:u,onEnter:C,onExited:O}:void 0;return d.jsx(ui,{disablePortal:l,container:P,children:d.jsx(CT,{anchorEl:r,direction:a,disablePortal:l,modifiers:p,ref:n,open:f?!x:u,placement:h,popperOptions:v,popperRef:b,slotProps:m,slots:y,...w,style:{position:"fixed",top:0,left:0,display:$,...g},TransitionProps:A,children:i})})});process.env.NODE_ENV!=="production"&&(dg.propTypes={anchorEl:tn(o.oneOfType([jn,o.object,o.func]),e=>{if(e.open){const t=aa(e.anchorEl);if(t&&la(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
166
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||xT(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
|
|
167
|
+
`))}return null}),children:o.oneOfType([o.node,o.func]),container:o.oneOfType([jn,o.func]),direction:o.oneOf(["ltr","rtl"]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),transition:o.bool});const ET=X(dg,{name:"MuiPopper",slot:"Root"})({}),Wc=E.forwardRef(function(t,n){const r=Qo(),i=be({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:l,componentsProps:c,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:b,placement:g,popperOptions:f,popperRef:m,transition:y,slots:w,slotProps:x,...S}=i,C=w?.root??l?.Root,O={anchorEl:s,container:p,disablePortal:u,keepMounted:h,modifiers:v,open:b,placement:g,popperOptions:f,popperRef:m,transition:y,...S};return d.jsx(ET,{as:a,direction:r?"rtl":"ltr",slots:{root:C},slotProps:x??c,...O,ref:n})});process.env.NODE_ENV!=="production"&&(Wc.propTypes={anchorEl:o.oneOfType([jn,o.object,o.func]),children:o.oneOfType([o.node,o.func]),component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([jn,o.func]),disablePortal:o.bool,keepMounted:o.bool,modifiers:o.arrayOf(o.shape({data:o.object,effect:o.func,enabled:o.bool,fn:o.func,name:o.any,options:o.object,phase:o.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:o.arrayOf(o.string),requiresIfExists:o.arrayOf(o.string)})),open:o.bool.isRequired,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:o.shape({modifiers:o.array,onFirstUpdate:o.func,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:o.oneOf(["absolute","fixed"])}),popperRef:wt,slotProps:o.shape({root:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transition:o.bool});function ca(e){return parseInt(e,10)||0}const TT={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function OT(e){for(const t in e)return!1;return!0}function ug(e){return OT(e)||e.outerHeightStyle===0&&!e.overflowing}const pg=E.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:s=1,style:a,value:l,...c}=t,{current:p}=E.useRef(l!=null),u=E.useRef(null),h=at(n,u),v=E.useRef(null),b=E.useRef(null),g=E.useCallback(()=>{const x=u.current,S=b.current;if(!x||!S)return;const O=Dn(x).getComputedStyle(x);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=O.width,S.value=x.value||t.placeholder||"x",S.value.slice(-1)===`
|
|
168
|
+
`&&(S.value+=" ");const P=O.boxSizing,$=ca(O.paddingBottom)+ca(O.paddingTop),A=ca(O.borderBottomWidth)+ca(O.borderTopWidth),j=S.scrollHeight;S.value="x";const L=S.scrollHeight;let T=j;s&&(T=Math.max(Number(s)*L,T)),i&&(T=Math.min(Number(i)*L,T)),T=Math.max(T,L);const k=T+(P==="border-box"?$+A:0),_=Math.abs(T-j)<=1;return{outerHeightStyle:k,overflowing:_}},[i,s,t.placeholder]),f=St(()=>{const x=u.current,S=g();if(!x||!S||ug(S))return!1;const C=S.outerHeightStyle;return v.current!=null&&v.current!==C}),m=E.useCallback(()=>{const x=u.current,S=g();if(!x||!S||ug(S))return;const C=S.outerHeightStyle;v.current!==C&&(v.current=C,x.style.height=`${C}px`),x.style.overflow=S.overflowing?"hidden":""},[g]),y=E.useRef(-1);Wt(()=>{const x=Ch(m),S=u?.current;if(!S)return;const C=Dn(S);C.addEventListener("resize",x);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{f()&&(O.unobserve(S),cancelAnimationFrame(y.current),m(),y.current=requestAnimationFrame(()=>{O.observe(S)}))}),O.observe(S)),()=>{x.clear(),cancelAnimationFrame(y.current),C.removeEventListener("resize",x),O&&O.disconnect()}},[g,m,f]),Wt(()=>{m()});const w=x=>{p||m();const S=x.target,C=S.value.length,O=S.value.endsWith(`
|
|
169
|
+
`),P=S.selectionStart===C;O&&P&&S.setSelectionRange(C,C),r&&r(x)};return d.jsxs(E.Fragment,{children:[d.jsx("textarea",{value:l,onChange:w,ref:h,rows:s,style:a,...c}),d.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:b,tabIndex:-1,style:{...TT.shadow,...a,paddingTop:0,paddingBottom:0}})]})});process.env.NODE_ENV!=="production"&&(pg.propTypes={className:o.string,maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),onChange:o.func,placeholder:o.string,style:o.object,value:o.oneOfType([o.arrayOf(o.string),o.number,o.string])});function Qn({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const da=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(da.displayName="FormControlContext");function vn(){return E.useContext(da)}function fg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ua(e,t=!1){return e&&(fg(e.value)&&e.value!==""||t&&fg(e.defaultValue)&&e.defaultValue!=="")}function PT(e){return e.startAdornment}function kT(e){return ge("MuiInputBase",e)}const to=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hg;const pa=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Q(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},fa=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},NT=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:s,focused:a,formControl:l,fullWidth:c,hiddenLabel:p,multiline:u,readOnly:h,size:v,startAdornment:b,type:g}=e,f={root:["root",`color${Q(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",l&&"formControl",v&&v!=="medium"&&`size${Q(v)}`,u&&"multiline",b&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",g==="search"&&"inputTypeSearch",u&&"inputMultiline",v==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",b&&"inputAdornedStart",s&&"inputAdornedEnd",h&&"readOnly"]};return me(f,kT,t)},ha=X("div",{name:"MuiInputBase",slot:"Root",overridesResolver:pa})(fe(({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",[`&.${to.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ga=X("input",{name:"MuiInputBase",slot:"Input",overridesResolver:fa})(fe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${to.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${to.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),gg=cC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),pi=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:s,autoFocus:a,className:l,color:c,components:p={},componentsProps:u={},defaultValue:h,disabled:v,disableInjectingGlobalStyles:b,endAdornment:g,error:f,fullWidth:m=!1,id:y,inputComponent:w="input",inputProps:x={},inputRef:S,margin:C,maxRows:O,minRows:P,multiline:$=!1,name:A,onBlur:j,onChange:L,onClick:T,onFocus:k,onKeyDown:_,onKeyUp:D,placeholder:N,readOnly:B,renderSuffix:I,rows:W,size:z,slotProps:R={},slots:Y={},startAdornment:te,type:G="text",value:q,...J}=r,oe=x.value!=null?x.value:q,{current:re}=E.useRef(oe!=null),ie=E.useRef(),ee=E.useCallback(ye=>{process.env.NODE_ENV!=="production"&&ye&&ye.nodeName!=="INPUT"&&!ye.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
|
|
170
|
+
`))},[]),ce=at(ie,S,x.ref,ee),[H,de]=E.useState(!1),se=vn();process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(se)return se.registerEffect()},[se]);const ve=Qn({props:r,muiFormControl:se,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ve.focused=se?se.focused:H,E.useEffect(()=>{!se&&v&&H&&(de(!1),j&&j())},[se,v,H,j]);const Be=se&&se.onFilled,Te=se&&se.onEmpty,Ne=E.useCallback(ye=>{ua(ye)?Be&&Be():Te&&Te()},[Be,Te]);Wt(()=>{re&&Ne({value:oe})},[oe,Ne,re]);const je=ye=>{k&&k(ye),x.onFocus&&x.onFocus(ye),se&&se.onFocus?se.onFocus(ye):de(!0)},Re=ye=>{j&&j(ye),x.onBlur&&x.onBlur(ye),se&&se.onBlur?se.onBlur(ye):de(!1)},Me=(ye,...Ze)=>{if(!re){const Ae=ye.target||ie.current;if(Ae==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.":cn(1));Ne({value:Ae.value})}x.onChange&&x.onChange(ye,...Ze),L&&L(ye,...Ze)};E.useEffect(()=>{Ne(ie.current)},[]);const ae=ye=>{ie.current&&ye.currentTarget===ye.target&&ie.current.focus(),T&&T(ye)};let Ke=w,Pe=x;$&&Ke==="input"&&(W?(process.env.NODE_ENV!=="production"&&(P||O)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),Pe={type:void 0,minRows:W,maxRows:W,...Pe}):Pe={type:void 0,maxRows:O,minRows:P,...Pe},Ke=pg);const ne=ye=>{Ne(ye.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};E.useEffect(()=>{se&&se.setAdornedStart(!!te)},[se,te]);const Z={...r,color:ve.color||"primary",disabled:ve.disabled,endAdornment:g,error:ve.error,focused:ve.focused,formControl:se,fullWidth:m,hiddenLabel:ve.hiddenLabel,multiline:$,size:ve.size,startAdornment:te,type:G},ue=NT(Z),xe=Y.root||p.Root||ha,Ce=R.root||u.root||{},we=Y.input||p.Input||ga;return Pe={...Pe,...R.input??u.input},d.jsxs(E.Fragment,{children:[!b&&typeof gg=="function"&&(hg||(hg=d.jsx(gg,{}))),d.jsxs(xe,{...Ce,ref:n,onClick:ae,...J,...!Xn(xe)&&{ownerState:{...Z,...Ce.ownerState}},className:le(ue.root,Ce.className,l,B&&"MuiInputBase-readOnly"),children:[te,d.jsx(da.Provider,{value:null,children:d.jsx(we,{"aria-invalid":ve.error,"aria-describedby":i,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ve.disabled,id:y,onAnimationStart:ne,name:A,placeholder:N,readOnly:B,required:ve.required,rows:W,value:oe,onKeyDown:_,onKeyUp:D,type:G,...Pe,...!Xn(we)&&{as:Ke,ownerState:{...Z,...Pe.ownerState}},ref:ce,className:le(ue.input,Pe.className,B&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Me,onFocus:je})}),g,I?I({...ve,startAdornment:te}):null]})]})});process.env.NODE_ENV!=="production"&&(pi.propTypes={"aria-describedby":o.string,autoComplete:o.string,autoFocus:o.bool,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableInjectingGlobalStyles:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:kc,inputProps:o.object,inputRef:wt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClick:o.func,onFocus:o.func,onInvalid:o.func,onKeyDown:o.func,onKeyUp:o.func,placeholder:o.string,readOnly:o.bool,renderSuffix:o.func,required:o.bool,rows:o.oneOfType([o.number,o.string]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any});function IT(e){return ge("MuiInput",e)}const fi={...to,...he("MuiInput",["root","underline","input"])};function AT(e){return ge("MuiOutlinedInput",e)}const xn={...to,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function MT(e){return ge("MuiFilledInput",e)}const xr={...to,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},_T=Ge(d.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),$T=Ge(d.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 DT(e){return ge("MuiAvatar",e)}he("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const FT=e=>{const{classes:t,variant:n,colorDefault:r}=e;return me({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},DT,t)},jT=X("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(fe(({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]})}}}]}))),LT=X("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),zT=X($T,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function BT({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,s]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;s(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&s("loaded")},l.onerror=()=>{a&&s("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const ma=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiAvatar"}),{alt:i,children:s,className:a,component:l="div",slots:c={},slotProps:p={},imgProps:u,sizes:h,src:v,srcSet:b,variant:g="circular",...f}=r;let m=null;const y={...r,component:l,variant:g},w=BT({...u,...typeof p.img=="function"?p.img(y):p.img,src:v,srcSet:b}),x=v||b,S=x&&w!=="error";y.colorDefault=!S,delete y.ownerState;const C=FT(y),[O,P]=Se("root",{ref:n,className:le(C.root,a),elementType:jT,externalForwardedProps:{slots:c,slotProps:p,component:l,...f},ownerState:y}),[$,A]=Se("img",{className:C.img,elementType:LT,externalForwardedProps:{slots:c,slotProps:{img:{...u,...p.img}}},additionalProps:{alt:i,src:v,srcSet:b,sizes:h},ownerState:y}),[j,L]=Se("fallback",{className:C.fallback,elementType:zT,externalForwardedProps:{slots:c,slotProps:p},shouldForwardComponentProp:!0,ownerState:y});return S?m=d.jsx($,{...A}):s||s===0?m=s:x&&i?m=i[0]:m=d.jsx(j,{...L}),d.jsx(O,{...P,children:m})});process.env.NODE_ENV!=="production"&&(ma.propTypes={alt:o.string,children:o.node,classes:o.object,className:o.string,component:o.elementType,imgProps:o.object,sizes:o.string,slotProps:o.shape({fallback:o.oneOfType([o.func,o.object]),img:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({fallback:o.elementType,img:o.elementType,root:o.elementType}),src:o.string,srcSet:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["circular","rounded","square"]),o.string])});function RT(e){const{prototype:t={}}=e;return!!t.isReactComponent}function mg(e,t,n,r,i){const s=e[t],a=i||t;if(s==null||typeof window>"u")return null;let l;const c=s.type;return typeof c=="function"&&!RT(c)&&(l="Did you accidentally use a plain function component for an element instead?"),l!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Sr=tn(o.element,mg);Sr.isRequired=tn(o.element.isRequired,mg);const WT={entering:{opacity:1},entered:{opacity:1}},ya=E.forwardRef(function(t,n){const r=en(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,easing:c,in:p,onEnter:u,onEntered:h,onEntering:v,onExit:b,onExited:g,onExiting:f,style:m,timeout:y=i,TransitionComponent:w=gn,...x}=t,S=E.useRef(null),C=at(S,vr(l),n),O=_=>D=>{if(_){const N=S.current;D===void 0?_(N):_(N,D)}},P=O(v),$=O((_,D)=>{$h(_);const N=Zs({style:m,timeout:y,easing:c},{mode:"enter"});_.style.webkitTransition=r.transitions.create("opacity",N),_.style.transition=r.transitions.create("opacity",N),u&&u(_,D)}),A=O(h),j=O(f),L=O(_=>{const D=Zs({style:m,timeout:y,easing:c},{mode:"exit"});_.style.webkitTransition=r.transitions.create("opacity",D),_.style.transition=r.transitions.create("opacity",D),b&&b(_)}),T=O(g),k=_=>{s&&s(S.current,_)};return d.jsx(w,{appear:a,in:p,nodeRef:S,onEnter:$,onEntered:A,onEntering:P,onExit:L,onExited:T,onExiting:j,addEndListener:k,timeout:y,...x,children:(_,{ownerState:D,...N})=>E.cloneElement(l,{style:{opacity:0,visibility:_==="exited"&&!p?"hidden":void 0,...WT[_],...m,...l.props.style},ref:C,...N})})});process.env.NODE_ENV!=="production"&&(ya.propTypes={addEndListener:o.func,appear:o.bool,children:Sr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});function VT(e){return ge("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const UT=e=>{const{classes:t,invisible:n}=e;return me({root:["root",n&&"invisible"]},VT,t)},HT=X("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Vc=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiBackdrop"}),{children:i,className:s,component:a="div",invisible:l=!1,open:c,components:p={},componentsProps:u={},slotProps:h={},slots:v={},TransitionComponent:b,transitionDuration:g,...f}=r,m={...r,component:a,invisible:l},y=UT(m),w={transition:b,root:p.Root,...v},x={...u,...h},S={component:a,slots:w,slotProps:x},[C,O]=Se("root",{elementType:HT,externalForwardedProps:S,className:le(y.root,s),ownerState:m}),[P,$]=Se("transition",{elementType:ya,externalForwardedProps:S,ownerState:m});return d.jsx(P,{in:c,timeout:g,...f,...$,children:d.jsx(C,{"aria-hidden":!0,...O,classes:y,ref:n,children:i})})});process.env.NODE_ENV!=="production"&&(Vc.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,components:o.shape({Root:o.elementType}),componentsProps:o.shape({root:o.object}),invisible:o.bool,open:o.bool.isRequired,slotProps:o.shape({root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])});const qT=he("MuiBox",["root"]),YT=xc(),M=rw({themeId:zo,defaultTheme:YT,defaultClassName:qT.root,generateClassName:Kf.generate});process.env.NODE_ENV!=="production"&&(M.propTypes={children:o.node,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function KT(e){return ge("MuiButton",e)}const wr=he("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"]),yg=E.createContext({});process.env.NODE_ENV!=="production"&&(yg.displayName="ButtonGroupContext");const bg=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(bg.displayName="ButtonGroupButtonContext");const GT=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:s,loading:a,loadingPosition:l,classes:c}=e,p={root:["root",a&&"loading",s,`${s}${Q(t)}`,`size${Q(i)}`,`${s}Size${Q(i)}`,`color${Q(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Q(l)}`],startIcon:["icon","startIcon",`iconSize${Q(i)}`],endIcon:["icon","endIcon",`iconSize${Q(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=me(p,KT,c);return{...c,...u}},vg=[{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}}}],XT=X(ri,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Q(n.color)}`],t[`size${Q(n.size)}`],t[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(fe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${wr.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]},[`&.${wr.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${wr.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)",[`&.${wr.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wr.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}),[`&.${wr.loading}`]:{color:"transparent"}}}]}})),JT=X("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Q(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...vg]})),QT=X("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Q(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...vg]})),ZT=X("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),xg=X("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Xe=E.forwardRef(function(t,n){const r=E.useContext(yg),i=E.useContext(bg),s=Xo(r,t),a=be({props:s,name:"MuiButton"}),{children:l,color:c="primary",component:p="button",className:u,disabled:h=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:g,focusVisibleClassName:f,fullWidth:m=!1,id:y,loading:w=null,loadingIndicator:x,loadingPosition:S="center",size:C="medium",startIcon:O,type:P,variant:$="text",...A}=a,j=ur(y),L=x??d.jsx(na,{"aria-labelledby":j,color:"inherit",size:16}),T={...a,color:c,component:p,disabled:h,disableElevation:v,disableFocusRipple:b,fullWidth:m,loading:w,loadingIndicator:L,loadingPosition:S,size:C,type:P,variant:$},k=GT(T),_=(O||w&&S==="start")&&d.jsx(JT,{className:k.startIcon,ownerState:T,children:O||d.jsx(xg,{className:k.loadingIconPlaceholder,ownerState:T})}),D=(g||w&&S==="end")&&d.jsx(QT,{className:k.endIcon,ownerState:T,children:g||d.jsx(xg,{className:k.loadingIconPlaceholder,ownerState:T})}),N=i||"",B=typeof w=="boolean"?d.jsx("span",{className:k.loadingWrapper,style:{display:"contents"},children:w&&d.jsx(ZT,{className:k.loadingIndicator,ownerState:T,children:L})}):null;return d.jsxs(XT,{ownerState:T,className:le(r.className,k.root,u,N),component:p,disabled:h||w,focusRipple:!b,focusVisibleClassName:le(k.focusVisible,f),ref:n,type:P,id:w?j:y,...A,classes:k,children:[_,S!=="end"&&B,l,S==="end"&&B,D]})});process.env.NODE_ENV!=="production"&&(Xe.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary","success","error","info","warning"]),o.string]),component:o.elementType,disabled:o.bool,disableElevation:o.bool,disableFocusRipple:o.bool,disableRipple:o.bool,endIcon:o.node,focusVisibleClassName:o.string,fullWidth:o.bool,href:o.string,id:o.string,loading:o.bool,loadingIndicator:o.node,loadingPosition:o.oneOf(["center","end","start"]),size:o.oneOfType([o.oneOf(["small","medium","large"]),o.string]),startIcon:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.oneOfType([o.oneOf(["button","reset","submit"]),o.string]),variant:o.oneOfType([o.oneOf(["contained","outlined","text"]),o.string])});function eO(e){return ge("MuiCard",e)}he("MuiCard",["root"]);const tO=e=>{const{classes:t}=e;return me({root:["root"]},eO,t)},nO=X(nn,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),zn=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiCard"}),{className:i,raised:s=!1,...a}=r,l={...r,raised:s},c=tO(l);return d.jsx(nO,{className:le(c.root,i),elevation:s?8:void 0,ref:n,ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(zn.propTypes={children:o.node,classes:o.object,className:o.string,raised:tn(o.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rO(e){return ge("MuiCardContent",e)}he("MuiCardContent",["root"]);const oO=e=>{const{classes:t}=e;return me({root:["root"]},rO,t)},iO=X("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),Sg=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiCardContent"}),{className:i,component:s="div",...a}=r,l={...r,component:s},c=oO(l);return d.jsx(iO,{as:s,className:le(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Sg.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function sO(e){return ge("PrivateSwitchBase",e)}he("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const aO=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,s={root:["root",n&&"checked",r&&"disabled",i&&`edge${Q(i)}`],input:["input"]};return me(s,sO,t)},lO=X(ri,{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}}]}),cO=X("input",{name:"MuiSwitchBase",shouldForwardProp:vt})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ba=E.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:s,defaultChecked:a,disabled:l,disableFocusRipple:c=!1,edge:p=!1,icon:u,id:h,inputProps:v,inputRef:b,name:g,onBlur:f,onChange:m,onFocus:y,readOnly:w,required:x=!1,tabIndex:S,type:C,value:O,slots:P={},slotProps:$={},...A}=t,[j,L]=Yr({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),T=vn(),k=q=>{y&&y(q),T&&T.onFocus&&T.onFocus(q)},_=q=>{f&&f(q),T&&T.onBlur&&T.onBlur(q)},D=q=>{if(q.nativeEvent.defaultPrevented)return;const J=q.target.checked;L(J),m&&m(q,J)};let N=l;T&&typeof N>"u"&&(N=T.disabled);const B=C==="checkbox"||C==="radio",I={...t,checked:j,disabled:N,disableFocusRipple:c,edge:p},W=aO(I),z={slots:P,slotProps:{input:v,...$}},[R,Y]=Se("root",{ref:n,elementType:lO,className:W.root,shouldForwardComponentProp:!0,externalForwardedProps:{...z,component:"span",...A},getSlotProps:q=>({...q,onFocus:J=>{q.onFocus?.(J),k(J)},onBlur:J=>{q.onBlur?.(J),_(J)}}),ownerState:I,additionalProps:{centerRipple:!0,focusRipple:!c,disabled:N,role:void 0,tabIndex:null}}),[te,G]=Se("input",{ref:b,elementType:cO,className:W.input,externalForwardedProps:z,getSlotProps:q=>({...q,onChange:J=>{q.onChange?.(J),D(J)}}),ownerState:I,additionalProps:{autoFocus:r,checked:i,defaultChecked:a,disabled:N,id:B?h:void 0,name:g,readOnly:w,required:x,tabIndex:S,type:C,...C==="checkbox"&&O===void 0?{}:{value:O}}});return d.jsxs(R,{...Y,children:[d.jsx(te,{...G}),j?s:u]})});process.env.NODE_ENV!=="production"&&(ba.propTypes={autoFocus:o.bool,checked:o.bool,checkedIcon:o.node.isRequired,classes:o.object,className:o.string,defaultChecked:o.bool,disabled:o.bool,disableFocusRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node.isRequired,id:o.string,inputProps:o.object,inputRef:wt,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,readOnly:o.bool,required:o.bool,slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.string.isRequired,value:o.any});const dO=Ge(d.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"),uO=Ge(d.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"),pO=Ge(d.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 fO(e){return ge("MuiCheckbox",e)}const Uc=he("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),hO=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,s={root:["root",n&&"indeterminate",`color${Q(r)}`,`size${Q(i)}`]},a=me(s,fO,t);return{...t,...a}},gO=X(ba,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Q(n.size)}`],n.color!=="default"&&t[`color${Q(n.color)}`]]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${Uc.checked}, &.${Uc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Uc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),mO=d.jsx(uO,{}),yO=d.jsx(dO,{}),bO=d.jsx(pO,{}),Bn=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiCheckbox"}),{checkedIcon:i=mO,color:s="primary",icon:a=yO,indeterminate:l=!1,indeterminateIcon:c=bO,inputProps:p,size:u="medium",disableRipple:h=!1,className:v,slots:b={},slotProps:g={},...f}=r,m=l?c:a,y=l?c:i,w={...r,disableRipple:h,color:s,indeterminate:l,size:u},x=hO(w),S=g.input??p,[C,O]=Se("root",{ref:n,elementType:gO,className:le(x.root,v),shouldForwardComponentProp:!0,externalForwardedProps:{slots:b,slotProps:g,...f},ownerState:w,additionalProps:{type:"checkbox",icon:E.cloneElement(m,{fontSize:m.props.fontSize??u}),checkedIcon:E.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:h,slots:b,slotProps:{input:Th(typeof S=="function"?S(w):S,{"data-indeterminate":l})}}});return d.jsx(C,{...O,classes:x})});process.env.NODE_ENV!=="production"&&(Bn.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,indeterminate:o.bool,indeterminateIcon:o.node,inputProps:o.object,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function wg(e){return e.substring(2).toLowerCase()}function vO(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function va(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=e,a=E.useRef(!1),l=E.useRef(null),c=E.useRef(!1),p=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=at(vr(t),l),h=St(g=>{const f=p.current;p.current=!1;const m=ct(l.current);if(!c.current||!l.current||"clientX"in g&&vO(g,m))return;if(a.current){a.current=!1;return}let y;g.composedPath?y=g.composedPath().includes(l.current):y=!m.documentElement.contains(g.target)||l.current.contains(g.target),!y&&(n||!f)&&i(g)}),v=g=>f=>{p.current=!0;const m=t.props[g];m&&m(f)},b={ref:u};return s!==!1&&(b[s]=v(s)),E.useEffect(()=>{if(s!==!1){const g=wg(s),f=ct(l.current),m=()=>{a.current=!0};return f.addEventListener(g,h),f.addEventListener("touchmove",m),()=>{f.removeEventListener(g,h),f.removeEventListener("touchmove",m)}}},[h,s]),r!==!1&&(b[r]=v(r)),E.useEffect(()=>{if(r!==!1){const g=wg(r),f=ct(l.current);return f.addEventListener(g,h),()=>{f.removeEventListener(g,h)}}},[h,r]),E.cloneElement(t,b)}process.env.NODE_ENV!=="production"&&(va.propTypes={children:Sr.isRequired,disableReactTree:o.bool,mouseEvent:o.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:o.func.isRequired,touchEvent:o.oneOf(["onTouchEnd","onTouchStart",!1])}),process.env.NODE_ENV!=="production"&&(va.propTypes=pc(va.propTypes));function Cg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xO(e){const t=ct(e);return t.body===e?Dn(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function hi(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Eg(e){return parseInt(Dn(e).getComputedStyle(e).paddingRight,10)||0}function SO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Tg(e,t,n,r,i){const s=[t,n,...r];[].forEach.call(e.children,a=>{const l=!s.includes(a),c=!SO(a);l&&c&&hi(a,i)})}function Hc(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function wO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(xO(r)){const a=Cg(Dn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Eg(r)+a}px`;const l=ct(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Eg(c)+a}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=ct(r).body;else{const a=r.parentElement,l=Dn(r);s=a?.nodeName==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:a,property:l})=>{s?a.style.setProperty(l,s):a.style.removeProperty(l)})}}function CO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class EO{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&hi(t.modalRef,!1);const i=CO(n);Tg(n,t.mount,t.modalRef,i,!0);const s=Hc(this.containers,a=>a.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=Hc(this.containers,s=>s.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=wO(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Hc(this.containers,a=>a.modals.includes(t)),s=this.containers[i];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&hi(t.modalRef,n),Tg(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=s.modals[s.modals.length-1];a.modalRef&&hi(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function gi(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}const TO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function OO(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 PO(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function kO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||PO(e))}function NO(e){const t=[],n=[];return Array.from(e.querySelectorAll(TO)).forEach((r,i)=>{const s=OO(r);s===-1||!kO(r)||(s===0?t.push(r):n.push({documentOrder:i,tabIndex:s,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function IO(){return!0}function xa(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:s=NO,isEnabled:a=IO,open:l}=e,c=E.useRef(!1),p=E.useRef(null),u=E.useRef(null),h=E.useRef(null),v=E.useRef(null),b=E.useRef(!1),g=E.useRef(null),f=at(vr(t),g),m=E.useRef(null);E.useEffect(()=>{!l||!g.current||(b.current=!n)},[n,l]),E.useEffect(()=>{if(!l||!g.current)return;const x=ct(g.current),S=gi(x);return g.current.contains(S)||(g.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
|
|
171
|
+
`)),g.current.setAttribute("tabIndex","-1")),b.current&&g.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),E.useEffect(()=>{if(!l||!g.current)return;const x=ct(g.current),S=gi(x),C=$=>{m.current=$,!(r||!a()||$.key!=="Tab")&&S===g.current&&$.shiftKey&&(c.current=!0,u.current&&u.current.focus())},O=()=>{const $=g.current;if($===null)return;const A=gi(x);if(!x.hasFocus()||!a()||c.current){c.current=!1;return}if($.contains(A)||r&&A!==p.current&&A!==u.current)return;if(A!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let j=[];if((A===p.current||A===u.current)&&(j=s(g.current)),j.length>0){const L=!!(m.current?.shiftKey&&m.current?.key==="Tab"),T=j[0],k=j[j.length-1];typeof T!="string"&&typeof k!="string"&&(L?k.focus():T.focus())}else $.focus()};x.addEventListener("focusin",O),x.addEventListener("keydown",C,!0);const P=setInterval(()=>{const $=gi(x);$&&$.tagName==="BODY"&&O()},50);return()=>{clearInterval(P),x.removeEventListener("focusin",O),x.removeEventListener("keydown",C,!0)}},[n,r,i,a,l,s]);const y=x=>{h.current===null&&(h.current=x.relatedTarget),b.current=!0,v.current=x.target;const S=t.props.onFocus;S&&S(x)},w=x=>{h.current===null&&(h.current=x.relatedTarget),b.current=!0};return d.jsxs(E.Fragment,{children:[d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:p,"data-testid":"sentinelStart"}),E.cloneElement(t,{ref:f,onFocus:y}),d.jsx("div",{tabIndex:l?0:-1,onFocus:w,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(xa.propTypes={children:Sr,disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableRestoreFocus:o.bool,getTabbable:o.func,isEnabled:o.func,open:o.bool.isRequired}),process.env.NODE_ENV!=="production"&&(xa.propTypes=pc(xa.propTypes));function AO(e){return typeof e=="function"?e():e}function MO(e){return e?e.props.hasOwnProperty("in"):!1}const Og=()=>{},Sa=new EO;function _O(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:s,onTransitionExited:a,children:l,onClose:c,open:p,rootRef:u}=e,h=E.useRef({}),v=E.useRef(null),b=E.useRef(null),g=at(b,u),[f,m]=E.useState(!p),y=MO(l);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>ct(v.current),S=()=>(h.current.modalRef=b.current,h.current.mount=v.current,h.current),C=()=>{Sa.mount(S(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},O=St(()=>{const D=AO(t)||x().body;Sa.add(S(),D),b.current&&C()}),P=()=>Sa.isTopModal(S()),$=St(D=>{v.current=D,D&&(p&&P()?C():b.current&&hi(b.current,w))}),A=E.useCallback(()=>{Sa.remove(S(),w)},[w]);E.useEffect(()=>()=>{A()},[A]),E.useEffect(()=>{p?O():(!y||!i)&&A()},[p,A,y,i,O]);const j=D=>N=>{D.onKeyDown?.(N),!(N.key!=="Escape"||N.which===229||!P())&&(n||(N.stopPropagation(),c&&c(N,"escapeKeyDown")))},L=D=>N=>{D.onClick?.(N),N.target===N.currentTarget&&c&&c(N,"backdropClick")};return{getRootProps:(D={})=>{const N=mr(e);delete N.onTransitionEnter,delete N.onTransitionExited;const B={...N,...D};return{role:"presentation",...B,onKeyDown:j(B),ref:g}},getBackdropProps:(D={})=>{const N=D;return{"aria-hidden":!0,...N,onClick:L(N),open:p}},getTransitionProps:()=>{const D=()=>{m(!1),s&&s()},N=()=>{m(!0),a&&a(),i&&A()};return{onEnter:wc(D,l?.props.onEnter??Og),onExited:wc(N,l?.props.onExited??Og)}},rootRef:g,portalRef:$,isTopModal:P,exited:f,hasTransition:y}}function $O(e){return ge("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const DO=e=>{const{open:t,exited:n,classes:r}=e;return me({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},$O,r)},FO=X("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(fe(({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"}}]}))),jO=X(Vc,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),mi=E.forwardRef(function(t,n){const r=be({name:"MuiModal",props:t}),{BackdropComponent:i=jO,BackdropProps:s,classes:a,className:l,closeAfterTransition:c=!1,children:p,container:u,component:h,components:v={},componentsProps:b={},disableAutoFocus:g=!1,disableEnforceFocus:f=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:S=!1,keepMounted:C=!1,onClose:O,onTransitionEnter:P,onTransitionExited:$,open:A,slotProps:j={},slots:L={},theme:T,...k}=r,_={...r,closeAfterTransition:c,disableAutoFocus:g,disableEnforceFocus:f,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:S,keepMounted:C},{getRootProps:D,getBackdropProps:N,getTransitionProps:B,portalRef:I,isTopModal:W,exited:z,hasTransition:R}=_O({..._,rootRef:n}),Y={..._,exited:z},te=DO(Y),G={};if(p.props.tabIndex===void 0&&(G.tabIndex="-1"),R){const{onEnter:ee,onExited:ce}=B();G.onEnter=ee,G.onExited=ce}const q={slots:{root:v.Root,backdrop:v.Backdrop,...L},slotProps:{...b,...j}},[J,oe]=Se("root",{ref:n,elementType:FO,externalForwardedProps:{...q,...k,component:h},getSlotProps:D,ownerState:Y,className:le(l,te?.root,!Y.open&&Y.exited&&te?.hidden)}),[re,ie]=Se("backdrop",{ref:s?.ref,elementType:i,externalForwardedProps:q,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:ee=>N({...ee,onClick:ce=>{ee?.onClick&&ee.onClick(ce)}}),className:le(s?.className,te?.backdrop),ownerState:Y});return!C&&!A&&(!R||z)?null:d.jsx(ui,{ref:I,container:u,disablePortal:y,children:d.jsxs(J,{...oe,children:[!S&&i?d.jsx(re,{...ie}):null,d.jsx(xa,{disableEnforceFocus:f,disableAutoFocus:g,disableRestoreFocus:w,isEnabled:W,open:A,children:E.cloneElement(p,G)})]})})});process.env.NODE_ENV!=="production"&&(mi.propTypes={BackdropComponent:o.elementType,BackdropProps:o.object,children:Sr.isRequired,classes:o.object,className:o.string,closeAfterTransition:o.bool,component:o.elementType,components:o.shape({Backdrop:o.elementType,Root:o.elementType}),componentsProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),container:o.oneOfType([jn,o.func]),disableAutoFocus:o.bool,disableEnforceFocus:o.bool,disableEscapeKeyDown:o.bool,disablePortal:o.bool,disableRestoreFocus:o.bool,disableScrollLock:o.bool,hideBackdrop:o.bool,keepMounted:o.bool,onClose:o.func,onTransitionEnter:o.func,onTransitionExited:o.func,open:o.bool.isRequired,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function LO(e){return ge("MuiDialog",e)}const qc=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Yc=E.createContext({});process.env.NODE_ENV!=="production"&&(Yc.displayName="DialogContext");const zO=X(Vc,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),BO=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:s}=e,a={root:["root"],container:["container",`scroll${Q(n)}`],paper:["paper",`paperScroll${Q(n)}`,`paperWidth${Q(String(r))}`,i&&"paperFullWidth",s&&"paperFullScreen"]};return me(a,LO,t)},RO=X(mi,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),WO=X("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Q(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),VO=X(nn,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Q(n.scroll)}`],t[`paperWidth${Q(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(fe(({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)`,[`&.${qc.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}`,[`&.${qc.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,[`&.${qc.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yi=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialog"}),i=en(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":c=!0,BackdropComponent:p,BackdropProps:u,children:h,className:v,disableEscapeKeyDown:b=!1,fullScreen:g=!1,fullWidth:f=!1,maxWidth:m="sm",onClick:y,onClose:w,open:x,PaperComponent:S=nn,PaperProps:C={},scroll:O="paper",slots:P={},slotProps:$={},TransitionComponent:A=ya,transitionDuration:j=s,TransitionProps:L,...T}=r,k={...r,disableEscapeKeyDown:b,fullScreen:g,fullWidth:f,maxWidth:m,scroll:O},_=BO(k),D=E.useRef(),N=de=>{D.current=de.target===de.currentTarget},B=de=>{y&&y(de),D.current&&(D.current=null,w&&w(de,"backdropClick"))},I=ur(l),W=E.useMemo(()=>({titleId:I}),[I]),z={transition:A,...P},R={transition:L,paper:C,backdrop:u,...$},Y={slots:z,slotProps:R},[te,G]=Se("root",{elementType:RO,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:k,className:le(_.root,v),ref:n}),[q,J]=Se("backdrop",{elementType:zO,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:k}),[oe,re]=Se("paper",{elementType:VO,shouldForwardComponentProp:!0,externalForwardedProps:Y,ownerState:k,className:le(_.paper,C.className)}),[ie,ee]=Se("container",{elementType:WO,externalForwardedProps:Y,ownerState:k,className:_.container}),[ce,H]=Se("transition",{elementType:ya,externalForwardedProps:Y,ownerState:k,additionalProps:{appear:!0,in:x,timeout:j,role:"presentation"}});return d.jsx(te,{closeAfterTransition:!0,slots:{backdrop:q},slotProps:{backdrop:{transitionDuration:j,as:p,...J}},disableEscapeKeyDown:b,onClose:w,open:x,onClick:B,...G,...T,children:d.jsx(ce,{...H,children:d.jsx(ie,{onMouseDown:N,...ee,children:d.jsx(oe,{as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":I,"aria-modal":c,...re,children:d.jsx(Yc.Provider,{value:W,children:h})})})})})});process.env.NODE_ENV!=="production"&&(yi.propTypes={"aria-describedby":o.string,"aria-labelledby":o.string,"aria-modal":o.oneOfType([o.oneOf(["false","true"]),o.bool]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,disableEscapeKeyDown:o.bool,fullScreen:o.bool,fullWidth:o.bool,maxWidth:o.oneOfType([o.oneOf(["xs","sm","md","lg","xl",!1]),o.string]),onClick:o.func,onClose:o.func,open:o.bool.isRequired,PaperComponent:o.elementType,PaperProps:o.object,scroll:o.oneOf(["body","paper"]),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),container:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,container:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function UO(e){return ge("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const HO=e=>{const{classes:t,disableSpacing:n}=e;return me({root:["root",!n&&"spacing"]},UO,t)},qO=X("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Kc=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:s=!1,...a}=r,l={...r,disableSpacing:s},c=HO(l);return d.jsx(qO,{className:le(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(Kc.propTypes={children:o.node,classes:o.object,className:o.string,disableSpacing:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function YO(e){return ge("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function KO(e){return ge("MuiDialogTitle",e)}const GO=he("MuiDialogTitle",["root"]),XO=e=>{const{classes:t,dividers:n}=e;return me({root:["root",n&&"dividers"]},YO,t)},JO=X("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(fe(({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:{[`.${GO.root} + &`]:{paddingTop:0}}}]}))),wa=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogContent"}),{className:i,dividers:s=!1,...a}=r,l={...r,dividers:s},c=XO(l);return d.jsx(JO,{className:le(c.root,i),ownerState:l,ref:n,...a})});process.env.NODE_ENV!=="production"&&(wa.propTypes={children:o.node,classes:o.object,className:o.string,dividers:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const QO=e=>{const{classes:t}=e;return me({root:["root"]},KO,t)},ZO=X(V,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),bi=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiDialogTitle"}),{className:i,id:s,...a}=r,l=r,c=QO(l),{titleId:p=s}=E.useContext(Yc);return d.jsx(ZO,{component:"h2",className:le(c.root,i),ownerState:l,ref:n,variant:"h6",id:s??p,...a})});process.env.NODE_ENV!=="production"&&(bi.propTypes={children:o.node,classes:o.object,className:o.string,id:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function eP(e){return ge("MuiDivider",e)}const Pg=he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),tP=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:s,orientation:a,textAlign:l,variant:c}=e;return me({root:["root",t&&"absolute",c,s&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},eP,r)},nP=X("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(fe(({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%"}}}]}))),rP=X("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(fe(({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)`}}]}))),Yt=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiDivider"}),{absolute:i=!1,children:s,className:a,orientation:l="horizontal",component:c=s||l==="vertical"?"div":"hr",flexItem:p=!1,light:u=!1,role:h=c!=="hr"?"separator":void 0,textAlign:v="center",variant:b="fullWidth",...g}=r,f={...r,absolute:i,component:c,flexItem:p,light:u,orientation:l,role:h,textAlign:v,variant:b},m=tP(f);return d.jsx(nP,{as:c,className:le(m.root,a),role:h,ref:n,ownerState:f,"aria-orientation":h==="separator"&&(c!=="hr"||l==="vertical")?l:void 0,...g,children:s?d.jsx(rP,{className:m.wrapper,ownerState:f,children:s}):null})});Yt&&(Yt.muiSkipListHighlight=!0),process.env.NODE_ENV!=="production"&&(Yt.propTypes={absolute:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,flexItem:o.bool,light:o.bool,orientation:o.oneOf(["horizontal","vertical"]),role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),textAlign:o.oneOf(["center","left","right"]),variant:o.oneOfType([o.oneOf(["fullWidth","inset","middle"]),o.string])});const oP=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:s,hiddenLabel:a,multiline:l}=e,c={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",s==="small"&&`size${Q(s)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},p=me(c,MT,t);return{...t,...p}},iP=X(ha,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...pa(e,t),!n.disableUnderline&&t.underline]}})(fe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${xr.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${xr.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:a})=>!a.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${xr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${xr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${xr.disabled}, .${xr.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${xr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([a])=>({props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[a]?.main}`}}})),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),sP=X(ga,{name:"MuiFilledInput",slot:"Input",overridesResolver:fa})(fe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Ca=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,hiddenLabel:c,inputComponent:p="input",multiline:u=!1,slotProps:h,slots:v={},type:b="text",...g}=r,f={...r,disableUnderline:i,fullWidth:l,inputComponent:p,multiline:u,type:b},m=oP(r),y={root:{ownerState:f},input:{ownerState:f}},w=h??a?bt(y,h??a):y,x=v.root??s.Root??iP,S=v.input??s.Input??sP;return d.jsx(pi,{slots:{root:x,input:S},slotProps:w,fullWidth:l,inputComponent:p,multiline:u,ref:n,type:b,...g,classes:m})});process.env.NODE_ENV!=="production"&&(Ca.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:wt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ca.muiName="Input";function aP(e){return ge("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const lP=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Q(n)}`,r&&"fullWidth"]};return me(i,aP,t)},cP=X("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Q(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ea=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormControl"}),{children:i,className:s,color:a="primary",component:l="div",disabled:c=!1,error:p=!1,focused:u,fullWidth:h=!1,hiddenLabel:v=!1,margin:b="none",required:g=!1,size:f="medium",variant:m="outlined",...y}=r,w={...r,color:a,component:l,disabled:c,error:p,fullWidth:h,hiddenLabel:v,margin:b,required:g,size:f,variant:m},x=lP(w),[S,C]=E.useState(()=>{let N=!1;return i&&E.Children.forEach(i,B=>{if(!hc(B,["Input","Select"]))return;const I=hc(B,["Select"])?B.props.input:B;I&&PT(I.props)&&(N=!0)}),N}),[O,P]=E.useState(()=>{let N=!1;return i&&E.Children.forEach(i,B=>{hc(B,["Input","Select"])&&(ua(B.props,!0)||ua(B.props.inputProps,!0))&&(N=!0)}),N}),[$,A]=E.useState(!1);c&&$&&A(!1);const j=u!==void 0&&!c?u:$;let L;const T=E.useRef(!1);process.env.NODE_ENV!=="production"&&(L=()=>(T.current&&console.error(["MUI: There are multiple `InputBase` components inside a FormControl.","This creates visual inconsistencies, only use one `InputBase`."].join(`
|
|
172
|
+
`)),T.current=!0,()=>{T.current=!1}));const k=E.useCallback(()=>{P(!0)},[]),_=E.useCallback(()=>{P(!1)},[]),D=E.useMemo(()=>({adornedStart:S,setAdornedStart:C,color:a,disabled:c,error:p,filled:O,focused:j,fullWidth:h,hiddenLabel:v,size:f,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:_,onFilled:k,registerEffect:L,required:g,variant:m}),[S,a,c,p,O,j,h,v,L,_,k,g,f,m]);return d.jsx(da.Provider,{value:D,children:d.jsx(cP,{as:l,ownerState:w,className:le(x.root,s),ref:n,...y,children:i})})});process.env.NODE_ENV!=="production"&&(Ea.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,focused:o.bool,fullWidth:o.bool,hiddenLabel:o.bool,margin:o.oneOf(["dense","none","normal"]),required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function dP(e){return ge("MuiFormControlLabel",e)}const vi=he("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),uP=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:s}=e,a={root:["root",n&&"disabled",`labelPlacement${Q(r)}`,i&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return me(a,dP,t)},pP=X("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vi.label}`]:t.label},t.root,t[`labelPlacement${Q(n.labelPlacement)}`]]}})(fe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${vi.disabled}`]:{cursor:"default"},[`& .${vi.label}`]:{[`&.${vi.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}}]}))),fP=X("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(fe(({theme:e})=>({[`&.${vi.error}`]:{color:(e.vars||e).palette.error.main}}))),Sn=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormControlLabel"}),{checked:i,className:s,componentsProps:a={},control:l,disabled:c,disableTypography:p,inputRef:u,label:h,labelPlacement:v="end",name:b,onChange:g,required:f,slots:m={},slotProps:y={},value:w,...x}=r,S=vn(),C=c??l.props.disabled??S?.disabled,O=f??l.props.required,P={disabled:C,required:O};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof r[D]<"u"&&(P[D]=r[D])});const $=Qn({props:r,muiFormControl:S,states:["error"]}),A={...r,disabled:C,labelPlacement:v,required:O,error:$.error},j=uP(A),L={slots:m,slotProps:{...a,...y}},[T,k]=Se("typography",{elementType:V,externalForwardedProps:L,ownerState:A});let _=h;return _!=null&&_.type!==V&&!p&&(_=d.jsx(T,{component:"span",...k,className:le(j.label,k?.className),children:_})),d.jsxs(pP,{className:le(j.root,s),ownerState:A,ref:n,...x,children:[E.cloneElement(l,P),O?d.jsxs("div",{children:[_,d.jsxs(fP,{ownerState:A,"aria-hidden":!0,className:j.asterisk,children:[" ","*"]})]}):_]})});process.env.NODE_ENV!=="production"&&(Sn.propTypes={checked:o.bool,classes:o.object,className:o.string,componentsProps:o.shape({typography:o.object}),control:o.element.isRequired,disabled:o.bool,disableTypography:o.bool,inputRef:wt,label:o.node,labelPlacement:o.oneOf(["bottom","end","start","top"]),name:o.string,onChange:o.func,required:o.bool,slotProps:o.shape({typography:o.oneOfType([o.func,o.object])}),slots:o.shape({typography:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function hP(e){return ge("MuiFormGroup",e)}he("MuiFormGroup",["root","row","error"]);const gP=e=>{const{classes:t,row:n,error:r}=e;return me({root:["root",n&&"row",r&&"error"]},hP,t)},mP=X("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),kg=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormGroup"}),{className:i,row:s=!1,...a}=r,l=vn(),c=Qn({props:r,muiFormControl:l,states:["error"]}),p={...r,row:s,error:c.error},u=gP(p);return d.jsx(mP,{className:le(u.root,i),ownerState:p,ref:n,...a})});process.env.NODE_ENV!=="production"&&(kg.propTypes={children:o.node,classes:o.object,className:o.string,row:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yP(e){return ge("MuiFormHelperText",e)}const Ng=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ig;const bP=e=>{const{classes:t,contained:n,size:r,disabled:i,error:s,filled:a,focused:l,required:c}=e,p={root:["root",i&&"disabled",s&&"error",r&&`size${Q(r)}`,n&&"contained",l&&"focused",a&&"filled",c&&"required"]};return me(p,yP,t)},vP=X("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Q(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Ng.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Ng.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ag=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormHelperText"}),{children:i,className:s,component:a="p",disabled:l,error:c,filled:p,focused:u,margin:h,required:v,variant:b,...g}=r,f=vn(),m=Qn({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:a,contained:m.variant==="filled"||m.variant==="outlined",variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete y.ownerState;const w=bP(y);return d.jsx(vP,{as:a,className:le(w.root,s),ref:n,...g,ownerState:y,children:i===" "?Ig||(Ig=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):i})});process.env.NODE_ENV!=="production"&&(Ag.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["filled","outlined","standard"]),o.string])});function xP(e){return ge("MuiFormLabel",e)}const xi=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),SP=e=>{const{classes:t,color:n,focused:r,disabled:i,error:s,filled:a,required:l}=e,c={root:["root",`color${Q(n)}`,i&&"disabled",s&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return me(c,xP,t)},wP=X("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&.${xi.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${xi.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${xi.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),CP=X("span",{name:"MuiFormLabel",slot:"Asterisk"})(fe(({theme:e})=>({[`&.${xi.error}`]:{color:(e.vars||e).palette.error.main}}))),Si=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiFormLabel"}),{children:i,className:s,color:a,component:l="label",disabled:c,error:p,filled:u,focused:h,required:v,...b}=r,g=vn(),f=Qn({props:r,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),m={...r,color:f.color||"primary",component:l,disabled:f.disabled,error:f.error,filled:f.filled,focused:f.focused,required:f.required},y=SP(m);return d.jsxs(wP,{as:l,ownerState:m,className:le(y.root,s),ref:n,...b,children:[i,f.required&&d.jsxs(CP,{ownerState:m,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});process.env.NODE_ENV!=="production"&&(Si.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),component:o.elementType,disabled:o.bool,error:o.bool,filled:o.bool,focused:o.bool,required:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Gc(e){return`scale(${e}, ${e**2})`}const EP={entering:{opacity:1,transform:Gc(1)},entered:{opacity:1,transform:"none"}},Xc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),no=E.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:s,easing:a,in:l,onEnter:c,onEntered:p,onEntering:u,onExit:h,onExited:v,onExiting:b,style:g,timeout:f="auto",TransitionComponent:m=gn,...y}=t,w=gr(),x=E.useRef(),S=en(),C=E.useRef(null),O=at(C,vr(s),n),P=D=>N=>{if(D){const B=C.current;N===void 0?D(B):D(B,N)}},$=P(u),A=P((D,N)=>{$h(D);const{duration:B,delay:I,easing:W}=Zs({style:g,timeout:f,easing:a},{mode:"enter"});let z;f==="auto"?(z=S.transitions.getAutoHeightDuration(D.clientHeight),x.current=z):z=B,D.style.transition=[S.transitions.create("opacity",{duration:z,delay:I}),S.transitions.create("transform",{duration:Xc?z:z*.666,delay:I,easing:W})].join(","),c&&c(D,N)}),j=P(p),L=P(b),T=P(D=>{const{duration:N,delay:B,easing:I}=Zs({style:g,timeout:f,easing:a},{mode:"exit"});let W;f==="auto"?(W=S.transitions.getAutoHeightDuration(D.clientHeight),x.current=W):W=N,D.style.transition=[S.transitions.create("opacity",{duration:W,delay:B}),S.transitions.create("transform",{duration:Xc?W:W*.666,delay:Xc?B:B||W*.333,easing:I})].join(","),D.style.opacity=0,D.style.transform=Gc(.75),h&&h(D)}),k=P(v),_=D=>{f==="auto"&&w.start(x.current||0,D),r&&r(C.current,D)};return d.jsx(m,{appear:i,in:l,nodeRef:C,onEnter:A,onEntered:j,onEntering:$,onExit:T,onExited:k,onExiting:L,addEndListener:_,timeout:f==="auto"?null:f,...y,children:(D,{ownerState:N,...B})=>E.cloneElement(s,{style:{opacity:0,transform:Gc(.75),visibility:D==="exited"&&!l?"hidden":void 0,...EP[D],...g,...s.props.style},ref:O,...B})})});process.env.NODE_ENV!=="production"&&(no.propTypes={addEndListener:o.func,appear:o.bool,children:Sr.isRequired,easing:o.oneOfType([o.shape({enter:o.string,exit:o.string}),o.string]),in:o.bool,onEnter:o.func,onEntered:o.func,onEntering:o.func,onExit:o.func,onExited:o.func,onExiting:o.func,style:o.object,timeout:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})])}),no&&(no.muiSupportAuto=!0);const TP=e=>{const{classes:t,disableUnderline:n}=e,i=me({root:["root",!n&&"underline"],input:["input"]},IT,t);return{...t,...i}},OP=X(ha,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...pa(e,t),!n.disableUnderline&&t.underline]}})(fe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${fi.disabled}, .${fi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ot()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),PP=X(ga,{name:"MuiInput",slot:"Input",overridesResolver:fa})({}),Ta=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:s={},componentsProps:a,fullWidth:l=!1,inputComponent:c="input",multiline:p=!1,slotProps:u,slots:h={},type:v="text",...b}=r,g=TP(r),m={root:{ownerState:{disableUnderline:i}}},y=u??a?bt(u??a,m):m,w=h.root??s.Root??OP,x=h.input??s.Input??PP;return d.jsx(pi,{slots:{root:w,input:x},slotProps:y,fullWidth:l,inputComponent:c,multiline:p,ref:n,type:v,...b,classes:g})});process.env.NODE_ENV!=="production"&&(Ta.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),componentsProps:o.shape({input:o.object,root:o.object}),defaultValue:o.any,disabled:o.bool,disableUnderline:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:wt,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,root:o.object}),slots:o.shape({input:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Ta.muiName="Input";function kP(e){return ge("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const NP=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:s,variant:a,required:l}=e,c={root:["root",n&&"formControl",!s&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Q(r)}`,a],asterisk:[l&&"asterisk"]},p=me(c,kP,t);return{...t,...p}},IP=X(Si,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xi.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(fe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Mg=E.forwardRef(function(t,n){const r=be({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:s,shrink:a,variant:l,className:c,...p}=r,u=vn();let h=a;typeof h>"u"&&u&&(h=u.filled||u.focused||u.adornedStart);const v=Qn({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),b={...r,disableAnimation:i,formControl:u,shrink:h,size:v.size,variant:v.variant,required:v.required,focused:v.focused},g=NP(b);return d.jsx(IP,{"data-shrink":h,ref:n,className:le(g.root,c),...p,ownerState:b,classes:g})});process.env.NODE_ENV!=="production"&&(Mg.propTypes={children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["error","info","primary","secondary","success","warning"]),o.string]),disableAnimation:o.bool,disabled:o.bool,error:o.bool,focused:o.bool,margin:o.oneOf(["dense"]),required:o.bool,shrink:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["filled","outlined","standard"])});function AP(e){return ge("MuiLinearProgress",e)}he("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Jc=4,Qc=qn`
|
|
173
173
|
0% {
|
|
174
174
|
left: -35%;
|
|
175
175
|
right: 100%;
|
|
@@ -184,9 +184,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
184
184
|
left: 100%;
|
|
185
185
|
right: -90%;
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
188
|
-
animation: ${
|
|
189
|
-
`:null,
|
|
187
|
+
`,MP=typeof Qc!="string"?Ur`
|
|
188
|
+
animation: ${Qc} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
189
|
+
`:null,Zc=qn`
|
|
190
190
|
0% {
|
|
191
191
|
left: -200%;
|
|
192
192
|
right: 100%;
|
|
@@ -201,9 +201,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
201
201
|
left: 107%;
|
|
202
202
|
right: -8%;
|
|
203
203
|
}
|
|
204
|
-
`,
|
|
205
|
-
animation: ${
|
|
206
|
-
`:null,
|
|
204
|
+
`,_P=typeof Zc!="string"?Ur`
|
|
205
|
+
animation: ${Zc} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
206
|
+
`:null,ed=qn`
|
|
207
207
|
0% {
|
|
208
208
|
opacity: 1;
|
|
209
209
|
background-position: 0 -23px;
|
|
@@ -218,39 +218,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
218
218
|
opacity: 1;
|
|
219
219
|
background-position: -200px -23px;
|
|
220
220
|
}
|
|
221
|
-
|
|
222
|
-
animation: ${
|
|
223
|
-
`:null,hP=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${X(r)}`,n],dashed:["dashed",`dashedColor${X(r)}`],bar1:["bar","bar1",`barColor${X(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${X(r)}`,n==="buffer"&&`color${X(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return pe(o,dP,t)},Lc=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),gP=Y("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${X(n.color)}`],t[n.variant]]}})(fe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{backgroundColor:Lc(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),mP=Y("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${X(n.color)}`]]}})(fe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(et()).map(([t])=>{const n=Lc(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),fP||{animation:`${zc} 3s infinite linear`}),yP=Y("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${X(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Dc}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Dc}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:uP||{animation:`${Fc} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),bP=Y("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${X(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Lc(e,t),transition:`transform .${Dc}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:pP||{animation:`${jc} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),vg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiLinearProgress"}),{className:o,color:s="primary",value:a,valueBuffer:l,variant:c="indeterminate",...f}=r,u={...r,color:s,variant:c},h=hP(u),b=Ms(),m={},g={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){m["aria-valuenow"]=Math.round(a),m["aria-valuemin"]=0,m["aria-valuemax"]=100;let p=a-100;b&&(p=-p),g.bar1.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let p=(l||0)-100;b&&(p=-p),g.bar2.transform=`translateX(${p}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return d.jsxs(gP,{className:ie(h.root,o),ownerState:u,role:"progressbar",...m,ref:n,...f,children:[c==="buffer"?d.jsx(mP,{className:h.dashed,ownerState:u}):null,d.jsx(yP,{className:h.bar1,ownerState:u,style:g.bar1}),c==="determinate"?null:d.jsx(bP,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(vg.propTypes={classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["inherit","primary","secondary"]),i.string]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.number,valueBuffer:i.number,variant:i.oneOf(["buffer","determinate","indeterminate","query"])});const oi=E.createContext({});process.env.NODE_ENV!=="production"&&(oi.displayName="ListContext");function vP(e){return ue("MuiList",e)}ce("MuiList",["root","padding","dense","subheader"]);const xP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return pe({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},vP,t)},SP=Y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),xg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiList"}),{children:o,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:f,...u}=r,h=E.useMemo(()=>({dense:l}),[l]),b={...r,component:a,dense:l,disablePadding:c},m=xP(b);return d.jsx(oi.Provider,{value:h,children:d.jsxs(SP,{as:a,className:ie(m.root,s),ref:n,ownerState:b,...u,children:[f,o]})})});process.env.NODE_ENV!=="production"&&(xg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disablePadding:i.bool,subheader:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const Sg=ce("MuiListItemIcon",["root","alignItemsFlexStart"]);function wP(e){return ue("MuiListItemText",e)}const Vr=ce("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),CP=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:s}=e;return pe({root:["root",n&&"inset",s&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},wP,t)},EP=Y("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vr.primary}`]:t.primary},{[`& .${Vr.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Ph.root}:where(& .${Vr.primary})`]:{display:"block"},[`.${Ph.root}:where(& .${Vr.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Bc=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:f,secondary:u,secondaryTypographyProps:h,slots:b={},slotProps:m={},...g}=r,{dense:p}=E.useContext(oi);let y=c??o,x=u;const w={...r,disableTypography:a,inset:l,primary:!!y,secondary:!!x,dense:p},S=CP(w),v={slots:b,slotProps:{primary:f,secondary:h,...m}},[C,O]=ge("root",{className:ie(S.root,s),elementType:EP,externalForwardedProps:{...v,...g},ownerState:w,ref:n}),[P,$]=ge("primary",{className:S.primary,elementType:W,externalForwardedProps:v,ownerState:w}),[A,B]=ge("secondary",{className:S.secondary,elementType:W,externalForwardedProps:v,ownerState:w});return y!=null&&y.type!==W&&!a&&(y=d.jsx(P,{variant:p?"body2":"body1",component:$?.variant?void 0:"span",...$,children:y})),x!=null&&x.type!==W&&!a&&(x=d.jsx(A,{variant:"body2",color:"textSecondary",...B,children:x})),d.jsxs(C,{...O,children:[y,x]})});process.env.NODE_ENV!=="production"&&(Bc.propTypes={children:i.node,classes:i.object,className:i.string,disableTypography:i.bool,inset:i.bool,primary:i.node,primaryTypographyProps:i.object,secondary:i.node,secondaryTypographyProps:i.object,slotProps:i.shape({primary:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),secondary:i.oneOfType([i.func,i.object])}),slots:i.shape({primary:i.elementType,root:i.elementType,secondary:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Rc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Cg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ii(e,t,n,r,o,s){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Cg(l,s)||c)l=o(e,l,n);else return l.focus(),!0}return!1}const Eg=E.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:u,variant:h="selectedMenu",...b}=t,m=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qt(()=>{o&&m.current.focus()},[o]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,{direction:v})=>{const C=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&C){const O=`${ag(En(S))}px`;m.current.style[v==="rtl"?"paddingLeft":"paddingRight"]=O,m.current.style.width=`calc(100% + ${O})`}return m.current}}),[]);const p=S=>{const v=m.current,C=S.key;if(S.ctrlKey||S.metaKey||S.altKey){u&&u(S);return}const P=Qo(ft(v));if(C==="ArrowDown")S.preventDefault(),ii(v,P,f,c,Rc);else if(C==="ArrowUp")S.preventDefault(),ii(v,P,f,c,wg);else if(C==="Home")S.preventDefault(),ii(v,null,f,c,Rc);else if(C==="End")S.preventDefault(),ii(v,null,f,c,wg);else if(C.length===1){const $=g.current,A=C.toLowerCase(),B=performance.now();$.keys.length>0&&(B-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&A!==$.keys[0]&&($.repeating=!1)),$.lastTime=B,$.keys.push(A);const L=P&&!$.repeating&&Cg(P,$);$.previousKeyMatched&&(L||ii(v,P,!1,c,Rc,$))?S.preventDefault():$.previousKeyMatched=!1}u&&u(S)},y=Ze(m,n);let x=-1;E.Children.forEach(a,(S,v)=>{if(!E.isValidElement(S)){x===v&&(x+=1,x>=a.length&&(x=-1));return}process.env.NODE_ENV!=="production"&&ac.isFragment(S)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
-
`)),
|
|
225
|
-
`))}return{top:H.top+
|
|
226
|
-
`)),
|
|
221
|
+
`,$P=typeof ed!="string"?Ur`
|
|
222
|
+
animation: ${ed} 3s infinite linear;
|
|
223
|
+
`:null,DP=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Q(r)}`,n],dashed:["dashed",`dashedColor${Q(r)}`],bar1:["bar","bar1",`barColor${Q(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Q(r)}`,n==="buffer"&&`color${Q(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return me(i,AP,t)},td=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),FP=X("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Q(n.color)}`],t[n.variant]]}})(fe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:td(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),jP=X("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Q(n.color)}`]]}})(fe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>{const n=td(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),$P||{animation:`${ed} 3s infinite linear`}),LP=X("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Q(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Jc}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Jc}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:MP||{animation:`${Qc} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),zP=X("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Q(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:td(e,t),transition:`transform .${Jc}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:_P||{animation:`${Zc} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),_g=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiLinearProgress"}),{className:i,color:s="primary",value:a,valueBuffer:l,variant:c="indeterminate",...p}=r,u={...r,color:s,variant:c},h=DP(u),v=Qo(),b={},g={bar1:{},bar2:{}};if(c==="determinate"||c==="buffer")if(a!==void 0){b["aria-valuenow"]=Math.round(a),b["aria-valuemin"]=0,b["aria-valuemax"]=100;let f=a-100;v&&(f=-f),g.bar1.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a value prop when using the determinate or buffer variant of LinearProgress .");if(c==="buffer")if(l!==void 0){let f=(l||0)-100;v&&(f=-f),g.bar2.transform=`translateX(${f}%)`}else process.env.NODE_ENV!=="production"&&console.error("MUI: You need to provide a valueBuffer prop when using the buffer variant of LinearProgress.");return d.jsxs(FP,{className:le(h.root,i),ownerState:u,role:"progressbar",...b,ref:n,...p,children:[c==="buffer"?d.jsx(jP,{className:h.dashed,ownerState:u}):null,d.jsx(LP,{className:h.bar1,ownerState:u,style:g.bar1}),c==="determinate"?null:d.jsx(zP,{className:h.bar2,ownerState:u,style:g.bar2})]})});process.env.NODE_ENV!=="production"&&(_g.propTypes={classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["inherit","primary","secondary"]),o.string]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.number,valueBuffer:o.number,variant:o.oneOf(["buffer","determinate","indeterminate","query"])});const wi=E.createContext({});process.env.NODE_ENV!=="production"&&(wi.displayName="ListContext");function BP(e){return ge("MuiList",e)}he("MuiList",["root","padding","dense","subheader"]);const RP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return me({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},BP,t)},WP=X("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),$g=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiList"}),{children:i,className:s,component:a="ul",dense:l=!1,disablePadding:c=!1,subheader:p,...u}=r,h=E.useMemo(()=>({dense:l}),[l]),v={...r,component:a,dense:l,disablePadding:c},b=RP(v);return d.jsx(wi.Provider,{value:h,children:d.jsxs(WP,{as:a,className:le(b.root,s),ref:n,ownerState:v,...u,children:[p,i]})})});process.env.NODE_ENV!=="production"&&($g.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disablePadding:o.bool,subheader:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Dg=he("MuiListItemIcon",["root","alignItemsFlexStart"]);function VP(e){return ge("MuiListItemText",e)}const ro=he("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),UP=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:s}=e;return me({root:["root",n&&"inset",s&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},VP,t)},HP=X("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ro.primary}`]:t.primary},{[`& .${ro.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Uh.root}:where(& .${ro.primary})`]:{display:"block"},[`.${Uh.root}:where(& .${ro.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),nd=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiListItemText"}),{children:i,className:s,disableTypography:a=!1,inset:l=!1,primary:c,primaryTypographyProps:p,secondary:u,secondaryTypographyProps:h,slots:v={},slotProps:b={},...g}=r,{dense:f}=E.useContext(wi);let m=c??i,y=u;const w={...r,disableTypography:a,inset:l,primary:!!m,secondary:!!y,dense:f},x=UP(w),S={slots:v,slotProps:{primary:p,secondary:h,...b}},[C,O]=Se("root",{className:le(x.root,s),elementType:HP,externalForwardedProps:{...S,...g},ownerState:w,ref:n}),[P,$]=Se("primary",{className:x.primary,elementType:V,externalForwardedProps:S,ownerState:w}),[A,j]=Se("secondary",{className:x.secondary,elementType:V,externalForwardedProps:S,ownerState:w});return m!=null&&m.type!==V&&!a&&(m=d.jsx(P,{variant:f?"body2":"body1",component:$?.variant?void 0:"span",...$,children:m})),y!=null&&y.type!==V&&!a&&(y=d.jsx(A,{variant:"body2",color:"textSecondary",...j,children:y})),d.jsxs(C,{...O,children:[m,y]})});process.env.NODE_ENV!=="production"&&(nd.propTypes={children:o.node,classes:o.object,className:o.string,disableTypography:o.bool,inset:o.bool,primary:o.node,primaryTypographyProps:o.object,secondary:o.node,secondaryTypographyProps:o.object,slotProps:o.shape({primary:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),secondary:o.oneOfType([o.func,o.object])}),slots:o.shape({primary:o.elementType,root:o.elementType,secondary:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function rd(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function jg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Ci(e,t,n,r,i,s){let a=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!jg(l,s)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const Lg=E.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:s=!1,children:a,className:l,disabledItemsFocusable:c=!1,disableListWrap:p=!1,onKeyDown:u,variant:h="selectedMenu",...v}=t,b=E.useRef(null),g=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Wt(()=>{i&&b.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:S})=>{const C=!b.current.style.width;if(x.clientHeight<b.current.clientHeight&&C){const O=`${Cg(Dn(x))}px`;b.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,b.current.style.width=`calc(100% + ${O})`}return b.current}}),[]);const f=x=>{const S=b.current,C=x.key;if(x.ctrlKey||x.metaKey||x.altKey){u&&u(x);return}const P=gi(ct(S));if(C==="ArrowDown")x.preventDefault(),Ci(S,P,p,c,rd);else if(C==="ArrowUp")x.preventDefault(),Ci(S,P,p,c,Fg);else if(C==="Home")x.preventDefault(),Ci(S,null,p,c,rd);else if(C==="End")x.preventDefault(),Ci(S,null,p,c,Fg);else if(C.length===1){const $=g.current,A=C.toLowerCase(),j=performance.now();$.keys.length>0&&(j-$.lastTime>500?($.keys=[],$.repeating=!0,$.previousKeyMatched=!0):$.repeating&&A!==$.keys[0]&&($.repeating=!1)),$.lastTime=j,$.keys.push(A);const L=P&&!$.repeating&&jg(P,$);$.previousKeyMatched&&(L||Ci(S,P,!1,c,rd,$))?x.preventDefault():$.previousKeyMatched=!1}u&&u(x)},m=at(b,n);let y=-1;E.Children.forEach(a,(x,S)=>{if(!E.isValidElement(x)){y===S&&(y+=1,y>=a.length&&(y=-1));return}process.env.NODE_ENV!=="production"&&Cc.isFragment(x)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
224
|
+
`)),x.props.disabled||(h==="selectedMenu"&&x.props.selected||y===-1)&&(y=S),y===S&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=a.length&&(y=-1))});const w=E.Children.map(a,(x,S)=>{if(S===y){const C={};return s&&(C.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(C.tabIndex=0),E.cloneElement(x,C)}return x});return d.jsx($g,{role:"menu",ref:m,className:l,onKeyDown:f,tabIndex:i?0:-1,...v,children:w})});process.env.NODE_ENV!=="production"&&(Lg.propTypes={autoFocus:o.bool,autoFocusItem:o.bool,children:o.node,className:o.string,disabledItemsFocusable:o.bool,disableListWrap:o.bool,onKeyDown:o.func,variant:o.oneOf(["menu","selectedMenu"])});function qP(e){return ge("MuiPopover",e)}he("MuiPopover",["root","paper"]);function zg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Rg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ei(e){return typeof e=="function"?e():e}const YP=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"]},qP,t)},KP=X(mi,{name:"MuiPopover",slot:"Root"})({}),Wg=X(nn,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),od=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiPopover"}),{action:i,anchorEl:s,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:c="anchorEl",children:p,className:u,container:h,elevation:v=8,marginThreshold:b=16,open:g,PaperProps:f={},slots:m={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:S="auto",TransitionProps:C={},disableScrollLock:O=!1,...P}=r,$=E.useRef(),A={...r,anchorOrigin:a,anchorReference:c,elevation:v,marginThreshold:b,transformOrigin:w,TransitionComponent:x,transitionDuration:S,TransitionProps:C},j=YP(A),L=E.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 ee=Ei(s),ce=ee&&ee.nodeType===1?ee:ct($.current).body,H=ce.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const de=ce.getBoundingClientRect();process.env.NODE_ENV!=="test"&&de.top===0&&de.left===0&&de.right===0&&de.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
225
|
+
`))}return{top:H.top+zg(H,a.vertical),left:H.left+Bg(H,a.horizontal)}},[s,a.horizontal,a.vertical,l,c]),T=E.useCallback(ee=>({vertical:zg(ee,w.vertical),horizontal:Bg(ee,w.horizontal)}),[w.horizontal,w.vertical]),k=E.useCallback(ee=>{const ce={width:ee.offsetWidth,height:ee.offsetHeight},H=T(ce);if(c==="none")return{top:null,left:null,transformOrigin:Rg(H)};const de=L();let se=de.top-H.vertical,ve=de.left-H.horizontal;const Be=se+ce.height,Te=ve+ce.width,Ne=Dn(Ei(s)),je=Ne.innerHeight-b,Re=Ne.innerWidth-b;if(b!==null&&se<b){const Me=se-b;se-=Me,H.vertical+=Me}else if(b!==null&&Be>je){const Me=Be-je;se-=Me,H.vertical+=Me}if(process.env.NODE_ENV!=="production"&&ce.height>je&&ce.height&&je&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${ce.height-je}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
226
|
+
`)),b!==null&&ve<b){const Me=ve-b;ve-=Me,H.horizontal+=Me}else if(Te>Re){const Me=Te-Re;ve-=Me,H.horizontal+=Me}return{top:`${Math.round(se)}px`,left:`${Math.round(ve)}px`,transformOrigin:Rg(H)}},[s,c,L,T,b]),[_,D]=E.useState(g),N=E.useCallback(()=>{const ee=$.current;if(!ee)return;const ce=k(ee);ce.top!==null&&ee.style.setProperty("top",ce.top),ce.left!==null&&(ee.style.left=ce.left),ee.style.transformOrigin=ce.transformOrigin,D(!0)},[k]);E.useEffect(()=>(O&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[s,O,N]);const B=()=>{N()},I=()=>{D(!1)};E.useEffect(()=>{g&&N()}),E.useImperativeHandle(i,()=>g?{updatePosition:()=>{N()}}:null,[g,N]),E.useEffect(()=>{if(!g)return;const ee=Ch(()=>{N()}),ce=Dn(Ei(s));return ce.addEventListener("resize",ee),()=>{ee.clear(),ce.removeEventListener("resize",ee)}},[s,g,N]);let W=S;const z={slots:{transition:x,...m},slotProps:{transition:C,paper:f,...y}},[R,Y]=Se("transition",{elementType:no,externalForwardedProps:z,ownerState:A,getSlotProps:ee=>({...ee,onEntering:(ce,H)=>{ee.onEntering?.(ce,H),B()},onExited:ce=>{ee.onExited?.(ce),I()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!R.muiSupportAuto&&(W=void 0);const te=h||(s?ct(Ei(s)).body:void 0),[G,{slots:q,slotProps:J,...oe}]=Se("root",{ref:n,elementType:KP,externalForwardedProps:{...z,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:Th(typeof y.backdrop=="function"?y.backdrop(A):y.backdrop,{invisible:!0})},container:te,open:g},ownerState:A,className:le(j.root,u)}),[re,ie]=Se("paper",{ref:$,className:j.paper,elementType:Wg,externalForwardedProps:z,shouldForwardComponentProp:!0,additionalProps:{elevation:v,style:_?void 0:{opacity:0}},ownerState:A});return d.jsx(G,{...oe,...!Xn(G)&&{slots:q,slotProps:J,disableScrollLock:O},children:d.jsx(R,{...Y,timeout:W,children:d.jsx(re,{...ie,children:p})})})});process.env.NODE_ENV!=="production"&&(od.propTypes={action:wt,anchorEl:tn(o.oneOfType([jn,o.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ei(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
|
|
227
227
|
`))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
|
|
228
|
-
`))}return null}),anchorOrigin:
|
|
229
|
-
`)),R.props.disabled||(y==="selectedMenu"&&R.props.selected||L===-1)&&(L=j))});const T={slots:x,slotProps:{list:c,transition:p,paper:h,...w}},N=Yh({elementType:x.root,externalSlotProps:w.root,ownerState:C,className:[O.root,a]}),[_,D]=ge("paper",{className:O.paper,elementType:MP,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:C}),[k,z]=ge("list",{className:ie(O.list,c.className),elementType:$P,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:R=>({...R,onKeyDown:j=>{B(j),R.onKeyDown?.(j)}}),ownerState:C}),M=typeof T.slotProps.transition=="function"?T.slotProps.transition(C):T.slotProps.transition;return d.jsx(_P,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:v?"right":"left"},transformOrigin:v?NP:IP,slots:{root:x.root,paper:_,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:N,paper:D,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{...M,onEntering:(...R)=>{A(...R),M?.onEntering?.(...R)}}},open:u,ref:n,transitionDuration:m,ownerState:C,...S,classes:b,children:d.jsx(k,{actions:$,autoFocus:o&&(L===-1||l),autoFocusItem:P,variant:y,...z,children:s})})});process.env.NODE_ENV!=="production"&&(Vc.propTypes={anchorEl:i.oneOfType([Pn,i.func]),autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,disableAutoFocusItem:i.bool,MenuListProps:i.object,onClose:i.func,open:i.bool.isRequired,PaperProps:i.object,PopoverClasses:i.object,slotProps:i.shape({backdrop:i.oneOfType([i.func,i.object]),list:i.oneOfType([i.func,i.object]),paper:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({backdrop:i.elementType,list:i.elementType,paper:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),transitionDuration:i.oneOfType([i.oneOf(["auto"]),i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object,variant:i.oneOf(["menu","selectedMenu"])});function DP(e){return ue("MuiMenuItem",e)}const ai=ce("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),FP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},jP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:s,classes:a}=e,c=pe({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",s&&"selected"]},DP,a);return{...a,...c}},zP=Y(Bo,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:FP})(fe(({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"}},[`&.${ai.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${ai.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${ai.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)}},[`&.${ai.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ai.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ug.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ug.inset}`]:{marginLeft:52},[`& .${Vr.root}`]:{marginTop:0,marginBottom:0},[`& .${Vr.inset}`]:{paddingLeft:36},[`& .${Sg.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,[`& .${Sg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Jt=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:f,role:u="menuitem",tabIndex:h,className:b,...m}=r,g=E.useContext(oi),p=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),y=E.useRef(null);qt(()=>{o&&(y.current?y.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 x={...r,dense:p.dense,divider:l,disableGutters:c},w=jP(r),S=Ze(y,n);let v;return r.disabled||(v=h!==void 0?h:-1),d.jsx(oi.Provider,{value:p,children:d.jsx(zP,{ref:S,role:u,tabIndex:v,component:s,focusVisibleClassName:ie(w.focusVisible,f),className:ie(w.root,b),...m,ownerState:x,classes:w})})});process.env.NODE_ENV!=="production"&&(Jt.propTypes={autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,component:i.elementType,dense:i.bool,disabled:i.bool,disableGutters:i.bool,divider:i.bool,focusVisibleClassName:i.string,role:i.string,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),tabIndex:i.number});function LP(e){return ue("MuiMobileStepper",e)}ce("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const BP=e=>{const{classes:t,position:n}=e,r={root:["root",`position${X(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return pe(r,LP,t)},RP=Y(Kt,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${X(n.position)}`]]}})(fe(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),WP=Y("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),VP=Y("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>ic(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(fe(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),UP=Y(vg,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Ng=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiMobileStepper"}),{activeStep:o=0,backButton:s,className:a,LinearProgressProps:l,nextButton:c,position:f="bottom",steps:u,variant:h="dots",slots:b={},slotProps:m={},...g}=r,p={...r,activeStep:o,position:f,variant:h};let y;h==="progress"&&(u===1?y=100:y=Math.ceil(o/(u-1)*100));const x=BP(p),w={slots:b,slotProps:{progress:l,...m}},[S,v]=ge("root",{ref:n,elementType:RP,shouldForwardComponentProp:!0,className:ie(x.root,a),externalForwardedProps:{...w,...g},ownerState:p,additionalProps:{square:!0,elevation:0}}),[C,O]=ge("dots",{className:x.dots,elementType:WP,externalForwardedProps:w,ownerState:p}),[P,$]=ge("dot",{elementType:VP,externalForwardedProps:w,ownerState:p}),[A,B]=ge("progress",{className:x.progress,elementType:UP,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:p,additionalProps:{value:y,variant:"determinate"}});return d.jsxs(S,{...v,children:[s,h==="text"&&d.jsxs(E.Fragment,{children:[o+1," / ",u]}),h==="dots"&&d.jsx(C,{...O,children:[...new Array(u)].map((L,T)=>d.jsx(P,{...$,className:ie(x.dot,$.className,T===o&&x.dotActive),dotActive:T===o},T))}),h==="progress"&&d.jsx(A,{...B}),c]})});process.env.NODE_ENV!=="production"&&(Ng.propTypes={activeStep:Bs,backButton:i.node,classes:i.object,className:i.string,LinearProgressProps:i.object,nextButton:i.node,position:i.oneOf(["bottom","static","top"]),slotProps:i.shape({dot:i.oneOfType([i.func,i.object]),dots:i.oneOfType([i.func,i.object]),progress:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({dot:i.elementType,dots:i.elementType,progress:i.elementType,root:i.elementType}),steps:Bs.isRequired,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOf(["dots","progress","text"])});function HP(e){return ue("MuiNativeSelect",e)}const Uc=ce("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),qP=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${X(n)}`,s&&"iconOpen",r&&"disabled"]};return pe(l,HP,t)},Ig=Y("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Uc.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),YP=Y(Ig,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:pt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Uc.multiple}`]:t.multiple}]}})({}),Ag=Y("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Uc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),KP=Y(Ag,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})({}),_g=E.forwardRef(function(t,n){const{className:r,disabled:o,error:s,IconComponent:a,inputRef:l,variant:c="standard",...f}=t,u={...t,disabled:o,variant:c,error:s},h=qP(u);return d.jsxs(E.Fragment,{children:[d.jsx(YP,{ownerState:u,className:ie(h.select,r),disabled:o,ref:l||n,...f}),t.multiple?null:d.jsx(KP,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(_g.propTypes={children:i.node,classes:i.object,className:i.string,disabled:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:gt,multiple:i.bool,name:i.string,onChange:i.func,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});var Mg;const GP=Y("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:pt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),JP=Y("legend",{name:"MuiNotchedOutlined",shouldForwardProp:pt})(fe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function $g(e){const{children:t,classes:n,className:r,label:o,notched:s,...a}=e,l=o!=null&&o!=="",c={...e,notched:s,withLabel:l};return d.jsx(GP,{"aria-hidden":!0,className:r,ownerState:c,...a,children:d.jsx(JP,{ownerState:c,children:l?d.jsx("span",{children:o}):Mg||(Mg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&($g.propTypes={children:i.node,classes:i.object,className:i.string,label:i.node,notched:i.bool.isRequired,style:i.object});const XP=e=>{const{classes:t}=e,r=pe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},dT,t);return{...t,...r}},QP=Y(ta,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Zs})(fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${un.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${un.focused} .${un.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(et()).map(([n])=>({props:{color:n},style:{[`&.${un.focused} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${un.error} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${un.disabled} .${un.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),ZP=Y($g,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),e2=Y(na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ea})(fe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),pa=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:f,slots:u={},slotProps:h={},type:b="text",...m}=r,g=XP(r),p=dn(),y=Wn({props:r,muiFormControl:p,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:p,fullWidth:s,hiddenLabel:y.hiddenLabel,multiline:c,size:y.size,type:b},w=u.root??o.Root??QP,S=u.input??o.Input??e2,[v,C]=ge("notchedOutline",{elementType:ZP,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&y.required?d.jsxs(E.Fragment,{children:[l," ","*"]}):l}});return d.jsx(Go,{slots:{root:w,input:S},slotProps:h,renderSuffix:O=>d.jsx(v,{...C,notched:typeof f<"u"?f:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:b,...m,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(pa.propTypes={autoComplete:i.string,autoFocus:i.bool,classes:i.object,color:i.oneOfType([i.oneOf(["primary","secondary"]),i.string]),components:i.shape({Input:i.elementType,Root:i.elementType}),defaultValue:i.any,disabled:i.bool,endAdornment:i.node,error:i.bool,fullWidth:i.bool,id:i.string,inputComponent:i.elementType,inputProps:i.object,inputRef:gt,label:i.node,margin:i.oneOf(["dense","none"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,notched:i.bool,onChange:i.func,placeholder:i.string,readOnly:i.bool,required:i.bool,rows:i.oneOfType([i.number,i.string]),slotProps:i.shape({input:i.object,notchedOutline:i.oneOfType([i.func,i.object]),root:i.object}),slots:i.shape({input:i.elementType,notchedOutline:i.elementType,root:i.elementType}),startAdornment:i.node,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any}),pa.muiName="Input";const t2=Be(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),n2=Be(d.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),r2=Y("span",{name:"MuiRadioButtonIcon",shouldForwardProp:pt})({position:"relative",display:"flex"}),o2=Y(t2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),i2=Y(n2,{name:"MuiRadioButtonIcon"})(fe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function Hc(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return d.jsxs(r2,{className:n.root,ownerState:o,children:[d.jsx(o2,{fontSize:r,className:n.background,ownerState:o}),d.jsx(i2,{fontSize:r,className:n.dot,ownerState:o})]})}process.env.NODE_ENV!=="production"&&(Hc.propTypes={checked:i.bool,classes:i.object,fontSize:i.oneOf(["small","medium"])});const qc=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(qc.displayName="RadioGroupContext");function s2(){return E.useContext(qc)}function a2(e){return ue("MuiRadio",e)}const Dg=ce("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),l2=e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${X(n)}`,r!=="medium"&&`size${X(r)}`]};return{...t,...pe(o,a2,t)}},c2=Y(ia,{shouldForwardProp:e=>pt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${X(n.size)}`],t[`color${X(n.color)}`]]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Dg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(et()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Dg.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function d2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const u2=d.jsx(Hc,{checked:!0}),p2=d.jsx(Hc,{}),Fg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=u2,color:a="primary",icon:l=p2,name:c,onChange:f,size:u="medium",className:h,disabled:b,disableRipple:m=!1,slots:g={},slotProps:p={},inputProps:y,...x}=r,w=dn();let S=b;w&&typeof S>"u"&&(S=w.disabled),S??=!1;const v={...r,disabled:S,disableRipple:m,color:a,size:u},C=l2(v),O=s2();let P=o;const $=sc(f,O&&O.onChange);let A=c;O&&(typeof P>"u"&&(P=d2(O.value,r.value)),typeof A>"u"&&(A=O.name));const B=p.input??y,[L,T]=ge("root",{ref:n,elementType:c2,className:ie(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:p,...x},getSlotProps:N=>({...N,onChange:(_,...D)=>{N.onChange?.(_,...D),$(_,...D)}}),ownerState:v,additionalProps:{type:"radio",icon:E.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:S,name:A,checked:P,slots:g,slotProps:{input:typeof B=="function"?B(v):B}}});return d.jsx(L,{...T,classes:C})});process.env.NODE_ENV!=="production"&&(Fg.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),disabled:i.bool,disableRipple:i.bool,icon:i.node,id:i.string,inputProps:i.object,inputRef:gt,name:i.string,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});function f2(e){return ue("MuiRadioGroup",e)}ce("MuiRadioGroup",["root","row","error"]);const h2=e=>{const{classes:t,row:n,error:r}=e;return pe({root:["root",n&&"row",r&&"error"]},f2,t)},jg=E.forwardRef(function(t,n){const{actions:r,children:o,className:s,defaultValue:a,name:l,onChange:c,value:f,...u}=t,h=E.useRef(null),b=h2(t),[m,g]=zo({controlled:f,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const p=Ze(n,h),y=nr(l),x=E.useMemo(()=>({name:y,onChange(w){g(w.target.value),c&&c(w,w.target.value)},value:m}),[y,c,g,m]);return d.jsx(qc.Provider,{value:x,children:d.jsx(fg,{role:"radiogroup",ref:p,className:ie(b.root,s),...u,children:o})})});process.env.NODE_ENV!=="production"&&(jg.propTypes={children:i.node,className:i.string,defaultValue:i.any,name:i.string,onChange:i.func,value:i.any});function zg(e){return ue("MuiSelect",e)}const li=ce("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Lg;const g2=Y(Ig,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${li.select}`]:t.select},{[`&.${li.select}`]:t[n.variant]},{[`&.${li.error}`]:t.error},{[`&.${li.multiple}`]:t.multiple}]}})({[`&.${li.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),m2=Y(Ag,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})({}),y2=Y("input",{shouldForwardProp:e=>ic(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Bg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function b2(e){return e==null||typeof e=="string"&&!e.trim()}const v2=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:s,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${X(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return pe(l,zg,t)},Rg=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:f,defaultValue:u,disabled:h,displayEmpty:b,error:m=!1,IconComponent:g,inputRef:p,labelId:y,MenuProps:x={},multiple:w,name:S,onBlur:v,onChange:C,onClose:O,onFocus:P,onKeyDown:$,onMouseDown:A,onOpen:B,open:L,readOnly:T,renderValue:N,required:_,SelectDisplayProps:D={},tabIndex:k,type:z,value:M,variant:R="standard",...j}=t,[V,K]=zo({controlled:M,default:u,name:"Select"}),[Z,Q]=zo({controlled:L,default:f,name:"Select"}),G=E.useRef(null),J=E.useRef(null),[ne,re]=E.useState(null),{current:se}=E.useRef(L!=null),[ee,ae]=E.useState(),H=Ze(n,p),de=E.useCallback(le=>{J.current=le,le&&re(le)},[]),oe=ne?.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{J.current.focus()},node:G.current,value:V}),[V]),E.useEffect(()=>{f&&Z&&ne&&!se&&(ae(a?null:oe.clientWidth),J.current.focus())},[ne,a]),E.useEffect(()=>{s&&J.current.focus()},[s]),E.useEffect(()=>{if(!y)return;const le=ft(J.current).getElementById(y);if(le){const Ce=()=>{getSelection().isCollapsed&&J.current.focus()};return le.addEventListener("click",Ce),()=>{le.removeEventListener("click",Ce)}}},[y]);const me=(le,Ce)=>{le?B&&B(Ce):O&&O(Ce),se||(ae(a?null:oe.clientWidth),Q(le))},Ue=le=>{A?.(le),le.button===0&&(le.preventDefault(),J.current.focus(),me(!0,le))},ze=le=>{me(!1,le)},we=E.Children.toArray(l),Re=le=>{const Ce=we.find(nt=>nt.props.value===le.target.value);Ce!==void 0&&(K(Ce.props.value),C&&C(le,Ce))},He=le=>Ce=>{let nt;if(Ce.currentTarget.hasAttribute("tabindex")){if(w){nt=Array.isArray(V)?V.slice():[];const Hn=V.indexOf(le.props.value);Hn===-1?nt.push(le.props.value):nt.splice(Hn,1)}else nt=le.props.value;if(le.props.onClick&&le.props.onClick(Ce),V!==nt&&(K(nt),C)){const Hn=Ce.nativeEvent||Ce,xa=new Hn.constructor(Hn.type,Hn);Object.defineProperty(xa,"target",{writable:!0,value:{value:nt,name:S}}),C(xa,le)}w||me(!1,Ce)}},Ie=le=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(le.key)&&(le.preventDefault(),me(!0,le)),$?.(le))},te=ne!==null&&Z,tt=le=>{!te&&v&&(Object.defineProperty(le,"target",{writable:!0,value:{value:V,name:S}}),v(le))};delete j["aria-invalid"];let Se,Xe;const je=[];let Le=!1,st=!1;(Qs({value:V})||b)&&(N?Se=N(V):Le=!0);const Xt=we.map(le=>{if(!E.isValidElement(le))return null;process.env.NODE_ENV!=="production"&&ac.isFragment(le)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
-
`));let
|
|
231
|
-
`))}},[st,we,w,S,V]),Le&&(w?je.length===0?Se=null:Se=je.reduce((le,Ce,nt)=>(le.push(Ce),nt<je.length-1&&le.push(", "),le),[]):Se=Xe);let In=ee;!a&&se&&ne&&(In=oe.clientWidth);let xe;typeof k<"u"?xe=k:xe=h?null:0;const Qt=D.id||(S?`mui-component-select-${S}`:void 0),at={...t,variant:R,value:V,open:te,error:m},An=v2(at),gi={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(at):x.slotProps?.paper},mi={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(at):x.slotProps?.list},va=nr();return d.jsxs(E.Fragment,{children:[d.jsx(g2,{as:"div",ref:de,tabIndex:xe,role:"combobox","aria-controls":te?va:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":te?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[y,Qt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":m?"true":void 0,onKeyDown:Ie,onMouseDown:h||T?null:Ue,onBlur:tt,onFocus:P,...D,ownerState:at,className:ie(D.className,An.select,c),id:Qt,children:b2(Se)?Lg||(Lg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Se}),d.jsx(y2,{"aria-invalid":m,value:Array.isArray(V)?V.join(","):V,name:S,ref:G,"aria-hidden":!0,onChange:Re,tabIndex:-1,disabled:h,className:An.nativeInput,autoFocus:s,required:_,...j,ownerState:at}),d.jsx(m2,{as:g,className:An.icon,ownerState:at}),d.jsx(Vc,{id:`menu-${S||""}`,anchorEl:oe,open:te,onClose:ze,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":y,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:va,...mi},paper:{...gi,style:{minWidth:In,...gi!=null?gi.style:null}}},children:Xt})]})});process.env.NODE_ENV!=="production"&&(Rg.propTypes={"aria-describedby":i.string,"aria-label":i.string,autoFocus:i.bool,autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,disabled:i.bool,displayEmpty:i.bool,error:i.bool,IconComponent:i.elementType.isRequired,inputRef:gt,labelId:i.string,MenuProps:i.object,multiple:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onClose:i.func,onFocus:i.func,onOpen:i.func,open:i.bool,readOnly:i.bool,renderValue:i.func,required:i.bool,SelectDisplayProps:i.object,tabIndex:i.oneOfType([i.number,i.string]),type:i.any,value:i.any,variant:i.oneOf(["standard","outlined","filled"])});const x2=e=>{const{classes:t}=e,r=pe({root:["root"]},zg,t);return{...t,...r}},Yc={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>pt(e)&&e!=="variant"},S2=Y(ua,Yc)(""),w2=Y(pa,Yc)(""),C2=Y(da,Yc)(""),Ur=E.forwardRef(function(t,n){const r=he({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:f=!1,IconComponent:u=pT,id:h,input:b,inputProps:m,label:g,labelId:p,MenuProps:y,multiple:x=!1,native:w=!1,onClose:S,onOpen:v,open:C,renderValue:O,SelectDisplayProps:P,variant:$="outlined",...A}=r,B=w?_g:Rg,L=dn(),T=Wn({props:r,muiFormControl:L,states:["variant","error"]}),N=T.variant||$,_={...r,variant:N,classes:a},D=x2(_),{root:k,...z}=D,M=b||{standard:d.jsx(S2,{ownerState:_}),outlined:d.jsx(w2,{label:g,ownerState:_}),filled:d.jsx(C2,{ownerState:_})}[N],R=Ze(n,cr(M));return d.jsx(E.Fragment,{children:E.cloneElement(M,{inputComponent:B,inputProps:{children:s,error:T.error,IconComponent:u,variant:N,type:void 0,multiple:x,...w?{id:h}:{autoWidth:o,defaultOpen:c,displayEmpty:f,labelId:p,MenuProps:y,onClose:S,onOpen:v,open:C,renderValue:O,SelectDisplayProps:{id:h,...P}},...m,classes:m?ut(z,m.classes):z,...b?b.props.inputProps:{}},...(x&&w||f)&&N==="outlined"?{notched:!0}:{},ref:R,className:ie(M.props.className,l,D.root),...!b&&{variant:N},...A})})});process.env.NODE_ENV!=="production"&&(Ur.propTypes={autoWidth:i.bool,children:i.node,classes:i.object,className:i.string,defaultOpen:i.bool,defaultValue:i.any,displayEmpty:i.bool,IconComponent:i.elementType,id:i.string,input:i.element,inputProps:i.object,label:i.node,labelId:i.string,MenuProps:i.object,multiple:i.bool,native:i.bool,onChange:i.func,onClose:i.func,onOpen:i.func,open:i.bool,renderValue:i.func,SelectDisplayProps:i.object,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.oneOfType([i.oneOf([""]),i.any]),variant:i.oneOf(["filled","outlined","standard"])}),Ur.muiName="Select";function E2(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:s}=e,a=sr();E.useEffect(()=>{if(!o)return;function x(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[o,r]);const l=Dt((x,w)=>{r?.(x,w)}),c=Dt(x=>{!r||x==null||a.start(x,()=>{l(null,"timeout")})});E.useEffect(()=>(o&&c(t),a.clear),[o,t,c,a]);const f=x=>{r?.(x,"clickaway")},u=a.clear,h=E.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),b=x=>w=>{const S=x.onBlur;S?.(w),h()},m=x=>w=>{const S=x.onFocus;S?.(w),u()},g=x=>w=>{const S=x.onMouseEnter;S?.(w),u()},p=x=>w=>{const S=x.onMouseLeave;S?.(w),h()};return E.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,o,h,u]),{getRootProps:(x={})=>{const w={...Ls(e),...Ls(x)};return{role:"presentation",...x,...w,onBlur:b(w),onFocus:m(w),onMouseEnter:g(w),onMouseLeave:p(w)}},onClickAway:f}}function T2(e){return ue("MuiSnackbarContent",e)}ce("MuiSnackbarContent",["root","message","action"]);const O2=e=>{const{classes:t}=e;return pe({root:["root"],action:["action"],message:["message"]},T2,t)},P2=Y(Kt,{name:"MuiSnackbarContent",slot:"Root"})(fe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Kl(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Kl(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),k2=Y("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),N2=Y("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Wg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:a,role:l="alert",...c}=r,f=r,u=O2(f);return d.jsxs(P2,{role:l,elevation:6,className:ie(u.root,s),ownerState:f,ref:n,...c,children:[d.jsx(k2,{className:u.message,ownerState:f,children:a}),o?d.jsx(N2,{className:u.action,ownerState:f,children:o}):null]})});process.env.NODE_ENV!=="production"&&(Wg.propTypes={action:i.node,classes:i.object,className:i.string,message:i.node,role:i.string,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function I2(e){return ue("MuiSnackbar",e)}ce("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const A2=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`]};return pe(r,I2,t)},_2=Y("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}`]]}})(fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),ci=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiSnackbar"}),o=Yt(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:u,className:h,ClickAwayListenerProps:b,ContentProps:m,disableWindowBlurListener:g=!1,message:p,onBlur:y,onClose:x,onFocus:w,onMouseEnter:S,onMouseLeave:v,open:C,resumeHideDuration:O,slots:P={},slotProps:$={},TransitionComponent:A,transitionDuration:B=s,TransitionProps:{onEnter:L,onExited:T,...N}={},..._}=r,D={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:f,disableWindowBlurListener:g,TransitionComponent:A,transitionDuration:B},k=A2(D),{getRootProps:z,onClickAway:M}=E2(D),[R,j]=E.useState(!0),V=de=>{j(!0),T&&T(de)},K=(de,oe)=>{j(!1),L&&L(de,oe)},Z={slots:{transition:A,...P},slotProps:{content:m,clickAwayListener:b,transition:N,...$}},[Q,G]=ge("root",{ref:n,className:[k.root,h],elementType:_2,getSlotProps:z,externalForwardedProps:{...Z,..._},ownerState:D}),[J,{ownerState:ne,...re}]=ge("clickAwayListener",{elementType:sa,externalForwardedProps:Z,getSlotProps:de=>({onClickAway:(...oe)=>{const me=oe[0];de.onClickAway?.(...oe),!me?.defaultMuiPrevented&&M(...oe)}}),ownerState:D}),[se,ee]=ge("content",{elementType:Wg,shouldForwardComponentProp:!0,externalForwardedProps:Z,additionalProps:{message:p,action:a},ownerState:D}),[ae,H]=ge("transition",{elementType:Wr,externalForwardedProps:Z,getSlotProps:de=>({onEnter:(...oe)=>{de.onEnter?.(...oe),K(...oe)},onExited:(...oe)=>{de.onExited?.(...oe),V(...oe)}}),additionalProps:{appear:!0,in:C,timeout:B,direction:l==="top"?"down":"up"},ownerState:D});return!C&&R?null:d.jsx(J,{...re,...P.clickAwayListener&&{ownerState:ne},children:d.jsx(Q,{...G,children:d.jsx(ae,{...H,children:u||d.jsx(se,{...ee})})})})});process.env.NODE_ENV!=="production"&&(ci.propTypes={action:i.node,anchorOrigin:i.shape({horizontal:i.oneOf(["center","left","right"]).isRequired,vertical:i.oneOf(["bottom","top"]).isRequired}),autoHideDuration:i.number,children:i.element,classes:i.object,className:i.string,ClickAwayListenerProps:i.object,ContentProps:i.object,disableWindowBlurListener:i.bool,key:()=>null,message:i.node,onBlur:i.func,onClose:i.func,onFocus:i.func,onMouseEnter:i.func,onMouseLeave:i.func,open:i.bool,resumeHideDuration:i.number,slotProps:i.shape({clickAwayListener:i.oneOfType([i.func,i.object]),content:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({clickAwayListener:i.elementType,content:i.elementType,root:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),TransitionComponent:i.elementType,transitionDuration:i.oneOfType([i.number,i.shape({appear:i.number,enter:i.number,exit:i.number})]),TransitionProps:i.object});function M2(e){return ue("MuiTooltip",e)}const Ge=ce("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function $2(e){return Math.round(e*1e5)/1e5}const D2=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${X(s.split("-")[0])}`],arrow:["arrow"]};return pe(a,M2,t)},F2=Y(Oc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Ge.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ge.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Ge.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Ge.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),j2=Y("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${X(n.placement.split("-")[0])}`]]}})(fe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Ge.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Ge.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Ge.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${$2(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Ge.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Ge.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ge.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Ge.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),z2=Y("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let fa=!1;const Vg=new Fs;let di={x:0,y:0};function ha(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ug=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:f=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:b=!1,disableTouchListener:m=!1,enterDelay:g=100,enterNextDelay:p=0,enterTouchDelay:y=700,followCursor:x=!1,id:w,leaveDelay:S=0,leaveTouchDelay:v=1500,onClose:C,onOpen:O,open:P,placement:$="bottom",PopperComponent:A,PopperProps:B={},slotProps:L={},slots:T={},title:N,TransitionComponent:_,TransitionProps:D,...k}=r,z=E.isValidElement(s)?s:d.jsx("span",{children:s}),M=Yt(),R=Ms(),[j,V]=E.useState(),[K,Z]=E.useState(null),Q=E.useRef(!1),G=b||x,J=sr(),ne=sr(),re=sr(),se=sr(),[ee,ae]=zo({controlled:P,default:!1,name:"Tooltip",state:"open"});let H=ee;if(process.env.NODE_ENV!=="production"){const{current:be}=E.useRef(P!==void 0);E.useEffect(()=>{j&&j.disabled&&!be&&N!==""&&j.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
-
`))},[
|
|
233
|
-
`))},[
|
|
234
|
-
`));const at={...r,isRtl:R,arrow:o,disableInteractive:G,placement:$,PopperComponentProp:A,touch:Q.current},An=typeof L.popper=="function"?L.popper(at):L.popper,gi=E.useMemo(()=>{let be=[{name:"arrow",enabled:!!K,options:{element:K,padding:4}}];return B.popperOptions?.modifiers&&(be=be.concat(B.popperOptions.modifiers)),An?.popperOptions?.modifiers&&(be=be.concat(An.popperOptions.modifiers)),{...B.popperOptions,...An?.popperOptions,modifiers:be}},[K,B.popperOptions,An?.popperOptions]),mi=D2(at),va=typeof L.transition=="function"?L.transition(at):L.transition,le={slots:{popper:l.Popper,transition:l.Transition??_,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:L.arrow??c.arrow,popper:{...B,...An??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...D,...va??c.transition}}},[Ce,nt]=ge("popper",{elementType:F2,externalForwardedProps:le,ownerState:at,className:ie(mi.popper,B?.className)}),[Hn,xa]=ge("transition",{elementType:Wr,externalForwardedProps:le,ownerState:at}),[tI,nI]=ge("tooltip",{elementType:j2,className:mi.tooltip,externalForwardedProps:le,ownerState:at}),[rI,oI]=ge("arrow",{elementType:z2,className:mi.arrow,externalForwardedProps:le,ownerState:at,ref:Z});return d.jsxs(E.Fragment,{children:[E.cloneElement(z,xe),d.jsx(Ce,{as:A??Oc,placement:$,anchorEl:x?{getBoundingClientRect:()=>({top:di.y,left:di.x,right:di.x,bottom:di.y,width:0,height:0})}:j,popperRef:Le,open:j?H:!1,id:de,transition:!0,...Qt,...nt,popperOptions:gi,children:({TransitionProps:be})=>d.jsx(Hn,{timeout:M.transitions.duration.shorter,...be,...xa,children:d.jsxs(tI,{...nI,children:[N,o?d.jsx(rI,{...oI}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Ug.propTypes={arrow:i.bool,children:ur.isRequired,classes:i.object,className:i.string,components:i.shape({Arrow:i.elementType,Popper:i.elementType,Tooltip:i.elementType,Transition:i.elementType}),componentsProps:i.shape({arrow:i.object,popper:i.object,tooltip:i.object,transition:i.object}),describeChild:i.bool,disableFocusListener:i.bool,disableHoverListener:i.bool,disableInteractive:i.bool,disableTouchListener:i.bool,enterDelay:i.number,enterNextDelay:i.number,enterTouchDelay:i.number,followCursor:i.bool,id:i.string,leaveDelay:i.number,leaveTouchDelay:i.number,onClose:i.func,onOpen:i.func,open:i.bool,placement:i.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:i.elementType,PopperProps:i.object,slotProps:i.shape({arrow:i.oneOfType([i.func,i.object]),popper:i.oneOfType([i.func,i.object]),tooltip:i.oneOfType([i.func,i.object]),transition:i.oneOfType([i.func,i.object])}),slots:i.shape({arrow:i.elementType,popper:i.elementType,tooltip:i.elementType,transition:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),title:i.node,TransitionComponent:i.elementType,TransitionProps:i.object});function L2(e){return ue("MuiSwitch",e)}const mt=ce("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),B2=e=>{const{classes:t,edge:n,size:r,color:o,checked:s,disabled:a}=e,l={root:["root",n&&`edge${X(n)}`,`size${X(r)}`],switchBase:["switchBase",`color${X(o)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=pe(l,L2,t);return{...t,...c}},R2=Y("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${mt.thumb}`]:{width:16,height:16},[`& .${mt.switchBase}`]:{padding:4,[`&.${mt.checked}`]:{transform:"translateX(16px)"}}}}]}),W2=Y(ia,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${mt.input}`]:t.input},n.color!=="default"&&t[`color${X(n.color)}`]]}})(fe(({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}),[`&.${mt.checked}`]:{transform:"translateX(20px)"},[`&.${mt.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${mt.checked} + .${mt.track}`]:{opacity:.5},[`&.${mt.disabled} + .${mt.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${mt.input}`]:{left:"-100%",width:"300%"}})),fe(({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(et(["light"])).map(([t])=>({props:{color:t},style:{[`&.${mt.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"}},[`&.${mt.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)}`}},[`&.${mt.checked} + .${mt.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),V2=Y("span",{name:"MuiSwitch",slot:"Track"})(fe(({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}`}))),U2=Y("span",{name:"MuiSwitch",slot:"Thumb"})(fe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Kc=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:f={},slotProps:u={},...h}=r,b={...r,color:s,edge:a,size:l},m=B2(b),g={slots:f,slotProps:u},[p,y]=ge("root",{className:ie(m.root,o),elementType:R2,externalForwardedProps:g,ownerState:b,additionalProps:{sx:c}}),[x,w]=ge("thumb",{className:m.thumb,elementType:U2,externalForwardedProps:g,ownerState:b}),S=d.jsx(x,{...w}),[v,C]=ge("track",{className:m.track,elementType:V2,externalForwardedProps:g,ownerState:b});return d.jsxs(p,{...y,children:[d.jsx(W2,{type:"checkbox",icon:S,checkedIcon:S,ref:n,ownerState:b,...h,classes:{...m,root:m.switchBase},slots:{...f.switchBase&&{root:f.switchBase},...f.input&&{input:f.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(b):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(b):u.input}}}),d.jsx(v,{...C})]})});process.env.NODE_ENV!=="production"&&(Kc.propTypes={checked:i.bool,checkedIcon:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["default","primary","secondary","error","info","success","warning"]),i.string]),defaultChecked:i.bool,disabled:i.bool,disableRipple:i.bool,edge:i.oneOf(["end","start",!1]),icon:i.node,id:i.string,inputProps:i.object,inputRef:gt,onChange:i.func,required:i.bool,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({input:i.oneOfType([i.func,i.object]),root:i.oneOfType([i.func,i.object]),switchBase:i.oneOfType([i.func,i.object]),thumb:i.oneOfType([i.func,i.object]),track:i.oneOfType([i.func,i.object])}),slots:i.shape({input:i.elementType,root:i.elementType,switchBase:i.elementType,thumb:i.elementType,track:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),value:i.any});const Gc=E.createContext();process.env.NODE_ENV!=="production"&&(Gc.displayName="TableContext");function H2(e){return ue("MuiTable",e)}ce("MuiTable",["root","stickyHeader"]);const q2=e=>{const{classes:t,stickyHeader:n}=e;return pe({root:["root",n&&"stickyHeader"]},H2,t)},Y2=Y("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(fe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Hg="table",qg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTable"}),{className:o,component:s=Hg,padding:a="normal",size:l="medium",stickyHeader:c=!1,...f}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},h=q2(u),b=E.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return d.jsx(Gc.Provider,{value:b,children:d.jsx(Y2,{as:s,role:s===Hg?null:"table",ref:n,className:ie(h.root,o),ownerState:u,...f})})});process.env.NODE_ENV!=="production"&&(qg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),stickyHeader:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});const ui=E.createContext();process.env.NODE_ENV!=="production"&&(ui.displayName="Tablelvl2Context");function K2(e){return ue("MuiTableBody",e)}ce("MuiTableBody",["root"]);const G2=e=>{const{classes:t}=e;return pe({root:["root"]},K2,t)},J2=Y("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),X2={variant:"body"},Yg="tbody",Kg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTableBody"}),{className:o,component:s=Yg,...a}=r,l={...r,component:s},c=G2(l);return d.jsx(ui.Provider,{value:X2,children:d.jsx(J2,{className:ie(c.root,o),as:s,ref:n,role:s===Yg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Kg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function Q2(e){return ue("MuiTableCell",e)}const Z2=ce("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ek=e=>{const{classes:t,variant:n,align:r,padding:o,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${X(r)}`,o!=="normal"&&`padding${X(o)}`,`size${X(s)}`]};return pe(l,Q2,t)},tk=Y("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!=="normal"&&t[`padding${X(n.padding)}`],n.align!=="inherit"&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
-
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Z2.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Vn=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTableCell"}),{align:o="inherit",className:s,component:a,padding:l,scope:c,size:f,sortDirection:u,variant:h,...b}=r,m=E.useContext(Gc),g=E.useContext(ui),p=g&&g.variant==="head";let y;a?y=a:y=p?"th":"td";let x=c;y==="td"?x=void 0:!x&&p&&(x="col");const w=h||g&&g.variant,S={...r,align:o,component:y,padding:l||(m&&m.padding?m.padding:"normal"),size:f||(m&&m.size?m.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&m&&m.stickyHeader,variant:w},v=ek(S);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),d.jsx(tk,{as:y,ref:n,className:ie(v.root,s),"aria-sort":C,scope:x,ownerState:S,...b})});process.env.NODE_ENV!=="production"&&(Vn.propTypes={align:i.oneOf(["center","inherit","justify","left","right"]),children:i.node,classes:i.object,className:i.string,component:i.elementType,padding:i.oneOf(["checkbox","none","normal"]),scope:i.string,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),sortDirection:i.oneOf(["asc","desc",!1]),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),variant:i.oneOfType([i.oneOf(["body","footer","head"]),i.string])});function nk(e){return ue("MuiTableContainer",e)}ce("MuiTableContainer",["root"]);const rk=e=>{const{classes:t}=e;return pe({root:["root"]},nk,t)},ok=Y("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),Gg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTableContainer"}),{className:o,component:s="div",...a}=r,l={...r,component:s},c=rk(l);return d.jsx(ok,{ref:n,as:s,className:ie(c.root,o),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(Gg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ik(e){return ue("MuiTableHead",e)}ce("MuiTableHead",["root"]);const sk=e=>{const{classes:t}=e;return pe({root:["root"]},ik,t)},ak=Y("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),lk={variant:"head"},Jg="thead",Xg=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTableHead"}),{className:o,component:s=Jg,...a}=r,l={...r,component:s},c=sk(l);return d.jsx(ui.Provider,{value:lk,children:d.jsx(ak,{as:s,className:ie(c.root,o),ref:n,role:s===Jg?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(Xg.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function ck(e){return ue("MuiTableRow",e)}const Qg=ce("MuiTableRow",["root","selected","hover","head","footer"]),dk=e=>{const{classes:t,selected:n,hover:r,head:o,footer:s}=e;return pe({root:["root",n&&"selected",r&&"hover",o&&"head",s&&"footer"]},ck,t)},uk=Y("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(fe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Qg.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),Zg="tr",pi=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTableRow"}),{className:o,component:s=Zg,hover:a=!1,selected:l=!1,...c}=r,f=E.useContext(ui),u={...r,component:s,hover:a,selected:l,head:f&&f.variant==="head",footer:f&&f.variant==="footer"},h=dk(u);return d.jsx(uk,{as:s,ref:n,className:ie(h.root,o),role:s===Zg?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(pi.propTypes={children:i.node,classes:i.object,className:i.string,component:i.elementType,hover:i.bool,selected:i.bool,sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object])});function pk(e){return ue("MuiTextField",e)}ce("MuiTextField",["root"]);const fk={standard:ua,filled:da,outlined:pa},hk=e=>{const{classes:t}=e;return pe({root:["root"]},pk,t)},gk=Y(pg,{name:"MuiTextField",slot:"Root"})({}),ga=E.forwardRef(function(t,n){const r=he({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:f,disabled:u=!1,error:h=!1,FormHelperTextProps:b,fullWidth:m=!1,helperText:g,id:p,InputLabelProps:y,inputProps:x,InputProps:w,inputRef:S,label:v,maxRows:C,minRows:O,multiline:P=!1,name:$,onBlur:A,onChange:B,onFocus:L,placeholder:T,required:N=!1,rows:_,select:D=!1,SelectProps:k,slots:z={},slotProps:M={},type:R,value:j,variant:V="outlined",...K}=r,Z={...r,autoFocus:s,color:c,disabled:u,error:h,fullWidth:m,multiline:P,required:N,select:D,variant:V},Q=hk(Z);process.env.NODE_ENV!=="production"&&D&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const G=nr(p),J=g&&G?`${G}-helper-text`:void 0,ne=v&&G?`${G}-label`:void 0,re=fk[V],se={slots:z,slotProps:{input:w,inputLabel:y,htmlInput:x,formHelperText:b,select:k,...M}},ee={},ae=se.slotProps.inputLabel;V==="outlined"&&(ae&&typeof ae.shrink<"u"&&(ee.notched=ae.shrink),ee.label=v),D&&((!k||!k.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const[H,de]=ge("root",{elementType:gk,shouldForwardComponentProp:!0,externalForwardedProps:{...se,...K},ownerState:Z,className:ie(Q.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:m,required:N,color:c,variant:V}}),[oe,me]=ge("input",{elementType:re,externalForwardedProps:se,additionalProps:ee,ownerState:Z}),[Ue,ze]=ge("inputLabel",{elementType:bg,externalForwardedProps:se,ownerState:Z}),[we,Re]=ge("htmlInput",{elementType:"input",externalForwardedProps:se,ownerState:Z}),[He,Ie]=ge("formHelperText",{elementType:mg,externalForwardedProps:se,ownerState:Z}),[te,tt]=ge("select",{elementType:Ur,externalForwardedProps:se,ownerState:Z}),Se=d.jsx(oe,{"aria-describedby":J,autoComplete:o,autoFocus:s,defaultValue:f,fullWidth:m,multiline:P,name:$,rows:_,maxRows:C,minRows:O,type:R,value:j,id:G,inputRef:S,onBlur:A,onChange:B,onFocus:L,placeholder:T,inputProps:Re,slots:{input:z.htmlInput?we:void 0},...me});return d.jsxs(H,{...de,children:[v!=null&&v!==""&&d.jsx(Ue,{htmlFor:G,id:ne,...ze,children:v}),D?d.jsx(te,{"aria-describedby":J,id:G,labelId:ne,value:j,input:Se,...tt,children:a}):Se,g&&d.jsx(He,{id:J,...Ie,children:g})]})});process.env.NODE_ENV!=="production"&&(ga.propTypes={autoComplete:i.string,autoFocus:i.bool,children:i.node,classes:i.object,className:i.string,color:i.oneOfType([i.oneOf(["primary","secondary","error","info","success","warning"]),i.string]),defaultValue:i.any,disabled:i.bool,error:i.bool,FormHelperTextProps:i.object,fullWidth:i.bool,helperText:i.node,id:i.string,InputLabelProps:i.object,inputProps:i.object,InputProps:i.object,inputRef:gt,label:i.node,margin:i.oneOf(["dense","none","normal"]),maxRows:i.oneOfType([i.number,i.string]),minRows:i.oneOfType([i.number,i.string]),multiline:i.bool,name:i.string,onBlur:i.func,onChange:i.func,onFocus:i.func,placeholder:i.string,required:i.bool,rows:i.oneOfType([i.number,i.string]),select:i.bool,SelectProps:i.object,size:i.oneOfType([i.oneOf(["medium","small"]),i.string]),slotProps:i.shape({formHelperText:i.oneOfType([i.func,i.object]),htmlInput:i.oneOfType([i.func,i.object]),input:i.oneOfType([i.func,i.object]),inputLabel:i.oneOfType([i.func,i.object]),select:i.oneOfType([i.func,i.object])}),slots:i.shape({formHelperText:i.elementType,htmlInput:i.elementType,input:i.elementType,inputLabel:i.elementType,root:i.elementType,select:i.elementType}),sx:i.oneOfType([i.arrayOf(i.oneOfType([i.func,i.object,i.bool])),i.func,i.object]),type:i.string,value:i.any,variant:i.oneOf(["filled","outlined","standard"])});const em=Lf({themeId:Co});function Jc(){return Jc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jc.apply(this,arguments)}function mk(e,t){if(e==null)return{};var n=yk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Xc=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=mk(e,["color","size"]);return F.createElement("svg",Jc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),F.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),F.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),F.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});Xc.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Xc.displayName="AlignLeft";function Qc(){return Qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qc.apply(this,arguments)}function bk(e,t){if(e==null)return{};var n=vk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Zc=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=bk(e,["color","size"]);return F.createElement("svg",Qc({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),F.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});Zc.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},Zc.displayName="Bell";function ed(){return ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ed.apply(this,arguments)}function xk(e,t){if(e==null)return{};var n=Sk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Sk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ma=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=xk(e,["color","size"]);return F.createElement("svg",ed({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("polyline",{points:"6 9 12 15 18 9"}))});ma.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},ma.displayName="ChevronDown";function td(){return td=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},td.apply(this,arguments)}function wk(e,t){if(e==null)return{};var n=Ck(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ck(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var nd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=wk(e,["color","size"]);return F.createElement("svg",td({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"12",cy:"12",r:"1"}),F.createElement("circle",{cx:"12",cy:"5",r:"1"}),F.createElement("circle",{cx:"12",cy:"19",r:"1"}))});nd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},nd.displayName="MoreVertical";function rd(){return rd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}function Ek(e,t){if(e==null)return{};var n=Tk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var od=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=Ek(e,["color","size"]);return F.createElement("svg",rd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"11",cy:"11",r:"8"}),F.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});od.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},od.displayName="Search";function id(){return id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},id.apply(this,arguments)}function Ok(e,t){if(e==null)return{};var n=Pk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var sd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=Ok(e,["color","size"]);return F.createElement("svg",id({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"12",cy:"12",r:"3"}),F.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"}))});sd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},sd.displayName="Settings";function ad(){return ad=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ad.apply(this,arguments)}function kk(e,t){if(e==null)return{};var n=Nk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var ld=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=kk(e,["color","size"]);return F.createElement("svg",ad({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),F.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),F.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});ld.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},ld.displayName="ShoppingBag";function cd(){return cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cd.apply(this,arguments)}function Ik(e,t){if(e==null)return{};var n=Ak(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ak(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var dd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=Ik(e,["color","size"]);return F.createElement("svg",cd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.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"}))});dd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},dd.displayName="Star";function ud(){return ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ud.apply(this,arguments)}function _k(e,t){if(e==null)return{};var n=Mk(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mk(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var pd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=e.size,s=o===void 0?24:o,a=_k(e,["color","size"]);return F.createElement("svg",ud({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});pd.propTypes={color:i.string,size:i.oneOfType([i.string,i.number])},pd.displayName="X";function fn(){const t={theme:F.useMemo(()=>rc({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"}}}}}}),[]),topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},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,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480,maxHeight:"none"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,overflowY:"visible",overflowX:"hidden",maxHeight:"none"},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,minWidth:160,flexShrink:0,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:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},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"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}}},n={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:0,boxShadow:"none",background:"#f7f8fa",p:0,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"#222",fontSize:16,py:2,px:2.5,borderBottom:"1px solid #e0e0e0",background:"#f7f8fa",borderTopLeftRadius:0,borderTopRightRadius:0},categoryTableHeaderCell:{flex:2,marginLeft:7},categoryTableRow:r=>({display:"flex",alignItems:"center",py:2.5,px:2.5,...r===0?{mt:2}:{},mb:2,borderBottom:"none",background:"#fff",borderRadius:2,transition:"background 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.06)",marginLeft:0}),categoryNameCell:{flex:2},categoryName:{fontWeight:700,fontSize:18,color:"#222"},categoryProducts:{fontSize:14,color:"#888",mt:.5},categoryUpdated:{fontSize:13,color:"#aaa",mt:.5},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:16,color:"#222",fontWeight:600}),categoryOSA:()=>({fontSize:14,color:"#e53935",mt:.5}),categoryImagesCell:{flex:2,display:"flex",gap:1.5},categoryImage:{width:48,height:48,borderRadius:8,border:"1px solid #eee",objectFit:"cover",background:"#f5f5f5"},categoryViewCell:{flex:1},categoryViewButton:{background:"none",color:"#444",fontWeight:400,fontSize:18,textTransform:"none",p:0,boxShadow:"none",justifyContent:"flex-end","&:hover":{background:"none",boxShadow:"none"}}};return t.categoryDetail=n,t}const ya=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:o,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,hideViewSwitch:c=!1,isHomeDefault:f=!1,tenantStatus:u={matched:!0}})=>{const h=lt();Yt();const b=fn(),[m,g]=F.useState("OSA"),[p,y]=F.useState(null),x=!!p,[w,S]=F.useState(!1),v=Array.isArray(e?.store)?e.store:[],C=()=>{y(null)},[O,P]=F.useState(v),$=k=>{let z=[...O];k==="all"?O.includes("all")?z=[]:z=["all"]:O.includes(k)?z=O.filter(M=>M!==k&&M!=="all"):(z=O.filter(M=>M!=="all"),z.push(k)),P(z)},A=k=>{o?S(!0):(P(v),y(k.currentTarget))},B=()=>{t({...e,store:O}),y(null)},L=k=>{a?a(k):t({...e,store:k}),S(!1)},T=()=>{S(!1)},_=b.topBar||{},D=_&&_.viewSwitch||{};return d.jsxs(d.Fragment,{children:[d.jsx(I,{sx:_.root,children:d.jsxs(I,{sx:_.inner,children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",marginBottom:"20px"},children:[l&&d.jsxs(Ve,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>h("/home"),children:[d.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),d.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),d.jsxs(I,{sx:_.searchBox,children:[d.jsx(od,{size:18,style:{position:"absolute",left:0,color:"#888"}}),d.jsx(Go,{placeholder:"Search Products",value:e.search,onChange:k=>t({...e,search:k.target.value}),sx:{..._.searchInput||{},pl:3.5}})]})]}),d.jsxs(I,{sx:_.controlGroup,children:[d.jsxs(I,{sx:{display:"flex",gap:1},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,..._.btn||{}},onClick:A,tabIndex:0,"aria-label":"Select stores",children:[d.jsx(ld,{size:18,style:{color:"#555",marginRight:4}}),d.jsx(W,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:v.length===0||v.includes("all")?"All Stores":`${v.length} Stores`}),d.jsx(W,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${n.filter(k=>k.id!=="all").length} stores`}),d.jsx(ma,{size:16,color:"#888",style:{marginLeft:2}})]}),d.jsxs(Vc,{anchorEl:p,open:x,onClose:C,PaperProps:{style:{minWidth:180}},children:[d.jsxs(Jt,{onClick:()=>$("all"),children:[d.jsx(pn,{checked:O.includes("all")}),d.jsx(Bc,{primary:"All Stores"})]}),d.jsx(Bt,{}),n.filter(k=>k.id!=="all").map(k=>d.jsxs(Jt,{onClick:()=>$(k.id),children:[d.jsx(pn,{checked:O.includes(k.id)}),d.jsx(Bc,{primary:k.name})]},k.id)),d.jsx(Bt,{}),d.jsx(I,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:d.jsx(Ve,{variant:"contained",size:"small",onClick:B,children:"Apply"})})]}),d.jsxs(I,{sx:_.btn,onClick:r,children:[d.jsx(W,{variant:"body2",children:f?"MTD":"Filters"}),d.jsx(ma,{size:14,color:"#888"})]}),d.jsxs(I,{sx:_.btn,children:[d.jsx(W,{variant:"body2",children:"Sort"}),d.jsx(Xc,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!c&&d.jsxs(I,{sx:{display:"flex",gap:1.5},children:[d.jsx(I,{component:"button",onClick:()=>g("OSA"),sx:{...D.opt||{},...m==="OSA"&&D.active},children:"OSA"}),d.jsx(I,{component:"button",onClick:()=>g("Catalogs"),sx:{...D.opt||{},...m==="Catalogs"&&D.active},children:"Catalogs"})]}),!c&&d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(I,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!c&&d.jsxs(d.Fragment,{children:[d.jsx(I,{component:"button",sx:{..._.iconOnly,cursor:u.loading?"not-allowed":"pointer",opacity:u.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:u.loading?"none":"auto"},title:u.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{u.loading||h("/product-setting",{state:{tenantIntegrationMatched:!!u.matched}})},children:d.jsx(sd,{size:20})}),d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),d.jsx(I,{component:"button",sx:_.iconOnly,title:"More",children:d.jsx(nd,{size:20})})]}),d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[d.jsx(I,{component:"button",sx:_.iconOnly,title:"Notifications",children:d.jsx(Zc,{size:20})}),d.jsx(I,{component:"button",sx:_.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:d.jsx(dd,{size:20})})]})]})]})}),o&&(()=>{const{open:k,onClose:z,onStoreSelect:M,...R}=s||{};return d.jsx(o,{open:w,onClose:T,onStoreSelect:L,selectedStores:v,...R})})()]})},tm=[{key:"storeId",label:"Store ID",type:"number"},{key:"productId",label:"Product ID",type:"number"},{key:"categoryId",label:"Category ID",type:"number"},{key:"status",label:"Status",type:"boolean"},{key:"minPrice",label:"Min Price",type:"number"},{key:"maxPrice",label:"Max Price",type:"number"},{key:"inStock",label:"In Stock",type:"boolean"}];function $k({open:e,filters:t,onChange:n,onClose:r,onApply:o}){const s=(a,l)=>{let c=l;const f=tm.find(u=>u.key===a);f&&f.type==="number"&&(c=l===""?void 0:Number(l)),f&&f.type==="boolean"&&(c=!!l),n({...t,[a]:c})};return d.jsxs(ei,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[d.jsx(ti,{children:"Filter Products"}),d.jsx(ca,{children:d.jsx(I,{display:"flex",flexDirection:"column",gap:2,children:tm.map(a=>d.jsx(I,{children:a.type==="boolean"?d.jsx(fr,{control:d.jsx(pn,{checked:!!t[a.key],onChange:l=>s(a.key,l.target.checked)}),label:a.label}):d.jsx(ga,{label:a.label,type:"number",value:t[a.key]||"",onChange:l=>s(a.key,l.target.value),fullWidth:!0,size:"small"})},a.key))})}),d.jsxs(_c,{children:[d.jsx(Ve,{onClick:r,children:"Cancel"}),d.jsx(Ve,{variant:"contained",onClick:o,children:"Apply"})]})]})}function Dk({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=fn(),o=bt(),s=o.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=F.useState(s),[c,f]=F.useState(!1),[u,h]=F.useState(a),m=Ae(O=>O.dashboard)?.products||[],g=m.reduce((O,P)=>(P?.id&&(O[P.id]=P),O),{}),p=m.map(O=>O?.id).filter(Boolean);console.log(p,"productIds we get at page");const y=Wt();F.useEffect(()=>{y(Qn())},[y]),F.useEffect(()=>{o.state?.filters&&setTimeout(()=>{l(o.state.filters)},0)},[o.state]),F.useEffect(()=>{Array.isArray(p)},[p,a,g]);const x=O=>{l(O)},w=()=>{h(a),f(!0)},S={};Object.values(g).forEach(O=>{O.storeId&&O.storeName&&(S[O.storeId]=O.storeName)});const v=[{id:"all",name:"All Stores"},...Object.entries(S).map(([O,P])=>({id:O,name:P}))],C=o.state&&o.state.tenantStatus||{matched:!0};return d.jsxs("div",{className:"app-container",children:[d.jsx(ya,{styles:r,onFilterChange:x,filters:a,stores:v,onOpenFilterModal:w,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:C}),d.jsx("div",{className:"product-main-container"}),d.jsx($k,{open:c,filters:u,onChange:h,onClose:()=>f(!1),onApply:()=>{l(u),f(!1)}})]})}const nm=Be(d.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"),Fk=e=>d.jsx(jo,{...e,viewBox:"0 0 24 24",children:d.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),jk=()=>{const e=lt(),t=Wt(),n=fn(),{metrics:r,loading:o}=Ae(C=>C.dashboard),[s,a]=F.useState({search:"",store:[],category:"all",status:"all"}),l=C=>a(C),[c,f]=F.useState(new Date);F.useEffect(()=>{t(Zi())},[t]),F.useEffect(()=>{const C=setInterval(()=>{f(new Date)},6e4);return()=>clearInterval(C)},[]);const u=c.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=c.getDate(),b=c.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),m=r?.activeProducts||0,g=r?.activeCatalogues||0,p=r?.osa||{},y=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),x=p?.availableProducts||0,w=p?.totalRequests||0,S=p?.availabilityPercentage||0,v=w>0?100-S:0;return d.jsxs(d.Fragment,{children:[d.jsx(ya,{styles:n.topBar,filters:s,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),d.jsxs(I,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[d.jsx(Nn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:d.jsxs(ig,{sx:{p:1},children:[d.jsx(W,{variant:"body2",color:"text.secondary",children:u}),d.jsx(W,{variant:"h6",fontWeight:400,color:"#000000",children:h}),d.jsx(W,{variant:"caption",color:"text.secondary",children:b})]})}),d.jsxs(I,{children:[d.jsxs(W,{variant:"h6",fontWeight:700,children:["Hi Ashok ",d.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),d.jsx(W,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),d.jsx(I,{sx:{mt:2},children:d.jsxs(Nn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(Fk,{sx:{fontSize:24,color:"#000000"}}),d.jsxs(W,{variant:"h6",fontWeight:700,children:["Products ",d.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:o?"...":m})]})]}),d.jsxs(W,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),d.jsxs(I,{sx:{display:"flex",gap:2},children:[d.jsxs(Nn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(W,{variant:"body2",color:"#454545",children:"Active Products"}),d.jsx(W,{variant:"h6",fontWeight:700,children:o?"...":m}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(nm,{sx:{fontSize:16,color:"#4caf50"}}),d.jsx(W,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),d.jsxs(Nn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(W,{variant:"body2",color:"#454545",children:"Active Catalogs"}),d.jsx(W,{variant:"h6",fontWeight:700,children:o?"...":g}),d.jsx(W,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),d.jsxs(Nn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(W,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),d.jsxs(W,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[o?"...":`${S}%`,d.jsx(W,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:o?"":`${y(x)}/${y(w)}`})]}),d.jsx(W,{variant:"caption",color:"error",children:o?"":`${v.toFixed(0)}% missing`})]})]})]})})]})]})};function fi({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:o=!1}){const s=lt(),a=fn(),[l]=F.useState({matched:!1,error:"",apiResponse:null,loading:!1});let c=a&&a.emptyProduct?a.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const u=Ae(m=>m?.dashboard)?.products||[],h=t||(()=>s("/product-setting")),b=!r&&!e&&Array.isArray(u)&&u.length===0;return d.jsx(I,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:d.jsx(I,{sx:c.wrapper,children:d.jsxs(I,{sx:c.card,children:[d.jsxs(I,{sx:c.iconContainer,children:[d.jsxs(I,{sx:c.sparkleContainer,children:[d.jsx(I,{sx:c.sparkleLeft}),d.jsx(I,{sx:c.sparkleCenter}),d.jsx(I,{sx:c.sparkleRight})]}),d.jsx(I,{sx:c.inboxIcon,children:d.jsx(I,{sx:c.notch})})]}),d.jsx(W,{sx:c.title,children:r?"Session Expired":n?`No Products in ${n}`:"No Products"}),d.jsx(W,{sx:c.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!b?`No products found in the "${n}" category.`:b?"No products found in store inventory. Start syncing to add products.":l.matched?"Active integrations fetched successfully":l.error?l.error:"No active integration found for this tenant id"}),!e&&!r&&b&&!o&&d.jsx(W,{component:"a",href:"#",sx:c.actionLink,onClick:m=>{m.preventDefault(),h()},children:"Start Syncing Products"})]})})})}const zk=Be(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Lk=Be(d.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),rm=({productState:e,categoryName:t,categoryProductCount:n,activeCatalogsCount:r=0,onManageClick:o})=>{const s=t?`${t} Products`:"Categories",a=t?n:e.homePageCardSummary?.totalCategories||0,l=t?"":"Products",c=t?"":e.homePageCardSummary?.totalProducts||0;return d.jsxs(I,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[d.jsx(fd,{fontSize:14,title:s,titleValue:a,subtitle:l,subtitleValue:c,recentText:e.homePageCardSummary?.lastSync?`Sync ${e.homePageCardSummary.lastSync}`:"",tickMarkRequired:!0,btnLabel:"History"}),d.jsx(fd,{title:"Active Catalogs",titleValue:r,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:o}),d.jsx(fd,{title:"On Shelf Yesterday",titleValue:"78%",thirdVaue:"78/100X",recentText:"22% mising",recentTextColor:"#FF2929",btnLabel:"Report"})]})};function fd({title:e="",subtitle:t="",titleValue:n="",thirdVaue:r="",subtitleValue:o="",recentText:s="",recentTextColor:a="#808080",btnLabel:l="",tickMarkRequired:c=!1,linkRequired:f=!1,onBtnClick:u}){return d.jsxs(Nn,{sx:{flex:1,minWidth:250,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"flex-start",mb:1},children:[e&&d.jsxs(I,{sx:{flex:1,textAlign:"left"},children:[d.jsx(W,{variant:"body2",color:"#454545",fontSize:18,children:e}),d.jsxs(W,{variant:"h5",fontWeight:500,color:"#454545",fontSize:28,children:[n,d.jsx(W,{variant:"caption",ml:1,color:"#808080",fontSize:12,children:r})]})]}),t&&d.jsxs(I,{sx:{flex:1,textAlign:"left"},children:[d.jsx(W,{variant:"body2",color:"#454545",fontSize:18,children:t}),d.jsx(W,{variant:"h5",fontWeight:500,color:"#454545",fontSize:28,children:o})]})]}),d.jsx(Bt,{}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",flex:1},children:[c&&d.jsx(zk,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),f&&d.jsx(Lk,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),d.jsx(W,{variant:"caption",color:a,fontSize:12,children:s})]}),l&&d.jsxs(Ve,{variant:"text",size:"small",onClick:u,sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:[l," >"]})]})]})}function Bk(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Rk=function(t){var n=t.size,r=n===void 0?24:n,o=t.className,s=o===void 0?"":o,a=t.fill,l=a===void 0?"none":a,c=Bk(t,["size","className","fill"]);return F.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:l,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-right ".concat(s)},c),F.createElement("g",null,F.createElement("polyline",{points:"9 18 15 12 9 6"})))};function Wk({categoryData:e=[],styles:t={},onView:n}){return console.log("Table.jsx categoryData:",e),d.jsxs(Nn,{sx:t.categoryTable,children:[d.jsxs(I,{sx:t.categoryTableHeader,children:[d.jsx(I,{sx:t.categoryTableHeaderCell,children:"Category"}),d.jsx(I,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),d.jsx(I,{sx:t.categoryTableHeaderCell,children:"Products"}),d.jsx(I,{sx:t.categoryTableHeaderCell})]}),e.map((r,o)=>d.jsxs(I,{sx:t.categoryTableRow(o),children:[d.jsxs(I,{sx:t.categoryNameCell,children:[d.jsx(W,{sx:t.categoryName,children:r.name}),d.jsxs(W,{sx:t.categoryProducts,children:[r.products," Products"]}),d.jsxs(W,{sx:t.categoryUpdated,children:["Updated ",r.updated]})]}),d.jsxs(I,{sx:t.categoryStockCell,children:[d.jsx(W,{sx:t.categoryStock(o),children:r.stock}),d.jsx(W,{sx:t.categoryOSA(o),children:r.osa})]}),d.jsx(I,{sx:t.categoryImagesCell,children:r.images.map((s,a)=>d.jsx(ra,{src:s,alt:r.name+" product",sx:t.categoryImage},a))}),d.jsx(I,{sx:t.categoryViewCell,children:d.jsxs(Ve,{variant:"contained",color:"primary",sx:t.categoryViewButton,onClick:()=>n&&n(r),children:["View",d.jsx(Rk,{size:20,style:{marginLeft:6}})]})})]},r.name))]})}const Vk=()=>{const e=Wt(),t=lt(),r=fn().categoryDetail,[o,s]=F.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:a,companyId:l,loading:c,error:f}=Ae(T=>T.dashboard),u=F.useMemo(()=>a&&typeof a=="object"&&Object.keys(a).length>0?{matched:!0,error:"",apiResponse:a,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[a]),h=Ae(T=>T.dashboard),{categorySummary:b=[],products:m=[]}=h||{},g=b,{sharedCatalogues:p=[]}=Ae(T=>T.productSettings??{}),y=F.useMemo(()=>Array.isArray(p)?p.filter(T=>T.status===!0).length:0,[p]),x=Array.isArray(m)&&m.length>0,w=()=>{u.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},S={},{productsByCategory:v={}}=h||{};Object.values(v).flat().forEach(T=>{T.storeId&&T.storeName&&(S[T.storeId]=T.storeName)});const C=[{id:"all",name:"All Stores"},...Object.entries(S).map(([T,N])=>({id:T,name:N}))],O=T=>{s(T)},[P,$]=F.useState(!1);F.useEffect(()=>{!l&&!P?e(go()).finally(()=>{$(!0)}):l&&queueMicrotask(()=>$(!0))},[e,l,P]);const A=F.useRef(null);F.useEffect(()=>{l&&l!==A.current&&(A.current=l,e(wt(l)),e(Qn()),e(Er({page:1})))},[e,l]);const B=T=>{t(`/category?categoryName=${encodeURIComponent(T.name)}`)},L=P&&f&&!l;return d.jsxs(d.Fragment,{children:[!L&&d.jsx(ya,{filters:o,onFilterChange:O,styles:r.topBar,stores:C,tenantStatus:u,hasProducts:x}),L?d.jsx(fi,{handleStartSyncing:w,loading:!1,sessionExpired:!0}):!P&&!l?d.jsx(fi,{handleStartSyncing:w,loading:!0,sessionExpired:!1}):x?d.jsxs(I,{sx:r.root,children:[d.jsx(rm,{productState:h,activeCatalogsCount:y,onManageClick:()=>t("/catalogs/manage-shared")}),d.jsx(Wk,{categoryData:g,styles:r,onView:B})]}):d.jsx(fi,{handleStartSyncing:w,loading:c,sessionExpired:!1,hasIntegration:u.matched})]})};function it({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:o,selected:s,highlightStyle:a={},action:l,disabled:c=!1,customStyle:f={}}){const h={card:{...{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,cursor:o&&!c?"pointer":"default",minHeight:60,opacity:c?.5:1,...s?a:{}},...f},cardInner:{display:"flex",alignItems:"center",flex:1},icon:{display:"flex",alignItems:"center",mr:2},title:{fontWeight:700,fontSize:15,color:c?"#999":"#222",lineHeight:1.2},subtitle:{color:c?"#bbb":"#888",fontSize:13,fontWeight:400,mt:.5,lineHeight:1.3}};return d.jsxs(I,{onClick:c?void 0:o,sx:{...h.card,...f||{}},children:[e&&d.jsx(I,{sx:h.icon,children:e}),d.jsxs(I,{sx:h.cardInner,children:[d.jsxs(I,{children:[d.jsx(W,{sx:h.title,children:t}),n&&d.jsx(W,{sx:h.subtitle,children:r?`${r} ${n}`:n})]}),l&&d.jsx(I,{sx:{ml:"auto"},children:l})]})]})}const Uk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),om=e=>{const t=Hk(e);return t.charAt(0).toUpperCase()+t.slice(1)},im=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),qk=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Yk={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 Kk=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...l},c)=>F.createElement("svg",{ref:c,...Yk,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:im("lucide",o),...!s&&!qk(l)&&{"aria-hidden":"true"},...l},[...a.map(([f,u])=>F.createElement(f,u)),...Array.isArray(s)?s:[s]]));const hr=(e,t)=>{const n=F.forwardRef(({className:r,...o},s)=>F.createElement(Kk,{ref:s,iconNode:t,className:im(`lucide-${Uk(om(e))}`,`lucide-${e}`,r),...o}));return n.displayName=om(e),n};const Gk=hr("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 Jk=hr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const Xk=hr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const sm=hr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const yt=hr("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 hd=hr("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"}]]);const Qk=hr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Zk({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:o=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:c={},...f}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=lt();c?.configs;const b=c?.configs?.sync_frequency||"Daily",m=c?.configs?.sync_time||"10:00 AM",g=c?.type||s||"FTP";return o===3?d.jsxs(I,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(W,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(it,{icon:d.jsx(hd,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(Kc,{checked:e,onChange:p=>t&&t(p.target.checked)})}),d.jsxs(W,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},onClick:l,children:"Sync Now"})]}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u,disabled:!0}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),d.jsxs(I,{sx:{display:"flex",gap:2},children:[d.jsx(I,{sx:{flex:1},children:d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:b,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(I,{sx:{flex:1},children:d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Time",subtitle:m,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]}):d.jsxs(I,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(W,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(it,{icon:d.jsx(hd,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(Kc,{checked:e,onChange:p=>t&&t(p.target.checked)})}),d.jsxs(W,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:o===0?"#bbb":"#1976d2",fontWeight:500,fontSize:15,cursor:o===0?"not-allowed":"pointer",opacity:o===0?.5:1},onClick:o===0?void 0:l,children:"Sync Now"})]}),o===0&&d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u}),o===1&&d.jsxs(d.Fragment,{children:[d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})},highlightStyle:u})]}),o===3&&d.jsxs(d.Fragment,{children:[d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:o}})}),d.jsxs(I,{sx:{display:"flex",gap:2},children:[d.jsx(I,{sx:{flex:1},children:d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:"Daily",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(I,{sx:{flex:1},children:d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync Time",subtitle:"10:00 AM",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(it,{icon:d.jsx(yt,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]})]})}const Un=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=fn(),o=(a=15)=>!n||!Array.isArray(n)||n.length===0?null:d.jsx(I,{sx:{display:"flex",alignItems:"center"},children:n.map((l,c)=>d.jsxs(F.Fragment,{children:[c>0&&d.jsx(sm,{size:a-2,color:"#bbb",style:{margin:"0 7px"}}),d.jsx(W,{sx:{color:c===n.length-1?"#111":"#888",fontWeight:c===n.length-1?700:500,fontSize:a},children:l.label})]},l.label))}),s=r;return d.jsxs(I,{sx:s.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center"},children:[d.jsxs(I,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[d.jsx(Xk,{size:18}),d.jsx(W,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),n&&n.length>0?o(16):d.jsxs(d.Fragment,{children:[d.jsx(W,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),d.jsx(sm,{size:16,color:"#bbb",style:{margin:"0 8px"}}),d.jsx(W,{sx:{fontWeight:600},children:e})]})]}),d.jsxs(I,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Bt,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),d.jsx(It,{size:"small",sx:{color:"#888",mx:1},children:d.jsx(Gk,{size:20})}),d.jsx(I,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:d.jsx(hd,{size:16,color:"#fff"})})]})]})};function eN({open:e,onClose:t,onSave:n}){Yt();const r=fn(),[o,s]=F.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>s(h.target.value),c=()=>{n&&n(o),t()},f=()=>{},u=r.productSettingModal;return d.jsx(Zo,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:d.jsxs(I,{sx:u.container,children:[d.jsxs(I,{sx:u.header,children:[d.jsx(W,{sx:u.headerTitle,children:"Sync Method"}),d.jsx(It,{onClick:t,size:"small",sx:u.closeButton,children:d.jsx(Qk,{size:20})})]}),d.jsxs(I,{sx:u.content,children:[d.jsx(jg,{value:o,onChange:l,children:a.map(h=>d.jsx(fr,{value:h.value,control:d.jsx(Fg,{icon:d.jsx(I,{sx:u.radioIcon}),checkedIcon:d.jsx(Jk,{size:18,color:"#000"}),sx:u.radioChecked}),label:d.jsx(W,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...o===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),d.jsxs(I,{sx:u.upgradeSection,children:[d.jsx(W,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),d.jsx(W,{onClick:f,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),d.jsx(I,{sx:u.footer,children:d.jsx(Ve,{fullWidth:!0,variant:"contained",onClick:c,sx:u.saveButton,children:"Save"})})]})})}const tN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=fn();let o;return o=r.productSettingModal,d.jsx(Zo,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:o.modal,children:d.jsxs(I,{sx:o.container,children:[d.jsx(I,{sx:o.header,children:d.jsx(W,{sx:{...o.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),d.jsxs(I,{sx:{...o.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[d.jsx(Ve,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),d.jsx(Ve,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function nN(){const e=bt(),t=lt(),n=Wt(),{companyId:r,integrationData:o,loading:s}=Ae(N=>N?.dashboard||{}),[a,l]=F.useState(!0),[c,f]=F.useState(),[u,h]=F.useState(0),[b,m]=F.useState(""),[g,p]=F.useState(!1),[y,x]=F.useState(!1),[w,S]=F.useState(!1),[v,C]=F.useState(""),O=F.useRef(null),P=F.useRef(!1);F.useEffect(()=>{const N=e.state?.tenantIntegrationMatched===!0;r&&r!==O.current&&!s&&(o&&(o?.id||o?.channelId||o?.configs||typeof o=="object"&&Object.keys(o).length>0)?O.current=r:(O.current=r,n(wt(r)))),N&&r&&!s&&!P.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),P.current=!0,n(wt(r))),N||(P.current=!1)},[r,n,s,o,e.state]),F.useEffect(()=>{let N=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(N=e.state.tenantIntegrationMatched);const _=o&&(o?.id||o?.channelId||o?.configs||Array.isArray(o?.data)&&o.data.length>0||typeof o=="object"&&Object.keys(o).length>0),D=e.state?.fromSyncStep===1?1:N===!0||_?3:0;queueMicrotask(()=>h(D))},[e.state,o]);const $=()=>p(!0),A=N=>{m(N),h(1),p(!1)},B=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},L=async()=>{const N=o?.channelId||o?.id;if(!N){C("Channel ID not found"),S(!0),x(!1);return}x(!1);try{const _=await n(bo(N));if(bo.fulfilled.match(_)){const D=_.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(D),S(!0),D==="Sync started successfully"&&setTimeout(()=>{n(wt(r)),n(Qn()),t("/")},2500)}else C("Sync not started successfully"),S(!0)}catch{C("Sync not started successfully"),S(!0)}},T=()=>{u===1?(h(0),m("")):t("/")};return d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbRight:"Settings",onBack:T}),d.jsx(eN,{open:g,onClose:()=>p(!1),onSave:A}),d.jsx(tN,{isOpen:y,onClose:()=>x(!1),onConfirm:L}),d.jsx(ci,{open:w,autoHideDuration:4e3,onClose:()=>S(!1),message:v,anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsx(Zk,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:c,setSelectedCard:f,syncStep:u,syncMethod:b,integrationData:o,onSetupSync:$,onSetupFTP:B,onSyncNow:()=>x(!0)})]})}const am=["Setup FTP","Check data","Start Sync"],rN=e=>{const{onBack:t}=e,n=bt(),r=lt();n.state?.tenantIntegrationData;const o=n.state?.fromSyncStep,s=()=>{t?t():o!==void 0?r("/product-setting",{state:{fromSyncStep:o,tenantIntegrationMatched:o===3}}):r("/product-setting")};return d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),d.jsxs(I,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(I,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:am.map((a,l)=>d.jsx("span",{style:{fontWeight:l===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:l===0?"left":l===am.length-1?"right":"center"},children:a},a))}),d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsxs(Kt,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[d.jsx(W,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),d.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[d.jsx("li",{children:"Directory should have just one file"}),d.jsx("li",{children:"File format must be in CSV (comma separated)"}),d.jsx("li",{children:"File structure should be flat"})]}),d.jsx(I,{sx:{display:"flex",justifyContent:"flex-end"},children:d.jsx(Ve,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})})]})]})},oN=Be(d.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),iN=Be(d.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),sN=Be(d.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),lm=Be(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),aN=Be(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),lN=Be(d.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),cN=Be(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),dN=Be(d.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),uN=Be([d.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),d.jsx("path",{d:"M9 12h6v2H9z"},"1")],"Inventory2Outlined"),gd=Be(d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),pN=Be(d.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),fN=Be(d.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),hN=Be(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),gN=Be(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),mN=Be(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),yN=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,o=n?"#2563eb":"#bbb";return d.jsx(I,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${o}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:r?d.jsx("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 10l5 5 5-5",stroke:o,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):d.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:o,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})})},ba=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:o=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:l,filledSegments:c,filledSegmentsStart:f=0,previousStepsComplete:u=!1})=>{const b=Yt().transitions?.duration?.standard??400,[m,g]=F.useState(0),[p,y]=F.useState(!1),x=Math.max(1,e.length),w=50/x,S=100*(x-1)/x,v=40/x,C=x>1?100/x:0,O=100,P=F.useMemo(()=>{let $;if(typeof c=="number"){const B=typeof f=="number"?f:0,L=c-B;$=C*(B+m*L)}else typeof l=="number"?$=C*(l+m):s?$=m?S:0:r?$=m?S*.5:0:$=m?v:0;const A=Math.min($,S)/S;return Math.round(A*O)},[m,c,f,l,s,r,C,S,v]);return F.useEffect(()=>{if(a){setTimeout(()=>{g(1),y(!0)},0);return}if(typeof c=="number"&&typeof f=="number"&&f>0){setTimeout(()=>{g(0),y(!1)},0);const A=setTimeout(()=>{g(1),setTimeout(()=>y(!0),b)},50);return()=>clearTimeout(A)}setTimeout(()=>{g(0),y(!1)},0);const $=setTimeout(()=>{g(1),setTimeout(()=>y(!0),b)},50);return()=>clearTimeout($)},[t,e.length,r,a,c,f,b]),d.jsxs(I,{sx:{width:"100%",p:"24px 0 0 0"},children:[d.jsx(I,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map(($,A)=>d.jsxs(I,{sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[d.jsx(yN,{active:A===t,completed:A<t,showBlue:A===0&&o||A===1&&n&&(p||u)||A===2&&s}),d.jsx("span",{style:{fontWeight:A===t?700:400,color:A<=t?"#222":"#9ca3af",fontSize:16,marginTop:8},children:$})]},$))}),d.jsx(I,{sx:{px:4,mt:1,mb:0},children:d.jsx(I,{sx:{marginLeft:`${w}%`,width:`${S}%`},children:d.jsx(Ng,{variant:"progress",steps:O+1,position:"static",activeStep:P,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},bN=e=>e.dashboard?.companyId||"";function vN(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const xN=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,o]=F.useState(null),s=bt(),a=lt(),l=Ae(bN),[c,f]=F.useState(!1);F.useEffect(()=>{let A,B;return setTimeout(()=>{f(!1),A=setTimeout(()=>{B=setTimeout(()=>f(!0),600)},100)},0),()=>{A&&clearTimeout(A),B&&clearTimeout(B)}},[]);const[u,h]=F.useState(!1),b=localStorage.getItem("selectedSyncMethod")||"sftp",[m,g]=F.useState(`${b}:`),[p,y]=F.useState(""),[x,w]=F.useState(""),S=Wt(),v=Ae(A=>A.productSettings?.loading||!1),C=Ae(A=>A.productSettings?.error||null),O=Yt();em(O.breakpoints.up("lg"));const P=Ae(A=>A.productSettings.syncData);F.useEffect(()=>{const A=s.state?.ftpConfig,B=s.state?.tenantIntegrationData;if(P&&P.serverAddress){setTimeout(()=>{g(P.serverAddress||""),y(P.configs&&P.configs.username||""),w(P.configs&&P.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const L=t.type||"sftp",T=t.host||"",N=t.port||"",_=t.path||"",D=`${L}://${T}${N?`:${N}`:""}${_?`/${_}`:""}`;setTimeout(()=>{g(D),y(t.username||""),w(t.password||"")},0);return}if(B&&B.configs){const L=B.configs,T=L.type||B.type||"sftp",N=L.host||"",_=L.port||"",D=L.path||"",k=`${T}://${N}:${_}/${D}`,z=L.username||"",M=L.password||"";setTimeout(()=>{g(k),y(z),w(M)},0);return}if(A){const T=`${A.type||"sftp"}://${A.host}:${A.port}/${A.path}`,N=A.username||"",_=A.password||"";setTimeout(()=>{g(T),y(N),w(_)},0)}},[s.state,P,t]);const $=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:A,host:B,port:L,path:T}=vN(m),N=await S(mo({serverAddress:m,username:p,password:x,companyId:l}));if(!mo.fulfilled.match(N))return;const _=N.payload;if(s.state?.fromSettingsIcon){const z=_?.entity_type||r?.entity_type||"products",M={...r||{},companyId:l,tenantId:l,type:A,configs:{host:B,port:Number(L),path:T,username:p,password:x,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:z,mappings:r?.mappings||_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(M,null,2)),o(M),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:M}});return}const D=_?.entity_type||"",k={tenantId:l,type:A,configs:{host:B,port:Number(L),path:T,username:p,password:x,sync_frequency:"",sync_time:""},entity_type:D||"products",mappings:_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(k,null,2)),S(es(k)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(k)),e.onNext&&e.onNext({putjson:k})};return d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),d.jsxs(I,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(ba,{...n,showSetupFtpBlueTick:c}),d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsx(I,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:d.jsxs(I,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[d.jsx(W,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),d.jsxs(I,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),d.jsx("input",{type:"text",value:m,onChange:A=>g(A.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),d.jsx("input",{type:"text",value:p,onChange:A=>y(A.target.value),placeholder:"Enter username",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16,position:"relative"},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),d.jsx("input",{type:u?"text":"password",value:x,onChange:A=>w(A.target.value),placeholder:"Enter password",style:{width:"82%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),d.jsx(It,{"aria-label":"toggle password visibility",onClick:()=>h(A=>!A),edge:"end",tabIndex:-1,style:{position:"absolute",right:24,top:"65%",transform:"translateY(-50%)",zIndex:2},children:u?d.jsx(mN,{}):d.jsx(gN,{})})]}),d.jsxs(I,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[d.jsx(Ve,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),d.jsx(Ve,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:$,disabled:v,children:v?"Loading...":"Next"})]}),C&&d.jsx(W,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]})},SN=e=>e.productSettings.ftpColumns||[],wN=e=>e.productSettings.preview||[],CN=e=>e.productSettings.loading,EN=e=>e.productSettings.error,TN=e=>e.productSettings.existingMapping,ON=e=>e.productSettings.entity_type||"products",PN=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:o={}}=e,s=bt(),a=lt(),l=s.state?.fromSettingsIcon,[c,f]=F.useState(()=>{if(s.state?.putjson)return s.state.putjson;const D=window.localStorage.getItem("ftpSyncPutjson");return D?JSON.parse(D):t.length>0?{mappings:t}:null}),[u,h]=F.useState([]),[b,m]=F.useState({}),g=Ae(SN),p=Ae(wN),y=Ae(CN),x=Ae(EN),w=Ae(TN),S=Ae(ON),v=F.useRef(y);F.useEffect(()=>{y&&!v.current&&queueMicrotask(()=>m({})),v.current=y},[y]);const C=F.useRef(!1);F.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>m({}))):C.current=!1},[w]);const O=Wt();F.useEffect(()=>{async function D(){try{let k=[];if(w?.mappings?.length>0){const z=w.mappings.map(M=>M.target_field).filter(M=>M&&typeof M=="string");k=[...new Set(z)]}try{const z=await O(vo(S));vo.fulfilled.match(z)&&Array.isArray(z.payload)&&z.payload.filter(R=>R&&typeof R=="string").forEach(R=>{k.includes(R)||k.push(R)})}catch{}if(t&&t.length>0){const z=t.map(M=>M.target_field).filter(M=>M&&typeof M=="string"&&!k.includes(M));z.length>0&&(k=[...k,...z])}k=k.filter(z=>z&&typeof z=="string"),h(k)}catch{if(w?.mappings?.length>0){const k=w.mappings.map(M=>M.target_field).filter(M=>M&&typeof M=="string"),z=[...new Set(k)];h(z)}else h([])}}(S||w?.mappings?.length>0||t&&t.length>0)&&D()},[S,w,t,O]);const P=F.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const D=w.mappings.map(k=>k.source_field).filter(k=>k);if(D.length>0)return D}return g&&g.length>0?g:[]},[w,g]),$=F.useMemo(()=>p.filter(k=>Object.keys(k).length>0),[p]),A=F.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const D={};return w.mappings.forEach(k=>{k.source_field&&k.target_field&&(D[k.source_field]=k.target_field)}),D}return{}},[w]),L=w?.mappings?.length>0?{...A,...b}:{...b},T=Yt();em(T.breakpoints.up("lg"));const N=Ae(D=>D.productSettings.syncData),_=()=>{const D=P.map(R=>({source_field:R||"",target_field:L[R]||""})).filter(R=>R.source_field&&R.target_field);if(D.length===0)return;if(l&&c){const R={...c,tenantId:c.tenantId||c.companyId,type:c.type||N.type||"sftp",entity_type:c.entity_type||N.entity_type||"products",mappings:D};f(R),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(R)),r?r({fromSettingsIcon:!0,putjson:R}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:R});return}const k=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),z=N.companyId||k.companyId||k.tenantId||"",M={...k,companyId:z,tenantId:z,type:N.type||k.type||"sftp",integration_type:N.integration_type||k.integration_type||"",entity_type:k.entity_type||N.entity_type||"products",configs:N.configs||k.configs||{},ftp_columns:P,preview:$,mappings:D};O(es(M)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),r?r({putjson:M}):e.onNext&&e.onNext({putjson:M})};return d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),d.jsxs(I,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ba,{...o}),d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:d.jsxs(Kt,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[d.jsxs(I,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(I,{children:[d.jsx(W,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),d.jsx(W,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),d.jsxs(I,{children:[d.jsx(Ve,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),d.jsx(Ve,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:_,children:"Next"})]})]}),d.jsx(Gg,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:y?d.jsx(I,{sx:{p:3,textAlign:"center"},children:"Loading..."}):x?d.jsx(I,{sx:{p:3,color:"red",textAlign:"center"},children:x}):P.length===0?d.jsx(I,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):d.jsxs(qg,{size:"small",children:[d.jsxs(Xg,{children:[d.jsxs(pi,{children:[d.jsx(Vn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),P.map((D,k)=>d.jsx(Vn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:D},D+k))]}),d.jsxs(pi,{children:[d.jsx(Vn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),P.map((D,k)=>d.jsx(Vn,{sx:{background:"#fafafa",borderBottom:"none"},children:d.jsxs(Ur,{value:L[D]||"",onChange:z=>m(M=>({...M,[D]:z.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[d.jsx(Jt,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:d.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),u.map(z=>d.jsx(Jt,{value:z,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:z},z))]})},k))]})]}),d.jsx(Kg,{children:$.length>0?$.map((D,k)=>d.jsxs(pi,{children:[d.jsx(Vn,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:k===0?"Data preview":""}),P.map((z,M)=>d.jsx(Vn,{sx:{background:"#fff",borderBottom:"none"},children:D[z]||""},M))]},k)):d.jsx(pi,{children:d.jsx(Vn,{colSpan:P.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},kN=e=>e.dashboard?.companyId||"",NN=e=>e.dashboard?.integrationData||null,IN=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,o=bt(),s=lt(),a=Wt(),l=Ae(kN),c=Ae(NN),f=o.state?.fromSettingsIcon,[u,h]=F.useState(()=>{if(o.state?.putjson){const M=JSON.parse(JSON.stringify(o.state.putjson));return M.mappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}const z=window.localStorage.getItem("ftpSyncPutjson");if(z){const M=JSON.parse(z);return M.mappings&&!M.originalMappings&&(M.originalMappings=JSON.parse(JSON.stringify(M.mappings))),M.configs?.sync_frequency&&!M.originalSyncFrequency&&(M.originalSyncFrequency=M.configs.sync_frequency),M.configs?.sync_time&&!M.originalSyncTime&&(M.originalSyncTime=M.configs.sync_time),M}return null});F.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[b,m]=F.useState(null),[g,p]=F.useState(null);F.useEffect(()=>{const z=o.state?.fromProductSetting;let M=null;if(z&&o.state?.integrationData)M=o.state.integrationData;else if(c&&Object.keys(c).length>0)M=c;else if(l&&!z){a(wt(l)).then(R=>{if(wt.fulfilled.match(R)){const j=R.payload;if(M=j&&j.data&&j.data[0]||null,M){m(M);const V=M.id||M.channelId||null;V&&p(V)}}});return}if(M){m(M);const R=M.id||M.channelId||null;R&&p(R)}},[l,o.state,c,a]);const y=!!f||!!b,x=z=>{if(!z)return"";const M=z.charAt(0).toUpperCase()+z.slice(1).toLowerCase();return M==="Daily"||M==="Day"?"Daily":M==="Weekly"||M==="Week"?"Weekly":M==="Monthly"||M==="Month"?"Monthly":M},[w,S]=F.useState(()=>{if(t)return x(t);const z=u?.configs?.sync_frequency?x(u.configs.sync_frequency):"";return z||"Daily"}),[v,C]=F.useState(n||u&&u.configs?.sync_time||"");F.useEffect(()=>{async function z(){if(l)try{const M=o.state?.fromProductSetting;let R=null;if(M&&o.state?.integrationData)R=o.state.integrationData;else if(c&&Object.keys(c).length>0)R=c;else{const j=await a(wt(l));if(wt.fulfilled.match(j)){const V=j.payload;R=V&&V.data&&V.data[0]||null}}if(R){const j=R.id||R.channelId||null;j&&p(j);const V=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),K={...R,companyId:R.companyId||l,entity_type:R.entity_type||V?.entity_type||"product",mappings:R.mappings||V?.mappings||[]},Z=R.configs?.sync_frequency||"",Q=R.configs?.sync_time||"",G=x(Z);if(h(K),M){if(t){const J=x(t);S(J)}n&&C(n),h(J=>({...J,...K,originalSyncFrequency:t?x(t):J.originalSyncFrequency||G,originalSyncTime:n||J.originalSyncTime||Q,configs:{...K.configs,sync_frequency:t?x(t).toLowerCase():K.configs?.sync_frequency,sync_time:n||K.configs?.sync_time}}))}else{const J=t?x(t):"";if(J)S(J);else if(G)S(G);else if(V?.configs?.sync_frequency){const ne=x(V.configs.sync_frequency);S(ne)}else S("Daily");n?C(n):Q?C(Q):V?.configs?.sync_time?C(V.configs.sync_time):C(""),h(K),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(K))}}}catch{const M=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&M?.configs?.sync_frequency?S(x(M.configs.sync_frequency)):t&&S(x(t)),!n&&M?.configs?.sync_time?C(M.configs.sync_time):n&&C(n)}}z()},[l]),F.useEffect(()=>{if(t){const z=x(t);S(z),u&&u.configs?.sync_frequency!==z&&h(M=>{const R={...M,configs:{...M.configs,sync_frequency:z}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(R)),R})}},[t]),F.useEffect(()=>{n&&(C(n),u&&u.configs?.sync_time!==n&&h(z=>{const M={...z,configs:{...z.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(M)),M}))},[n]),F.useEffect(()=>{if(u&&y&&(w||v)){const z=u.configs?.sync_frequency,M=u.configs?.sync_time;(z!==w||M!==v)&&h(R=>{const j={...R,configs:{...R.configs,sync_frequency:w||R.configs?.sync_frequency,sync_time:v||R.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j})}},[w,v,y]);const O=Ae(z=>z.productSettings.syncData),P=z=>{const M=z.target.value;S(M),u&&h(R=>{const j={...R,configs:{...R.configs,sync_frequency:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),y||a(es({...O,configs:{...O&&O.configs||{},sync_frequency:M,sync_time:v}}))},$=z=>{const M=z.target.value;C(M),u&&h(R=>{const j={...R,configs:{...R.configs,sync_time:M}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(j)),j}),y||a(es({...O,configs:{...O&&O.configs||{},sync_frequency:w,sync_time:M}}))};function A(z){try{const M=new URL(z);return{type:M.protocol.replace(":",""),host:M.hostname,port:M.port,path:M.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[B,L]=F.useState(!1),[T,N]=F.useState(""),_=async()=>{const z=o.state?.fromProductSetting;if(y){if(!u){N("Update failed: missing data."),L(!0);return}let H={...u};u.originalMappings||(H.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],h(H)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(H.originalSyncFrequency=u.configs.sync_frequency||"",h(H)),!u.originalSyncTime&&u.configs?.sync_time&&(H.originalSyncTime=u.configs.sync_time||"",h(H));const de=JSON.parse(JSON.stringify(u.mappings||[])),oe=JSON.parse(JSON.stringify(u.originalMappings||[]));let me,Ue;z?(me=t?x(t):"",Ue=n||""):(me=u.originalSyncFrequency||u.configs?.sync_frequency||"",Ue=u.originalSyncTime||u.configs?.sync_time||"",me=x(me));const ze=z?!1:JSON.stringify(de)!==JSON.stringify(oe),we=w!==me,Re=v!==Ue,He=(we||Re)&&!ze,Ie=ze;if(He){const te=g||u?.id||u?.channelId||o.state?.integrationData?.id||o.state?.integrationData?.channelId;if(!te){N("Channel ID is missing. Please try again."),L(!0);return}const tt={configs:{}};we&&(tt.configs.sync_frequency=w.toLowerCase()),Re&&(tt.configs.sync_time=v);try{const Se=await a(xo({channelId:te,data:tt}));if(Se.error||xo.rejected.match(Se)){const Le=Se.payload||Se.error?.message||"Update failed. Please try again.";N(Le),L(!0);return}let Xe="";we&&!Re?Xe="SyncFrequency Updated":!we&&Re?Xe="SyncTime Updated":we&&Re&&(Xe="SyncTime and SyncFrequency Updated"),N(Xe),L(!0),h(Le=>{const st={...Le,configs:{...Le.configs,sync_frequency:w.toLowerCase(),sync_time:v},originalSyncFrequency:w,originalSyncTime:v};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(st)),st});const je=o.state?.fromProductSetting;je&&l&&await a(wt(l)),setTimeout(()=>{je&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Se){const Xe=Se?.message||Se?.response?.data?.message||"Update failed. Please try again.";N(Xe),L(!0);return}}if(Ie){const te={...u,configs:{...u.configs,sync_frequency:w.toLowerCase(),sync_time:v}};h(te),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(te));const tt=te.tenantId||te.companyId;if(!te.configs){N("Configuration error. Please try again."),L(!0);return}const Se=te.entity_type||u?.entity_type;if(!Se){N("Entity type is missing. Please try again."),L(!0);return}const Xe={tenantId:tt,type:te.type,entity_type:Se,configs:{host:te.configs.host||"",port:te.configs.port?Number(te.configs.port):0,username:te.configs.username||"",password:te.configs.password||"",path:te.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:v||""},mappings:(te.mappings||[]).map(je=>({source_field:je.source_field,target_field:je.target_field}))};if(!Xe.tenantId){N("Tenant ID is missing. Please try again."),L(!0);return}if(!Xe.type){N("Sync type is missing. Please try again."),L(!0);return}if(!Xe.entity_type){N("Entity type is missing. Please try again."),L(!0);return}try{const je=await a(Cr(Xe));if(Cr.rejected.match(je)){const Le=je.payload||je.error?.message||"Update failed. Please try again.";N(Le),L(!0);return}Cr.fulfilled.match(je)?(h(Le=>{const st={...Le,originalSyncFrequency:w,originalSyncTime:v,originalMappings:JSON.parse(JSON.stringify(Le.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(st)),st}),N("Sync Update Successfully"),L(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(N("Update failed. Please try again."),L(!0))}catch(je){const Le=je?.message||je?.response?.data?.message||"Update failed. Please try again.";N(Le),L(!0)}}else N("No changes detected."),L(!0);return}const M=O.configs||{},R=A(O.serverAddress||""),j=M.host||R.host,V=M.port!=null?Number(M.port):parseInt(R.port,10),K=(M.path||R.path||"").replace(/^\//,""),Z=O.type||R.type||"sftp",Q=O.username||M.username||"",G=O.password||M.password||"",J=w||M.sync_frequency||"",ne=typeof J=="string"?J.toLowerCase():J;let re=v||M.sync_time||"";if(typeof re=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(re.trim())){const[H,de]=re.trim().split(/\s+/),[oe,me]=H.split(":").map(Number),Ue=de.toUpperCase()==="PM"&&oe!==12?oe+12:de.toUpperCase()==="AM"&&oe===12?0:oe;re=`${String(Ue).padStart(2,"0")}:${String(me).padStart(2,"0")}`}else typeof re=="string"&&(re=re.trim());const se=(O.mappings||[]).filter(H=>H.source_field&&H.target_field).map(H=>({source_field:H.source_field,target_field:H.target_field}));if(!l){N("Company ID is required. Please ensure the app is properly configured."),L(!0);return}if(!j||!V||!Q||!G||se.length===0){N("Please fill all required fields and mappings before saving."),L(!0);return}const ee=O.entity_type||"products",ae={tenantId:l,type:Z,entity_type:ee,configs:{host:j,port:Number(V),username:Q,password:G,path:K,sync_frequency:ne,sync_time:re},mappings:se};try{const H=await a(yo(ae));yo.fulfilled.match(H)?(N("Save and Start Sync Updated Successfully"),L(!0),e.onNext&&e.onNext()):(N(H?.payload||"Save failed. Please try again."),L(!0))}catch{N("Save failed. Please try again."),L(!0)}},[D,k]=F.useState(!1);return F.useEffect(()=>{const z=setTimeout(()=>k(!0),850);return()=>clearTimeout(z)},[]),d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),d.jsxs(I,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ba,{...r,showStartSyncBlueTick:D}),d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:d.jsxs(Kt,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[d.jsxs(I,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[d.jsxs(I,{sx:{flex:1},children:[d.jsx(W,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),d.jsxs(Ur,{size:"small",value:w,onChange:P,sx:{minWidth:100,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},children:[d.jsx(Jt,{value:"Daily",children:"Daily"}),d.jsx(Jt,{value:"Weekly",children:"Weekly"}),d.jsx(Jt,{value:"Monthly",children:"Monthly"})]})]}),d.jsxs(I,{sx:{flex:1},children:[d.jsx(W,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),d.jsx(ga,{type:"time",size:"small",value:v,onChange:$,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),d.jsxs(I,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[d.jsx(Ve,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:130,fontWeight:500,textTransform:"none",fontSize:11,height:28,bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),d.jsx(Ve,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",fontSize:11,height:28,boxShadow:"none",flex:y?1:"initial"},onClick:_,children:y&&(o.state?.fromSyncSetting||o.state?.editMode)?"Save":y?"Update Sync":"Save and Start Sync"})]}),d.jsx(ci,{open:B,autoHideDuration:4e3,onClose:()=>L(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},AN=e=>{const{onBack:t,stepperProps:n={}}=e,r=Wt(),s=!!Ae(f=>f.productSettings.saveResult),[a,l]=F.useState(s),c=lt();return F.useEffect(()=>{s&&(l(!0),r(yx()))},[s,r]),d.jsxs(d.Fragment,{children:[d.jsx(ci,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(Un,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>c("/products/settings/ftp-sync",{state:{step:3}}))}),d.jsxs(I,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ba,{...n}),d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsxs(I,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[d.jsx(I,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:d.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),d.jsx(W,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),d.jsx(Ve,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>c("/"),children:"Back to all products"})]})})]})]}),d.jsx(ci,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function _N(e){const t=bt(),n=lt(),r=t.state?.fromProductSetting?3:0,[o,s]=F.useState(r),a=Wt(),{companyId:l,integrationData:c}=Ae(v=>v.dashboard),f=t.state?.fromSyncStep;F.useEffect(()=>{const v=t.state?.fromProductSetting;l&&!v&&a(wt(l))},[l,a,t.state]);const u=()=>{s(v=>Math.min(v+1,4))},h=()=>{if(o===0&&f!==void 0){n("/product-setting",{state:{fromSyncStep:f,tenantIntegrationMatched:f===3}});return}if(t.state?.fromProductSetting&&o===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(v=>Math.max(v-1,0))},b=c?.configs||{},m=c?.mappings||c?.dataMappings||[],p=(v=>{if(!v)return"";const C=v.charAt(0).toUpperCase()+v.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(c?.configs?.sync_frequency||""),y=c?.configs?.sync_time||"",x=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],S={0:{steps:x,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:x,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:x,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(o){case 0:return d.jsx(rN,{onNext:u,onBack:h,stepperProps:S[0],...e});case 1:return d.jsx(xN,{onNext:u,onBack:h,ftpDetails:b,stepperProps:S[1],...e});case 2:return d.jsx(PN,{onNext:u,onBack:h,mapping:m,stepperProps:S[2],...e});case 3:return d.jsx(IN,{onNext:u,onBack:h,syncFrequency:p,syncTime:y,stepperProps:S[3],...e});case 4:return d.jsx(AN,{onBack:h,stepperProps:S[4],...e});default:return null}}function MN(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:o=10,statusById:s={},getStatus:a,onBack:l,onPageChange:c,onRowsPerPageChange:f,onEdit:u,onDelete:h}=e,b=t,m=Math.max(0,Number(n)||0),g=Math.max(0,Math.ceil(m/Math.max(1,o))-1);return d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[d.jsx(Un,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),d.jsxs(I,{sx:{maxWidth:900,mx:"auto",pt:4,pb:4},children:[d.jsxs(W,{sx:{fontWeight:700,fontSize:20,color:"#111",mb:3},children:["All Catalogs"," ",d.jsx(I,{component:"span",sx:{fontWeight:400,color:"#888",fontSize:18,ml:.5},children:n})]}),b.map(p=>d.jsxs(Kt,{elevation:0,sx:{p:2.5,mb:2,borderRadius:2,bgcolor:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:0},children:[d.jsx(hN,{sx:{color:"#666",fontSize:24,mt:.25}}),d.jsxs(I,{sx:{minWidth:0},children:[d.jsx(W,{sx:{fontWeight:700,fontSize:16,color:"#111"},children:p.name}),d.jsx(W,{sx:{color:"#888",fontSize:14,mt:.25},children:p.slug}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:2,mt:1,flexWrap:"wrap"},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(uN,{sx:{fontSize:18,color:"#888"}}),d.jsxs(W,{sx:{fontSize:14,color:"#555"},children:[p.productsCount," Products"]})]}),d.jsx(I,{sx:{display:"flex",alignItems:"center",gap:.75}})]}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:2,mt:.5,flexWrap:"wrap"},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(fN,{sx:{fontSize:18,color:"#888"}}),d.jsxs(W,{sx:{fontSize:14,color:"#555"},children:["By ",p.createdBy]})]}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(oN,{sx:{fontSize:18,color:"#888"}}),d.jsx(W,{sx:{fontSize:14,color:"#555"},children:p.date})]})]})]})]}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0,ml:2},children:[d.jsx(I,{sx:{minWidth:100,height:36,display:"flex",alignItems:"center",justifyContent:"center",px:.025,bgcolor:"#e8f5e9",color:"#2e7d32",fontWeight:600,fontSize:18,borderRadius:1.5},children:typeof a=="function"?a(p):s[p.id]??p.status??"Active"}),d.jsx(It,{size:"small",sx:{color:"#666"},"aria-label":"Edit catalog",onClick:()=>typeof u=="function"?u(p):null,children:d.jsx(lN,{sx:{fontSize:22}})}),d.jsx(It,{size:"small",sx:{color:"#666"},"aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(p):null,children:d.jsx(aN,{sx:{fontSize:22}})})]})]},p.id)),d.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,mt:4,flexWrap:"wrap"},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[d.jsx(W,{sx:{fontSize:14,color:"#555"},children:"Results per page"}),d.jsxs(Ur,{size:"small",value:o,onChange:p=>typeof f=="function"?f(p):null,IconComponent:gd,sx:{minWidth:56,height:36,fontSize:14,"& .MuiSelect-select":{py:1}},children:[d.jsx(Jt,{value:5,children:"5"}),d.jsx(Jt,{value:10,children:"10"}),d.jsx(Jt,{value:25,children:"25"})]})]}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(It,{size:"small",onClick:()=>typeof c=="function"?c(0):null,disabled:r===0,"aria-label":"First page",children:d.jsx(dN,{})}),d.jsx(It,{size:"small",onClick:()=>typeof c=="function"?c(Math.max(0,r-1)):null,disabled:r===0,"aria-label":"Previous page",children:d.jsx(iN,{})}),d.jsx(W,{sx:{fontSize:14,color:"#555",px:1.5},children:m===0?"0-0 of 0":`${r*o+1}-${Math.min((r+1)*o,m)} of ${m}`}),d.jsx(It,{size:"small",onClick:()=>typeof c=="function"?c(r+1):null,disabled:r>=g,"aria-label":"Next page",children:d.jsx(sN,{})}),d.jsx(It,{size:"small",onClick:()=>typeof c=="function"?c(g):null,disabled:r>=g,"aria-label":"Last page",children:d.jsx(pN,{})})]})]})]})]})}function $N(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function DN(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:$N(e.createdAt??e.date),status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function FN(e){const t=lt(),n=Wt(),{sharedCatalogues:r=[],sharedCataloguesTotal:o=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=Ae(C=>C.productSettings??{}),[l,c]=F.useState(0),[f,u]=F.useState(10),[h,b]=F.useState({});F.useEffect(()=>{n(Er({page:l+1,limit:f}))},[n,l,f]);const m=F.useMemo(()=>Array.isArray(r)?r.map(DN).filter(Boolean):[],[r]),g=o,p=C=>c(C),y=C=>{const O=Number(C.target.value);u(O),c(0)},x=(C,O)=>{b(P=>({...P,[C]:O}))},w=C=>h[C.id]??C.status,S=()=>t(-1),v=d.jsx(Un,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:S});return s&&m.length===0?d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[v,d.jsx(I,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:d.jsx(Vs,{})})]}):a&&m.length===0?d.jsxs(I,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[v,d.jsx(I,{sx:{textAlign:"center",py:4},children:d.jsx(W,{color:"error",children:a})})]}):d.jsx(MN,{catalogs:m,totalCount:g,page:l,rowsPerPage:f,statusById:h,getStatus:w,onBack:S,onPageChange:p,onRowsPerPageChange:y,onStatusChange:x,...e})}function jN({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:o}){const s=m=>t.some(g=>g.id===m.id),[a,l]=F.useState(null),[c,f]=F.useState([]),u=(m,g)=>{l(m.currentTarget),f(g)},h=()=>{l(null),f([])},b=!!a;return d.jsxs(Nn,{sx:{...e.categoryTable,bgcolor:"#f7f8fa",boxShadow:"none",borderRadius:0},children:[d.jsx(I,{sx:{bgcolor:"#808080",color:"#fff",fontWeight:600,fontSize:19,borderRadius:3,px:3,py:1.7,mb:0,letterSpacing:.5},children:o}),d.jsxs(I,{sx:{display:"flex",alignItems:"center",background:"#f7f8fa",borderBottom:"1px solid #e0e0e0",px:2.5,py:1.2,fontWeight:700,fontSize:16,color:"#666",letterSpacing:.2},children:[d.jsxs(I,{sx:{flex:2,pl:1,display:"flex",alignItems:"center",gap:12},children:[d.jsx(pn,{checked:n.length>0&&n.every(s),indeterminate:n.some(s)&&!n.every(s),onChange:()=>{n.every(s)?n.forEach(m=>r(m,o,!1)):n.forEach(m=>{s(m)||r(m,o,!0)})},sx:{p:0,mr:1,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"8px",border:"2px solid #1976d2",background:"#fff",color:"#1976d2",boxShadow:"none"},"&.Mui-checked .MuiSvgIcon-root":{background:"#e3f2fd",color:"#1976d2",border:"2px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{background:"#fff",color:"#1976d2",border:"2px solid #1976d2"}},icon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid rgb(83, 83, 83)",background:"#fff"}}),checkedIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#e3f2fd",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})})}),"Product"]}),d.jsx(I,{sx:{flex:1,textAlign:"center",ml:3},children:"Status"}),d.jsx(I,{sx:{flex:1,ml:6},children:"Price"}),d.jsx(I,{sx:{flex:1,ml:3},children:"Stock"}),d.jsx(I,{sx:{flex:2,ml:3},children:"Offer"})]}),n.map((m,g)=>{let p=[];m.offers&&Array.isArray(m.offers)?p=m.offers:m.offer&&typeof m.offer=="string"&&m.offer.includes(`
|
|
236
|
-
`)?
|
|
237
|
-
`):
|
|
228
|
+
`))}return null}),anchorOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),anchorPosition:o.shape({left:o.number.isRequired,top:o.number.isRequired}),anchorReference:o.oneOf(["anchorEl","anchorPosition","none"]),BackdropComponent:o.elementType,BackdropProps:o.object,children:o.node,classes:o.object,className:o.string,container:o.oneOfType([jn,o.func]),disableScrollLock:o.bool,elevation:ea,marginThreshold:o.number,onClose:o.func,open:o.bool.isRequired,PaperProps:o.shape({component:kc}),slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transformOrigin:o.shape({horizontal:o.oneOfType([o.oneOf(["center","left","right"]),o.number]).isRequired,vertical:o.oneOfType([o.oneOf(["bottom","center","top"]),o.number]).isRequired}),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function GP(e){return ge("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const XP={vertical:"top",horizontal:"right"},JP={vertical:"top",horizontal:"left"},QP=e=>{const{classes:t}=e;return me({root:["root"],paper:["paper"],list:["list"]},GP,t)},ZP=X(od,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),e2=X(Wg,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),t2=X(Lg,{name:"MuiMenu",slot:"List"})({outline:0}),id=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:s,className:a,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:p,open:u,PaperProps:h={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:g,...f}={},variant:m="selectedMenu",slots:y={},slotProps:w={},...x}=r,S=Qo(),C={...r,autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:g,PaperProps:h,transitionDuration:b,TransitionProps:f,variant:m},O=QP(C),P=i&&!l&&u,$=E.useRef(null),A=(W,z)=>{$.current&&$.current.adjustStyleForScrollbar(W,{direction:S?"rtl":"ltr"}),g&&g(W,z)},j=W=>{W.key==="Tab"&&(W.preventDefault(),p&&p(W,"tabKeyDown"))};let L=-1;E.Children.map(s,(W,z)=>{E.isValidElement(W)&&(process.env.NODE_ENV!=="production"&&Cc.isFragment(W)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
229
|
+
`)),W.props.disabled||(m==="selectedMenu"&&W.props.selected||L===-1)&&(L=z))});const T={slots:y,slotProps:{list:c,transition:f,paper:h,...w}},k=bn({elementType:y.root,externalSlotProps:w.root,ownerState:C,className:[O.root,a]}),[_,D]=Se("paper",{className:O.paper,elementType:e2,externalForwardedProps:T,shouldForwardComponentProp:!0,ownerState:C}),[N,B]=Se("list",{className:le(O.list,c.className),elementType:t2,shouldForwardComponentProp:!0,externalForwardedProps:T,getSlotProps:W=>({...W,onKeyDown:z=>{j(z),W.onKeyDown?.(z)}}),ownerState:C}),I=typeof T.slotProps.transition=="function"?T.slotProps.transition(C):T.slotProps.transition;return d.jsx(ZP,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?XP:JP,slots:{root:y.root,paper:_,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:k,paper:D,backdrop:typeof w.backdrop=="function"?w.backdrop(C):w.backdrop,transition:{...I,onEntering:(...W)=>{A(...W),I?.onEntering?.(...W)}}},open:u,ref:n,transitionDuration:b,ownerState:C,...x,classes:v,children:d.jsx(N,{actions:$,autoFocus:i&&(L===-1||l),autoFocusItem:P,variant:m,...B,children:s})})});process.env.NODE_ENV!=="production"&&(id.propTypes={anchorEl:o.oneOfType([jn,o.func]),autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,disableAutoFocusItem:o.bool,MenuListProps:o.object,onClose:o.func,open:o.bool.isRequired,PaperProps:o.object,PopoverClasses:o.object,slotProps:o.shape({backdrop:o.oneOfType([o.func,o.object]),list:o.oneOfType([o.func,o.object]),paper:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({backdrop:o.elementType,list:o.elementType,paper:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),transitionDuration:o.oneOfType([o.oneOf(["auto"]),o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object,variant:o.oneOf(["menu","selectedMenu"])});function n2(e){return ge("MuiMenuItem",e)}const Ti=he("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),r2=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},o2=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:s,classes:a}=e,c=me({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",s&&"selected"]},n2,a);return{...a,...c}},i2=X(ri,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:r2})(fe(({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"}},[`&.${Ti.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ti.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ti.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)}},[`&.${Ti.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ti.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Pg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Pg.inset}`]:{marginLeft:52},[`& .${ro.root}`]:{marginTop:0,marginBottom:0},[`& .${ro.inset}`]:{paddingLeft:36},[`& .${Dg.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,[`& .${Dg.root} svg`]:{fontSize:"1.25rem"}}}]}))),on=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:s="li",dense:a=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:p,role:u="menuitem",tabIndex:h,className:v,...b}=r,g=E.useContext(wi),f=E.useMemo(()=>({dense:a||g.dense||!1,disableGutters:c}),[g.dense,a,c]),m=E.useRef(null);Wt(()=>{i&&(m.current?m.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[i]);const y={...r,dense:f.dense,divider:l,disableGutters:c},w=o2(r),x=at(m,n);let S;return r.disabled||(S=h!==void 0?h:-1),d.jsx(wi.Provider,{value:f,children:d.jsx(i2,{ref:x,role:u,tabIndex:S,component:s,focusVisibleClassName:le(w.focusVisible,p),className:le(w.root,v),...b,ownerState:y,classes:w})})});process.env.NODE_ENV!=="production"&&(on.propTypes={autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,component:o.elementType,dense:o.bool,disabled:o.bool,disableGutters:o.bool,divider:o.bool,focusVisibleClassName:o.string,role:o.string,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number});function s2(e){return ge("MuiMobileStepper",e)}he("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const a2=e=>{const{classes:t,position:n}=e,r={root:["root",`position${Q(n)}`],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return me(r,s2,t)},l2=X(nn,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Q(n.position)}`]]}})(fe(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(e.vars||e).palette.background.default,padding:8,variants:[{props:({position:t})=>t==="top"||t==="bottom",style:{position:"fixed",left:0,right:0,zIndex:(e.vars||e).zIndex.mobileStepper}},{props:{position:"top"},style:{top:0}},{props:{position:"bottom"},style:{bottom:0}}]}))),c2=X("div",{name:"MuiMobileStepper",slot:"Dots"})({variants:[{props:{variant:"dots"},style:{display:"flex",flexDirection:"row"}}]}),d2=X("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>ei(e)&&e!=="dotActive",overridesResolver:(e,t)=>{const{dotActive:n}=e;return[t.dot,n&&t.dotActive]}})(fe(({theme:e})=>({variants:[{props:{variant:"dots"},style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),backgroundColor:(e.vars||e).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"}},{props:{variant:"dots",dotActive:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}))),u2=X(_g,{name:"MuiMobileStepper",slot:"Progress"})({variants:[{props:{variant:"progress"},style:{width:"50%"}}]}),Vg=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:s,className:a,LinearProgressProps:l,nextButton:c,position:p="bottom",steps:u,variant:h="dots",slots:v={},slotProps:b={},...g}=r,f={...r,activeStep:i,position:p,variant:h};let m;h==="progress"&&(u===1?m=100:m=Math.ceil(i/(u-1)*100));const y=a2(f),w={slots:v,slotProps:{progress:l,...b}},[x,S]=Se("root",{ref:n,elementType:l2,shouldForwardComponentProp:!0,className:le(y.root,a),externalForwardedProps:{...w,...g},ownerState:f,additionalProps:{square:!0,elevation:0}}),[C,O]=Se("dots",{className:y.dots,elementType:c2,externalForwardedProps:w,ownerState:f}),[P,$]=Se("dot",{elementType:d2,externalForwardedProps:w,ownerState:f}),[A,j]=Se("progress",{className:y.progress,elementType:u2,shouldForwardComponentProp:!0,externalForwardedProps:w,ownerState:f,additionalProps:{value:m,variant:"determinate"}});return d.jsxs(x,{...S,children:[s,h==="text"&&d.jsxs(E.Fragment,{children:[i+1," / ",u]}),h==="dots"&&d.jsx(C,{...O,children:[...new Array(u)].map((L,T)=>d.jsx(P,{...$,className:le(y.dot,$.className,T===i&&y.dotActive),dotActive:T===i},T))}),h==="progress"&&d.jsx(A,{...j}),c]})});process.env.NODE_ENV!=="production"&&(Vg.propTypes={activeStep:ea,backButton:o.node,classes:o.object,className:o.string,LinearProgressProps:o.object,nextButton:o.node,position:o.oneOf(["bottom","static","top"]),slotProps:o.shape({dot:o.oneOfType([o.func,o.object]),dots:o.oneOfType([o.func,o.object]),progress:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({dot:o.elementType,dots:o.elementType,progress:o.elementType,root:o.elementType}),steps:ea.isRequired,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOf(["dots","progress","text"])});function p2(e){return ge("MuiNativeSelect",e)}const sd=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),f2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Q(n)}`,s&&"iconOpen",r&&"disabled"]};return me(l,p2,t)},Ug=X("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${sd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),h2=X(Ug,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:vt,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${sd.multiple}`]:t.multiple}]}})({}),Hg=X("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${sd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),g2=X(Hg,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})({}),qg=E.forwardRef(function(t,n){const{className:r,disabled:i,error:s,IconComponent:a,inputRef:l,variant:c="standard",...p}=t,u={...t,disabled:i,variant:c,error:s},h=f2(u);return d.jsxs(E.Fragment,{children:[d.jsx(h2,{ownerState:u,className:le(h.select,r),disabled:i,ref:l||n,...p}),t.multiple?null:d.jsx(g2,{as:a,ownerState:u,className:h.icon})]})});process.env.NODE_ENV!=="production"&&(qg.propTypes={children:o.node,classes:o.object,className:o.string,disabled:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:wt,multiple:o.bool,name:o.string,onChange:o.func,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});var Yg;const m2=X("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:vt})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),y2=X("legend",{name:"MuiNotchedOutlined",shouldForwardProp:vt})(fe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function Kg(e){const{children:t,classes:n,className:r,label:i,notched:s,...a}=e,l=i!=null&&i!=="",c={...e,notched:s,withLabel:l};return d.jsx(m2,{"aria-hidden":!0,className:r,ownerState:c,...a,children:d.jsx(y2,{ownerState:c,children:l?d.jsx("span",{children:i}):Yg||(Yg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}process.env.NODE_ENV!=="production"&&(Kg.propTypes={children:o.node,classes:o.object,className:o.string,label:o.node,notched:o.bool.isRequired,style:o.object});const b2=e=>{const{classes:t}=e,r=me({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AT,t);return{...t,...r}},v2=X(ha,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:pa})(fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${xn.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${xn.focused} .${xn.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ot()).map(([n])=>({props:{color:n},style:{[`&.${xn.focused} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${xn.error} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${xn.disabled} .${xn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),x2=X(Kg,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),S2=X(ga,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:fa})(fe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Oa=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:s=!1,inputComponent:a="input",label:l,multiline:c=!1,notched:p,slots:u={},slotProps:h={},type:v="text",...b}=r,g=b2(r),f=vn(),m=Qn({props:r,muiFormControl:f,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:f,fullWidth:s,hiddenLabel:m.hiddenLabel,multiline:c,size:m.size,type:v},w=u.root??i.Root??v2,x=u.input??i.Input??S2,[S,C]=Se("notchedOutline",{elementType:x2,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:h},additionalProps:{label:l!=null&&l!==""&&m.required?d.jsxs(E.Fragment,{children:[l," ","*"]}):l}});return d.jsx(pi,{slots:{root:w,input:x},slotProps:h,renderSuffix:O=>d.jsx(S,{...C,notched:typeof p<"u"?p:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:s,inputComponent:a,multiline:c,ref:n,type:v,...b,classes:{...g,notchedOutline:null}})});process.env.NODE_ENV!=="production"&&(Oa.propTypes={autoComplete:o.string,autoFocus:o.bool,classes:o.object,color:o.oneOfType([o.oneOf(["primary","secondary"]),o.string]),components:o.shape({Input:o.elementType,Root:o.elementType}),defaultValue:o.any,disabled:o.bool,endAdornment:o.node,error:o.bool,fullWidth:o.bool,id:o.string,inputComponent:o.elementType,inputProps:o.object,inputRef:wt,label:o.node,margin:o.oneOf(["dense","none"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,notched:o.bool,onChange:o.func,placeholder:o.string,readOnly:o.bool,required:o.bool,rows:o.oneOfType([o.number,o.string]),slotProps:o.shape({input:o.object,notchedOutline:o.oneOfType([o.func,o.object]),root:o.object}),slots:o.shape({input:o.elementType,notchedOutline:o.elementType,root:o.elementType}),startAdornment:o.node,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any}),Oa.muiName="Input";const w2=Ge(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),C2=Ge(d.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),E2=X("span",{name:"MuiRadioButtonIcon",shouldForwardProp:vt})({position:"relative",display:"flex"}),T2=X(w2,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),O2=X(C2,{name:"MuiRadioButtonIcon"})(fe(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function ad(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return d.jsxs(E2,{className:n.root,ownerState:i,children:[d.jsx(T2,{fontSize:r,className:n.background,ownerState:i}),d.jsx(O2,{fontSize:r,className:n.dot,ownerState:i})]})}process.env.NODE_ENV!=="production"&&(ad.propTypes={checked:o.bool,classes:o.object,fontSize:o.oneOf(["small","medium"])});const ld=E.createContext(void 0);process.env.NODE_ENV!=="production"&&(ld.displayName="RadioGroupContext");function P2(){return E.useContext(ld)}function k2(e){return ge("MuiRadio",e)}const Gg=he("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),N2=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${Q(n)}`,r!=="medium"&&`size${Q(r)}`]};return{...t,...me(i,k2,t)}},I2=X(ba,{shouldForwardProp:e=>vt(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${Q(n.size)}`],t[`color${Q(n.color)}`]]}})(fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${Gg.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${Gg.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function A2(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const M2=d.jsx(ad,{checked:!0}),_2=d.jsx(ad,{}),oo=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiRadio"}),{checked:i,checkedIcon:s=M2,color:a="primary",icon:l=_2,name:c,onChange:p,size:u="medium",className:h,disabled:v,disableRipple:b=!1,slots:g={},slotProps:f={},inputProps:m,...y}=r,w=vn();let x=v;w&&typeof x>"u"&&(x=w.disabled),x??=!1;const S={...r,disabled:x,disableRipple:b,color:a,size:u},C=N2(S),O=P2();let P=i;const $=wc(p,O&&O.onChange);let A=c;O&&(typeof P>"u"&&(P=A2(O.value,r.value)),typeof A>"u"&&(A=O.name));const j=f.input??m,[L,T]=Se("root",{ref:n,elementType:I2,className:le(C.root,h),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:f,...y},getSlotProps:k=>({...k,onChange:(_,...D)=>{k.onChange?.(_,...D),$(_,...D)}}),ownerState:S,additionalProps:{type:"radio",icon:E.cloneElement(l,{fontSize:l.props.fontSize??u}),checkedIcon:E.cloneElement(s,{fontSize:s.props.fontSize??u}),disabled:x,name:A,checked:P,slots:g,slotProps:{input:typeof j=="function"?j(S):j}}});return d.jsx(L,{...T,classes:C})});process.env.NODE_ENV!=="production"&&(oo.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),disabled:o.bool,disableRipple:o.bool,icon:o.node,id:o.string,inputProps:o.object,inputRef:wt,name:o.string,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});function $2(e){return ge("MuiRadioGroup",e)}he("MuiRadioGroup",["root","row","error"]);const D2=e=>{const{classes:t,row:n,error:r}=e;return me({root:["root",n&&"row",r&&"error"]},$2,t)},Pa=E.forwardRef(function(t,n){const{actions:r,children:i,className:s,defaultValue:a,name:l,onChange:c,value:p,...u}=t,h=E.useRef(null),v=D2(t),[b,g]=Yr({controlled:p,default:a,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let w=h.current.querySelector("input:not(:disabled):checked");w||(w=h.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const f=at(n,h),m=ur(l),y=E.useMemo(()=>({name:m,onChange(w){g(w.target.value),c&&c(w,w.target.value)},value:b}),[m,c,g,b]);return d.jsx(ld.Provider,{value:y,children:d.jsx(kg,{role:"radiogroup",ref:f,className:le(v.root,s),...u,children:i})})});process.env.NODE_ENV!=="production"&&(Pa.propTypes={children:o.node,className:o.string,defaultValue:o.any,name:o.string,onChange:o.func,value:o.any});const F2={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Xg(e){return ge("MuiSelect",e)}const Oi=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Jg;const j2=X(Ug,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Oi.select}`]:t.select},{[`&.${Oi.select}`]:t[n.variant]},{[`&.${Oi.error}`]:t.error},{[`&.${Oi.multiple}`]:t.multiple}]}})({[`&.${Oi.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),L2=X(Hg,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Q(n.variant)}`],n.open&&t.iconOpen]}})({}),z2=X("input",{shouldForwardProp:e=>ei(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Qg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function B2(e){return e==null||typeof e=="string"&&!e.trim()}const R2=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:s,error:a}=e,l={select:["select",n,r&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${Q(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return me(l,Xg,t)},Zg=E.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:s,autoWidth:a,children:l,className:c,defaultOpen:p,defaultValue:u,disabled:h,displayEmpty:v,error:b=!1,IconComponent:g,inputRef:f,labelId:m,MenuProps:y={},multiple:w,name:x,onBlur:S,onChange:C,onClose:O,onFocus:P,onKeyDown:$,onMouseDown:A,onOpen:j,open:L,readOnly:T,renderValue:k,required:_,SelectDisplayProps:D={},tabIndex:N,type:B,value:I,variant:W="standard",...z}=t,[R,Y]=Yr({controlled:I,default:u,name:"Select"}),[te,G]=Yr({controlled:L,default:p,name:"Select"}),q=E.useRef(null),J=E.useRef(null),[oe,re]=E.useState(null),{current:ie}=E.useRef(L!=null),[ee,ce]=E.useState(),H=at(n,f),de=E.useCallback(pe=>{J.current=pe,pe&&re(pe)},[]),se=oe?.parentNode;E.useImperativeHandle(H,()=>({focus:()=>{J.current.focus()},node:q.current,value:R}),[R]),E.useEffect(()=>{p&&te&&oe&&!ie&&(ce(a?null:se.clientWidth),J.current.focus())},[oe,a]),E.useEffect(()=>{s&&J.current.focus()},[s]),E.useEffect(()=>{if(!m)return;const pe=ct(J.current).getElementById(m);if(pe){const Ie=()=>{getSelection().isCollapsed&&J.current.focus()};return pe.addEventListener("click",Ie),()=>{pe.removeEventListener("click",Ie)}}},[m]);const ve=(pe,Ie)=>{pe?j&&j(Ie):O&&O(Ie),ie||(ce(a?null:se.clientWidth),G(pe))},Be=pe=>{A?.(pe),pe.button===0&&(pe.preventDefault(),J.current.focus(),ve(!0,pe))},Te=pe=>{ve(!1,pe)},Ne=E.Children.toArray(l),je=pe=>{const Ie=Ne.find(et=>et.props.value===pe.target.value);Ie!==void 0&&(Y(Ie.props.value),C&&C(pe,Ie))},Re=pe=>Ie=>{let et;if(Ie.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(R)?R.slice():[];const Tn=R.indexOf(pe.props.value);Tn===-1?et.push(pe.props.value):et.splice(Tn,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(Ie),R!==et&&(Y(et),C)){const Tn=Ie.nativeEvent||Ie,Je=new Tn.constructor(Tn.type,Tn);Object.defineProperty(Je,"target",{writable:!0,value:{value:et,name:x}}),C(Je,pe)}w||ve(!1,Ie)}},Me=pe=>{T||([" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),ve(!0,pe)),$?.(pe))},ae=oe!==null&&te,Ke=pe=>{!ae&&S&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:R,name:x}}),S(pe))};delete z["aria-invalid"];let Pe,ne;const Z=[];let ue=!1,xe=!1;(ua({value:R})||v)&&(k?Pe=k(R):ue=!0);const Ce=Ne.map(pe=>{if(!E.isValidElement(pe))return null;process.env.NODE_ENV!=="production"&&Cc.isFragment(pe)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
230
|
+
`));let Ie;if(w){if(!Array.isArray(R))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":cn(2));Ie=R.some(et=>Qg(et,pe.props.value)),Ie&&ue&&Z.push(pe.props.children)}else Ie=Qg(R,pe.props.value),Ie&&ue&&(ne=pe.props.children);return Ie&&(xe=!0),E.cloneElement(pe,{"aria-selected":Ie?"true":"false",onClick:Re(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:Ie,value:void 0,"data-value":pe.props.value})});process.env.NODE_ENV!=="production"&&E.useEffect(()=>{if(!xe&&!w&&R!==""){const pe=Ne.map(Ie=>Ie.props.value);console.warn([`MUI: You have provided an out-of-range value \`${R}\` for the select ${x?`(name="${x}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${pe.filter(Ie=>Ie!=null).map(Ie=>`\`${Ie}\``).join(", ")||'""'}.`].join(`
|
|
231
|
+
`))}},[xe,Ne,w,x,R]),ue&&(w?Z.length===0?Pe=null:Pe=Z.reduce((pe,Ie,et)=>(pe.push(Ie),et<Z.length-1&&pe.push(", "),pe),[]):Pe=ne);let we=ee;!a&&ie&&oe&&(we=se.clientWidth);let ye;typeof N<"u"?ye=N:ye=h?null:0;const Ze=D.id||(x?`mui-component-select-${x}`:void 0),Ae={...t,variant:W,value:R,open:ae,error:b},dt=R2(Ae),sn={...y.PaperProps,...typeof y.slotProps?.paper=="function"?y.slotProps.paper(Ae):y.slotProps?.paper},Er={...y.MenuListProps,...typeof y.slotProps?.list=="function"?y.slotProps.list(Ae):y.slotProps?.list},tr=ur();return d.jsxs(E.Fragment,{children:[d.jsx(j2,{as:"div",ref:de,tabIndex:ye,role:"combobox","aria-controls":ae?tr:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[m,Ze].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":_?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:Me,onMouseDown:h||T?null:Be,onBlur:Ke,onFocus:P,...D,ownerState:Ae,className:le(D.className,dt.select,c),id:Ze,children:B2(Pe)?Jg||(Jg=d.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Pe}),d.jsx(z2,{"aria-invalid":b,value:Array.isArray(R)?R.join(","):R,name:x,ref:q,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:h,className:dt.nativeInput,autoFocus:s,required:_,...z,ownerState:Ae}),d.jsx(L2,{as:g,className:dt.icon,ownerState:Ae}),d.jsx(id,{id:`menu-${x||""}`,anchorEl:se,open:ae,onClose:Te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":m,role:"listbox","aria-multiselectable":w?"true":void 0,disableListWrap:!0,id:tr,...Er},paper:{...sn,style:{minWidth:we,...sn!=null?sn.style:null}}},children:Ce})]})});process.env.NODE_ENV!=="production"&&(Zg.propTypes={"aria-describedby":o.string,"aria-label":o.string,autoFocus:o.bool,autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,disabled:o.bool,displayEmpty:o.bool,error:o.bool,IconComponent:o.elementType.isRequired,inputRef:wt,labelId:o.string,MenuProps:o.object,multiple:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onClose:o.func,onFocus:o.func,onOpen:o.func,open:o.bool,readOnly:o.bool,renderValue:o.func,required:o.bool,SelectDisplayProps:o.object,tabIndex:o.oneOfType([o.number,o.string]),type:o.any,value:o.any,variant:o.oneOf(["standard","outlined","filled"])});const W2=e=>{const{classes:t}=e,r=me({root:["root"]},Xg,t);return{...t,...r}},cd={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>vt(e)&&e!=="variant"},V2=X(Ta,cd)(""),U2=X(Oa,cd)(""),H2=X(Ca,cd)(""),io=E.forwardRef(function(t,n){const r=be({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:s,classes:a={},className:l,defaultOpen:c=!1,displayEmpty:p=!1,IconComponent:u=_T,id:h,input:v,inputProps:b,label:g,labelId:f,MenuProps:m,multiple:y=!1,native:w=!1,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:P,variant:$="outlined",...A}=r,j=w?qg:Zg,L=vn(),T=Qn({props:r,muiFormControl:L,states:["variant","error"]}),k=T.variant||$,_={...r,variant:k,classes:a},D=W2(_),{root:N,...B}=D,I=v||{standard:d.jsx(V2,{ownerState:_}),outlined:d.jsx(U2,{label:g,ownerState:_}),filled:d.jsx(H2,{ownerState:_})}[k],W=at(n,vr(I));return d.jsx(E.Fragment,{children:E.cloneElement(I,{inputComponent:j,inputProps:{children:s,error:T.error,IconComponent:u,variant:k,type:void 0,multiple:y,...w?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:p,labelId:f,MenuProps:m,onClose:x,onOpen:S,open:C,renderValue:O,SelectDisplayProps:{id:h,...P}},...b,classes:b?bt(B,b.classes):B,...v?v.props.inputProps:{}},...(y&&w||p)&&k==="outlined"?{notched:!0}:{},ref:W,className:le(I.props.className,l,D.root),...!v&&{variant:k},...A})})});process.env.NODE_ENV!=="production"&&(io.propTypes={autoWidth:o.bool,children:o.node,classes:o.object,className:o.string,defaultOpen:o.bool,defaultValue:o.any,displayEmpty:o.bool,IconComponent:o.elementType,id:o.string,input:o.element,inputProps:o.object,label:o.node,labelId:o.string,MenuProps:o.object,multiple:o.bool,native:o.bool,onChange:o.func,onClose:o.func,onOpen:o.func,open:o.bool,renderValue:o.func,SelectDisplayProps:o.object,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.oneOfType([o.oneOf([""]),o.any]),variant:o.oneOf(["filled","outlined","standard"])}),io.muiName="Select";function q2(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Y2=2;function so(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function em(e,t){return e-t}function tm(e,t){const{index:n}=e.reduce((r,i,s)=>{const a=Math.abs(t-i);return r===null||a<r.distance||a===r.distance?{distance:a,index:s}:r},null)??{};return n}function ka(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Na(e,t,n){return(e-t)*100/(n-t)}function K2(e,t,n){return(n-t)*e+t}function G2(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function X2(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(G2(t)))}function nm({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(em)}function Ia({sliderRef:e,activeIndex:t,setActive:n}){const r=ct(e.current);(!e.current?.contains(r.activeElement)||Number(r?.activeElement?.getAttribute("data-index"))!==t)&&e.current?.querySelector(`[type="range"][data-index="${t}"]`).focus(),n&&n(t)}function Aa(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?q2(e,t):!1}const J2={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Q2=e=>e;let Ma;function rm(){return Ma===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ma=CSS.supports("touch-action","none"):Ma=!0),Ma}function Z2(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:s=!1,marks:a=!1,max:l=100,min:c=0,name:p,onChange:u,onChangeCommitted:h,orientation:v="horizontal",rootRef:b,scale:g=Q2,step:f=1,shiftStep:m=10,tabIndex:y,value:w}=e,x=E.useRef(void 0),[S,C]=E.useState(-1),[O,P]=E.useState(-1),[$,A]=E.useState(!1),j=E.useRef(0),L=E.useRef(null),[T,k]=Yr({controlled:w,default:n??c,name:"Slider"}),_=u&&((ne,Z,ue)=>{const xe=ne.nativeEvent||ne,Ce=new xe.constructor(xe.type,xe);Object.defineProperty(Ce,"target",{writable:!0,value:{value:Z,name:p}}),L.current=Z,u(Ce,Z,ue)}),D=Array.isArray(T);let N=D?T.slice().sort(em):[T];N=N.map(ne=>ne==null?c:qr(ne,c,l));const B=a===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map((ne,Z)=>({value:c+f*Z})):a||[],I=B.map(ne=>ne.value),[W,z]=E.useState(-1),R=E.useRef(null),Y=at(b,R),te=ne=>Z=>{const ue=Number(Z.currentTarget.getAttribute("data-index"));Xr(Z.target)&&z(ue),P(ue),ne?.onFocus?.(Z)},G=ne=>Z=>{Xr(Z.target)||z(-1),P(-1),ne?.onBlur?.(Z)},q=(ne,Z)=>{const ue=Number(ne.currentTarget.getAttribute("data-index")),xe=N[ue],Ce=I.indexOf(xe);let we=Z;if(B&&f==null){const ye=I[I.length-1];we>=ye?we=ye:we<=I[0]?we=I[0]:we=we<xe?I[Ce-1]:I[Ce+1]}if(we=qr(we,c,l),D){i&&(we=qr(we,N[ue-1]||-1/0,N[ue+1]||1/0));const ye=we;we=nm({values:N,newValue:we,index:ue});let Ze=ue;i||(Ze=we.indexOf(ye)),Ia({sliderRef:R,activeIndex:Ze})}k(we),z(ue),_&&!Aa(we,T)&&_(ne,we,ue),h&&h(ne,L.current??we)},J=ne=>Z=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Z.key)){Z.preventDefault();const ue=Number(Z.currentTarget.getAttribute("data-index")),xe=N[ue];let Ce=null;if(f!=null){const we=Z.shiftKey?m:f;switch(Z.key){case"ArrowUp":Ce=so(xe,we,1,c,l);break;case"ArrowRight":Ce=so(xe,we,s?-1:1,c,l);break;case"ArrowDown":Ce=so(xe,we,-1,c,l);break;case"ArrowLeft":Ce=so(xe,we,s?1:-1,c,l);break;case"PageUp":Ce=so(xe,m,1,c,l);break;case"PageDown":Ce=so(xe,m,-1,c,l);break;case"Home":Ce=c;break;case"End":Ce=l;break}}else if(B){const we=I[I.length-1],ye=I.indexOf(xe),Ze=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Ae=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ze.includes(Z.key)?ye===0?Ce=I[0]:Ce=I[ye-1]:Ae.includes(Z.key)&&(ye===I.length-1?Ce=we:Ce=I[ye+1])}Ce!=null&&q(Z,Ce)}ne?.onKeyDown?.(Z)};Wt(()=>{r&&R.current.contains(document.activeElement)&&document.activeElement?.blur()},[r]),r&&S!==-1&&C(-1),r&&W!==-1&&z(-1);const oe=ne=>Z=>{ne.onChange?.(Z),q(Z,Z.target.valueAsNumber)},re=E.useRef(void 0);let ie=v;s&&v==="horizontal"&&(ie+="-reverse");const ee=({finger:ne,move:Z=!1})=>{const{current:ue}=R,{width:xe,height:Ce,bottom:we,left:ye}=ue.getBoundingClientRect();let Ze;ie.startsWith("vertical")?Ze=(we-ne.y)/Ce:Ze=(ne.x-ye)/xe,ie.includes("-reverse")&&(Ze=1-Ze);let Ae;if(Ae=K2(Ze,c,l),f)Ae=X2(Ae,f,c);else{const sn=tm(I,Ae);Ae=I[sn]}Ae=qr(Ae,c,l);let dt=0;if(D){Z?dt=re.current:dt=tm(N,Ae),i&&(Ae=qr(Ae,N[dt-1]||-1/0,N[dt+1]||1/0));const sn=Ae;Ae=nm({values:N,newValue:Ae,index:dt}),i&&Z||(dt=Ae.indexOf(sn),re.current=dt)}return{newValue:Ae,activeIndex:dt}},ce=St(ne=>{const Z=ka(ne,x);if(!Z)return;if(j.current+=1,ne.type==="mousemove"&&ne.buttons===0){H(ne);return}const{newValue:ue,activeIndex:xe}=ee({finger:Z,move:!0});Ia({sliderRef:R,activeIndex:xe,setActive:C}),k(ue),!$&&j.current>Y2&&A(!0),_&&!Aa(ue,T)&&_(ne,ue,xe)}),H=St(ne=>{const Z=ka(ne,x);if(A(!1),!Z)return;const{newValue:ue}=ee({finger:Z,move:!0});C(-1),ne.type==="touchend"&&P(-1),h&&h(ne,L.current??ue),x.current=void 0,se()}),de=St(ne=>{if(r)return;rm()||ne.preventDefault();const Z=ne.changedTouches[0];Z!=null&&(x.current=Z.identifier);const ue=ka(ne,x);if(ue!==!1){const{newValue:Ce,activeIndex:we}=ee({finger:ue});Ia({sliderRef:R,activeIndex:we,setActive:C}),k(Ce),_&&!Aa(Ce,T)&&_(ne,Ce,we)}j.current=0;const xe=ct(R.current);xe.addEventListener("touchmove",ce,{passive:!0}),xe.addEventListener("touchend",H,{passive:!0})}),se=E.useCallback(()=>{const ne=ct(R.current);ne.removeEventListener("mousemove",ce),ne.removeEventListener("mouseup",H),ne.removeEventListener("touchmove",ce),ne.removeEventListener("touchend",H)},[H,ce]);E.useEffect(()=>{const{current:ne}=R;return ne.addEventListener("touchstart",de,{passive:rm()}),()=>{ne.removeEventListener("touchstart",de),se()}},[se,de]),E.useEffect(()=>{r&&se()},[r,se]);const ve=ne=>Z=>{if(ne.onMouseDown?.(Z),r||Z.defaultPrevented||Z.button!==0)return;Z.preventDefault();const ue=ka(Z,x);if(ue!==!1){const{newValue:Ce,activeIndex:we}=ee({finger:ue});Ia({sliderRef:R,activeIndex:we,setActive:C}),k(Ce),_&&!Aa(Ce,T)&&_(Z,Ce,we)}j.current=0;const xe=ct(R.current);xe.addEventListener("mousemove",ce,{passive:!0}),xe.addEventListener("mouseup",H)},Be=Na(D?N[0]:c,c,l),Te=Na(N[N.length-1],c,l)-Be,Ne=(ne={})=>{const Z=mr(ne),ue={onMouseDown:ve(Z||{})},xe={...Z,...ue};return{...ne,ref:Y,...xe}},je=ne=>Z=>{ne.onMouseOver?.(Z);const ue=Number(Z.currentTarget.getAttribute("data-index"));P(ue)},Re=ne=>Z=>{ne.onMouseLeave?.(Z),P(-1)},Me=(ne={})=>{const Z=mr(ne),ue={onMouseOver:je(Z||{}),onMouseLeave:Re(Z||{})};return{...ne,...Z,...ue}},ae=ne=>({pointerEvents:S!==-1&&S!==ne?"none":void 0});let Ke;return v==="vertical"&&(Ke=s?"vertical-rl":"vertical-lr"),{active:S,axis:ie,axisProps:J2,dragging:$,focusedThumbIndex:W,getHiddenInputProps:(ne={})=>{const Z=mr(ne),ue={onChange:oe(Z||{}),onFocus:te(Z||{}),onBlur:G(Z||{}),onKeyDown:J(Z||{})},xe={...Z,...ue};return{tabIndex:y,"aria-labelledby":t,"aria-orientation":v,"aria-valuemax":g(l),"aria-valuemin":g(c),name:p,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...ne,...xe,style:{...F2,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ke}}},getRootProps:Ne,getThumbProps:Me,marks:B,open:O,range:D,rootRef:Y,trackLeap:Te,trackOffset:Be,values:N,getThumbStyle:ae}}const ek=e=>!e||!Xn(e);function tk(e){return ge("MuiSlider",e)}const Kt=he("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),nk=e=>{const{open:t}=e;return{offset:le(t&&Kt.valueLabelOpen),circle:Kt.valueLabelCircle,label:Kt.valueLabelLabel}};function om(e){const{children:t,className:n,value:r}=e,i=nk(e);return t?E.cloneElement(t,{className:t.props.className},d.jsxs(E.Fragment,{children:[t.props.children,d.jsx("span",{className:le(i.offset,n),"aria-hidden":!0,children:d.jsx("span",{className:i.circle,children:d.jsx("span",{className:i.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(om.propTypes={children:o.element.isRequired,className:o.string,value:o.node});function im(e){return e}const rk=X("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Q(n.color)}`],n.size!=="medium"&&t[`size${Q(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(fe(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Kt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Kt.dragging}`]:{[`& .${Kt.thumb}, & .${Kt.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),ok=X("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),ik=X("span",{name:"MuiSlider",slot:"Track"})(fe(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),sk=X("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Q(n.color)}`],n.size!=="medium"&&t[`thumbSize${Q(n.size)}`]]}})(fe(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Kt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(ot()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Kt.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Kt.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),sm=X(om,{name:"MuiSlider",slot:"ValueLabel"})(fe(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Kt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(sm.propTypes={children:o.element.isRequired,index:o.number.isRequired,open:o.bool.isRequired,value:o.node});const ak=X("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>ei(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(fe(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),lk=X("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>ei(e)&&e!=="markLabelActive"})(fe(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),ck=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:s,classes:a,color:l,size:c}=e,p={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${Q(l)}`,c&&`size${Q(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Q(c)}`,l&&`thumbColor${Q(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return me(p,tk,a)},dk=({children:e})=>e,am=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiSlider"}),i=Qo(),{"aria-label":s,"aria-valuetext":a,"aria-labelledby":l,component:c="span",components:p={},componentsProps:u={},color:h="primary",classes:v,className:b,disableSwap:g=!1,disabled:f=!1,getAriaLabel:m,getAriaValueText:y,marks:w=!1,max:x=100,min:S=0,name:C,onChange:O,onChangeCommitted:P,orientation:$="horizontal",shiftStep:A=10,size:j="medium",step:L=1,scale:T=im,slotProps:k,slots:_,tabIndex:D,track:N="normal",value:B,valueLabelDisplay:I="off",valueLabelFormat:W=im,...z}=r,R={...r,isRtl:i,max:x,min:S,classes:v,disabled:f,disableSwap:g,orientation:$,marks:w,color:h,size:j,step:L,shiftStep:A,scale:T,track:N,valueLabelDisplay:I,valueLabelFormat:W},{axisProps:Y,getRootProps:te,getHiddenInputProps:G,getThumbProps:q,open:J,active:oe,axis:re,focusedThumbIndex:ie,range:ee,dragging:ce,marks:H,values:de,trackOffset:se,trackLeap:ve,getThumbStyle:Be}=Z2({...R,rootRef:n});R.marked=H.length>0&&H.some(Je=>Je.label),R.dragging=ce,R.focusedThumbIndex=ie;const Te=ck(R),Ne=_?.root??p.Root??rk,je=_?.rail??p.Rail??ok,Re=_?.track??p.Track??ik,Me=_?.thumb??p.Thumb??sk,ae=_?.valueLabel??p.ValueLabel??sm,Ke=_?.mark??p.Mark??ak,Pe=_?.markLabel??p.MarkLabel??lk,ne=_?.input??p.Input??"input",Z=k?.root??u.root,ue=k?.rail??u.rail,xe=k?.track??u.track,Ce=k?.thumb??u.thumb,we=k?.valueLabel??u.valueLabel,ye=k?.mark??u.mark,Ze=k?.markLabel??u.markLabel,Ae=k?.input??u.input,dt=bn({elementType:Ne,getSlotProps:te,externalSlotProps:Z,externalForwardedProps:z,additionalProps:{...ek(Ne)&&{as:c}},ownerState:{...R,...Z?.ownerState},className:[Te.root,b]}),sn=bn({elementType:je,externalSlotProps:ue,ownerState:R,className:Te.rail}),Er=bn({elementType:Re,externalSlotProps:xe,additionalProps:{style:{...Y[re].offset(se),...Y[re].leap(ve)}},ownerState:{...R,...xe?.ownerState},className:Te.track}),tr=bn({elementType:Me,getSlotProps:q,externalSlotProps:Ce,ownerState:{...R,...Ce?.ownerState},className:Te.thumb}),pe=bn({elementType:ae,externalSlotProps:we,ownerState:{...R,...we?.ownerState},className:Te.valueLabel}),Ie=bn({elementType:Ke,externalSlotProps:ye,ownerState:R,className:Te.mark}),et=bn({elementType:Pe,externalSlotProps:Ze,ownerState:R,className:Te.markLabel}),Tn=bn({elementType:ne,getSlotProps:G,externalSlotProps:Ae,ownerState:R});return d.jsxs(Ne,{...dt,children:[d.jsx(je,{...sn}),d.jsx(Re,{...Er}),H.filter(Je=>Je.value>=S&&Je.value<=x).map((Je,ut)=>{const _i=Na(Je.value,S,x),ao=Y[re].offset(_i);let an;return N===!1?an=de.includes(Je.value):an=N==="normal"&&(ee?Je.value>=de[0]&&Je.value<=de[de.length-1]:Je.value<=de[0])||N==="inverted"&&(ee?Je.value<=de[0]||Je.value>=de[de.length-1]:Je.value>=de[0]),d.jsxs(E.Fragment,{children:[d.jsx(Ke,{"data-index":ut,...Ie,...!Xn(Ke)&&{markActive:an},style:{...ao,...Ie.style},className:le(Ie.className,an&&Te.markActive)}),Je.label!=null?d.jsx(Pe,{"aria-hidden":!0,"data-index":ut,...et,...!Xn(Pe)&&{markLabelActive:an},style:{...ao,...et.style},className:le(Te.markLabel,et.className,an&&Te.markLabelActive),children:Je.label}):null]},ut)}),de.map((Je,ut)=>{const _i=Na(Je,S,x),ao=Y[re].offset(_i),an=I==="off"?dk:ae;return d.jsx(an,{...!Xn(an)&&{valueLabelFormat:W,valueLabelDisplay:I,value:typeof W=="function"?W(T(Je),ut):W,index:ut,open:J===ut||oe===ut||I==="on",disabled:f},...pe,children:d.jsx(Me,{"data-index":ut,...tr,className:le(Te.thumb,tr.className,oe===ut&&Te.active,ie===ut&&Te.focusVisible),style:{...ao,...Be(ut),...tr.style},children:d.jsx(ne,{"data-index":ut,"aria-label":m?m(ut):s,"aria-valuenow":T(Je),"aria-labelledby":l,"aria-valuetext":y?y(T(Je),ut):a,value:de[ut],...Tn})})},ut)})]})});process.env.NODE_ENV!=="production"&&(am.propTypes={"aria-label":tn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":o.string,"aria-valuetext":tn(o.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),components:o.shape({Input:o.elementType,Mark:o.elementType,MarkLabel:o.elementType,Rail:o.elementType,Root:o.elementType,Thumb:o.elementType,Track:o.elementType,ValueLabel:o.elementType}),componentsProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),defaultValue:o.oneOfType([o.arrayOf(o.number),o.number]),disabled:o.bool,disableSwap:o.bool,getAriaLabel:o.func,getAriaValueText:o.func,marks:o.oneOfType([o.arrayOf(o.shape({label:o.node,value:o.number.isRequired})),o.bool]),max:o.number,min:o.number,name:o.string,onChange:o.func,onChangeCommitted:o.func,orientation:o.oneOf(["horizontal","vertical"]),scale:o.func,shiftStep:o.number,size:o.oneOfType([o.oneOf(["small","medium"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),mark:o.oneOfType([o.func,o.object]),markLabel:o.oneOfType([o.func,o.object]),rail:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object]),valueLabel:o.oneOfType([o.func,o.shape({children:o.element,className:o.string,open:o.bool,style:o.object,value:o.node,valueLabelDisplay:o.oneOf(["auto","off","on"])})])}),slots:o.shape({input:o.elementType,mark:o.elementType,markLabel:o.elementType,rail:o.elementType,root:o.elementType,thumb:o.elementType,track:o.elementType,valueLabel:o.elementType}),step:o.number,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),tabIndex:o.number,track:o.oneOf(["inverted","normal",!1]),value:o.oneOfType([o.arrayOf(o.number),o.number]),valueLabelDisplay:o.oneOf(["auto","off","on"]),valueLabelFormat:o.oneOfType([o.func,o.string])});function uk(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:s}=e,a=gr();E.useEffect(()=>{if(!i)return;function y(w){w.defaultPrevented||w.key==="Escape"&&r?.(w,"escapeKeyDown")}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i,r]);const l=St((y,w)=>{r?.(y,w)}),c=St(y=>{!r||y==null||a.start(y,()=>{l(null,"timeout")})});E.useEffect(()=>(i&&c(t),a.clear),[i,t,c,a]);const p=y=>{r?.(y,"clickaway")},u=a.clear,h=E.useCallback(()=>{t!=null&&c(s??t*.5)},[t,s,c]),v=y=>w=>{const x=y.onBlur;x?.(w),h()},b=y=>w=>{const x=y.onFocus;x?.(w),u()},g=y=>w=>{const x=y.onMouseEnter;x?.(w),u()},f=y=>w=>{const x=y.onMouseLeave;x?.(w),h()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",u)}},[n,i,h,u]),{getRootProps:(y={})=>{const w={...mr(e),...mr(y)};return{role:"presentation",...y,...w,onBlur:v(w),onFocus:b(w),onMouseEnter:g(w),onMouseLeave:f(w)}},onClickAway:p}}function pk(e){return ge("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const fk=e=>{const{classes:t}=e;return me({root:["root"],action:["action"],message:["message"]},pk,t)},hk=X(nn,{name:"MuiSnackbarContent",slot:"Root"})(fe(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(uc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:uc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),gk=X("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),mk=X("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lm=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiSnackbarContent"}),{action:i,className:s,message:a,role:l="alert",...c}=r,p=r,u=fk(p);return d.jsxs(hk,{role:l,elevation:6,className:le(u.root,s),ownerState:p,ref:n,...c,children:[d.jsx(gk,{className:u.message,ownerState:p,children:a}),i?d.jsx(mk,{className:u.action,ownerState:p,children:i}):null]})});process.env.NODE_ENV!=="production"&&(lm.propTypes={action:o.node,classes:o.object,className:o.string,message:o.node,role:o.string,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function yk(e){return ge("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const bk=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`]};return me(r,yk,t)},vk=X("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}`]]}})(fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Pi=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiSnackbar"}),i=en(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:u,className:h,ClickAwayListenerProps:v,ContentProps:b,disableWindowBlurListener:g=!1,message:f,onBlur:m,onClose:y,onFocus:w,onMouseEnter:x,onMouseLeave:S,open:C,resumeHideDuration:O,slots:P={},slotProps:$={},TransitionComponent:A,transitionDuration:j=s,TransitionProps:{onEnter:L,onExited:T,...k}={},..._}=r,D={...r,anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:p,disableWindowBlurListener:g,TransitionComponent:A,transitionDuration:j},N=bk(D),{getRootProps:B,onClickAway:I}=uk(D),[W,z]=E.useState(!0),R=de=>{z(!0),T&&T(de)},Y=(de,se)=>{z(!1),L&&L(de,se)},te={slots:{transition:A,...P},slotProps:{content:b,clickAwayListener:v,transition:k,...$}},[G,q]=Se("root",{ref:n,className:[N.root,h],elementType:vk,getSlotProps:B,externalForwardedProps:{...te,..._},ownerState:D}),[J,{ownerState:oe,...re}]=Se("clickAwayListener",{elementType:va,externalForwardedProps:te,getSlotProps:de=>({onClickAway:(...se)=>{const ve=se[0];de.onClickAway?.(...se),!ve?.defaultMuiPrevented&&I(...se)}}),ownerState:D}),[ie,ee]=Se("content",{elementType:lm,shouldForwardComponentProp:!0,externalForwardedProps:te,additionalProps:{message:f,action:a},ownerState:D}),[ce,H]=Se("transition",{elementType:no,externalForwardedProps:te,getSlotProps:de=>({onEnter:(...se)=>{de.onEnter?.(...se),Y(...se)},onExited:(...se)=>{de.onExited?.(...se),R(...se)}}),additionalProps:{appear:!0,in:C,timeout:j,direction:l==="top"?"down":"up"},ownerState:D});return!C&&W?null:d.jsx(J,{...re,...P.clickAwayListener&&{ownerState:oe},children:d.jsx(G,{...q,children:d.jsx(ce,{...H,children:u||d.jsx(ie,{...ee})})})})});process.env.NODE_ENV!=="production"&&(Pi.propTypes={action:o.node,anchorOrigin:o.shape({horizontal:o.oneOf(["center","left","right"]).isRequired,vertical:o.oneOf(["bottom","top"]).isRequired}),autoHideDuration:o.number,children:o.element,classes:o.object,className:o.string,ClickAwayListenerProps:o.object,ContentProps:o.object,disableWindowBlurListener:o.bool,key:()=>null,message:o.node,onBlur:o.func,onClose:o.func,onFocus:o.func,onMouseEnter:o.func,onMouseLeave:o.func,open:o.bool,resumeHideDuration:o.number,slotProps:o.shape({clickAwayListener:o.oneOfType([o.func,o.object]),content:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({clickAwayListener:o.elementType,content:o.elementType,root:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),TransitionComponent:o.elementType,transitionDuration:o.oneOfType([o.number,o.shape({appear:o.number,enter:o.number,exit:o.number})]),TransitionProps:o.object});function xk(e){return ge("MuiTooltip",e)}const it=he("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function Sk(e){return Math.round(e*1e5)/1e5}const wk=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:s}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Q(s.split("-")[0])}`],arrow:["arrow"]};return me(a,xk,t)},Ck=X(Wc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${it.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${it.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${it.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${it.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${it.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${it.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${it.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${it.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Ek=X("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Q(n.placement.split("-")[0])}`]]}})(fe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${it.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${it.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${it.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${it.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Sk(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${it.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${it.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${it.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${it.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Tk=X("span",{name:"MuiTooltip",slot:"Arrow"})(fe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let _a=!1;const cm=new Qs;let ki={x:0,y:0};function $a(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const dm=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:s,classes:a,components:l={},componentsProps:c={},describeChild:p=!1,disableFocusListener:u=!1,disableHoverListener:h=!1,disableInteractive:v=!1,disableTouchListener:b=!1,enterDelay:g=100,enterNextDelay:f=0,enterTouchDelay:m=700,followCursor:y=!1,id:w,leaveDelay:x=0,leaveTouchDelay:S=1500,onClose:C,onOpen:O,open:P,placement:$="bottom",PopperComponent:A,PopperProps:j={},slotProps:L={},slots:T={},title:k,TransitionComponent:_,TransitionProps:D,...N}=r,B=E.isValidElement(s)?s:d.jsx("span",{children:s}),I=en(),W=Qo(),[z,R]=E.useState(),[Y,te]=E.useState(null),G=E.useRef(!1),q=v||y,J=gr(),oe=gr(),re=gr(),ie=gr(),[ee,ce]=Yr({controlled:P,default:!1,name:"Tooltip",state:"open"});let H=ee;if(process.env.NODE_ENV!=="production"){const{current:Oe}=E.useRef(P!==void 0);E.useEffect(()=>{z&&z.disabled&&!Oe&&k!==""&&z.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
|
|
232
|
+
`))},[k,z,Oe])}const de=ur(w),se=E.useRef(),ve=St(()=>{se.current!==void 0&&(document.body.style.WebkitUserSelect=se.current,se.current=void 0),ie.clear()});E.useEffect(()=>ve,[ve]);const Be=Oe=>{cm.clear(),_a=!0,ce(!0),O&&!H&&O(Oe)},Te=St(Oe=>{cm.start(800+x,()=>{_a=!1}),ce(!1),C&&H&&C(Oe),J.start(I.transitions.duration.shortest,()=>{G.current=!1})}),Ne=Oe=>{G.current&&Oe.type!=="touchstart"||(z&&z.removeAttribute("title"),oe.clear(),re.clear(),g||_a&&f?oe.start(_a?f:g,()=>{Be(Oe)}):Be(Oe))},je=Oe=>{oe.clear(),re.start(x,()=>{Te(Oe)})},[,Re]=E.useState(!1),Me=Oe=>{Xr(Oe.target)||(Re(!1),je(Oe))},ae=Oe=>{z||R(Oe.currentTarget),Xr(Oe.target)&&(Re(!0),Ne(Oe))},Ke=Oe=>{G.current=!0;const nr=B.props;nr.onTouchStart&&nr.onTouchStart(Oe)},Pe=Oe=>{Ke(Oe),re.clear(),J.clear(),ve(),se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ie.start(m,()=>{document.body.style.WebkitUserSelect=se.current,Ne(Oe)})},ne=Oe=>{B.props.onTouchEnd&&B.props.onTouchEnd(Oe),ve(),re.start(S,()=>{Te(Oe)})};E.useEffect(()=>{if(!H)return;function Oe(nr){nr.key==="Escape"&&Te(nr)}return document.addEventListener("keydown",Oe),()=>{document.removeEventListener("keydown",Oe)}},[Te,H]);const Z=at(vr(B),R,n);!k&&k!==0&&(H=!1);const ue=E.useRef(),xe=Oe=>{const nr=B.props;nr.onMouseMove&&nr.onMouseMove(Oe),ki={x:Oe.clientX,y:Oe.clientY},ue.current&&ue.current.update()},Ce={},we=typeof k=="string";p?(Ce.title=!H&&we&&!h?k:null,Ce["aria-describedby"]=H?de:null):(Ce["aria-label"]=we?k:null,Ce["aria-labelledby"]=H&&!we?de:null);const ye={...Ce,...N,...B.props,className:le(N.className,B.props.className),onTouchStart:Ke,ref:Z,...y?{onMouseMove:xe}:{}};process.env.NODE_ENV!=="production"&&(ye["data-mui-internal-clone-element"]=!0,E.useEffect(()=>{z&&!z.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
|
|
233
|
+
`))},[z]));const Ze={};b||(ye.onTouchStart=Pe,ye.onTouchEnd=ne),h||(ye.onMouseOver=$a(Ne,ye.onMouseOver),ye.onMouseLeave=$a(je,ye.onMouseLeave),q||(Ze.onMouseOver=Ne,Ze.onMouseLeave=je)),u||(ye.onFocus=$a(ae,ye.onFocus),ye.onBlur=$a(Me,ye.onBlur),q||(Ze.onFocus=ae,Ze.onBlur=Me)),process.env.NODE_ENV!=="production"&&B.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${B.props.title}\` or the Tooltip component.`].join(`
|
|
234
|
+
`));const Ae={...r,isRtl:W,arrow:i,disableInteractive:q,placement:$,PopperComponentProp:A,touch:G.current},dt=typeof L.popper=="function"?L.popper(Ae):L.popper,sn=E.useMemo(()=>{let Oe=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return j.popperOptions?.modifiers&&(Oe=Oe.concat(j.popperOptions.modifiers)),dt?.popperOptions?.modifiers&&(Oe=Oe.concat(dt.popperOptions.modifiers)),{...j.popperOptions,...dt?.popperOptions,modifiers:Oe}},[Y,j.popperOptions,dt?.popperOptions]),Er=wk(Ae),tr=typeof L.transition=="function"?L.transition(Ae):L.transition,pe={slots:{popper:l.Popper,transition:l.Transition??_,tooltip:l.Tooltip,arrow:l.Arrow,...T},slotProps:{arrow:L.arrow??c.arrow,popper:{...j,...dt??c.popper},tooltip:L.tooltip??c.tooltip,transition:{...D,...tr??c.transition}}},[Ie,et]=Se("popper",{elementType:Ck,externalForwardedProps:pe,ownerState:Ae,className:le(Er.popper,j?.className)}),[Tn,Je]=Se("transition",{elementType:no,externalForwardedProps:pe,ownerState:Ae}),[ut,_i]=Se("tooltip",{elementType:Ek,className:Er.tooltip,externalForwardedProps:pe,ownerState:Ae}),[ao,an]=Se("arrow",{elementType:Tk,className:Er.arrow,externalForwardedProps:pe,ownerState:Ae,ref:te});return d.jsxs(E.Fragment,{children:[E.cloneElement(B,ye),d.jsx(Ie,{as:A??Wc,placement:$,anchorEl:y?{getBoundingClientRect:()=>({top:ki.y,left:ki.x,right:ki.x,bottom:ki.y,width:0,height:0})}:z,popperRef:ue,open:z?H:!1,id:de,transition:!0,...Ze,...et,popperOptions:sn,children:({TransitionProps:Oe})=>d.jsx(Tn,{timeout:I.transitions.duration.shorter,...Oe,...Je,children:d.jsxs(ut,{..._i,children:[k,i?d.jsx(ao,{...an}):null]})})})]})});process.env.NODE_ENV!=="production"&&(dm.propTypes={arrow:o.bool,children:Sr.isRequired,classes:o.object,className:o.string,components:o.shape({Arrow:o.elementType,Popper:o.elementType,Tooltip:o.elementType,Transition:o.elementType}),componentsProps:o.shape({arrow:o.object,popper:o.object,tooltip:o.object,transition:o.object}),describeChild:o.bool,disableFocusListener:o.bool,disableHoverListener:o.bool,disableInteractive:o.bool,disableTouchListener:o.bool,enterDelay:o.number,enterNextDelay:o.number,enterTouchDelay:o.number,followCursor:o.bool,id:o.string,leaveDelay:o.number,leaveTouchDelay:o.number,onClose:o.func,onOpen:o.func,open:o.bool,placement:o.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:o.elementType,PopperProps:o.object,slotProps:o.shape({arrow:o.oneOfType([o.func,o.object]),popper:o.oneOfType([o.func,o.object]),tooltip:o.oneOfType([o.func,o.object]),transition:o.oneOfType([o.func,o.object])}),slots:o.shape({arrow:o.elementType,popper:o.elementType,tooltip:o.elementType,transition:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),title:o.node,TransitionComponent:o.elementType,TransitionProps:o.object});function Ok(e){return ge("MuiSwitch",e)}const Ct=he("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Pk=e=>{const{classes:t,edge:n,size:r,color:i,checked:s,disabled:a}=e,l={root:["root",n&&`edge${Q(n)}`,`size${Q(r)}`],switchBase:["switchBase",`color${Q(i)}`,s&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=me(l,Ok,t);return{...t,...c}},kk=X("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Q(n.edge)}`],t[`size${Q(n.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Ct.thumb}`]:{width:16,height:16},[`& .${Ct.switchBase}`]:{padding:4,[`&.${Ct.checked}`]:{transform:"translateX(16px)"}}}}]}),Nk=X(ba,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ct.input}`]:t.input},n.color!=="default"&&t[`color${Q(n.color)}`]]}})(fe(({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}),[`&.${Ct.checked}`]:{transform:"translateX(20px)"},[`&.${Ct.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ct.checked} + .${Ct.track}`]:{opacity:.5},[`&.${Ct.disabled} + .${Ct.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ct.input}`]:{left:"-100%",width:"300%"}})),fe(({theme:e})=>({"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ot(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Ct.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"}},[`&.${Ct.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)}`}},[`&.${Ct.checked} + .${Ct.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Ik=X("span",{name:"MuiSwitch",slot:"Track"})(fe(({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}`}))),Ak=X("span",{name:"MuiSwitch",slot:"Thumb"})(fe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),dd=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiSwitch"}),{className:i,color:s="primary",edge:a=!1,size:l="medium",sx:c,slots:p={},slotProps:u={},...h}=r,v={...r,color:s,edge:a,size:l},b=Pk(v),g={slots:p,slotProps:u},[f,m]=Se("root",{className:le(b.root,i),elementType:kk,externalForwardedProps:g,ownerState:v,additionalProps:{sx:c}}),[y,w]=Se("thumb",{className:b.thumb,elementType:Ak,externalForwardedProps:g,ownerState:v}),x=d.jsx(y,{...w}),[S,C]=Se("track",{className:b.track,elementType:Ik,externalForwardedProps:g,ownerState:v});return d.jsxs(f,{...m,children:[d.jsx(Nk,{type:"checkbox",icon:x,checkedIcon:x,ref:n,ownerState:v,...h,classes:{...b,root:b.switchBase},slots:{...p.switchBase&&{root:p.switchBase},...p.input&&{input:p.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(v):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(v):u.input}}}),d.jsx(S,{...C})]})});process.env.NODE_ENV!=="production"&&(dd.propTypes={checked:o.bool,checkedIcon:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["default","primary","secondary","error","info","success","warning"]),o.string]),defaultChecked:o.bool,disabled:o.bool,disableRipple:o.bool,edge:o.oneOf(["end","start",!1]),icon:o.node,id:o.string,inputProps:o.object,inputRef:wt,onChange:o.func,required:o.bool,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({input:o.oneOfType([o.func,o.object]),root:o.oneOfType([o.func,o.object]),switchBase:o.oneOfType([o.func,o.object]),thumb:o.oneOfType([o.func,o.object]),track:o.oneOfType([o.func,o.object])}),slots:o.shape({input:o.elementType,root:o.elementType,switchBase:o.elementType,thumb:o.elementType,track:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),value:o.any});const ud=E.createContext();process.env.NODE_ENV!=="production"&&(ud.displayName="TableContext");function Mk(e){return ge("MuiTable",e)}he("MuiTable",["root","stickyHeader"]);const _k=e=>{const{classes:t,stickyHeader:n}=e;return me({root:["root",n&&"stickyHeader"]},Mk,t)},$k=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(fe(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),um="table",pm=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTable"}),{className:i,component:s=um,padding:a="normal",size:l="medium",stickyHeader:c=!1,...p}=r,u={...r,component:s,padding:a,size:l,stickyHeader:c},h=_k(u),v=E.useMemo(()=>({padding:a,size:l,stickyHeader:c}),[a,l,c]);return d.jsx(ud.Provider,{value:v,children:d.jsx($k,{as:s,role:s===um?null:"table",ref:n,className:le(h.root,i),ownerState:u,...p})})});process.env.NODE_ENV!=="production"&&(pm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),stickyHeader:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});const Ni=E.createContext();process.env.NODE_ENV!=="production"&&(Ni.displayName="Tablelvl2Context");function Dk(e){return ge("MuiTableBody",e)}he("MuiTableBody",["root"]);const Fk=e=>{const{classes:t}=e;return me({root:["root"]},Dk,t)},jk=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Lk={variant:"body"},fm="tbody",hm=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTableBody"}),{className:i,component:s=fm,...a}=r,l={...r,component:s},c=Fk(l);return d.jsx(Ni.Provider,{value:Lk,children:d.jsx(jk,{className:le(c.root,i),as:s,ref:n,role:s===fm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(hm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function zk(e){return ge("MuiTableCell",e)}const Bk=he("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Rk=e=>{const{classes:t,variant:n,align:r,padding:i,size:s,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Q(r)}`,i!=="normal"&&`padding${Q(i)}`,`size${Q(s)}`]};return me(l,zk,t)},Wk=X("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Q(n.size)}`],n.padding!=="normal"&&t[`padding${Q(n.padding)}`],n.align!=="inherit"&&t[`align${Q(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
235
|
+
${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Bk.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),Zn=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTableCell"}),{align:i="inherit",className:s,component:a,padding:l,scope:c,size:p,sortDirection:u,variant:h,...v}=r,b=E.useContext(ud),g=E.useContext(Ni),f=g&&g.variant==="head";let m;a?m=a:m=f?"th":"td";let y=c;m==="td"?y=void 0:!y&&f&&(y="col");const w=h||g&&g.variant,x={...r,align:i,component:m,padding:l||(b&&b.padding?b.padding:"normal"),size:p||(b&&b.size?b.size:"medium"),sortDirection:u,stickyHeader:w==="head"&&b&&b.stickyHeader,variant:w},S=Rk(x);let C=null;return u&&(C=u==="asc"?"ascending":"descending"),d.jsx(Wk,{as:m,ref:n,className:le(S.root,s),"aria-sort":C,scope:y,ownerState:x,...v})});process.env.NODE_ENV!=="production"&&(Zn.propTypes={align:o.oneOf(["center","inherit","justify","left","right"]),children:o.node,classes:o.object,className:o.string,component:o.elementType,padding:o.oneOf(["checkbox","none","normal"]),scope:o.string,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),sortDirection:o.oneOf(["asc","desc",!1]),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),variant:o.oneOfType([o.oneOf(["body","footer","head"]),o.string])});function Vk(e){return ge("MuiTableContainer",e)}he("MuiTableContainer",["root"]);const Uk=e=>{const{classes:t}=e;return me({root:["root"]},Vk,t)},Hk=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),gm=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTableContainer"}),{className:i,component:s="div",...a}=r,l={...r,component:s},c=Uk(l);return d.jsx(Hk,{ref:n,as:s,className:le(c.root,i),ownerState:l,...a})});process.env.NODE_ENV!=="production"&&(gm.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function qk(e){return ge("MuiTableHead",e)}he("MuiTableHead",["root"]);const Yk=e=>{const{classes:t}=e;return me({root:["root"]},qk,t)},Kk=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Gk={variant:"head"},mm="thead",ym=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTableHead"}),{className:i,component:s=mm,...a}=r,l={...r,component:s},c=Yk(l);return d.jsx(Ni.Provider,{value:Gk,children:d.jsx(Kk,{as:s,className:le(c.root,i),ref:n,role:s===mm?null:"rowgroup",ownerState:l,...a})})});process.env.NODE_ENV!=="production"&&(ym.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Xk(e){return ge("MuiTableRow",e)}const bm=he("MuiTableRow",["root","selected","hover","head","footer"]),Jk=e=>{const{classes:t,selected:n,hover:r,head:i,footer:s}=e;return me({root:["root",n&&"selected",r&&"hover",i&&"head",s&&"footer"]},Xk,t)},Qk=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(fe(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${bm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${bm.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),vm="tr",Ii=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTableRow"}),{className:i,component:s=vm,hover:a=!1,selected:l=!1,...c}=r,p=E.useContext(Ni),u={...r,component:s,hover:a,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},h=Jk(u);return d.jsx(Qk,{as:s,ref:n,className:le(h.root,i),role:s===vm?null:"row",ownerState:u,...c})});process.env.NODE_ENV!=="production"&&(Ii.propTypes={children:o.node,classes:o.object,className:o.string,component:o.elementType,hover:o.bool,selected:o.bool,sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object])});function Zk(e){return ge("MuiTextField",e)}he("MuiTextField",["root"]);const eN={standard:Ta,filled:Ca,outlined:Oa},tN=e=>{const{classes:t}=e;return me({root:["root"]},Zk,t)},nN=X(Ea,{name:"MuiTextField",slot:"Root"})({}),pd=E.forwardRef(function(t,n){const r=be({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:s=!1,children:a,className:l,color:c="primary",defaultValue:p,disabled:u=!1,error:h=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:g,id:f,InputLabelProps:m,inputProps:y,InputProps:w,inputRef:x,label:S,maxRows:C,minRows:O,multiline:P=!1,name:$,onBlur:A,onChange:j,onFocus:L,placeholder:T,required:k=!1,rows:_,select:D=!1,SelectProps:N,slots:B={},slotProps:I={},type:W,value:z,variant:R="outlined",...Y}=r,te={...r,autoFocus:s,color:c,disabled:u,error:h,fullWidth:b,multiline:P,required:k,select:D,variant:R},G=tN(te);process.env.NODE_ENV!=="production"&&D&&!a&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const q=ur(f),J=g&&q?`${q}-helper-text`:void 0,oe=S&&q?`${q}-label`:void 0,re=eN[R],ie={slots:B,slotProps:{input:w,inputLabel:m,htmlInput:y,formHelperText:v,select:N,...I}},ee={},ce=ie.slotProps.inputLabel;R==="outlined"&&(ce&&typeof ce.shrink<"u"&&(ee.notched=ce.shrink),ee.label=S),D&&((!N||!N.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const[H,de]=Se("root",{elementType:nN,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...Y},ownerState:te,className:le(G.root,l),ref:n,additionalProps:{disabled:u,error:h,fullWidth:b,required:k,color:c,variant:R}}),[se,ve]=Se("input",{elementType:re,externalForwardedProps:ie,additionalProps:ee,ownerState:te}),[Be,Te]=Se("inputLabel",{elementType:Mg,externalForwardedProps:ie,ownerState:te}),[Ne,je]=Se("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:te}),[Re,Me]=Se("formHelperText",{elementType:Ag,externalForwardedProps:ie,ownerState:te}),[ae,Ke]=Se("select",{elementType:io,externalForwardedProps:ie,ownerState:te}),Pe=d.jsx(se,{"aria-describedby":J,autoComplete:i,autoFocus:s,defaultValue:p,fullWidth:b,multiline:P,name:$,rows:_,maxRows:C,minRows:O,type:W,value:z,id:q,inputRef:x,onBlur:A,onChange:j,onFocus:L,placeholder:T,inputProps:je,slots:{input:B.htmlInput?Ne:void 0},...ve});return d.jsxs(H,{...de,children:[S!=null&&S!==""&&d.jsx(Be,{htmlFor:q,id:oe,...Te,children:S}),D?d.jsx(ae,{"aria-describedby":J,id:q,labelId:oe,value:z,input:Pe,...Ke,children:a}):Pe,g&&d.jsx(Re,{id:J,...Me,children:g})]})});process.env.NODE_ENV!=="production"&&(pd.propTypes={autoComplete:o.string,autoFocus:o.bool,children:o.node,classes:o.object,className:o.string,color:o.oneOfType([o.oneOf(["primary","secondary","error","info","success","warning"]),o.string]),defaultValue:o.any,disabled:o.bool,error:o.bool,FormHelperTextProps:o.object,fullWidth:o.bool,helperText:o.node,id:o.string,InputLabelProps:o.object,inputProps:o.object,InputProps:o.object,inputRef:wt,label:o.node,margin:o.oneOf(["dense","none","normal"]),maxRows:o.oneOfType([o.number,o.string]),minRows:o.oneOfType([o.number,o.string]),multiline:o.bool,name:o.string,onBlur:o.func,onChange:o.func,onFocus:o.func,placeholder:o.string,required:o.bool,rows:o.oneOfType([o.number,o.string]),select:o.bool,SelectProps:o.object,size:o.oneOfType([o.oneOf(["medium","small"]),o.string]),slotProps:o.shape({formHelperText:o.oneOfType([o.func,o.object]),htmlInput:o.oneOfType([o.func,o.object]),input:o.oneOfType([o.func,o.object]),inputLabel:o.oneOfType([o.func,o.object]),select:o.oneOfType([o.func,o.object])}),slots:o.shape({formHelperText:o.elementType,htmlInput:o.elementType,input:o.elementType,inputLabel:o.elementType,root:o.elementType,select:o.elementType}),sx:o.oneOfType([o.arrayOf(o.oneOfType([o.func,o.object,o.bool])),o.func,o.object]),type:o.string,value:o.any,variant:o.oneOf(["filled","outlined","standard"])});const xm=nh({themeId:zo});function fd(){return fd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fd.apply(this,arguments)}function rN(e,t){if(e==null)return{};var n=oN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var hd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=rN(e,["color","size"]);return F.createElement("svg",fd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("line",{x1:"17",y1:"10",x2:"3",y2:"10"}),F.createElement("line",{x1:"21",y1:"6",x2:"3",y2:"6"}),F.createElement("line",{x1:"21",y1:"14",x2:"3",y2:"14"}),F.createElement("line",{x1:"17",y1:"18",x2:"3",y2:"18"}))});hd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},hd.displayName="AlignLeft";function gd(){return gd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(this,arguments)}function iN(e,t){if(e==null)return{};var n=sN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var md=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=iN(e,["color","size"]);return F.createElement("svg",gd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("path",{d:"M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"}),F.createElement("path",{d:"M13.73 21a2 2 0 0 1-3.46 0"}))});md.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},md.displayName="Bell";function yd(){return yd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yd.apply(this,arguments)}function aN(e,t){if(e==null)return{};var n=lN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Da=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=aN(e,["color","size"]);return F.createElement("svg",yd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("polyline",{points:"6 9 12 15 18 9"}))});Da.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Da.displayName="ChevronDown";function bd(){return bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bd.apply(this,arguments)}function cN(e,t){if(e==null)return{};var n=dN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=cN(e,["color","size"]);return F.createElement("svg",bd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"12",cy:"12",r:"1"}),F.createElement("circle",{cx:"12",cy:"5",r:"1"}),F.createElement("circle",{cx:"12",cy:"19",r:"1"}))});vd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},vd.displayName="MoreVertical";function xd(){return xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function uN(e,t){if(e==null)return{};var n=pN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=uN(e,["color","size"]);return F.createElement("svg",xd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"11",cy:"11",r:"8"}),F.createElement("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))});Sd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Sd.displayName="Search";function wd(){return wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wd.apply(this,arguments)}function fN(e,t){if(e==null)return{};var n=hN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Cd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=fN(e,["color","size"]);return F.createElement("svg",wd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("circle",{cx:"12",cy:"12",r:"3"}),F.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"}))});Cd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Cd.displayName="Settings";function Ed(){return Ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ed.apply(this,arguments)}function gN(e,t){if(e==null)return{};var n=mN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Td=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=gN(e,["color","size"]);return F.createElement("svg",Ed({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("path",{d:"M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"}),F.createElement("line",{x1:"3",y1:"6",x2:"21",y2:"6"}),F.createElement("path",{d:"M16 10a4 4 0 0 1-8 0"}))});Td.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Td.displayName="ShoppingBag";function Od(){return Od=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Od.apply(this,arguments)}function yN(e,t){if(e==null)return{};var n=bN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Pd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=yN(e,["color","size"]);return F.createElement("svg",Od({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.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"}))});Pd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Pd.displayName="Star";function kd(){return kd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kd.apply(this,arguments)}function vN(e,t){if(e==null)return{};var n=xN(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xN(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Nd=F.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,i=e.size,s=i===void 0?24:i,a=vN(e,["color","size"]);return F.createElement("svg",kd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:s,height:s,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))});Nd.propTypes={color:o.string,size:o.oneOfType([o.string,o.number])},Nd.displayName="X";function wn(){const t={theme:F.useMemo(()=>xc({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"}}}}}}),[]),topBar:{root:{bgcolor:"background.paper",marginBottom:"20px"},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,marginRight:"22px"},btn:{display:"flex",alignItems:"center",gap:1,bgcolor:"background.paper",border:1,borderColor:"divider",borderRadius:1,px:1.5,height:36,fontSize:"0.85rem",color:"text.primary",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:"#fcfcfc",borderColor:"#ccc"}},viewSwitch:{opt:{border:1,borderColor:"primary.main",borderRadius:2,color:"primary.main",bgcolor:"#fff",px:2,fontWeight:600,fontSize:"0.85rem",cursor:"pointer",height:36,display:"flex",alignItems:"center",gap:1,transition:"all 0.2s"}},iconOnly:{minWidth:34,width:34,height:34,p:0,backgroundColor:"#fff",border:"none",borderRadius:1,cursor:"pointer"},magicBtn:{background:"linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%)",border:"none",width:36,height:36,borderRadius:"12px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxShadow:"0 4px 10px rgba(34, 211, 238, 0.3)",transition:"all 0.2s ease",color:"#ffffff",overflow:"visible","& svg":{color:"#ffffff",stroke:"#ffffff",fill:"#ffffff",display:"block",width:"20px",height:"20px"},"&:hover":{transform:"translateY(-1px)",boxShadow:"0 6px 12px rgba(34, 211, 238, 0.4)"}}},promoPrintModal:{dialog:{borderRadius:2,maxWidth:480,maxHeight:"none"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",pb:1,borderBottom:1,borderColor:"divider"},content:{pt:2,overflowY:"visible",overflowX:"hidden",maxHeight:"none"},section:{mb:3},sectionTitle:{variant:"subtitle2",fontWeight:600,mb:1.5},checkboxLabel:{"& .MuiTypography-root":{fontSize:"0.9rem"}},designContainer:{display:"flex",gap:2,overflowX:"auto",overflowY:"hidden",flexWrap:"nowrap",pb:1,"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-track":{bgcolor:"#f0f0f0",borderRadius:1},"&::-webkit-scrollbar-thumb":{bgcolor:"#c0c0c0",borderRadius:1}},designCard:{base:{border:2,borderRadius:2.5,p:1.5,cursor:"pointer",width:160,minWidth:160,flexShrink:0,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:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},bottomInfo:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:600,color:"#000000",lineHeight:1.2},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:600,color:"#000000",letterSpacing:"0px",textAlign:"center"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"6px",fontWeight:600,color:"#000000"},validToText:{fontSize:"6px",fontWeight:600,color:"#000000"}},design2:{mainOfferBlock:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,mb:.5},offerLine:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,color:"#000000",lineHeight:1.2,textAlign:"center"},mrpBlock:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right",mb:.5,width:"100%"},rupeeSymbolSmall:{fontSize:"1em",fontWeight:600,verticalAlign:"baseline"},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design3:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},bigPrice:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},productName:{fontFamily:"Inter, sans-serif",fontSize:"9px",lineHeight:1.3,fontWeight:700,color:"#000000",letterSpacing:"0px",textAlign:"center",mt:.5},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#000000",fontFamily:"Arial, sans-serif"}},design4:{ourPriceHeader:{fontFamily:"Inter, sans-serif",fontSize:"12px",fontWeight:700,letterSpacing:"1px",color:"#000000",lineHeight:1.2,textAlign:"center",mb:.5},rupeeSymbol:{fontFamily:"Inter, sans-serif",fontSize:"24px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"top",position:"relative",top:"-0.12em"},priceWhole:{fontFamily:"Inter, sans-serif",fontSize:"28px",fontWeight:700,color:"#000000",lineHeight:1},priceDecimal:{fontFamily:"Inter, sans-serif",fontSize:"18px",fontWeight:700,color:"#000000",lineHeight:1,verticalAlign:"super"},saveMrpRow:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",mb:.5},saveAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"left"},mrpAmount:{fontFamily:"Inter, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"right"},rupeeSymbolSmall:{fontSize:"0.85em",fontWeight:600,verticalAlign:"baseline"},productCode:{fontFamily:"Inter, sans-serif",fontSize:"9px",fontWeight:700,color:"#000000",textAlign:"center",mb:.5,lineHeight:1.3,wordBreak:"break-word"},dateRow:{display:"flex",justifyContent:"space-between",width:"100%",mt:.5},validFromText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"},validToText:{fontSize:"5px",fontWeight:400,color:"#666666",fontFamily:"Arial, sans-serif"}},design5:{topSection:{display:"flex",width:"100%",height:"60%",borderBottom:"1px solid #000"},leftColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3,position:"relative"},rightColumn:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.3},verticalDivider:{width:"1px",backgroundColor:"#000"},rewardsLogo:{position:"absolute",top:"8%",left:"50%",transform:"translateX(-50%)",display:"flex",flexDirection:"column",alignItems:"center",gap:0},logoLine1:{display:"flex",alignItems:"baseline",gap:"2px"},logoMy:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontStyle:"italic",fontWeight:400,color:"#000000",lineHeight:1},logoSpencer:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",lineHeight:1,textDecoration:"underline"},logoRewards:{fontFamily:"Arial, sans-serif",fontSize:"7px",fontWeight:700,color:"#000000",lineHeight:1},rupeeSymbol1:{fontSize:"1.2em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.20em"},memberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"20px"},memberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},nonMemberPriceLabel:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.5px",marginTop:"10px"},nonMemberPriceValue:{fontFamily:"Arial, sans-serif",fontSize:"20px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1},rupeeSymbol:{fontSize:"0.85em",fontWeight:700,verticalAlign:"top",position:"relative",top:"-0.24em"},horizontalDivider:{width:"100%",height:"0.5px",backgroundColor:"#000"},middleSection:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.2,height:"20%",width:"100%",mt:.4},productName:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.3px"},mrpText:{fontFamily:"Arial, sans-serif",fontSize:"8px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2},rupeeSymbolSmall:{fontSize:"1em",fontWeight:700,verticalAlign:"baseline"},bottomSection:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:"auto",width:"100%",padding:"0 4px"},savingsMessage:{fontFamily:"Arial, sans-serif",fontSize:"6px",fontWeight:700,color:"#000000",textAlign:"center",lineHeight:1.2,letterSpacing:"0.2px"}},sheetSizeHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1.5},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"},actions:{px:3,pb:2},printButton:{bgcolor:"primary.main",color:"white",px:4,py:1,width:"100%","&:hover":{bgcolor:"primary.dark"}}},emptyProduct:{wrapper:{position:"relative",mx:-1,my:2,width:"100vw",maxWidth:"100vw",overflowX:"hidden"},card:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:"500px",bgcolor:"#fff",mx:12,py:8,borderRadius:3,border:"1px solid #e8e8e8",position:"relative",zIndex:1},iconContainer:{position:"relative",mb:3},sparkleContainer:{position:"absolute",top:-24,left:"50%",transform:"translateX(-50%)",width:50,display:"flex",justifyContent:"space-between"},sparkleLeft:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(-25deg)",transformOrigin:"bottom center"},sparkleCenter:{width:2,height:18,bgcolor:"#5b9bd5",borderRadius:1},sparkleRight:{width:2,height:14,bgcolor:"#5b9bd5",borderRadius:1,transform:"rotate(25deg)",transformOrigin:"bottom center"},inboxIcon:{width:90,height:70,border:"2.5px solid #5b9bd5",borderRadius:"8px",bgcolor:"#e8f4fc",position:"relative",overflow:"visible"},notch:{position:"absolute",top:-3,left:"50%",transform:"translateX(-50%)",width:36,height:22,bgcolor:"#fff",borderBottomLeftRadius:18,borderBottomRightRadius:18,borderLeft:"2.5px solid #5b9bd5",borderRight:"2.5px solid #5b9bd5",borderBottom:"2.5px solid #5b9bd5"},title:{fontSize:"16px",fontWeight:600,color:"#1a1a1a",mb:.5},subtitle:{fontSize:"14px",color:"#888",mb:1.5},actionLink:{fontSize:"14px",fontWeight:500,color:"#3b82f6",textDecoration:"none",cursor:"pointer","&:hover":{textDecoration:"underline"}}},productSettingModal:{modal:{display:"flex",alignItems:"center",justifyContent:"center","& .MuiBackdrop-root":{backdropFilter:"blur(1px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},container:{bgcolor:"#fff",borderRadius:2,boxShadow:24,width:"100%",maxWidth:360,outline:"none",overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",px:2.5,py:2,borderBottom:"1px solid #e8e8e8"},headerTitle:{fontSize:"16px",fontWeight:600,color:"#000"},closeButton:{color:"#666"},content:{px:2.5,py:2},radioIcon:{width:20,height:20},radioChecked:{color:"#000","&.Mui-checked":{color:"#000"},"&:hover":{bgcolor:"transparent"},"& .MuiTouchRipple-root":{display:"none"}},radioLabel:{fontSize:"14px",color:"#333"},formControlLabel:{mx:0,py:.75,borderRadius:1,"&.Mui-checked":{backgroundColor:"#ffeaea"}},upgradeSection:{display:"flex",alignItems:"center",justifyContent:"space-between",mt:2,pt:2,pl:2,pr:2,pb:2,borderRadius:1,borderTop:"1px solid #e8e8e8",bgcolor:"#F3F8FF"},upgradeText:{fontSize:"13px",color:"#000000",maxWidth:180},managePlanLink:{fontSize:"13px",fontWeight:500,color:"#2D64B8",cursor:"pointer"},footer:{px:2.5,pb:2.5},saveButton:{bgcolor:"#2D64B8",color:"#fff",textTransform:"none",fontSize:"14px",fontWeight:500,py:1.25,borderRadius:1.5,boxShadow:"none"}},stepper:{header:{width:"100%",display:"flex",flexDirection:"column",alignItems:"center",margin:"40px 0 32px 0"},container:{width:800,maxWidth:"90vw",margin:"0 auto",position:"relative"},row:{display:"flex",justifyContent:"center",position:"relative",minHeight:48,marginBottom:16},grayLine:{position:"absolute",top:65,height:2,background:"#e0e4ea",borderRadius:2,zIndex:0},greenBar:{position:"absolute",top:65,height:2,background:"#2ecc40",borderRadius:2,zIndex:1},label:{textAlign:"center",flex:1,position:"relative",zIndex:2,fontSize:16,marginBottom:8,fontFamily:"Inter, sans-serif"},activeColor:"#222",inactiveColor:"#b3b3b3",activeWeight:700,inactiveWeight:500,tickIconContainer:{height:32,marginBottom:2,display:"flex",alignItems:"center",justifyContent:"center"}}},n={root:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},summaryCards:{display:"flex",gap:3,my:4},summaryCard:{flex:1,borderRadius:12,boxShadow:"0 2px 8px #e0e0e0",p:2,minWidth:180,background:"#fff"},summaryTitle:{variant:"subtitle2",color:"text.secondary",gutterBottom:!0},summaryValue:{variant:"h4",fontWeight:700,color:"text.primary"},summarySubtitle:{variant:"body2",color:"primary",mt:1},summaryExtra:{variant:"caption",color:"error",mt:.5},categoryTable:{borderRadius:0,boxShadow:"none",background:"#f7f8fa",p:0,mb:3},categoryTableHeader:{display:"flex",alignItems:"center",fontWeight:600,color:"#222",fontSize:16,py:2,px:2.5,borderBottom:"1px solid #e0e0e0",background:"#f7f8fa",borderTopLeftRadius:0,borderTopRightRadius:0},categoryTableHeaderCell:{flex:2,marginLeft:7},categoryTableRow:r=>({display:"flex",alignItems:"center",py:2.5,px:2.5,...r===0?{mt:2}:{},mb:2,borderBottom:"none",background:"#fff",borderRadius:2,transition:"background 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.06)",marginLeft:0}),categoryNameCell:{flex:2},categoryName:{fontWeight:700,fontSize:18,color:"#222"},categoryProducts:{fontSize:14,color:"#888",mt:.5},categoryUpdated:{fontSize:13,color:"#aaa",mt:.5},categoryStockCell:{flex:2},categoryStock:()=>({fontSize:16,color:"#222",fontWeight:600}),categoryOSA:()=>({fontSize:14,color:"#e53935",mt:.5}),categoryImagesCell:{flex:2,display:"flex",gap:1.5},categoryImage:{width:48,height:48,borderRadius:8,border:"1px solid #eee",objectFit:"cover",background:"#f5f5f5"},categoryViewCell:{flex:1},categoryViewButton:{background:"none",color:"#444",fontWeight:400,fontSize:18,textTransform:"none",p:0,boxShadow:"none",justifyContent:"flex-end","&:hover":{background:"none",boxShadow:"none"}}};return t.categoryDetail=n,t}const Sm=0,wm=1e4;function Cm({open:e,filters:t={},onChange:n,onClose:r,onApply:i,priceRange:s}){const a=F.useMemo(()=>{const w=s?.min??t.minPrice??Sm,x=s?.max??t.maxPrice??wm;return{min:Number(w)||Sm,max:Math.max(Number(x)||wm,1)}},[s?.min,s?.max,t.minPrice,t.maxPrice]),l=t.status==="active"||t.status==="inactive"?t.status:"",c=t.stock==="inStock"||t.stock==="outOfStock"?t.stock:"",p=t.minPrice!=null&&Number.isFinite(Number(t.minPrice))?Number(t.minPrice):null,u=t.maxPrice!=null&&Number.isFinite(Number(t.maxPrice))?Number(t.maxPrice):null,h=p??a.min,v=u??a.max,b=(w,x)=>{n({...t,status:x===l?void 0:x||void 0})},g=(w,x)=>{n({...t,stock:x===c?void 0:x||void 0})},f=(w,x)=>{if(!Array.isArray(x)||x.length!==2)return;const S=Number(x[0]),C=Number(x[1]),O=Math.min(S,C),P=Math.max(S,C);n({...t,minPrice:O,maxPrice:P})},m=!!(t.status||t.stock||t.minPrice!=null||t.maxPrice!=null),y=()=>{const w={...t,status:void 0,stock:void 0,minPrice:void 0,maxPrice:void 0};n(w)};return d.jsxs(yi,{open:e,onClose:r,maxWidth:"xs",fullWidth:!0,children:[d.jsx(bi,{children:"Filter Products"}),d.jsx(wa,{children:d.jsxs(M,{display:"flex",flexDirection:"column",gap:3,pt:.5,children:[d.jsxs(Ea,{component:"fieldset",children:[d.jsx(Si,{component:"span",onClick:()=>n({...t,status:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Status"}),d.jsxs(Pa,{row:!0,value:l,onChange:b,name:"status",children:[d.jsx(Sn,{value:"active",control:d.jsx(oo,{size:"small"}),label:"Active"}),d.jsx(Sn,{value:"inactive",control:d.jsx(oo,{size:"small"}),label:"Inactive"})]})]}),d.jsxs(Ea,{component:"fieldset",children:[d.jsx(Si,{component:"span",onClick:()=>n({...t,stock:void 0}),sx:{fontWeight:600,color:"text.primary",mb:.5,cursor:"pointer",display:"inline-block",userSelect:"none"},children:"Stock"}),d.jsxs(Pa,{row:!0,value:c,onChange:g,name:"stock",children:[d.jsx(Sn,{value:"inStock",control:d.jsx(oo,{size:"small"}),label:"In Stock"}),d.jsx(Sn,{value:"outOfStock",control:d.jsx(oo,{size:"small"}),label:"Out of Stock"})]})]}),d.jsxs(M,{children:[d.jsx(Si,{sx:{fontWeight:600,color:"text.primary",mb:.5,display:"block"},children:"Price"}),d.jsxs(V,{variant:"body2",color:"text.secondary",sx:{mb:.5},children:["Min: ₹",h," — Max: ₹",v]}),d.jsx(M,{sx:{px:.5},children:d.jsx(am,{value:[h,v],onChange:f,min:a.min,max:a.max,valueLabelDisplay:"on",valueLabelFormat:w=>`₹${w}`,size:"small",disableSwap:!1,sx:{mt:1}})})]})]})}),d.jsxs(Kc,{sx:{gap:.5,flexWrap:"wrap"},children:[d.jsx(Xe,{onClick:r,children:"Cancel"}),m&&d.jsx(Xe,{variant:"contained",onClick:y,children:"Clear Filters"}),d.jsx(Xe,{variant:"contained",onClick:()=>i&&i(),children:"Apply"})]})]})}const Fa=({filters:e,onFilterChange:t,stores:n=[],onOpenFilterModal:r,StoresModal:i,storesModalProps:s,onStoreSelect:a,showBackButton:l=!1,backTo:c="/home",hideViewSwitch:p=!1,isHomeDefault:u=!1,tenantStatus:h={matched:!0},priceRange:v})=>{const b=gt();en();const g=wn(),[f,m]=F.useState("OSA"),[y,w]=F.useState(null),x=!!y,[S,C]=F.useState(!1),[O,P]=F.useState(!1),[$,A]=F.useState(e||{}),j=Array.isArray(e?.store)?e.store:[],L=()=>{w(null)},[T,k]=F.useState(j),_=Y=>{k(Y==="all"?["all"]:[Y])},D=Y=>{i?C(!0):(k(j.length===0?["all"]:j),w(Y.currentTarget))},N=()=>{t({...e,store:T}),w(null)},B=Y=>{a?a(Y):t({...e,store:Y}),C(!1)},I=()=>{C(!1)},z=g.topBar||{},R=z&&z.viewSwitch||{};return d.jsxs(d.Fragment,{children:[d.jsx(M,{sx:z.root,children:d.jsxs(M,{sx:z.inner,children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",marginBottom:"20px"},children:[l&&d.jsxs(Xe,{variant:"text",size:"small",sx:{minWidth:0,px:2,color:"#222",fontWeight:400,fontSize:15,textTransform:"none",display:"flex",alignItems:"center",background:"none",boxShadow:"none",border:"none","&:hover":{background:"none",boxShadow:"none"}},disableRipple:!0,onClick:()=>b(c),children:[d.jsx("span",{style:{fontSize:20,fontWeight:400,color:"#222",marginRight:6},children:"<"}),d.jsx("span",{style:{fontSize:15,fontWeight:400,color:"#222"},children:"Back"})]}),d.jsxs(M,{sx:z.searchBox,children:[d.jsx(Sd,{size:18,style:{position:"absolute",left:0,color:"#888"}}),d.jsx(pi,{placeholder:"Search Products",value:e.search,onChange:Y=>t({...e,search:Y.target.value}),sx:{...z.searchInput||{},pl:3.5}})]})]}),d.jsxs(M,{sx:z.controlGroup,children:[d.jsxs(M,{sx:{display:"flex",gap:1},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"6px",px:1.5,minWidth:80,cursor:"pointer",gap:1,...z.btn||{}},onClick:D,tabIndex:0,"aria-label":"Select stores",children:[d.jsx(Td,{size:18,style:{color:"#555",marginRight:4}}),d.jsx(V,{sx:{fontWeight:700,fontSize:15,color:"#222",mr:.5},children:j.length===0||j.includes("all")?"All Stores":j.length===1?"1 Store":`${j.length} Stores`}),d.jsx(V,{sx:{fontWeight:400,fontSize:15,color:"#888",ml:.5},children:` ${n.filter(Y=>Y.id!=="all"&&Y.storeCode!=="all").length} stores`}),d.jsx(Da,{size:16,color:"#888",style:{marginLeft:2}})]}),d.jsxs(id,{anchorEl:y,open:x,onClose:L,disableScrollLock:!0,PaperProps:{style:{minWidth:180}},children:[d.jsxs(on,{onClick:()=>_("all"),children:[d.jsx(Bn,{checked:T.length===0||T.includes("all")}),d.jsx(nd,{primary:"All Stores"})]}),d.jsx(Yt,{}),d.jsx(M,{sx:{maxHeight:104,overflowY:"auto"},children:n.filter(Y=>Y.id!=="all").map(Y=>d.jsxs(on,{onClick:()=>_(Y.id),children:[d.jsx(Bn,{checked:T.includes(Y.id)}),d.jsx(nd,{primary:Y.name})]},Y.id))}),d.jsx(Yt,{}),d.jsx(M,{sx:{display:"flex",justifyContent:"flex-end",p:1},children:d.jsx(Xe,{variant:"contained",size:"small",onClick:N,children:"Apply"})})]}),d.jsxs(M,{sx:z.btn,onClick:()=>{r?r():(A(e||{}),P(!0))},children:[d.jsx(V,{variant:"body2",children:u?"MTD":"Filters"}),d.jsx(Da,{size:14,color:"#888"})]}),d.jsxs(M,{sx:z.btn,children:[d.jsx(V,{variant:"body2",children:"Sort"}),d.jsx(hd,{size:16,style:{transform:"rotate(-90deg)"}})]})]}),d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),!p&&d.jsxs(M,{sx:{display:"flex",gap:1.5},children:[d.jsx(M,{component:"button",onClick:()=>m("OSA"),sx:{...R.opt||{},...f==="OSA"&&R.active},children:"OSA"}),d.jsx(M,{component:"button",onClick:()=>m("Catalogs"),sx:{...R.opt||{},...f==="Catalogs"&&R.active},children:"Catalogs"})]}),!p&&d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(M,{sx:{display:"flex",gap:1,alignItems:"center"},children:[!p&&d.jsxs(d.Fragment,{children:[d.jsx(M,{component:"button",sx:{...z.iconOnly,cursor:h.loading?"not-allowed":"pointer",opacity:h.loading?.5:1,background:"none",border:"none",outline:"none",boxShadow:"none",pointerEvents:h.loading?"none":"auto"},title:h.loading?"Loading...":"Settings",tabIndex:-1,onClick:()=>{h.loading||b("/product-setting",{state:{tenantIntegrationMatched:!!h.matched}})},children:d.jsx(Cd,{size:20})}),d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}})]}),d.jsx(M,{component:"button",sx:z.iconOnly,title:"More",children:d.jsx(vd,{size:20})})]}),d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{height:20,alignSelf:"center"}}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:2,ml:1},children:[d.jsx(M,{component:"button",sx:z.iconOnly,title:"Notifications",children:d.jsx(md,{size:20})}),d.jsx(M,{component:"button",sx:z.magicBtn,title:"AI Actions","aria-label":"AI Actions",children:d.jsx(Pd,{size:20})})]})]})]})}),i&&(()=>{const{open:Y,onClose:te,onStoreSelect:G,...q}=s||{};return d.jsx(i,{open:S,onClose:I,onStoreSelect:B,selectedStores:j,...q})})(),!r&&d.jsx(Cm,{open:O,filters:$,onChange:A,onClose:()=>P(!1),onApply:Y=>{t&&t(Y!==void 0?Y:$),P(!1)},priceRange:v})]})};function SN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){const r=wn(),i=Tt(),s=i.state?.filters||{category:"",status:"",search:"",store:[]},[a,l]=F.useState(s),[c,p]=F.useState(!1),[u,h]=F.useState(a),v=qe(j=>j.dashboard),b=v?.companyId??"",g=v?.products||[],f=g.reduce((j,L)=>(L?.id&&(j[L.id]=L),j),{}),m=g.map(j=>j?.id).filter(Boolean),y=F.useMemo(()=>v?.stores||[],[v?.stores]);console.log(m,"productIds we get at page");const w=Xt(),x=F.useRef(null),S=F.useRef(!1),C=F.useRef(!1);F.useEffect(()=>{!b&&!C.current&&(C.current=!0,w(_r()))},[w,b]),F.useEffect(()=>{if(!b)return;const j=Array.isArray(a.store)?a.store:[],L={};if(j.length>0&&!j.includes("all")){const k=j.map(_=>y.find(N=>N.id===_)?.storeCode).filter(Boolean);k.length>0&&(L.storeCode=k.join(","))}(a.status==="active"||a.status==="inactive")&&(L.status=a.status==="active"),(a.stock==="inStock"||a.stock==="outOfStock")&&(L.inStock=a.stock==="inStock"),typeof a.minPrice=="number"&&Number.isFinite(a.minPrice)&&(L.minPrice=a.minPrice),typeof a.maxPrice=="number"&&Number.isFinite(a.maxPrice)&&(L.maxPrice=a.maxPrice);const T=JSON.stringify(L);x.current===T&&S.current||(S.current=!0,x.current=T,w(Mn(Object.keys(L).length?L:{})))},[b,a.store,a.status,a.stock,a.minPrice,a.maxPrice,w,y]),F.useEffect(()=>{i.state?.filters&&setTimeout(()=>{l(i.state.filters)},0)},[i.state]),F.useEffect(()=>{Array.isArray(m)},[m,a,f]);const O=j=>{l(j)},P=()=>{h(a),p(!0)},$=y.length>0?y:[{id:"all",name:"All Stores",storeCode:"all"}],A=i.state&&i.state.tenantStatus||{matched:!0};return d.jsxs("div",{className:"app-container",children:[d.jsx(Fa,{styles:r,onFilterChange:O,filters:a,stores:$,onOpenFilterModal:P,StoresModal:e,storesModalProps:t,onStoreSelect:n,showBackButton:!0,tenantStatus:A}),d.jsx("div",{className:"product-main-container"}),d.jsx(Cm,{open:c,filters:u,onChange:h,onClose:()=>p(!1),onApply:j=>{l(j!==void 0?j:u),p(!1)}})]})}const Em=Ge(d.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"),wN=e=>d.jsx(ti,{...e,viewBox:"0 0 24 24",children:d.jsx("path",{d:"M21,16.5C21,16.88 20.79,17.21 20.47,17.38L12.57,21.82C12.41,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L3.53,17.38C3.21,17.21 3,16.88 3,16.5V7.5C3,7.12 3.21,6.79 3.53,6.62L11.43,2.18C11.59,2.06 11.79,2 12,2C12.21,2 12.41,2.06 12.57,2.18L20.47,6.62C20.79,6.79 21,7.12 21,7.5V16.5M12,4.15L6.04,7.5L12,10.85L17.96,7.5L12,4.15M5,15.91L11,19.29V12.58L5,9.21V15.91M19,15.91V9.21L13,12.58V19.29L19,15.91Z"})}),CN=()=>{const e=gt(),t=Xt(),n=wn(),{metrics:r,loading:i}=qe(C=>C.dashboard),[s,a]=F.useState({search:"",store:[],category:"all",status:"all"}),l=C=>a(C),[c,p]=F.useState(new Date);F.useEffect(()=>{t(ms())},[t]),F.useEffect(()=>{const C=setInterval(()=>{p(new Date)},6e4);return()=>clearInterval(C)},[]);const u=c.toLocaleString("en-US",{month:"short"}).toUpperCase(),h=c.getDate(),v=c.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0}),b=r?.activeProducts||0,g=r?.activeCatalogues||0,f=r?.osa||{},m=C=>!C||C===0?"0":C>=1e3?(C/1e3).toFixed(0)+"K":C.toString(),y=f?.availableProducts||0,w=f?.totalRequests||0,x=f?.availabilityPercentage||0,S=w>0?100-x:0;return d.jsxs(d.Fragment,{children:[d.jsx(Fa,{styles:n.topBar,filters:s,onFilterChange:l,stores:[],hideViewSwitch:!0,isHomeDefault:!0}),d.jsxs(M,{sx:{p:4,bgcolor:"#f7f8fa",minHeight:"100vh"},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:3,mb:3},children:[d.jsx(zn,{sx:{minWidth:80,bgcolor:"#f7f8fa",boxShadow:0,borderRadius:2,textAlign:"center",p:1},children:d.jsxs(Sg,{sx:{p:1},children:[d.jsx(V,{variant:"body2",color:"text.secondary",children:u}),d.jsx(V,{variant:"h6",fontWeight:400,color:"#000000",children:h}),d.jsx(V,{variant:"caption",color:"text.secondary",children:v})]})}),d.jsxs(M,{children:[d.jsxs(V,{variant:"h6",fontWeight:700,children:["Hi Ashok ",d.jsx("span",{role:"img","aria-label":"wave",children:"👋"})]}),d.jsx(V,{variant:"body2",color:"text.secondary",children:"You have 3 new updates"})]})]}),d.jsx(M,{sx:{mt:2},children:d.jsxs(zn,{sx:{borderRadius:2,boxShadow:0,p:2,mb:2,maxWidth:520},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:2},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:1},children:[d.jsx(wN,{sx:{fontSize:24,color:"#000000"}}),d.jsxs(V,{variant:"h6",fontWeight:700,children:["Products ",d.jsx("span",{style:{fontWeight:400,fontSize:"16px",color:"#888"},children:i?"...":b})]})]}),d.jsxs(V,{variant:"body2",marginRight:10,color:"#4a90e2",sx:{cursor:"pointer"},onClick:()=>e("/"),children:["Report ",">"]})]}),d.jsxs(M,{sx:{display:"flex",gap:2},children:[d.jsxs(zn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(V,{variant:"body2",color:"#454545",children:"Active Products"}),d.jsx(V,{variant:"h6",fontWeight:700,children:i?"...":b}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(Em,{sx:{fontSize:16,color:"#4caf50"}}),d.jsx(V,{variant:"caption",color:"text.secondary",children:"Sync 4h ago"})]})]}),d.jsxs(zn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(V,{variant:"body2",color:"#454545",children:"Active Catalogs"}),d.jsx(V,{variant:"h6",fontWeight:700,children:i?"...":g}),d.jsx(V,{variant:"caption",color:"text.secondary",children:"4 public links"})]}),d.jsxs(zn,{sx:{flex:1,border:"1px solid #F1F1F1",bgcolor:"#FFFFFF",borderRadius:2,boxShadow:0,p:2},children:[d.jsx(V,{variant:"body2",color:"#454545",sx:{mb:0},children:"On Shelf Yesterday"}),d.jsxs(V,{variant:"h6",fontWeight:700,sx:{mb:.5},children:[i?"...":`${x}%`,d.jsx(V,{component:"span",variant:"caption",color:"text.secondary",sx:{ml:.5,fontWeight:400},children:i?"":`${m(y)}/${m(w)}`})]}),d.jsx(V,{variant:"caption",color:"error",children:i?"":`${S.toFixed(0)}% missing`})]})]})]})})]})]})};function Ai({loading:e,handleStartSyncing:t,categoryName:n,sessionExpired:r=!1,hasIntegration:i=!1,hideSubtitleAndAction:s=!1}){const a=gt(),l=wn(),[c]=F.useState({matched:!1,error:"",apiResponse:null,loading:!1});let p=l&&l.emptyProduct?l.emptyProduct:{wrapper:{},card:{},iconContainer:{},sparkleContainer:{},sparkleLeft:{},sparkleCenter:{},sparkleRight:{},inboxIcon:{},notch:{},title:{},subtitle:{},actionLink:{}};const h=qe(g=>g?.dashboard)?.products||[],v=t||(()=>a("/product-setting")),b=!r&&!e&&Array.isArray(h)&&h.length===0;return d.jsx(M,{sx:{minHeight:"100vh",bgcolor:"#f5f7fa",overflowX:"hidden"},children:d.jsx(M,{sx:p.wrapper,children:d.jsxs(M,{sx:p.card,children:[d.jsxs(M,{sx:p.iconContainer,children:[d.jsxs(M,{sx:p.sparkleContainer,children:[d.jsx(M,{sx:p.sparkleLeft}),d.jsx(M,{sx:p.sparkleCenter}),d.jsx(M,{sx:p.sparkleRight})]}),d.jsx(M,{sx:p.inboxIcon,children:d.jsx(M,{sx:p.notch})})]}),d.jsx(V,{sx:p.title,children:r?"Session Expired":n?`No Product in ${n} Category`:"No Products"}),!s&&d.jsx(V,{sx:p.subtitle,children:r?"Your session has expired or your token is invalid. Please log in again.":e?"Loading products from store inventory...":n&&!b?`No products found in the "${n}" category.`:b?"No products found in store inventory. Start syncing to add products.":c.matched?"Active integrations fetched successfully":c.error?c.error:"No active integration found for this tenant id"}),!s&&!e&&!r&&b&&!i&&d.jsx(V,{component:"a",href:"#",sx:p.actionLink,onClick:g=>{g.preventDefault(),v()},children:"Start Syncing Products"})]})})})}const EN=Ge(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),TN=Ge(d.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link"),Tm=({productState:e,categoryName:t,categoryProductCount:n,activeCatalogsCount:r=0,onManageClick:i})=>{const s=t?`${t} Products`:"Categories",a=t?n:e.homePageCardSummary?.totalCategories||0,l=t?"":"Products",c=t?"":e.homePageCardSummary?.totalProducts||0;return d.jsxs(M,{sx:{display:"flex",gap:2,mb:3,flexWrap:"wrap"},children:[d.jsx(Id,{fontSize:14,title:s,titleValue:a,subtitle:l,subtitleValue:c,recentText:e.homePageCardSummary?.lastSync?`Sync ${e.homePageCardSummary.lastSync}`:"",tickMarkRequired:!0,btnLabel:"History"}),d.jsx(Id,{title:"Active Catalogs",titleValue:r,recentText:"4 public links",linkRequired:!0,btnLabel:"Manage",onBtnClick:i}),d.jsx(Id,{title:"On Shelf Yesterday",titleValue:"78%",thirdVaue:"78/100X",recentText:"22% mising",recentTextColor:"#FF2929",btnLabel:"Report"})]})};function Id({title:e="",subtitle:t="",titleValue:n="",thirdVaue:r="",subtitleValue:i="",recentText:s="",recentTextColor:a="#808080",btnLabel:l="",tickMarkRequired:c=!1,linkRequired:p=!1,onBtnClick:u}){return d.jsxs(zn,{sx:{flex:1,minWidth:250,bgcolor:"#fff",borderRadius:3,boxShadow:"0 2px 8px #e0e0e0",p:2.5},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"flex-start",mb:1},children:[e&&d.jsxs(M,{sx:{flex:1,textAlign:"left"},children:[d.jsx(V,{variant:"body2",color:"#454545",fontSize:18,children:e}),d.jsxs(V,{variant:"h5",fontWeight:500,color:"#454545",fontSize:28,children:[n,d.jsx(V,{variant:"caption",ml:1,color:"#808080",fontSize:12,children:r})]})]}),t&&d.jsxs(M,{sx:{flex:1,textAlign:"left"},children:[d.jsx(V,{variant:"body2",color:"#454545",fontSize:18,children:t}),d.jsx(V,{variant:"h5",fontWeight:500,color:"#454545",fontSize:28,children:i})]})]}),d.jsx(Yt,{}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",mt:1},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",flex:1},children:[c&&d.jsx(EN,{sx:{color:"#22c55e",fontSize:18,mr:.5}}),p&&d.jsx(TN,{sx:{color:"#2563eb",fontSize:18,mr:.5}}),d.jsx(V,{variant:"caption",color:a,fontSize:12,children:s})]}),l&&d.jsxs(Xe,{variant:"text",size:"small",onClick:u,sx:{color:"#2563eb",textTransform:"none",fontWeight:500,minWidth:0,p:0},children:[l," >"]})]})]})}function ON(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var PN=function(t){var n=t.size,r=n===void 0?24:n,i=t.className,s=i===void 0?"":i,a=t.fill,l=a===void 0?"none":a,c=ON(t,["size","className","fill"]);return F.createElement("svg",Object.assign({width:r,height:r,viewBox:"0 0 24 24",fill:l,stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-chevron-right ".concat(s)},c),F.createElement("g",null,F.createElement("polyline",{points:"9 18 15 12 9 6"})))};function kN({categoryData:e=[],styles:t={},onView:n}){return console.log("Table.jsx categoryData:",e),d.jsxs(zn,{sx:t.categoryTable,children:[d.jsxs(M,{sx:t.categoryTableHeader,children:[d.jsx(M,{sx:t.categoryTableHeaderCell,children:"Category"}),d.jsx(M,{sx:t.categoryTableHeaderCell,children:"Stock / OSA"}),d.jsx(M,{sx:t.categoryTableHeaderCell,children:"Products"}),d.jsx(M,{sx:t.categoryTableHeaderCell})]}),e.map((r,i)=>d.jsxs(M,{sx:t.categoryTableRow(i),children:[d.jsxs(M,{sx:t.categoryNameCell,children:[d.jsx(V,{sx:t.categoryName,children:r.name}),d.jsxs(V,{sx:t.categoryProducts,children:[r.products," Products"]}),d.jsxs(V,{sx:t.categoryUpdated,children:["Updated ",r.updated]})]}),d.jsxs(M,{sx:t.categoryStockCell,children:[d.jsx(V,{sx:t.categoryStock(i),children:r.stock}),d.jsx(V,{sx:t.categoryOSA(i),children:r.osa})]}),d.jsx(M,{sx:t.categoryImagesCell,children:r.images.map((s,a)=>d.jsx(ma,{src:s,alt:r.name+" product",sx:t.categoryImage},a))}),d.jsx(M,{sx:t.categoryViewCell,children:d.jsxs(Xe,{variant:"contained",color:"primary",sx:t.categoryViewButton,onClick:()=>n&&n(r),children:["View",d.jsx(PN,{size:20,style:{marginLeft:6}})]})})]},r.name))]})}const NN=()=>{const e=Xt(),t=gt(),r=wn().categoryDetail,[i,s]=F.useState({category:"all",status:"all",search:"",store:[]}),{integrationData:a,companyId:l,loading:c,error:p}=qe(T=>T.dashboard),u=F.useMemo(()=>a&&typeof a=="object"&&Object.keys(a).length>0?{matched:!0,error:"",apiResponse:a,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[a]),h=qe(T=>T.dashboard),{categorySummary:v=[],products:b=[],stores:g=[]}=h||{},f=v,{sharedCatalogues:m=[]}=qe(T=>T.productSettings??{}),y=F.useMemo(()=>Array.isArray(m)?m.filter(T=>T.status===!0).length:0,[m]),w=Array.isArray(b)&&b.length>0,x=()=>{u.matched?t("/product-setting",{state:{tenantIntegrationMatched:!0}}):t("/product-setting",{state:{tenantIntegrationMatched:!1}})},S=g.length>0?g:[{id:"all",name:"All Stores",storeCode:"all"}],C=T=>{s(T)},O=F.useRef(null);F.useEffect(()=>{if(!l)return;const T=Array.isArray(i.store)?i.store:[],k={};if(T.length>0&&!T.includes("all")){const D=T.map(N=>g.find(I=>I.id===N)?.storeCode).filter(Boolean);D.length>0&&(k.storeCode=D.join(","))}(i.status==="active"||i.status==="inactive")&&(k.status=i.status==="active"),(i.stock==="inStock"||i.stock==="outOfStock")&&(k.inStock=i.stock==="inStock"),typeof i.minPrice=="number"&&Number.isFinite(i.minPrice)&&(k.minPrice=i.minPrice),typeof i.maxPrice=="number"&&Number.isFinite(i.maxPrice)&&(k.maxPrice=i.maxPrice);const _=JSON.stringify(k);O.current!==_&&(O.current=_,e(Mn(Object.keys(k).length?k:{})))},[l,i.store,i.status,i.stock,i.minPrice,i.maxPrice,e,g]);const[P,$]=F.useState(!1);F.useEffect(()=>{!l&&!P?e(_r()).finally(()=>{$(!0)}):l&&queueMicrotask(()=>$(!0))},[e,l,P]);const A=F.useRef(null);F.useEffect(()=>{l&&l!==A.current&&(A.current=l,e(Nt(l)),e(Mn()),e(Dr({page:1})))},[e,l]);const j=T=>{t(`/category?categoryName=${encodeURIComponent(T.name)}`)},L=P&&p&&!l;return d.jsxs(d.Fragment,{children:[!L&&d.jsx(Fa,{filters:i,onFilterChange:C,styles:r.topBar,stores:S,tenantStatus:u,hasProducts:w}),L?d.jsx(Ai,{handleStartSyncing:x,loading:!1,sessionExpired:!0}):!P&&!l?d.jsx(Ai,{handleStartSyncing:x,loading:!0,sessionExpired:!1}):w?d.jsxs(M,{sx:r.root,children:[d.jsx(Tm,{productState:h,activeCatalogsCount:y,onManageClick:()=>t("/catalogs/manage-shared")}),d.jsx(kN,{categoryData:f,styles:r,onView:j})]}):d.jsx(Ai,{handleStartSyncing:x,loading:c,sessionExpired:!1,hasIntegration:u.matched})]})};function ht({icon:e,title:t,subtitle:n,subtitleValue:r,onClick:i,selected:s,highlightStyle:a={},action:l,disabled:c=!1,customStyle:p={}}){const h={card:{...{background:"#fff",borderRadius:2,boxShadow:"0 1px 4px #0001",border:"1px solid #e6eaf1",display:"flex",alignItems:"center",px:2.5,py:1.5,mb:2,cursor:i&&!c?"pointer":"default",minHeight:60,opacity:c?.5:1,...s?a:{}},...p},cardInner:{display:"flex",alignItems:"center",flex:1},icon:{display:"flex",alignItems:"center",mr:2},title:{fontWeight:700,fontSize:15,color:c?"#999":"#222",lineHeight:1.2},subtitle:{color:c?"#bbb":"#888",fontSize:13,fontWeight:400,mt:.5,lineHeight:1.3}};return d.jsxs(M,{onClick:c?void 0:i,sx:{...h.card,...p||{}},children:[e&&d.jsx(M,{sx:h.icon,children:e}),d.jsxs(M,{sx:h.cardInner,children:[d.jsxs(M,{children:[d.jsx(V,{sx:h.title,children:t}),n&&d.jsx(V,{sx:h.subtitle,children:r?`${r} ${n}`:n})]}),l&&d.jsx(M,{sx:{ml:"auto"},children:l})]})]})}const IN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),AN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),Om=e=>{const t=AN(e);return t.charAt(0).toUpperCase()+t.slice(1)},Pm=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),MN=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var _N={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 $N=F.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:a,...l},c)=>F.createElement("svg",{ref:c,..._N,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Pm("lucide",i),...!s&&!MN(l)&&{"aria-hidden":"true"},...l},[...a.map(([p,u])=>F.createElement(p,u)),...Array.isArray(s)?s:[s]]));const Cr=(e,t)=>{const n=F.forwardRef(({className:r,...i},s)=>F.createElement($N,{ref:s,iconNode:t,className:Pm(`lucide-${IN(Om(e))}`,`lucide-${e}`,r),...i}));return n.displayName=Om(e),n};const DN=Cr("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 FN=Cr("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const jN=Cr("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);const km=Cr("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const Et=Cr("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 Ad=Cr("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"}]]);const LN=Cr("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function zN({airaAiEnabled:e,setAiraAiEnabled:t,selectedCard:n,setSelectedCard:r,syncStep:i=0,syncMethod:s="",onSetupSync:a=()=>{},onSyncNow:l=()=>{},integrationData:c={},...p}){const u={bgcolor:"#F3F8FF",border:"1px solid #2D64B8"},h=gt();c?.configs;const v=c?.configs?.sync_frequency||"Daily",b=c?.configs?.sync_time||"10:00 AM",g=c?.type||s||"FTP";return i===3?d.jsxs(M,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(V,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(ht,{icon:d.jsx(Ad,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(dd,{checked:e,onChange:f=>t&&t(f.target.checked)})}),d.jsxs(V,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:"#1976d2",fontWeight:500,fontSize:15,cursor:"pointer"},onClick:l,children:"Sync Now"})]}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u,disabled:!0}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})}),d.jsxs(M,{sx:{display:"flex",gap:2},children:[d.jsx(M,{sx:{flex:1},children:d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:v,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(M,{sx:{flex:1},children:d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Time",subtitle:b,highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]}):d.jsxs(M,{sx:{maxWidth:600,mx:"auto",mt:4},children:[d.jsxs(V,{sx:{fontWeight:700,fontSize:16,mb:1},children:["General ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"})]}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#666"}),title:"Manage Shared Catalogs",onClick:()=>h("/catalogs/manage-shared"),selected:n==="catalogs",highlightStyle:u}),d.jsx(ht,{icon:d.jsx(Ad,{size:18,color:"#888"}),title:"Aira AI",subtitle:"Make your workflows faster and smarter",onClick:()=>r&&r("aira-ai"),selected:n==="aira-ai",highlightStyle:u,action:d.jsx(dd,{checked:e,onChange:f=>t&&t(f.target.checked)})}),d.jsxs(V,{sx:{fontWeight:700,fontSize:16,mb:1,mt:3},children:["Sync ",d.jsx("span",{style:{color:"#bdbdbd",fontWeight:400,fontSize:14},children:"2"}),d.jsx("span",{style:{float:"right",color:i===0?"#bbb":"#1976d2",fontWeight:500,fontSize:15,cursor:i===0?"not-allowed":"pointer",opacity:i===0?.5:1},onClick:i===0?void 0:l,children:"Sync Now"})]}),i===0&&d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Setup Sync",subtitle:"Sync products",onClick:a,highlightStyle:u}),i===1&&d.jsxs(d.Fragment,{children:[d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Method",subtitle:g,highlightStyle:u}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:`Setup ${g} Details`,subtitle:"Start setup",onClick:()=>{h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})},highlightStyle:u})]}),i===3&&d.jsxs(d.Fragment,{children:[d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Method",subtitle:s||"FTP",highlightStyle:u,disabled:!0}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"FTP Details",subtitle:"Sync source",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromSyncStep:i}})}),d.jsxs(M,{sx:{display:"flex",gap:2},children:[d.jsx(M,{sx:{flex:1},children:d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Frequency",subtitle:"Daily",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncFrequency",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})}),d.jsx(M,{sx:{flex:1},children:d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync Time",subtitle:"10:00 AM",highlightStyle:u,onClick:()=>h("/products/settings/ftp-sync",{state:{fromProductSetting:!0,fieldToEdit:"syncTime",integrationData:c}}),customStyle:{boxShadow:"0 2px 8px rgba(0, 0, 0, 0.08)",border:"1px solid #e0e7ff",transition:"all 0.2s ease","&:hover":{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.12)",transform:"translateY(-1px)",borderColor:"#2D64B8"}}})})]}),d.jsx(ht,{icon:d.jsx(Et,{size:18,color:"#888"}),title:"Sync History",subtitle:"12,139 items",highlightStyle:u})]})]})}const er=({breadcrumbRight:e="Settings",onBack:t,breadcrumbs:n})=>{const r=wn(),i=(a=15)=>!n||!Array.isArray(n)||n.length===0?null:d.jsx(M,{sx:{display:"flex",alignItems:"center"},children:n.map((l,c)=>d.jsxs(F.Fragment,{children:[c>0&&d.jsx(km,{size:a-2,color:"#bbb",style:{margin:"0 7px"}}),d.jsx(V,{sx:{color:c===n.length-1?"#111":"#888",fontWeight:c===n.length-1?700:500,fontSize:a},children:l.label})]},l.label))}),s=r;return d.jsxs(M,{sx:s.settingTopbar?.root||{display:"flex",alignItems:"center",justifyContent:"space-between",background:"#fff",minHeight:56,px:2,borderBottom:"1px solid #eee",mb:0},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center"},children:[d.jsxs(M,{onClick:t,sx:{display:"flex",alignItems:"center",cursor:"pointer",mr:2},children:[d.jsx(jN,{size:18}),d.jsx(V,{sx:{ml:1,color:"#888",fontWeight:500},children:"Back"})]}),d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{mx:2,height:24}}),n&&n.length>0?i(16):d.jsxs(d.Fragment,{children:[d.jsx(V,{sx:{color:"#888",fontWeight:500,mr:1},children:"Products"}),d.jsx(km,{size:16,color:"#bbb",style:{margin:"0 8px"}}),d.jsx(V,{sx:{fontWeight:600},children:e})]})]}),d.jsxs(M,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Yt,{orientation:"vertical",flexItem:!0,sx:{height:24,mx:3}}),d.jsx(jt,{size:"small",sx:{color:"#888",mx:1},children:d.jsx(DN,{size:20})}),d.jsx(M,{sx:{width:30,height:30,bgcolor:"#1976d2",borderRadius:"30%",display:"flex",alignItems:"center",justifyContent:"center",ml:1},children:d.jsx(Ad,{size:16,color:"#fff"})})]})]})};function BN({open:e,onClose:t,onSave:n}){en();const r=wn(),[i,s]=F.useState("sftp"),a=[{value:"sftp",label:"SFTP"},{value:"webhook",label:"Webhook"},{value:"aira-api",label:"AIRA API"},{value:"file-upload",label:"File Upload"}],l=h=>s(h.target.value),c=()=>{n&&n(i),t()},p=()=>{},u=r.productSettingModal;return d.jsx(mi,{open:e,onClose:t,"aria-labelledby":"product-sync-setting-modal",sx:u.modal,children:d.jsxs(M,{sx:u.container,children:[d.jsxs(M,{sx:u.header,children:[d.jsx(V,{sx:u.headerTitle,children:"Sync Method"}),d.jsx(jt,{onClick:t,size:"small",sx:u.closeButton,children:d.jsx(LN,{size:20})})]}),d.jsxs(M,{sx:u.content,children:[d.jsx(Pa,{value:i,onChange:l,children:a.map(h=>d.jsx(Sn,{value:h.value,control:d.jsx(oo,{icon:d.jsx(M,{sx:u.radioIcon}),checkedIcon:d.jsx(FN,{size:18,color:"#000"}),sx:u.radioChecked}),label:d.jsx(V,{sx:u.radioLabel,children:h.label}),sx:{...u.formControlLabel,...i===h.value&&{backgroundColor:"#F3F8FF"}}},h.value))}),d.jsxs(M,{sx:u.upgradeSection,children:[d.jsx(V,{sx:u.upgradeText,children:"Upgrade for higher sync limits and more features"}),d.jsx(V,{onClick:p,sx:u.managePlanLink,children:"Manage Plan >"})]})]}),d.jsx(M,{sx:u.footer,children:d.jsx(Xe,{fullWidth:!0,variant:"contained",onClick:c,sx:u.saveButton,children:"Save"})})]})})}const RN=({isOpen:e,onClose:t,onConfirm:n})=>{const r=wn();let i;return i=r.productSettingModal,d.jsx(mi,{open:e,onClose:t,"aria-labelledby":"sync-now-modal",sx:i.modal,children:d.jsxs(M,{sx:i.container,children:[d.jsx(M,{sx:i.header,children:d.jsx(V,{sx:{...i.headerTitle,fontSize:22},children:"Are you sure to SyncNow ?"})}),d.jsxs(M,{sx:{...i.footer,flexDirection:"row",gap:2,justifyContent:"center"},children:[d.jsx(Xe,{variant:"contained",color:"primary",onClick:n,sx:{minWidth:100,mx:4},children:"Yes"}),d.jsx(Xe,{variant:"outlined",color:"primary",onClick:t,sx:{minWidth:100},children:"No"})]})]})})};function WN(){const e=Tt(),t=gt(),n=Xt(),{companyId:r,integrationData:i,loading:s}=qe(k=>k?.dashboard||{}),[a,l]=F.useState(!0),[c,p]=F.useState(),[u,h]=F.useState(0),[v,b]=F.useState(""),[g,f]=F.useState(!1),[m,y]=F.useState(!1),[w,x]=F.useState(!1),[S,C]=F.useState(""),O=F.useRef(null),P=F.useRef(!1);F.useEffect(()=>{const k=e.state?.tenantIntegrationMatched===!0;r&&r!==O.current&&!s&&(i&&(i?.id||i?.channelId||i?.configs||typeof i=="object"&&Object.keys(i).length>0)?O.current=r:(O.current=r,n(Nt(r)))),k&&r&&!s&&!P.current&&(console.log("[ProductSetting] Refreshing integration data after PATCH update..."),P.current=!0,n(Nt(r))),k||(P.current=!1)},[r,n,s,i,e.state]),F.useEffect(()=>{let k=!1;e.state&&typeof e.state.tenantIntegrationMatched=="boolean"&&(k=e.state.tenantIntegrationMatched);const _=i&&(i?.id||i?.channelId||i?.configs||Array.isArray(i?.data)&&i.data.length>0||typeof i=="object"&&Object.keys(i).length>0),D=e.state?.fromSyncStep===1?1:k===!0||_?3:0;queueMicrotask(()=>h(D))},[e.state,i]);const $=()=>f(!0),A=k=>{b(k),h(1),f(!1)},j=()=>{t("/products/settings/ftp-sync",{state:{fromSyncStep:u}})},L=async()=>{const k=i?.channelId||i?.id;if(!k){C("Channel ID not found"),x(!0),y(!1);return}y(!1);try{const _=await n($o(k));if($o.fulfilled.match(_)){const D=_.payload?.message==="Sync started successfully"?"Sync started successfully":"Sync not started successfully";C(D),x(!0),D==="Sync started successfully"&&setTimeout(()=>{n(Nt(r)),n(Mn()),t("/")},2500)}else C("Sync not started successfully"),x(!0)}catch{C("Sync not started successfully"),x(!0)}},T=()=>{u===1?(h(0),b("")):t("/")};return d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbRight:"Settings",onBack:T}),d.jsx(BN,{open:g,onClose:()=>f(!1),onSave:A}),d.jsx(RN,{isOpen:m,onClose:()=>y(!1),onConfirm:L}),d.jsx(Pi,{open:w,autoHideDuration:4e3,onClose:()=>x(!1),message:S,anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsx(zN,{airaAiEnabled:a,setAiraAiEnabled:l,selectedCard:c,setSelectedCard:p,syncStep:u,syncMethod:v,integrationData:i,onSetupSync:$,onSetupFTP:j,onSyncNow:()=>y(!0)})]})}const Nm=["Setup FTP","Check data","Start Sync"],VN=e=>{const{onBack:t}=e,n=Tt(),r=gt();n.state?.tenantIntegrationData;const i=n.state?.fromSyncStep,s=()=>{t?t():i!==void 0?r("/product-setting",{state:{fromSyncStep:i,tenantIntegrationMatched:i===3}}):r("/product-setting")};return d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:s}),d.jsxs(M,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",px:4,mb:2},children:Nm.map((a,l)=>d.jsx("span",{style:{fontWeight:l===0?700:400,color:"#222",fontSize:16,flex:1,textAlign:l===0?"left":l===Nm.length-1?"right":"center"},children:a},a))}),d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,minWidth:600,bgcolor:"#fff"},children:d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsxs(nn,{elevation:0,sx:{mt:4,p:4,borderRadius:4,background:"#fafafa",minWidth:400,maxWidth:420},children:[d.jsx(V,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Setup Instructions"}),d.jsxs("ol",{style:{color:"#222",fontSize:16,margin:0,paddingLeft:20,marginBottom:24},children:[d.jsx("li",{children:"Directory should have just one file"}),d.jsx("li",{children:"File format must be in CSV (comma separated)"}),d.jsx("li",{children:"File structure should be flat"})]}),d.jsx(M,{sx:{display:"flex",justifyContent:"flex-end"},children:d.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:()=>e.onNext&&e.onNext(),children:"Next"})})]})})})]})]})},UN=Ge(d.jsx("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V10h16zm0-13H4V5h16z"}),"CalendarTodayOutlined"),HN=Ge(d.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),qN=Ge(d.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),Im=Ge(d.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),YN=Ge(d.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),KN=Ge(d.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"}),"EditOutlined"),GN=Ge(d.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline"),XN=Ge(d.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),JN=Ge([d.jsx("path",{d:"M20 2H4c-1 0-2 .9-2 2v3.01c0 .72.43 1.34 1 1.69V20c0 1.1 1.1 2 2 2h14c.9 0 2-.9 2-2V8.7c.57-.35 1-.97 1-1.69V4c0-1.1-1-2-2-2m-1 18H5V9h14zm1-13H4V4h16z"},"0"),d.jsx("path",{d:"M9 12h6v2H9z"},"1")],"Inventory2Outlined"),Md=Ge(d.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),QN=Ge(d.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),ZN=Ge(d.jsx("path",{d:"M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4"}),"PersonOutline"),eI=Ge(d.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"}),"Public"),tI=Ge(d.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),nI=Ge(d.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff"),rI=({active:e,completed:t,showBlue:n})=>{const r=!e&&!t,i=n?"#2563eb":"#bbb";return d.jsx(M,{sx:{width:24,height:24,borderRadius:"50%",border:`2px solid ${i}`,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff"},children:r?d.jsx("svg",{width:14,height:14,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 10l5 5 5-5",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):d.jsx("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:i,strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})})},ja=({steps:e=[],activeStep:t=0,showCheckDataBlueTick:n=!1,progressToCheckData:r=!1,showSetupFtpBlueTick:i=!1,showStartSyncBlueTick:s=!1,instantComplete:a=!1,progressSegment:l,filledSegments:c,filledSegmentsStart:p=0,previousStepsComplete:u=!1})=>{const v=en().transitions?.duration?.standard??400,[b,g]=F.useState(0),[f,m]=F.useState(!1),y=Math.max(1,e.length),w=50/y,x=100*(y-1)/y,S=40/y,C=y>1?100/y:0,O=100,P=F.useMemo(()=>{let $;if(typeof c=="number"){const j=typeof p=="number"?p:0,L=c-j;$=C*(j+b*L)}else typeof l=="number"?$=C*(l+b):s?$=b?x:0:r?$=b?x*.5:0:$=b?S:0;const A=Math.min($,x)/x;return Math.round(A*O)},[b,c,p,l,s,r,C,x,S]);return F.useEffect(()=>{if(a){setTimeout(()=>{g(1),m(!0)},0);return}if(typeof c=="number"&&typeof p=="number"&&p>0){setTimeout(()=>{g(0),m(!1)},0);const A=setTimeout(()=>{g(1),setTimeout(()=>m(!0),v)},50);return()=>clearTimeout(A)}setTimeout(()=>{g(0),m(!1)},0);const $=setTimeout(()=>{g(1),setTimeout(()=>m(!0),v)},50);return()=>clearTimeout($)},[t,e.length,r,a,c,p,v]),d.jsxs(M,{sx:{width:"100%",p:"24px 0 0 0"},children:[d.jsx(M,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",px:4},children:e.map(($,A)=>d.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center",flex:1},children:[d.jsx(rI,{active:A===t,completed:A<t,showBlue:A===0&&i||A===1&&n&&(f||u)||A===2&&s}),d.jsx("span",{style:{fontWeight:A===t?700:400,color:A<=t?"#222":"#9ca3af",fontSize:16,marginTop:8},children:$})]},$))}),d.jsx(M,{sx:{px:4,mt:1,mb:0},children:d.jsx(M,{sx:{marginLeft:`${w}%`,width:`${x}%`},children:d.jsx(Vg,{variant:"progress",steps:O+1,position:"static",activeStep:P,sx:{maxWidth:"100%",flexGrow:1,background:"transparent",padding:0,"& .MuiMobileStepper-progress":{width:"100%"},"& .MuiLinearProgress-root":{height:4,borderRadius:2,backgroundColor:"#f2f2f2"},"& .MuiLinearProgress-bar":{backgroundColor:"#219653"}},nextButton:null,backButton:null})})})]})},oI=e=>e.dashboard?.companyId||"";function iI(e){try{const t=new URL(e);return{type:t.protocol.replace(":",""),host:t.hostname,port:t.port,path:t.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const sI=e=>{const{ftpDetails:t={},stepperProps:n={}}=e,[r,i]=F.useState(null),s=Tt(),a=gt(),l=qe(oI),[c,p]=F.useState(!1);F.useEffect(()=>{let A,j;return setTimeout(()=>{p(!1),A=setTimeout(()=>{j=setTimeout(()=>p(!0),600)},100)},0),()=>{A&&clearTimeout(A),j&&clearTimeout(j)}},[]);const[u,h]=F.useState(!1),v=localStorage.getItem("selectedSyncMethod")||"sftp",[b,g]=F.useState(`${v}:`),[f,m]=F.useState(""),[y,w]=F.useState(""),x=Xt(),S=qe(A=>A.productSettings?.loading||!1),C=qe(A=>A.productSettings?.error||null),O=en();xm(O.breakpoints.up("lg"));const P=qe(A=>A.productSettings.syncData);F.useEffect(()=>{const A=s.state?.ftpConfig,j=s.state?.tenantIntegrationData;if(P&&P.serverAddress){setTimeout(()=>{g(P.serverAddress||""),m(P.configs&&P.configs.username||""),w(P.configs&&P.configs.password||"")},0);return}if(t&&(t.host||t.username||t.password)){const L=t.type||"sftp",T=t.host||"",k=t.port||"",_=t.path||"",D=`${L}://${T}${k?`:${k}`:""}${_?`/${_}`:""}`;setTimeout(()=>{g(D),m(t.username||""),w(t.password||"")},0);return}if(j&&j.configs){const L=j.configs,T=L.type||j.type||"sftp",k=L.host||"",_=L.port||"",D=L.path||"",N=`${T}://${k}:${_}/${D}`,B=L.username||"",I=L.password||"";setTimeout(()=>{g(N),m(B),w(I)},0);return}if(A){const T=`${A.type||"sftp"}://${A.host}:${A.port}/${A.path}`,k=A.username||"",_=A.password||"";setTimeout(()=>{g(T),m(k),w(_)},0)}},[s.state,P,t]);const $=async()=>{if(!l){alert("Company ID is required. Please ensure the app is properly configured.");return}const{type:A,host:j,port:L,path:T}=iI(b),k=await x(Mo({serverAddress:b,username:f,password:y,companyId:l}));if(!Mo.fulfilled.match(k))return;const _=k.payload;if(s.state?.fromSettingsIcon){const B=_?.entity_type||r?.entity_type||"products",I={...r||{},companyId:l,tenantId:l,type:A,configs:{host:j,port:Number(L),path:T,username:f,password:y,sync_frequency:r?.configs?.sync_frequency||t?.sync_frequency||"",sync_time:r?.configs?.sync_time||t?.sync_time||""},entity_type:B,mappings:r?.mappings||_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (settings flow):"),console.log(JSON.stringify(I,null,2)),i(I),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(I)),a("/ftp-sync-2",{state:{fromSettingsIcon:!0,putjson:I}});return}const D=_?.entity_type||"",N={tenantId:l,type:A,configs:{host:j,port:Number(L),path:T,username:f,password:y,sync_frequency:"",sync_time:""},entity_type:D||"products",mappings:_?.existing_mapping?.mappings||[]};console.log("[FTP Sync – Step 1] JSON object created (after test connection):",JSON.stringify(N,null,2)),x(ys(N)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(N)),e.onNext&&e.onNext({putjson:N})};return d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"},{label:"FTP Sync",to:"/products/settings/ftp-sync"}],title:"FTP Sync",onBack:e.onBack}),d.jsxs(M,{sx:{maxWidth:800,mx:"auto",pt:4},children:[d.jsx(ja,{...n,showSetupFtpBlueTick:c}),d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:600,minWidth:600,bgcolor:"#fff",mt:4},children:d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:400},children:d.jsx(M,{elevation:0,sx:{p:0,borderRadius:4,background:"#fff",minWidth:440,maxWidth:480},children:d.jsxs(M,{sx:{background:"#f5f5f5",borderRadius:4,p:4},children:[d.jsx(V,{variant:"h6",gutterBottom:!0,sx:{fontWeight:700},children:"Login Details"}),d.jsxs(M,{component:"form",autoComplete:"off",sx:{width:"90%"},children:[d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Server Address"}),d.jsx("input",{type:"text",value:b,onChange:A=>g(A.target.value),placeholder:"sftp://234.124.12.34:4432/data/sync",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Username"}),d.jsx("input",{type:"text",value:f,onChange:A=>m(A.target.value),placeholder:"Enter username",style:{width:"90%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 14px",fontSize:16,marginBottom:0}})]}),d.jsxs("div",{style:{marginBottom:16,position:"relative"},children:[d.jsx("label",{style:{display:"block",fontWeight:500,marginBottom:4},children:"Password"}),d.jsx("input",{type:u?"text":"password",value:y,onChange:A=>w(A.target.value),placeholder:"Enter password",style:{width:"82%",background:"#fff",border:"1px solid #d1d5db",borderRadius:"6px",padding:"12px 44px 12px 14px",fontSize:16,marginBottom:0}}),d.jsx(jt,{"aria-label":"toggle password visibility",onClick:()=>h(A=>!A),edge:"end",tabIndex:-1,style:{position:"absolute",right:24,top:"65%",transform:"translateY(-50%)",zIndex:2},children:u?d.jsx(nI,{}):d.jsx(tI,{})})]}),d.jsxs(M,{sx:{display:"flex",mt:3,justifyContent:"flex-end",gap:2},children:[d.jsx(Xe,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",bgcolor:"#fff"},onClick:e.onBack,children:"Back"}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:$,disabled:S,children:S?"Loading...":"Next"})]}),C&&d.jsx(V,{color:"error",sx:{mt:2},children:"Fill the credentials"})]})]})})})})]})]})},aI=e=>e.productSettings.ftpColumns||[],lI=e=>e.productSettings.preview||[],cI=e=>e.productSettings.loading,dI=e=>e.productSettings.error,uI=e=>e.productSettings.existingMapping,pI=e=>e.productSettings.entity_type||"products",fI=e=>{const{mapping:t=[],onBack:n,onNext:r,stepperProps:i={}}=e,s=Tt(),a=gt(),l=s.state?.fromSettingsIcon,[c,p]=F.useState(()=>{if(s.state?.putjson)return s.state.putjson;const D=window.localStorage.getItem("ftpSyncPutjson");return D?JSON.parse(D):t.length>0?{mappings:t}:null}),[u,h]=F.useState([]),[v,b]=F.useState({}),g=qe(aI),f=qe(lI),m=qe(cI),y=qe(dI),w=qe(uI),x=qe(pI),S=F.useRef(m);F.useEffect(()=>{m&&!S.current&&queueMicrotask(()=>b({})),S.current=m},[m]);const C=F.useRef(!1);F.useLayoutEffect(()=>{w==null||!w?.mappings||w.mappings.length===0?C.current||(C.current=!0,queueMicrotask(()=>b({}))):C.current=!1},[w]);const O=Xt();F.useEffect(()=>{async function D(){try{let N=[];if(w?.mappings?.length>0){const B=w.mappings.map(I=>I.target_field).filter(I=>I&&typeof I=="string");N=[...new Set(B)]}try{const B=await O(Do(x));Do.fulfilled.match(B)&&Array.isArray(B.payload)&&B.payload.filter(W=>W&&typeof W=="string").forEach(W=>{N.includes(W)||N.push(W)})}catch{}if(t&&t.length>0){const B=t.map(I=>I.target_field).filter(I=>I&&typeof I=="string"&&!N.includes(I));B.length>0&&(N=[...N,...B])}N=N.filter(B=>B&&typeof B=="string"),h(N)}catch{if(w?.mappings?.length>0){const N=w.mappings.map(I=>I.target_field).filter(I=>I&&typeof I=="string"),B=[...new Set(N)];h(B)}else h([])}}(x||w?.mappings?.length>0||t&&t.length>0)&&D()},[x,w,t,O]);const P=F.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const D=w.mappings.map(N=>N.source_field).filter(N=>N);if(D.length>0)return D}return g&&g.length>0?g:[]},[w,g]),$=F.useMemo(()=>f.filter(N=>Object.keys(N).length>0),[f]),A=F.useMemo(()=>{if(w?.mappings&&w.mappings.length>0){const D={};return w.mappings.forEach(N=>{N.source_field&&N.target_field&&(D[N.source_field]=N.target_field)}),D}return{}},[w]),L=w?.mappings?.length>0?{...A,...v}:{...v},T=en();xm(T.breakpoints.up("lg"));const k=qe(D=>D.productSettings.syncData),_=()=>{const D=P.map(W=>({source_field:W||"",target_field:L[W]||""})).filter(W=>W.source_field&&W.target_field);if(D.length===0)return;if(l&&c){const W={...c,tenantId:c.tenantId||c.companyId,type:c.type||k.type||"sftp",entity_type:c.entity_type||k.entity_type||"products",mappings:D};p(W),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),r?r({fromSettingsIcon:!0,putjson:W}):e.onNext&&e.onNext({fromSettingsIcon:!0,putjson:W});return}const N=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"{}"),B=k.companyId||N.companyId||N.tenantId||"",I={...N,companyId:B,tenantId:B,type:k.type||N.type||"sftp",integration_type:k.integration_type||N.integration_type||"",entity_type:N.entity_type||k.entity_type||"products",configs:k.configs||N.configs||{},ftp_columns:P,preview:$,mappings:D};O(ys(I)),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(I)),r?r({putjson:I}):e.onNext&&e.onNext({putjson:I})};return d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}}))}),d.jsxs(M,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ja,{...i}),d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:300,mb:4},children:d.jsxs(nn,{elevation:0,sx:{mt:4,p:0,borderRadius:4,width:"100%",maxWidth:900},children:[d.jsxs(M,{sx:{p:3,pb:2,borderBottom:"1px solid #eee",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(M,{children:[d.jsx(V,{variant:"subtitle1",sx:{fontWeight:700},children:"Map data from FTP to AiraOps"}),d.jsx(V,{variant:"body2",sx:{color:"#888",mt:.5},children:"sftp://234.124.12.34:4432/data/sync"})]}),d.jsxs(M,{children:[d.jsx(Xe,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:n||(()=>a("/products/settings/ftp-sync",{state:{step:1}})),children:"Back"}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none"},onClick:_,children:"Next"})]})]}),d.jsx(gm,{sx:{background:"#fafafa",borderRadius:4,mt:0,boxShadow:"none",border:"1px solid #eee"},children:m?d.jsx(M,{sx:{p:3,textAlign:"center"},children:"Loading..."}):y?d.jsx(M,{sx:{p:3,color:"red",textAlign:"center"},children:y}):P.length===0?d.jsx(M,{sx:{p:3,textAlign:"center",color:"#888"},children:"No columns available. Please check your FTP connection and try again."}):d.jsxs(pm,{size:"small",children:[d.jsxs(ym,{children:[d.jsxs(Ii,{children:[d.jsx(Zn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:"Columns in FTP"}),P.map((D,N)=>d.jsx(Zn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none",minWidth:120},children:D},D+N))]}),d.jsxs(Ii,{children:[d.jsx(Zn,{sx:{fontWeight:700,background:"#fafafa",borderBottom:"none"},children:"Columns in Aira"}),P.map((D,N)=>d.jsx(Zn,{sx:{background:"#fafafa",borderBottom:"none"},children:d.jsxs(io,{value:L[D]||"",onChange:B=>b(I=>({...I,[D]:B.target.value})),variant:"standard",disableUnderline:!0,displayEmpty:!0,sx:{minWidth:120,fontWeight:500},MenuProps:{PaperProps:{sx:{maxHeight:300,boxShadow:"0 4px 6px rgba(0, 0, 0, 0.1)","& .MuiList-root":{padding:"0"},"& .MuiMenuItem-root":{padding:"8px 16px",minHeight:"auto",fontSize:"14px",lineHeight:"1.5",margin:0},"& .MuiMenuItem-root:first-of-type":{marginTop:0}}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{padding:0}}},children:[d.jsx(on,{value:"",sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:d.jsx("em",{style:{fontStyle:"normal",color:"#888"},children:"Select column"})}),u.map(B=>d.jsx(on,{value:B,sx:{padding:"8px 16px",minHeight:"auto",fontSize:"14px",margin:0},children:B},B))]})},N))]})]}),d.jsx(hm,{children:$.length>0?$.map((D,N)=>d.jsxs(Ii,{children:[d.jsx(Zn,{sx:{fontWeight:700,background:"#fff",borderBottom:"none"},children:N===0?"Data preview":""}),P.map((B,I)=>d.jsx(Zn,{sx:{background:"#fff",borderBottom:"none"},children:D[B]||""},I))]},N)):d.jsx(Ii,{children:d.jsx(Zn,{colSpan:P.length+1,sx:{textAlign:"center",color:"#888",py:2},children:"No preview data available"})})})]})})]})})]})]})},hI=e=>e.dashboard?.companyId||"",gI=e=>e.dashboard?.integrationData||null,mI=e=>{const{syncFrequency:t="",syncTime:n="",stepperProps:r={}}=e,i=Tt(),s=gt(),a=Xt(),l=qe(hI),c=qe(gI),p=i.state?.fromSettingsIcon,[u,h]=F.useState(()=>{if(i.state?.putjson){const I=JSON.parse(JSON.stringify(i.state.putjson));return I.mappings&&(I.originalMappings=JSON.parse(JSON.stringify(I.mappings))),I.configs?.sync_frequency&&!I.originalSyncFrequency&&(I.originalSyncFrequency=I.configs.sync_frequency),I.configs?.sync_time&&!I.originalSyncTime&&(I.originalSyncTime=I.configs.sync_time),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(I)),I}const B=window.localStorage.getItem("ftpSyncPutjson");if(B){const I=JSON.parse(B);return I.mappings&&!I.originalMappings&&(I.originalMappings=JSON.parse(JSON.stringify(I.mappings))),I.configs?.sync_frequency&&!I.originalSyncFrequency&&(I.originalSyncFrequency=I.configs.sync_frequency),I.configs?.sync_time&&!I.originalSyncTime&&(I.originalSyncTime=I.configs.sync_time),I}return null});F.useEffect(()=>{u&&window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(u))},[u]);const[v,b]=F.useState(null),[g,f]=F.useState(null);F.useEffect(()=>{const B=i.state?.fromProductSetting;let I=null;if(B&&i.state?.integrationData)I=i.state.integrationData;else if(c&&Object.keys(c).length>0)I=c;else if(l&&!B){a(Nt(l)).then(W=>{if(Nt.fulfilled.match(W)){const z=W.payload;if(I=z&&z.data&&z.data[0]||null,I){b(I);const R=I.id||I.channelId||null;R&&f(R)}}});return}if(I){b(I);const W=I.id||I.channelId||null;W&&f(W)}},[l,i.state,c,a]);const m=!!p||!!v,y=B=>{if(!B)return"";const I=B.charAt(0).toUpperCase()+B.slice(1).toLowerCase();return I==="Daily"||I==="Day"?"Daily":I==="Weekly"||I==="Week"?"Weekly":I==="Monthly"||I==="Month"?"Monthly":I},[w,x]=F.useState(()=>{if(t)return y(t);const B=u?.configs?.sync_frequency?y(u.configs.sync_frequency):"";return B||"Daily"}),[S,C]=F.useState(n||u&&u.configs?.sync_time||"");F.useEffect(()=>{async function B(){if(l)try{const I=i.state?.fromProductSetting;let W=null;if(I&&i.state?.integrationData)W=i.state.integrationData;else if(c&&Object.keys(c).length>0)W=c;else{const z=await a(Nt(l));if(Nt.fulfilled.match(z)){const R=z.payload;W=R&&R.data&&R.data[0]||null}}if(W){const z=W.id||W.channelId||null;z&&f(z);const R=u||JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null"),Y={...W,companyId:W.companyId||l,entity_type:W.entity_type||R?.entity_type||"product",mappings:W.mappings||R?.mappings||[]},te=W.configs?.sync_frequency||"",G=W.configs?.sync_time||"",q=y(te);if(h(Y),I){if(t){const J=y(t);x(J)}n&&C(n),h(J=>({...J,...Y,originalSyncFrequency:t?y(t):J.originalSyncFrequency||q,originalSyncTime:n||J.originalSyncTime||G,configs:{...Y.configs,sync_frequency:t?y(t).toLowerCase():Y.configs?.sync_frequency,sync_time:n||Y.configs?.sync_time}}))}else{const J=t?y(t):"";if(J)x(J);else if(q)x(q);else if(R?.configs?.sync_frequency){const oe=y(R.configs.sync_frequency);x(oe)}else x("Daily");n?C(n):G?C(G):R?.configs?.sync_time?C(R.configs.sync_time):C(""),h(Y),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(Y))}}}catch{const I=JSON.parse(window.localStorage.getItem("ftpSyncPutjson")||"null");!t&&I?.configs?.sync_frequency?x(y(I.configs.sync_frequency)):t&&x(y(t)),!n&&I?.configs?.sync_time?C(I.configs.sync_time):n&&C(n)}}B()},[l]),F.useEffect(()=>{if(t){const B=y(t);x(B),u&&u.configs?.sync_frequency!==B&&h(I=>{const W={...I,configs:{...I.configs,sync_frequency:B}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(W)),W})}},[t]),F.useEffect(()=>{n&&(C(n),u&&u.configs?.sync_time!==n&&h(B=>{const I={...B,configs:{...B.configs,sync_time:n}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(I)),I}))},[n]),F.useEffect(()=>{if(u&&m&&(w||S)){const B=u.configs?.sync_frequency,I=u.configs?.sync_time;(B!==w||I!==S)&&h(W=>{const z={...W,configs:{...W.configs,sync_frequency:w||W.configs?.sync_frequency,sync_time:S||W.configs?.sync_time}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z})}},[w,S,m]);const O=qe(B=>B.productSettings.syncData),P=B=>{const I=B.target.value;x(I),u&&h(W=>{const z={...W,configs:{...W.configs,sync_frequency:I}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z}),m||a(ys({...O,configs:{...O&&O.configs||{},sync_frequency:I,sync_time:S}}))},$=B=>{const I=B.target.value;C(I),u&&h(W=>{const z={...W,configs:{...W.configs,sync_time:I}};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(z)),z}),m||a(ys({...O,configs:{...O&&O.configs||{},sync_frequency:w,sync_time:I}}))};function A(B){try{const I=new URL(B);return{type:I.protocol.replace(":",""),host:I.hostname,port:I.port,path:I.pathname}}catch{return{type:"",host:"",port:"",path:""}}}const[j,L]=F.useState(!1),[T,k]=F.useState(""),_=async()=>{const B=i.state?.fromProductSetting;if(m){if(!u){k("Update failed: missing data."),L(!0);return}let H={...u};u.originalMappings||(H.originalMappings=u.mappings?JSON.parse(JSON.stringify(u.mappings)):[],h(H)),!u.originalSyncFrequency&&u.configs?.sync_frequency&&(H.originalSyncFrequency=u.configs.sync_frequency||"",h(H)),!u.originalSyncTime&&u.configs?.sync_time&&(H.originalSyncTime=u.configs.sync_time||"",h(H));const de=JSON.parse(JSON.stringify(u.mappings||[])),se=JSON.parse(JSON.stringify(u.originalMappings||[]));let ve,Be;B?(ve=t?y(t):"",Be=n||""):(ve=u.originalSyncFrequency||u.configs?.sync_frequency||"",Be=u.originalSyncTime||u.configs?.sync_time||"",ve=y(ve));const Te=B?!1:JSON.stringify(de)!==JSON.stringify(se),Ne=w!==ve,je=S!==Be,Re=(Ne||je)&&!Te,Me=Te;if(Re){const ae=g||u?.id||u?.channelId||i.state?.integrationData?.id||i.state?.integrationData?.channelId;if(!ae){k("Channel ID is missing. Please try again."),L(!0);return}const Ke={configs:{}};Ne&&(Ke.configs.sync_frequency=w.toLowerCase()),je&&(Ke.configs.sync_time=S);try{const Pe=await a(Fo({channelId:ae,data:Ke}));if(Pe.error||Fo.rejected.match(Pe)){const ue=Pe.payload||Pe.error?.message||"Update failed. Please try again.";k(ue),L(!0);return}let ne="";Ne&&!je?ne="SyncFrequency Updated":!Ne&&je?ne="SyncTime Updated":Ne&&je&&(ne="SyncTime and SyncFrequency Updated"),k(ne),L(!0),h(ue=>{const xe={...ue,configs:{...ue.configs,sync_frequency:w.toLowerCase(),sync_time:S},originalSyncFrequency:w,originalSyncTime:S};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(xe)),xe});const Z=i.state?.fromProductSetting;Z&&l&&await a(Nt(l)),setTimeout(()=>{Z&&s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500);return}catch(Pe){const ne=Pe?.message||Pe?.response?.data?.message||"Update failed. Please try again.";k(ne),L(!0);return}}if(Me){const ae={...u,configs:{...u.configs,sync_frequency:w.toLowerCase(),sync_time:S}};h(ae),window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(ae));const Ke=ae.tenantId||ae.companyId;if(!ae.configs){k("Configuration error. Please try again."),L(!0);return}const Pe=ae.entity_type||u?.entity_type;if(!Pe){k("Entity type is missing. Please try again."),L(!0);return}const ne={tenantId:Ke,type:ae.type,entity_type:Pe,configs:{host:ae.configs.host||"",port:ae.configs.port?Number(ae.configs.port):0,username:ae.configs.username||"",password:ae.configs.password||"",path:ae.configs.path||"",sync_frequency:w.toLowerCase()||"",sync_time:S||""},mappings:(ae.mappings||[]).map(Z=>({source_field:Z.source_field,target_field:Z.target_field}))};if(!ne.tenantId){k("Tenant ID is missing. Please try again."),L(!0);return}if(!ne.type){k("Sync type is missing. Please try again."),L(!0);return}if(!ne.entity_type){k("Entity type is missing. Please try again."),L(!0);return}try{const Z=await a($r(ne));if($r.rejected.match(Z)){const ue=Z.payload||Z.error?.message||"Update failed. Please try again.";k(ue),L(!0);return}$r.fulfilled.match(Z)?(h(ue=>{const xe={...ue,originalSyncFrequency:w,originalSyncTime:S,originalMappings:JSON.parse(JSON.stringify(ue.mappings||[]))};return window.localStorage.setItem("ftpSyncPutjson",JSON.stringify(xe)),xe}),k("Sync Update Successfully"),L(!0),setTimeout(()=>{s("/product-setting",{state:{tenantIntegrationMatched:!0}})},1500)):(k("Update failed. Please try again."),L(!0))}catch(Z){const ue=Z?.message||Z?.response?.data?.message||"Update failed. Please try again.";k(ue),L(!0)}}else k("No changes detected."),L(!0);return}const I=O.configs||{},W=A(O.serverAddress||""),z=I.host||W.host,R=I.port!=null?Number(I.port):parseInt(W.port,10),Y=(I.path||W.path||"").replace(/^\//,""),te=O.type||W.type||"sftp",G=O.username||I.username||"",q=O.password||I.password||"",J=w||I.sync_frequency||"",oe=typeof J=="string"?J.toLowerCase():J;let re=S||I.sync_time||"";if(typeof re=="string"&&/^\d{1,2}:\d{2}\s*[AP]M$/i.test(re.trim())){const[H,de]=re.trim().split(/\s+/),[se,ve]=H.split(":").map(Number),Be=de.toUpperCase()==="PM"&&se!==12?se+12:de.toUpperCase()==="AM"&&se===12?0:se;re=`${String(Be).padStart(2,"0")}:${String(ve).padStart(2,"0")}`}else typeof re=="string"&&(re=re.trim());const ie=(O.mappings||[]).filter(H=>H.source_field&&H.target_field).map(H=>({source_field:H.source_field,target_field:H.target_field}));if(!l){k("Company ID is required. Please ensure the app is properly configured."),L(!0);return}if(!z||!R||!G||!q||ie.length===0){k("Please fill all required fields and mappings before saving."),L(!0);return}const ee=O.entity_type||"products",ce={tenantId:l,type:te,entity_type:ee,configs:{host:z,port:Number(R),username:G,password:q,path:Y,sync_frequency:oe,sync_time:re},mappings:ie};try{const H=await a(_o(ce));_o.fulfilled.match(H)?(k("Save and Start Sync Updated Successfully"),L(!0),e.onNext&&e.onNext()):(k(H?.payload||"Save failed. Please try again."),L(!0))}catch{k("Save failed. Please try again."),L(!0)}},[D,N]=F.useState(!1);return F.useEffect(()=>{const B=setTimeout(()=>N(!0),850);return()=>clearTimeout(B)},[]),d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:e.onBack}),d.jsxs(M,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ja,{...r,showStartSyncBlueTick:D}),d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:180,mt:4,mb:4},children:d.jsxs(nn,{elevation:0,sx:{p:2.5,borderRadius:4,minWidth:300,maxWidth:340,width:1,display:"flex",flexDirection:"column",alignItems:"center",bgcolor:"#f5f5f5"},children:[d.jsxs(M,{sx:{display:"flex",flexDirection:"row",gap:2,width:"100%",mb:2},children:[d.jsxs(M,{sx:{flex:1},children:[d.jsx(V,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Frequency"}),d.jsxs(io,{size:"small",value:w,onChange:P,sx:{minWidth:120,borderRadius:2,background:"#fafbfc",fontSize:15,height:40},children:[d.jsx(on,{value:"Daily",children:"Daily"}),d.jsx(on,{value:"Weekly",children:"Weekly"}),d.jsx(on,{value:"Monthly",children:"Monthly"})]})]}),d.jsxs(M,{sx:{flex:1},children:[d.jsx(V,{variant:"subtitle2",sx:{mb:1,fontSize:14,color:"#222"},children:"Sync Time"}),d.jsx(pd,{type:"time",size:"small",value:S,onChange:$,sx:{minWidth:80,borderRadius:2,background:"#fafbfc",fontSize:15,height:36},InputLabelProps:{shrink:!0},inputProps:{step:300}})]})]}),d.jsxs(M,{sx:{display:"flex",justifyContent:"center",gap:.5,mt:1,width:"100%"},children:[d.jsx(Xe,{variant:"outlined",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",mr:2},onClick:e.onBack,children:"Back"}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{borderRadius:2,minWidth:100,fontWeight:500,textTransform:"none",boxShadow:"none",flex:m?1:"initial"},onClick:_,children:m&&(i.state?.fromSyncSetting||i.state?.editMode)?"Save":m?"Update Sync":"Save and Start Sync"})]}),d.jsx(Pi,{open:j,autoHideDuration:4e3,onClose:()=>L(!1),message:T,anchorOrigin:{vertical:"top",horizontal:"center"}})]})})})]})]})},yI=e=>{const{onBack:t,stepperProps:n={}}=e,r=Xt(),s=!!qe(p=>p.productSettings.saveResult),[a,l]=F.useState(s),c=gt();return F.useEffect(()=>{s&&(l(!0),r(zx()))},[s,r]),d.jsxs(d.Fragment,{children:[d.jsx(Pi,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Sync setup successful!",anchorOrigin:{vertical:"top",horizontal:"center"}}),d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa",p:0},children:[d.jsx(er,{breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/products/settings"}],onBack:t||(()=>c("/products/settings/ftp-sync",{state:{step:3}}))}),d.jsxs(M,{sx:{maxWidth:900,mx:"auto",pt:4},children:[d.jsx(ja,{...n}),d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:380,bgcolor:"#fff",mt:4,borderRadius:2,boxShadow:"0 2px 12px #0001"},children:d.jsxs(M,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:320,py:6,bgcolor:"#f5f5f5",borderRadius:5},children:[d.jsx(M,{sx:{width:48,height:48,borderRadius:"50%",background:"#2563eb",display:"flex",alignItems:"center",justifyContent:"center",mb:2},children:d.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:d.jsx("path",{d:"M7 12.5L11 16L17 9.5",stroke:"#fff",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),d.jsx(V,{sx:{fontSize:17,color:"#222",mb:1,fontWeight:500},children:"Sync Setup Successfully"}),d.jsx(Xe,{variant:"text",sx:{color:"#2563eb",fontWeight:500,fontSize:15,textTransform:"none",mt:1},onClick:()=>c("/"),children:"Back to all products"})]})})]})]}),d.jsx(Pi,{open:a,autoHideDuration:4e3,onClose:()=>l(!1),message:"Integration saved & sync started",anchorOrigin:{vertical:"top",horizontal:"center"}})]})};function bI(e){const t=Tt(),n=gt(),r=t.state?.fromProductSetting?3:0,[i,s]=F.useState(r),a=Xt(),{companyId:l,integrationData:c}=qe(S=>S.dashboard),p=t.state?.fromSyncStep;F.useEffect(()=>{const S=t.state?.fromProductSetting;l&&!S&&a(Nt(l))},[l,a,t.state]);const u=()=>{s(S=>Math.min(S+1,4))},h=()=>{if(i===0&&p!==void 0){n("/product-setting",{state:{fromSyncStep:p,tenantIntegrationMatched:p===3}});return}if(t.state?.fromProductSetting&&i===3){n("/product-setting",{state:{tenantIntegrationMatched:!0}});return}s(S=>Math.max(S-1,0))},v=c?.configs||{},b=c?.mappings||c?.dataMappings||[],f=(S=>{if(!S)return"";const C=S.charAt(0).toUpperCase()+S.slice(1).toLowerCase();return C==="Daily"||C==="Day"?"Daily":C==="Weekly"||C==="Week"?"Weekly":C==="Monthly"||C==="Month"?"Monthly":C})(c?.configs?.sync_frequency||""),m=c?.configs?.sync_time||"",y=["Setup FTP","Check data","Start Sync"],w=["Upload File","Check data","Start Sync"],x={0:{steps:y,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,showStartSyncBlueTick:!1},1:{steps:y,activeStep:0,showCheckDataBlueTick:!1,progressToCheckData:!1,showSetupFtpBlueTick:!1,filledSegments:.5},2:{steps:y,activeStep:1,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,filledSegmentsStart:.5,filledSegments:1},3:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!1,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!1,filledSegmentsStart:1,filledSegments:2,previousStepsComplete:!0},4:{steps:w,activeStep:2,showCheckDataBlueTick:!0,progressToCheckData:!0,showSetupFtpBlueTick:!0,showStartSyncBlueTick:!0,instantComplete:!0}};switch(i){case 0:return d.jsx(VN,{onNext:u,onBack:h,stepperProps:x[0],...e});case 1:return d.jsx(sI,{onNext:u,onBack:h,ftpDetails:v,stepperProps:x[1],...e});case 2:return d.jsx(fI,{onNext:u,onBack:h,mapping:b,stepperProps:x[2],...e});case 3:return d.jsx(mI,{onNext:u,onBack:h,syncFrequency:f,syncTime:m,stepperProps:x[3],...e});case 4:return d.jsx(yI,{onBack:h,stepperProps:x[4],...e});default:return null}}function vI(e){const{catalogs:t=[],totalCount:n=0,page:r=0,rowsPerPage:i=10,statusById:s={},getStatus:a,onBack:l,onPageChange:c,onRowsPerPageChange:p,onEdit:u,onDelete:h}=e,v=t,b=Math.max(0,Number(n)||0),g=Math.max(0,Math.ceil(b/Math.max(1,i))-1);return d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[d.jsx(er,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:l}),d.jsxs(M,{sx:{maxWidth:900,mx:"auto",pt:4,pb:4},children:[d.jsxs(V,{sx:{fontWeight:700,fontSize:20,color:"#111",mb:3},children:["All Catalogs"," ",d.jsx(M,{component:"span",sx:{fontWeight:400,color:"#888",fontSize:18,ml:.5},children:n})]}),v.map(f=>d.jsxs(nn,{elevation:0,sx:{p:2.5,mb:2,borderRadius:2,bgcolor:"#fff",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"flex-start",gap:2,flex:1,minWidth:0},children:[d.jsx(eI,{sx:{color:"#666",fontSize:24,mt:.25}}),d.jsxs(M,{sx:{minWidth:0},children:[d.jsx(V,{sx:{fontWeight:700,fontSize:16,color:"#111"},children:f.name}),d.jsx(V,{sx:{color:"#888",fontSize:14,mt:.25},children:f.slug}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:2,mt:1,flexWrap:"wrap"},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(JN,{sx:{fontSize:18,color:"#888"}}),d.jsxs(V,{sx:{fontSize:14,color:"#555"},children:[f.productsCount," Products"]})]}),d.jsx(M,{sx:{display:"flex",alignItems:"center",gap:.75}})]}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:2,mt:.5,flexWrap:"wrap"},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(ZN,{sx:{fontSize:18,color:"#888"}}),d.jsxs(V,{sx:{fontSize:14,color:"#555"},children:["By ",f.createdBy]})]}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.75},children:[d.jsx(UN,{sx:{fontSize:18,color:"#888"}}),d.jsx(V,{sx:{fontSize:14,color:"#555"},children:f.date})]})]})]})]}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:1.5,flexShrink:0,ml:2},children:[d.jsx(M,{sx:{minWidth:100,height:36,display:"flex",alignItems:"center",justifyContent:"center",px:.025,bgcolor:"#e8f5e9",color:"#2e7d32",fontWeight:600,fontSize:18,borderRadius:1.5},children:typeof a=="function"?a(f):s[f.id]??f.status??"Active"}),d.jsx(jt,{size:"small",sx:{color:"#666"},"aria-label":"Edit catalog",onClick:()=>typeof u=="function"?u(f):null,children:d.jsx(KN,{sx:{fontSize:22}})}),d.jsx(jt,{size:"small",sx:{color:"#666"},"aria-label":"Delete catalog",onClick:()=>typeof h=="function"?h(f):null,children:d.jsx(YN,{sx:{fontSize:22}})})]})]},f.id)),d.jsxs(M,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:2,mt:4,flexWrap:"wrap"},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:1,mr:2},children:[d.jsx(V,{sx:{fontSize:14,color:"#555"},children:"Results per page"}),d.jsxs(io,{size:"small",value:i,onChange:f=>typeof p=="function"?p(f):null,IconComponent:Md,sx:{minWidth:56,height:36,fontSize:14,"& .MuiSelect-select":{py:1}},children:[d.jsx(on,{value:5,children:"5"}),d.jsx(on,{value:10,children:"10"}),d.jsx(on,{value:25,children:"25"})]})]}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.5},children:[d.jsx(jt,{size:"small",onClick:()=>typeof c=="function"?c(0):null,disabled:r===0,"aria-label":"First page",children:d.jsx(XN,{})}),d.jsx(jt,{size:"small",onClick:()=>typeof c=="function"?c(Math.max(0,r-1)):null,disabled:r===0,"aria-label":"Previous page",children:d.jsx(HN,{})}),d.jsx(V,{sx:{fontSize:14,color:"#555",px:1.5},children:b===0?"0-0 of 0":`${r*i+1}-${Math.min((r+1)*i,b)} of ${b}`}),d.jsx(jt,{size:"small",onClick:()=>typeof c=="function"?c(r+1):null,disabled:r>=g,"aria-label":"Next page",children:d.jsx(qN,{})}),d.jsx(jt,{size:"small",onClick:()=>typeof c=="function"?c(g):null,disabled:r>=g,"aria-label":"Last page",children:d.jsx(QN,{})})]})]})]})]})}function xI(e){if(!e)return"";const t=new Date(e),n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];return`${t.getDate()} ${n[t.getMonth()]} ${t.getFullYear()}`}function SI(e){if(!e)return null;const t=e.slug,n=typeof t=="string"&&t.startsWith("/")?t:`/${t||""}`;return{...e,slug:n,productsCount:e.productCount??e.productsCount??0,createdBy:e.createdByName??e.createdBy??"",date:xI(e.createdAt??e.date),status:e.status===!0?"Active":e.status===!1?"Inactive":e.status||"Active"}}function wI(e){const t=gt(),n=Xt(),{sharedCatalogues:r=[],sharedCataloguesTotal:i=0,sharedCataloguesLoading:s=!1,sharedCataloguesError:a=null}=qe(C=>C.productSettings??{}),[l,c]=F.useState(0),[p,u]=F.useState(10),[h,v]=F.useState({});F.useEffect(()=>{n(Dr({page:l+1,limit:p}))},[n,l,p]);const b=F.useMemo(()=>Array.isArray(r)?r.map(SI).filter(Boolean):[],[r]),g=i,f=C=>c(C),m=C=>{const O=Number(C.target.value);u(O),c(0)},y=(C,O)=>{v(P=>({...P,[C]:O}))},w=C=>h[C.id]??C.status,x=()=>t(-1),S=d.jsx(er,{title:"Manage Shared Catalogs",breadcrumbs:[{label:"Products",to:"/products"},{label:"Settings",to:"/product-setting"},{label:"Manage Shared Catalogs"}],onBack:x});return s&&b.length===0?d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[S,d.jsx(M,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"60vh"},children:d.jsx(na,{})})]}):a&&b.length===0?d.jsxs(M,{sx:{minHeight:"100vh",background:"#f7f8fa"},children:[S,d.jsx(M,{sx:{textAlign:"center",py:4},children:d.jsx(V,{color:"error",children:a})})]}):d.jsx(vI,{catalogs:b,totalCount:g,page:l,rowsPerPage:p,statusById:h,getStatus:w,onBack:x,onPageChange:f,onRowsPerPageChange:m,onStatusChange:y,...e})}function CI({styles:e={},selectedProducts:t=[],data:n,onSelectProduct:r,categoryName:i,showLimitedColumns:s=!1}){const a=g=>t.some(f=>f.id===g.id),[l,c]=F.useState(null),[p,u]=F.useState([]),h=(g,f)=>{c(g.currentTarget),u(f)},v=()=>{c(null),u([])},b=!!l;return d.jsxs(zn,{sx:{...e.categoryTable,bgcolor:"#f7f8fa",boxShadow:"none",borderRadius:0},children:[d.jsx(M,{sx:{bgcolor:"#808080",color:"#fff",fontWeight:600,fontSize:19,borderRadius:3,px:3,py:1.7,mb:0,letterSpacing:.5},children:i}),d.jsxs(M,{sx:{display:"flex",alignItems:"center",background:"#f7f8fa",borderBottom:"1px solid #e0e0e0",px:2.5,py:1.2,fontWeight:700,fontSize:16,color:"#666",letterSpacing:.2},children:[d.jsxs(M,{sx:{flex:2,pl:1,display:"flex",alignItems:"center",gap:12},children:[d.jsx(Bn,{checked:n.length>0&&n.every(a),indeterminate:n.some(a)&&!n.every(a),onChange:()=>{n.every(a)?n.forEach(g=>r(g,i,!1)):n.forEach(g=>{a(g)||r(g,i,!0)})},sx:{p:0,mr:1,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"8px",border:"2px solid #1976d2",background:"#fff",color:"#1976d2",boxShadow:"none"},"&.Mui-checked .MuiSvgIcon-root":{background:"#e3f2fd",color:"#1976d2",border:"2px solid #1976d2"},"&.MuiCheckbox-indeterminate .MuiSvgIcon-root":{background:"#fff",color:"#1976d2",border:"2px solid #1976d2"}},icon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid rgb(83, 83, 83)",background:"#fff"}}),checkedIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#e3f2fd",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})}),indeterminateIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:8,border:"2px solid #1976d2",background:"#fff",position:"relative"},children:d.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:12,height:2,background:"#1976d2",borderRadius:2}})})}),"Product"]}),d.jsx(M,{sx:{flex:1,textAlign:"center",ml:3},children:"Status"}),!s&&d.jsx(M,{sx:{flex:1,ml:6},children:"Price"}),d.jsx(M,{sx:{flex:1,ml:3},children:"Stock / OSA"}),!s&&d.jsx(M,{sx:{flex:2,ml:3},children:"Offer"})]}),n.map((g,f)=>{let m=[];g.offers&&Array.isArray(g.offers)?m=g.offers:g.offer&&typeof g.offer=="string"&&g.offer.includes(`
|
|
236
|
+
`)?m=g.offer.split(`
|
|
237
|
+
`):g.offer&&Array.isArray(g.offer)?m=g.offer:g.offer&&(m=[g.offer]);const y=m[0]||"",w=m.length>1?m.slice(1):[];return d.jsxs(M,{sx:{display:"flex",alignItems:"center",px:2.5,py:2.5,...f===0?{mt:2}:{},mb:2,background:"#fff",borderRadius:2,boxShadow:"0 1px 3px rgba(0,0,0,0.06)",transition:"box-shadow 0.2s"},children:[d.jsxs(M,{sx:{flex:2,display:"flex",alignItems:"center",gap:2},children:[d.jsx(Bn,{checked:a(g),onChange:()=>r(g,i),sx:{p:0,mr:2,"& .MuiSvgIcon-root":{fontSize:22,borderRadius:"4px",border:"2px solid #d0d0d0",background:"#fff",color:"transparent"},"&.Mui-checked .MuiSvgIcon-root":{background:"#fff",color:"#2563EB",border:"2px solid #2563EB"}},icon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:4,border:"2px solid #d0d0d0",background:"#fff"}}),checkedIcon:d.jsx("span",{style:{display:"inline-block",width:22,height:22,borderRadius:4,border:"2px solid #2563EB",background:"#fff",position:"relative"},children:d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:d.jsx("path",{d:"M11.6667 3.5L5.25 9.91667L2.33334 7",stroke:"#2563EB",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),g.productImage?d.jsx(ma,{src:g.productImage,alt:g.productName,sx:{width:48,height:48,mr:2,borderRadius:2}}):d.jsx(ma,{sx:{width:48,height:48,mr:2,borderRadius:2,bgcolor:"#e0e0e0",color:"#888",fontWeight:700,fontSize:22},children:g.productName&&g.productName[0]}),d.jsxs(M,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[d.jsx(V,{sx:{fontWeight:700,fontSize:18,color:"#333",mb:.2,lineHeight:1.2},children:g.productName}),d.jsxs(V,{sx:{fontSize:15,color:"#555",mb:.2,lineHeight:1.3,display:"flex",alignItems:"center",gap:1},children:[g.productWeight,g.categoryName&&d.jsxs(d.Fragment,{children:[d.jsx("span",{style:{display:"inline-block",margin:"0 6px",fontSize:18,color:"#bbb",lineHeight:1,verticalAlign:"middle"},children:"•"}),g.categoryName]})]}),d.jsxs(V,{sx:{fontSize:15,color:"#bbb",lineHeight:1.1,fontWeight:500},children:["SKU: ",g.sku]})]})]}),d.jsx(M,{sx:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",ml:3},children:d.jsx(V,{sx:{bgcolor:g.status===!0?"#dcfce7":"#f9eaea",color:g.status===!0?"#222":"#d32f2f",borderRadius:"12px",px:3,py:1,fontWeight:600,fontSize:16,letterSpacing:.2,display:"inline-block",textAlign:"center",minWidth:90,boxShadow:"none",border:"none",transition:"all 0.2s"},children:g.status===!0?"Active":"No Stock"})}),!s&&d.jsxs(M,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:90,ml:6},children:[d.jsx(M,{sx:{display:"flex",alignItems:"center",gap:.5},children:d.jsxs(V,{sx:{fontWeight:700,fontSize:16,color:"#222"},children:["₹",g.price]})}),g.mrp&&d.jsxs(V,{sx:{fontSize:13,color:"#888",textDecoration:"line-through",mb:.2},children:["₹",g.mrp]}),g.discount&&d.jsx(V,{sx:{fontSize:14,color:"#22c55e",fontWeight:700},children:g.discount})]}),d.jsxs(M,{sx:{flex:1,display:"flex",flexDirection:"column",alignItems:"flex-start",minWidth:80,ml:3},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",gap:.5},children:[g.stock===0&&d.jsx(dm,{title:"No stock",children:d.jsx(GN,{sx:{color:"#d32f2f",fontSize:18,mr:.5}})}),d.jsxs(V,{sx:{fontWeight:700,fontSize:16,color:g.stock>0?g.stock<10?"#e65100":"#222":"#d32f2f"},children:[g.stock,g.quantity?d.jsxs("span",{style:{color:"#888",fontWeight:400},children:["/ ",g.quantity]}):null]})]}),d.jsxs(V,{sx:{fontSize:13,color:g.osa===0?"#d32f2f":"#888",fontWeight:500},children:[g.osa,"% on shelf"]})]}),!s&&d.jsxs(M,{sx:{flex:2,display:"flex",alignItems:"center",position:"relative",ml:3},children:[d.jsx(V,{sx:{fontSize:15,color:"#222",fontWeight:500,whiteSpace:"pre-line"},children:y}),w.length>0&&d.jsx(d.Fragment,{children:d.jsxs(V,{sx:{ml:1,color:"#888",fontSize:14,cursor:"pointer",textDecoration:"underline",fontWeight:500},onClick:x=>h(x,m),children:["+",w.length," more"]})})]})]},g.id||f)}),d.jsxs(od,{open:b,anchorEl:l,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{p:2,minWidth:220}},children:[d.jsx(V,{sx:{fontWeight:700,mb:1},children:"Offers"}),p.map((g,f)=>d.jsxs(V,{sx:{fontSize:14,color:"#222",mb:.5},children:[f+1,". ",g]},f))]})]})}const EI=({onPromoPrint:e,onCreateCatalog:t,onOsaRequest:n,selectedProducts:r})=>{const i=r||[];return i.length?d.jsxs(M,{sx:{position:"fixed",bottom:24,left:"50%",transform:"translateX(-50%)",bgcolor:"#18181B",borderRadius:"16px",boxShadow:3,px:3,py:2,display:"flex",alignItems:"center",zIndex:1300,minWidth:400},children:[d.jsx(V,{sx:{color:"#fff",mr:1},children:d.jsxs("b",{children:[i.length," items selected"]})}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:e,children:"Promo Print"}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:t,children:"Create Catalog"}),d.jsx(Xe,{variant:"contained",color:"primary",sx:{mx:1,bgcolor:"#2563EB"},onClick:n,children:"OSA Request"})]}):null},Cn=(e,t=0)=>{const n=Number(e);return Number.isFinite(n)?n:t},En=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},Mi=e=>{const t=e?.productName||e?.name||"Product",n=e?.productCode||e?.sku||e?.productSku||t,r=e?.originalPrice??e?.mrp??e?.price??0,i=e?.price??e?.discountPrice??0,s=Cn(r,0),a=Cn(i,0),l=s>a&&s>0?Math.round((s-a)/s*100):5,c=Math.max(0,s-a);return{productName:t,productCode:n,mrp:s,discountPrice:a,discount:l,saveAmount:c}},TI=(e,t,n={})=>{const{productName:r,mrp:i,discountPrice:s}=Mi(e),a=Math.max(0,Cn(i,0)-Cn(s,0)),l=n.validTo||En().validTo,c=n.ppd||En().ppd;return`
|
|
238
238
|
<div class="sticker design-1">
|
|
239
239
|
${t.discountPrice?`
|
|
240
240
|
<div class="our-price-header">SAVE</div>
|
|
241
|
-
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${
|
|
241
|
+
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${Cn(s,0).toFixed(0)}</span></div>
|
|
242
242
|
`:""}
|
|
243
243
|
${t.discountPrice||t.mrp?`
|
|
244
244
|
<div class="bottom-info">
|
|
245
245
|
${t.discountPrice?`<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${a.toFixed(0)}</div>`:""}
|
|
246
|
-
${t.mrp?`<div class="mrp-amount">MRP: <span class="rupee-symbol-small">₹</span>${
|
|
246
|
+
${t.mrp?`<div class="mrp-amount">MRP: <span class="rupee-symbol-small">₹</span>${Cn(i,0).toFixed(0)}</div>`:""}
|
|
247
247
|
</div>
|
|
248
248
|
`:""}
|
|
249
249
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
250
250
|
<div class="valid-from">VALID TO: ${l}</div>
|
|
251
251
|
<div class="valid-to">PPD: ${c}</div>
|
|
252
252
|
</div>
|
|
253
|
-
`},
|
|
253
|
+
`},OI=(e,t,n={})=>{const{productName:r,mrp:i,discount:s}=Mi(e),a=n.validTo||En().validTo,l=n.ppd||En().ppd,c=s.toFixed(2);return`
|
|
254
254
|
<div class="sticker design-2">
|
|
255
255
|
${t.percentOff?`
|
|
256
256
|
<div class="main-offer-block">
|
|
@@ -259,39 +259,39 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
259
259
|
</div>
|
|
260
260
|
`:""}
|
|
261
261
|
${t.mrp?`
|
|
262
|
-
<div class="mrp-block">MRP:<span class="rupee-symbol-small">₹</span>${
|
|
262
|
+
<div class="mrp-block">MRP:<span class="rupee-symbol-small">₹</span>${Cn(i,0).toFixed(0)}</div>
|
|
263
263
|
`:""}
|
|
264
264
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
265
265
|
<div class="valid-from">(Valid till: ${a})</div>
|
|
266
266
|
<div class="valid-to">(PPD: ${l})</div>
|
|
267
267
|
</div>
|
|
268
|
-
`},
|
|
268
|
+
`},PI=(e,t,n={})=>{const{productName:r,discountPrice:i}=Mi(e),s=n.validTo||En().validTo,a=n.ppd||En().ppd;return`
|
|
269
269
|
<div class="sticker design-3">
|
|
270
270
|
${t.discountPrice?`
|
|
271
271
|
<div class="our-price-header">OUR PRICE</div>
|
|
272
|
-
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${
|
|
272
|
+
<div class="big-price"><span class="rupee-symbol">₹</span><span class="price-number">${Cn(i,0).toFixed(0)}</span></div>
|
|
273
273
|
`:""}
|
|
274
274
|
${t.productName?`<div class="product-name">${r}</div>`:""}
|
|
275
275
|
<div class="valid-from">[ValidTo: ${s}]</div>
|
|
276
276
|
<div class="valid-to">[PPD: ${a}]</div>
|
|
277
277
|
</div>
|
|
278
|
-
`},
|
|
278
|
+
`},kI=(e,t,n={})=>{const{productCode:r,mrp:i,discountPrice:s,saveAmount:a}=Mi(e),l=n.validTo||En().validTo,c=n.ppd||En().ppd,p=Math.floor(s),h=Math.round((s-p)*100).toString().padStart(2,"0"),v=Math.floor(a),g=Math.round((a-v)*100).toString().padStart(2,"0"),f=Math.floor(i);return`
|
|
279
279
|
<div class="sticker design-4">
|
|
280
280
|
${t.discountPrice?`
|
|
281
281
|
<div class="our-price-header">OUR PRICE</div>
|
|
282
282
|
<div class="big-price">
|
|
283
283
|
<span class="rupee-symbol">₹</span>
|
|
284
|
-
<span class="price-whole">${
|
|
284
|
+
<span class="price-whole">${p}</span>
|
|
285
285
|
<span class="price-decimal">.${h}</span>
|
|
286
286
|
</div>
|
|
287
287
|
`:""}
|
|
288
288
|
${t.discountPrice||t.mrp?`
|
|
289
289
|
<div class="save-mrp-row">
|
|
290
290
|
${t.discountPrice?`
|
|
291
|
-
<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${
|
|
291
|
+
<div class="save-amount">SAVE: <span class="rupee-symbol-small">₹</span>${v}.${g}</div>
|
|
292
292
|
`:""}
|
|
293
293
|
${t.mrp?`
|
|
294
|
-
<div class="mrp-amount">MRP:<span class="rupee-symbol-small">₹</span>${
|
|
294
|
+
<div class="mrp-amount">MRP:<span class="rupee-symbol-small">₹</span>${f}</div>
|
|
295
295
|
`:""}
|
|
296
296
|
</div>
|
|
297
297
|
`:""}
|
|
@@ -301,7 +301,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
301
301
|
<div class="valid-from">[VALIDITY: ${l}]</div>
|
|
302
302
|
<div class="valid-to">[PPID: ${c}]</div>
|
|
303
303
|
</div>
|
|
304
|
-
`},
|
|
304
|
+
`},NI=(e,t={})=>{const{productName:n,mrp:r,discountPrice:i}=Mi(e),s=Cn(i,0),a=r>s?Math.floor(r*1.17):Math.floor(s*1.17),l=r>s?Math.round((r-s)/r*100):6;return`
|
|
305
305
|
<div class="sticker design-5">
|
|
306
306
|
<div class="top-section">
|
|
307
307
|
<div class="left-column">
|
|
@@ -328,14 +328,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
328
328
|
<div class="horizontal-divider"></div>
|
|
329
329
|
<div class="middle-section">
|
|
330
330
|
${t.productName?`<div class="product-name">${n}</div>`:""}
|
|
331
|
-
${t.mrp?`<div class="mrp-text">MRP <span class="rupee-symbol-small">₹</span>${
|
|
331
|
+
${t.mrp?`<div class="mrp-text">MRP <span class="rupee-symbol-small">₹</span>${Cn(r,0).toFixed(0)}</div>`:""}
|
|
332
332
|
</div>
|
|
333
333
|
<div class="horizontal-divider"></div>
|
|
334
334
|
<div class="bottom-section">
|
|
335
335
|
<div class="savings-message">SAVE UPTO ${l}% EXTRA MONTHLY WITH MY SPENCERS REWARDS</div>
|
|
336
336
|
</div>
|
|
337
337
|
</div>
|
|
338
|
-
`},
|
|
338
|
+
`},Am=e=>{const t={design1:TI,design2:OI,design3:PI,design4:kI,design5:NI};return t[e]||t.design1},II=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const r=Am(t),i=En();return`
|
|
339
339
|
<!DOCTYPE html>
|
|
340
340
|
<html>
|
|
341
341
|
<head>
|
|
@@ -954,7 +954,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
954
954
|
<div class="print-container">
|
|
955
955
|
${e.map(a=>`
|
|
956
956
|
<div class="page-container">
|
|
957
|
-
${r(a,n,
|
|
957
|
+
${r(a,n,i)}
|
|
958
958
|
</div>
|
|
959
959
|
`).join("")}
|
|
960
960
|
</div>
|
|
@@ -970,7 +970,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
970
970
|
<\/script>
|
|
971
971
|
</body>
|
|
972
972
|
</html>
|
|
973
|
-
`},
|
|
973
|
+
`},AI=({selectedProducts:e,selectedDesign:t,itemsToShow:n})=>{const a=Am(t),l=En(),c=[];for(let u=0;u<e.length;u+=8)c.push(e.slice(u,u+8));return`
|
|
974
974
|
<!DOCTYPE html>
|
|
975
975
|
<html>
|
|
976
976
|
<head>
|
|
@@ -1100,33 +1100,31 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1100
1100
|
word-break: break-word;
|
|
1101
1101
|
max-width: 100%;
|
|
1102
1102
|
}
|
|
1103
|
-
.design-1 .big-price .rupee-symbol
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
vertical-align: top;
|
|
1112
|
-
}
|
|
1103
|
+
.design-1 .big-price .rupee-symbol {
|
|
1104
|
+
font-size: 0.8em;
|
|
1105
|
+
vertical-align: top;
|
|
1106
|
+
}
|
|
1107
|
+
.design-1 .rupee-symbol-small {
|
|
1108
|
+
font-size: 1em;
|
|
1109
|
+
vertical-align: top;
|
|
1110
|
+
}
|
|
1113
1111
|
.design-1 .valid-from {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1112
|
+
position: absolute;
|
|
1113
|
+
left: 5%;
|
|
1114
|
+
bottom: 3%;
|
|
1115
|
+
font-size: 5pt;
|
|
1116
|
+
font-family: Arial, sans-serif;
|
|
1117
|
+
font-weight: bold;
|
|
1118
|
+
color: #000;
|
|
1121
1119
|
}
|
|
1122
1120
|
.design-1 .valid-to {
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1121
|
+
position: absolute;
|
|
1122
|
+
right: 5%;
|
|
1123
|
+
bottom: 3%;
|
|
1124
|
+
font-size: 5pt;
|
|
1125
|
+
font-family: Arial, sans-serif;
|
|
1126
|
+
font-weight: bold;
|
|
1127
|
+
color: #000;
|
|
1130
1128
|
}
|
|
1131
1129
|
|
|
1132
1130
|
/* Design 2 Styles for A7 */
|
|
@@ -1454,7 +1452,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1454
1452
|
position: relative;
|
|
1455
1453
|
top: -0.15em;
|
|
1456
1454
|
}
|
|
1457
|
-
.design-5 .member-price-label{
|
|
1455
|
+
.design-5 .member-price-label {
|
|
1458
1456
|
font-family: Arial, sans-serif;
|
|
1459
1457
|
font-size: 8px;
|
|
1460
1458
|
font-weight: bold;
|
|
@@ -1474,8 +1472,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1474
1472
|
letter-spacing: 0.3px;
|
|
1475
1473
|
margin-top: 8px;
|
|
1476
1474
|
}
|
|
1477
|
-
.design-5 .member-price-value
|
|
1478
|
-
{
|
|
1475
|
+
.design-5 .member-price-value {
|
|
1479
1476
|
font-family: Arial, sans-serif;
|
|
1480
1477
|
font-size: 16px;
|
|
1481
1478
|
font-weight: bold;
|
|
@@ -1492,12 +1489,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1492
1489
|
text-align: center;
|
|
1493
1490
|
line-height: 1;
|
|
1494
1491
|
}
|
|
1495
|
-
.design-5 .member-price-value .rupee-symbol
|
|
1496
|
-
{
|
|
1497
|
-
font-size: 0.85em;
|
|
1498
|
-
font-weight: bold;
|
|
1499
|
-
vertical-align: baseline;
|
|
1500
|
-
}
|
|
1492
|
+
.design-5 .member-price-value .rupee-symbol,
|
|
1501
1493
|
.design-5 .non-member-price-value .rupee-symbol {
|
|
1502
1494
|
font-size: 0.85em;
|
|
1503
1495
|
font-weight: bold;
|
|
@@ -1544,7 +1536,6 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1544
1536
|
display: flex;
|
|
1545
1537
|
align-items: center;
|
|
1546
1538
|
justify-content: center;
|
|
1547
|
-
/* height: 20%; */ /* Commented out to remove blank row below savings message */
|
|
1548
1539
|
min-height: auto;
|
|
1549
1540
|
width: 100%;
|
|
1550
1541
|
padding: 0 3px;
|
|
@@ -1569,10 +1560,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1569
1560
|
</style>
|
|
1570
1561
|
</head>
|
|
1571
1562
|
<body>
|
|
1572
|
-
${c.map((u,h)=>{const
|
|
1573
|
-
<div class="page-container" ${
|
|
1563
|
+
${c.map((u,h)=>{const v=u.map(f=>a(f,n,l)).join(""),b=h===c.length-1,g=Array(8-u.length).fill('<div class="sticker empty"></div>').join("");return`
|
|
1564
|
+
<div class="page-container" ${b?"":'style="page-break-after: always;"'}>
|
|
1574
1565
|
<div class="print-container">
|
|
1575
|
-
${
|
|
1566
|
+
${v}${g}
|
|
1576
1567
|
</div>
|
|
1577
1568
|
</div>
|
|
1578
1569
|
`}).join("")}
|
|
@@ -1588,5 +1579,5 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
1588
1579
|
<\/script>
|
|
1589
1580
|
</body>
|
|
1590
1581
|
</html>
|
|
1591
|
-
`},qN=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:o=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=o>0?o:1,l=[];e.forEach(h=>{for(let b=0;b<a;b++)l.push(h)});const c={A4:UN,A7:HN},u=(c[n]||c.A5)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},YN=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},KN=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=fn(),o=F.useMemo(()=>YN(),[]),[s,a]=F.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,c]=F.useState("design1"),[f,u]=F.useState(""),[h,b]=F.useState(1),m=y=>a(x=>({...x,[y]:!x[y]})),g=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!f){alert("Please select a sheet size.");return}const y=h>0?h:1;qN({selectedProducts:n,selectedDesign:l,sheetSize:f,itemsToShow:s,copyPerItem:y}),t()},p=r.promoPrintModal;return d.jsxs(ei,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:p.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[d.jsx(ti,{children:d.jsxs(I,{sx:p.header,children:[d.jsx(W,{variant:"h6",fontWeight:600,children:"Promo Print"}),d.jsx(It,{onClick:t,size:"small",children:d.jsx(pd,{size:20})})]})}),d.jsxs(ca,{sx:{...p.content,overflowY:"visible",maxHeight:"none"},children:[d.jsxs(I,{sx:p.section,children:[d.jsx(W,{sx:p.sectionTitle,children:"Items to show"}),d.jsxs(I,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[d.jsx(fr,{control:d.jsx(pn,{checked:s.productName,onChange:()=>m("productName"),size:"small"}),label:"Product Name",sx:p.checkboxLabel}),d.jsx(fr,{control:d.jsx(pn,{checked:s.percentOff,onChange:()=>m("percentOff"),size:"small"}),label:"Percent OFF",sx:p.checkboxLabel}),d.jsx(fr,{control:d.jsx(pn,{checked:s.mrp,onChange:()=>m("mrp"),size:"small"}),label:"MRP",sx:p.checkboxLabel}),d.jsx(fr,{control:d.jsx(pn,{checked:s.discountPrice,onChange:()=>m("discountPrice"),size:"small"}),label:"Discount Price",sx:p.checkboxLabel})]})]}),d.jsxs(I,{sx:p.section,children:[d.jsx(W,{sx:p.sectionTitle,children:"Promo Design"}),d.jsxs(I,{sx:p.designContainer,children:[d.jsxs(I,{onClick:()=>c("design1"),sx:{...p.designCard.base,...l==="design1"?p.designCard.selected:p.designCard.unselected},children:[d.jsx(W,{sx:{...p.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),d.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(W,{component:"span",sx:{...p.design1.rupeeSymbol},children:"₹"}),d.jsx(W,{component:"span",sx:{...p.design1.bigPrice},children:"1387"})]})}),d.jsxs(I,{sx:{...p.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[d.jsxs(W,{sx:{...p.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",d.jsx(W,{component:"span",sx:p.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),d.jsxs(W,{sx:{...p.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",d.jsx(W,{component:"span",sx:p.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),d.jsx(W,{sx:{...p.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),d.jsxs(I,{sx:p.design1.dateRow,children:[d.jsxs(W,{sx:p.design1.validFromText,children:["VALID TO: ",o.validTo]}),d.jsxs(W,{sx:p.design1.validToText,children:["PPD: ",o.ppd]})]})]}),d.jsxs(I,{onClick:()=>c("design2"),sx:{...p.designCard.base,...l==="design2"?p.designCard.selected:p.designCard.unselected},children:[d.jsxs(I,{sx:p.design2.mainOfferBlock,children:[d.jsx(W,{sx:{...p.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),d.jsx(W,{sx:{...p.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),d.jsxs(W,{sx:{...p.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",d.jsx(W,{component:"span",sx:p.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),d.jsx(W,{sx:{...p.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),d.jsxs(I,{sx:p.design2.dateRow,children:[d.jsxs(W,{sx:p.design2.validFromText,children:["(Valid till: ",o.validTo,")"]}),d.jsxs(W,{sx:p.design2.validToText,children:["(PPD: ",o.ppd,")"]})]})]}),d.jsxs(I,{onClick:()=>c("design3"),sx:{...p.designCard.base,...l==="design3"?p.designCard.selected:p.designCard.unselected},children:[d.jsx(W,{sx:{...p.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),d.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(W,{component:"span",sx:{...p.design3.rupeeSymbol},children:"₹"}),d.jsx(W,{component:"span",sx:{...p.design3.bigPrice},children:"29"})]})}),d.jsx(W,{sx:{...p.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),d.jsxs(I,{sx:p.design3.dateRow,children:[d.jsxs(W,{sx:p.design3.validFromText,children:["[ValidTo: ",o.validTo,"]"]}),d.jsxs(W,{sx:p.design3.validToText,children:["[PPD: ",o.ppd,"]"]})]})]}),d.jsxs(I,{onClick:()=>c("design4"),sx:{...p.designCard.base,...l==="design4"?p.designCard.selected:p.designCard.unselected},children:[d.jsx(W,{sx:{...p.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),d.jsx(I,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(I,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(W,{component:"span",sx:{...p.design4.rupeeSymbol},children:"₹"}),d.jsx(W,{component:"span",sx:{...p.design4.priceWhole},children:"899"}),d.jsx(W,{component:"span",sx:{...p.design4.priceDecimal},children:".70"})]})}),d.jsxs(I,{sx:{...p.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[d.jsxs(W,{sx:{...p.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",d.jsx(W,{component:"span",sx:p.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),d.jsxs(W,{sx:{...p.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",d.jsx(W,{component:"span",sx:p.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),d.jsx(W,{sx:{...p.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),d.jsxs(I,{sx:p.design4.dateRow,children:[d.jsxs(W,{sx:p.design4.validFromText,children:["[VALIDITY: ",o.validTo,"]"]}),d.jsxs(W,{sx:p.design4.validToText,children:["[PPID: ",o.ppd,"]"]})]})]}),d.jsxs(I,{onClick:()=>c("design5"),sx:{...p.designCard.base,...l==="design5"?p.designCard.selected:p.designCard.unselected},children:[d.jsxs(I,{sx:p.design5.topSection,children:[d.jsxs(I,{sx:p.design5.leftColumn,children:[d.jsxs(I,{sx:p.design5.rewardsLogo,children:[d.jsxs(I,{sx:p.design5.logoLine1,children:[d.jsx(W,{sx:p.design5.logoMy,children:"My"}),d.jsx(W,{sx:p.design5.logoSpencer,children:"spencers"})]}),d.jsxs(W,{sx:p.design5.logoRewards,children:["Rewa",d.jsx(W,{component:"span",sx:p.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),d.jsxs(W,{sx:{...p.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",d.jsx("br",{}),"PRICE"]}),d.jsxs(W,{sx:{...p.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[d.jsx(W,{component:"span",sx:p.design5.rupeeSymbol,children:"₹"}),"99"]})]}),d.jsx(I,{sx:p.design5.verticalDivider}),d.jsxs(I,{sx:p.design5.rightColumn,children:[d.jsxs(W,{sx:{...p.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",d.jsx("br",{}),"MEMBER",d.jsx("br",{}),"PRICE"]}),d.jsxs(W,{sx:{...p.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[d.jsx(W,{component:"span",sx:p.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),d.jsxs(I,{sx:p.design5.middleSection,children:[d.jsx(W,{sx:{...p.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),d.jsxs(W,{sx:{...p.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",d.jsx(W,{component:"span",sx:p.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),d.jsx(I,{sx:p.design5.horizontalDivider}),d.jsx(I,{sx:p.design5.bottomSection,children:d.jsx(W,{sx:p.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),d.jsxs(I,{children:[d.jsx(I,{children:d.jsx(W,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"})}),d.jsxs(I,{sx:p.sheetSizeGroup,children:[["A4","A7"].map(y=>d.jsx(I,{onClick:()=>u(y),sx:{...p.sheetSizeBtn,...f===y?p.sheetSizeBtnSelected:{}},children:d.jsx(W,{variant:"body2",textAlign:"center",children:y})},y)),d.jsxs(I,{sx:p.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:1,mt:1.5},children:[d.jsx(W,{variant:"caption",color:"text.secondary",sx:{mr:1},children:"Enter Copy per item:"}),d.jsx(ga,{type:"number",value:h,onChange:y=>{const x=parseInt(y.target.value,10);!isNaN(x)&&x>0?b(x):y.target.value===""&&b(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:"32px",width:"80px"},"& .MuiOutlinedInput-input":{padding:"4px 8px"}},size:"small"})]})]})]})]}),d.jsx(_c,{sx:p.actions||{px:3,pb:2},children:d.jsx(Ve,{type:"button",onClick:g,variant:"contained",sx:p.printButton,children:"Print"})})]})};function GN({onClose:e,selectedCount:t=3,open:n,stores:r=[]}){const[o,s]=F.useState("Christmas Super Sale 2025"),[a,l]=F.useState("company.ariaops.com/catalog/christmas-super-sale-2025"),[c,f]=F.useState("all"),[u,h]=F.useState(!1);return d.jsxs(ei,{open:n,onClose:e,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[d.jsx(ti,{children:d.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(W,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",t," Items"]}),d.jsx(It,{onClick:e,size:"small","aria-label":"Close",children:d.jsx(lm,{})})]})}),d.jsxs(ca,{sx:{pt:1},children:[d.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),d.jsx("input",{type:"text",value:o,onChange:b=>s(b.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),d.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),d.jsxs("div",{style:{position:"relative",marginBottom:16},children:[d.jsx("input",{type:"text",value:a,onChange:b=>l(b.target.value),style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),a&&d.jsx(nm,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),d.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),d.jsxs(I,{sx:{position:"relative",mb:3},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>h(b=>!b),children:[d.jsx(I,{sx:{display:"flex",alignItems:"center",mr:1},children:d.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),d.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),d.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),d.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:c==="all"?"All Stores":r.find(b=>b.id===c)?.name||"Select Store"}),d.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${r.filter(b=>b.id!=="all").length} stores`}),d.jsx(gd,{sx:{color:"#888",ml:"auto"}})]}),u&&d.jsx(I,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:r.map(b=>d.jsx(I,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:c===b.id?700:400,color:c===b.id?"#222":"#444",background:c===b.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{f(b.id),h(!1)},children:b.name},b.id))})]}),d.jsx(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:d.jsx(Ve,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Create"})})]})]})}function JN({onClose:e,open:t,stores:n=[]}){const[r,o]=F.useState("all"),[s,a]=F.useState(!1);return d.jsxs(ei,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[d.jsx(ti,{children:d.jsxs(I,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsx(W,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),d.jsx(It,{onClick:e,size:"small","aria-label":"Close",children:d.jsx(lm,{})})]})}),d.jsx(W,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),d.jsxs(I,{sx:{position:"relative",mb:3},children:[d.jsxs(I,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>a(l=>!l),children:[d.jsx(I,{sx:{display:"flex",alignItems:"center",mr:1},children:d.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),d.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),d.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),d.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:r==="all"?"All Stores":n.find(l=>l.id===r)?.name||"Select Store"}),d.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${n.filter(l=>l.id!=="all").length} stores`}),d.jsx(gd,{sx:{color:"#888",ml:"auto"}})]}),s&&d.jsx(I,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:n.map(l=>d.jsx(I,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:r===l.id?700:400,color:r===l.id?"#222":"#444",background:r===l.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{o(l.id),a(!1)},children:l.name},l.id))})]}),d.jsx(I,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:d.jsx(Ve,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Send Request"})})]})}const XN=()=>{const e=Wt(),t=lt(),[n]=Ty(),r=n.get("categoryName"),s=fn().categoryDetail,[a,l]=F.useState({category:"all",status:"all",search:"",store:[]}),[c,f]=F.useState([]),[u,h]=F.useState(null),[b,m]=F.useState(!1),[g,p]=F.useState(!1),[y,x]=F.useState(!1),{integrationData:w,companyId:S,loading:v}=Ae(R=>R.dashboard);F.useEffect(()=>{S||e(go())},[e,S]);const C=F.useMemo(()=>w&&typeof w=="object"&&Object.keys(w).length>0?{matched:!0,error:"",apiResponse:w,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[w]),O=Ae(R=>R.dashboard),{products:P=[]}=Ae(R=>R.dashboard),{sharedCatalogues:$=[]}=Ae(R=>R.productSettings??{}),A=F.useMemo(()=>Array.isArray($)?$.filter(R=>R.status===!0).length:0,[$]),B=F.useMemo(()=>{if(!r||!Array.isArray(P))return[];const R=r.trim();return P.filter(j=>j.categoryName&&j.categoryName.trim().toLowerCase()===R.toLowerCase()).map(j=>({...j,id:j.id||j.sku||j.productName}))},[P,r]),L=B.length>0,T=Array.isArray(P)&&P.length>0,N=R=>{R.preventDefault(),t("/settings",{state:{tenantIntegrationData:C.apiResponse}})},_={},{productsByCategory:D={}}=O||{};Object.values(D).flat().forEach(R=>{R.storeId&&R.storeName&&(_[R.storeId]=R.storeName)});const k=[{id:"all",name:"All Stores"},...Object.entries(_).map(([R,j])=>({id:R,name:j}))],z=R=>{l(R)},M=(R,j)=>{f(V=>{const K=V[j]||[];let Z;return K.some(Q=>Q.id===R.id)?Z=K.filter(Q=>Q.id!==R.id):Z=[...K,R],{...V,[j]:Z}}),h(j)};return F.useEffect(()=>{S&&(e(wt(S)),e(Qn()),e(Er({page:1})))},[e,S]),d.jsxs(d.Fragment,{children:[d.jsx(ya,{filters:a,onFilterChange:z,styles:s.topBar,stores:k,tenantStatus:C,hasProducts:T}),v||!S?d.jsx(I,{sx:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):r?L?d.jsxs(I,{sx:s.root,children:[d.jsx(rm,{productState:O,categoryName:r,categoryProductCount:B.length,activeCatalogsCount:A,onManageClick:()=>t("/catalogs/manage-shared")}),d.jsx(jN,{data:B,styles:s,selectedProducts:c[r]||[],onSelectProduct:M,categoryName:r})]}):d.jsx(fi,{handleStartSyncing:N,loading:!1,categoryName:r}):d.jsx(fi,{handleStartSyncing:N,loading:!1}),d.jsx(zN,{onPromoPrint:()=>m(!0),onCreateCatalog:()=>p(!0),onOsaRequest:()=>x(!0),selectedProducts:c[r]||[],selectedCategory:u}),d.jsx(KN,{open:b,onClose:()=>m(!1),selectedProducts:c[r]||[]}),d.jsx(GN,{open:g,onClose:()=>p(!1),stores:k}),d.jsx(JN,{open:y,onClose:()=>x(!1),stores:k})]})};function QN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsxs(ry,{children:[d.jsx($n,{path:"/",element:d.jsx(Vk,{})}),d.jsx($n,{path:"/home",element:d.jsx(jk,{})}),d.jsx($n,{path:"/products",element:d.jsx(Dk,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),d.jsx($n,{path:"/product-setting",element:d.jsx(nN,{})}),d.jsx($n,{path:"/products/settings/ftp-sync",element:d.jsx(_N,{})}),d.jsx($n,{path:"/catalogs/manage-shared",element:d.jsx(FN,{})}),d.jsx($n,{path:"/category",element:d.jsx(XN,{})})]})}function ZN({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsx(QN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const eI=()=>d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:d.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:o,onStoreSelect:s})=>d.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:d.jsx(Px,{apiUrl:e,authToken:t,children:d.jsx(Gy,{store:Ap,children:d.jsx(tb.PersistGate,{loading:d.jsx(eI,{}),persistor:Tx,children:d.jsx(by,{basename:n,children:d.jsx(ZN,{StoresModal:r,storesModalProps:o,onStoreSelect:s})})})})})})}));
|
|
1582
|
+
`},MI=({selectedProducts:e,selectedDesign:t,sheetSize:n,itemsToShow:r,copyPerItem:i=1})=>{if(!e||e.length===0){alert("No products selected for printing");return}const s=window.open("","_blank","width=800,height=600");if(!s){alert("Please allow popups to print promo designs");return}const a=i>0?i:1,l=[];e.forEach(h=>{for(let v=0;v<a;v++)l.push(h)});const c={A4:II,A7:AI},u=(c[n]||c.A4)({selectedProducts:l,selectedDesign:t,itemsToShow:r});try{s.document.open(),s.document.write(u),s.document.close()}catch(h){console.error("Error writing to print window:",h),alert("Error generating print preview. Please check console for details.")}},_I=()=>{const e=new Date,t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return{validTo:`${t}-${String(n).padStart(2,"0")}-${String(r).padStart(2,"0")}`,ppd:`${r}/${n}/${t}`}},$I=({open:e,onClose:t,selectedProducts:n=[]})=>{const r=wn(),i=F.useMemo(()=>_I(),[]),[s,a]=F.useState({productName:!0,mrp:!0,percentOff:!0,discountPrice:!0}),[l,c]=F.useState("design1"),[p,u]=F.useState(""),[h,v]=F.useState(1),[b,g]=F.useState(!1),f=w=>a(x=>({...x,[w]:!x[w]})),m=()=>{if(!n||n.length===0){alert("No products selected. Please select products first.");return}if(!p){g(!0);return}g(!1);const w=h>0?h:1;MI({selectedProducts:n,selectedDesign:l,sheetSize:p,itemsToShow:s,copyPerItem:w}),t()},y=r.promoPrintModal;return d.jsxs(yi,{open:e,onClose:t,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:y.dialog},BackdropProps:{sx:{backdropFilter:"blur(4px)",backgroundColor:"rgba(0, 0, 0, 0.3)"}},children:[d.jsx(bi,{children:d.jsxs(M,{sx:y.header,children:[d.jsx(V,{variant:"h6",fontWeight:600,children:"Promo Print"}),d.jsx(jt,{onClick:t,size:"small",children:d.jsx(Nd,{size:20})})]})}),d.jsxs(wa,{sx:{...y.content,overflowY:"visible",maxHeight:"none"},children:[d.jsxs(M,{sx:y.section,children:[d.jsx(V,{sx:y.sectionTitle,children:"Items to show"}),d.jsxs(M,{sx:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:1,columnGap:3},children:[d.jsx(Sn,{control:d.jsx(Bn,{checked:s.productName,onChange:()=>f("productName"),size:"small"}),label:"Product Name",sx:y.checkboxLabel}),d.jsx(Sn,{control:d.jsx(Bn,{checked:s.percentOff,onChange:()=>f("percentOff"),size:"small"}),label:"Percent OFF",sx:y.checkboxLabel}),d.jsx(Sn,{control:d.jsx(Bn,{checked:s.mrp,onChange:()=>f("mrp"),size:"small"}),label:"MRP",sx:y.checkboxLabel}),d.jsx(Sn,{control:d.jsx(Bn,{checked:s.discountPrice,onChange:()=>f("discountPrice"),size:"small"}),label:"Discount Price",sx:y.checkboxLabel})]})]}),d.jsxs(M,{sx:y.section,children:[d.jsx(V,{sx:y.sectionTitle,children:"Promo Design"}),d.jsxs(M,{sx:y.designContainer,children:[d.jsxs(M,{onClick:()=>c("design1"),sx:{...y.designCard.base,...l==="design1"?y.designCard.selected:y.designCard.unselected},children:[d.jsx(V,{sx:{...y.design1.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"SAVE"}),d.jsx(M,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(M,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(V,{component:"span",sx:{...y.design1.rupeeSymbol},children:"₹"}),d.jsx(V,{component:"span",sx:{...y.design1.bigPrice},children:"1387"})]})}),d.jsxs(M,{sx:{...y.design1.bottomInfo,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[d.jsxs(V,{sx:{...y.design1.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["OUR PRICE: ",d.jsx(V,{component:"span",sx:y.design1.rupeeSymbolSmall,children:"₹"}),"73"]}),d.jsxs(V,{sx:{...y.design1.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP: ",d.jsx(V,{component:"span",sx:y.design1.rupeeSymbolSmall,children:"₹"}),"1460"]})]}),d.jsx(V,{sx:{...y.design1.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500g COFFEE BIB"}),d.jsxs(M,{sx:y.design1.dateRow,children:[d.jsxs(V,{sx:y.design1.validFromText,children:["VALID TO: ",i.validTo]}),d.jsxs(V,{sx:y.design1.validToText,children:["PPD: ",i.ppd]})]})]}),d.jsxs(M,{onClick:()=>c("design2"),sx:{...y.designCard.base,...l==="design2"?y.designCard.selected:y.designCard.unselected},children:[d.jsxs(M,{sx:y.design2.mainOfferBlock,children:[d.jsx(V,{sx:{...y.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 1PC @5.00% Off"}),d.jsx(V,{sx:{...y.design2.offerLine,visibility:s.percentOff?"visible":"hidden"},children:"Buy 2PC @5.00% Off"})]}),d.jsxs(V,{sx:{...y.design2.mrpBlock,visibility:s.mrp?"visible":"hidden"},children:["MRP:",d.jsx(V,{component:"span",sx:y.design2.rupeeSymbolSmall,children:"₹"}),"1460"]}),d.jsx(V,{sx:{...y.design2.productName,visibility:s.productName?"visible":"hidden"},children:"NESCAFE CLASSIC 500G COFFEE BIB"}),d.jsxs(M,{sx:y.design2.dateRow,children:[d.jsxs(V,{sx:y.design2.validFromText,children:["(Valid till: ",i.validTo,")"]}),d.jsxs(V,{sx:y.design2.validToText,children:["(PPD: ",i.ppd,")"]})]})]}),d.jsxs(M,{onClick:()=>c("design3"),sx:{...y.designCard.base,...l==="design3"?y.designCard.selected:y.designCard.unselected},children:[d.jsx(V,{sx:{...y.design3.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),d.jsx(M,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(M,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(V,{component:"span",sx:{...y.design3.rupeeSymbol},children:"₹"}),d.jsx(V,{component:"span",sx:{...y.design3.bigPrice},children:"29"})]})}),d.jsx(V,{sx:{...y.design3.productName,visibility:s.productName?"visible":"hidden"},children:"POTATO BIG KG"}),d.jsxs(M,{sx:y.design3.dateRow,children:[d.jsxs(V,{sx:y.design3.validFromText,children:["[ValidTo: ",i.validTo,"]"]}),d.jsxs(V,{sx:y.design3.validToText,children:["[PPD: ",i.ppd,"]"]})]})]}),d.jsxs(M,{onClick:()=>c("design4"),sx:{...y.designCard.base,...l==="design4"?y.designCard.selected:y.designCard.unselected},children:[d.jsx(V,{sx:{...y.design4.ourPriceHeader,visibility:s.discountPrice?"visible":"hidden"},children:"OUR PRICE"}),d.jsx(M,{sx:{width:"100%",display:"flex",justifyContent:"center",visibility:s.discountPrice?"visible":"hidden"},children:d.jsxs(M,{sx:{display:"inline-flex",alignItems:"baseline"},children:[d.jsx(V,{component:"span",sx:{...y.design4.rupeeSymbol},children:"₹"}),d.jsx(V,{component:"span",sx:{...y.design4.priceWhole},children:"899"}),d.jsx(V,{component:"span",sx:{...y.design4.priceDecimal},children:".70"})]})}),d.jsxs(M,{sx:{...y.design4.saveMrpRow,visibility:s.discountPrice||s.mrp?"visible":"hidden"},children:[d.jsxs(V,{sx:{...y.design4.saveAmount,visibility:s.discountPrice?"visible":"hidden"},children:["SAVE: ",d.jsx(V,{component:"span",sx:y.design4.rupeeSymbolSmall,children:"₹"}),"2099.30"]}),d.jsxs(V,{sx:{...y.design4.mrpAmount,visibility:s.mrp?"visible":"hidden"},children:["MRP:",d.jsx(V,{component:"span",sx:y.design4.rupeeSymbolSmall,children:"₹"}),"2999"]})]}),d.jsx(V,{sx:{...y.design4.productCode,visibility:s.productName?"visible":"hidden"},children:"MCS-SWE-CP-SO-RG-XXL-1402A5-PuLa"}),d.jsxs(M,{sx:y.design4.dateRow,children:[d.jsxs(V,{sx:y.design4.validFromText,children:["[VALIDITY: ",i.validTo,"]"]}),d.jsxs(V,{sx:y.design4.validToText,children:["[PPID: ",i.ppd,"]"]})]})]}),d.jsxs(M,{onClick:()=>c("design5"),sx:{...y.designCard.base,...l==="design5"?y.designCard.selected:y.designCard.unselected},children:[d.jsxs(M,{sx:y.design5.topSection,children:[d.jsxs(M,{sx:y.design5.leftColumn,children:[d.jsxs(M,{sx:y.design5.rewardsLogo,children:[d.jsxs(M,{sx:y.design5.logoLine1,children:[d.jsx(V,{sx:y.design5.logoMy,children:"My"}),d.jsx(V,{sx:y.design5.logoSpencer,children:"spencers"})]}),d.jsxs(V,{sx:y.design5.logoRewards,children:["Rewa",d.jsx(V,{component:"span",sx:y.design5.rupeeSymbol1,children:"₹"}),"ds"]})]}),d.jsxs(V,{sx:{...y.design5.memberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["MEMBER",d.jsx("br",{}),"PRICE"]}),d.jsxs(V,{sx:{...y.design5.memberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[d.jsx(V,{component:"span",sx:y.design5.rupeeSymbol,children:"₹"}),"99"]})]}),d.jsx(M,{sx:y.design5.verticalDivider}),d.jsxs(M,{sx:y.design5.rightColumn,children:[d.jsxs(V,{sx:{...y.design5.nonMemberPriceLabel,visibility:s.discountPrice?"visible":"hidden"},children:["NON",d.jsx("br",{}),"MEMBER",d.jsx("br",{}),"PRICE"]}),d.jsxs(V,{sx:{...y.design5.nonMemberPriceValue,visibility:s.discountPrice?"visible":"hidden"},children:[d.jsx(V,{component:"span",sx:y.design5.rupeeSymbol,children:"₹"}),"116"]})]})]}),d.jsxs(M,{sx:y.design5.middleSection,children:[d.jsx(V,{sx:{...y.design5.productName,visibility:s.productName?"visible":"hidden"},children:"MAGGI 2-MINUTE MASALA NOODLES 560G"}),d.jsxs(V,{sx:{...y.design5.mrpText,visibility:s.mrp?"visible":"hidden"},children:["MRP ",d.jsx(V,{component:"span",sx:y.design5.rupeeSymbolSmall,children:"₹"}),"120"]})]}),d.jsx(M,{sx:y.design5.horizontalDivider}),d.jsx(M,{sx:y.design5.bottomSection,children:d.jsx(V,{sx:y.design5.savingsMessage,children:"SAVE UPTO 6% EXTRA MONTHLY WITH MY SPENCERS REWARDS"})})]})]})]}),d.jsxs(M,{children:[d.jsx(M,{children:d.jsx(V,{variant:"subtitle2",fontWeight:600,children:"Sheet Size"})}),d.jsxs(M,{sx:y.sheetSizeGroup,children:[["A4","A7"].map(w=>d.jsx(M,{onClick:()=>{u(w),g(!1)},bgcolor:"#F5F5F5",borderRadius:2,sx:{...y.sheetSizeBtn,...p===w?y.sheetSizeBtnSelected:{}},children:d.jsx(V,{variant:"body2",textAlign:"center",pt:1,children:w})},w)),d.jsxs(M,{sx:y.sheetSizeHeader||{display:"flex",justifyContent:"space-between",alignItems:"center",mb:.5,mt:1.5},children:[d.jsx(V,{variant:"caption",color:"text.secondary",sx:{mr:1},children:"Enter Copy per item:"}),d.jsx(pd,{type:"number",value:h,onChange:w=>{const x=parseInt(w.target.value,10);!isNaN(x)&&x>0?v(x):w.target.value===""&&v(1)},inputProps:{min:1,style:{padding:"4px 8px",textAlign:"center",width:"60px"}},sx:{"& .MuiOutlinedInput-root":{height:"42px",width:"80px",bgcolor:"#F5F5F5"},"& .MuiOutlinedInput-input":{padding:"4px 8px"}},size:"small"})]})]})]})]}),d.jsxs(Kc,{sx:{...y.actions||{px:2,pb:1},flexDirection:"column",alignItems:"stretch"},children:[b&&d.jsx(V,{variant:"body2",sx:{color:"red",textAlign:"flex-start",mb:1},children:"Please Select a Sheet Size"}),d.jsx(Xe,{type:"button",onClick:m,variant:"contained",sx:y.printButton,children:"Print"})]})]})};function DI({onClose:e,selectedCount:t=3,open:n,stores:r=[]}){const[i,s]=F.useState("Christmas Super Sale 2025"),[a,l]=F.useState("company.ariaops.com/catalog/christmas-super-sale-2025"),[c,p]=F.useState("all"),[u,h]=F.useState(!1);return d.jsxs(yi,{open:n,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[d.jsx(bi,{children:d.jsxs(M,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsxs(V,{variant:"h6",fontWeight:600,children:["Create Catalog Of ",t," Items"]}),d.jsx(jt,{onClick:e,size:"small","aria-label":"Close",children:d.jsx(Im,{})})]})}),d.jsxs(wa,{sx:{pt:1},children:[d.jsx(V,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Name"}),d.jsx("input",{type:"text",value:i,onChange:v=>s(v.target.value),style:{width:"100%",marginBottom:16,padding:"10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#fff",color:"#222",boxSizing:"border-box"}}),d.jsx(V,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"Catalog Link"}),d.jsxs("div",{style:{position:"relative",marginBottom:16},children:[d.jsx("input",{type:"text",value:a,onChange:v=>l(v.target.value),style:{width:"100%",padding:"10px 36px 10px 12px",fontSize:16,fontWeight:500,border:"1px solid #d1d5db",borderRadius:6,outline:"none",background:"#f5f7fa",color:"#888",boxSizing:"border-box"}}),a&&d.jsx(Em,{color:"success",fontSize:"small",style:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)"}})]}),d.jsx(V,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),d.jsxs(M,{sx:{position:"relative",mb:3},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>h(v=>!v),children:[d.jsx(M,{sx:{display:"flex",alignItems:"center",mr:1},children:d.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),d.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),d.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),d.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:c==="all"?"All Stores":r.find(v=>v.id===c)?.name||"Select Store"}),d.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${r.filter(v=>v.id!=="all").length} stores`}),d.jsx(Md,{sx:{color:"#888",ml:"auto"}})]}),u&&d.jsx(M,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:r.map(v=>d.jsx(M,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:c===v.id?700:400,color:c===v.id?"#222":"#444",background:c===v.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{p(v.id),h(!1)},children:v.name},v.id))})]}),d.jsx(M,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:d.jsx(Xe,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Create"})})]})]})}function FI({onClose:e,open:t,stores:n=[]}){const[r,i]=F.useState("all"),[s,a]=F.useState(!1);return d.jsxs(yi,{open:t,onClose:e,maxWidth:"sm",fullWidth:!0,disableScrollLock:!0,PaperProps:{sx:{borderRadius:3,p:4}},BackdropProps:{sx:{backdropFilter:"blur(6px)",backgroundColor:"rgba(0,0,0,0.15)"}},children:[d.jsx(bi,{children:d.jsxs(M,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[d.jsx(V,{variant:"h6",fontWeight:600,ml:-3,children:"New OSA Request"}),d.jsx(jt,{onClick:e,size:"small","aria-label":"Close",children:d.jsx(Im,{})})]})}),d.jsx(V,{fontSize:14,fontWeight:500,mb:.5,color:"#222",children:"For These Stores"}),d.jsxs(M,{sx:{position:"relative",mb:3},children:[d.jsxs(M,{sx:{display:"flex",alignItems:"center",border:"1px solid #e0e0e0",borderRadius:"8px",px:2,py:1.2,minWidth:180,cursor:"pointer",userSelect:"none",fontWeight:500,background:"#fff"},onClick:()=>a(l=>!l),children:[d.jsx(M,{sx:{display:"flex",alignItems:"center",mr:1},children:d.jsxs("svg",{width:"20",height:"20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("rect",{width:"20",height:"20",rx:"4",fill:"#F5F7FA"}),d.jsx("path",{d:"M7.5 8.5a2.5 2.5 0 1 1 5 0v1a2.5 2.5 0 1 1-5 0v-1Z",stroke:"#222",strokeWidth:"1.2"}),d.jsx("rect",{x:"3.5",y:"5.5",width:"13",height:"9",rx:"2.5",stroke:"#222",strokeWidth:"1.2"})]})}),d.jsx("span",{style:{fontWeight:700,color:"#222",marginRight:4},children:r==="all"?"All Stores":n.find(l=>l.id===r)?.name||"Select Store"}),d.jsx("span",{style:{color:"#888",fontWeight:400,fontSize:15,marginLeft:4},children:` ${n.filter(l=>l.id!=="all").length} stores`}),d.jsx(Md,{sx:{color:"#888",ml:"auto"}})]}),s&&d.jsx(M,{sx:{position:"absolute",left:0,right:0,top:"100%",zIndex:10,bgcolor:"#fff",border:"1px solid #e0e0e0",borderRadius:"8px",boxShadow:"0 4px 16px rgba(0,0,0,0.08)",mt:1,maxHeight:220,overflowY:"auto"},children:n.map(l=>d.jsx(M,{sx:{px:2,py:1.2,cursor:"pointer",fontWeight:r===l.id?700:400,color:r===l.id?"#222":"#444",background:r===l.id?"#f5f7fa":"#fff","&:hover":{background:"#f5f7fa"}},onClick:()=>{i(l.id),a(!1)},children:l.name},l.id))})]}),d.jsx(M,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",mb:3},children:d.jsx(Xe,{variant:"contained",color:"primary",sx:{minWidth:140,height:48,borderRadius:2,fontWeight:600,fontSize:16,boxShadow:"none"},children:"Send Request"})})]})}const jI=()=>{const e=Xt(),t=gt(),[n]=Yy(),r=n.get("categoryName"),s=wn().categoryDetail,[a,l]=F.useState({category:"all",status:"all",search:"",store:[]}),[c,p]=F.useState([]),[u,h]=F.useState(null),[v,b]=F.useState(!1),[g,f]=F.useState(!1),[m,y]=F.useState(!1),{integrationData:w,companyId:x,loading:S}=qe(G=>G.dashboard),C=F.useRef(!1);F.useEffect(()=>{!x&&!C.current&&(C.current=!0,e(_r()))},[e,x]);const O=F.useMemo(()=>w&&typeof w=="object"&&Object.keys(w).length>0?{matched:!0,error:"",apiResponse:w,loading:!1}:{matched:!1,error:"No active integration found",apiResponse:null,loading:!1},[w]),P=qe(G=>G.dashboard),{products:$=[],stores:A=[]}=P||{},{sharedCatalogues:j=[]}=qe(G=>G.productSettings??{}),L=F.useMemo(()=>Array.isArray(j)?j.filter(G=>G.status===!0).length:0,[j]),T=F.useMemo(()=>{if(!r||!Array.isArray($))return[];const G=r.trim();return $.filter(q=>q.categoryName&&q.categoryName.trim().toLowerCase()===G.toLowerCase()).map(q=>({...q,id:q.id||q.sku||q.productName}))},[$,r]),k=T.length>0,_=F.useMemo(()=>{if(!T||T.length===0)return;const G=T.map(q=>Number(q.price??q.sellingPrice??q.mrp)).filter(q=>Number.isFinite(q)&&q>=0);if(G.length!==0)return{min:Math.min(...G),max:Math.max(...G)}},[T]),D=Array.isArray($)&&$.length>0,N=Array.isArray(a.store)?a.store:[],I=!(N.length===1&&N[0]!=="all"),W=G=>{G.preventDefault(),t("/settings",{state:{tenantIntegrationData:O.apiResponse}})},z=A.length>0?A:[{id:"all",name:"All Stores",storeCode:"all"}],R=G=>{l(G)},Y=F.useRef(null);F.useEffect(()=>{if(!x)return;const G=Array.isArray(a.store)?a.store:[],q={};if(G.length>0&&!G.includes("all")){const oe=G.map(re=>A.find(ee=>ee.id===re)?.storeCode).filter(Boolean);oe.length>0&&(q.storeCode=oe.join(","))}(a.status==="active"||a.status==="inactive")&&(q.status=a.status==="active"),(a.stock==="inStock"||a.stock==="outOfStock")&&(q.inStock=a.stock==="inStock"),typeof a.minPrice=="number"&&Number.isFinite(a.minPrice)&&(q.minPrice=a.minPrice),typeof a.maxPrice=="number"&&Number.isFinite(a.maxPrice)&&(q.maxPrice=a.maxPrice);const J=JSON.stringify(q);Y.current!==J&&(Y.current=J,e(Mn(Object.keys(q).length?q:{})))},[x,a.store,a.status,a.stock,a.minPrice,a.maxPrice,e,A]);const te=(G,q)=>{p(J=>{const oe=J[q]||[];let re;return oe.some(ie=>ie.id===G.id)?re=oe.filter(ie=>ie.id!==G.id):re=[...oe,G],{...J,[q]:re}}),h(q)};return F.useEffect(()=>{x&&(e(Nt(x)),e(Mn()),e(Dr({page:1})))},[e,x]),d.jsxs(d.Fragment,{children:[d.jsx(Fa,{filters:a,onFilterChange:R,styles:s.topBar,stores:z,tenantStatus:O,hasProducts:D,priceRange:_,showBackButton:!0,backTo:"/"}),S||!x?d.jsx(M,{sx:{minHeight:300,display:"flex",alignItems:"center",justifyContent:"center"},children:"Loading..."}):r?k?d.jsxs(M,{sx:s.root,children:[d.jsx(Tm,{productState:P,categoryName:r,categoryProductCount:T.length,activeCatalogsCount:L,onManageClick:()=>t("/catalogs/manage-shared")}),d.jsx(CI,{data:T,styles:s,selectedProducts:c[r]||[],onSelectProduct:te,categoryName:r,showLimitedColumns:I})]}):d.jsx(Ai,{handleStartSyncing:W,loading:!1,categoryName:r,hideSubtitleAndAction:!0}):d.jsx(Ai,{handleStartSyncing:W,loading:!1}),d.jsx(EI,{onPromoPrint:()=>b(!0),onCreateCatalog:()=>f(!0),onOsaRequest:()=>y(!0),selectedProducts:c[r]||[],selectedCategory:u}),d.jsx($I,{open:v,onClose:()=>b(!1),selectedProducts:c[r]||[]},v?"open":"closed"),d.jsx(DI,{open:g,onClose:()=>f(!1),stores:z}),d.jsx(FI,{open:m,onClose:()=>y(!1),stores:z})]})};function LI({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsxs(Ty,{children:[d.jsx(Vn,{path:"/",element:d.jsx(NN,{})}),d.jsx(Vn,{path:"/home",element:d.jsx(CN,{})}),d.jsx(Vn,{path:"/products",element:d.jsx(SN,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}),d.jsx(Vn,{path:"/product-setting",element:d.jsx(WN,{})}),d.jsx(Vn,{path:"/products/settings/ftp-sync",element:d.jsx(bI,{})}),d.jsx(Vn,{path:"/catalogs/manage-shared",element:d.jsx(wI,{})}),d.jsx(Vn,{path:"/category",element:d.jsx(jI,{})})]})}function zI({StoresModal:e,storesModalProps:t,onStoreSelect:n}){return d.jsx(LI,{StoresModal:e,storesModalProps:t,onStoreSelect:n})}const BI=()=>d.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"100vh",width:"100%"},children:d.jsx("div",{children:"Loading..."})});return({apiUrl:e,authToken:t,basePath:n="/",StoresModal:r,storesModalProps:i,onStoreSelect:s})=>d.jsx("div",{style:{width:"100%",minHeight:"100vh"},children:d.jsx(Gx,{apiUrl:e,authToken:t,children:d.jsx(yb,{store:Kp,children:d.jsx(Cb.PersistGate,{loading:d.jsx(BI,{}),persistor:Yx,children:d.jsx(By,{basename:n,children:d.jsx(zI,{StoresModal:r,storesModalProps:i,onStoreSelect:s})})})})})})}));
|
|
1592
1583
|
//# sourceMappingURL=product-app.umd.js.map
|