4NK_IA_front/public/assets/UploadView-B8ejIPq8.js
2025-09-18 15:31:16 +00:00

44 lines
170 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{g as xo,c as de,r as c,u as wt,j as i,a as he,b as be,s as W,d as ye,e as Vo,m as ke,f as fe,h as ve,i as go,k as sn,T as Y,l as ln,n as He,o as Pt,p as Go,q as Xo,t as ho,v as bo,w as bn,R as Yo,x as yo,y as ct,B as N,C as wo,z as At,A as ze,D as zt,E as Jo,F as Zo,G as Qo,H as ei,I as yn,J as wn}from"./index-DwyPw-ga.js";import{u as Be,o as We,a as tt,d as ko,i as Ut,c as Fe,b as cn,e as pe,f as Te,g as _t,P as mt,h as ti,j as ni,I as Kt,B as re,A as Vt,L as kn,C as oi,k as Ue}from"./Layout-BXCKqMhs.js";import{T as ii,g as Cn,r as ai,u as jn}from"./utils-CKR531ip.js";import{g as Et,P as ri,G as Co,T as Gt,D as Sn}from"./Description-D3TUU4JV.js";import{i as Mt,L as Xt,a as Yt,b as Jt}from"./ListItemText-DU5FWiy7.js";import{L as jo}from"./ListItemIcon-Bjh9BWiV.js";import{E as si,C as li}from"./Error-KwpHlgI1.js";var Ot={exports:{}},Lt,Rn;function ci(){if(Rn)return Lt;Rn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Lt=e,Lt}var Nt,Pn;function pi(){if(Pn)return Nt;Pn=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,Nt=function(){function o(s,l,p,m,v,h){if(h!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}o.isRequired=o;function a(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return r.PropTypes=r,r},Nt}var En;function di(){return En||(En=1,Ot.exports=pi()()),Ot.exports}var ui=di();const se=xo(ui);function mi(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function fi(e){return parseFloat(e)}function Fn(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function vi(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function xi(e,t){if(!e)return t;function n(s,l){const p={};return Object.keys(l).forEach(m=>{vi(m,l[m])&&typeof s[m]=="function"&&(p[m]=(...v)=>{s[m](...v),l[m](...v)})}),p}if(typeof e=="function"||typeof t=="function")return s=>{const l=typeof t=="function"?t(s):t,p=typeof e=="function"?e({...s,...l}):e,m=de(s?.className,l?.className,p?.className),v=n(p,l);return{...l,...p,...v,...!!m&&{className:m},...l?.style&&p?.style&&{style:{...l.style,...p.style}},...l?.sx&&p?.sx&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(p.sx)?p.sx:[p.sx]]}}};const o=t,a=n(e,o),r=de(o?.className,e?.className);return{...t,...e,...a,...!!r&&{className:r},...o?.style&&e?.style&&{style:{...o.style,...e.style}},...o?.sx&&e?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function vt(e){return parseInt(e,10)||0}const gi={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function hi(e){for(const t in e)return!1;return!0}function In(e){return hi(e)||e.outerHeightStyle===0&&!e.overflowing}const bi=c.forwardRef(function(t,n){const{onChange:o,maxRows:a,minRows:r=1,style:s,value:l,...p}=t,{current:m}=c.useRef(l!=null),v=c.useRef(null),h=Be(n,v),w=c.useRef(null),f=c.useRef(null),u=c.useCallback(()=>{const x=v.current,y=f.current;if(!x||!y)return;const S=We(x).getComputedStyle(x);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};y.style.width=S.width,y.value=x.value||t.placeholder||"x",y.value.slice(-1)===`
`&&(y.value+=" ");const P=S.boxSizing,D=vt(S.paddingBottom)+vt(S.paddingTop),A=vt(S.borderBottomWidth)+vt(S.borderTopWidth),O=y.scrollHeight;y.value="x";const H=y.scrollHeight;let B=O;r&&(B=Math.max(Number(r)*H,B)),a&&(B=Math.min(Number(a)*H,B)),B=Math.max(B,H);const q=B+(P==="border-box"?D+A:0),F=Math.abs(B-O)<=1;return{outerHeightStyle:q,overflowing:F}},[a,r,t.placeholder]),k=tt(()=>{const x=v.current,y=u();if(!x||!y||In(y))return!1;const d=y.outerHeightStyle;return w.current!=null&&w.current!==d}),b=c.useCallback(()=>{const x=v.current,y=u();if(!x||!y||In(y))return;const d=y.outerHeightStyle;w.current!==d&&(w.current=d,x.style.height=`${d}px`),x.style.overflow=y.overflowing?"hidden":""},[u]),g=c.useRef(-1);wt(()=>{const x=ko(b),y=v?.current;if(!y)return;const d=We(y);d.addEventListener("resize",x);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{k()&&(S.unobserve(y),cancelAnimationFrame(g.current),b(),g.current=requestAnimationFrame(()=>{S.observe(y)}))}),S.observe(y)),()=>{x.clear(),cancelAnimationFrame(g.current),d.removeEventListener("resize",x),S&&S.disconnect()}},[u,b,k]),wt(()=>{b()});const j=x=>{m||b();const y=x.target,d=y.value.length,S=y.value.endsWith(`
`),P=y.selectionStart===d;S&&P&&y.setSelectionRange(d,d),o&&o(x)};return i.jsxs(c.Fragment,{children:[i.jsx("textarea",{value:l,onChange:j,ref:h,rows:r,style:s,...p}),i.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...gi.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function it({props:e,states:t,muiFormControl:n}){return t.reduce((o,a)=>(o[a]=e[a],n&&typeof e[a]>"u"&&(o[a]=n[a]),o),{})}const pn=c.createContext(void 0);function at(){return c.useContext(pn)}function Tn(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function kt(e,t=!1){return e&&(Tn(e.value)&&e.value!==""||t&&Tn(e.defaultValue)&&e.defaultValue!=="")}function yi(e){return e.startAdornment}function wi(e){return be("MuiInputBase",e)}const nt=he("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Dn;const Ft=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},It=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ki=e=>{const{classes:t,color:n,disabled:o,error:a,endAdornment:r,focused:s,formControl:l,fullWidth:p,hiddenLabel:m,multiline:v,readOnly:h,size:w,startAdornment:f,type:u}=e,k={root:["root",`color${fe(n)}`,o&&"disabled",a&&"error",p&&"fullWidth",s&&"focused",l&&"formControl",w&&w!=="medium"&&`size${fe(w)}`,v&&"multiline",f&&"adornedStart",r&&"adornedEnd",m&&"hiddenLabel",h&&"readOnly"],input:["input",o&&"disabled",u==="search"&&"inputTypeSearch",v&&"inputMultiline",w==="small"&&"inputSizeSmall",m&&"inputHiddenLabel",f&&"inputAdornedStart",r&&"inputAdornedEnd",h&&"readOnly"]};return ve(k,wi,t)},Tt=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ft})(ke(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nt.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Dt=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:It})(ke(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nt.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nt.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:r})=>!r.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:r})=>r.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),An=Vo({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),dn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:r,autoFocus:s,className:l,color:p,components:m={},componentsProps:v={},defaultValue:h,disabled:w,disableInjectingGlobalStyles:f,endAdornment:u,error:k,fullWidth:b=!1,id:g,inputComponent:j="input",inputProps:x={},inputRef:y,margin:d,maxRows:S,minRows:P,multiline:D=!1,name:A,onBlur:O,onChange:H,onClick:B,onFocus:q,onKeyDown:F,onKeyUp:E,placeholder:I,readOnly:V,renderSuffix:ee,rows:T,size:Q,slotProps:ne={},slots:J={},startAdornment:G,type:X="text",value:oe,...ce}=o,ue=x.value!=null?x.value:oe,{current:Ce}=c.useRef(ue!=null),te=c.useRef(),$=c.useCallback(ae=>{},[]),U=Be(te,y,x.ref,$),[_,K]=c.useState(!1),C=at(),z=it({props:o,muiFormControl:C,states:["color","disabled","error","hiddenLabel","size","required","filled"]});z.focused=C?C.focused:_,c.useEffect(()=>{!C&&w&&_&&(K(!1),O&&O())},[C,w,_,O]);const Z=C&&C.onFilled,xe=C&&C.onEmpty,Pe=c.useCallback(ae=>{kt(ae)?Z&&Z():xe&&xe()},[Z,xe]);wt(()=>{Ce&&Pe({value:ue})},[ue,Pe,Ce]);const Ie=ae=>{q&&q(ae),x.onFocus&&x.onFocus(ae),C&&C.onFocus?C.onFocus(ae):K(!0)},Re=ae=>{O&&O(ae),x.onBlur&&x.onBlur(ae),C&&C.onBlur?C.onBlur(ae):K(!1)},Se=(ae,...Oe)=>{if(!Ce){const qe=ae.target||te.current;if(qe==null)throw new Error(go(1));Pe({value:qe.value})}x.onChange&&x.onChange(ae,...Oe),H&&H(ae,...Oe)};c.useEffect(()=>{Pe(te.current)},[]);const De=ae=>{te.current&&ae.currentTarget===ae.target&&te.current.focus(),B&&B(ae)};let Me=j,R=x;D&&Me==="input"&&(T?R={type:void 0,minRows:T,maxRows:T,...R}:R={type:void 0,maxRows:S,minRows:P,...R},Me=bi);const M=ae=>{Pe(ae.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};c.useEffect(()=>{C&&C.setAdornedStart(!!G)},[C,G]);const le={...o,color:z.color||"primary",disabled:z.disabled,endAdornment:u,error:z.error,focused:z.focused,formControl:C,fullWidth:b,hiddenLabel:z.hiddenLabel,multiline:D,size:z.size,startAdornment:G,type:X},me=ki(le),je=J.root||m.Root||Tt,Ae=ne.root||v.root||{},Ee=J.input||m.Input||Dt;return R={...R,...ne.input??v.input},i.jsxs(c.Fragment,{children:[!f&&typeof An=="function"&&(Dn||(Dn=i.jsx(An,{}))),i.jsxs(je,{...Ae,ref:n,onClick:De,...ce,...!Ut(je)&&{ownerState:{...le,...Ae.ownerState}},className:de(me.root,Ae.className,l,V&&"MuiInputBase-readOnly"),children:[G,i.jsx(pn.Provider,{value:null,children:i.jsx(Ee,{"aria-invalid":z.error,"aria-describedby":a,autoComplete:r,autoFocus:s,defaultValue:h,disabled:z.disabled,id:g,onAnimationStart:M,name:A,placeholder:I,readOnly:V,required:z.required,rows:T,value:ue,onKeyDown:F,onKeyUp:E,type:X,...R,...!Ut(Ee)&&{as:Me,ownerState:{...le,...R.ownerState}},ref:U,className:de(me.input,R.className,V&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Se,onFocus:Ie})}),u,ee?ee({...z,startAdornment:G}):null]})]})});function Ci(e){return be("MuiInput",e)}const rt={...nt,...he("MuiInput",["root","underline","input"])};function ji(e){return be("MuiOutlinedInput",e)}const Ne={...nt,...he("MuiOutlinedInput",["root","notchedOutline","input"])};function Si(e){return be("MuiFilledInput",e)}const Ke={...nt,...he("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},Ri=Fe(i.jsx("path",{d:"M7 10l5 5 5-5z"})),Pi={entering:{opacity:1},entered:{opacity:1}},Zt=c.forwardRef(function(t,n){const o=cn(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:r,appear:s=!0,children:l,easing:p,in:m,onEnter:v,onEntered:h,onEntering:w,onExit:f,onExited:u,onExiting:k,style:b,timeout:g=a,TransitionComponent:j=ii,...x}=t,y=c.useRef(null),d=Be(y,Et(l),n),S=F=>E=>{if(F){const I=y.current;E===void 0?F(I):F(I,E)}},P=S(w),D=S((F,E)=>{ai(F);const I=Cn({style:b,timeout:g,easing:p},{mode:"enter"});F.style.webkitTransition=o.transitions.create("opacity",I),F.style.transition=o.transitions.create("opacity",I),v&&v(F,E)}),A=S(h),O=S(k),H=S(F=>{const E=Cn({style:b,timeout:g,easing:p},{mode:"exit"});F.style.webkitTransition=o.transitions.create("opacity",E),F.style.transition=o.transitions.create("opacity",E),f&&f(F)}),B=S(u),q=F=>{r&&r(y.current,F)};return i.jsx(j,{appear:s,in:m,nodeRef:y,onEnter:D,onEntered:A,onEntering:P,onExit:H,onExited:B,onExiting:O,addEndListener:q,timeout:g,...x,children:(F,{ownerState:E,...I})=>c.cloneElement(l,{style:{opacity:0,visibility:F==="exited"&&!m?"hidden":void 0,...Pi[F],...b,...l.props.style},ref:d,...I})})});function Ei(e){return be("MuiBackdrop",e)}he("MuiBackdrop",["root","invisible"]);const Fi=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},Ei,t)},Ii=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),So=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiBackdrop"}),{children:a,className:r,component:s="div",invisible:l=!1,open:p,components:m={},componentsProps:v={},slotProps:h={},slots:w={},TransitionComponent:f,transitionDuration:u,...k}=o,b={...o,component:s,invisible:l},g=Fi(b),j={transition:f,root:m.Root,...w},x={...v,...h},y={component:s,slots:j,slotProps:x},[d,S]=pe("root",{elementType:Ii,externalForwardedProps:y,className:de(g.root,r),ownerState:b}),[P,D]=pe("transition",{elementType:Zt,externalForwardedProps:y,ownerState:b});return i.jsx(P,{in:p,timeout:u,...k,...D,children:i.jsx(d,{"aria-hidden":!0,...S,classes:g,ref:n,children:a})})});function zn(e){return e.substring(2).toLowerCase()}function Ti(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Di(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:r="onTouchEnd"}=e,s=c.useRef(!1),l=c.useRef(null),p=c.useRef(!1),m=c.useRef(!1);c.useEffect(()=>(setTimeout(()=>{p.current=!0},0),()=>{p.current=!1}),[]);const v=Be(Et(t),l),h=tt(u=>{const k=m.current;m.current=!1;const b=Te(l.current);if(!p.current||!l.current||"clientX"in u&&Ti(u,b))return;if(s.current){s.current=!1;return}let g;u.composedPath?g=u.composedPath().includes(l.current):g=!b.documentElement.contains(u.target)||l.current.contains(u.target),!g&&(n||!k)&&a(u)}),w=u=>k=>{m.current=!0;const b=t.props[u];b&&b(k)},f={ref:v};return r!==!1&&(f[r]=w(r)),c.useEffect(()=>{if(r!==!1){const u=zn(r),k=Te(l.current),b=()=>{s.current=!0};return k.addEventListener(u,h),k.addEventListener("touchmove",b),()=>{k.removeEventListener(u,h),k.removeEventListener("touchmove",b)}}},[h,r]),o!==!1&&(f[o]=w(o)),c.useEffect(()=>{if(o!==!1){const u=zn(o),k=Te(l.current);return k.addEventListener(u,h),()=>{k.removeEventListener(u,h)}}},[h,o]),c.cloneElement(t,f)}function Ro(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Ai(e){const t=Te(e);return t.body===e?We(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function pt(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mn(e){return parseInt(We(e).getComputedStyle(e).paddingRight,10)||0}function zi(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function On(e,t,n,o,a){const r=[t,n,...o];[].forEach.call(e.children,s=>{const l=!r.includes(s),p=!zi(s);l&&p&&pt(s,a)})}function $t(e,t){let n=-1;return e.some((o,a)=>t(o)?(n=a,!0):!1),n}function Mi(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(Ai(o)){const s=Ro(We(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Mn(o)+s}px`;const l=Te(o).querySelectorAll(".mui-fixed");[].forEach.call(l,p=>{n.push({value:p.style.paddingRight,property:"padding-right",el:p}),p.style.paddingRight=`${Mn(p)+s}px`})}let r;if(o.parentNode instanceof DocumentFragment)r=Te(o).body;else{const s=o.parentElement,l=We(o);r=s?.nodeName==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:o}n.push({value:r.style.overflow,property:"overflow",el:r},{value:r.style.overflowX,property:"overflow-x",el:r},{value:r.style.overflowY,property:"overflow-y",el:r}),r.style.overflow="hidden"}return()=>{n.forEach(({value:r,el:s,property:l})=>{r?s.style.setProperty(l,r):s.style.removeProperty(l)})}}function Oi(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Li{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&pt(t.modalRef,!1);const a=Oi(n);On(n,t.mount,t.modalRef,a,!0);const r=$t(this.containers,s=>s.container===n);return r!==-1?(this.containers[r].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),o)}mount(t,n){const o=$t(this.containers,r=>r.modals.includes(t)),a=this.containers[o];a.restore||(a.restore=Mi(a,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const a=$t(this.containers,s=>s.modals.includes(t)),r=this.containers[a];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(o,1),r.modals.length===0)r.restore&&r.restore(),t.modalRef&&pt(t.modalRef,n),On(r.container,t.mount,t.modalRef,r.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=r.modals[r.modals.length-1];s.modalRef&&pt(s.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const Ni=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function $i(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Wi(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Hi(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Wi(e))}function Bi(e){const t=[],n=[];return Array.from(e.querySelectorAll(Ni)).forEach((o,a)=>{const r=$i(o);r===-1||!Hi(o)||(r===0?t.push(o):n.push({documentOrder:a,tabIndex:r,node:o}))}),n.sort((o,a)=>o.tabIndex===a.tabIndex?o.documentOrder-a.documentOrder:o.tabIndex-a.tabIndex).map(o=>o.node).concat(t)}function qi(){return!0}function Ui(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:a=!1,getTabbable:r=Bi,isEnabled:s=qi,open:l}=e,p=c.useRef(!1),m=c.useRef(null),v=c.useRef(null),h=c.useRef(null),w=c.useRef(null),f=c.useRef(!1),u=c.useRef(null),k=Be(Et(t),u),b=c.useRef(null);c.useEffect(()=>{!l||!u.current||(f.current=!n)},[n,l]),c.useEffect(()=>{if(!l||!u.current)return;const x=Te(u.current);return u.current.contains(x.activeElement)||(u.current.hasAttribute("tabIndex")||u.current.setAttribute("tabIndex","-1"),f.current&&u.current.focus()),()=>{a||(h.current&&h.current.focus&&(p.current=!0,h.current.focus()),h.current=null)}},[l]),c.useEffect(()=>{if(!l||!u.current)return;const x=Te(u.current),y=P=>{b.current=P,!(o||!s()||P.key!=="Tab")&&x.activeElement===u.current&&P.shiftKey&&(p.current=!0,v.current&&v.current.focus())},d=()=>{const P=u.current;if(P===null)return;if(!x.hasFocus()||!s()||p.current){p.current=!1;return}if(P.contains(x.activeElement)||o&&x.activeElement!==m.current&&x.activeElement!==v.current)return;if(x.activeElement!==w.current)w.current=null;else if(w.current!==null)return;if(!f.current)return;let D=[];if((x.activeElement===m.current||x.activeElement===v.current)&&(D=r(u.current)),D.length>0){const A=!!(b.current?.shiftKey&&b.current?.key==="Tab"),O=D[0],H=D[D.length-1];typeof O!="string"&&typeof H!="string"&&(A?H.focus():O.focus())}else P.focus()};x.addEventListener("focusin",d),x.addEventListener("keydown",y,!0);const S=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&d()},50);return()=>{clearInterval(S),x.removeEventListener("focusin",d),x.removeEventListener("keydown",y,!0)}},[n,o,a,s,l,r]);const g=x=>{h.current===null&&(h.current=x.relatedTarget),f.current=!0,w.current=x.target;const y=t.props.onFocus;y&&y(x)},j=x=>{h.current===null&&(h.current=x.relatedTarget),f.current=!0};return i.jsxs(c.Fragment,{children:[i.jsx("div",{tabIndex:l?0:-1,onFocus:j,ref:m,"data-testid":"sentinelStart"}),c.cloneElement(t,{ref:k,onFocus:g}),i.jsx("div",{tabIndex:l?0:-1,onFocus:j,ref:v,"data-testid":"sentinelEnd"})]})}function _i(e){return typeof e=="function"?e():e}function Ki(e){return e?e.props.hasOwnProperty("in"):!1}const Ln=()=>{},xt=new Li;function Vi(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:a=!1,onTransitionEnter:r,onTransitionExited:s,children:l,onClose:p,open:m,rootRef:v}=e,h=c.useRef({}),w=c.useRef(null),f=c.useRef(null),u=Be(f,v),[k,b]=c.useState(!m),g=Ki(l);let j=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(j=!1);const x=()=>Te(w.current),y=()=>(h.current.modalRef=f.current,h.current.mount=w.current,h.current),d=()=>{xt.mount(y(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},S=tt(()=>{const E=_i(t)||x().body;xt.add(y(),E),f.current&&d()}),P=()=>xt.isTopModal(y()),D=tt(E=>{w.current=E,E&&(m&&P()?d():f.current&&pt(f.current,j))}),A=c.useCallback(()=>{xt.remove(y(),j)},[j]);c.useEffect(()=>()=>{A()},[A]),c.useEffect(()=>{m?S():(!g||!a)&&A()},[m,A,g,a,S]);const O=E=>I=>{E.onKeyDown?.(I),!(I.key!=="Escape"||I.which===229||!P())&&(n||(I.stopPropagation(),p&&p(I,"escapeKeyDown")))},H=E=>I=>{E.onClick?.(I),I.target===I.currentTarget&&p&&p(I,"backdropClick")};return{getRootProps:(E={})=>{const I=_t(e);delete I.onTransitionEnter,delete I.onTransitionExited;const V={...I,...E};return{role:"presentation",...V,onKeyDown:O(V),ref:u}},getBackdropProps:(E={})=>{const I=E;return{"aria-hidden":!0,...I,onClick:H(I),open:m}},getTransitionProps:()=>{const E=()=>{b(!1),r&&r()},I=()=>{b(!0),s&&s(),a&&A()};return{onEnter:Fn(E,l?.props.onEnter??Ln),onExited:Fn(I,l?.props.onExited??Ln)}},rootRef:u,portalRef:D,isTopModal:P,exited:k,hasTransition:g}}function Gi(e){return be("MuiModal",e)}he("MuiModal",["root","hidden","backdrop"]);const Xi=e=>{const{open:t,exited:n,classes:o}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Gi,o)},Yi=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ke(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),Ji=W(So,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Po=c.forwardRef(function(t,n){const o=ye({name:"MuiModal",props:t}),{BackdropComponent:a=Ji,BackdropProps:r,classes:s,className:l,closeAfterTransition:p=!1,children:m,container:v,component:h,components:w={},componentsProps:f={},disableAutoFocus:u=!1,disableEnforceFocus:k=!1,disableEscapeKeyDown:b=!1,disablePortal:g=!1,disableRestoreFocus:j=!1,disableScrollLock:x=!1,hideBackdrop:y=!1,keepMounted:d=!1,onClose:S,onTransitionEnter:P,onTransitionExited:D,open:A,slotProps:O={},slots:H={},theme:B,...q}=o,F={...o,closeAfterTransition:p,disableAutoFocus:u,disableEnforceFocus:k,disableEscapeKeyDown:b,disablePortal:g,disableRestoreFocus:j,disableScrollLock:x,hideBackdrop:y,keepMounted:d},{getRootProps:E,getBackdropProps:I,getTransitionProps:V,portalRef:ee,isTopModal:T,exited:Q,hasTransition:ne}=Vi({...F,rootRef:n}),J={...F,exited:Q},G=Xi(J),X={};if(m.props.tabIndex===void 0&&(X.tabIndex="-1"),ne){const{onEnter:$,onExited:U}=V();X.onEnter=$,X.onExited=U}const oe={slots:{root:w.Root,backdrop:w.Backdrop,...H},slotProps:{...f,...O}},[ce,ue]=pe("root",{ref:n,elementType:Yi,externalForwardedProps:{...oe,...q,component:h},getSlotProps:E,ownerState:J,className:de(l,G?.root,!J.open&&J.exited&&G?.hidden)}),[Ce,te]=pe("backdrop",{ref:r?.ref,elementType:a,externalForwardedProps:oe,shouldForwardComponentProp:!0,additionalProps:r,getSlotProps:$=>I({...$,onClick:U=>{$?.onClick&&$.onClick(U)}}),className:de(r?.className,G?.backdrop),ownerState:J});return!d&&!A&&(!ne||Q)?null:i.jsx(ri,{ref:ee,container:v,disablePortal:g,children:i.jsxs(ce,{...ue,children:[!y&&a?i.jsx(Ce,{...te}):null,i.jsx(Ui,{disableEnforceFocus:k,disableAutoFocus:u,disableRestoreFocus:j,isEnabled:T,open:A,children:c.cloneElement(m,X)})]})})});function Zi(e){return be("MuiDialog",e)}const Wt=he("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Eo=c.createContext({}),Qi=W(So,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),ea=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:a,fullScreen:r}=e,s={root:["root"],container:["container",`scroll${fe(n)}`],paper:["paper",`paperScroll${fe(n)}`,`paperWidth${fe(String(o))}`,a&&"paperFullWidth",r&&"paperFullScreen"]};return ve(s,Zi,t)},ta=W(Po,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),na=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${fe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),oa=W(mt,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${fe(n.scroll)}`],t[`paperWidth${fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ke(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Wt.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Wt.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Je=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialog"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,"aria-modal":p=!0,BackdropComponent:m,BackdropProps:v,children:h,className:w,disableEscapeKeyDown:f=!1,fullScreen:u=!1,fullWidth:k=!1,maxWidth:b="sm",onClick:g,onClose:j,open:x,PaperComponent:y=mt,PaperProps:d={},scroll:S="paper",slots:P={},slotProps:D={},TransitionComponent:A=Zt,transitionDuration:O=r,TransitionProps:H,...B}=o,q={...o,disableEscapeKeyDown:f,fullScreen:u,fullWidth:k,maxWidth:b,scroll:S},F=ea(q),E=c.useRef(),I=K=>{E.current=K.target===K.currentTarget},V=K=>{g&&g(K),E.current&&(E.current=null,j&&j(K,"backdropClick"))},ee=sn(l),T=c.useMemo(()=>({titleId:ee}),[ee]),Q={transition:A,...P},ne={transition:H,paper:d,backdrop:v,...D},J={slots:Q,slotProps:ne},[G,X]=pe("root",{elementType:ta,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q,className:de(F.root,w),ref:n}),[oe,ce]=pe("backdrop",{elementType:Qi,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q}),[ue,Ce]=pe("paper",{elementType:oa,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:q,className:de(F.paper,d.className)}),[te,$]=pe("container",{elementType:na,externalForwardedProps:J,ownerState:q,className:F.container}),[U,_]=pe("transition",{elementType:Zt,externalForwardedProps:J,ownerState:q,additionalProps:{appear:!0,in:x,timeout:O,role:"presentation"}});return i.jsx(G,{closeAfterTransition:!0,slots:{backdrop:oe},slotProps:{backdrop:{transitionDuration:O,as:m,...ce}},disableEscapeKeyDown:f,onClose:j,open:x,onClick:V,...X,...B,children:i.jsx(U,{..._,children:i.jsx(te,{onMouseDown:I,...$,children:i.jsx(ue,{as:y,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":ee,"aria-modal":p,...Ce,children:i.jsx(Eo.Provider,{value:T,children:h})})})})})});function ia(e){return be("MuiDialogActions",e)}he("MuiDialogActions",["root","spacing"]);const aa=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},ia,t)},ra=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),Ze=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:r=!1,...s}=o,l={...o,disableSpacing:r},p=aa(l);return i.jsx(ra,{className:de(p.root,a),ownerState:l,ref:n,...s})});function sa(e){return be("MuiDialogContent",e)}he("MuiDialogContent",["root","dividers"]);function la(e){return be("MuiDialogTitle",e)}const ca=he("MuiDialogTitle",["root"]),pa=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},sa,t)},da=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ke(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${ca.root} + &`]:{paddingTop:0}}}]}))),Qe=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogContent"}),{className:a,dividers:r=!1,...s}=o,l={...o,dividers:r},p=pa(l);return i.jsx(da,{className:de(p.root,a),ownerState:l,ref:n,...s})}),ua=e=>{const{classes:t}=e;return ve({root:["root"]},la,t)},ma=W(Y,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),et=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDialogTitle"}),{className:a,id:r,...s}=o,l=o,p=ua(l),{titleId:m=r}=c.useContext(Eo);return i.jsx(ma,{component:"h2",className:de(p.root,a),ownerState:l,ref:n,variant:"h6",id:r??m,...s})});function fa(e){return be("MuiDivider",e)}he("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const va=e=>{const{absolute:t,children:n,classes:o,flexItem:a,light:r,orientation:s,textAlign:l,variant:p}=e;return ve({root:["root",t&&"absolute",p,r&&"light",s==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fa,o)},xa=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ke(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),ga=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ke(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ct=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiDivider"}),{absolute:a=!1,children:r,className:s,orientation:l="horizontal",component:p=r||l==="vertical"?"div":"hr",flexItem:m=!1,light:v=!1,role:h=p!=="hr"?"separator":void 0,textAlign:w="center",variant:f="fullWidth",...u}=o,k={...o,absolute:a,component:p,flexItem:m,light:v,orientation:l,role:h,textAlign:w,variant:f},b=va(k);return i.jsx(xa,{as:p,className:de(b.root,s),role:h,ref:n,ownerState:k,"aria-orientation":h==="separator"&&(p!=="hr"||l==="vertical")?l:void 0,...u,children:r?i.jsx(ga,{className:b.wrapper,ownerState:k,children:r}):null})});Ct&&(Ct.muiSkipListHighlight=!0);const ha=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:a,size:r,hiddenLabel:s,multiline:l}=e,p={root:["root",!n&&"underline",o&&"adornedStart",a&&"adornedEnd",r==="small"&&`size${fe(r)}`,s&&"hiddenLabel",l&&"multiline"],input:["input"]},m=ve(p,Si,t);return{...t,...m}},ba=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ft(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",r=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Ke.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ke.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:r},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ke.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ke.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ke.disabled}, .${Ke.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ke.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:l})=>s.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),ya=W(Dt,{name:"MuiFilledInput",slot:"Input",overridesResolver:It})(ke(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),un=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,hiddenLabel:p,inputComponent:m="input",multiline:v=!1,slotProps:h,slots:w={},type:f="text",...u}=o,k={...o,disableUnderline:a,fullWidth:l,inputComponent:m,multiline:v,type:f},b=ha(o),g={root:{ownerState:k},input:{ownerState:k}},j=h??s?ln(g,h??s):g,x=w.root??r.Root??ba,y=w.input??r.Input??ya;return i.jsx(dn,{slots:{root:x,input:y},slotProps:j,fullWidth:l,inputComponent:m,multiline:v,ref:n,type:f,...u,classes:b})});un.muiName="Input";function wa(e){return be("MuiFormControl",e)}he("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const ka=e=>{const{classes:t,margin:n,fullWidth:o}=e,a={root:["root",n!=="none"&&`margin${fe(n)}`,o&&"fullWidth"]};return ve(a,wa,t)},Ca=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${fe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ja=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormControl"}),{children:a,className:r,color:s="primary",component:l="div",disabled:p=!1,error:m=!1,focused:v,fullWidth:h=!1,hiddenLabel:w=!1,margin:f="none",required:u=!1,size:k="medium",variant:b="outlined",...g}=o,j={...o,color:s,component:l,disabled:p,error:m,fullWidth:h,hiddenLabel:w,margin:f,required:u,size:k,variant:b},x=ka(j),[y,d]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,I=>{if(!Mt(I,["Input","Select"]))return;const V=Mt(I,["Select"])?I.props.input:I;V&&yi(V.props)&&(E=!0)}),E}),[S,P]=c.useState(()=>{let E=!1;return a&&c.Children.forEach(a,I=>{Mt(I,["Input","Select"])&&(kt(I.props,!0)||kt(I.props.inputProps,!0))&&(E=!0)}),E}),[D,A]=c.useState(!1);p&&D&&A(!1);const O=v!==void 0&&!p?v:D;let H;c.useRef(!1);const B=c.useCallback(()=>{P(!0)},[]),q=c.useCallback(()=>{P(!1)},[]),F=c.useMemo(()=>({adornedStart:y,setAdornedStart:d,color:s,disabled:p,error:m,filled:S,focused:O,fullWidth:h,hiddenLabel:w,size:k,onBlur:()=>{A(!1)},onFocus:()=>{A(!0)},onEmpty:q,onFilled:B,registerEffect:H,required:u,variant:b}),[y,s,p,m,S,O,h,w,H,q,B,u,k,b]);return i.jsx(pn.Provider,{value:F,children:i.jsx(Ca,{as:l,ownerState:j,className:de(x.root,r),ref:n,...g,children:a})})});function Sa(e){return be("MuiFormHelperText",e)}const Nn=he("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $n;const Ra=e=>{const{classes:t,contained:n,size:o,disabled:a,error:r,filled:s,focused:l,required:p}=e,m={root:["root",a&&"disabled",r&&"error",o&&`size${fe(o)}`,n&&"contained",l&&"focused",s&&"filled",p&&"required"]};return ve(m,Sa,t)},Pa=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Nn.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nn.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),Ea=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormHelperText"}),{children:a,className:r,component:s="p",disabled:l,error:p,filled:m,focused:v,margin:h,required:w,variant:f,...u}=o,k=at(),b=it({props:o,muiFormControl:k,states:["variant","size","disabled","error","filled","focused","required"]}),g={...o,component:s,contained:b.variant==="filled"||b.variant==="outlined",variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required};delete g.ownerState;const j=Ra(g);return i.jsx(Pa,{as:s,className:de(j.root,r),ref:n,...u,ownerState:g,children:a===" "?$n||($n=i.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});function Fa(e){return be("MuiFormLabel",e)}const dt=he("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ia=e=>{const{classes:t,color:n,focused:o,disabled:a,error:r,filled:s,required:l}=e,p={root:["root",`color${fe(n)}`,a&&"disabled",r&&"error",s&&"filled",o&&"focused",l&&"required"],asterisk:["asterisk",r&&"error"]};return ve(p,Fa,t)},Ta=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(ke(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Pt()).map(([t])=>({props:{color:t},style:{[`&.${dt.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${dt.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${dt.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Da=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(ke(({theme:e})=>({[`&.${dt.error}`]:{color:(e.vars||e).palette.error.main}}))),Aa=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiFormLabel"}),{children:a,className:r,color:s,component:l="label",disabled:p,error:m,filled:v,focused:h,required:w,...f}=o,u=at(),k=it({props:o,muiFormControl:u,states:["color","required","focused","disabled","error","filled"]}),b={...o,color:k.color||"primary",component:l,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required},g=Ia(b);return i.jsxs(Ta,{as:l,ownerState:b,className:de(g.root,r),ref:n,...f,children:[a,k.required&&i.jsxs(Da,{ownerState:b,"aria-hidden":!0,className:g.asterisk,children:["","*"]})]})}),za=e=>{const{classes:t,disableUnderline:n}=e,a=ve({root:["root",!n&&"underline"],input:["input"]},Ci,t);return{...t,...a}},Ma=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ft(e,t),!n.disableUnderline&&t.underline]}})(ke(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rt.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rt.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rt.disabled}, .${rt.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${rt.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Pt()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),Oa=W(Dt,{name:"MuiInput",slot:"Input",overridesResolver:It})({}),mn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:r={},componentsProps:s,fullWidth:l=!1,inputComponent:p="input",multiline:m=!1,slotProps:v,slots:h={},type:w="text",...f}=o,u=za(o),b={root:{ownerState:{disableUnderline:a}}},g=v??s?ln(v??s,b):b,j=h.root??r.Root??Ma,x=h.input??r.Input??Oa;return i.jsx(dn,{slots:{root:j,input:x},slotProps:g,fullWidth:l,inputComponent:p,multiline:m,ref:n,type:w,...f,classes:u})});mn.muiName="Input";function La(e){return be("MuiInputLabel",e)}he("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Na=e=>{const{classes:t,formControl:n,size:o,shrink:a,disableAnimation:r,variant:s,required:l}=e,p={root:["root",n&&"formControl",!r&&"animated",a&&"shrink",o&&o!=="medium"&&`size${fe(o)}`,s],asterisk:[l&&"asterisk"]},m=ve(p,La,t);return{...t,...m}},$a=W(Aa,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${dt.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(ke(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Wa=c.forwardRef(function(t,n){const o=ye({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:r,shrink:s,variant:l,className:p,...m}=o,v=at();let h=s;typeof h>"u"&&v&&(h=v.filled||v.focused||v.adornedStart);const w=it({props:o,muiFormControl:v,states:["size","variant","required","focused"]}),f={...o,disableAnimation:a,formControl:v,shrink:h,size:w.size,variant:w.variant,required:w.required,focused:w.focused},u=Na(f);return i.jsx($a,{"data-shrink":h,ref:n,className:de(u.root,p),...m,ownerState:f,classes:u})});function Ht(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Fo(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function st(e,t,n,o,a,r){let s=!1,l=a(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const p=o?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!Fo(l,r)||p)l=a(e,l,n);else return l.focus(),!0}return!1}const Ha=c.forwardRef(function(t,n){const{actions:o,autoFocus:a=!1,autoFocusItem:r=!1,children:s,className:l,disabledItemsFocusable:p=!1,disableListWrap:m=!1,onKeyDown:v,variant:h="selectedMenu",...w}=t,f=c.useRef(null),u=c.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wt(()=>{a&&f.current.focus()},[a]),c.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(x,{direction:y})=>{const d=!f.current.style.width;if(x.clientHeight<f.current.clientHeight&&d){const S=`${Ro(We(x))}px`;f.current.style[y==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const k=x=>{const y=f.current,d=x.key;if(x.ctrlKey||x.metaKey||x.altKey){v&&v(x);return}const P=Te(y).activeElement;if(d==="ArrowDown")x.preventDefault(),st(y,P,m,p,Ht);else if(d==="ArrowUp")x.preventDefault(),st(y,P,m,p,Wn);else if(d==="Home")x.preventDefault(),st(y,null,m,p,Ht);else if(d==="End")x.preventDefault(),st(y,null,m,p,Wn);else if(d.length===1){const D=u.current,A=d.toLowerCase(),O=performance.now();D.keys.length>0&&(O-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&A!==D.keys[0]&&(D.repeating=!1)),D.lastTime=O,D.keys.push(A);const H=P&&!D.repeating&&Fo(P,D);D.previousKeyMatched&&(H||st(y,P,!1,p,Ht,D))?x.preventDefault():D.previousKeyMatched=!1}v&&v(x)},b=Be(f,n);let g=-1;c.Children.forEach(s,(x,y)=>{if(!c.isValidElement(x)){g===y&&(g+=1,g>=s.length&&(g=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||g===-1)&&(g=y),g===y&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(g+=1,g>=s.length&&(g=-1))});const j=c.Children.map(s,(x,y)=>{if(y===g){const d={};return r&&(d.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(d.tabIndex=0),c.cloneElement(x,d)}return x});return i.jsx(Xt,{role:"menu",ref:b,className:l,onKeyDown:k,tabIndex:a?0:-1,...w,children:j})});function Ba(e){return be("MuiPopover",e)}he("MuiPopover",["root","paper"]);function Hn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Bn(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function qn(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function gt(e){return typeof e=="function"?e():e}const qa=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},Ba,t)},Ua=W(Po,{name:"MuiPopover",slot:"Root"})({}),Io=W(mt,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),_a=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiPopover"}),{action:a,anchorEl:r,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:p="anchorEl",children:m,className:v,container:h,elevation:w=8,marginThreshold:f=16,open:u,PaperProps:k={},slots:b={},slotProps:g={},transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:y="auto",TransitionProps:d={},disableScrollLock:S=!1,...P}=o,D=c.useRef(),A={...o,anchorOrigin:s,anchorReference:p,elevation:w,marginThreshold:f,transformOrigin:j,TransitionComponent:x,transitionDuration:y,TransitionProps:d},O=qa(A),H=c.useCallback(()=>{if(p==="anchorPosition")return l;const $=gt(r),_=($&&$.nodeType===1?$:Te(D.current).body).getBoundingClientRect();return{top:_.top+Hn(_,s.vertical),left:_.left+Bn(_,s.horizontal)}},[r,s.horizontal,s.vertical,l,p]),B=c.useCallback($=>({vertical:Hn($,j.vertical),horizontal:Bn($,j.horizontal)}),[j.horizontal,j.vertical]),q=c.useCallback($=>{const U={width:$.offsetWidth,height:$.offsetHeight},_=B(U);if(p==="none")return{top:null,left:null,transformOrigin:qn(_)};const K=H();let C=K.top-_.vertical,z=K.left-_.horizontal;const Z=C+U.height,xe=z+U.width,Pe=We(gt(r)),Ie=Pe.innerHeight-f,Re=Pe.innerWidth-f;if(f!==null&&C<f){const Se=C-f;C-=Se,_.vertical+=Se}else if(f!==null&&Z>Ie){const Se=Z-Ie;C-=Se,_.vertical+=Se}if(f!==null&&z<f){const Se=z-f;z-=Se,_.horizontal+=Se}else if(xe>Re){const Se=xe-Re;z-=Se,_.horizontal+=Se}return{top:`${Math.round(C)}px`,left:`${Math.round(z)}px`,transformOrigin:qn(_)}},[r,p,H,B,f]),[F,E]=c.useState(u),I=c.useCallback(()=>{const $=D.current;if(!$)return;const U=q($);U.top!==null&&$.style.setProperty("top",U.top),U.left!==null&&($.style.left=U.left),$.style.transformOrigin=U.transformOrigin,E(!0)},[q]);c.useEffect(()=>(S&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[r,S,I]);const V=()=>{I()},ee=()=>{E(!1)};c.useEffect(()=>{u&&I()}),c.useImperativeHandle(a,()=>u?{updatePosition:()=>{I()}}:null,[u,I]),c.useEffect(()=>{if(!u)return;const $=ko(()=>{I()}),U=We(gt(r));return U.addEventListener("resize",$),()=>{$.clear(),U.removeEventListener("resize",$)}},[r,u,I]);let T=y;const Q={slots:{transition:x,...b},slotProps:{transition:d,paper:k,...g}},[ne,J]=pe("transition",{elementType:Co,externalForwardedProps:Q,ownerState:A,getSlotProps:$=>({...$,onEntering:(U,_)=>{$.onEntering?.(U,_),V()},onExited:U=>{$.onExited?.(U),ee()}}),additionalProps:{appear:!0,in:u}});y==="auto"&&!ne.muiSupportAuto&&(T=void 0);const G=h||(r?Te(gt(r)).body:void 0),[X,{slots:oe,slotProps:ce,...ue}]=pe("root",{ref:n,elementType:Ua,externalForwardedProps:{...Q,...P},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:b.backdrop},slotProps:{backdrop:xi(typeof g.backdrop=="function"?g.backdrop(A):g.backdrop,{invisible:!0})},container:G,open:u},ownerState:A,className:de(O.root,v)}),[Ce,te]=pe("paper",{ref:D,className:O.paper,elementType:Io,externalForwardedProps:Q,shouldForwardComponentProp:!0,additionalProps:{elevation:w,style:F?void 0:{opacity:0}},ownerState:A});return i.jsx(X,{...ue,...!Ut(X)&&{slots:oe,slotProps:ce,disableScrollLock:S},children:i.jsx(ne,{...J,timeout:T,children:i.jsx(Ce,{...te,children:m})})})});function Ka(e){return be("MuiMenu",e)}he("MuiMenu",["root","paper","list"]);const Va={vertical:"top",horizontal:"right"},Ga={vertical:"top",horizontal:"left"},Xa=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},Ka,t)},Ya=W(_a,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Ja=W(Io,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Za=W(Ha,{name:"MuiMenu",slot:"List"})({outline:0}),Qa=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:r,className:s,disableAutoFocusItem:l=!1,MenuListProps:p={},onClose:m,open:v,PaperProps:h={},PopoverClasses:w,transitionDuration:f="auto",TransitionProps:{onEntering:u,...k}={},variant:b="selectedMenu",slots:g={},slotProps:j={},...x}=o,y=Go(),d={...o,autoFocus:a,disableAutoFocusItem:l,MenuListProps:p,onEntering:u,PaperProps:h,transitionDuration:f,TransitionProps:k,variant:b},S=Xa(d),P=a&&!l&&v,D=c.useRef(null),A=(T,Q)=>{D.current&&D.current.adjustStyleForScrollbar(T,{direction:y?"rtl":"ltr"}),u&&u(T,Q)},O=T=>{T.key==="Tab"&&(T.preventDefault(),m&&m(T,"tabKeyDown"))};let H=-1;c.Children.map(r,(T,Q)=>{c.isValidElement(T)&&(T.props.disabled||(b==="selectedMenu"&&T.props.selected||H===-1)&&(H=Q))});const B={slots:g,slotProps:{list:p,transition:k,paper:h,...j}},q=ti({elementType:g.root,externalSlotProps:j.root,ownerState:d,className:[S.root,s]}),[F,E]=pe("paper",{className:S.paper,elementType:Ja,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:d}),[I,V]=pe("list",{className:de(S.list,p.className),elementType:Za,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:T=>({...T,onKeyDown:Q=>{O(Q),T.onKeyDown?.(Q)}}),ownerState:d}),ee=typeof B.slotProps.transition=="function"?B.slotProps.transition(d):B.slotProps.transition;return i.jsx(Ya,{onClose:m,anchorOrigin:{vertical:"bottom",horizontal:y?"right":"left"},transformOrigin:y?Va:Ga,slots:{root:g.root,paper:F,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:q,paper:E,backdrop:typeof j.backdrop=="function"?j.backdrop(d):j.backdrop,transition:{...ee,onEntering:(...T)=>{A(...T),ee?.onEntering?.(...T)}}},open:v,ref:n,transitionDuration:f,ownerState:d,...x,classes:w,children:i.jsx(I,{actions:D,autoFocus:a&&(H===-1||l),autoFocusItem:P,variant:b,...V,children:r})})});function er(e){return be("MuiNativeSelect",e)}const fn=he("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),tr=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:s}=e,l={select:["select",n,o&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",o&&"disabled"]};return ve(l,er,t)},To=W("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${fn.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),nr=W(To,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:He,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${fn.multiple}`]:t.multiple}]}})({}),Do=W("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${fn.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),or=W(Do,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),ir=c.forwardRef(function(t,n){const{className:o,disabled:a,error:r,IconComponent:s,inputRef:l,variant:p="standard",...m}=t,v={...t,disabled:a,variant:p,error:r},h=tr(v);return i.jsxs(c.Fragment,{children:[i.jsx(nr,{ownerState:v,className:de(h.select,o),disabled:a,ref:l||n,...m}),t.multiple?null:i.jsx(or,{as:s,ownerState:v,className:h.icon})]})});var Un;const ar=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:He})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),rr=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:He})(ke(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function sr(e){const{children:t,classes:n,className:o,label:a,notched:r,...s}=e,l=a!=null&&a!=="",p={...e,notched:r,withLabel:l};return i.jsx(ar,{"aria-hidden":!0,className:o,ownerState:p,...s,children:i.jsx(rr,{ownerState:p,children:l?i.jsx("span",{children:a}):Un||(Un=i.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}const lr=e=>{const{classes:t}=e,o=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ji,t);return{...t,...o}},cr=W(Tt,{shouldForwardProp:e=>He(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ft})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ne.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Pt()).map(([n])=>({props:{color:n},style:{[`&.${Ne.focused} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ne.error} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ne.disabled} .${Ne.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),pr=W(sr,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),dr=W(Dt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:It})(ke(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),vn=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:r=!1,inputComponent:s="input",label:l,multiline:p=!1,notched:m,slots:v={},slotProps:h={},type:w="text",...f}=o,u=lr(o),k=at(),b=it({props:o,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...o,color:b.color||"primary",disabled:b.disabled,error:b.error,focused:b.focused,formControl:k,fullWidth:r,hiddenLabel:b.hiddenLabel,multiline:p,size:b.size,type:w},j=v.root??a.Root??cr,x=v.input??a.Input??dr,[y,d]=pe("notchedOutline",{elementType:pr,className:u.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:v,slotProps:h},additionalProps:{label:l!=null&&l!==""&&b.required?i.jsxs(c.Fragment,{children:[l,"","*"]}):l}});return i.jsx(dn,{slots:{root:j,input:x},slotProps:h,renderSuffix:S=>i.jsx(y,{...d,notched:typeof m<"u"?m:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:r,inputComponent:s,multiline:p,ref:n,type:w,...f,classes:{...u,notchedOutline:null}})});vn.muiName="Input";function Ao(e){return be("MuiSelect",e)}const lt=he("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _n;const ur=W(To,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lt.select}`]:t.select},{[`&.${lt.select}`]:t[n.variant]},{[`&.${lt.error}`]:t.error},{[`&.${lt.multiple}`]:t.multiple}]}})({[`&.${lt.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mr=W(Do,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${fe(n.variant)}`],n.open&&t.iconOpen]}})({}),fr=W("input",{shouldForwardProp:e=>Xo(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Kn(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vr(e){return e==null||typeof e=="string"&&!e.trim()}const xr=e=>{const{classes:t,variant:n,disabled:o,multiple:a,open:r,error:s}=e,l={select:["select",n,o&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${fe(n)}`,r&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ve(l,Ao,t)},gr=c.forwardRef(function(t,n){const{"aria-describedby":o,"aria-label":a,autoFocus:r,autoWidth:s,children:l,className:p,defaultOpen:m,defaultValue:v,disabled:h,displayEmpty:w,error:f=!1,IconComponent:u,inputRef:k,labelId:b,MenuProps:g={},multiple:j,name:x,onBlur:y,onChange:d,onClose:S,onFocus:P,onOpen:D,open:A,readOnly:O,renderValue:H,required:B,SelectDisplayProps:q={},tabIndex:F,type:E,value:I,variant:V="standard",...ee}=t,[T,Q]=jn({controlled:I,default:v,name:"Select"}),[ne,J]=jn({controlled:A,default:m,name:"Select"}),G=c.useRef(null),X=c.useRef(null),[oe,ce]=c.useState(null),{current:ue}=c.useRef(A!=null),[Ce,te]=c.useState(),$=Be(n,k),U=c.useCallback(L=>{X.current=L,L&&ce(L)},[]),_=oe?.parentNode;c.useImperativeHandle($,()=>({focus:()=>{X.current.focus()},node:G.current,value:T}),[T]),c.useEffect(()=>{m&&ne&&oe&&!ue&&(te(s?null:_.clientWidth),X.current.focus())},[oe,s]),c.useEffect(()=>{r&&X.current.focus()},[r]),c.useEffect(()=>{if(!b)return;const L=Te(X.current).getElementById(b);if(L){const ie=()=>{getSelection().isCollapsed&&X.current.focus()};return L.addEventListener("click",ie),()=>{L.removeEventListener("click",ie)}}},[b]);const K=(L,ie)=>{L?D&&D(ie):S&&S(ie),ue||(te(s?null:_.clientWidth),J(L))},C=L=>{L.button===0&&(L.preventDefault(),X.current.focus(),K(!0,L))},z=L=>{K(!1,L)},Z=c.Children.toArray(l),xe=L=>{const ie=Z.find(we=>we.props.value===L.target.value);ie!==void 0&&(Q(ie.props.value),d&&d(L,ie))},Pe=L=>ie=>{let we;if(ie.currentTarget.hasAttribute("tabindex")){if(j){we=Array.isArray(T)?T.slice():[];const Le=T.indexOf(L.props.value);Le===-1?we.push(L.props.value):we.splice(Le,1)}else we=L.props.value;if(L.props.onClick&&L.props.onClick(ie),T!==we&&(Q(we),d)){const Le=ie.nativeEvent||ie,ft=new Le.constructor(Le.type,Le);Object.defineProperty(ft,"target",{writable:!0,value:{value:we,name:x}}),d(ft,L)}j||K(!1,ie)}},Ie=L=>{O||[" ","ArrowUp","ArrowDown","Enter"].includes(L.key)&&(L.preventDefault(),K(!0,L))},Re=oe!==null&&ne,Se=L=>{!Re&&y&&(Object.defineProperty(L,"target",{writable:!0,value:{value:T,name:x}}),y(L))};delete ee["aria-invalid"];let De,Me;const R=[];let M=!1;(kt({value:T})||w)&&(H?De=H(T):M=!0);const le=Z.map(L=>{if(!c.isValidElement(L))return null;let ie;if(j){if(!Array.isArray(T))throw new Error(go(2));ie=T.some(we=>Kn(we,L.props.value)),ie&&M&&R.push(L.props.children)}else ie=Kn(T,L.props.value),ie&&M&&(Me=L.props.children);return c.cloneElement(L,{"aria-selected":ie?"true":"false",onClick:Pe(L),onKeyUp:we=>{we.key===" "&&we.preventDefault(),L.props.onKeyUp&&L.props.onKeyUp(we)},role:"option",selected:ie,value:void 0,"data-value":L.props.value})});M&&(j?R.length===0?De=null:De=R.reduce((L,ie,we)=>(L.push(ie),we<R.length-1&&L.push(", "),L),[]):De=Me);let me=Ce;!s&&ue&&oe&&(me=_.clientWidth);let je;typeof F<"u"?je=F:je=h?null:0;const Ae=q.id||(x?`mui-component-select-${x}`:void 0),Ee={...t,variant:V,value:T,open:Re,error:f},ae=xr(Ee),Oe={...g.PaperProps,...typeof g.slotProps?.paper=="function"?g.slotProps.paper(Ee):g.slotProps?.paper},qe={...g.MenuListProps,...typeof g.slotProps?.list=="function"?g.slotProps.list(Ee):g.slotProps?.list},_e=sn();return i.jsxs(c.Fragment,{children:[i.jsx(ur,{as:"div",ref:U,tabIndex:je,role:"combobox","aria-controls":Re?_e:void 0,"aria-disabled":h?"true":void 0,"aria-expanded":Re?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[b,Ae].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":B?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Ie,onMouseDown:h||O?null:C,onBlur:Se,onFocus:P,...q,ownerState:Ee,className:de(q.className,ae.select,p),id:Ae,children:vr(De)?_n||(_n=i.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):De}),i.jsx(fr,{"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:G,"aria-hidden":!0,onChange:xe,tabIndex:-1,disabled:h,className:ae.nativeInput,autoFocus:r,required:B,...ee,ownerState:Ee}),i.jsx(mr,{as:u,className:ae.icon,ownerState:Ee}),i.jsx(Qa,{id:`menu-${x||""}`,anchorEl:_,open:Re,onClose:z,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":b,role:"listbox","aria-multiselectable":j?"true":void 0,disableListWrap:!0,id:_e,...qe},paper:{...Oe,style:{minWidth:me,...Oe!=null?Oe.style:null}}},children:le})]})}),hr=e=>{const{classes:t}=e,o=ve({root:["root"]},Ao,t);return{...t,...o}},xn={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>He(e)&&e!=="variant"},br=W(mn,xn)(""),yr=W(vn,xn)(""),wr=W(un,xn)(""),zo=c.forwardRef(function(t,n){const o=ye({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:r,classes:s={},className:l,defaultOpen:p=!1,displayEmpty:m=!1,IconComponent:v=Ri,id:h,input:w,inputProps:f,label:u,labelId:k,MenuProps:b,multiple:g=!1,native:j=!1,onClose:x,onOpen:y,open:d,renderValue:S,SelectDisplayProps:P,variant:D="outlined",...A}=o,O=j?ir:gr,H=at(),B=it({props:o,muiFormControl:H,states:["variant","error"]}),q=B.variant||D,F={...o,variant:q,classes:s},E=hr(F),{root:I,...V}=E,ee=w||{standard:i.jsx(br,{ownerState:F}),outlined:i.jsx(yr,{label:u,ownerState:F}),filled:i.jsx(wr,{ownerState:F})}[q],T=Be(n,Et(ee));return i.jsx(c.Fragment,{children:c.cloneElement(ee,{inputComponent:O,inputProps:{children:r,error:B.error,IconComponent:v,variant:q,type:void 0,multiple:g,...j?{id:h}:{autoWidth:a,defaultOpen:p,displayEmpty:m,labelId:k,MenuProps:b,onClose:x,onOpen:y,open:d,renderValue:S,SelectDisplayProps:{id:h,...P}},...f,classes:f?ln(V,f.classes):V,...w?w.props.inputProps:{}},...(g&&j||m)&&q==="outlined"?{notched:!0}:{},ref:T,className:de(ee.props.className,l,E.root),...!w&&{variant:q},...A})})});zo.muiName="Select";function kr(e){return be("MuiSkeleton",e)}he("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Cr=e=>{const{classes:t,variant:n,animation:o,hasChildren:a,width:r,height:s}=e;return ve({root:["root",n,o,a&&"withChildren",a&&!r&&"fitContent",a&&!s&&"heightAuto"]},kr,t)},Qt=bo`
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`,en=bo`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`,jr=typeof Qt!="string"?ho`
animation: ${Qt} 2s ease-in-out 0.5s infinite;
`:null,Sr=typeof en!="string"?ho`
&::after {
animation: ${en} 2s linear 0.5s infinite;
}
`:null,Rr=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(ke(({theme:e})=>{const t=mi(e.shape.borderRadius)||"px",n=fi(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:e.alpha(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:jr||{animation:`${Qt} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
90deg,
transparent,
${(e.vars||e).palette.action.hover},
transparent
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Sr||{"&::after":{animation:`${en} 2s linear 0.5s infinite`}}}]}})),Ye=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSkeleton"}),{animation:a="pulse",className:r,component:s="span",height:l,style:p,variant:m="text",width:v,...h}=o,w={...o,animation:a,component:s,variant:m,hasChildren:!!h.children},f=Cr(w);return i.jsx(Rr,{as:s,ref:n,className:de(f.root,r),ownerState:w,...h,style:{width:v,height:l,...p}})});function Pr(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:o,open:a,resumeHideDuration:r}=e,s=ni();c.useEffect(()=>{if(!a)return;function g(j){j.defaultPrevented||j.key==="Escape"&&o?.(j,"escapeKeyDown")}return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g)}},[a,o]);const l=tt((g,j)=>{o?.(g,j)}),p=tt(g=>{!o||g==null||s.start(g,()=>{l(null,"timeout")})});c.useEffect(()=>(a&&p(t),s.clear),[a,t,p,s]);const m=g=>{o?.(g,"clickaway")},v=s.clear,h=c.useCallback(()=>{t!=null&&p(r??t*.5)},[t,r,p]),w=g=>j=>{const x=g.onBlur;x?.(j),h()},f=g=>j=>{const x=g.onFocus;x?.(j),v()},u=g=>j=>{const x=g.onMouseEnter;x?.(j),v()},k=g=>j=>{const x=g.onMouseLeave;x?.(j),h()};return c.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",h),window.addEventListener("blur",v),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",v)}},[n,a,h,v]),{getRootProps:(g={})=>{const j={..._t(e),..._t(g)};return{role:"presentation",...g,...j,onBlur:w(j),onFocus:f(j),onMouseEnter:u(j),onMouseLeave:k(j)}},onClickAway:m}}function Er(e){return be("MuiSnackbarContent",e)}he("MuiSnackbarContent",["root","message","action"]);const Fr=e=>{const{classes:t}=e;return ve({root:["root"],action:["action"],message:["message"]},Er,t)},Ir=W(mt,{name:"MuiSnackbarContent",slot:"Root"})(ke(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(bn(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:bn(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),Tr=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),Dr=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Ar=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSnackbarContent"}),{action:a,className:r,message:s,role:l="alert",...p}=o,m=o,v=Fr(m);return i.jsxs(Ir,{role:l,elevation:6,className:de(v.root,r),ownerState:m,ref:n,...p,children:[i.jsx(Tr,{className:v.message,ownerState:m,children:s}),a?i.jsx(Dr,{className:v.action,ownerState:m,children:a}):null]})});function zr(e){return be("MuiSnackbar",e)}he("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const Mr=e=>{const{classes:t,anchorOrigin:n}=e,o={root:["root",`anchorOrigin${fe(n.vertical)}${fe(n.horizontal)}`]};return ve(o,zr,t)},Or=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${fe(n.anchorOrigin.vertical)}${fe(n.anchorOrigin.horizontal)}`]]}})(ke(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Lr=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiSnackbar"}),a=cn(),r={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:p}={vertical:"bottom",horizontal:"left"},autoHideDuration:m=null,children:v,className:h,ClickAwayListenerProps:w,ContentProps:f,disableWindowBlurListener:u=!1,message:k,onBlur:b,onClose:g,onFocus:j,onMouseEnter:x,onMouseLeave:y,open:d,resumeHideDuration:S,slots:P={},slotProps:D={},TransitionComponent:A,transitionDuration:O=r,TransitionProps:{onEnter:H,onExited:B,...q}={},...F}=o,E={...o,anchorOrigin:{vertical:l,horizontal:p},autoHideDuration:m,disableWindowBlurListener:u,TransitionComponent:A,transitionDuration:O},I=Mr(E),{getRootProps:V,onClickAway:ee}=Pr({...E}),[T,Q]=c.useState(!0),ne=K=>{Q(!0),B&&B(K)},J=(K,C)=>{Q(!1),H&&H(K,C)},G={slots:{transition:A,...P},slotProps:{content:f,clickAwayListener:w,transition:q,...D}},[X,oe]=pe("root",{ref:n,className:[I.root,h],elementType:Or,getSlotProps:V,externalForwardedProps:{...G,...F},ownerState:E}),[ce,{ownerState:ue,...Ce}]=pe("clickAwayListener",{elementType:Di,externalForwardedProps:G,getSlotProps:K=>({onClickAway:(...C)=>{const z=C[0];K.onClickAway?.(...C),!z?.defaultMuiPrevented&&ee(...C)}}),ownerState:E}),[te,$]=pe("content",{elementType:Ar,shouldForwardComponentProp:!0,externalForwardedProps:G,additionalProps:{message:k,action:s},ownerState:E}),[U,_]=pe("transition",{elementType:Co,externalForwardedProps:G,getSlotProps:K=>({onEnter:(...C)=>{K.onEnter?.(...C),J(...C)},onExited:(...C)=>{K.onExited?.(...C),ne(...C)}}),additionalProps:{appear:!0,in:d,timeout:O,direction:l==="top"?"down":"up"},ownerState:E});return!d&&T?null:i.jsx(ce,{...Ce,...P.clickAwayListener&&{ownerState:ue},children:i.jsx(X,{...oe,children:i.jsx(U,{..._,children:v||i.jsx(te,{...$})})})})});function Nr(e){return be("MuiTextField",e)}he("MuiTextField",["root"]);const $r={standard:mn,filled:un,outlined:vn},Wr=e=>{const{classes:t}=e;return ve({root:["root"]},Nr,t)},Hr=W(ja,{name:"MuiTextField",slot:"Root"})({}),Ve=c.forwardRef(function(t,n){const o=ye({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:r=!1,children:s,className:l,color:p="primary",defaultValue:m,disabled:v=!1,error:h=!1,FormHelperTextProps:w,fullWidth:f=!1,helperText:u,id:k,InputLabelProps:b,inputProps:g,InputProps:j,inputRef:x,label:y,maxRows:d,minRows:S,multiline:P=!1,name:D,onBlur:A,onChange:O,onFocus:H,placeholder:B,required:q=!1,rows:F,select:E=!1,SelectProps:I,slots:V={},slotProps:ee={},type:T,value:Q,variant:ne="outlined",...J}=o,G={...o,autoFocus:r,color:p,disabled:v,error:h,fullWidth:f,multiline:P,required:q,select:E,variant:ne},X=Wr(G),oe=sn(k),ce=u&&oe?`${oe}-helper-text`:void 0,ue=y&&oe?`${oe}-label`:void 0,Ce=$r[ne],te={slots:V,slotProps:{input:j,inputLabel:b,htmlInput:g,formHelperText:w,select:I,...ee}},$={},U=te.slotProps.inputLabel;ne==="outlined"&&(U&&typeof U.shrink<"u"&&($.notched=U.shrink),$.label=y),E&&((!I||!I.native)&&($.id=void 0),$["aria-describedby"]=void 0);const[_,K]=pe("root",{elementType:Hr,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...J},ownerState:G,className:de(X.root,l),ref:n,additionalProps:{disabled:v,error:h,fullWidth:f,required:q,color:p,variant:ne}}),[C,z]=pe("input",{elementType:Ce,externalForwardedProps:te,additionalProps:$,ownerState:G}),[Z,xe]=pe("inputLabel",{elementType:Wa,externalForwardedProps:te,ownerState:G}),[Pe,Ie]=pe("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:G}),[Re,Se]=pe("formHelperText",{elementType:Ea,externalForwardedProps:te,ownerState:G}),[De,Me]=pe("select",{elementType:zo,externalForwardedProps:te,ownerState:G}),R=i.jsx(C,{"aria-describedby":ce,autoComplete:a,autoFocus:r,defaultValue:m,fullWidth:f,multiline:P,name:D,rows:F,maxRows:d,minRows:S,type:T,value:Q,id:oe,inputRef:x,onBlur:A,onChange:O,onFocus:H,placeholder:B,inputProps:Ie,slots:{input:V.htmlInput?Pe:void 0},...z});return i.jsxs(_,{...K,children:[y!=null&&y!==""&&i.jsx(Z,{htmlFor:oe,id:ue,...xe,children:y}),E?i.jsx(De,{"aria-describedby":ce,id:oe,labelId:ue,value:Q,input:R,...Me,children:s}):R,u&&i.jsx(Re,{id:ce,...Se,children:u})]})});function Br(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qr(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ur(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var Vn=e=>Array.isArray(e)?e:[e];function _r(e){const t=Array.isArray(e[0])?e[0]:e;return Ur(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Kr(e,t){const n=[],{length:o}=e;for(let a=0;a<o;a++)n.push(e[a].apply(null,t));return n}var Vr=class{constructor(e){this.value=e}deref(){return this.value}},Gr=typeof WeakRef<"u"?WeakRef:Vr,Xr=0,Gn=1;function ht(){return{s:Xr,v:void 0,o:null,p:null}}function Mo(e,t={}){let n=ht();const{resultEqualityCheck:o}=t;let a,r=0;function s(){let l=n;const{length:p}=arguments;for(let h=0,w=p;h<w;h++){const f=arguments[h];if(typeof f=="function"||typeof f=="object"&&f!==null){let u=l.o;u===null&&(l.o=u=new WeakMap);const k=u.get(f);k===void 0?(l=ht(),u.set(f,l)):l=k}else{let u=l.p;u===null&&(l.p=u=new Map);const k=u.get(f);k===void 0?(l=ht(),u.set(f,l)):l=k}}const m=l;let v;if(l.s===Gn)v=l.v;else if(v=e.apply(null,arguments),r++,o){const h=a?.deref?.()??a;h!=null&&o(h,v)&&(v=h,r!==0&&r--),a=typeof v=="object"&&v!==null||typeof v=="function"?new Gr(v):v}return m.s=Gn,m.v=v,v}return s.clearCache=()=>{n=ht(),s.resetResultsCount()},s.resultsCount=()=>r,s.resetResultsCount=()=>{r=0},s}function Yr(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...a)=>{let r=0,s=0,l,p={},m=a.pop();typeof m=="object"&&(p=m,m=a.pop()),Br(m,`createSelector expects an output function after the inputs, but received: [${typeof m}]`);const v={...n,...p},{memoize:h,memoizeOptions:w=[],argsMemoize:f=Mo,argsMemoizeOptions:u=[]}=v,k=Vn(w),b=Vn(u),g=_r(a),j=h(function(){return r++,m.apply(null,arguments)},...k),x=f(function(){s++;const d=Kr(g,arguments);return l=j.apply(null,d),l},...b);return Object.assign(x,{resultFunc:m,memoizedResultFunc:j,dependencies:g,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>l,recomputations:()=>r,resetRecomputations:()=>{r=0},memoize:h,argsMemoize:f})};return Object.assign(o,{withTypes:()=>o}),o}var gn=Yr(Mo),Jr=Object.assign((e,t=gn)=>{qr(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),o=n.map(r=>e[r]);return t(o,(...r)=>r.reduce((s,l,p)=>(s[n[p]]=l,s),{}))},{withTypes:()=>Jr});function Xe(e,t,n,o){function a(r){return r instanceof n?r:new n(function(s){s(r)})}return new(n||(n=Promise))(function(r,s){function l(v){try{m(o.next(v))}catch(h){s(h)}}function p(v){try{m(o.throw(v))}catch(h){s(h)}}function m(v){v.done?r(v.value):a(v.value).then(l,p)}m((o=o.apply(e,t||[])).next())})}const Zr=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function ot(e,t,n){const o=Qr(e),{webkitRelativePath:a}=e,r=typeof t=="string"?t:typeof a=="string"&&a.length>0?a:`./${e.name}`;return typeof o.path!="string"&&Xn(o,"path",r),Xn(o,"relativePath",r),o}function Qr(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const o=t.split(".").pop().toLowerCase(),a=Zr.get(o);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}function Xn(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const es=[".DS_Store","Thumbs.db"];function ts(e){return Xe(this,void 0,void 0,function*(){return jt(e)&&ns(e.dataTransfer)?rs(e.dataTransfer,e.type):os(e)?is(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?as(e):[]})}function ns(e){return jt(e)}function os(e){return jt(e)&&jt(e.target)}function jt(e){return typeof e=="object"&&e!==null}function is(e){return tn(e.target.files).map(t=>ot(t))}function as(e){return Xe(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>ot(n))})}function rs(e,t){return Xe(this,void 0,void 0,function*(){if(e.items){const n=tn(e.items).filter(a=>a.kind==="file");if(t!=="drop")return n;const o=yield Promise.all(n.map(ss));return Yn(Oo(o))}return Yn(tn(e.files).map(n=>ot(n)))})}function Yn(e){return e.filter(t=>es.indexOf(t.name)===-1)}function tn(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const o=e[n];t.push(o)}return t}function ss(e){if(typeof e.webkitGetAsEntry!="function")return Jn(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Lo(t):Jn(e,t)}function Oo(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?Oo(n):[n]],[])}function Jn(e,t){return Xe(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const r=yield e.getAsFileSystemHandle();if(r===null)throw new Error(`${e} is not a File`);if(r!==void 0){const s=yield r.getFile();return s.handle=r,ot(s)}}const o=e.getAsFile();if(!o)throw new Error(`${e} is not a File`);return ot(o,(n=t?.fullPath)!==null&&n!==void 0?n:void 0)})}function ls(e){return Xe(this,void 0,void 0,function*(){return e.isDirectory?Lo(e):cs(e)})}function Lo(e){const t=e.createReader();return new Promise((n,o)=>{const a=[];function r(){t.readEntries(s=>Xe(this,void 0,void 0,function*(){if(s.length){const l=Promise.all(s.map(ls));a.push(l),r()}else try{const l=yield Promise.all(a);n(l)}catch(l){o(l)}}),s=>{o(s)})}r()})}function cs(e){return Xe(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(o=>{const a=ot(o,e.fullPath);t(a)},o=>{n(o)})})})}var bt={},Zn;function ps(){return Zn||(Zn=1,bt.__esModule=!0,bt.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var o=e.name||"",a=(e.type||"").toLowerCase(),r=a.replace(/\/.*$/,"");return n.some(function(s){var l=s.trim().toLowerCase();return l.charAt(0)==="."?o.toLowerCase().endsWith(l):l.endsWith("/*")?r===l.replace(/\/.*$/,""):a===l})}return!0}),bt}var ds=ps();const Bt=xo(ds);function Qn(e){return fs(e)||ms(e)||$o(e)||us()}function us(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ms(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fs(e){if(Array.isArray(e))return nn(e)}function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eo(Object(n),!0).forEach(function(o){No(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function No(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){return gs(e)||xs(e,t)||$o(e,t)||vs()}function vs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $o(e,t){if(e){if(typeof e=="string")return nn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nn(e,t)}}function nn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function xs(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],a=!0,r=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(o.push(s.value),!(t&&o.length===t));a=!0);}catch(p){r=!0,l=p}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw l}}return o}}function gs(e){if(Array.isArray(e))return e}var hs=typeof Bt=="function"?Bt:Bt.default,bs="file-invalid-type",ys="file-too-large",ws="file-too-small",ks="too-many-files",Cs=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),o=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:bs,message:"File type must be ".concat(o)}},no=function(t){return{code:ys,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},oo=function(t){return{code:ws,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},js={code:ks,message:"Too many files"};function Wo(e,t){var n=e.type==="application/x-moz-file"||hs(e,t);return[n,n?null:Cs(t)]}function Ho(e,t,n){if(Ge(e.size))if(Ge(t)&&Ge(n)){if(e.size>n)return[!1,no(n)];if(e.size<t)return[!1,oo(t)]}else{if(Ge(t)&&e.size<t)return[!1,oo(t)];if(Ge(n)&&e.size>n)return[!1,no(n)]}return[!0,null]}function Ge(e){return e!=null}function Ss(e){var t=e.files,n=e.accept,o=e.minSize,a=e.maxSize,r=e.multiple,s=e.maxFiles,l=e.validator;return!r&&t.length>1||r&&s>=1&&t.length>s?!1:t.every(function(p){var m=Wo(p,n),v=ut(m,1),h=v[0],w=Ho(p,o,a),f=ut(w,1),u=f[0],k=l?l(p):null;return h&&u&&!k})}function St(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function yt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function io(e){e.preventDefault()}function Rs(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ps(e){return e.indexOf("Edge/")!==-1}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Rs(e)||Ps(e)}function $e(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(o){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return t.some(function(l){return!St(o)&&l&&l.apply(void 0,[o].concat(r)),St(o)})}}function Fs(){return"showOpenFilePicker"in window}function Is(e){if(Ge(e)){var t=Object.entries(e).filter(function(n){var o=ut(n,2),a=o[0],r=o[1],s=!0;return Bo(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(r)||!r.every(qo))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,o){var a=ut(o,2),r=a[0],s=a[1];return to(to({},n),{},No({},r,s))},{});return[{description:"Files",accept:t}]}return e}function Ts(e){if(Ge(e))return Object.entries(e).reduce(function(t,n){var o=ut(n,2),a=o[0],r=o[1];return[].concat(Qn(t),[a],Qn(r))},[]).filter(function(t){return Bo(t)||qo(t)}).join(",")}function Ds(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function As(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Bo(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function qo(e){return/^.*\.[\w]+$/.test(e)}var zs=["children"],Ms=["open"],Os=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ls=["refKey","onChange","onClick"];function Ns(e){return Hs(e)||Ws(e)||Uo(e)||$s()}function $s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ws(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hs(e){if(Array.isArray(e))return on(e)}function qt(e,t){return Us(e)||qs(e,t)||Uo(e,t)||Bs()}function Bs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uo(e,t){if(e){if(typeof e=="string")return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return on(e,t)}}function on(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function qs(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var o=[],a=!0,r=!1,s,l;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(o.push(s.value),!(t&&o.length===t));a=!0);}catch(p){r=!0,l=p}finally{try{!a&&n.return!=null&&n.return()}finally{if(r)throw l}}return o}}function Us(e){if(Array.isArray(e))return e}function ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,o)}return n}function ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ao(Object(n),!0).forEach(function(o){an(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ao(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rt(e,t){if(e==null)return{};var n=_s(e,t),o,a;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function _s(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,r;for(r=0;r<o.length;r++)a=o[r],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var hn=c.forwardRef(function(e,t){var n=e.children,o=Rt(e,zs),a=Ko(o),r=a.open,s=Rt(a,Ms);return c.useImperativeHandle(t,function(){return{open:r}},[r]),Yo.createElement(c.Fragment,null,n(ge(ge({},s),{},{open:r})))});hn.displayName="Dropzone";var _o={disabled:!1,getFilesFromEvent:ts,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};hn.defaultProps=_o;hn.propTypes={children:se.func,accept:se.objectOf(se.arrayOf(se.string)),multiple:se.bool,preventDropOnDocument:se.bool,noClick:se.bool,noKeyboard:se.bool,noDrag:se.bool,noDragEventsBubbling:se.bool,minSize:se.number,maxSize:se.number,maxFiles:se.number,disabled:se.bool,getFilesFromEvent:se.func,onFileDialogCancel:se.func,onFileDialogOpen:se.func,useFsAccessApi:se.bool,autoFocus:se.bool,onDragEnter:se.func,onDragLeave:se.func,onDragOver:se.func,onDrop:se.func,onDropAccepted:se.func,onDropRejected:se.func,onError:se.func,validator:se.func};var rn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ko(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ge(ge({},_o),e),n=t.accept,o=t.disabled,a=t.getFilesFromEvent,r=t.maxSize,s=t.minSize,l=t.multiple,p=t.maxFiles,m=t.onDragEnter,v=t.onDragLeave,h=t.onDragOver,w=t.onDrop,f=t.onDropAccepted,u=t.onDropRejected,k=t.onFileDialogCancel,b=t.onFileDialogOpen,g=t.useFsAccessApi,j=t.autoFocus,x=t.preventDropOnDocument,y=t.noClick,d=t.noKeyboard,S=t.noDrag,P=t.noDragEventsBubbling,D=t.onError,A=t.validator,O=c.useMemo(function(){return Ts(n)},[n]),H=c.useMemo(function(){return Is(n)},[n]),B=c.useMemo(function(){return typeof b=="function"?b:ro},[b]),q=c.useMemo(function(){return typeof k=="function"?k:ro},[k]),F=c.useRef(null),E=c.useRef(null),I=c.useReducer(Ks,rn),V=qt(I,2),ee=V[0],T=V[1],Q=ee.isFocused,ne=ee.isFileDialogActive,J=c.useRef(typeof window<"u"&&window.isSecureContext&&g&&Fs()),G=function(){!J.current&&ne&&setTimeout(function(){if(E.current){var M=E.current.files;M.length||(T({type:"closeDialog"}),q())}},300)};c.useEffect(function(){return window.addEventListener("focus",G,!1),function(){window.removeEventListener("focus",G,!1)}},[E,ne,q,J]);var X=c.useRef([]),oe=function(M){F.current&&F.current.contains(M.target)||(M.preventDefault(),X.current=[])};c.useEffect(function(){return x&&(document.addEventListener("dragover",io,!1),document.addEventListener("drop",oe,!1)),function(){x&&(document.removeEventListener("dragover",io),document.removeEventListener("drop",oe))}},[F,x]),c.useEffect(function(){return!o&&j&&F.current&&F.current.focus(),function(){}},[F,j,o]);var ce=c.useCallback(function(R){D?D(R):console.error(R)},[D]),ue=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R),X.current=[].concat(Ns(X.current),[R.target]),yt(R)&&Promise.resolve(a(R)).then(function(M){if(!(St(R)&&!P)){var le=M.length,me=le>0&&Ss({files:M,accept:O,minSize:s,maxSize:r,multiple:l,maxFiles:p,validator:A}),je=le>0&&!me;T({isDragAccept:me,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),m&&m(R)}}).catch(function(M){return ce(M)})},[a,m,ce,P,O,s,r,l,p,A]),Ce=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R);var M=yt(R);if(M&&R.dataTransfer)try{R.dataTransfer.dropEffect="copy"}catch{}return M&&h&&h(R),!1},[h,P]),te=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R);var M=X.current.filter(function(me){return F.current&&F.current.contains(me)}),le=M.indexOf(R.target);le!==-1&&M.splice(le,1),X.current=M,!(M.length>0)&&(T({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),yt(R)&&v&&v(R))},[F,v,P]),$=c.useCallback(function(R,M){var le=[],me=[];R.forEach(function(je){var Ae=Wo(je,O),Ee=qt(Ae,2),ae=Ee[0],Oe=Ee[1],qe=Ho(je,s,r),_e=qt(qe,2),L=_e[0],ie=_e[1],we=A?A(je):null;if(ae&&L&&!we)le.push(je);else{var Le=[Oe,ie];we&&(Le=Le.concat(we)),me.push({file:je,errors:Le.filter(function(ft){return ft})})}}),(!l&&le.length>1||l&&p>=1&&le.length>p)&&(le.forEach(function(je){me.push({file:je,errors:[js]})}),le.splice(0)),T({acceptedFiles:le,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),w&&w(le,me,M),me.length>0&&u&&u(me,M),le.length>0&&f&&f(le,M)},[T,l,O,s,r,p,w,f,u,A]),U=c.useCallback(function(R){R.preventDefault(),R.persist(),Re(R),X.current=[],yt(R)&&Promise.resolve(a(R)).then(function(M){St(R)&&!P||$(M,R)}).catch(function(M){return ce(M)}),T({type:"reset"})},[a,$,ce,P]),_=c.useCallback(function(){if(J.current){T({type:"openDialog"}),B();var R={multiple:l,types:H};window.showOpenFilePicker(R).then(function(M){return a(M)}).then(function(M){$(M,null),T({type:"closeDialog"})}).catch(function(M){Ds(M)?(q(M),T({type:"closeDialog"})):As(M)?(J.current=!1,E.current?(E.current.value=null,E.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ce(M)});return}E.current&&(T({type:"openDialog"}),B(),E.current.value=null,E.current.click())},[T,B,q,g,$,ce,H,l]),K=c.useCallback(function(R){!F.current||!F.current.isEqualNode(R.target)||(R.key===" "||R.key==="Enter"||R.keyCode===32||R.keyCode===13)&&(R.preventDefault(),_())},[F,_]),C=c.useCallback(function(){T({type:"focus"})},[]),z=c.useCallback(function(){T({type:"blur"})},[]),Z=c.useCallback(function(){y||(Es()?setTimeout(_,0):_())},[y,_]),xe=function(M){return o?null:M},Pe=function(M){return d?null:xe(M)},Ie=function(M){return S?null:xe(M)},Re=function(M){P&&M.stopPropagation()},Se=c.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=R.refKey,le=M===void 0?"ref":M,me=R.role,je=R.onKeyDown,Ae=R.onFocus,Ee=R.onBlur,ae=R.onClick,Oe=R.onDragEnter,qe=R.onDragOver,_e=R.onDragLeave,L=R.onDrop,ie=Rt(R,Os);return ge(ge(an({onKeyDown:Pe($e(je,K)),onFocus:Pe($e(Ae,C)),onBlur:Pe($e(Ee,z)),onClick:xe($e(ae,Z)),onDragEnter:Ie($e(Oe,ue)),onDragOver:Ie($e(qe,Ce)),onDragLeave:Ie($e(_e,te)),onDrop:Ie($e(L,U)),role:typeof me=="string"&&me!==""?me:"presentation"},le,F),!o&&!d?{tabIndex:0}:{}),ie)}},[F,K,C,z,Z,ue,Ce,te,U,d,S,o]),De=c.useCallback(function(R){R.stopPropagation()},[]),Me=c.useMemo(function(){return function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=R.refKey,le=M===void 0?"ref":M,me=R.onChange,je=R.onClick,Ae=Rt(R,Ls),Ee=an({accept:O,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:xe($e(me,U)),onClick:xe($e(je,De)),tabIndex:-1},le,E);return ge(ge({},Ee),Ae)}},[E,n,l,U,o]);return ge(ge({},ee),{},{isFocused:Q&&!o,getRootProps:Se,getInputProps:Me,rootRef:F,inputRef:E,open:xe(_)})}function Ks(e,t){switch(t.type){case"focus":return ge(ge({},e),{},{isFocused:!0});case"blur":return ge(ge({},e),{},{isFocused:!1});case"openDialog":return ge(ge({},rn),{},{isFileDialogActive:!0});case"closeDialog":return ge(ge({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ge(ge({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ge(ge({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return ge({},rn);default:return e}}function ro(){}const so=Fe(i.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),lo=Fe(i.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Vs=Fe(i.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),Gs=Fe(i.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),co=Fe(i.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),po=Fe(i.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),uo=Fe(i.jsx("path",{d:"M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2zm10 14.5V20H8v-3.5l4-4zm-4-5-4-4V4h8v3.5z"})),Xs=Fe(i.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),Ys=Fe(i.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Js=Fe(i.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),mo=Fe(i.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),Zs=Fe(i.jsx("path",{d:"m20.41 8.41-4.83-4.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9.83c0-.53-.21-1.04-.59-1.42M7 7h7v2H7zm10 10H7v-2h10zm0-4H7v-2h10z"})),Qs=Fe(i.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),fo=Fe([i.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"},"0"),i.jsx("path",{d:"M12 10h-2v2H9v-2H7V9h2V7h1v2h2z"},"1")]),vo=Fe(i.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z"})),el=e=>e.document.documents,tl=e=>e.document.pendingFiles,nl=e=>e.document.currentFolderName,ol=e=>e.document.currentFolderHash,il=gn([el],e=>e),al=gn([nl,ol],(e,t)=>e||(t==="7d99a85daf66a0081a0e881630e6b39b"?"Dossier par défaut":"Dossier sans nom")),rl=({document:e,onClose:t})=>{const n=yo(),o=ct(d=>d.document.currentFolderHash),[a,r]=c.useState(null),[s,l]=c.useState(!0),[p,m]=c.useState(null),[v,h]=c.useState(1),[w,f]=c.useState(1),[u,k]=c.useState(0),[b,g]=c.useState(null);c.useEffect(()=>{l(!0),m(null),h(1),f(1);const d=setTimeout(()=>{k(3),l(!1)},1e3);return()=>clearTimeout(d)},[e]),c.useEffect(()=>{let d=!1;return(async()=>{try{const P=await fetch(`/api/cache/${e.id}`,{headers:{Accept:"application/json"}});if(!P.ok)return;const D=await P.json();d||r(D)}catch{}})(),()=>{d=!0}},[e]);const j=()=>{if(e.previewUrl){const d=window.document.createElement("a");d.href=e.previewUrl,d.download=e.name,d.click()}},x=e.mimeType.includes("pdf")||e.name.toLowerCase().endsWith(".pdf"),y=e.mimeType.startsWith("image/")||[".png",".jpg",".jpeg",".gif",".webp"].some(d=>e.name.toLowerCase().endsWith(d));return!x&&y?i.jsxs(Je,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[i.jsx(Y,{variant:"h6",children:e.name}),i.jsx(Kt,{onClick:t,title:"Fermer",children:i.jsx(lo,{})})]})}),i.jsxs(Qe,{dividers:!0,children:[i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[i.jsx(N,{}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(vo,{}),onClick:()=>f(d=>Math.max(d-.2,.2)),children:"Zoom -"}),i.jsxs(Y,{variant:"body2",children:[Math.round(w*100),"%"]}),i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(fo,{}),onClick:()=>f(d=>Math.min(d+.2,4)),children:"Zoom +"})]})]}),i.jsx(N,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"auto",maxHeight:"70vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"grey.50"},children:e.previewUrl?i.jsx("img",{src:e.previewUrl,alt:e.name,style:{maxWidth:`${100*w}%`,maxHeight:`${100*w}%`,objectFit:"contain"},onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement de l'image"),l(!1)}}):i.jsxs(N,{textAlign:"center",p:4,children:[i.jsx(Y,{variant:"h6",gutterBottom:!0,children:"Aperçu image"}),i.jsx(Y,{variant:"body2",color:"text.secondary",children:"Le fichier a été uploadé avec succès."}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:t,children:"Fermer"}),i.jsx(re,{variant:"contained",startIcon:i.jsx(co,{}),onClick:j,disabled:!e.previewUrl,children:"Télécharger"})]})]}):i.jsxs(Je,{open:!0,onClose:t,maxWidth:"lg",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(mo,{color:"error"}),i.jsx(Y,{variant:"h6",children:e.name})]}),i.jsx(Kt,{onClick:t,title:"Fermer",children:i.jsx(lo,{})})]})}),i.jsxs(Qe,{dividers:!0,children:[s&&i.jsxs(N,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:[i.jsx(wo,{}),i.jsx(Y,{variant:"body2",sx:{ml:2},children:"Chargement du PDF..."})]}),p&&i.jsx(Vt,{severity:"error",sx:{mb:2},children:p}),!s&&!p&&i.jsxs(N,{children:[i.jsxs(N,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(Ys,{}),onClick:()=>h(d=>Math.max(d-1,1)),disabled:v<=1,children:"Précédent"}),i.jsxs(Y,{variant:"body2",children:["Page ",v," sur ",u]}),i.jsx(re,{variant:"outlined",size:"small",endIcon:i.jsx(Js,{}),onClick:()=>h(d=>Math.min(d+1,u)),disabled:v>=u,children:"Suivant"})]}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(vo,{}),onClick:()=>f(d=>Math.max(d-.2,.5)),children:"Zoom -"}),i.jsxs(Y,{variant:"body2",children:[Math.round(w*100),"%"]}),i.jsx(re,{variant:"outlined",size:"small",startIcon:i.jsx(fo,{}),onClick:()=>f(d=>Math.min(d+.2,2)),children:"Zoom +"})]})]}),i.jsx(N,{sx:{border:"1px solid",borderColor:"grey.300",borderRadius:1,overflow:"hidden",maxHeight:"70vh",display:"flex",justifyContent:"center",backgroundColor:"grey.50"},children:e.previewUrl?i.jsx(N,{sx:{width:"100%",height:"600px"},children:i.jsx("iframe",{src:`${e.previewUrl}#toolbar=1&navpanes=1&scrollbar=1&page=1&view=FitH`,width:"100%",height:"100%",style:{border:"none",transform:`scale(${w})`,transformOrigin:"top left",width:`${100/w}%`,height:`${600/w}px`},title:`Aperçu de ${e.name}`,onLoad:()=>l(!1),onError:()=>{m("Erreur de chargement du PDF"),l(!1)}})}):i.jsx(N,{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"400px",children:i.jsxs(N,{textAlign:"center",children:[i.jsx(mo,{sx:{fontSize:64,color:"error.main",mb:2}}),i.jsx(Y,{variant:"h6",gutterBottom:!0,children:"Aperçu PDF"}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:['Le fichier PDF "',e.name,'" a été uploadé avec succès.']}),i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Taille: ",(e.size/1024/1024).toFixed(2)," MB"]})]})})}),i.jsxs(N,{sx:{mt:2},children:[i.jsx(Y,{variant:"subtitle1",gutterBottom:!0,children:"Données extraites"}),i.jsxs(N,{sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"1fr 1fr"},gap:2},children:[i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Personnes"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.persons)&&a.extraction.entities.persons.length>0?a.extraction.entities.persons.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx("input",{style:{padding:4},defaultValue:d.firstName,onChange:P=>d.firstName=P.target.value}),i.jsx("input",{style:{padding:4},defaultValue:d.lastName,onChange:P=>d.lastName=P.target.value})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`p-${S}`,onClick:async()=>{if(o)try{g(`p-${S}`),await At(o,e.id,"person",{index:S,id:d.id,patch:{firstName:d.firstName,lastName:d.lastName}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"person",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.persons.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`p-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune personne"})})]}),i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Adresses"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.addresses)&&a.extraction.entities.addresses.length>0?a.extraction.entities.addresses.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx("input",{style:{padding:4,width:220},defaultValue:d.street,onChange:P=>d.street=P.target.value}),i.jsx("input",{style:{padding:4,width:100},defaultValue:d.postalCode,onChange:P=>d.postalCode=P.target.value}),i.jsx("input",{style:{padding:4,width:160},defaultValue:d.city,onChange:P=>d.city=P.target.value}),i.jsx("input",{style:{padding:4,width:120},defaultValue:d.country||"",onChange:P=>d.country=P.target.value})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`a-${S}`,onClick:async()=>{if(o)try{g(`a-${S}`),await At(o,e.id,"address",{index:S,id:d.id,patch:{street:d.street,city:d.city,postalCode:d.postalCode,country:d.country}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"address",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.addresses.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`a-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune adresse"})})]}),i.jsxs(N,{children:[i.jsx(Y,{variant:"subtitle2",children:"Entreprises"}),i.jsx(N,{children:Array.isArray(a?.extraction?.entities?.companies)&&a.extraction.entities.companies.length>0?a.extraction.entities.companies.map((d,S)=>i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{py:.5,gap:1},children:[i.jsx(N,{display:"flex",alignItems:"center",gap:1,children:i.jsx("input",{style:{padding:4,width:260},defaultValue:d.name,onChange:P=>d.name=P.target.value})}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{size:"small",variant:"outlined",disabled:!o||b===`c-${S}`,onClick:async()=>{if(o)try{g(`c-${S}`),await At(o,e.id,"company",{index:S,id:d.id,patch:{name:d.name}}),await n(ze(o)).unwrap()}finally{g(null)}},children:"Enregistrer"}),i.jsx(re,{size:"small",color:"error",onClick:async()=>{if(o)try{await zt(o,e.id,"company",{index:S,id:d.id}),await n(ze(o)).unwrap();const P=JSON.parse(JSON.stringify(a));P.extraction.entities.companies.splice(S,1),r(P)}catch{}},children:"Supprimer"})]})]},`c-${S}`)):i.jsx(Y,{variant:"caption",color:"text.secondary",children:"Aucune entreprise"})})]})]})]})]})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:t,children:"Fermer"}),i.jsx(re,{variant:"contained",startIcon:i.jsx(co,{}),onClick:j,disabled:!e.previewUrl,children:"Télécharger"})]})]})},sl=c.memo(({doc:e,index:t,onPreview:n,onDelete:o,onReplace:a,onConfirmAddress:r,onReview:s,onOpenCorrections:l,isReviewing:p,totalCount:m})=>{const v=f=>f.startsWith("image/")?i.jsx(Xs,{}):f==="application/pdf"?i.jsx(Sn,{}):f.startsWith("text/")?i.jsx(Zs,{}):i.jsx(Sn,{}),h=f=>{switch(f){case"completed":return i.jsx(li,{color:"success"});case"processing":return i.jsx(uo,{color:"warning"});case"error":return i.jsx(si,{color:"error"});default:return i.jsx(uo,{color:"disabled"})}},w=f=>{switch(f){case"completed":return"success";case"processing":return"warning";case"error":return"error";default:return"default"}};return i.jsxs("div",{children:[i.jsxs(Yt,{children:[i.jsx(jo,{children:v(e.mimeType)}),i.jsx(Jt,{primary:i.jsxs(N,{children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:1,mb:1,children:[h(e.status),i.jsx(Y,{variant:"subtitle1",sx:{wordBreak:"break-word",overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",maxWidth:{xs:"200px",sm:"300px",md:"400px"}},children:(()=>{if(e.status==="processing"&&e.name===e.id){const u=["53985cbd461f137c847a13f6a4b82758e5920fb9ccc3ffea9d5d1ac99007e6ce.jpg","aceeb1161004f938d2abf1b88b216ef1ea68fad6141374a66efbdda9d796ac6e.jpg"].find(k=>k.startsWith(e.id));if(u)return u}return e.displayName||e.name})()})]}),i.jsxs(N,{display:"flex",gap:1,flexWrap:"wrap",children:[i.jsx(Ue,{label:e.status,size:"small",color:w(e.status)}),e.mimeType&&e.mimeType!=="application/octet-stream"&&i.jsx(Ue,{label:e.mimeType,size:"small",variant:"outlined"}),e.size>0&&i.jsx(Ue,{label:`${(e.size/1024/1024).toFixed(2)} MB`,size:"small",variant:"outlined"}),p&&i.jsx(Ue,{color:"default",label:"Révision IA en cours…",size:"small"}),(()=>{const f=e,u=f?.metadata?.quality?.ollamaScore??f?.status?.review?.score,k=f?.status?.review?.avis,b=f?.status?.review?.durationMs;if(e.status==="completed"&&typeof u=="number"){const g=i.jsx(Ue,{color:"success",label:`IA: ${u.toFixed(2)}`,size:"small",variant:"outlined"}),j=`${k||""}${b?(k?" — ":"")+"durée: "+b+" ms":""}`;return j?i.jsx(Gt,{title:j,children:i.jsx("span",{children:g})}):g}return null})(),(()=>{const u=e?.status?.review?.corrections,k=Array.isArray(u)?u.length:0;return e.status==="completed"&&k>0?i.jsx(Ue,{color:"info",label:`Corrections: ${k}`,size:"small",variant:"outlined",onClick:()=>l(e,u)}):null})(),e.status==="completed"&&e?.suggestions?.needsReupload&&i.jsx(Ue,{color:"warning",label:"Qualité faible: remplacer",size:"small",onClick:()=>a(e)}),e.status==="completed"&&e?.suggestions?.needsAddressConfirmation&&i.jsx(Ue,{color:"info",label:"Adresse à confirmer",size:"small",onClick:()=>r(e)})]})]})}),i.jsxs(N,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[i.jsx(re,{size:"small",startIcon:i.jsx(Qs,{}),onClick:()=>n(e),disabled:e.status!=="completed",fullWidth:!0,children:"Aperçu"}),i.jsx(Gt,{title:"Analyse IA (Ollama): calcule un score de fiabilité, propose des corrections, ajoute un avis.",children:i.jsx("span",{children:i.jsx(re,{size:"small",onClick:()=>s(e),disabled:e.status!=="completed"||p,fullWidth:!0,children:p?"Révision IA…":"Révision IA"})})}),i.jsx(re,{size:"small",color:"error",onClick:()=>o(e.id),fullWidth:!0,children:"Supprimer"})]})]}),t<m-1&&i.jsx(Ct,{})]},`${e.id}-${t}`)});function vl(){const e=yo(),{error:t,currentFolderHash:n,loading:o,bootstrapped:a,hasPending:r}=ct(C=>C.document),s=ct(al),l=ct(il),p=ct(tl),m=l;console.log("🏠 [UPLOAD_VIEW] Component loaded, documents count:",m.length);const[v,h]=c.useState(null),w=c.useCallback(C=>{e(Jo(C))},[e]),[f,u]=c.useState(!1),[k,b]=c.useState(!1),[g,j]=c.useState(""),[x,y]=c.useState(""),[d,S]=c.useState(""),[P,D]=c.useState(!1),[A,O]=c.useState({street:"",city:"",postalCode:"",country:"France"}),[H,B]=c.useState(null),[q,F]=c.useState(!1),[E,I]=c.useState(null),[V,ee]=c.useState([]),[T,Q]=c.useState(null),[ne,J]=c.useState({open:!1,severity:"success",message:""}),G=c.useCallback(C=>{try{const Z=(C.suggestions||{}).detectedAddress||{street:"",city:"",postalCode:"",country:"France"};O({street:Z.street||"",city:Z.city||"",postalCode:Z.postalCode||"",country:Z.country||"France"}),B(C),D(!0)}catch(z){console.error("❌ Préparation confirmation adresse:",z)}},[]),X=c.useCallback(async()=>{if(!(!n||!H))try{await Zo(n,H.id,A),D(!1),await e(ze(n)).unwrap()}catch(C){console.error("❌ Confirmation adresse:",C)}},[n,H,A,e]),oe=c.useCallback(async C=>{if(n)try{Q(C.id),await Qo(n,C.id),await e(ze(n)).unwrap(),J({open:!0,severity:"success",message:"Révision IA terminée: score et corrections mis à jour."})}catch(z){console.error("❌ Révision IA:",z),J({open:!0,severity:"error",message:"Échec de la révision IA. Réessaie plus tard."})}finally{Q(null)}},[n,e]),ce=c.useCallback(C=>{const z=document.createElement("input");z.type="file",z.accept="image/*,application/pdf",z.onchange=async()=>{const Z=z.files&&z.files[0]||null;if(!(!Z||!n))try{await ei(n,C.id),await e(yn({file:Z,folderHash:n})).unwrap(),await e(ze(n)).unwrap()}catch(xe){console.error("❌ Remplacement de document:",xe)}},z.click()},[n,e]),ue=c.useCallback(async()=>{try{const C=await fetch("/api/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:g||"Nouveau dossier",description:x||""})});if(!C.ok)throw new Error(await C.text());const z=await C.json();e(wn(z.folderHash)),await e(ze(z.folderHash)).unwrap(),console.log("✅ [UPLOAD] Nouveau dossier créé:",z.folderHash),b(!1),j(""),y("")}catch(C){console.error("❌ [UPLOAD] Erreur lors de la création du dossier:",C)}},[e]),Ce=c.useCallback(async()=>{if(d.trim())try{e(wn(d.trim())),await e(ze(d.trim())).unwrap(),console.log("✅ [UPLOAD] Dossier chargé:",d.trim()),u(!1),S("")}catch(C){console.error("❌ [UPLOAD] Erreur lors du chargement du dossier:",C)}},[e,d]),te=c.useCallback(()=>{n&&(navigator.clipboard.writeText(n),console.log("📋 [UPLOAD] Hash du dossier copié:",n))},[n]),$=c.useCallback(async C=>{if(!n){console.error("❌ [UPLOAD] Aucun dossier sélectionné");return}const z=C.map(async Z=>{try{console.log(`📤 [UPLOAD] Upload de ${Z.name} dans le dossier ${n}`),await e(yn({file:Z,folderHash:n})).unwrap(),await e(ze(n)).unwrap(),console.log(`✅ [UPLOAD] ${Z.name} uploadé avec succès`)}catch(xe){console.error(`❌ [UPLOAD] Erreur lors du traitement de ${Z.name}:`,xe)}});await Promise.all(z)},[e,n]),{getRootProps:U,getInputProps:_,isDragActive:K}=Ko({onDrop:$,accept:{"application/pdf":[".pdf"],"image/*":[".png",".jpg",".jpeg",".tiff"]},multiple:!0});return c.useEffect(()=>{(async()=>{if(n&&!(s&&s.length>0))try{const z=await fetch(`/api/folders/${n}/meta`);if(z.ok){const Z=await z.json();Z?.name&&window.dispatchEvent(new CustomEvent("4nk:setFolderName",{detail:Z.name}))}}catch{}})()},[n,s]),!a||o?i.jsx(kn,{children:i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"center",minHeight:240,children:[i.jsx(wo,{size:28,sx:{mr:2}}),i.jsx(Y,{children:"Chargement des fichiers du dossier…"})]})}):i.jsxs(kn,{children:[i.jsx(Y,{variant:"h4",gutterBottom:!0,children:"Analyse de documents IA"}),i.jsx(N,{sx:{mb:3,p:2,bgcolor:"grey.50",borderRadius:1,border:"1px solid",borderColor:"grey.200"},children:i.jsxs(N,{display:"flex",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:2,children:[i.jsxs(N,{display:"flex",alignItems:"center",gap:2,children:[i.jsx(Y,{variant:"h6",color:"text.secondary",children:"Dossier actuel :"}),i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(Y,{variant:"body1",sx:{fontFamily:"monospace",bgcolor:"grey.100",px:1,py:.5,borderRadius:1,fontSize:"0.875rem"},children:s||(n?"Dossier sans nom":"Aucun dossier sélectionné")}),n&&i.jsx(Gt,{title:"Copier le hash du dossier",children:i.jsx(Kt,{size:"small",onClick:te,children:i.jsx(Gs,{fontSize:"small"})})})]})]}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(re,{variant:"outlined",startIcon:i.jsx(so,{}),onClick:()=>b(!0),size:"small",children:"CRÉER UN DOSSIER"}),i.jsx(re,{variant:"outlined",startIcon:i.jsx(po,{}),onClick:()=>u(!0),size:"small",children:"Charger dossier"})]})]})}),i.jsxs(mt,{...U(),sx:{p:{xs:2,sm:4},textAlign:"center",cursor:"pointer",border:"2px dashed",borderColor:K?"primary.main":"grey.300",bgcolor:K?"action.hover":"background.paper","&:hover":{borderColor:"primary.main",bgcolor:"action.hover"}},children:[i.jsx("input",{..._()}),i.jsx(Vs,{sx:{fontSize:{xs:36,sm:48},color:"primary.main",mb:2}}),i.jsx(Y,{variant:"h6",gutterBottom:!0,sx:{fontSize:{xs:"1.1rem",sm:"1.25rem"}},children:K?"Déposez les fichiers ici...":"Glissez-déposez vos documents ou cliquez pour sélectionner"}),i.jsx(Y,{variant:"body2",color:"text.secondary",sx:{fontSize:{xs:"0.75rem",sm:"0.875rem"}},children:"Formats acceptés: PDF, PNG, JPG, JPEG, TIFF"})]}),t&&i.jsx(Vt,{severity:"error",sx:{mt:2},children:t}),(m.length>0||r)&&i.jsxs(N,{sx:{mt:3},children:[i.jsxs(Y,{variant:"h6",gutterBottom:!0,children:["Documents analysés (",m.length,")"]}),i.jsx(oi,{children:i.jsxs(Xt,{children:[m.map((C,z)=>i.jsx(sl,{doc:C,index:z,onPreview:h,onDelete:w,onReplace:ce,onConfirmAddress:G,onReview:oe,onOpenCorrections:(Z,xe)=>{I(Z),ee(xe),F(!0)},isReviewing:T===C.id,totalCount:m.length},`${C.id}-${z}`)),r&&i.jsx(i.Fragment,{children:(p.length>0?p:new Array(2).fill(null)).map((C,z)=>i.jsxs("div",{children:[i.jsxs(Yt,{children:[i.jsx(jo,{children:i.jsx(Ye,{variant:"circular",width:24,height:24})}),i.jsx(Jt,{primary:i.jsxs(N,{children:[i.jsx(N,{display:"flex",alignItems:"center",gap:1,mb:1,children:i.jsx(Ye,{variant:"rounded",width:180,height:18})}),i.jsxs(N,{display:"flex",gap:1,children:[i.jsx(Ye,{variant:"rounded",width:60,height:24}),i.jsx(Ye,{variant:"rounded",width:100,height:24})]})]})}),i.jsxs(N,{display:"flex",gap:1,flexDirection:{xs:"column",sm:"row"},children:[i.jsx(Ye,{variant:"rounded",width:84,height:32}),i.jsx(Ye,{variant:"rounded",width:84,height:32})]})]}),i.jsx(Ct,{})]},`sk-${z}`))})]})})]}),v&&i.jsx(rl,{document:v,onClose:()=>h(null)}),i.jsxs(Je,{open:f,onClose:()=>u(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(po,{}),"Charger un dossier existant"]})}),i.jsxs(Qe,{children:[i.jsx(Y,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Entrez le hash du dossier que vous souhaitez charger. Le hash est un identifiant unique de 32 caractères."}),i.jsx(Ve,{autoFocus:!0,margin:"dense",label:"Hash du dossier",placeholder:"ex: 0e7ae08a4f14f3154be1bd69d5617c74",fullWidth:!0,variant:"outlined",value:d,onChange:C=>S(C.target.value),sx:{fontFamily:"monospace"},helperText:"Le hash doit contenir exactement 32 caractères hexadécimaux"})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>u(!1),children:"Annuler"}),i.jsx(re,{onClick:Ce,variant:"contained",disabled:!d.trim()||d.trim().length!==32,children:"Charger le dossier"})]})]}),i.jsxs(Je,{open:k,onClose:()=>b(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:i.jsxs(N,{display:"flex",alignItems:"center",gap:1,children:[i.jsx(so,{}),"Créer un nouveau dossier"]})}),i.jsxs(Qe,{children:[i.jsx(Ve,{autoFocus:!0,margin:"dense",label:"Nom du dossier",fullWidth:!0,variant:"outlined",value:g,onChange:C=>j(C.target.value)}),i.jsx(Ve,{margin:"dense",label:"Description",fullWidth:!0,multiline:!0,minRows:2,variant:"outlined",value:x,onChange:C=>y(C.target.value)})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>b(!1),children:"Annuler"}),i.jsx(re,{onClick:ue,variant:"contained",disabled:!g.trim(),children:"Créer"})]})]}),i.jsxs(Je,{open:P,onClose:()=>D(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:"Confirmer l'adresse détectée"}),i.jsxs(Qe,{children:[i.jsx(Ve,{margin:"dense",label:"Rue",fullWidth:!0,variant:"outlined",value:A.street,onChange:C=>O({...A,street:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Code postal",fullWidth:!0,variant:"outlined",value:A.postalCode,onChange:C=>O({...A,postalCode:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Ville",fullWidth:!0,variant:"outlined",value:A.city,onChange:C=>O({...A,city:C.target.value})}),i.jsx(Ve,{margin:"dense",label:"Pays",fullWidth:!0,variant:"outlined",value:A.country,onChange:C=>O({...A,country:C.target.value})})]}),i.jsxs(Ze,{children:[i.jsx(re,{onClick:()=>D(!1),children:"Annuler"}),i.jsx(re,{variant:"contained",onClick:X,children:"Confirmer"})]})]}),i.jsxs(Je,{open:q,onClose:()=>F(!1),maxWidth:"sm",fullWidth:!0,children:[i.jsx(et,{children:"Corrections proposées par l'IA"}),i.jsxs(Qe,{children:[E?i.jsxs(Y,{variant:"subtitle2",sx:{mb:1},children:["Document: ",E.displayName||E.name]}):null,Array.isArray(V)&&V.length>0?i.jsx(Xt,{children:V.map((C,z)=>i.jsx(Yt,{alignItems:"flex-start",children:i.jsx(Jt,{primary:C?.path?String(C.path):`Correction ${z+1}`,secondary:i.jsxs(i.Fragment,{children:[i.jsxs(Y,{variant:"body2",color:"text.secondary",children:["Valeur: ",typeof C?.value=="object"?JSON.stringify(C.value):String(C?.value??"")]}),typeof C?.confidence=="number"&&i.jsxs(Y,{variant:"caption",color:"text.secondary",children:["Confiance: ",C.confidence.toFixed?C.confidence.toFixed(2):C.confidence]})]})})},`corr-${z}`))}):i.jsx(Y,{variant:"body2",color:"text.secondary",children:"Aucune correction disponible."})]}),i.jsx(Ze,{children:i.jsx(re,{onClick:()=>F(!1),children:"Fermer"})})]}),i.jsx(Lr,{open:ne.open,autoHideDuration:3e3,onClose:()=>J({...ne,open:!1}),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:i.jsx(Vt,{onClose:()=>J({...ne,open:!1}),severity:ne.severity,variant:"filled",sx:{width:"100%"},children:ne.message})})]})}export{vl as default};