126 lines
74 KiB
JavaScript
126 lines
74 KiB
JavaScript
import{W as le,X as ko,Y as To,r as c,j as p,c as w,f as b,h as Q,Z as ce,b as J,_ as de,$ as pe,a as tt,d as Z,s as M,m as _,u as zo,R as Rt,a0 as ue,a1 as go,a2 as vo,v as Ct,k as Eo,o as G,C as Lo,n as fe,p as Jt,t as to,a3 as Ao,y as jo,B as Kt,a4 as be,x as ge,U as ve,O as ye,S as he,T as me,a5 as xe}from"./index-DwyPw-ga.js";const Se=le();function Ce(t){const{theme:o,name:e,props:r}=t;return!o||!o.components||!o.components[e]||!o.components[e].defaultProps?r:ko(o.components[e].defaultProps,r)}function Ie({props:t,name:o,defaultTheme:e,themeId:r}){let n=To(e);return r&&(n=n[r]||n),Ce({theme:n,name:o,props:t})}const $e=ce(),Pe=Se("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),Be=t=>Ie({props:t,name:"MuiContainer",defaultTheme:$e}),Re=(t,o)=>{const e=l=>J(o,l),{classes:r,fixed:n,disableGutters:a,maxWidth:s}=t,i={root:["root",s&&`maxWidth${b(String(s))}`,n&&"fixed",a&&"disableGutters"]};return Q(i,e,r)};function we(t={}){const{createStyledComponent:o=Pe,useThemeProps:e=Be,componentName:r="MuiContainer"}=t,n=o(({theme:s,ownerState:i})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!i.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:i})=>i.fixed&&Object.keys(s.breakpoints.values).reduce((l,d)=>{const u=d,f=s.breakpoints.values[u];return f!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:i})=>({...i.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...i.maxWidth&&i.maxWidth!=="xs"&&{[s.breakpoints.up(i.maxWidth)]:{maxWidth:`${s.breakpoints.values[i.maxWidth]}${s.breakpoints.unit}`}}}));return c.forwardRef(function(i,l){const d=e(i),{className:u,component:f="div",disableGutters:v=!1,fixed:C=!1,maxWidth:h="lg",classes:m,...y}=d,P={...d,component:f,disableGutters:v,fixed:C,maxWidth:h},I=Re(P,r);return p.jsx(n,{as:f,ownerState:P,className:w(I.root,u),ref:l,...y})})}function No(){const t=To(pe);return t[de]||t}function Me(t){return J("MuiSvgIcon",t)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ke=t=>{const{color:o,fontSize:e,classes:r}=t,n={root:["root",o!=="inherit"&&`color${b(o)}`,`fontSize${b(e)}`]};return Q(n,Me,r)},Te=M("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.color!=="inherit"&&o[`color${b(e.color)}`],o[`fontSize${b(e.fontSize)}`]]}})(_(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:o=>!o.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,o])=>o&&o.main).map(([o])=>({props:{color:o},style:{color:(t.vars??t).palette?.[o]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Yt=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiSvgIcon"}),{children:n,className:a,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:u=!1,titleAccess:f,viewBox:v="0 0 24 24",...C}=r,h=c.isValidElement(n)&&n.type==="svg",m={...r,color:s,component:i,fontSize:l,instanceFontSize:o.fontSize,inheritViewBox:u,viewBox:v,hasSvgAsChild:h},y={};u||(y.viewBox=v);const P=ke(m);return p.jsxs(Te,{as:i,className:w(P.root,a),focusable:"false",color:d,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:e,...y,...C,...h&&n.props,ownerState:m,children:[h?n.props.children:n,f?p.jsx("title",{children:f}):null]})});Yt.muiName="SvgIcon";function ft(t,o){function e(r,n){return p.jsx(Yt,{"data-testid":void 0,ref:n,...r,children:t})}return e.muiName=Yt.muiName,c.memo(c.forwardRef(e))}function Oo(t,o=166){let e;function r(...n){const a=()=>{t.apply(this,n)};clearTimeout(e),e=setTimeout(a,o)}return r.clear=()=>{clearTimeout(e)},r}function Wo(t){return t&&t.ownerDocument||document}function Do(t){return Wo(t).defaultView||window}function ht(t){const o=c.useRef(t);return zo(()=>{o.current=t}),c.useRef((...e)=>(0,o.current)(...e)).current}function wt(...t){const o=c.useRef(void 0),e=c.useCallback(r=>{const n=t.map(a=>{if(a==null)return null;if(typeof a=="function"){const s=a,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return a.current=r,()=>{a.current=null}});return()=>{n.forEach(a=>a?.())}},t);return c.useMemo(()=>t.every(r=>r==null)?null:r=>{o.current&&(o.current(),o.current=void 0),r!=null&&(o.current=e(r))},t)}function ze(t,o){if(t==null)return{};var e={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(o.indexOf(r)!==-1)continue;e[r]=t[r]}return e}function qt(t,o){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},qt(t,o)}function Ee(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,qt(t,o)}const yo=Rt.createContext(null);function Le(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function oo(t,o){var e=function(a){return o&&c.isValidElement(a)?o(a):a},r=Object.create(null);return t&&c.Children.map(t,function(n){return n}).forEach(function(n){r[n.key]=e(n)}),r}function Ae(t,o){t=t||{},o=o||{};function e(u){return u in o?o[u]:t[u]}var r=Object.create(null),n=[];for(var a in t)a in o?n.length&&(r[a]=n,n=[]):n.push(a);var s,i={};for(var l in o){if(r[l])for(s=0;s<r[l].length;s++){var d=r[l][s];i[r[l][s]]=e(d)}i[l]=e(l)}for(s=0;s<n.length;s++)i[n[s]]=e(n[s]);return i}function yt(t,o,e){return e[o]!=null?e[o]:t.props[o]}function je(t,o){return oo(t.children,function(e){return c.cloneElement(e,{onExited:o.bind(null,e),in:!0,appear:yt(e,"appear",t),enter:yt(e,"enter",t),exit:yt(e,"exit",t)})})}function Ne(t,o,e){var r=oo(t.children),n=Ae(o,r);return Object.keys(n).forEach(function(a){var s=n[a];if(c.isValidElement(s)){var i=a in o,l=a in r,d=o[a],u=c.isValidElement(d)&&!d.props.in;l&&(!i||u)?n[a]=c.cloneElement(s,{onExited:e.bind(null,s),in:!0,exit:yt(s,"exit",t),enter:yt(s,"enter",t)}):!l&&i&&!u?n[a]=c.cloneElement(s,{in:!1}):l&&i&&c.isValidElement(d)&&(n[a]=c.cloneElement(s,{onExited:e.bind(null,s),in:d.props.in,exit:yt(s,"exit",t),enter:yt(s,"enter",t)}))}}),n}var Oe=Object.values||function(t){return Object.keys(t).map(function(o){return t[o]})},We={component:"div",childFactory:function(o){return o}},eo=(function(t){Ee(o,t);function o(r,n){var a;a=t.call(this,r,n)||this;var s=a.handleExited.bind(Le(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}var e=o.prototype;return e.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},e.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(n,a){var s=a.children,i=a.handleExited,l=a.firstRender;return{children:l?je(n,i):Ne(n,s,i),firstRender:!1}},e.handleExited=function(n,a){var s=oo(this.props.children);n.key in s||(n.props.onExited&&n.props.onExited(a),this.mounted&&this.setState(function(i){var l=ue({},i.children);return delete l[n.key],{children:l}}))},e.render=function(){var n=this.props,a=n.component,s=n.childFactory,i=ze(n,["component","childFactory"]),l=this.state.contextValue,d=Oe(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,a===null?Rt.createElement(yo.Provider,{value:l},d):Rt.createElement(yo.Provider,{value:l},Rt.createElement(a,i,d))},o})(Rt.Component);eo.propTypes={};eo.defaultProps=We;const ho={};function Vo(t,o){const e=c.useRef(ho);return e.current===ho&&(e.current=t(o)),e}const De=[];function Ve(t){c.useEffect(t,De)}class ro{static create(){return new ro}currentId=null;start(o,e){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,e()},o)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fe(){const t=Vo(ro.create).current;return Ve(t.disposeEffect),t}function Ue(t){return J("MuiPaper",t)}tt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const He=t=>{const{square:o,elevation:e,variant:r,classes:n}=t,a={root:["root",r,!o&&"rounded",r==="elevation"&&`elevation${e}`]};return Q(a,Ue,n)},Ke=M("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],!e.square&&o.rounded,e.variant==="elevation"&&o[`elevation${e.elevation}`]]}})(_(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:o})=>!o.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),no=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiPaper"}),n=No(),{className:a,component:s="div",elevation:i=1,square:l=!1,variant:d="elevation",...u}=r,f={...r,component:s,elevation:i,square:l,variant:d},v=He(f);return p.jsx(Ke,{as:s,ownerState:f,className:w(v.root,a),ref:e,...u,style:{...d==="elevation"&&{"--Paper-shadow":(n.vars||n).shadows[i],...n.vars&&{"--Paper-overlay":n.vars.overlays?.[i]},...!n.vars&&n.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${go("#fff",vo(i))}, ${go("#fff",vo(i))})`}},...u.style}})});function Ye(t){return typeof t=="string"}function Fo(t,o,e){return t===void 0||Ye(t)?o:{...o,ownerState:{...o.ownerState,...e}}}function Uo(t,o,e){return typeof t=="function"?t(o,e):t}function qe(t,o=[]){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!o.includes(r)).forEach(r=>{e[r]=t[r]}),e}function mo(t){if(t===void 0)return{};const o={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&typeof t[e]=="function")).forEach(e=>{o[e]=t[e]}),o}function Ho(t){const{getSlotProps:o,additionalProps:e,externalSlotProps:r,externalForwardedProps:n,className:a}=t;if(!o){const C=w(e?.className,a,n?.className,r?.className),h={...e?.style,...n?.style,...r?.style},m={...e,...n,...r};return C.length>0&&(m.className=C),Object.keys(h).length>0&&(m.style=h),{props:m,internalRef:void 0}}const s=qe({...n,...r}),i=mo(r),l=mo(n),d=o(s),u=w(d?.className,e?.className,a,n?.className,r?.className),f={...d?.style,...e?.style,...n?.style,...r?.style},v={...d,...e,...l,...i};return u.length>0&&(v.className=u),Object.keys(f).length>0&&(v.style=f),{props:v,internalRef:d.ref}}function nt(t,o){const{className:e,elementType:r,ownerState:n,externalForwardedProps:a,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=o,{component:d,slots:u={[t]:void 0},slotProps:f={[t]:void 0},...v}=a,C=u[t]||r,h=Uo(f[t],n),{props:{component:m,...y},internalRef:P}=Ho({className:e,...l,externalForwardedProps:t==="root"?v:void 0,externalSlotProps:h}),I=wt(P,h?.ref,o.ref),j=t==="root"?m||d:m,x=Fo(C,{...t==="root"&&!d&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...j&&!i&&{as:j},...j&&i&&{component:j},ref:I},n);return[C,x]}function xo(t){try{return t.matches(":focus-visible")}catch{}return!1}class jt{static create(){return new jt}static use(){const o=Vo(jt.create).current,[e,r]=c.useState(!1);return o.shouldMount=e,o.setShouldMount=r,c.useEffect(o.mountEffect,[e]),o}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Ge(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...o){this.mount().then(()=>this.ref.current?.start(...o))}stop(...o){this.mount().then(()=>this.ref.current?.stop(...o))}pulsate(...o){this.mount().then(()=>this.ref.current?.pulsate(...o))}}function Xe(){return jt.use()}function Ge(){let t,o;const e=new Promise((r,n)=>{t=r,o=n});return e.resolve=t,e.reject=o,e}function _e(t){const{className:o,classes:e,pulsate:r=!1,rippleX:n,rippleY:a,rippleSize:s,in:i,onExited:l,timeout:d}=t,[u,f]=c.useState(!1),v=w(o,e.ripple,e.rippleVisible,r&&e.ripplePulsate),C={width:s,height:s,top:-(s/2)+a,left:-(s/2)+n},h=w(e.child,u&&e.childLeaving,r&&e.childPulsate);return!i&&!u&&f(!0),c.useEffect(()=>{if(!i&&l!=null){const m=setTimeout(l,d);return()=>{clearTimeout(m)}}},[l,i,d]),p.jsx("span",{className:v,style:C,children:p.jsx("span",{className:h})})}const lt=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xt=550,Ze=80,Qe=Ct`
|
|
0% {
|
|
transform: scale(0);
|
|
opacity: 0.1;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 0.3;
|
|
}
|
|
`,Je=Ct`
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
`,tr=Ct`
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
|
|
50% {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
`,or=M("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),er=M(_e,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
opacity: 0;
|
|
position: absolute;
|
|
|
|
&.${lt.rippleVisible} {
|
|
opacity: 0.3;
|
|
transform: scale(1);
|
|
animation-name: ${Qe};
|
|
animation-duration: ${Xt}ms;
|
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
}
|
|
|
|
&.${lt.ripplePulsate} {
|
|
animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms;
|
|
}
|
|
|
|
& .${lt.child} {
|
|
opacity: 1;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
background-color: currentColor;
|
|
}
|
|
|
|
& .${lt.childLeaving} {
|
|
opacity: 0;
|
|
animation-name: ${Je};
|
|
animation-duration: ${Xt}ms;
|
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
}
|
|
|
|
& .${lt.childPulsate} {
|
|
position: absolute;
|
|
/* @noflip */
|
|
left: 0px;
|
|
top: 0;
|
|
animation-name: ${tr};
|
|
animation-duration: 2500ms;
|
|
animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut};
|
|
animation-iteration-count: infinite;
|
|
animation-delay: 200ms;
|
|
}
|
|
`,rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTouchRipple"}),{center:n=!1,classes:a={},className:s,...i}=r,[l,d]=c.useState([]),u=c.useRef(0),f=c.useRef(null);c.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const v=c.useRef(!1),C=Fe(),h=c.useRef(null),m=c.useRef(null),y=c.useCallback(x=>{const{pulsate:N,rippleX:T,rippleY:F,rippleSize:Y,cb:q}=x;d(A=>[...A,p.jsx(er,{classes:{ripple:w(a.ripple,lt.ripple),rippleVisible:w(a.rippleVisible,lt.rippleVisible),ripplePulsate:w(a.ripplePulsate,lt.ripplePulsate),child:w(a.child,lt.child),childLeaving:w(a.childLeaving,lt.childLeaving),childPulsate:w(a.childPulsate,lt.childPulsate)},timeout:Xt,pulsate:N,rippleX:T,rippleY:F,rippleSize:Y},u.current)]),u.current+=1,f.current=q},[a]),P=c.useCallback((x={},N={},T=()=>{})=>{const{pulsate:F=!1,center:Y=n||N.pulsate,fakeElement:q=!1}=N;if(x?.type==="mousedown"&&v.current){v.current=!1;return}x?.type==="touchstart"&&(v.current=!0);const A=q?null:m.current,U=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let D,B,z;if(Y||x===void 0||x.clientX===0&&x.clientY===0||!x.clientX&&!x.touches)D=Math.round(U.width/2),B=Math.round(U.height/2);else{const{clientX:H,clientY:W}=x.touches&&x.touches.length>0?x.touches[0]:x;D=Math.round(H-U.left),B=Math.round(W-U.top)}if(Y)z=Math.sqrt((2*U.width**2+U.height**2)/3),z%2===0&&(z+=1);else{const H=Math.max(Math.abs((A?A.clientWidth:0)-D),D)*2+2,W=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;z=Math.sqrt(H**2+W**2)}x?.touches?h.current===null&&(h.current=()=>{y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},C.start(Ze,()=>{h.current&&(h.current(),h.current=null)})):y({pulsate:F,rippleX:D,rippleY:B,rippleSize:z,cb:T})},[n,y,C]),I=c.useCallback(()=>{P({},{pulsate:!0})},[P]),j=c.useCallback((x,N)=>{if(C.clear(),x?.type==="touchend"&&h.current){h.current(),h.current=null,C.start(0,()=>{j(x,N)});return}h.current=null,d(T=>T.length>0?T.slice(1):T),f.current=N},[C]);return c.useImperativeHandle(e,()=>({pulsate:I,start:P,stop:j}),[I,P,j]),p.jsx(or,{className:w(lt.root,a.root,s),ref:m,...i,children:p.jsx(eo,{component:null,exit:!0,children:l})})});function nr(t){return J("MuiButtonBase",t)}const ar=tt("MuiButtonBase",["root","disabled","focusVisible"]),sr=t=>{const{disabled:o,focusVisible:e,focusVisibleClassName:r,classes:n}=t,s=Q({root:["root",o&&"disabled",e&&"focusVisible"]},nr,n);return e&&r&&(s.root+=` ${r}`),s},ir=M("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ar.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),St=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiButtonBase"}),{action:n,centerRipple:a=!1,children:s,className:i,component:l="button",disabled:d=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:v=!1,focusVisibleClassName:C,LinkComponent:h="a",onBlur:m,onClick:y,onContextMenu:P,onDragLeave:I,onFocus:j,onFocusVisible:x,onKeyDown:N,onKeyUp:T,onMouseDown:F,onMouseLeave:Y,onMouseUp:q,onTouchEnd:A,onTouchMove:U,onTouchStart:D,tabIndex:B=0,TouchRippleProps:z,touchRippleRef:H,type:W,...X}=r,ot=c.useRef(null),O=Xe(),et=wt(O.ref,H),[K,pt]=c.useState(!1);d&&K&&pt(!1),c.useImperativeHandle(n,()=>({focusVisible:()=>{pt(!0),ot.current.focus()}}),[]);const It=O.shouldMount&&!u&&!d;c.useEffect(()=>{K&&v&&!u&&O.pulsate()},[u,v,K,O]);const mt=dt(O,"start",F,f),$t=dt(O,"stop",P,f),E=dt(O,"stop",I,f),at=dt(O,"stop",q,f),Mt=dt(O,"stop",$=>{K&&$.preventDefault(),Y&&Y($)},f),Ot=dt(O,"start",D,f),kt=dt(O,"stop",A,f),Wt=dt(O,"stop",U,f),Tt=dt(O,"stop",$=>{xo($.target)||pt(!1),m&&m($)},!1),Dt=ht($=>{ot.current||(ot.current=$.currentTarget),xo($.target)&&(pt(!0),x&&x($)),j&&j($)}),xt=()=>{const $=ot.current;return l&&l!=="button"&&!($.tagName==="A"&&$.href)},Vt=ht($=>{v&&!$.repeat&&K&&$.key===" "&&O.stop($,()=>{O.start($)}),$.target===$.currentTarget&&xt()&&$.key===" "&&$.preventDefault(),N&&N($),$.target===$.currentTarget&&xt()&&$.key==="Enter"&&!d&&($.preventDefault(),y&&y($))}),zt=ht($=>{v&&$.key===" "&&K&&!$.defaultPrevented&&O.stop($,()=>{O.pulsate($)}),T&&T($),y&&$.target===$.currentTarget&&xt()&&$.key===" "&&!$.defaultPrevented&&y($)});let rt=l;rt==="button"&&(X.href||X.to)&&(rt=h);const st={};rt==="button"?(st.type=W===void 0?"button":W,st.disabled=d):(!X.href&&!X.to&&(st.role="button"),d&&(st["aria-disabled"]=d));const ut=wt(e,ot),Pt={...r,centerRipple:a,component:l,disabled:d,disableRipple:u,disableTouchRipple:f,focusRipple:v,tabIndex:B,focusVisible:K},bt=sr(Pt);return p.jsxs(ir,{as:rt,className:w(bt.root,i),ownerState:Pt,onBlur:Tt,onClick:y,onContextMenu:$t,onFocus:Dt,onKeyDown:Vt,onKeyUp:zt,onMouseDown:mt,onMouseLeave:Mt,onMouseUp:at,onDragLeave:E,onTouchEnd:kt,onTouchMove:Wt,onTouchStart:Ot,ref:ut,tabIndex:d?-1:B,type:W,...st,...X,children:[s,It?p.jsx(rr,{ref:et,center:a,...z}):null]})});function dt(t,o,e,r=!1){return ht(n=>(e&&e(n),r||t[o](n),!0))}function lr(t){return J("MuiAlert",t)}const So=tt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function cr(t){return J("MuiIconButton",t)}const Co=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dr=t=>{const{classes:o,disabled:e,color:r,edge:n,size:a,loading:s}=t,i={root:["root",s&&"loading",e&&"disabled",r!=="default"&&`color${b(r)}`,n&&`edge${b(n)}`,`size${b(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Q(i,cr,o)},pr=M(St,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.loading&&o.loading,e.color!=="default"&&o[`color${b(e.color)}`],e.edge&&o[`edge${b(e.edge)}`],o[`size${b(e.size)}`]]}})(_(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:o=>!o.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),_(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{color:(t.vars||t).palette[o].main}})),...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${Co.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${Co.loading}`]:{color:"transparent"}}))),ur=M("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),fr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiIconButton"}),{edge:n=!1,children:a,className:s,color:i="default",disabled:l=!1,disableFocusRipple:d=!1,size:u="medium",id:f,loading:v=null,loadingIndicator:C,...h}=r,m=Eo(f),y=C??p.jsx(Lo,{"aria-labelledby":m,color:"inherit",size:16}),P={...r,edge:n,color:i,disabled:l,disableFocusRipple:d,loading:v,loadingIndicator:y,size:u},I=dr(P);return p.jsxs(pr,{id:v?m:f,className:w(I.root,s),centerRipple:!0,focusRipple:!d,disabled:l||v,ref:e,...h,ownerState:P,children:[typeof v=="boolean"&&p.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:p.jsx(ur,{className:I.loadingIndicator,ownerState:P,children:v&&y})}),a]})}),br=ft(p.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gr=ft(p.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),vr=ft(p.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),yr=ft(p.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),hr=ft(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),mr=t=>{const{variant:o,color:e,severity:r,classes:n}=t,a={root:["root",`color${b(e||r)}`,`${o}${b(e||r)}`,`${o}`],icon:["icon"],message:["message"],action:["action"]};return Q(a,lr,n)},xr=M(no,{name:"MuiAlert",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color||e.severity)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.darken:t.lighten,e=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:e(t.palette[r].light,.9),[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:o(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${So.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(G(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Sr=M("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Cr=M("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ir=M("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Io={success:p.jsx(br,{fontSize:"inherit"}),warning:p.jsx(gr,{fontSize:"inherit"}),error:p.jsx(vr,{fontSize:"inherit"}),info:p.jsx(yr,{fontSize:"inherit"})},Tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAlert"}),{action:n,children:a,className:s,closeText:i="Close",color:l,components:d={},componentsProps:u={},icon:f,iconMapping:v=Io,onClose:C,role:h="alert",severity:m="success",slotProps:y={},slots:P={},variant:I="standard",...j}=r,x={...r,color:l,severity:m,variant:I,colorSeverity:l||m},N=mr(x),T={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...P},slotProps:{...u,...y}},[F,Y]=nt("root",{ref:e,shouldForwardComponentProp:!0,className:w(N.root,s),elementType:xr,externalForwardedProps:{...T,...j},ownerState:x,additionalProps:{role:h,elevation:0}}),[q,A]=nt("icon",{className:N.icon,elementType:Sr,externalForwardedProps:T,ownerState:x}),[U,D]=nt("message",{className:N.message,elementType:Cr,externalForwardedProps:T,ownerState:x}),[B,z]=nt("action",{className:N.action,elementType:Ir,externalForwardedProps:T,ownerState:x}),[H,W]=nt("closeButton",{elementType:fr,externalForwardedProps:T,ownerState:x}),[X,ot]=nt("closeIcon",{elementType:hr,externalForwardedProps:T,ownerState:x});return p.jsxs(F,{...Y,children:[f!==!1?p.jsx(q,{...A,children:f||v[m]||Io[m]}):null,p.jsx(U,{...D,children:a}),n!=null?p.jsx(B,{...z,children:n}):null,n==null&&C?p.jsx(B,{...z,children:p.jsx(H,{size:"small","aria-label":i,title:i,color:"inherit",onClick:C,...W,children:p.jsx(X,{fontSize:"small",...ot})})}):null]})});function $r(t){return J("MuiAppBar",t)}tt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Pr=t=>{const{color:o,position:e,classes:r}=t,n={root:["root",`color${b(o)}`,`position${b(e)}`]};return Q(n,$r,r)},$o=(t,o)=>t?`${t?.replace(")","")}, ${o})`:o,Br=M(no,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`position${b(e.position)}`],o[`color${b(e.color)}`]]}})(_(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([o])=>({props:{color:o},style:{"--AppBar-background":(t.vars??t).palette[o].main,"--AppBar-color":(t.vars??t).palette[o].contrastText}})),{props:o=>o.enableColorOnDark===!0&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:o=>o.enableColorOnDark===!1&&!["inherit","transparent"].includes(o.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?$o(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?$o(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),Rr=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiAppBar"}),{className:n,color:a="primary",enableColorOnDark:s=!1,position:i="fixed",...l}=r,d={...r,color:a,position:i,enableColorOnDark:s},u=Pr(d);return p.jsx(Br,{square:!0,component:"header",ownerState:d,elevation:4,className:w(u.root,n,i==="fixed"&&"mui-fixed"),ref:e,...l})});function Nt(t){const{elementType:o,externalSlotProps:e,ownerState:r,skipResolvingSlotProps:n=!1,...a}=t,s=n?{}:Uo(e,r),{props:i,internalRef:l}=Ho({...a,externalSlotProps:s}),d=wt(l,s?.ref,t.additionalProps?.ref);return Fo(o,{...i,ref:d},r)}const wr=ft(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Mr(t){return J("MuiChip",t)}const R=tt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),kr=t=>{const{classes:o,disabled:e,size:r,color:n,iconColor:a,onDelete:s,clickable:i,variant:l}=t,d={root:["root",l,e&&"disabled",`size${b(r)}`,`color${b(n)}`,i&&"clickable",i&&`clickableColor${b(n)}`,s&&"deletable",s&&`deletableColor${b(n)}`,`${l}${b(n)}`],label:["label",`label${b(r)}`],avatar:["avatar",`avatar${b(r)}`,`avatarColor${b(n)}`],icon:["icon",`icon${b(r)}`,`iconColor${b(a)}`],deleteIcon:["deleteIcon",`deleteIcon${b(r)}`,`deleteIconColor${b(n)}`,`deleteIcon${b(l)}Color${b(n)}`]};return Q(d,Mr,o)},Tr=M("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t,{color:r,iconColor:n,clickable:a,onDelete:s,size:i,variant:l}=e;return[{[`& .${R.avatar}`]:o.avatar},{[`& .${R.avatar}`]:o[`avatar${b(i)}`]},{[`& .${R.avatar}`]:o[`avatarColor${b(r)}`]},{[`& .${R.icon}`]:o.icon},{[`& .${R.icon}`]:o[`icon${b(i)}`]},{[`& .${R.icon}`]:o[`iconColor${b(n)}`]},{[`& .${R.deleteIcon}`]:o.deleteIcon},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(i)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIconColor${b(r)}`]},{[`& .${R.deleteIcon}`]:o[`deleteIcon${b(l)}Color${b(r)}`]},o.root,o[`size${b(i)}`],o[`color${b(r)}`],a&&o.clickable,a&&r!=="default"&&o[`clickableColor${b(r)})`],s&&o.deletable,s&&r!=="default"&&o[`deletableColor${b(r)}`],o[l],o[`${l}${b(r)}`]]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${R.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${R.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)},[`& .${R.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${R.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${R.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${R.icon}`]:{marginLeft:5,marginRight:-6},[`& .${R.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${R.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${R.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(G(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText,[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${R.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:o}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${R.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,onDelete:!0},style:{[`&.${R.focusVisible}`]:{background:(t.vars||t).palette[e].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(G(["dark"])).map(([e])=>({props:{color:e,clickable:!0},style:{[`&:hover, &.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette[e].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${R.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${R.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${R.avatar}`]:{marginLeft:4},[`& .${R.avatarSmall}`]:{marginLeft:2},[`& .${R.icon}`]:{marginLeft:4},[`& .${R.iconSmall}`]:{marginLeft:2},[`& .${R.deleteIcon}`]:{marginRight:5},[`& .${R.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(G()).map(([e])=>({props:{variant:"outlined",color:e},style:{color:(t.vars||t).palette[e].main,border:`1px solid ${t.alpha((t.vars||t).palette[e].main,.7)}`,[`&.${R.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${R.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.focusOpacity)},[`& .${R.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[e].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e].main}}}}))]}})),zr=M("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,o)=>{const{ownerState:e}=t,{size:r}=e;return[o.label,o[`label${b(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Po(t){return t.key==="Backspace"||t.key==="Delete"}const zn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiChip"}),{avatar:n,className:a,clickable:s,color:i="default",component:l,deleteIcon:d,disabled:u=!1,icon:f,label:v,onClick:C,onDelete:h,onKeyDown:m,onKeyUp:y,size:P="medium",variant:I="filled",tabIndex:j,skipFocusWhenDisabled:x=!1,slots:N={},slotProps:T={},...F}=r,Y=c.useRef(null),q=wt(Y,e),A=E=>{E.stopPropagation(),h&&h(E)},U=E=>{E.currentTarget===E.target&&Po(E)&&E.preventDefault(),m&&m(E)},D=E=>{E.currentTarget===E.target&&h&&Po(E)&&h(E),y&&y(E)},B=s!==!1&&C?!0:s,z=B||h?St:l||"div",H={...r,component:z,disabled:u,size:P,color:i,iconColor:c.isValidElement(f)&&f.props.color||i,onDelete:!!h,clickable:B,variant:I},W=kr(H),X=z===St?{component:l||"div",focusVisibleClassName:W.focusVisible,...h&&{disableRipple:!0}}:{};let ot=null;h&&(ot=d&&c.isValidElement(d)?c.cloneElement(d,{className:w(d.props.className,W.deleteIcon),onClick:A}):p.jsx(wr,{className:W.deleteIcon,onClick:A}));let O=null;n&&c.isValidElement(n)&&(O=c.cloneElement(n,{className:w(W.avatar,n.props.className)}));let et=null;f&&c.isValidElement(f)&&(et=c.cloneElement(f,{className:w(W.icon,f.props.className)}));const K={slots:N,slotProps:T},[pt,It]=nt("root",{elementType:Tr,externalForwardedProps:{...K,...F},ownerState:H,shouldForwardComponentProp:!0,ref:q,className:w(W.root,a),additionalProps:{disabled:B&&u?!0:void 0,tabIndex:x&&u?-1:j,...X},getSlotProps:E=>({...E,onClick:at=>{E.onClick?.(at),C?.(at)},onKeyDown:at=>{E.onKeyDown?.(at),U(at)},onKeyUp:at=>{E.onKeyUp?.(at),D(at)}})}),[mt,$t]=nt("label",{elementType:zr,externalForwardedProps:K,ownerState:H,className:W.label});return p.jsxs(pt,{as:z,...It,children:[O||et,p.jsx(mt,{...$t,children:v}),ot]})});function Er(t){return J("MuiButton",t)}const vt=tt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),Lr=c.createContext({}),Ar=c.createContext(void 0),jr=t=>{const{color:o,disableElevation:e,fullWidth:r,size:n,variant:a,loading:s,loadingPosition:i,classes:l}=t,d={root:["root",s&&"loading",a,`${a}${b(o)}`,`size${b(n)}`,`${a}Size${b(n)}`,`color${b(o)}`,e&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${b(i)}`],startIcon:["icon","startIcon",`iconSize${b(n)}`],endIcon:["icon","endIcon",`iconSize${b(n)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Q(d,Er,l);return{...l,...u}},Ko=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],Nr=M(St,{shouldForwardProp:t=>fe(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[e.variant],o[`${e.variant}${b(e.color)}`],o[`size${b(e.size)}`],o[`${e.variant}Size${b(e.size)}`],e.color==="inherit"&&o.colorInherit,e.disableElevation&&o.disableElevation,e.fullWidth&&o.fullWidth,e.loading&&o.loading]}})(_(({theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],e=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${vt.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${vt.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${vt.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(G()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:o,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:e,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${vt.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${vt.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${vt.loading}`]:{color:"transparent"}}}]}})),Or=M("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.startIcon,e.loading&&o.startIconLoadingStart,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ko]})),Wr=M("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.endIcon,e.loading&&o.endIconLoadingEnd,o[`iconSize${b(e.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ko]})),Dr=M("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Bo=M("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),En=c.forwardRef(function(o,e){const r=c.useContext(Lr),n=c.useContext(Ar),a=ko(r,o),s=Z({props:a,name:"MuiButton"}),{children:i,color:l="primary",component:d="button",className:u,disabled:f=!1,disableElevation:v=!1,disableFocusRipple:C=!1,endIcon:h,focusVisibleClassName:m,fullWidth:y=!1,id:P,loading:I=null,loadingIndicator:j,loadingPosition:x="center",size:N="medium",startIcon:T,type:F,variant:Y="text",...q}=s,A=Eo(P),U=j??p.jsx(Lo,{"aria-labelledby":A,color:"inherit",size:16}),D={...s,color:l,component:d,disabled:f,disableElevation:v,disableFocusRipple:C,fullWidth:y,loading:I,loadingIndicator:U,loadingPosition:x,size:N,type:F,variant:Y},B=jr(D),z=(T||I&&x==="start")&&p.jsx(Or,{className:B.startIcon,ownerState:D,children:T||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),H=(h||I&&x==="end")&&p.jsx(Wr,{className:B.endIcon,ownerState:D,children:h||p.jsx(Bo,{className:B.loadingIconPlaceholder,ownerState:D})}),W=n||"",X=typeof I=="boolean"?p.jsx("span",{className:B.loadingWrapper,style:{display:"contents"},children:I&&p.jsx(Dr,{className:B.loadingIndicator,ownerState:D,children:U})}):null;return p.jsxs(Nr,{ownerState:D,className:w(r.className,B.root,u,W),component:d,disabled:f||I,focusRipple:!C,focusVisibleClassName:w(B.focusVisible,m),ref:e,type:F,id:I?A:P,...q,classes:B,children:[z,x!=="end"&&X,i,x==="end"&&X,H]})});function Vr(t){return J("MuiCard",t)}tt("MuiCard",["root"]);const Fr=t=>{const{classes:o}=t;return Q({root:["root"]},Vr,o)},Ur=M(no,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),Ln=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiCard"}),{className:n,raised:a=!1,...s}=r,i={...r,raised:a},l=Fr(i);return p.jsx(Ur,{className:w(l.root,n),elevation:a?8:void 0,ref:e,ownerState:i,...s})}),Hr=we({createStyledComponent:M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`maxWidth${b(String(e.maxWidth))}`],e.fixed&&o.fixed,e.disableGutters&&o.disableGutters]}}),useThemeProps:t=>Z({props:t,name:"MuiContainer"})});function Kr(t){return J("MuiLinearProgress",t)}tt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Gt=4,_t=Ct`
|
|
0% {
|
|
left: -35%;
|
|
right: 100%;
|
|
}
|
|
|
|
60% {
|
|
left: 100%;
|
|
right: -90%;
|
|
}
|
|
|
|
100% {
|
|
left: 100%;
|
|
right: -90%;
|
|
}
|
|
`,Yr=typeof _t!="string"?to`
|
|
animation: ${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
`:null,Zt=Ct`
|
|
0% {
|
|
left: -200%;
|
|
right: 100%;
|
|
}
|
|
|
|
60% {
|
|
left: 107%;
|
|
right: -8%;
|
|
}
|
|
|
|
100% {
|
|
left: 107%;
|
|
right: -8%;
|
|
}
|
|
`,qr=typeof Zt!="string"?to`
|
|
animation: ${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
`:null,Qt=Ct`
|
|
0% {
|
|
opacity: 1;
|
|
background-position: 0 -23px;
|
|
}
|
|
|
|
60% {
|
|
opacity: 0;
|
|
background-position: 0 -23px;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
background-position: -200px -23px;
|
|
}
|
|
`,Xr=typeof Qt!="string"?to`
|
|
animation: ${Qt} 3s infinite linear;
|
|
`:null,Gr=t=>{const{classes:o,variant:e,color:r}=t,n={root:["root",`color${b(r)}`,e],dashed:["dashed",`dashedColor${b(r)}`],bar1:["bar","bar1",`barColor${b(r)}`,(e==="indeterminate"||e==="query")&&"bar1Indeterminate",e==="determinate"&&"bar1Determinate",e==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",e!=="buffer"&&`barColor${b(r)}`,e==="buffer"&&`color${b(r)}`,(e==="indeterminate"||e==="query")&&"bar2Indeterminate",e==="buffer"&&"bar2Buffer"]};return Q(n,Kr,o)},ao=(t,o)=>t.vars?t.vars.palette.LinearProgress[`${o}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[o].main,.62):t.darken(t.palette[o].main,.5),_r=M("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,o[`color${b(e.color)}`],o[e.variant]]}})(_(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:ao(t,o)}})),{props:({ownerState:o})=>o.color==="inherit"&&o.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),Zr=M("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.dashed,o[`dashedColor${b(e.color)}`]]}})(_(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(t.palette).filter(G()).map(([o])=>{const e=ao(t,o);return{props:{color:o},style:{backgroundImage:`radial-gradient(${e} 0%, ${e} 16%, transparent 42%)`}}})]})),Xr||{animation:`${Qt} 3s infinite linear`}),Qr=M("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar1,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar1Indeterminate,e.variant==="determinate"&&o.bar1Determinate,e.variant==="buffer"&&o.bar1Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Gt}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Gt}s linear`}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:Yr||{animation:`${_t} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),Jr=M("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.bar,o.bar2,o[`barColor${b(e.color)}`],(e.variant==="indeterminate"||e.variant==="query")&&o.bar2Indeterminate,e.variant==="buffer"&&o.bar2Buffer]}})(_(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[o].main}})),{props:({ownerState:o})=>o.variant!=="buffer"&&o.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:o})=>o.variant!=="buffer"&&o.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(G()).map(([o])=>({props:{color:o,variant:"buffer"},style:{backgroundColor:ao(t,o),transition:`transform .${Gt}s linear`}})),{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:{width:"auto"}},{props:({ownerState:o})=>o.variant==="indeterminate"||o.variant==="query",style:qr||{animation:`${Zt} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),tn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiLinearProgress"}),{className:n,color:a="primary",value:s,valueBuffer:i,variant:l="indeterminate",...d}=r,u={...r,color:a,variant:l},f=Gr(u),v=Jt(),C={},h={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){C["aria-valuenow"]=Math.round(s),C["aria-valuemin"]=0,C["aria-valuemax"]=100;let m=s-100;v&&(m=-m),h.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&i!==void 0){let m=(i||0)-100;v&&(m=-m),h.bar2.transform=`translateX(${m}%)`}return p.jsxs(_r,{className:w(f.root,n),ownerState:u,role:"progressbar",...C,ref:e,...d,children:[l==="buffer"?p.jsx(Zr,{className:f.dashed,ownerState:u}):null,p.jsx(Qr,{className:f.bar1,ownerState:u,style:h.bar1}),l==="determinate"?null:p.jsx(Jr,{className:f.bar2,ownerState:u,style:h.bar2})]})});function on(t){return J("MuiTab",t)}const it=tt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),en=t=>{const{classes:o,textColor:e,fullWidth:r,wrapped:n,icon:a,label:s,selected:i,disabled:l}=t,d={root:["root",a&&s&&"labelIcon",`textColor${b(e)}`,r&&"fullWidth",n&&"wrapped",i&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Q(d,on,o)},rn=M(St,{name:"MuiTab",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.label&&e.icon&&o.labelIcon,o[`textColor${b(e.textColor)}`],e.fullWidth&&o.fullWidth,e.wrapped&&o.wrapped,{[`& .${it.iconWrapper}`]:o.iconWrapper},{[`& .${it.icon}`]:o.icon}]}})(_(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:o})=>o.label&&(o.iconPosition==="top"||o.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:o})=>o.label&&o.iconPosition!=="top"&&o.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:o})=>o.icon&&o.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="top",style:{[`& > .${it.icon}`]:{marginBottom:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="bottom",style:{[`& > .${it.icon}`]:{marginTop:6}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="start",style:{[`& > .${it.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:o,iconPosition:e})=>o.icon&&o.label&&e==="end",style:{[`& > .${it.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${it.selected}`]:{opacity:1},[`&.${it.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${it.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${it.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:o})=>o.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:o})=>o.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),nn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:i,icon:l,iconPosition:d="top",indicator:u,label:f,onChange:v,onClick:C,onFocus:h,selected:m,selectionFollowsFocus:y,textColor:P="inherit",value:I,wrapped:j=!1,...x}=r,N={...r,disabled:a,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:d,label:!!f,fullWidth:i,textColor:P,wrapped:j},T=en(N),F=l&&f&&c.isValidElement(l)?c.cloneElement(l,{className:w(T.icon,l.props.className)}):l,Y=A=>{!m&&v&&v(A,I),C&&C(A)},q=A=>{y&&!m&&v&&v(A,I),h&&h(A)};return p.jsxs(rn,{focusRipple:!s,className:w(T.root,n),ref:e,role:"tab","aria-selected":m,disabled:a,onClick:Y,onFocus:q,ownerState:N,tabIndex:m?0:-1,...x,children:[d==="top"||d==="start"?p.jsxs(c.Fragment,{children:[F,f]}):p.jsxs(c.Fragment,{children:[f,F]}),u]})});function an(t){return J("MuiToolbar",t)}tt("MuiToolbar",["root","gutters","regular","dense"]);const sn=t=>{const{classes:o,disableGutters:e,variant:r}=t;return Q({root:["root",!e&&"gutters",r]},an,o)},ln=M("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,!e.disableGutters&&o.gutters,o[e.variant]]}})(_(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:o})=>!o.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),cn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiToolbar"}),{className:n,component:a="div",disableGutters:s=!1,variant:i="regular",...l}=r,d={...r,component:a,disableGutters:s,variant:i},u=sn(d);return p.jsx(ln,{as:a,className:w(u.root,n),ref:e,ownerState:d,...l})}),dn=ft(p.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),pn=ft(p.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function un(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function fn(t,o,e,r={},n=()=>{}){const{ease:a=un,duration:s=300}=r;let i=null;const l=o[t];let d=!1;const u=()=>{d=!0},f=v=>{if(d){n(new Error("Animation cancelled"));return}i===null&&(i=v);const C=Math.min(1,(v-i)/s);if(o[t]=a(C)*(e-l)+l,C>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(f)};return l===e?(n(new Error("Element already at target position")),u):(requestAnimationFrame(f),u)}const bn={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function gn(t){const{onChange:o,...e}=t,r=c.useRef(),n=c.useRef(null),a=()=>{r.current=n.current.offsetHeight-n.current.clientHeight};return zo(()=>{const s=Oo(()=>{const l=r.current;a(),l!==r.current&&o(r.current)}),i=Do(n.current);return i.addEventListener("resize",s),()=>{s.clear(),i.removeEventListener("resize",s)}},[o]),c.useEffect(()=>{a(),o(r.current)},[o]),p.jsx("div",{style:bn,...e,ref:n})}function vn(t){return J("MuiTabScrollButton",t)}const yn=tt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),hn=t=>{const{classes:o,orientation:e,disabled:r}=t;return Q({root:["root",e,r&&"disabled"]},vn,o)},mn=M(St,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.root,e.orientation&&o[e.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yn.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),xn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabScrollButton"}),{className:n,slots:a={},slotProps:s={},direction:i,orientation:l,disabled:d,...u}=r,f=Jt(),v={isRtl:f,...r},C=hn(v),h=a.StartScrollButtonIcon??dn,m=a.EndScrollButtonIcon??pn,y=Nt({elementType:h,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),P=Nt({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return p.jsx(mn,{component:"div",className:w(C.root,n),ref:e,role:null,ownerState:v,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:i==="left"?p.jsx(h,{...y}):p.jsx(m,{...P})})});function Sn(t){return J("MuiTabs",t)}const Ht=tt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ro=(t,o)=>t===o?t.firstChild:o&&o.nextElementSibling?o.nextElementSibling:t.firstChild,wo=(t,o)=>t===o?t.lastChild:o&&o.previousElementSibling?o.previousElementSibling:t.lastChild,At=(t,o,e)=>{let r=!1,n=e(t,o);for(;n;){if(n===t.firstChild){if(r)return;r=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=e(t,n);else{n.focus();return}}},Cn=t=>{const{vertical:o,fixed:e,hideScrollbar:r,scrollableX:n,scrollableY:a,centered:s,scrollButtonsHideMobile:i,classes:l}=t;return Q({root:["root",o&&"vertical"],scroller:["scroller",e&&"fixed",r&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],list:["list","flexContainer",o&&"flexContainerVertical",o&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",i&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Sn,l)},In=M("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[{[`& .${Ht.scrollButtons}`]:o.scrollButtons},{[`& .${Ht.scrollButtons}`]:e.scrollButtonsHideMobile&&o.scrollButtonsHideMobile},o.root,e.vertical&&o.vertical]}})(_(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:o})=>o.vertical,style:{flexDirection:"column"}},{props:({ownerState:o})=>o.scrollButtonsHideMobile,style:{[`& .${Ht.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),$n=M("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.scroller,e.fixed&&o.fixed,e.hideScrollbar&&o.hideScrollbar,e.scrollableX&&o.scrollableX,e.scrollableY&&o.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),Pn=M("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,o)=>{const{ownerState:e}=t;return[o.list,o.flexContainer,e.vertical&&o.flexContainerVertical,e.centered&&o.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),Bn=M("span",{name:"MuiTabs",slot:"Indicator"})(_(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:o})=>o.vertical,style:{height:"100%",width:2,right:0}}]}))),Rn=M(gn)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Mo={},wn=c.forwardRef(function(o,e){const r=Z({props:o,name:"MuiTabs"}),n=No(),a=Jt(),{"aria-label":s,"aria-labelledby":i,action:l,centered:d=!1,children:u,className:f,component:v="div",allowScrollButtonsMobile:C=!1,indicatorColor:h="primary",onChange:m,orientation:y="horizontal",ScrollButtonComponent:P,scrollButtons:I="auto",selectionFollowsFocus:j,slots:x={},slotProps:N={},TabIndicatorProps:T={},TabScrollButtonProps:F={},textColor:Y="primary",value:q,variant:A="standard",visibleScrollbar:U=!1,...D}=r,B=A==="scrollable",z=y==="vertical",H=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",ot=z?"clientHeight":"clientWidth",O=z?"height":"width",et={...r,component:v,allowScrollButtonsMobile:C,indicatorColor:h,orientation:y,vertical:z,scrollButtons:I,textColor:Y,variant:A,visibleScrollbar:U,fixed:!B,hideScrollbar:B&&!U,scrollableX:B&&!z,scrollableY:B&&z,centered:d&&!B,scrollButtonsHideMobile:!C},K=Cn(et),pt=Nt({elementType:x.StartScrollButtonIcon,externalSlotProps:N.startScrollButtonIcon,ownerState:et}),It=Nt({elementType:x.EndScrollButtonIcon,externalSlotProps:N.endScrollButtonIcon,ownerState:et}),[mt,$t]=c.useState(!1),[E,at]=c.useState(Mo),[Mt,Ot]=c.useState(!1),[kt,Wt]=c.useState(!1),[Tt,Dt]=c.useState(!1),[xt,Vt]=c.useState({overflow:"hidden",scrollbarWidth:0}),zt=new Map,rt=c.useRef(null),st=c.useRef(null),ut={slots:x,slotProps:{indicator:T,scrollButton:F,...N}},Pt=()=>{const g=rt.current;let S;if(g){const k=g.getBoundingClientRect();S={clientWidth:g.clientWidth,scrollLeft:g.scrollLeft,scrollTop:g.scrollTop,scrollWidth:g.scrollWidth,top:k.top,bottom:k.bottom,left:k.left,right:k.right}}let L;if(g&&q!==!1){const k=st.current.children;if(k.length>0){const V=k[zt.get(q)];L=V?V.getBoundingClientRect():null}}return{tabsMeta:S,tabMeta:L}},bt=ht(()=>{const{tabsMeta:g,tabMeta:S}=Pt();let L=0,k;z?(k="top",S&&g&&(L=S.top-g.top+g.scrollTop)):(k=a?"right":"left",S&&g&&(L=(a?-1:1)*(S[k]-g[k]+g.scrollLeft)));const V={[k]:L,[O]:S?S[O]:0};if(typeof E[k]!="number"||typeof E[O]!="number")at(V);else{const ct=Math.abs(E[k]-V[k]),gt=Math.abs(E[O]-V[O]);(ct>=1||gt>=1)&&at(V)}}),$=(g,{animation:S=!0}={})=>{S?fn(H,rt.current,g,{duration:n.transitions.duration.standard}):rt.current[H]=g},so=g=>{let S=rt.current[H];z?S+=g:S+=g*(a?-1:1),$(S)},io=()=>{const g=rt.current[ot];let S=0;const L=Array.from(st.current.children);for(let k=0;k<L.length;k+=1){const V=L[k];if(S+V[ot]>g){k===0&&(S=g);break}S+=V[ot]}return S},Yo=()=>{so(-1*io())},qo=()=>{so(io())},[Xo,{onChange:lo,...Go}]=nt("scrollbar",{className:w(K.scrollableX,K.hideScrollbar),elementType:Rn,shouldForwardComponentProp:!0,externalForwardedProps:ut,ownerState:et}),_o=c.useCallback(g=>{lo?.(g),Vt({overflow:null,scrollbarWidth:g})},[lo]),[co,po]=nt("scrollButtons",{className:w(K.scrollButtons,F.className),elementType:xn,externalForwardedProps:ut,ownerState:et,additionalProps:{orientation:y,slots:{StartScrollButtonIcon:x.startScrollButtonIcon||x.StartScrollButtonIcon,EndScrollButtonIcon:x.endScrollButtonIcon||x.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:pt,endScrollButtonIcon:It}}}),Zo=()=>{const g={};g.scrollbarSizeListener=B?p.jsx(Xo,{...Go,onChange:_o}):null;const L=B&&(I==="auto"&&(Mt||kt)||I===!0);return g.scrollButtonStart=L?p.jsx(co,{direction:a?"right":"left",onClick:Yo,disabled:!Mt,...po}):null,g.scrollButtonEnd=L?p.jsx(co,{direction:a?"left":"right",onClick:qo,disabled:!kt,...po}):null,g},uo=ht(g=>{const{tabsMeta:S,tabMeta:L}=Pt();if(!(!L||!S)){if(L[W]<S[W]){const k=S[H]+(L[W]-S[W]);$(k,{animation:g})}else if(L[X]>S[X]){const k=S[H]+(L[X]-S[X]);$(k,{animation:g})}}}),Et=ht(()=>{B&&I!==!1&&Dt(!Tt)});c.useEffect(()=>{const g=Oo(()=>{rt.current&&bt()});let S;const L=ct=>{ct.forEach(gt=>{gt.removedNodes.forEach(Bt=>{S?.unobserve(Bt)}),gt.addedNodes.forEach(Bt=>{S?.observe(Bt)})}),g(),Et()},k=Do(rt.current);k.addEventListener("resize",g);let V;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(g),Array.from(st.current.children).forEach(ct=>{S.observe(ct)})),typeof MutationObserver<"u"&&(V=new MutationObserver(L),V.observe(st.current,{childList:!0})),()=>{g.clear(),k.removeEventListener("resize",g),V?.disconnect(),S?.disconnect()}},[bt,Et]),c.useEffect(()=>{const g=Array.from(st.current.children),S=g.length;if(typeof IntersectionObserver<"u"&&S>0&&B&&I!==!1){const L=g[0],k=g[S-1],V={root:rt.current,threshold:.99},ct=Ut=>{Ot(!Ut[0].isIntersecting)},gt=new IntersectionObserver(ct,V);gt.observe(L);const Bt=Ut=>{Wt(!Ut[0].isIntersecting)},bo=new IntersectionObserver(Bt,V);return bo.observe(k),()=>{gt.disconnect(),bo.disconnect()}}},[B,I,Tt,u?.length]),c.useEffect(()=>{$t(!0)},[]),c.useEffect(()=>{bt()}),c.useEffect(()=>{uo(Mo!==E)},[uo,E]),c.useImperativeHandle(l,()=>({updateIndicator:bt,updateScrollButtons:Et}),[bt,Et]);const[Qo,Jo]=nt("indicator",{className:w(K.indicator,T.className),elementType:Bn,externalForwardedProps:ut,ownerState:et,additionalProps:{style:E}}),fo=p.jsx(Qo,{...Jo});let Lt=0;const te=c.Children.map(u,g=>{if(!c.isValidElement(g))return null;const S=g.props.value===void 0?Lt:g.props.value;zt.set(S,Lt);const L=S===q;return Lt+=1,c.cloneElement(g,{fullWidth:A==="fullWidth",indicator:L&&!mt&&fo,selected:L,selectionFollowsFocus:j,onChange:m,textColor:Y,value:S,...Lt===1&&q===!1&&!g.props.tabIndex?{tabIndex:0}:{}})}),oe=g=>{if(g.altKey||g.shiftKey||g.ctrlKey||g.metaKey)return;const S=st.current,L=Wo(S).activeElement;if(L.getAttribute("role")!=="tab")return;let V=y==="horizontal"?"ArrowLeft":"ArrowUp",ct=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(V="ArrowRight",ct="ArrowLeft"),g.key){case V:g.preventDefault(),At(S,L,wo);break;case ct:g.preventDefault(),At(S,L,Ro);break;case"Home":g.preventDefault(),At(S,null,Ro);break;case"End":g.preventDefault(),At(S,null,wo);break}},Ft=Zo(),[ee,re]=nt("root",{ref:e,className:w(K.root,f),elementType:In,externalForwardedProps:{...ut,...D,component:v},ownerState:et}),[ne,ae]=nt("scroller",{ref:rt,className:K.scroller,elementType:$n,externalForwardedProps:ut,ownerState:et,additionalProps:{style:{overflow:xt.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:U?void 0:-xt.scrollbarWidth}}}),[se,ie]=nt("list",{ref:st,className:w(K.list,K.flexContainer),elementType:Pn,externalForwardedProps:ut,ownerState:et,getSlotProps:g=>({...g,onKeyDown:S=>{oe(S),g.onKeyDown?.(S)}})});return p.jsxs(ee,{...re,children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,p.jsxs(ne,{...ae,children:[p.jsx(se,{"aria-label":s,"aria-labelledby":i,"aria-orientation":y==="vertical"?"vertical":null,role:"tablist",...ie,children:te}),mt&&fo]}),Ft.scrollButtonEnd]})}),Mn=({currentPath:t})=>{const o=Ao(),{currentDocument:e,extractionById:r}=jo(l=>l.document),n=[{label:"Téléversement",path:"/",alwaysEnabled:!0},{label:"Extraction",path:"/extraction",alwaysEnabled:!0},{label:"Contexte",path:"/contexte",alwaysEnabled:!1},{label:"Conseil",path:"/conseil",alwaysEnabled:!1}],a=n.findIndex(l=>l.path===t),s=e&&r[e.id],i=(l,d)=>{const u=n[d];(u.alwaysEnabled||s)&&o(u.path)};return p.jsx(Kt,{sx:{borderBottom:1,borderColor:"divider"},children:p.jsx(wn,{value:a>=0?a:0,onChange:i,"aria-label":"navigation tabs",variant:"scrollable",scrollButtons:"auto",children:n.map((l,d)=>p.jsx(nn,{label:l.label,disabled:!l.alwaysEnabled&&!s,sx:{opacity:!l.alwaysEnabled&&!s?.5:1,"&.Mui-disabled":{color:"text.disabled"}}},d))})})},An=({children:t})=>{const o=Ao(),e=be(),r=ge(),{documents:n,extractionById:a,loading:s,currentDocument:i,contextResult:l,conseilResult:d,analysisResult:u}=jo(y=>y.document),f=c.useRef(new Set),v=c.useRef([]),C=c.useRef(!1),h=async()=>{if(!(C.current||v.current.length===0)){for(C.current=!0;v.current.length>0;){const y=v.current.shift();if(y){console.log(`🚀 [LAYOUT] Traitement de la queue: ${y}`);try{const P=n.find(I=>I.id===y);P&&(P.status="processing"),await r(xe(y)),await new Promise(I=>setTimeout(I,500))}catch(P){console.error(`❌ [LAYOUT] Erreur extraction ${y}:`,P);const I=n.find(j=>j.id===y);I&&(I.status="error")}}}C.current=!1}},m=c.useMemo(()=>(console.log(`📋 [LAYOUT] Recalcul de la liste des documents: ${n.length}`),n),[n]);return c.useEffect(()=>{console.log(`📋 [LAYOUT] ${m.length} documents détectés`),m.forEach(y=>{const P=a[y.id],I=f.current.has(y.id),j=y.status==="processing",x=y.status==="completed";console.log(`📄 [LAYOUT] Document ${y.id}: hasExtraction=${!!P}, isProcessed=${I}, isProcessing=${j}, isCompleted=${x}`),P&&!I?(console.log(`✅ [LAYOUT] Document ${y.id} a déjà un résultat, marqué comme traité`),f.current.add(y.id),y.status!=="completed"&&(y.status="completed")):!P&&!I&&!j&&!x&&(console.log(`🚀 [LAYOUT] Ajout à la queue: ${y.id}`),f.current.add(y.id),v.current.push(y.id))}),h()},[n,r,a]),c.useEffect(()=>{i&&(u||r(ve(i.id)),l||r(ye(i.id)),d||r(he(i.id)))},[i,u,l,d,r]),p.jsxs(Kt,{sx:{flexGrow:1},children:[p.jsx(Rr,{position:"static",children:p.jsx(cn,{children:p.jsx(me,{variant:"h6",component:"div",sx:{flexGrow:1,cursor:"pointer"},onClick:()=>o("/"),children:"IA - Lecoffre.io"})})}),p.jsx(Mn,{currentPath:e.pathname}),s&&p.jsx(Kt,{sx:{px:2,pt:1},children:p.jsx(tn,{})}),p.jsx(Hr,{maxWidth:"xl",sx:{mt:3,mb:3},children:t})]})};export{Tn as A,En as B,Ln as C,fr as I,An as L,no as P,ro as T,Ee as _,ht as a,No as b,ft as c,Oo as d,nt as e,Wo as f,qe as g,Nt as h,Ye as i,Fe as j,zn as k,St as l,xo as m,ze as n,Do as o,yo as p,tn as q,wt as u};
|