@gyramais/gyra-design 0.2.41 → 0.2.43
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/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +7 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/SyncChip/index.js +1 -1
- package/dist/components/SyncChip/index.js.map +1 -1
- package/dist/emails/balance-sheet-finalized/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/emails/balance-sheet-finalized/components/Skeleton/index.d.ts +1 -0
- package/dist/emails/balance-sheet-finalized/index.d.ts +1 -0
- package/dist/emails/email/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/emails/email/components/Skeleton/index.d.ts +1 -0
- package/dist/emails/email/index.d.ts +1 -0
- package/dist/index.css +99 -26
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
type SkeletonVariant = "text" | "rect" | "circle";
|
|
4
|
+
type SkeletonProps = {
|
|
5
|
+
id?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Formato do bloco. `text` = linha fina; `rect` = bloco; `circle` = avatar. */
|
|
8
|
+
variant?: SkeletonVariant;
|
|
9
|
+
width?: number | string;
|
|
10
|
+
height?: number | string;
|
|
11
|
+
/** Quando > 1 (variant text), empilha N linhas; a ultima sai mais curta. */
|
|
12
|
+
lines?: number;
|
|
13
|
+
/** Override do border-radius. */
|
|
14
|
+
radius?: number | string;
|
|
15
|
+
};
|
|
16
|
+
declare const Skeleton: ({ id, className, variant, width, height, lines, radius, }: SkeletonProps) => React.JSX.Element;
|
|
17
|
+
export { Skeleton };
|
|
18
|
+
export type { SkeletonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Skeleton";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";import e from"react";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,a={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/r=a,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=n(e,a(r)))}return e}function a(r){if("string"==typeof r||"number"==typeof r)return r;if("object"!=typeof r)return"";if(Array.isArray(r))return t.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var a="";for(var i in r)e.call(r,i)&&r[i]&&(a=n(a,i));return a}function n(e,t){return t?e?e+" "+t:e+t:e}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var n=t(a.exports);const i=e=>"number"==typeof e?`${e}px`:e,o=({id:t,className:r,variant:a="text",width:o,height:s,lines:l,radius:u})=>"text"===a&&l&&l>1?e.createElement("div",{id:t,className:n("gyramais-skeleton-stack",r),"aria-hidden":"true"},Array.from({length:l}).map((t,r)=>{const a=r===l-1;return e.createElement("span",{key:r,className:"gyramais-skeleton gyramais-skeleton-text",style:{width:a?"60%":i(o)??"100%",height:i(s),borderRadius:i(u)}})})):e.createElement("span",{id:t,className:n("gyramais-skeleton",`gyramais-skeleton-${a}`,r),style:{width:i(o),height:i(s),borderRadius:i(u)},"aria-hidden":"true"});export{o as Skeleton};
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/classnames/index.js","../../../src/components/Skeleton/Skeleton.tsx"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","import React from \"react\";\nimport classNames from \"classnames\";\nimport \"./index.css\";\n\n/* Placeholder de carregamento (shimmer). Primitivo generico: mostra a\n silhueta cinza do conteudo que vai chegar, em vez de um spinner. Compõe\n varios pra montar o esqueleto de um card/tabela. Respeita\n prefers-reduced-motion (troca o brilho deslizante por um pulso suave). */\n\ntype SkeletonVariant = \"text\" | \"rect\" | \"circle\";\n\ntype SkeletonProps = {\n id?: string;\n className?: string;\n /** Formato do bloco. `text` = linha fina; `rect` = bloco; `circle` = avatar. */\n variant?: SkeletonVariant;\n width?: number | string;\n height?: number | string;\n /** Quando > 1 (variant text), empilha N linhas; a ultima sai mais curta. */\n lines?: number;\n /** Override do border-radius. */\n radius?: number | string;\n};\n\nconst toCss = (value?: number | string) =>\n typeof value === \"number\" ? `${value}px` : value;\n\nconst Skeleton = ({\n id,\n className,\n variant = \"text\",\n width,\n height,\n lines,\n radius,\n}: SkeletonProps) => {\n if (variant === \"text\" && lines && lines > 1) {\n return (\n <div\n id={id}\n className={classNames(\"gyramais-skeleton-stack\", className)}\n aria-hidden=\"true\"\n >\n {Array.from({ length: lines }).map((_, index) => {\n const isLast = index === lines - 1;\n return (\n <span\n key={index}\n className=\"gyramais-skeleton gyramais-skeleton-text\"\n style={{\n width: isLast ? \"60%\" : toCss(width) ?? \"100%\",\n height: toCss(height),\n borderRadius: toCss(radius),\n }}\n />\n );\n })}\n </div>\n );\n }\n\n return (\n <span\n id={id}\n className={classNames(\n \"gyramais-skeleton\",\n `gyramais-skeleton-${variant}`,\n className,\n )}\n style={{\n width: toCss(width),\n height: toCss(height),\n borderRadius: toCss(radius),\n }}\n aria-hidden=\"true\"\n />\n );\n};\n\nexport { Skeleton };\nexport type { SkeletonProps };\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","Object","prototype","includes","key","call","value","newClass","module","exports","default","window","toCss","Skeleton","id","className","variant","width","height","lines","radius","React","createElement","from","map","_","index","isLast","style","borderRadius"],"mappings":";;;;;MAOC,WAGA,IAAIA,EAAS,CAAA,EAAGC,eAEhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GAChBG,IACHJ,EAAUK,EAAYL,EAASM,EAAWF,IAE9C,CAEE,OAAOJ,CACT,CAEC,SAASM,EAAYF,GACpB,GAAmB,iBAARA,GAAmC,iBAARA,EACrC,OAAOA,EAGR,GAAmB,iBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOL,EAAWU,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAaC,OAAOC,UAAUF,WAAaN,EAAIM,SAASA,WAAWG,SAAS,iBACnF,OAAOT,EAAIM,WAGZ,IAAIV,EAAU,GAEd,IAAK,IAAIc,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,KAChCd,EAAUK,EAAYL,EAASc,IAIjC,OAAOd,CACT,CAEC,SAASK,EAAaW,EAAOC,GAC5B,OAAKA,EAIDD,EACIA,EAAQ,IAAMC,EAGfD,EAAQC,EAPPD,CAQV,CAEsCE,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,UAAiBnB,GAOjBsB,OAAOtB,WAAaA,CAEtB,CArEA,sBCiBA,MAAMuB,EAASN,GACI,iBAAVA,EAAqB,GAAGA,MAAYA,EAEvCO,EAAW,EACfC,KACAC,YACAC,UAAU,OACVC,QACAC,SACAC,QACAC,YAEgB,SAAZJ,GAAsBG,GAASA,EAAQ,EAEvCE,EAAAC,cAAA,MAAA,CACER,GAAIA,EACJC,UAAW1B,EAAW,0BAA2B0B,iBACrC,QAEXlB,MAAM0B,KAAK,CAAE9B,OAAQ0B,IAASK,IAAI,CAACC,EAAGC,KACrC,MAAMC,EAASD,IAAUP,EAAQ,EACjC,OACEE,EAAAC,cAAA,OAAA,CACElB,IAAKsB,EACLX,UAAU,2CACVa,MAAO,CACLX,MAAOU,EAAS,MAAQf,EAAMK,IAAU,OACxCC,OAAQN,EAAMM,GACdW,aAAcjB,EAAMQ,SAUhCC,wBACEP,GAAIA,EACJC,UAAW1B,EACT,oBACA,qBAAqB2B,IACrBD,GAEFa,MAAO,CACLX,MAAOL,EAAMK,GACbC,OAAQN,EAAMM,GACdW,aAAcjB,EAAMQ,IACrB,cACW","x_google_ignoreList":[0]}
|
|
@@ -41,5 +41,5 @@ object-assign
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
function(e,t){const r=rs(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return as[0]=e,_a(as)},keyframes:function(){var e=qa.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_"}}}}),ls=m(ss),cs=m(Dn),us=m(Oo),fs=m(So);const ds=["values","unit","step"];function ps(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Uo(e,ds),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>An({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return An({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const ms={borderRadius:4},ys="production"!==process.env.NODE_ENV?lo.oneOfType([lo.number,lo.string,lo.object,lo.array]):{};function hs(e,t){return t?In(e,t,{clone:!1}):e}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},bs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`};function vs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||bs;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||bs;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||gs).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function ws(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function xs(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ss(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:xs(e,r)||n,t&&(o=t(o,n,e)),o}function Es(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=xs(e.theme,n)||{};return vs(e,i,e=>{let n=Ss(a,o,e);return e===n&&"string"==typeof e&&(n=Ss(a,o,`${t}${"default"===e?"":Eo(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:ys}:{},i.filterProps=[t],i}const Os={m:"margin",p:"padding"},ks={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Cs=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!$s[e])return[e];e=$s[e]}const[t,r]=e.split(""),n=Os[t],o=ks[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),_s=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ts=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ns=[..._s,...Ts];function Ps(e,t,r,n){var o;const i=null!=(o=xs(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):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("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Rs(e){return Ps(e,"spacing",8,"spacing")}function As(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Ms(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=As(t,r),e),{})}(Cs(r),n);return vs(e,e[r],o)}function js(e,t){const r=Rs(e.theme);return Object.keys(e).map(n=>Ms(e,t,n,r)).reduce(hs,{})}function Is(e){return js(e,_s)}function zs(e){return js(e,Ts)}function Ds(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?hs(r,t[n](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Ls(e){return"number"!=typeof e?e:`${e}px solid`}function Vs(e,t){return Es({prop:e,themeKey:"borders",transform:t})}Is.propTypes="production"!==process.env.NODE_ENV?_s.reduce((e,t)=>(e[t]=ys,e),{}):{},Is.filterProps=_s,zs.propTypes="production"!==process.env.NODE_ENV?Ts.reduce((e,t)=>(e[t]=ys,e),{}):{},zs.filterProps=Ts,"production"===process.env.NODE_ENV||Ns.reduce((e,t)=>(e[t]=ys,e),{});const Fs=Vs("border",Ls),Ws=Vs("borderTop",Ls),Bs=Vs("borderRight",Ls),Hs=Vs("borderBottom",Ls),Us=Vs("borderLeft",Ls),Gs=Vs("borderColor"),Ks=Vs("borderTopColor"),qs=Vs("borderRightColor"),Ys=Vs("borderBottomColor"),Xs=Vs("borderLeftColor"),Js=Vs("outline",Ls),Zs=Vs("outlineColor"),Qs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ps(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:As(t,e)});return vs(e,e.borderRadius,r)}return null};Qs.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ys}:{},Qs.filterProps=["borderRadius"],Ds(Fs,Ws,Bs,Hs,Us,Gs,Ks,qs,Ys,Xs,Qs,Js,Zs);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ps(e.theme,"spacing",8,"gap"),r=e=>({gap:As(t,e)});return vs(e,e.gap,r)}return null};el.propTypes="production"!==process.env.NODE_ENV?{gap:ys}:{},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ps(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:As(t,e)});return vs(e,e.columnGap,r)}return null};tl.propTypes="production"!==process.env.NODE_ENV?{columnGap:ys}:{},tl.filterProps=["columnGap"];const rl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ps(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:As(t,e)});return vs(e,e.rowGap,r)}return null};rl.propTypes="production"!==process.env.NODE_ENV?{rowGap:ys}:{},rl.filterProps=["rowGap"];function nl(e,t){return"grey"===t?t:e}Ds(el,tl,rl,Es({prop:"gridColumn"}),Es({prop:"gridRow"}),Es({prop:"gridAutoFlow"}),Es({prop:"gridAutoColumns"}),Es({prop:"gridAutoRows"}),Es({prop:"gridTemplateColumns"}),Es({prop:"gridTemplateRows"}),Es({prop:"gridTemplateAreas"}),Es({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Ds(Es({prop:"color",themeKey:"palette",transform:nl}),Es({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nl}),Es({prop:"backgroundColor",themeKey:"palette",transform:nl}));const il=Es({prop:"width",transform:ol}),al=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||gs[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ol(t)}};return vs(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const sl=Es({prop:"minWidth",transform:ol}),ll=Es({prop:"height",transform:ol}),cl=Es({prop:"maxHeight",transform:ol}),ul=Es({prop:"minHeight",transform:ol});Es({prop:"size",cssProperty:"width",transform:ol}),Es({prop:"size",cssProperty:"height",transform:ol});Ds(il,al,sl,ll,cl,ul,Es({prop:"boxSizing"}));const fl={border:{themeKey:"borders",transform:Ls},borderTop:{themeKey:"borders",transform:Ls},borderRight:{themeKey:"borders",transform:Ls},borderBottom:{themeKey:"borders",transform:Ls},borderLeft:{themeKey:"borders",transform:Ls},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ls},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qs},color:{themeKey:"palette",transform:nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nl},backgroundColor:{themeKey:"palette",transform:nl},p:{style:zs},pt:{style:zs},pr:{style:zs},pb:{style:zs},pl:{style:zs},px:{style:zs},py:{style:zs},padding:{style:zs},paddingTop:{style:zs},paddingRight:{style:zs},paddingBottom:{style:zs},paddingLeft:{style:zs},paddingX:{style:zs},paddingY:{style:zs},paddingInline:{style:zs},paddingInlineStart:{style:zs},paddingInlineEnd:{style:zs},paddingBlock:{style:zs},paddingBlockStart:{style:zs},paddingBlockEnd:{style:zs},m:{style:Is},mt:{style:Is},mr:{style:Is},mb:{style:Is},ml:{style:Is},mx:{style:Is},my:{style:Is},margin:{style:Is},marginTop:{style:Is},marginRight:{style:Is},marginBottom:{style:Is},marginLeft:{style:Is},marginX:{style:Is},marginY:{style:Is},marginInline:{style:Is},marginInlineStart:{style:Is},marginInlineEnd:{style:Is},marginBlock:{style:Is},marginBlockStart:{style:Is},marginBlockEnd:{style:Is},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:el},rowGap:{style:rl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dl(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=xs(r,s)||{};if(c)return c(o);return vs(o,t,t=>{let r=Ss(u,l,t);return t===r&&"string"==typeof t&&(r=Ss(u,l,`${e}${"default"===t?"":Eo(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:fl;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=hs(c,e(r,o,i,s));else{const e=vs({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?c=hs(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=hs(c,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ws(l,c)}:ws(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const pl=dl();function ml(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}pl.filterProps=["sx"];const yl=["breakpoints","palette","spacing","shape"];function hl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Uo(e,yl),s=ps(r),l=function(e=8){if(e.mui)return e;const t=Rs({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" "));return r.mui=!0,r}(o);let c=In({breakpoints:s,direction:"ltr",components:{},palette:An({mode:"light"},n),spacing:l,shape:An({},ms,i)},a);return c.applyStyles=ml,c=t.reduce((e,t)=>In(e,t),c),c.unstable_sxConfig=An({},fl,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return pl({sx:e,theme:this})},c}var gl=m(Object.freeze({__proto__:null,default:hl,private_createBreakpoints:ps,unstable_applyStyles:ml}));const bl=["sx"];var vl=m(Object.freeze({__proto__:null,default:pl,extendSxProp:function(e){const{sx:t}=e,r=Uo(e,bl),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:fl;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Mn(r)?An({},n,r):n}:An({},n,t),An({},o,{sx:i})},unstable_createStyleFunctionSx:dl,unstable_defaultSxConfig:fl})),wl=Pn;Object.defineProperty(Yo,"__esModule",{value:!0});var xl=Yo.default=function(e={}){const{themeId:t,defaultTheme:r=Il,rootShouldForwardProp:n=Ml,slotShouldForwardProp:o=Ml}=e,i=e=>(0,Tl.default)((0,Sl.default)({},e,{theme:Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ol.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:f=Ll(zl(l))}=a,d=(0,El.default)(a,Rl),p=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,y=u||!1;let h;"production"!==process.env.NODE_ENV&&s&&(h=`${s}-${zl(l||"Root")}`);let g=Ml;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Ol.default)(e,(0,Sl.default)({shouldForwardProp:g,label:h},d)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,kl.isPlainObject)(e)?n=>{const o=Dl({theme:n.theme,defaultTheme:r,themeId:t});return Vl(e,(0,Sl.default)({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(n,...o)=>{let a=v(n);const c=o?o.map(v):[];s&&f&&c.push(e=>{const n=Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Vl(r,(0,Sl.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&c.push(e=>{var n;const o=Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}));return Vl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Sl.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),y||c.push(i);const u=c.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=b(a,...c);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,$l.default)(l||"")}`),void 0===t&&(t=`Styled(${(0,Cl.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return b.withConfig&&(w.withConfig=b.withConfig),w}};Yo.shouldForwardProp=Ml,Yo.systemDefaultTheme=void 0;var Sl=wl((qo||(qo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xo)),Xo.exports)),El=wl((Jo||(Jo=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Zo)),Zo.exports)),Ol=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Al(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ls),kl=cs,$l=wl(us),Cl=wl(fs),_l=wl(gl),Tl=wl(vl);const Nl=["ownerState"],Pl=["variants"],Rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Al(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Al=function(e){return e?r:t})(e)}function Ml(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function jl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Il=Yo.systemDefaultTheme=(0,_l.default)(),zl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Dl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ll(e){return e?(t,r)=>r[e]:null}function Vl(e,t,r){let{ownerState:n}=t,o=(0,El.default)(t,Nl);const i="function"==typeof e?e((0,Sl.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Vl(e,(0,Sl.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,El.default)(i,Pl);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Sl.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Sl.default)({ownerState:n},o,n)):e.style;t.push(r?jl((0,Ol.internal_serializeStyles)(i),r):i)}}),t}return r?jl((0,Ol.internal_serializeStyles)(i),r):i}var Fl={},Wl=m(fo),Bl=m(Ho),Hl=Pn;Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.alpha=nc,Fl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Zl(e),a=Zl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ec({type:"rgb",values:s})},Fl.colorChannel=void 0;var Ul=Fl.darken=oc;Fl.decomposeColor=Zl,Fl.emphasize=ac;var Gl=Fl.getContrastRatio=function(e,t){const r=rc(e),n=rc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Fl.getLuminance=rc,Fl.hexToRgb=Jl,Fl.hslToRgb=tc;var Kl=Fl.lighten=ic;Fl.private_safeAlpha=function(e,t,r){try{return nc(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeColorChannel=void 0,Fl.private_safeDarken=function(e,t,r){try{return oc(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeEmphasize=function(e,t,r){try{return ac(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeLighten=function(e,t,r){try{return ic(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.recomposeColor=ec,Fl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Zl(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var ql=Hl(Wl),Yl=Hl(Bl);function Xl(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Yl.default)(e,t,r)}function Jl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Zl(e){if(e.type)return e;if("#"===e.charAt(0))return Zl(Jl(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ql.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ql.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const Ql=e=>{const t=Zl(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Fl.colorChannel=Ql;function ec(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function tc(e){e=Zl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ec({type:s,values:l})}function rc(e){let t="hsl"===(e=Zl(e)).type||"hsla"===e.type?Zl(tc(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nc(e,t){return e=Zl(e),t=Xl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ec(e)}function oc(e,t){if(e=Zl(e),t=Xl(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ec(e)}function ic(e,t){if(e=Zl(e),t=Xl(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ec(e)}function ac(e,t=.15){return rc(e)>.5?oc(e,t):ic(e,t)}Fl.private_safeColorChannel=(e,t)=>{try{return Ql(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const sc={black:"#000",white:"#fff"},lc={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"},cc="#f3e5f5",uc="#ce93d8",fc="#ba68c8",dc="#ab47bc",pc="#9c27b0",mc="#7b1fa2",yc="#e57373",hc="#ef5350",gc="#f44336",bc="#d32f2f",vc="#c62828",wc="#ffb74d",xc="#ffa726",Sc="#ff9800",Ec="#f57c00",Oc="#e65100",kc="#e3f2fd",$c="#90caf9",Cc="#42a5f5",_c="#1976d2",Tc="#1565c0",Nc="#4fc3f7",Pc="#29b6f6",Rc="#03a9f4",Ac="#0288d1",Mc="#01579b",jc="#81c784",Ic="#66bb6a",zc="#4caf50",Dc="#388e3c",Lc="#2e7d32",Vc="#1b5e20",Fc=["mode","contrastThreshold","tonalOffset"],Wc={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:sc.white,default:sc.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}},Bc={text:{primary:sc.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:sc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Hc(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Kl(e.main,o):"dark"===t&&(e.dark=Ul(e.main,i)))}function Uc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Uo(e,Fc),i=e.primary||function(e="light"){return"dark"===e?{main:$c,light:kc,dark:Cc}:{main:_c,light:Cc,dark:Tc}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uc,light:cc,dark:dc}:{main:pc,light:fc,dark:mc}}(t),s=e.error||function(e="light"){return"dark"===e?{main:gc,light:yc,dark:bc}:{main:bc,light:hc,dark:vc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Pc,light:Nc,dark:Ac}:{main:Ac,light:Rc,dark:Mc}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ic,light:jc,dark:Dc}:{main:Lc,light:zc,dark:Vc}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:xc,light:wc,dark:Ec}:{main:"#ed6c02",light:Sc,dark:Oc}}(t);function f(e){const t=Gl(e,Bc.text.primary)>=r?Bc.text.primary:Wc.text.primary;if("production"!==process.env.NODE_ENV){const r=Gl(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"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("\n"))}return t}const d=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=An({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:co(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:co(12,t?` (${t})`:"",JSON.stringify(e.main)));return Hc(e,"light",o,n),Hc(e,"dark",i,n),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Bc,light:Wc};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return In(An({common:An({},sc),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:lc,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),o)}const Gc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Kc={textTransform:"uppercase"},qc='"Roboto", "Helvetica", "Arial", sans-serif';function Yc(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=qc,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=r,d=Uo(r,Gc);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/c*p+"rem"),y=(e,t,r,o,i)=>{return An({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===qc?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},h={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,Kc),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,Kc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return In(An({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},h),d,{clone:!1})}function Xc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jc=["none",Xc(0,2,1,-1,0,1,1,0,0,1,3,0),Xc(0,3,1,-2,0,2,2,0,0,1,5,0),Xc(0,3,3,-2,0,3,4,0,0,1,8,0),Xc(0,2,4,-1,0,4,5,0,0,1,10,0),Xc(0,3,5,-1,0,5,8,0,0,1,14,0),Xc(0,3,5,-1,0,6,10,0,0,1,18,0),Xc(0,4,5,-2,0,7,10,1,0,2,16,1),Xc(0,5,5,-3,0,8,10,1,0,3,14,2),Xc(0,5,6,-3,0,9,12,1,0,3,16,2),Xc(0,6,6,-3,0,10,14,1,0,4,18,3),Xc(0,6,7,-4,0,11,15,1,0,4,20,3),Xc(0,7,8,-4,0,12,17,2,0,5,22,4),Xc(0,7,8,-4,0,13,19,2,0,5,24,4),Xc(0,7,9,-4,0,14,21,2,0,5,26,4),Xc(0,8,9,-5,0,15,22,2,0,6,28,5),Xc(0,8,10,-5,0,16,24,2,0,6,30,5),Xc(0,8,11,-5,0,17,26,2,0,6,32,5),Xc(0,9,11,-5,0,18,28,2,0,7,34,6),Xc(0,9,12,-6,0,19,29,2,0,7,36,6),Xc(0,10,13,-6,0,20,31,3,0,8,38,7),Xc(0,10,13,-6,0,21,33,3,0,8,40,7),Xc(0,10,14,-6,0,22,35,3,0,8,42,7),Xc(0,11,14,-7,0,23,36,3,0,9,44,8),Xc(0,11,15,-7,0,24,38,3,0,9,46,8)],Zc=["duration","easing","delay"],Qc={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)"},eu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tu(e){return`${Math.round(e)}ms`}function ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nu(e){const t=An({},Qc,e.easing),r=An({},eu,e.duration);return An({getAutoHeightDuration:ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n,s=Uo(n,Zc);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&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("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:tu(o)} ${i} ${"string"==typeof a?a:tu(a)}`).join(",")}},e,{easing:t,duration:r})}const ou={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const au=function(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Uo(e,iu);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":co(18));const s=Uc(n),l=hl(e);let c=In(l,{mixins:(u=l.breakpoints,f=r,An({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Jc.slice(),typography:Yc(s,i),transitions:nu(o),zIndex:An({},ou)});var u,f;if(c=In(c,a),c=t.reduce((e,t)=>In(e,t),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Bo("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(c.components).forEach(e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)})}return c.unstable_sxConfig=An({},fl,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return pl({sx:e,theme:this})},c}();const su=xl({themeId:"$$material",defaultTheme:au,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function lu(e){return Bo("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach(t=>{n[t]=Bo(e,t,r)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uu=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}({root:["root","inherit"!==t&&`color${Eo(t)}`,`fontSize${Eo(r)}`]},lu,n)},fu=su("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Eo(r.color)}`],t[`fontSize${Eo(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),du=e.forwardRef(function(t,r){const n=Ko({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,y=Uo(n,cu),h=e.isValidElement(o)&&"svg"===o.type,g=An({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:h}),b={};d||(b.viewBox=m);const v=uu(g);return f(fu,An({as:s,className:_r(v.root,i),focusable:"false",color:u,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:r},b,y,h&&o.props,{ownerState:g,children:[h?o.props.children:o,p?c("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(du.propTypes={children:lo.node,classes:lo.object,className:lo.string,color:lo.oneOfType([lo.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),lo.string]),component:lo.elementType,fontSize:lo.oneOfType([lo.oneOf(["inherit","large","medium","small"]),lo.string]),htmlColor:lo.string,inheritViewBox:lo.bool,shapeRendering:lo.string,sx:lo.oneOfType([lo.arrayOf(lo.oneOfType([lo.func,lo.object,lo.bool])),lo.func,lo.object]),titleAccess:lo.string,viewBox:lo.string}),du.muiName="SvgIcon";const pu={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Fo.configure(e)}};var mu,yu=Object.freeze({__proto__:null,capitalize:Eo,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},createSvgIcon:function(t,r){function n(e,n){return c(du,An({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=du.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:ko,ownerWindow:function(e){return ko(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?An({},t.propTypes):null;return t=>(n,o,i,a,s,...l)=>{const c=s||o,u=null==r?void 0:r[c];if(u){const e=u(n,o,i,a,s,...l);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${c}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:$o,unstable_ClassNameGenerator:pu,unstable_useEnhancedEffect:Co,unstable_useId:function(t){if(void 0!==To){const e=To();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect(()=>{null==r&&(_o+=1,n(`mui-${_o}`))},[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),l=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,n,t]);const{current:a}=e.useRef(r);e.useEffect(()=>{i||Object.is(a,r)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))},[JSON.stringify(r)])}return[l,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const r=e.useRef(t);return Co(()=>{r.current=t}),e.useRef((...e)=>(0,r.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{$o(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",jo,!0),t.addEventListener("mousedown",Io,!0),t.addEventListener("pointerdown",Io,!0),t.addEventListener("touchstart",Io,!0),t.addEventListener("visibilitychange",zo,!0))},[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Do(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Ro=!0,Ao.start(100,()=>{Ro=!1}),r.current=!1,!0)},ref:t}}}),hu=m(yu);function gu(){return mu||(mu=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hu}(Rn)),Rn}var bu=Pn;Object.defineProperty(Tn,"__esModule",{value:!0});var vu=Tn.default=void 0,wu=bu(gu()),xu=l;vu=Tn.default=(0,wu.default)((0,xu.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined");var Su={},Eu=Pn;Object.defineProperty(Su,"__esModule",{value:!0});var Ou=Su.default=void 0,ku=Eu(gu()),$u=l;Ou=Su.default=(0,ku.default)((0,$u.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const Cu=({id:e,className:r,loading:n,date:o,error:i,verified:a=!0,errorTooltip:l,notVerifiedTooltip:c,onRetry:u,retryLabel:f="Tentar novamente",retryDisabled:d})=>{const p=s(()=>i?"error":n?"warning":o?"success":void 0,[o,i,n]),m="error"===p&&i||!a,y=o&&a?new Date(o).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}):null,h=a?p?`gyramais-sync-chip-${p}`:"":"gyramais-sync-chip-error",b=Boolean(u&&(m||d)),v=t.createElement("div",{id:e,className:g("gyramais-sync-chip",h,b?void 0:r)},m?t.createElement(_n,{content:a?l||"Atualização indisponível no momento":c||"Documento não encontrado na Receita Federal"},t.createElement(vu,{className:"gyramais-sync-chip-icon"})):t.createElement("span",{className:"gyramais-sync-chip-dot"}),"warning"===p&&a?t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-sync-chip-label"},"Sincronizando"),t.createElement("div",{className:"gyramais-sync-chip-loading"})):t.createElement("div",{className:"gyramais-sync-chip-content"},t.createElement("span",{className:"gyramais-sync-chip-label"},a?"error"===p?"Falha ao sincronizar":p?"Sincronizado em":"Não sincronizado":"Não sincronizado"),y&&t.createElement("span",{className:"gyramais-sync-chip-date"},y)));return b?t.createElement("div",{className:g("gyramais-sync-chip-wrap",r)},t.createElement(_n,{content:f},t.createElement("button",{type:"button",className:"gyramais-sync-chip-retry",onClick:u,disabled:d,"aria-label":f},t.createElement(Ou,{className:g("gyramais-sync-chip-retry-icon",{"gyramais-sync-chip-retry-icon--spinning":d})}))),v):v};export{Cu as SyncChip};
|
|
44
|
+
function(e,t){const r=rs(e,t);return"production"!==process.env.NODE_ENV?(...t)=>{const n="string"==typeof e?`"${e}"`:"component";return 0===t.length?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join("\n")):t.some(e=>void 0===e)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),r(...t)}:r},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},internal_serializeStyles:function(e){return as[0]=e,_a(as)},keyframes:function(){var e=qa.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_"}}}}),ls=m(ss),cs=m(Dn),us=m(Oo),fs=m(So);const ds=["values","unit","step"];function ps(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Uo(e,ds),i=(e=>{const t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>An({},e,{[t.key]:t.val}),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return An({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const ms={borderRadius:4},ys="production"!==process.env.NODE_ENV?lo.oneOfType([lo.number,lo.string,lo.object,lo.array]):{};function hs(e,t){return t?In(e,t,{clone:!1}):e}const gs={xs:0,sm:600,md:900,lg:1200,xl:1536},bs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gs[e]}px)`};function vs(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||bs;return t.reduce((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n),{})}if("object"==typeof t){const e=n.breakpoints||bs;return Object.keys(t).reduce((n,o)=>{if(-1!==Object.keys(e.values||gs).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n},{})}return r(t)}function ws(e,t){return e.reduce((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e},t)}function xs(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function Ss(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:xs(e,r)||n,t&&(o=t(o,n,e)),o}function Es(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=xs(e.theme,n)||{};return vs(e,i,e=>{let n=Ss(a,o,e);return e===n&&"string"==typeof e&&(n=Ss(a,o,`${t}${"default"===e?"":Eo(e)}`,e)),!1===r?n:{[r]:n}})};return i.propTypes="production"!==process.env.NODE_ENV?{[t]:ys}:{},i.filterProps=[t],i}const Os={m:"margin",p:"padding"},ks={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$s={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Cs=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}(e=>{if(e.length>2){if(!$s[e])return[e];e=$s[e]}const[t,r]=e.split(""),n=Os[t],o=ks[r]||"";return Array.isArray(o)?o.map(e=>n+e):[n+o]}),_s=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ts=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ns=[..._s,...Ts];function Ps(e,t,r,n){var o;const i=null!=(o=xs(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&"number"!=typeof e&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${e}.`),i*e):Array.isArray(i)?e=>"string"==typeof e?e:("production"!==process.env.NODE_ENV&&(Number.isInteger(e)?e>i.length-1&&console.error([`MUI: The value provided (${e}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${e} > ${i.length-1}, you need to add the missing values.`].join("\n")):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("\n"))),i[e]):"function"==typeof i?i:("production"!==process.env.NODE_ENV&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join("\n")),()=>{})}function Rs(e){return Ps(e,"spacing",8,"spacing")}function As(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Ms(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce((e,n)=>(e[n]=As(t,r),e),{})}(Cs(r),n);return vs(e,e[r],o)}function js(e,t){const r=Rs(e.theme);return Object.keys(e).map(n=>Ms(e,t,n,r)).reduce(hs,{})}function Is(e){return js(e,_s)}function zs(e){return js(e,Ts)}function Ds(...e){const t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,n)=>t[n]?hs(r,t[n](e)):r,{});return r.propTypes="production"!==process.env.NODE_ENV?e.reduce((e,t)=>Object.assign(e,t.propTypes),{}):{},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}function Ls(e){return"number"!=typeof e?e:`${e}px solid`}function Vs(e,t){return Es({prop:e,themeKey:"borders",transform:t})}Is.propTypes="production"!==process.env.NODE_ENV?_s.reduce((e,t)=>(e[t]=ys,e),{}):{},Is.filterProps=_s,zs.propTypes="production"!==process.env.NODE_ENV?Ts.reduce((e,t)=>(e[t]=ys,e),{}):{},zs.filterProps=Ts,"production"===process.env.NODE_ENV||Ns.reduce((e,t)=>(e[t]=ys,e),{});const Fs=Vs("border",Ls),Ws=Vs("borderTop",Ls),Bs=Vs("borderRight",Ls),Hs=Vs("borderBottom",Ls),Us=Vs("borderLeft",Ls),Gs=Vs("borderColor"),Ks=Vs("borderTopColor"),qs=Vs("borderRightColor"),Ys=Vs("borderBottomColor"),Xs=Vs("borderLeftColor"),Js=Vs("outline",Ls),Zs=Vs("outlineColor"),Qs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ps(e.theme,"shape.borderRadius",4,"borderRadius"),r=e=>({borderRadius:As(t,e)});return vs(e,e.borderRadius,r)}return null};Qs.propTypes="production"!==process.env.NODE_ENV?{borderRadius:ys}:{},Qs.filterProps=["borderRadius"],Ds(Fs,Ws,Bs,Hs,Us,Gs,Ks,qs,Ys,Xs,Qs,Js,Zs);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ps(e.theme,"spacing",8,"gap"),r=e=>({gap:As(t,e)});return vs(e,e.gap,r)}return null};el.propTypes="production"!==process.env.NODE_ENV?{gap:ys}:{},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ps(e.theme,"spacing",8,"columnGap"),r=e=>({columnGap:As(t,e)});return vs(e,e.columnGap,r)}return null};tl.propTypes="production"!==process.env.NODE_ENV?{columnGap:ys}:{},tl.filterProps=["columnGap"];const rl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ps(e.theme,"spacing",8,"rowGap"),r=e=>({rowGap:As(t,e)});return vs(e,e.rowGap,r)}return null};rl.propTypes="production"!==process.env.NODE_ENV?{rowGap:ys}:{},rl.filterProps=["rowGap"];function nl(e,t){return"grey"===t?t:e}Ds(el,tl,rl,Es({prop:"gridColumn"}),Es({prop:"gridRow"}),Es({prop:"gridAutoFlow"}),Es({prop:"gridAutoColumns"}),Es({prop:"gridAutoRows"}),Es({prop:"gridTemplateColumns"}),Es({prop:"gridTemplateRows"}),Es({prop:"gridTemplateAreas"}),Es({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Ds(Es({prop:"color",themeKey:"palette",transform:nl}),Es({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nl}),Es({prop:"backgroundColor",themeKey:"palette",transform:nl}));const il=Es({prop:"width",transform:ol}),al=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||gs[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ol(t)}};return vs(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const sl=Es({prop:"minWidth",transform:ol}),ll=Es({prop:"height",transform:ol}),cl=Es({prop:"maxHeight",transform:ol}),ul=Es({prop:"minHeight",transform:ol});Es({prop:"size",cssProperty:"width",transform:ol}),Es({prop:"size",cssProperty:"height",transform:ol});Ds(il,al,sl,ll,cl,ul,Es({prop:"boxSizing"}));const fl={border:{themeKey:"borders",transform:Ls},borderTop:{themeKey:"borders",transform:Ls},borderRight:{themeKey:"borders",transform:Ls},borderBottom:{themeKey:"borders",transform:Ls},borderLeft:{themeKey:"borders",transform:Ls},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ls},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qs},color:{themeKey:"palette",transform:nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nl},backgroundColor:{themeKey:"palette",transform:nl},p:{style:zs},pt:{style:zs},pr:{style:zs},pb:{style:zs},pl:{style:zs},px:{style:zs},py:{style:zs},padding:{style:zs},paddingTop:{style:zs},paddingRight:{style:zs},paddingBottom:{style:zs},paddingLeft:{style:zs},paddingX:{style:zs},paddingY:{style:zs},paddingInline:{style:zs},paddingInlineStart:{style:zs},paddingInlineEnd:{style:zs},paddingBlock:{style:zs},paddingBlockStart:{style:zs},paddingBlockEnd:{style:zs},m:{style:Is},mt:{style:Is},mr:{style:Is},mb:{style:Is},ml:{style:Is},mx:{style:Is},my:{style:Is},margin:{style:Is},marginTop:{style:Is},marginRight:{style:Is},marginBottom:{style:Is},marginLeft:{style:Is},marginX:{style:Is},marginY:{style:Is},marginInline:{style:Is},marginInlineStart:{style:Is},marginInlineEnd:{style:Is},marginBlock:{style:Is},marginBlockStart:{style:Is},marginBlockEnd:{style:Is},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:el},rowGap:{style:rl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function dl(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=xs(r,s)||{};if(c)return c(o);return vs(o,t,t=>{let r=Ss(u,l,t);return t===r&&"string"==typeof t&&(r=Ss(u,l,`${e}${"default"===t?"":Eo(t)}`,t)),!1===a?r:{[a]:r}})}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:fl;function l(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}(i.breakpoints),l=Object.keys(o);let c=o;return Object.keys(n).forEach(r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])c=hs(c,e(r,o,i,s));else{const e=vs({theme:i},o,e=>({[r]:e}));!function(...e){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),r=new Set(t);return e.every(e=>r.size===Object.keys(e).length)}(e,o)?c=hs(c,e):c[r]=t({sx:o,theme:i,nested:!0})}else c=hs(c,e(r,o,i,s))}),!a&&i.modularCssLayers?{"@layer sx":ws(l,c)}:ws(l,c)}return Array.isArray(o)?o.map(l):l(o)}}const pl=dl();function ml(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}pl.filterProps=["sx"];const yl=["breakpoints","palette","spacing","shape"];function hl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Uo(e,yl),s=ps(r),l=function(e=8){if(e.mui)return e;const t=Rs({spacing:e}),r=(...e)=>("production"!==process.env.NODE_ENV&&(e.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${e.length}`)),(0===e.length?[1]:e).map(e=>{const r=t(e);return"number"==typeof r?`${r}px`:r}).join(" "));return r.mui=!0,r}(o);let c=In({breakpoints:s,direction:"ltr",components:{},palette:An({mode:"light"},n),spacing:l,shape:An({},ms,i)},a);return c.applyStyles=ml,c=t.reduce((e,t)=>In(e,t),c),c.unstable_sxConfig=An({},fl,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return pl({sx:e,theme:this})},c}var gl=m(Object.freeze({__proto__:null,default:hl,private_createBreakpoints:ps,unstable_applyStyles:ml}));const bl=["sx"];var vl=m(Object.freeze({__proto__:null,default:pl,extendSxProp:function(e){const{sx:t}=e,r=Uo(e,bl),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:fl;return Object.keys(e).forEach(t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Mn(r)?An({},n,r):n}:An({},n,t),An({},o,{sx:i})},unstable_createStyleFunctionSx:dl,unstable_defaultSxConfig:fl})),wl=Pn;Object.defineProperty(Yo,"__esModule",{value:!0});var xl=Yo.default=function(e={}){const{themeId:t,defaultTheme:r=Il,rootShouldForwardProp:n=Ml,slotShouldForwardProp:o=Ml}=e,i=e=>(0,Tl.default)((0,Sl.default)({},e,{theme:Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ol.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:f=Ll(zl(l))}=a,d=(0,El.default)(a,Rl),p=s&&s.startsWith("Mui")||l?"components":"custom",m=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,y=u||!1;let h;"production"!==process.env.NODE_ENV&&s&&(h=`${s}-${zl(l||"Root")}`);let g=Ml;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Ol.default)(e,(0,Sl.default)({shouldForwardProp:g,label:h},d)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,kl.isPlainObject)(e)?n=>{const o=Dl({theme:n.theme,defaultTheme:r,themeId:t});return Vl(e,(0,Sl.default)({},n,{theme:o}),o.modularCssLayers?p:void 0)}:e,w=(n,...o)=>{let a=v(n);const c=o?o.map(v):[];s&&f&&c.push(e=>{const n=Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach(([t,r])=>{i[t]=Vl(r,(0,Sl.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)}),f(e,i)}),s&&!m&&c.push(e=>{var n;const o=Dl((0,Sl.default)({},e,{defaultTheme:r,themeId:t}));return Vl({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Sl.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)}),y||c.push(i);const u=c.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const d=b(a,...c);if("production"!==process.env.NODE_ENV){let t;s&&(t=`${s}${(0,$l.default)(l||"")}`),void 0===t&&(t=`Styled(${(0,Cl.default)(e)})`),d.displayName=t}return e.muiName&&(d.muiName=e.muiName),d};return b.withConfig&&(w.withConfig=b.withConfig),w}};Yo.shouldForwardProp=Ml,Yo.systemDefaultTheme=void 0;var Sl=wl((qo||(qo=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Xo)),Xo.exports)),El=wl((Jo||(Jo=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(Zo)),Zo.exports)),Ol=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Al(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ls),kl=cs,$l=wl(us),Cl=wl(fs),_l=wl(gl),Tl=wl(vl);const Nl=["ownerState"],Pl=["variants"],Rl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Al(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Al=function(e){return e?r:t})(e)}function Ml(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function jl(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Il=Yo.systemDefaultTheme=(0,_l.default)(),zl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Dl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ll(e){return e?(t,r)=>r[e]:null}function Vl(e,t,r){let{ownerState:n}=t,o=(0,El.default)(t,Nl);const i="function"==typeof e?e((0,Sl.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap(e=>Vl(e,(0,Sl.default)({ownerState:n},o),r));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,El.default)(i,Pl);return e.forEach(e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Sl.default)({ownerState:n},o,n)):Object.keys(e.props).forEach(t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)}),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Sl.default)({ownerState:n},o,n)):e.style;t.push(r?jl((0,Ol.internal_serializeStyles)(i),r):i)}}),t}return r?jl((0,Ol.internal_serializeStyles)(i),r):i}var Fl={},Wl=m(fo),Bl=m(Ho),Hl=Pn;Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.alpha=nc,Fl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Zl(e),a=Zl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return ec({type:"rgb",values:s})},Fl.colorChannel=void 0;var Ul=Fl.darken=oc;Fl.decomposeColor=Zl,Fl.emphasize=ac;var Gl=Fl.getContrastRatio=function(e,t){const r=rc(e),n=rc(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Fl.getLuminance=rc,Fl.hexToRgb=Jl,Fl.hslToRgb=tc;var Kl=Fl.lighten=ic;Fl.private_safeAlpha=function(e,t,r){try{return nc(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeColorChannel=void 0,Fl.private_safeDarken=function(e,t,r){try{return oc(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeEmphasize=function(e,t,r){try{return ac(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.private_safeLighten=function(e,t,r){try{return ic(e,t)}catch(t){return r&&"production"!==process.env.NODE_ENV&&console.warn(r),e}},Fl.recomposeColor=ec,Fl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Zl(e);return`#${t.map((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e)).join("")}`};var ql=Hl(Wl),Yl=Hl(Bl);function Xl(e,t=0,r=1){return"production"!==process.env.NODE_ENV&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,Yl.default)(e,t,r)}function Jl(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function Zl(e){if(e.type)return e;if("#"===e.charAt(0))return Zl(Jl(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error("production"!==process.env.NODE_ENV?`MUI: Unsupported \`${e}\` color.\nThe following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ql.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error("production"!==process.env.NODE_ENV?`MUI: unsupported \`${n}\` color space.\nThe following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ql.default)(10,n))}else o=o.split(",");return o=o.map(e=>parseFloat(e)),{type:r,values:o,colorSpace:n}}const Ql=e=>{const t=Zl(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};Fl.colorChannel=Ql;function ec(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function tc(e){e=Zl(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),ec({type:s,values:l})}function rc(e){let t="hsl"===(e=Zl(e)).type||"hsla"===e.type?Zl(tc(e)).values:e.values;return t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nc(e,t){return e=Zl(e),t=Xl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,ec(e)}function oc(e,t){if(e=Zl(e),t=Xl(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return ec(e)}function ic(e,t){if(e=Zl(e),t=Xl(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return ec(e)}function ac(e,t=.15){return rc(e)>.5?oc(e,t):ic(e,t)}Fl.private_safeColorChannel=(e,t)=>{try{return Ql(e)}catch(r){return t&&"production"!==process.env.NODE_ENV&&console.warn(t),e}};const sc={black:"#000",white:"#fff"},lc={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"},cc="#f3e5f5",uc="#ce93d8",fc="#ba68c8",dc="#ab47bc",pc="#9c27b0",mc="#7b1fa2",yc="#e57373",hc="#ef5350",gc="#f44336",bc="#d32f2f",vc="#c62828",wc="#ffb74d",xc="#ffa726",Sc="#ff9800",Ec="#f57c00",Oc="#e65100",kc="#e3f2fd",$c="#90caf9",Cc="#42a5f5",_c="#1976d2",Tc="#1565c0",Nc="#4fc3f7",Pc="#29b6f6",Rc="#03a9f4",Ac="#0288d1",Mc="#01579b",jc="#81c784",Ic="#66bb6a",zc="#4caf50",Dc="#388e3c",Lc="#2e7d32",Vc="#1b5e20",Fc=["mode","contrastThreshold","tonalOffset"],Wc={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:sc.white,default:sc.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}},Bc={text:{primary:sc.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:sc.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Hc(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Kl(e.main,o):"dark"===t&&(e.dark=Ul(e.main,i)))}function Uc(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Uo(e,Fc),i=e.primary||function(e="light"){return"dark"===e?{main:$c,light:kc,dark:Cc}:{main:_c,light:Cc,dark:Tc}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:uc,light:cc,dark:dc}:{main:pc,light:fc,dark:mc}}(t),s=e.error||function(e="light"){return"dark"===e?{main:gc,light:yc,dark:bc}:{main:bc,light:hc,dark:vc}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Pc,light:Nc,dark:Ac}:{main:Ac,light:Rc,dark:Mc}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ic,light:jc,dark:Dc}:{main:Lc,light:zc,dark:Vc}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:xc,light:wc,dark:Ec}:{main:"#ed6c02",light:Sc,dark:Oc}}(t);function f(e){const t=Gl(e,Bc.text.primary)>=r?Bc.text.primary:Wc.text.primary;if("production"!==process.env.NODE_ENV){const r=Gl(e,t);r<3&&console.error([`MUI: The contrast ratio of ${r}:1 for ${t} on ${e}`,"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("\n"))}return t}const d=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=An({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${r}\` property.`:co(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error("production"!==process.env.NODE_ENV?`MUI: The color${t?` (${t})`:""} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n\nDid you intend to use one of the following approaches?\n\nimport { green } from "@mui/material/colors";\n\nconst theme1 = createTheme({ palette: {\n primary: green,\n} });\n\nconst theme2 = createTheme({ palette: {\n primary: { main: green[500] },\n} });`:co(12,t?` (${t})`:"",JSON.stringify(e.main)));return Hc(e,"light",o,n),Hc(e,"dark",i,n),e.contrastText||(e.contrastText=f(e.main)),e},p={dark:Bc,light:Wc};"production"!==process.env.NODE_ENV&&(p[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`));return In(An({common:An({},sc),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:lc,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),o)}const Gc=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Kc={textTransform:"uppercase"},qc='"Roboto", "Helvetica", "Arial", sans-serif';function Yc(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=qc,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:f}=r,d=Uo(r,Gc);"production"!==process.env.NODE_ENV&&("number"!=typeof o&&console.error("MUI: `fontSize` is required to be a number."),"number"!=typeof c&&console.error("MUI: `htmlFontSize` is required to be a number."));const p=o/14,m=f||(e=>e/c*p+"rem"),y=(e,t,r,o,i)=>{return An({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===qc?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},h={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,Kc),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,Kc),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return In(An({htmlFontSize:c,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},h),d,{clone:!1})}function Xc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Jc=["none",Xc(0,2,1,-1,0,1,1,0,0,1,3,0),Xc(0,3,1,-2,0,2,2,0,0,1,5,0),Xc(0,3,3,-2,0,3,4,0,0,1,8,0),Xc(0,2,4,-1,0,4,5,0,0,1,10,0),Xc(0,3,5,-1,0,5,8,0,0,1,14,0),Xc(0,3,5,-1,0,6,10,0,0,1,18,0),Xc(0,4,5,-2,0,7,10,1,0,2,16,1),Xc(0,5,5,-3,0,8,10,1,0,3,14,2),Xc(0,5,6,-3,0,9,12,1,0,3,16,2),Xc(0,6,6,-3,0,10,14,1,0,4,18,3),Xc(0,6,7,-4,0,11,15,1,0,4,20,3),Xc(0,7,8,-4,0,12,17,2,0,5,22,4),Xc(0,7,8,-4,0,13,19,2,0,5,24,4),Xc(0,7,9,-4,0,14,21,2,0,5,26,4),Xc(0,8,9,-5,0,15,22,2,0,6,28,5),Xc(0,8,10,-5,0,16,24,2,0,6,30,5),Xc(0,8,11,-5,0,17,26,2,0,6,32,5),Xc(0,9,11,-5,0,18,28,2,0,7,34,6),Xc(0,9,12,-6,0,19,29,2,0,7,36,6),Xc(0,10,13,-6,0,20,31,3,0,8,38,7),Xc(0,10,13,-6,0,21,33,3,0,8,40,7),Xc(0,10,14,-6,0,22,35,3,0,8,42,7),Xc(0,11,14,-7,0,23,36,3,0,9,44,8),Xc(0,11,15,-7,0,24,38,3,0,9,46,8)],Zc=["duration","easing","delay"],Qc={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)"},eu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function tu(e){return`${Math.round(e)}ms`}function ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function nu(e){const t=An({},Qc,e.easing),r=An({},eu,e.duration);return An({getAutoHeightDuration:ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n,s=Uo(n,Zc);if("production"!==process.env.NODE_ENV){const t=e=>"string"==typeof e,r=e=>!isNaN(parseFloat(e));t(e)||Array.isArray(e)||console.error('MUI: Argument "props" must be a string or Array.'),r(o)||t(o)||console.error(`MUI: Argument "duration" must be a number or a string but found ${o}.`),t(i)||console.error('MUI: Argument "easing" must be a string.'),r(a)||t(a)||console.error('MUI: Argument "delay" must be a number or a string.'),"object"!=typeof n&&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("\n")),0!==Object.keys(s).length&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(",")}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:tu(o)} ${i} ${"string"==typeof a?a:tu(a)}`).join(",")}},e,{easing:t,duration:r})}const ou={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const au=function(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Uo(e,iu);if(e.vars&&void 0===e.generateCssVars)throw new Error("production"!==process.env.NODE_ENV?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":co(18));const s=Uc(n),l=hl(e);let c=In(l,{mixins:(u=l.breakpoints,f=r,An({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},f)),palette:s,shadows:Jc.slice(),typography:Yc(s,i),transitions:nu(o),zIndex:An({},ou)});var u,f;if(c=In(c,a),c=t.reduce((e,t)=>In(e,t),c),"production"!==process.env.NODE_ENV){const e=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],t=(t,r)=>{let n;for(n in t){const o=t[n];if(-1!==e.indexOf(n)&&Object.keys(o).length>0){if("production"!==process.env.NODE_ENV){const e=Bo("",n);console.error([`MUI: The \`${r}\` component increases the CSS specificity of the \`${n}\` internal state.`,"You can not override it like this: ",JSON.stringify(t,null,2),"",`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:o}},null,2),"","https://mui.com/r/state-classes-guide"].join("\n"))}t[n]={}}}};Object.keys(c.components).forEach(e=>{const r=c.components[e].styleOverrides;r&&0===e.indexOf("Mui")&&t(r,e)})}return c.unstable_sxConfig=An({},fl,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return pl({sx:e,theme:this})},c}();const su=xl({themeId:"$$material",defaultTheme:au,rootShouldForwardProp:e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e});function lu(e){return Bo("MuiSvgIcon",e)}!function(e,t,r="Mui"){const n={};t.forEach(t=>{n[t]=Bo(e,t,r)})}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uu=e=>{const{color:t,fontSize:r,classes:n}=e;return function(e,t,r){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}({root:["root","inherit"!==t&&`color${Eo(t)}`,`fontSize${Eo(r)}`]},lu,n)},fu=su("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Eo(r.color)}`],t[`fontSize${Eo(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,c,u,f,d,p,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(f=null==(d=(e.vars||e).palette)||null==(d=d[t.color])?void 0:d.main)?f:{action:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}}),du=e.forwardRef(function(t,r){const n=Ko({props:t,name:"MuiSvgIcon"});const{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:p,viewBox:m="0 0 24 24"}=n,y=Uo(n,cu),h=e.isValidElement(o)&&"svg"===o.type,g=An({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:m,hasSvgAsChild:h}),b={};d||(b.viewBox=m);const v=uu(g);return f(fu,An({as:s,className:_r(v.root,i),focusable:"false",color:u,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:r},b,y,h&&o.props,{ownerState:g,children:[h?o.props.children:o,p?c("title",{children:p}):null]}))});"production"!==process.env.NODE_ENV&&(du.propTypes={children:lo.node,classes:lo.object,className:lo.string,color:lo.oneOfType([lo.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),lo.string]),component:lo.elementType,fontSize:lo.oneOfType([lo.oneOf(["inherit","large","medium","small"]),lo.string]),htmlColor:lo.string,inheritViewBox:lo.bool,shapeRendering:lo.string,sx:lo.oneOfType([lo.arrayOf(lo.oneOfType([lo.func,lo.object,lo.bool])),lo.func,lo.object]),titleAccess:lo.string,viewBox:lo.string}),du.muiName="SvgIcon";const pu={configure:e=>{"production"!==process.env.NODE_ENV&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),Fo.configure(e)}};var mu,yu=Object.freeze({__proto__:null,capitalize:Eo,createChainedFunction:function(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})},createSvgIcon:function(t,r){function n(e,n){return c(du,An({"data-testid":`${r}Icon`,ref:n},e,{children:t}))}return"production"!==process.env.NODE_ENV&&(n.displayName=`${r}Icon`),n.muiName=du.muiName,e.memo(e.forwardRef(n))},debounce:function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return n.clear=()=>{clearTimeout(r)},n},deprecatedPropType:function(e,t){return"production"===process.env.NODE_ENV?()=>null:(e,r,n,o,i)=>{const a=n||"<<anonymous>>",s=i||r;return void 0!==e[r]?new Error(`The ${o} \`${s}\` of \`${a}\` is deprecated. ${t}`):null}},isMuiElement:function(t,r){var n,o;return e.isValidElement(t)&&-1!==r.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:ko,ownerWindow:function(e){return ko(e).defaultView||window},requirePropFactory:function(e,t){if("production"===process.env.NODE_ENV)return()=>null;const r=t?An({},t.propTypes):null;return t=>(n,o,i,a,s,...l)=>{const c=s||o,u=null==r?void 0:r[c];if(u){const e=u(n,o,i,a,s,...l);if(e)return e}return void 0===n[o]||n[t]?null:new Error(`The prop \`${c}\` of \`${e}\` can only be used together with the \`${t}\` prop.`)}},setRef:$o,unstable_ClassNameGenerator:pu,unstable_useEnhancedEffect:Co,unstable_useId:function(t){if(void 0!==To){const e=To();return null!=t?t:e}return function(t){const[r,n]=e.useState(t),o=t||r;return e.useEffect(()=>{null==r&&(_o+=1,n(`mui-${_o}`))},[r]),o}(t)},unsupportedProp:function(e,t,r,n,o){if("production"===process.env.NODE_ENV)return null;const i=o||t;return void 0!==e[t]?new Error(`The prop \`${i}\` is not supported. Please remove it.`):null},useControlled:function({controlled:t,default:r,name:n,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(r),l=i?t:a;if("production"!==process.env.NODE_ENV){e.useEffect(()=>{i!==(void 0!==t)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[o,n,t]);const{current:a}=e.useRef(r);e.useEffect(()=>{i||Object.is(a,r)||console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join("\n"))},[JSON.stringify(r)])}return[l,e.useCallback(e=>{i||s(e)},[])]},useEventCallback:function(t){const r=e.useRef(t);return Co(()=>{r.current=t}),e.useRef((...e)=>(0,r.current)(...e)).current},useForkRef:function(...t){return e.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{$o(t,e)})},t)},useIsFocusVisible:function(){const t=e.useCallback(e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",jo,!0),t.addEventListener("mousedown",Io,!0),t.addEventListener("pointerdown",Io,!0),t.addEventListener("touchstart",Io,!0),t.addEventListener("visibilitychange",zo,!0))},[]),r=e.useRef(!1);return{isFocusVisibleRef:r,onFocus:function(e){return!!Do(e)&&(r.current=!0,!0)},onBlur:function(){return!!r.current&&(Ro=!0,Ao.start(100,()=>{Ro=!1}),r.current=!1,!0)},ref:t}}}),hu=m(yu);function gu(){return mu||(mu=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hu}(Rn)),Rn}var bu=Pn;Object.defineProperty(Tn,"__esModule",{value:!0});var vu=Tn.default=void 0,wu=bu(gu()),xu=l;vu=Tn.default=(0,wu.default)((0,xu.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22zm1 14h-2v2h2zm0-6h-2v4h2z"}),"WarningAmberOutlined");var Su={},Eu=Pn;Object.defineProperty(Su,"__esModule",{value:!0});var Ou=Su.default=void 0,ku=Eu(gu()),$u=l;Ou=Su.default=(0,ku.default)((0,$u.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");const Cu=({id:e,className:r,loading:n,date:o,error:i,verified:a=!0,errorTooltip:l,notVerifiedTooltip:c,onRetry:u,retryLabel:f="Tentar novamente",retryDisabled:d})=>{const p=s(()=>i?"error":n?"warning":o?"success":void 0,[o,i,n]),m="error"===p&&i||!a,y=o&&a?new Date(o).toLocaleString("pt-BR",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"}):null,h=a?p?`gyramais-sync-chip-${p}`:"":"gyramais-sync-chip-error",b=Boolean(u&&(m||d)),v=t.createElement("div",{id:e,className:g("gyramais-sync-chip",h,b?void 0:r)},m?t.createElement(_n,{content:a?l||"Atualização indisponível no momento":c||"Documento não encontrado na Receita Federal"},t.createElement(vu,{className:"gyramais-sync-chip-icon"})):t.createElement("span",{className:"gyramais-sync-chip-dot"}),"warning"===p&&a?t.createElement(t.Fragment,null,t.createElement("span",{className:"gyramais-sync-chip-label"},"Sincronizando"),t.createElement("div",{className:"gyramais-sync-chip-dots","aria-hidden":"true"},t.createElement("span",{className:"gyramais-sync-chip-dots-dot"}),t.createElement("span",{className:"gyramais-sync-chip-dots-dot"}),t.createElement("span",{className:"gyramais-sync-chip-dots-dot"}))):t.createElement("div",{className:"gyramais-sync-chip-content"},t.createElement("span",{className:"gyramais-sync-chip-label"},a?"error"===p?"Falha ao sincronizar":p?"Sincronizado em":"Não sincronizado":"Não sincronizado"),y&&t.createElement("span",{className:"gyramais-sync-chip-date"},y)));return b?t.createElement("div",{className:g("gyramais-sync-chip-wrap",r)},t.createElement(_n,{content:f},t.createElement("button",{type:"button",className:"gyramais-sync-chip-retry",onClick:u,disabled:d,"aria-label":f},t.createElement(Ou,{className:g("gyramais-sync-chip-retry-icon",{"gyramais-sync-chip-retry-icon--spinning":d})}))),v):v};export{Cu as SyncChip};
|
|
45
45
|
//# sourceMappingURL=index.js.map
|