@sheetxl/utils-mui 0.7.24 → 0.7.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{Cb04prRpLDH-rdiN.cjs → B9TdLZLtkypqqBMv.cjs} +2 -2
- package/browser/cjs/{DmH1UN3Qw3K9zv1H.cjs → BVaOx-dz8G9UVo08.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/esm/{C6mICovKdCn9UtYM.mjs → C5BtylqqOmUYrVG7.mjs} +2 -2
- package/browser/esm/{CR2U_sSbjP6OUU40.mjs → DH6u_M_R8JovMlaN.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/node/esm/{Bz7x4PdvAkpmXb8W.mjs → BPB5gZctbscTI3_j.mjs} +1 -1
- package/node/esm/index.mjs +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
`);await navigator.clipboard.writeText(d),s("Copied!"),setTimeout(()=>s(null),2e3)}catch(c){s("Can't copy!"),console.warn("Failed to copy stack trace:",c)}},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Copy stack trace",children:m.jsx(F.DynamicIcon,{iconKey:"ContentCopy",style:{fontSize:"0.875rem"}})}),m.jsx(L.IconButton,{size:"small",onClick:()=>{s("Logged!"),setTimeout(()=>s(null),2e3),console.log(e)},sx:{color:"inherit",opacity:.7,"&:hover":{opacity:1}},title:"Log error to console",children:m.jsx(F.DynamicIcon,{iconKey:"BugReport",style:{fontSize:"0.875rem"}})})]}),m.jsxs(L.Box,{sx:{mt:1,backgroundColor:"rgba(0, 0, 0, 0.2)",borderRadius:1,p:1,maxHeight:"300px",overflow:"auto",fontFamily:"monospace",fontSize:"0.75rem",lineHeight:1.4},children:[l.map((c,d)=>c.isBoundary?m.jsx(L.Box,{sx:{py:1,mt:d>0?1:0,mb:.5,borderTop:d>0?"1px solid rgba(255, 255, 255, 0.1)":"none"},children:m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",fontWeight:"bold",color:S=>c.isBoundary?S.palette.text.primary:S.palette.text.secondary,display:"block"},children:c.line})},`error-${d}`):m.jsxs(L.Box,{sx:{display:"flex",alignItems:"flex-start",gap:1,py:.25,pl:1,"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:[!n&&m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.5,minWidth:"20px",textAlign:"right",userSelect:"none"},children:d+1}),m.jsxs(L.Box,{sx:{flex:1,overflow:"hidden"},children:[m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.75rem",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",color:"inherit"},children:c.line}),c.location&&c.line!==c.location&&m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic"},children:c.location})]})]},`stack-${d}`)),i&&m.jsxs(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.625rem",opacity:.6,fontStyle:"italic",textAlign:"center",display:"block",mt:1},children:["... and ",r.length-o," more frames"]})]})]})});tn.displayName="StackTrace";const Eo=f.memo(f.forwardRef((e,o)=>{const{sx:n,icon:t=m.jsx(F.DynamicIcon,{iconKey:"Error",style:{fontSize:48}}),error:s,hideStackTrace:a=!1,stackTraceExpanded:r=!1,fullscreen:l=!1,...i}=e,c=f.useMemo(()=>Er(s,a,r,l),[s,a,r,l]);return f.useMemo(()=>m.jsx(L.Box,{ref:o,sx:{boxSizing:"border-box",alignItems:"center",justifyContent:"center",display:"flex",flexDirection:"row",overflow:"hidden",width:"100%",height:"100%",...n},...i,children:m.jsxs(L.Box,{sx:{display:"flex",flex:"1 1 100%",height:"100%",alignItems:"center",justifyContent:"center",boxSizing:"border-box",position:"relative"},children:[m.jsx(L.Box,{className:"backdrop",sx:{backdropFilter:"blur(4px)",borderRadius:d=>`${d.shape.borderRadius}px`,zIndex:-1,position:"absolute",width:"100%",height:"100%",boxSizing:"border-box"}}),m.jsx(L.Paper,{elevation:0,sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",rowGap:"8px",alignSelf:"center",marginBottom:"5%",backgroundColor:d=>d.palette.error.light,color:d=>d.palette.error.contrastText,paddingLeft:d=>d.spacing(2),paddingRight:d=>d.spacing(2),paddingTop:d=>d.spacing(2),paddingBottom:d=>d.spacing(2),borderRadius:d=>`${d.shape.borderRadius}px`,boxShadow:d=>d.shadows[2],"& .primary":{background:d=>`${d.palette.error.contrastText} !important`,border:"solid transparent"},zIndex:1},children:m.jsx(L.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:d=>d.spacing(2),width:"100%",maxWidth:l?void 0:"600px"},children:m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:d=>d.spacing(2)},children:[typeof t=="string"?m.jsx(F.DynamicIcon,{iconKey:t,style:{fontSize:48}}):t,c]})})})]})}),[n,t])}));Eo.displayName="StackTraceErrorPanel";const Er=(e,o=!1,n=!1,t=!1)=>{if(f.isValidElement(e))return e;if(e instanceof Error)return m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"column",minWidth:t?"70vw":"300px",maxWidth:t?void 0:"500px",width:"100%"},children:[m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,mb:1},children:e.message}),e.cause?m.jsxs(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",mb:1,opacity:.8},children:["Caused by: ",e.cause instanceof Error?e.cause.message:String(e.cause)]}):null,!o&&m.jsx(tn,{error:e,hideLineNumbers:!0})]});const s=e==="string"?e:`Unknown Error: ${String(e)}`;return m.jsx(L.Typography,{variant:"caption",component:"div",sx:{fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em"},children:s})},nn=f.memo(f.forwardRef((e,o)=>{const{chips:n,sx:t,...s}=e,a=f.useMemo(()=>{if(!n)return null;let r=null;r=Array.isArray(n)?n:[n];const l=[],i=r.length;for(let c=0;c<i;c++){const d=r[c];let S=null;typeof d=="string"?S=m.jsx(L.Chip,{label:d,color:"primary",size:"small",sx:{scale:"0.8"}},"chip-"+c):f.cloneElement(d,{key:"chip-"+c}),l.push(S)}return l},[n]);return m.jsx(L.Box,{ref:o,sx:{display:"flex",flexDirection:"row",marginLeft:"4px",gap:"2px",...t},...s,children:a})}));var zt="top",vt="bottom",Wt="right",Mo="left",Mr=[zt,vt,Wt,Mo],To="viewport",tt="popper";function ze(e){return e?(e.nodeName||"").toLowerCase():null}function Re(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var o=e.ownerDocument;return o&&o.defaultView||window}return e}function Xe(e){return e instanceof Re(e).Element||e instanceof Element}function Qe(e){return e instanceof Re(e).HTMLElement||e instanceof HTMLElement}function on(e){return typeof ShadowRoot<"u"&&(e instanceof Re(e).ShadowRoot||e instanceof ShadowRoot)}var lt=Math.max,kn=Math.min,Cn=Math.round;function Ut(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function jo(){return!/^((?!chrome|android).)*safari/i.test(Ut())}function rn(e,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var t=e.getBoundingClientRect(),s=1,a=1;o&&Qe(e)&&(s=e.offsetWidth>0&&Cn(t.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Cn(t.height)/e.offsetHeight||1);var r=(Xe(e)?Re(e):window).visualViewport,l=!jo()&&n,i=(t.left+(l&&r?r.offsetLeft:0))/s,c=(t.top+(l&&r?r.offsetTop:0))/a,d=t.width/s,S=t.height/a;return{width:d,height:S,top:c,right:i+d,bottom:c+S,left:i,x:i,y:c}}function Le(e){return Re(e).getComputedStyle(e)}function Tr(e){return["table","td","th"].indexOf(ze(e))>=0}function Ge(e){return((Xe(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mt(e){return ze(e)==="html"?e:e.assignedSlot||e.parentNode||(on(e)?e.host:null)||Ge(e)}function Dn(e){return Qe(e)&&Le(e).position!=="fixed"?e.offsetParent:null}function jr(e){for(var o=Re(e),n=Dn(e);n&&Tr(n)&&Le(n).position==="static";)n=Dn(n);return n&&(ze(n)==="html"||ze(n)==="body"&&Le(n).position==="static")?o:n||(function(t){var s=/firefox/i.test(Ut());if(/Trident/i.test(Ut())&&Qe(t)&&Le(t).position==="fixed")return null;var a=Mt(t);for(on(a)&&(a=a.host);Qe(a)&&["html","body"].indexOf(ze(a))<0;){var r=Le(a);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||s&&r.willChange==="filter"||s&&r.filter&&r.filter!=="none")return a;a=a.parentNode}return null})(e)||o}function Ro(e){var o=Re(e);return{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function On(e){return rn(Ge(e)).left+Ro(e).scrollLeft}function Po(e){var o=Le(e),n=o.overflow,t=o.overflowX,s=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+t)}function Fo(e){return["html","body","#document"].indexOf(ze(e))>=0?e.ownerDocument.body:Qe(e)&&Po(e)?e:Fo(Mt(e))}function No(e,o){var n;o===void 0&&(o=[]);var t=Fo(e),s=t===((n=e.ownerDocument)==null?void 0:n.body),a=Re(t),r=s?[a].concat(a.visualViewport||[],Po(t)?t:[]):t,l=o.concat(r);return s?l:l.concat(No(Mt(r)))}function Ht(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function En(e,o,n){return o===To?Ht((function(t,s){var a=Re(t),r=Ge(t),l=a.visualViewport,i=r.clientWidth,c=r.clientHeight,d=0,S=0;if(l){i=l.width,c=l.height;var y=jo();(y||!y&&s==="fixed")&&(d=l.offsetLeft,S=l.offsetTop)}return{width:i,height:c,x:d+On(t),y:S}})(e,n)):Xe(o)?(function(t,s){var a=rn(t,!1,s==="fixed");return a.top=a.top+t.clientTop,a.left=a.left+t.clientLeft,a.bottom=a.top+t.clientHeight,a.right=a.left+t.clientWidth,a.width=t.clientWidth,a.height=t.clientHeight,a.x=a.left,a.y=a.top,a})(o,n):Ht((function(t){var s,a=Ge(t),r=Ro(t),l=(s=t.ownerDocument)==null?void 0:s.body,i=lt(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=lt(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-r.scrollLeft+On(t),S=-r.scrollTop;return Le(l||a).direction==="rtl"&&(d+=lt(a.clientWidth,l?l.clientWidth:0)-i),{width:i,height:c,x:d,y:S}})(Ge(e)))}function Rr(e){var o=No(Mt(e)),n=["absolute","fixed"].indexOf(Le(e).position)>=0&&Qe(e)?jr(e):e;return Xe(n)?o.filter(function(t){return Xe(t)&&(function(s,a){var r=a.getRootNode&&a.getRootNode();if(s.contains(a))return!0;if(r&&on(r)){var l=a;do{if(l&&s.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1})(t,n)&&ze(t)!=="body"}):[]}function Pr(e,o){o===void 0&&(o={});var n,t=o,s=t.placement,a=s===void 0?e.placement:s,r=t.strategy,l=r===void 0?e.strategy:r,i=t.boundary,c=i===void 0?"clippingParents":i,d=t.rootBoundary,S=d===void 0?To:d,y=t.elementContext,x=y===void 0?tt:y,w=t.altBoundary,g=w!==void 0&&w,h=t.padding,v=h===void 0?0:h,u=(function(_){return Object.assign({},{top:0,right:0,bottom:0,left:0},_)})(typeof v!="number"?v:(n=v,Mr.reduce(function(_,V){return _[V]=n,_},{}))),k=x===tt?"reference":tt,M=e.rects.popper,j=e.elements[g?k:x],$=(function(_,V,z,H){var Z=V==="clippingParents"?Rr(_):[].concat(V),X=[].concat(Z,[z]),J=X[0],ne=X.reduce(function(oe,ee){var re=En(_,ee,H);return oe.top=lt(re.top,oe.top),oe.right=kn(re.right,oe.right),oe.bottom=kn(re.bottom,oe.bottom),oe.left=lt(re.left,oe.left),oe},En(_,J,H));return ne.width=ne.right-ne.left,ne.height=ne.bottom-ne.top,ne.x=ne.left,ne.y=ne.top,ne})(Xe(j)?j:j.contextElement||Ge(e.elements.popper),c,S,l),O=rn(e.elements.reference),R=(function(_){var V,z=_.reference,H=_.element,Z=_.placement,X=Z?(function(ie){return ie.split("-")[0]})(Z):null,J=Z?(function(ie){return ie.split("-")[1]})(Z):null,ne=z.x+z.width/2-H.width/2,oe=z.y+z.height/2-H.height/2;switch(X){case zt:V={x:ne,y:z.y-H.height};break;case vt:V={x:ne,y:z.y+z.height};break;case Wt:V={x:z.x+z.width,y:oe};break;case Mo:V={x:z.x-H.width,y:oe};break;default:V={x:z.x,y:z.y}}var ee=X?(function(ie){return["top","bottom"].indexOf(ie)>=0?"x":"y"})(X):null;if(ee!=null){var re=ee==="y"?"height":"width";switch(J){case"start":V[ee]=V[ee]-(z[re]/2-H[re]/2);break;case"end":V[ee]=V[ee]+(z[re]/2-H[re]/2)}}return V})({reference:O,element:M,placement:a}),C=Ht(Object.assign({},M,R)),D=x===tt?C:O,B={top:$.top-D.top+u.top,bottom:D.bottom-$.bottom+u.bottom,left:$.left-D.left+u.left,right:D.right-$.right+u.right},T=e.modifiersData.offset;if(x===tt&&T){var I=T[a];Object.keys(B).forEach(function(_){var V=[Wt,vt].indexOf(_)>=0?1:-1,z=[zt,vt].indexOf(_)>=0?"y":"x";B[_]+=I[z]*V})}return B}const Fr={name:"maxSize",enabled:!0,phase:"main",requiresIfExists:["offset","preventOverflow","flip"],fn:function(e){var o=e.state,n=e.name,t=Pr(o,e.options),s=o.modifiersData.preventOverflow||{x:0,y:0},a=s.x,r=s.y;let l=o.rects.popper,i=l.width,c=l.height,d=o.placement.split("-")[0],S=d==="left"?"left":"right",y=d==="top"?"top":"bottom";o.modifiersData[n]={width:i-t[S]-a,height:c-t[y]-r}}},Nr=[0,2],an=f.memo(f.forwardRef((e,o)=>{const{sx:n,open:t,children:s,label:a,offsets:r=Nr,anchorEl:l,anchorPosition:i,onMount:c,onOpening:d,onOpen:S,onClosing:y,onClose:x,resizeOnOverflow:w=!0,...g}=e;if(Array.isArray(s))throw new Error("children can not be an array");const h=We.useTheme(),v={name:"applyMaxSize",enabled:!0,phase:"beforeWrite",requires:["maxSize"],fn({state:X}){const{height:J}=X.modifiersData.maxSize;X.styles.popper.maxHeight=J-10+"px"}},u=f.useMemo(()=>{const X=[{name:"offset",options:{offset:r}},{name:"flip",enabled:!0,options:{rootBoundary:"document"}}];return w&&X.unshift(Fr,v),X},[w,r]),[k,M]=f.useState(!1),j=f.useRef(null),$=F.useCallbackRef(()=>{c?.(I.current,j.current)},[d]),O=F.useCallbackRef(d,[d]),R=F.useCallbackRef(S,[S]),C=F.useCallbackRef(y,[y]),D=F.useCallbackRef(()=>{M(!1),x?.()},[x]),[B,T]=f.useState(!1),I=f.useRef(null),_=f.useRef(!0),V=f.useMemo(()=>({onFirstUpdate:()=>{_.current&&(T(!0),$?.(),_.current=!1)}}),[t,k]);f.useEffect(()=>{t&&B?O?.():!t&&k&&C?.(),t&&M(t)},[t,B]);const z=f.useMemo(()=>({getBoundingClientRect:()=>i?new DOMRect(i?.left||0,i?.top||0,0,0):l.getBoundingClientRect()}),[i,l]);f.useImperativeHandle(o,()=>({instance:()=>j.current,element:()=>I.current}),[]);const{getPortalContainer:H}=F.useFullscreenPortal(),Z=f.useMemo(()=>({zIndex:t?"1300":"1299",display:"flex",pointerEvents:k&&t?void 0:"none",maxWidth:"100%",maxHeight:"100%",...n}),[n,t,k]);return m.jsx(L.Popper,{ref:I,popperRef:j,container:H,anchorEl:z,open:k,role:void 0,popperOptions:V,transition:!0,sx:Z,placement:"bottom-start",modifiers:u,...g,children:({TransitionProps:X,placement:J,...ne})=>{const{in:oe,onEnter:ee,onExited:re,...ie}=X??{};return m.jsx(L.Grow,{...ie,in:t,onEnter:()=>{ee?.(),R()},onExited:()=>{re?.(),D()},timeout:{enter:h.transitions.duration.shorter,exit:0},style:{transformOrigin:J==="bottom-start"?"left top":"center bottom"},children:typeof s=="function"?s({TransitionProps:X,placement:J,...ne}):s||ve.CommonUtils.EmptyArray})}})}));an.displayName="ExhibitPopper";const Kt=e=>m.jsx(F.DynamicIcon,{...e,iconKey:"ArrowDownOutline"}),Io=e=>m.jsx(F.DynamicIcon,{...e,iconKey:"ArrowRightOutline"}),Ir=f.memo(f.forwardRef((e,o)=>{const{sx:n,size:t="medium",activeColor:s,children:a,className:r,...l}=e;let i="var(--icon-size)";return t==="small"?i="calc(var(--icon-size-sm) * .875)":t==="large"&&(i="calc(var(--icon-size-lg) * 1.5)"),m.jsx(L.Box,{ref:o,className:ge("icon",r),sx:{width:"var(--icon-size)",height:"var(--icon-size)","--icon-size-adj":i,...n},...l,children:a})})),Br=We.styled(Ir)(({theme:e})=>({fontSize:"var(--icon-size-adj)",minWidth:"var(--icon-size-adj)",minHeight:"var(--icon-size-adj)",fill:"currentColor","& .activeColor":{fill:e.palette.primary.main},"& .styled.high_contrast":{fill:e.palette.primary.main},"& .styled.background":{fill:e.palette.background.paper},"& .styled.current_color":{fill:"currentColor"},"& .styled.secondary":{fill:e.palette.secondary.main},"& .styled.secondary_dark":{fill:e.palette.secondary.dark},"& .styled.secondary_light":{fill:e.palette.secondary.light},"& .styled.info":{fill:e.palette.info.main},"& .styled.info.stroked":{stroke:e.palette.info.main},"& .styled.info_dark":{fill:e.palette.info.dark},"& .styled.info_light":{fill:e.palette.info.light},"& .styled.warning":{fill:e.palette.warning.main},"& .styled.warning.stroked":{stroke:e.palette.warning.main},"& .styled.warning_dark":{fill:e.palette.warning.dark},"& .styled.warning_light":{fill:e.palette.warning.light},"& .styled.error.info":{fill:e.palette.error.main},"& .styled.error.stroked":{stroke:e.palette.error.main},"& .styled.error_dark":{fill:e.palette.error.dark},"& .styled.error_light":{fill:e.palette.error.light},"& .styled.success":{fill:e.palette.success.main},"& .styled.success_dark":{fill:e.palette.success.dark},"& .styled.success_light":{fill:e.palette.success.light},"& .styled.grey":{fill:e.palette.text.icon??e.palette.action.active}})),_r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ar=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Bo=function(e,o=null){if(!e)return e;e=e.replace(_r,function(t,s,a,r){return s+s+a+a+r+r});let n=Ar.exec(e);return n?o===null?`rgb(${parseInt(n[1],16)}, ${parseInt(n[2],16)}, ${parseInt(n[3],16)})`:`rgb(${parseInt(n[1],16)} ${parseInt(n[2],16)} ${parseInt(n[3],16)} / ${100*o}%)`:e},Yt=function(e,o=.2,n="light"){if(!e)return e;let t=n!=="dark";return o<0&&(t=!t,o*=-1),e=Bo(e),t?se.darken(e,Math.max(0,Math.min(1,1*o))):se.lighten(e,Math.max(0,Math.min(1,1.5*o)))};function _o(e,o){return o=bo.deepmerge({track:Yt(e.palette.background.paper,.05,e?.palette.mode),thumb:Yt(e.palette.background.paper,.3,e?.palette.mode),active:e.palette.primary.main,corner:e.palette.background.paper,outline:!1},o||{}),{"--scrollbar-track-color":se.alpha(o.track,.2),"--scrollbar-thumb-color":o.thumb,"--scrollbar-button-color":o.button||o.thumb,"--scrollbar-active-color":o.active,"--scrollbar-corner-color":o.corner||o.thumb,"--scrollbar-border-color":o.track,"--scrollbar-width":"13px","--scrollbar-height":"13px","--scrollbar-border-radius":"9999px","--scrollbar-border-width":"2px","--scrollbar-min-thumb-size":"24px"}}function sn(e,o){const n=_o(e,o),t={...n,"& .scrollbar, & .vsb-track, & .vsb-thumb":{...n},"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:"var(--scrollbar-track-color)",width:"var(--scrollbar-width)",height:"var(--scrollbar-height)"},"&::-webkit-scrollbar-button":{display:"none"},"& .scrollbar-button":{fill:"var(--scrollbar-thumb-color)",backgroundColor:"transparent",transition:"fill opacity 260ms ease",width:"var(--scrollbar-width)",height:"var(--scrollbar-height)"},"& .scrollbar-button:hover:not([disabled])":{fill:"var(--scrollbar-active-color)"},"& .scrollbar-button:disabled":{opacity:.8},"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track":{},"&::-webkit-scrollbar-track-piece, & *::-webkit-scrollbar-track-piece":{},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:"var(--scrollbar-border-radius)",backgroundColor:"var(--scrollbar-thumb-color)",minHeight:"var(--scrollbar-min-thumb-size)",minWidth:"var(--scrollbar-min-thumb-size)",border:"var(--scrollbar-border-width) solid var(--scrollbar-border-color)"},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:"var(--scrollbar-active-color)",border:o?.outline?o.outline:void 0},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:"var(--scrollbar-active-color)",border:o?.outline?o.outline:void 0},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:"var(--scrollbar-active-color)",border:o?.outline?o.outline:void 0},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:"var(--scrollbar-corner-color)"}};return ve.CommonUtils.getOS()===ve.CommonUtils.OSType.Firefox&&(t["* .pseudo-scrollbar"]={scrollbarColor:"var(--scrollbar-thumb-color) transparent"},t["* .pseudo-scrollbar:hover:not([disabled])"]={scrollbarColor:"var(--scrollbar-active-color) transparent"}),t}function Mn(){if(typeof document>"u")return null;const e=[...Array.from(document.body.classList),...document.documentElement?Array.from(document.documentElement.classList):[]];return e.includes("dark")?"dark":e.includes("light")?"light":null}function Tn(){return typeof window>"u"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}const Ao={Toolbar:"toolbar",Menuitem:"menuitem"},Tt=e=>{const{closeFloat:o,closeFloatAll:n,floatReference:t,popupContainer:s,children:a,className:r,sx:l,...i}=e;return m.jsx(L.Box,{className:ge("menu",r),sx:{display:"flex",flexDirection:"column",...l},...i,children:a})},qt=(e,o,n)=>{let t;return n&&(t=(t?t+" ":"")+"rotate(180deg)"),m.jsx(Kt,{style:{marginLeft:e?void 0:o?"-0.25rem":"-3px",marginRight:e?void 0:o?"-0.25rem":"-6px",transform:t},color:"inherit"})},ln=f.memo(f.forwardRef((e,o)=>{const{open:n,anchorEl:t,anchorPosition:s,label:a,floatReference:r,createPopupPanel:l=Tt,propsPopper:i,onMount:c,onClosing:d,onClose:S,onOpening:y,onOpen:x,children:w,sx:g,...h}=e,v=F.useCallbackRef(d,[d]),u=F.useCallbackRef(S,[S]),k=F.useCallbackRef(y,[y]),M=F.useCallbackRef(x,[x]),[j,$]=f.useState(),O=f.useRef(null),R=F.useCallbackRef((D,B)=>{$(D),c?.(O.current,B)},[c]),C=f.useMemo(()=>{const D={popupContainer:j,floatReference:r,children:w,...h},B=l(D);return m.jsx(L.Paper,{elevation:8,ref:O,sx:{display:"flex",overflow:"auto",outline:"none","&.MuiPaper-root":T=>sn(T)},tabIndex:0,children:B})},[l,w,j,r]);return m.jsx(an,{ref:o,anchorEl:t,anchorPosition:s,label:a,open:n,onMount:R,onOpening:k,onOpen:M,onClosing:v,onClose:u,...i,children:C})}));ln.displayName="ExhibitFloatPanel";const Ie=new Map;let _t=null;const Be=new Map;let je=null;const At=(e=null,o,n,t)=>(je&&(je.fn.clear(),je=null),e===0?o:(e===null&&(e=120),je={fn:ve.CommonUtils.debounce(()=>o(),e),setReferences:n,isClose:t},je.fn)),Lo=(e,o)=>{if(o===null)return;e.add(o);const n=Ie.get(o.key);if(!n)return;const t=Be.get(n);t&&Lo(e,t)},jn=e=>{const o=new Set;return Lo(o,e),o},ft=e=>{const{anchor:o,label:n=null,parentFloat:t=null,onOpen:s,onClose:a,propsPopper:r,createPopupPanel:l=Tt}=e??{},i=F.useCallbackRef(s,[s]),c=F.useCallbackRef(a,[a]),[d,S]=f.useState(null),[y,x]=f.useState(!1),[w,g]=f.useState(!1),h=f.useMemo(()=>t===null?(_t===null&&(_t={key:{label:"root"},isRoot:!0,parent:null,open:()=>null,close:b=>null,closeChild:b=>null,onChildVisible:()=>{},onChildHidden:()=>{},closeAll:()=>z(0),floatElement:()=>null,anchorElement:()=>null}),_t):t,[]),v=f.useMemo(()=>({label:n}),[]),u=f.useRef(null),k=f.useRef(o);f.useEffect(()=>{k.current=o},[o]);const M=b=>{const E=Ie.get(b);let N=null;return E&&(N=Be.get(E)?.close(0)),N},j=()=>M(X.key),[$,O]=f.useState(),R=()=>{if(!d)return void T();const b=new Promise((E,N)=>{O(A=>({resolve:E,reject:N}))});return j(),Ie.delete(h.key),S(!1),b};f.useEffect(()=>{$&&($.resolve(),O(null))},[y,w,$]);const C=f.useCallback(()=>{let b=h;for(;b.parent;)b=b.parent;return M(b.key)},[]),D=()=>{if(d)return void T();h&&Be.get(h.key)?.open(0);const b=Ie.get(h.key);b&&b!==v&&Be.get(b)?.close(0),requestAnimationFrame(()=>{Ie.set(h.key,X.key),S(!0)})},[B,T]=f.useReducer(b=>b+1,0),I=f.useCallback(b=>l===null?null:l({closeFloat:z,closeFloatAll:Z,...b}),[l]),_=l===null,V=F.useCallbackRef((b=120)=>At(b,D,new Set([X]),!1)(),[D]),z=F.useCallbackRef((b=60)=>At(b,R,jn(X),!0)(),[R]),H=F.useCallbackRef((b=360)=>At(b,j,jn((E=>{const N=Ie.get(E.key);return N&&Be.get(N)||null})(X)),!0)(),[j]),Z=F.useCallbackRef(C,[C]),X=f.useMemo(()=>({key:v,isRoot:!1,label:n,parent:h,onChildVisible:()=>{g(!0)},onChildHidden:()=>{g(!1)},open:V,close:z,closeChild:H,closeAll:Z,floatElement:()=>u.current,anchorElement:()=>k.current}),[]);f.useEffect(()=>{Be.set(v,X)},[X]),f.useEffect(()=>()=>{Be.delete(v),z(0)},[]),f.useEffect(()=>{d&&!_&&(x(!0),h.onChildVisible())},[d,_]);const J=f.useCallback(b=>{b.which===F.KeyCodes.Escape&&(b.preventDefault(),b.stopPropagation(),z(0))},[]),ne=f.useRef(null),oe=f.useCallback(()=>{const b=ne.current,E=u.current;b&&E&&(requestAnimationFrame(()=>{(E.contains(document.activeElement)||document.activeElement===document.body)&&b.focus()}),ne.current=null),c?.()},[]),ee=f.useCallback(b=>{u.current=b,b.addEventListener("focus",N=>{ne.current=N.relatedTarget},{once:!0,passive:!0});const E=document.activeElement;requestAnimationFrame(()=>{E===document.activeElement&&b.focus()})},[]),[re,ie]=f.useState();f.useEffect(()=>{_&&(d?i?.():d===!1&&c?.()),ie(y?m.jsx(ln,{floatReference:X,open:d,label:n,anchorEl:o,onOpening:()=>{i?.(),h.onChildVisible()},onClosing:oe,onClose:()=>{x(!1),h.onChildHidden()},onMount:ee,propsPopper:{onKeyDown:J,onMouseEnter:b=>{d&&je?.isClose&&je.setReferences.has(X)&&(je.fn.clear(),je=null,X.closeChild())},...r},createPopupPanel:I}):null)},[y,d,n,_,r,I,B]);const p=F.useCallbackRef(b=>{if(Ie.size===0)return;let E=!1;Ie.forEach(N=>{const A=Be.get(N);if(E||!A)return;A.floatElement()?.contains?.(b.target)&&(E=!0),A.anchorElement()?.contains?.(b.target)&&(E=!0)}),E||C()},[C]);return f.useEffect(()=>{if(!d||!h.isRoot)return;const b=E=>{p(E)};return document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),document.addEventListener("focus",b),()=>{document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b),document.removeEventListener("focus",b)}},[d,h]),{component:re,reference:X}},Vo=f.memo(f.forwardRef((e,o)=>{const{nestedChildren:n,variant:t,disabled:s=!1,createPopupPanel:a,...r}=e,l={disabled:s,createPopupPanel:F.useCallbackRef(i=>{if(!n||n.length===0)return null;const{popupContainer:c,floatReference:d,ref:S,...y}=i,x=[];for(let w=0;w<n.length;w++){const g=n[w];g&&x.push(m.jsx(Vo,{parentFloat:d,...y,...g},w))}return m.jsxs(L.Box,{ref:o,sx:{display:"flex",flexDirection:"column",paddingTop:"4px",paddingBottom:"4px"},children:["Children here",x,m.jsx(Je,{parentFloat:d,children:"Close other children"})]})},[n]),...r};return t===Ao.Toolbar?m.jsx(jt,{...l}):m.jsx(un,{...l})})),Lr={placement:"right-start"},Vr=f.memo(f.forwardRef((e,o)=>{const{children:n,sx:t,parentFloat:s,createPopupPanel:a,propsPopper:r=Lr,label:l,...i}=e;(function(h){if(!h)throw new Error("Invariant failed")})(f.isValidElement(n));const c=n,d=f.useMemo(()=>({...c?.props,...i,onContextMenu:h=>{c?.props?.onContextMenu?.(h),h.isDefaultPrevented()||(i?.onContextMenu?.(h),h.isDefaultPrevented()||(x(h),h.preventDefault()))}}),[i,c?.props]),S=F.useCallbackRef(a,[a]),[y,x]=f.useState(null),{reference:w,component:g}=ft({label:l??"contextMenu",propsPopper:r,parentFloat:s,anchor:{getBoundingClientRect:()=>new DOMRect(y?.clientX||0,y?.clientY||0)},onClose:()=>x(null),createPopupPanel:S});return f.useEffect(()=>{y?w.open(0):w.close(0)},[y]),m.jsxs(m.Fragment,{children:[f.cloneElement(n,d),g]})})),He=f.forwardRef((e,o)=>{const{slotProps:n,...t}=e,{getPortalContainer:s}=F.useFullscreenPortal();return m.jsx(L.Tooltip,{ref:o,slotProps:{...n,popper:{container:s,...n?.popper||{}}},...t})});He.displayName="SimpleTooltip";const nt=f.memo(e=>{const{modifier:o,sx:n,...t}=e;return m.jsx(L.Box,{sx:{marginLeft:"1px",marginRight:"1px",borderRadius:"4px",borderStyle:"solid",borderTopWidth:"1px",borderLeftWidth:"1px",borderRightWidth:"1px",borderBottomWidth:"2px",borderTopColor:s=>se.alpha(s.palette.background.paper,s.palette.action.disabledOpacity),borderLeftColor:s=>se.alpha(s.palette.background.paper,s.palette.action.disabledOpacity),borderRightColor:s=>se.alpha(s.palette.background.paper,s.palette.action.disabledOpacity),borderBottomColor:s=>se.alpha(s.palette.background.paper,1-s.palette.action.disabledOpacity),backgroundColor:s=>se.alpha(s.palette.action.hover,s.palette.action.disabledOpacity),paddingLeft:"4px",paddingRight:"4px",minHeight:"1.6em",display:"flex",justifyContent:"center",alignItems:"center",boxSizing:"content-box",overflow:"hidden",...n},...t,children:m.jsx(L.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center","& *":{fontWeight:"500"}},children:o})})}),$r=ve.CommonUtils.getOS()===ve.CommonUtils.OSType.MacOS||ve.CommonUtils.getOS()===ve.CommonUtils.OSType.IOS?"Cmd":"Ctrl",cn=(e,o=!1,n=null)=>{if(Array.isArray(e)){let a=[],r=e;for(let l=0;l<r.length;l++)a.push(cn(r[l],o,n??""+l));return m.jsx(L.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"column"},children:a},n)}if(!e?.key)return null;const t={};for(let a=0;e.modifiers&&a<e.modifiers.length;a++)t[e.modifiers[a]]=!0;const s=[];return t?.[F.KeyModifiers.Ctrl]&&(s.push(m.jsx(nt,{modifier:o?"^":m.jsx("div",{style:{paddingRight:"1px"},children:$r})},"ctrl")),s.push("+")),t?.[F.KeyModifiers.Alt]&&(s.push(m.jsx(nt,{modifier:o?"⌥":"Alt"},"alt")),s.push("+")),t?.[F.KeyModifiers.Shift]&&(s.push(m.jsx(nt,{modifier:o?"⇧":m.jsx("div",{style:{paddingRight:"1px"},children:"Shift"})},"shift")),s.push("+")),t?.[F.KeyModifiers.Meta]&&(s.push(m.jsx(nt,{modifier:o?m.jsx("div",{style:{paddingTop:"1px"},children:"⌘"}):"Meta"},"meta")),s.push("+")),s.push(m.jsx(nt,{modifier:F.ReactUtils.toPrettyKeyCode(e.key)},"character")),m.jsx(L.Box,{sx:{display:"flex",alignItems:"center"},children:s},n)},Ke=f.memo(f.forwardRef((e,o)=>{const{disabled:n=!1,label:t,shortcut:s,chips:a,description:r,maxWidth:l=280,useModifierSymbols:i=!1,children:c,simple:d,componentDisabled:S=!1,sx:y,...x}=e;let w=null;s&&(w=cn(s,i));const[g,h]=f.useState(null);f.useEffect(()=>{Promise.resolve(t).then(u=>{h(u)})},[t]);const v=m.jsxs(L.Box,{sx:{maxWidth:`${l}px`},ref:o,children:[m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"row",marginBottom:r?"4px":"0px"},children:[m.jsx(L.Typography,{variant:"subtitle1",component:"div",flex:"1 1 100%",children:g}),a?m.jsx(nn,{chips:a}):null,w?m.jsx(L.Box,{sx:{marginLeft:"8px"}},"leadingSpace"):m.jsx(m.Fragment,{}),w]}),r?m.jsx(L.Typography,{variant:"caption",sx:{whiteSpace:"pre-line",lineHeight:"1.4"},children:r}):m.jsx(m.Fragment,{})]});return m.jsx(He,{slotProps:{popper:{sx:{"& .MuiTooltip-tooltip":{marginTop:"0px !important"},...y},modifiers:[{name:"offset",options:{offset:[0,14]}}]}},className:"tooltip-wrapper",tabIndex:-1,title:!n&&g?v:"",enterDelay:260,enterNextDelay:130,leaveDelay:230,disableInteractive:!0,...x,children:m.jsx("div",{style:{display:"flex",alignItems:"stretch",justifyContent:"stretch"},children:c})})})),zr=m.jsx(F.DynamicIcon,{}),Wr=m.jsx(F.DynamicIcon,{iconKey:"Check"}),mt=f.memo(f.forwardRef((e,o)=>{const{dense:n=!0,outlined:t=!1,disableHover:s=!1,parentFloat:a,selected:r,icon:l,propsTooltip:i,children:c,primary:d,sx:S,disabled:y,className:x,onFocus:w,onBlur:g,...h}=e,[v,u]=f.useState(!1),k={marginRight:"0px",padding:n?"2px":"7px",borderRadius:R=>`${R.shape.borderRadius}px`,color:R=>d?void 0:R.palette.text.icon??R.palette.action.active,border:R=>`solid ${t?R.palette.divider:"transparent"} 1px`,"& .MuiTouchRipple-child":{borderRadius:R=>`${R.shape.borderRadius}px !important`},"&.Mui-selected":{backgroundColor:R=>se.alpha(R.palette.text.primary,R.palette.action.selectedOpacity),border:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`},"&.Mui-disabled":{border:R=>`solid ${t?R.palette.divider:"transparent"} 1px`},"&.Mui-disabled > .icon path":{filter:"grayscale(65%)",opacity:".8"},"&.Mui-focusVisible":{outline:"solid transparent 1px",border:"1px solid transparent"},...S},M={"&:hover:not(.Mui-disabled, [disabled])":{color:R=>R.palette.text.primary,border:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`,"&.Mui-selected":{backgroundColor:R=>se.alpha(R.palette.text.primary,R.palette.action.selectedOpacity+R.palette.action.hoverOpacity)},"> .outline-hover":{outline:R=>`solid ${t?R.palette.text?.primary:R.palette.divider} 1px`},backgroundColor:null},"&.Mui-focusVisible":{outline:R=>`solid ${R.palette.primary.main} 1px`,border:R=>`1px solid ${R.palette?.primary?.main}`,zIndex:1}};let j=k;s||(j=ve.CommonUtils.mergeContentful(k,M));const $=f.useMemo(()=>{let R=typeof l=="function"?l():l;return R===null?R:R||(r===void 0?zr:Wr)},[l,r]);let O=m.jsxs(L.IconButton,{component:"div",ref:o,className:ge({"Mui-focusVisible":v,"Mui-selected":r,"Mui-disabled":y},x),onFocus:R=>{u(!0),w?.(R)},onBlur:R=>{u(!1),g?.(R)},size:"small",TouchRippleProps:{center:!1},sx:j,edge:"end",...h,disabled:y||!1,children:[$,c]});if(i)if(i.simple&&i.label&&!i.disabled){const{label:R,description:C,maxWidth:D,shortcut:B,useModifierSymbols:T,componentDisabled:I,simple:_,chips:V,ref:z,...H}=i;O=m.jsx(He,{disableInteractive:!0,title:R??"",...H,children:m.jsx(L.Box,{sx:{display:"flex"},children:O})})}else O=m.jsx(Ke,{children:O,...i});return O})),Ur=m.jsx(F.DynamicIcon,{}),Hr=e=>e.icon,Je=f.memo(f.forwardRef((e,o)=>{const{icon:n=Ur,renderIcon:t=Hr,parentFloat:s,className:a,onFocus:r,selected:l,onBlur:i,onMouseOver:c,onMouseOut:d,onMouseEnter:S,disabled:y,children:x,sx:w,propsTooltip:g,chips:h,primary:v,...u}=e,[k,M]=f.useState(!1),[j,$]=f.useState(!1),O=f.useMemo(()=>{const C=t?.({icon:n,disabled:y,selected:l});return C?m.jsx(L.ListItemIcon,{className:ge({"Mui-focusVisible":k,"Mui-hovered":j}),sx:{"& .MuiSvgIcon-root":{color:D=>v?void 0:D.palette.text.icon??D.palette.action.active},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{"& .MuiSvgIcon-root":{color:D=>D.palette.text.primary}}},children:C}):null},[t,y,n,k,j,v,l]);let R=m.jsxs(L.MenuItem,{ref:o,disabled:y,onMouseOver:C=>{c?.(C),C.isDefaultPrevented()||$(!0)},onMouseOut:C=>{d?.(C),C.isDefaultPrevented()||$(!1)},onMouseEnter:C=>{S?.(C),C.isDefaultPrevented()||s?.closeChild()},TouchRippleProps:{center:!1},className:ge({"Mui-focusVisible":k,"Mui-hovered":j},a),onFocus:C=>{r?.(C),M(!0)},onBlur:C=>{i?.(C),M(!1)},sx:{flex:"1 1 100%","&.Mui-disabled > .icon path":{filter:"grayscale(65%)"},"&.Mui-selected":{color:C=>C.palette.text.primary},color:C=>C.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:C=>C.palette.text.primary},...w},...u,children:[O,x,h?m.jsx(nn,{chips:h}):null]});return g&&(R=m.jsx(Ke,{children:R,placement:"right-start",...g})),R})),Kr=f.memo(f.forwardRef((e,o)=>{const{children:n,sx:t,primary:s=!1,variant:a="subtitle1",...r}=e;return m.jsx(m.Fragment,{children:m.jsx(L.Typography,{ref:o,variant:a,component:"div",sx:{userSelect:"none",fontWeight:"500",paddingLeft:"8px",paddingTop:a==="subtitle1"?"2px":void 0,paddingBottom:a==="subtitle1"?"2px":void 0,color:l=>s?void 0:l.palette.text.secondary,...t},...r,children:n})})})),jt=f.memo(f.forwardRef((e,o)=>{const{dense:n=!0,outlined:t=!1,label:s,selected:a=!1,onQuickClick:r,parentFloat:l,createPopupPanel:i,propsPopup:c,onPopupOpen:d,onPopupClose:S,propsQuickButton:y,renderQuickButton:x,tooltip:w="",createTooltip:g,icon:h,disabled:v,propsButton:u=ve.CommonUtils.EmptyObject,disableHover:k,touchRippleRef:M,primary:j,children:$,sx:O,className:R,...C}=e,D=We.useTheme(),B=f.useMemo(()=>{const Q=(te,ae,ue,Oe=ue)=>{const be=typeof t=="boolean"?null:t[te];return typeof be=="function"?be(ae):be||(t?ue:Oe)};return{outline:{color:te=>Q("color",te,te.palette.divider,"transparent"),hoverColor:te=>Q("hoverColor",te,te.palette.text?.primary,te.palette.divider),focusColor:te=>Q("focusColor",te,te.palette?.primary?.main)},active:D.palette.mode==="dark"?D.palette.text.secondary:D.palette.text.primary,text:D.palette.text.icon??D.palette.action.active}},[t,D]),[T,I]=f.useState(!1),[_,V]=f.useState(!1),[z,H]=f.useState(!1),Z=f.useRef(null),X=f.useRef(null),J=ft({anchor:Z.current,label:s,createPopupPanel:i,parentFloat:l,propsPopper:c?.propsPopper,onClose:()=>{I(!1),S?.()},onOpen:()=>{I(!0),d?.()}}),ne=F.useCallbackRef(Q=>{r?.(Q),J.reference.close(0)},[r,J]),oe=F.useCallbackRef(()=>{T?J.reference.close(0):J.reference.open(0)},[T,J,l,s]),ee=f.useMemo(()=>{const Q={"&.bordered":{borderWidth:"1px",borderRadius:"0px",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:G=>B.outline.color(G),"&.Mui-focusVisible":{border:G=>`1px solid ${B.outline.focusColor(G)} !important`},"&:hover:not(.Mui-disabled, [disabled])":{borderColor:()=>k?"transparent":void 0,backgroundColor:()=>k?"transparent":void 0},"&.Mui-hovered:not(.Mui-disabled, [disabled])":{borderColor:G=>B.outline.hoverColor(G)},"&.Mui-selected:not(.Mui-disabled, [disabled])":{borderColor:G=>B.outline.hoverColor(G)},"&.left":{borderTopLeftRadius:G=>`${G.shape.borderRadius}px`,borderBottomLeftRadius:G=>`${G.shape.borderRadius}px`,borderLeftStyle:"solid"},"&.hard-right":{borderRightStyle:"solid",borderRightWidth:"1px",borderRightColor:G=>B.outline.color(G)},"&.right":{borderTopRightRadius:G=>`${G.shape.borderRadius}px`,borderBottomRightRadius:G=>`${G.shape.borderRadius}px`,borderRightStyle:"solid"},"&.divider":{borderLeftWidth:"0px !important"}},"& .MuiTouchRipple-child":{borderRadius:G=>`${G.shape.borderRadius}px !important`}},te={"&.Mui-selected":{backgroundColor:G=>se.alpha(G.palette.primary.main,G.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:G=>se.alpha(G.palette.primary.main,G.palette.action.selectedOpacity+G.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:G=>se.alpha(G.palette.primary.main,G.palette.action.selectedOpacity)}}}},ae={maxHeight:"100%","&.Mui-selected":{backgroundColor:G=>se.alpha(G.palette.text.icon??G.palette.action.active,G.palette.action.selectedOpacity),"&:hover:not(.Mui-disabled)":{backgroundColor:G=>se.alpha(G.palette.text.icon??G.palette.action.active,G.palette.action.selectedOpacity+G.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:G=>se.alpha(G.palette.text.icon??G.palette.action.active,G.palette.action.selectedOpacity)}}},"&:hover:not(.Mui-disabled, [disabled])":{color:G=>G.palette.text.primary},backgroundColor:()=>k?"transparent":void 0,color:G=>G.palette.text.icon,"&.Mui-disabled > .icon path":{filter:"grayscale(65%)",opacity:".8"},padding:()=>n?"2px 3px":"7px",marginRight:"0"},ue=ve.CommonUtils.mergeContentful(ae,Q),Oe=ve.CommonUtils.mergeContentful(ue,te),be=ve.CommonUtils.mergeContentful(ae,Q);return{quickButtonStyling:ue,openQuickButtonStyling:Oe,compoundStyling:be,openCompoundStyling:ve.CommonUtils.mergeContentful(be,te)}},[B,k]),re=F.useCallbackRef(Q=>{const{children:te,ref:ae,...ue}=Q;return m.jsx(He,{ref:ae,...ue,disableInteractive:!0,children:te})},[]),ie=r||x,p=ie&&(y?.tooltip||y?.createTooltip),b=Q=>{const{tooltip:te,createTooltip:ae,sx:ue,...Oe}=Q;let be=m.jsx(L.IconButton,{sx:{...ue},component:"div",...Oe});return p&&(be=(ae??re)({title:T?"":te??w,children:m.jsx("div",{children:be})},T)),be},E={onKeyDown:Q=>{Q.keyCode===F.KeyCodes.Space?oe():Q.keyCode===F.KeyCodes.F4||Q.keyCode===F.KeyCodes.Down?J.reference.open(0):Q.keyCode===F.KeyCodes.Up&&J.reference.close(0)}};let N=m.jsx(m.Fragment,{});const A=f.useMemo(()=>typeof h=="function"?h():h,[h]);if(ie){let Q=T?ee.openQuickButtonStyling:ee.quickButtonStyling;const te=(x||b)({tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseEnter:()=>{J.reference.parent.closeChild()},onMouseDown:ue=>{ue.button===0&&(ue.preventDefault(),ne(ue))},touchRippleRef:M,children:A,...y,className:ge({"Mui-focusVisible":_||T,"Mui-selected":a,"Mui-hovered":z||T,"Mui-disabled":v,bordered:!0,left:!0,"hard-right":!0},y?.className),sx:{...ee.quickButtonStyling,height:"100%",...y?.sx}});let ae=qt(!0,n,T);p&&(ae=(g??re)({title:T?"":w,children:ae},T)),N=m.jsxs(m.Fragment,{children:[te,m.jsx(L.IconButton,{ref:X,component:"div",className:ge({"Mui-selected":T,"Mui-hovered":z||T,"Mui-disabled":v,"Mui-focusVisible":_||T,bordered:!0,right:!0,divider:!0}),sx:{paddingLeft:(n?0:2)+"px",paddingRight:(n?0:2)+"px",width:()=>"calc(var(--icon-size, 1.25em) * 0.8)",...ee.quickButtonStyling,...Q},TouchRippleProps:{center:!1},tabIndex:-1,disabled:v,size:"small",edge:"end",onMouseDown:ue=>{ue.button===0&&(ue.preventDefault(),oe())},children:ae})]})}else{let Q=T?ee.openCompoundStyling:ee.compoundStyling;N=m.jsx(mt,{ref:X,tabIndex:-1,disabled:v,size:"small",icon:A,className:ge({"Mui-selected":T||a,"Mui-hovered":z,"Mui-disabled":v,"Mui-focusVisible":_||T,bordered:!0,left:!0,right:!0}),sx:{...ee.quickButtonStyling,...Q},onMouseDown:te=>{te.button===0&&(te.preventDefault(),oe())},children:qt(!1,n,T)})}const{className:P,sx:W,...Y}=u;let q=m.jsx(L.Box,{onFocus:()=>V(!0),onBlur:()=>V(!1),onMouseOver:()=>H(!0),onMouseOut:()=>H(!1),...E,"aria-label":"split button",ref:Z,tabIndex:v?void 0:0,className:ge(P,"split-button-root",{"Mui-focusVisible":_||T,"Mui-selected":T||a,"Mui-hovered":z,"Mui-disabled":v}),sx:{display:"flex",flex:"1 1 100%",alignItems:"stretch",width:"fit-content","&:not(.Mui-disabled)":{cursor:"pointer"},marginLeft:t?"1px":"0px",marginRight:t?"1px":"0px",borderRadius:Q=>`${Q.shape.borderRadius}px`,"&.Mui-focusVisible":{outline:Q=>`solid ${Q.palette.primary.main} 1px`,zIndex:2},...W},...Y,children:N});return p||(q=(g??re)({title:T?"":w,children:q},T)),m.jsxs(L.Box,{className:ge(R,"popupIconButton"),ref:o,...C,sx:{zIndex:_||T?2:void 0,display:"flex",alignItems:"center",...O},children:[q,J.component]})}));jt.displayName="ExhibitPopupIconButton";const Yr={},un=f.memo(f.forwardRef((e,o)=>{const{selected:n=!1,label:t,onQuickClick:s,parentFloat:a,createPopupPanel:r,propsPopup:l=Yr,onPopupOpen:i,onPopupClose:c,propsQuickButton:d,renderQuickButton:S,tooltip:y="",createTooltip:x,icon:w,disabled:g,touchRippleRef:h,primary:v,children:u,sx:k,...M}=e,[j,$]=f.useState(!1),[O,R]=f.useState(!1),[C,D]=f.useState(!1),[B,T]=f.useState(!1),I=f.useRef(null),_=f.useRef(null),V=f.useMemo(()=>{if(!l)return;const{propsPopper:p}=l;return{placement:"right-start",offsets:[-4,-2],...p}},[l]),z=ft({anchor:I.current,label:t,createPopupPanel:r,parentFloat:a,propsPopper:V,onClose:()=>{$(!1),c?.()},onOpen:()=>{$(!0),i?.()}}),H=F.useCallbackRef(p=>{p.button===0&&(s?.(p),z.reference.close(0))},[s]),Z=m.jsx(Io,{}),X={"&.Mui-selected":{color:p=>p.palette.text.primary,"& svg * ":{color:p=>p.palette.text.primary}}},J=f.useCallback(p=>{const{children:b,ref:E,...N}=p;return m.jsx(He,{ref:E,...N,disableInteractive:!0,children:b})},[]),ne=s||S,oe=p=>{const{tooltip:b,createTooltip:E,...N}=p;return m.jsx(Je,{icon:w,className:ge({"Mui-hovered":C}),sx:{flex:"1 1 100%",...X},...N,children:t})},ee={onFocus:()=>{R(!0)},onBlur:()=>R(!1),onMouseOver:()=>{D(!0)},onMouseLeave:()=>{D(!1)},onMouseEnter:()=>{z.reference.open()},onMouseDown:p=>{p.button===0&&p.preventDefault()}};let re=m.jsx(m.Fragment,{});if(ne){const p=(S||oe)({tabIndex:-1,disabled:g,onMouseEnter:()=>{z.reference.parent.closeChild()},onMouseDown:b=>{b.button===0&&(b.preventDefault(),H(b))},className:ge("quick-left",{},d?.className),...d});re=m.jsxs(m.Fragment,{children:[p,m.jsx(L.Divider,{sx:{ml:"0px",mr:"0px"},orientation:"vertical",variant:"middle",flexItem:!0}),m.jsx(L.MenuItem,{ref:_,className:ge({"Mui-selected":j,"Mui-hovered":C}),sx:{borderTopLeftRadius:"0px",borderBottomLeftRadius:"0px",paddingLeft:"0px",paddingRight:"0px",marginLeft:"0px",color:b=>v?void 0:b.palette.text.secondary,"&.Mui-hovered:not(.Mui-disabled, [disabled])":{color:b=>b.palette.text.primary},...X},tabIndex:-1,disabled:g,...ee,children:m.jsx(L.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",border:"1px solid transparent",paddingTop:"1px",paddingBottom:"1px",color:b=>v?void 0:b.palette.text.icon??b.palette.action.active},onMouseOver:b=>{b.preventDefault(),T(!0)},onMouseLeave:()=>{T(!1)},onClick:b=>{b.preventDefault(),j?z.reference.close():z.reference.open()},children:Z})})]})}else re=m.jsxs(Je,{ref:_,tabIndex:-1,disabled:g,icon:w,className:ge({"Mui-selected":j||n,"Mui-hovered":C}),sx:{flex:"1 1 100%",paddingRight:"0px",...X},onClick:p=>{p.preventDefault(),j?z.reference.close():z.reference.open()},...ee,children:[m.jsx("div",{style:{flex:"1 1 100%"},children:t}),m.jsx(L.Box,{className:"expand-icon",sx:{flex:"none",display:"flex",color:p=>v?void 0:p.palette.text.icon??p.palette.action.active},children:Z})]});let ie=m.jsx(L.Box,{"aria-label":"split button",ref:I,tabIndex:g?void 0:0,className:ge({"Mui-disabled":g,"Mui-selected":j,"Mui-focusVisible":O||j,"Mui-hovered":C}),sx:{display:"flex",flex:"1 1 100%",alignItems:"center",width:"fit-content","& .quick-left":{borderTopRightRadius:"0px",borderBottomRightRadius:"0px",marginRight:"-1px"},"&.Mui-disabled > .icon path":{filter:"grayscale(65%)"},...k},...M,children:re});return ne&&!B&&(d?.tooltip||d?.createTooltip)&&(ie=(d?.createTooltip??J)({title:j?"":ie??d?.tooltip,children:ie},j)),m.jsxs(L.Box,{ref:o,sx:{zIndex:O||j?2:void 0,display:"flex"," .tooltip-wrapper":{display:"flex",flex:"1 1 100%"}},children:[ie,z.component]})})),qr=f.memo(f.forwardRef((e,o)=>{const{onSelectToggle:n,selected:t=!1,label:s,shortcut:a,tabIndex:r=0,preventFocus:l=!1,...i}=e;return m.jsx(Ke,{label:s,shortcut:a,children:m.jsx(mt,{ref:o,outlined:!1,tabIndex:r,selected:t,onMouseDown:c=>{l&&c.preventDefault()},onClick:()=>{n?.(!t)},...i})})})),Gr=m.jsx(F.DynamicIcon,{}),Xr=m.jsx(F.DynamicIcon,{iconKey:"Check"}),$o=f.memo(f.forwardRef((e,o)=>{const{children:n,selected:t=!0,outlined:s=!0,sx:a,...r}=e,l=f.useMemo(()=>({display:"flex",border:c=>t?`solid ${s?c.palette.divider:"transparent"} 1px`:"solid transparent 1px",borderRadius:c=>`${c.shape.borderRadius}px`,backgroundColor:c=>{if(t)return se.alpha(c.palette.text.icon??c.palette.action.active,c.palette.action.selectedOpacity)},...a}),[a]);let i=n;return i===null&&(i=Gr),i||(i=Xr),m.jsx(L.Box,{ref:o,sx:l,...r,children:i})}));function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var n=arguments[o];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},xe.apply(null,arguments)}function zo(e,o){if(e==null)return{};var n={};for(var t in e)if({}.hasOwnProperty.call(e,t)){if(o.indexOf(t)!==-1)continue;n[t]=e[t]}return n}var Ce,Qr={state:{},updateModal:function(){},hideModal:function(){},destroyModal:function(){},destroyModalsByRootId:function(){},showModal:function(){return{id:"id",hide:function(){},destroy:function(){},update:function(){}}}},Wo=f.createContext(void 0);(function(e){e.SHOW="SHOW",e.HIDE="HIDE",e.UPDATE="UPDATE",e.DESTROY="DESTROY",e.DESTROY_BY_ROOT_ID="DESTROY_BY_ROOT_ID",e.UNKNOWN="UNKNOWN"})(Ce||(Ce={}));var Jr={};function Zr(e,o){switch(o.type){case Ce.SHOW:var n,t=o.payload,s=t.id,a=t.component,r=t.props,l=t.options;return xe({},e,((n={})[s]={component:a,props:xe({},r,{open:!0}),options:l},n));case Ce.HIDE:var i,c=o.payload.id;return e[c]?xe({},e,((i={})[c]=xe({},e[c],{props:xe({},e[c].props,{open:!1})}),i)):e;case Ce.UPDATE:var d,S=o.payload,y=S.id,x=S.props;return e[y]?xe({},e,((d={})[y]=xe({},e[y],{props:xe({},e[y].props,x)}),d)):e;case Ce.DESTROY:var w=o.payload.id,g=xe({},e);return delete g[w],g;case Ce.DESTROY_BY_ROOT_ID:var h=o.payload.rootId;return Object.keys(e).filter(function(v){return v.split(".")[0]!==h}).reduce(function(v,u){var k;return xe({},v,((k={})[u]=e[u],k))},{});default:throw new Error("Unexpected action")}}var Lt="[ERROR]: Modal ID is missing",Uo=function(e){e===void 0&&(e=8);for(var o=[],n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<e;t++)o[t]=n.charAt(Math.floor(62*Math.random()));return o.join("")},ei=["open"],Ho={enforceProvider:!1};function Ko(){return Ho}var ti=["showModal","destroyModalsByRootId"],Rn={disableAutoDestroy:!1};function ht(e){e===void 0&&(e=Rn);var o=xe({},Rn,e).disableAutoDestroy,n=(function(){var l=f.useContext(Wo);if(Ko().enforceProvider&&l===void 0)throw new Error("useModalContext must be used within a ModalProvider");return l||Qr})(),t=n.showModal,s=n.destroyModalsByRootId,a=zo(n,ti),r=f.useRef(Uo(6));return f.useEffect(function(){return function(){!o&&s&&s(r.current)}},[o,s]),xe({showModal:f.useCallback(function(l,i,c){return t(l,i,xe({rootId:r.current,hideOnClose:!0},c))},[t]),destroyModalsByRootId:s},a)}var Pn,Fn,Nn,In,Bn,_n={exports:{}};function ni(){return Fn?Pn:(Fn=1,Pn="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function oi(){if(In)return Nn;In=1;var e=ni();function o(){}function n(){}return n.resetWarningCache=o,Nn=function(){function t(r,l,i,c,d,S){if(S!==e){var y=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 y.name="Invariant Violation",y}}function s(){return t}t.isRequired=t;var a={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:s,element:t,elementType:t,instanceOf:s,node:t,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:o};return a.PropTypes=a,a}}function dn(){return Bn||(Bn=1,_n.exports=oi()()),_n.exports}var Yo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],kt=Yo.join(","),qo=typeof Element>"u",Ue=qo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,xt=!qo&&Element.prototype.getRootNode?function(e){var o;return e==null||(o=e.getRootNode)===null||o===void 0?void 0:o.call(e)}:function(e){return e?.ownerDocument},Ct=function e(o,n){var t;n===void 0&&(n=!0);var s=o==null||(t=o.getAttribute)===null||t===void 0?void 0:t.call(o,"inert");return s===""||s==="true"||n&&o&&e(o.parentNode)},Go=function(e,o,n){if(Ct(e))return[];var t=Array.prototype.slice.apply(e.querySelectorAll(kt));return o&&Ue.call(e,kt)&&t.unshift(e),t=t.filter(n)},Xo=function e(o,n,t){for(var s=[],a=Array.from(o);a.length;){var r=a.shift();if(!Ct(r,!1))if(r.tagName==="SLOT"){var l=r.assignedElements(),i=e(l.length?l:r.children,!0,t);t.flatten?s.push.apply(s,i):s.push({scopeParent:r,candidates:i})}else{Ue.call(r,kt)&&t.filter(r)&&(n||!o.includes(r))&&s.push(r);var c=r.shadowRoot||typeof t.getShadowRoot=="function"&&t.getShadowRoot(r),d=!Ct(c,!1)&&(!t.shadowRootFilter||t.shadowRootFilter(r));if(c&&d){var S=e(c===!0?r.children:c.children,!0,t);t.flatten?s.push.apply(s,S):s.push({scopeParent:r,candidates:S})}else a.unshift.apply(a,r.children)}}return s},Qo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},_e=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||(function(o){var n,t=o==null||(n=o.getAttribute)===null||n===void 0?void 0:n.call(o,"contenteditable");return t===""||t==="true"})(e))&&!Qo(e)?0:e.tabIndex},ri=function(e,o){return e.tabIndex===o.tabIndex?e.documentOrder-o.documentOrder:e.tabIndex-o.tabIndex},Jo=function(e){return e.tagName==="INPUT"},ii=function(e){return(function(o){return Jo(o)&&o.type==="radio"})(e)&&!(function(o){if(!o.name)return!0;var n,t=o.form||xt(o),s=function(r){return t.querySelectorAll('input[type="radio"][name="'+r+'"]')};if(typeof window<"u"&&window.CSS!==void 0&&typeof window.CSS.escape=="function")n=s(window.CSS.escape(o.name));else try{n=s(o.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var a=(function(r,l){for(var i=0;i<r.length;i++)if(r[i].checked&&r[i].form===l)return r[i]})(n,o.form);return!a||a===o})(e)},An=function(e){var o=e.getBoundingClientRect(),n=o.width,t=o.height;return n===0&&t===0},ai=function(e,o){var n=o.displayCheck,t=o.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Ue.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Ue.call(s,"details:not([open]) *"))return!0;if(n&&n!=="full"&&n!=="legacy-full"){if(n==="non-zero-area")return An(e)}else{if(typeof t=="function"){for(var a=e;e;){var r=e.parentElement,l=xt(e);if(r&&!r.shadowRoot&&t(r)===!0)return An(e);e=e.assignedSlot?e.assignedSlot:r||l===e.ownerDocument?r:l.host}e=a}if((function(i){var c,d,S,y,x=i&&xt(i),w=(c=x)===null||c===void 0?void 0:c.host,g=!1;if(x&&x!==i)for(g=!!((d=w)!==null&&d!==void 0&&(S=d.ownerDocument)!==null&&S!==void 0&&S.contains(w)||i!=null&&(y=i.ownerDocument)!==null&&y!==void 0&&y.contains(i));!g&&w;){var h,v,u;g=!((v=w=(h=x=xt(w))===null||h===void 0?void 0:h.host)===null||v===void 0||(u=v.ownerDocument)===null||u===void 0||!u.contains(w))}return g})(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}return!1},Dt=function(e,o){return!(o.disabled||Ct(o)||(function(n){return Jo(n)&&n.type==="hidden"})(o)||ai(o,e)||(function(n){return n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(t){return t.tagName==="SUMMARY"})})(o)||(function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var s=0;s<t.children.length;s++){var a=t.children.item(s);if(a.tagName==="LEGEND")return!!Ue.call(t,"fieldset[disabled] *")||!a.contains(n)}return!0}t=t.parentElement}return!1})(o))},Gt=function(e,o){return!(ii(o)||_e(o)<0||!Dt(e,o))},si=function(e){var o=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(o)||o>=0)},li=function e(o){var n=[],t=[];return o.forEach(function(s,a){var r=!!s.scopeParent,l=r?s.scopeParent:s,i=(function(d,S){var y=_e(d);return y<0&&S&&!Qo(d)?0:y})(l,r),c=r?e(s.candidates):l;i===0?r?n.push.apply(n,c):n.push(l):t.push({documentOrder:a,tabIndex:i,item:s,isScope:r,content:c})}),t.sort(ri).reduce(function(s,a){return a.isScope?s.push.apply(s,a.content):s.push(a.content),s},[]).concat(n)},Zo=function(e,o){var n;return n=(o=o||{}).getShadowRoot?Xo([e],o.includeContainer,{filter:Gt.bind(null,o),flatten:!1,getShadowRoot:o.getShadowRoot,shadowRootFilter:si}):Go(e,o.includeContainer,Gt.bind(null,o)),li(n)},er=function(e,o){return(o=o||{}).getShadowRoot?Xo([e],o.includeContainer,{filter:Dt.bind(null,o),flatten:!0,getShadowRoot:o.getShadowRoot}):Go(e,o.includeContainer,Dt.bind(null,o))},Ve=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return Ue.call(e,kt)!==!1&&Gt(o,e)},ci=Yo.concat("iframe").join(","),wt=function(e,o){if(o=o||{},!e)throw new Error("No node provided");return Ue.call(e,ci)!==!1&&Dt(o,e)};const ui=Object.freeze(Object.defineProperty({__proto__:null,focusable:er,getTabIndex:_e,isFocusable:wt,isTabbable:Ve,tabbable:Zo},Symbol.toStringTag,{value:"Module"}));function Vt(e,o){(o==null||o>e.length)&&(o=e.length);for(var n=0,t=Array(o);n<o;n++)t[n]=e[n];return t}function di(e,o,n){return(o=(function(t){var s=(function(a,r){if(typeof a!="object"||!a)return a;var l=a[Symbol.toPrimitive];if(l!==void 0){var i=l.call(a,r);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)})(t,"string");return typeof s=="symbol"?s:s+""})(o))in e?Object.defineProperty(e,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[o]=n,e}function Ln(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,t)}return n}function Vn(e){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Ln(Object(n),!0).forEach(function(t){di(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pi(e){return(function(o){if(Array.isArray(o))return Vt(o)})(e)||(function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)})(e)||(function(o,n){if(o){if(typeof o=="string")return Vt(o,n);var t={}.toString.call(o).slice(8,-1);return t==="Object"&&o.constructor&&(t=o.constructor.name),t==="Map"||t==="Set"?Array.from(o):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Vt(o,n):void 0}})(e)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9
9
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}var fi=function(e,o){if(e.length>0){var n=e[e.length-1];n!==o&&n._setPausedState(!0)}var t=e.indexOf(o);t===-1||e.splice(t,1),e.push(o)},mi=function(e,o){var n=e.indexOf(o);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},ct=function(e){return e?.key==="Tab"||e?.keyCode===9},hi=function(e){return ct(e)&&!e.shiftKey},gi=function(e){return ct(e)&&e.shiftKey},$n=function(e){return setTimeout(e,0)},ot=function(e){for(var o=arguments.length,n=new Array(o>1?o-1:0),t=1;t<o;t++)n[t-1]=arguments[t];return typeof e=="function"?e.apply(void 0,n):e},gt=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},yi=[];const bi=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:function(e,o){var n,t=o?.document||document,s=o?.trapStack||yi,a=Vn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:hi,isKeyBackward:gi},o),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(C,D,B){return C&&C[D]!==void 0?C[D]:a[B||D]},i=function(C,D){var B=typeof D?.composedPath=="function"?D.composedPath():void 0;return r.containerGroups.findIndex(function(T){var I=T.container,_=T.tabbableNodes;return I.contains(C)||B?.includes(I)||_.find(function(V){return V===C})})},c=function(C){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=D.hasFallback,T=B!==void 0&&B,I=D.params,_=I===void 0?[]:I,V=a[C];if(typeof V=="function"&&(V=V.apply(void 0,pi(_))),V===!0&&(V=void 0),!V){if(V===void 0||V===!1)return V;throw new Error("`".concat(C,"` was specified but was not a node, or did not return a node"))}var z=V;if(typeof V=="string"){try{z=t.querySelector(V)}catch(H){throw new Error("`".concat(C,'` appears to be an invalid selector; error="').concat(H.message,'"'))}if(!z&&!T)throw new Error("`".concat(C,"` as selector refers to no known node"))}return z},d=function(){var C=c("initialFocus",{hasFallback:!0});if(C===!1)return!1;if(C===void 0||C&&!wt(C,a.tabbableOptions))if(i(t.activeElement)>=0)C=t.activeElement;else{var D=r.tabbableGroups[0];C=D&&D.firstTabbableNode||c("fallbackFocus")}else C===null&&(C=c("fallbackFocus"));if(!C)throw new Error("Your focus-trap needs to have at least one focusable element");return C},S=function(){if(r.containerGroups=r.containers.map(function(C){var D=Zo(C,a.tabbableOptions),B=er(C,a.tabbableOptions),T=D.length>0?D[0]:void 0,I=D.length>0?D[D.length-1]:void 0,_=B.find(function(H){return Ve(H)}),V=B.slice().reverse().find(function(H){return Ve(H)}),z=!!D.find(function(H){return _e(H)>0});return{container:C,tabbableNodes:D,focusableNodes:B,posTabIndexesFound:z,firstTabbableNode:T,lastTabbableNode:I,firstDomTabbableNode:_,lastDomTabbableNode:V,nextTabbableNode:function(H){var Z=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],X=D.indexOf(H);return X<0?Z?B.slice(B.indexOf(H)+1).find(function(J){return Ve(J)}):B.slice(0,B.indexOf(H)).reverse().find(function(J){return Ve(J)}):D[X+(Z?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(C){return C.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(C){return C.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},y=function(C){var D=C.activeElement;if(D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?y(D.shadowRoot):D},x=function(C){C!==!1&&C!==y(document)&&(C&&C.focus?(C.focus({preventScroll:!!a.preventScroll}),r.mostRecentlyFocusedNode=C,(function(D){return D.tagName&&D.tagName.toLowerCase()==="input"&&typeof D.select=="function"})(C)&&C.select()):x(d()))},w=function(C){var D=c("setReturnFocus",{params:[C]});return D||D!==!1&&C},g=function(C){var D=C.target,B=C.event,T=C.isBackward,I=T!==void 0&&T;D=D||gt(B),S();var _=null;if(r.tabbableGroups.length>0){var V=i(D,B),z=V>=0?r.containerGroups[V]:void 0;if(V<0)_=I?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(I){var H=r.tabbableGroups.findIndex(function(ee){var re=ee.firstTabbableNode;return D===re});if(H<0&&(z.container===D||wt(D,a.tabbableOptions)&&!Ve(D,a.tabbableOptions)&&!z.nextTabbableNode(D,!1))&&(H=V),H>=0){var Z=H===0?r.tabbableGroups.length-1:H-1,X=r.tabbableGroups[Z];_=_e(D)>=0?X.lastTabbableNode:X.lastDomTabbableNode}else ct(B)||(_=z.nextTabbableNode(D,!1))}else{var J=r.tabbableGroups.findIndex(function(ee){var re=ee.lastTabbableNode;return D===re});if(J<0&&(z.container===D||wt(D,a.tabbableOptions)&&!Ve(D,a.tabbableOptions)&&!z.nextTabbableNode(D))&&(J=V),J>=0){var ne=J===r.tabbableGroups.length-1?0:J+1,oe=r.tabbableGroups[ne];_=_e(D)>=0?oe.firstTabbableNode:oe.firstDomTabbableNode}else ct(B)||(_=z.nextTabbableNode(D))}}else _=c("fallbackFocus");return _},h=function(C){var D=gt(C);i(D,C)>=0||(ot(a.clickOutsideDeactivates,C)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):ot(a.allowOutsideClick,C)||C.preventDefault())},v=function(C){var D=gt(C),B=i(D,C)>=0;if(B||D instanceof Document)B&&(r.mostRecentlyFocusedNode=D);else{var T;C.stopImmediatePropagation();var I=!0;if(r.mostRecentlyFocusedNode)if(_e(r.mostRecentlyFocusedNode)>0){var _=i(r.mostRecentlyFocusedNode),V=r.containerGroups[_].tabbableNodes;if(V.length>0){var z=V.findIndex(function(H){return H===r.mostRecentlyFocusedNode});z>=0&&(a.isKeyForward(r.recentNavEvent)?z+1<V.length&&(T=V[z+1],I=!1):z-1>=0&&(T=V[z-1],I=!1))}}else r.containerGroups.some(function(H){return H.tabbableNodes.some(function(Z){return _e(Z)>0})})||(I=!1);else I=!1;I&&(T=g({target:r.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(r.recentNavEvent)})),x(T||r.mostRecentlyFocusedNode||d())}r.recentNavEvent=void 0},u=function(C){(a.isKeyForward(C)||a.isKeyBackward(C))&&(function(D){var B=arguments.length>1&&arguments[1]!==void 0&&arguments[1];r.recentNavEvent=D;var T=g({event:D,isBackward:B});T&&(ct(D)&&D.preventDefault(),x(T))})(C,a.isKeyBackward(C))},k=function(C){var D;((D=C)==null?void 0:D.key)!=="Escape"&&D?.key!=="Esc"&&D?.keyCode!==27||ot(a.escapeDeactivates,C)===!1||(C.preventDefault(),n.deactivate())},M=function(C){var D=gt(C);i(D,C)>=0||ot(a.clickOutsideDeactivates,C)||ot(a.allowOutsideClick,C)||(C.preventDefault(),C.stopImmediatePropagation())},j=function(){if(r.active)return fi(s,n),r.delayInitialFocusTimer=a.delayInitialFocus?$n(function(){x(d())}):x(d()),t.addEventListener("focusin",v,!0),t.addEventListener("mousedown",h,{capture:!0,passive:!1}),t.addEventListener("touchstart",h,{capture:!0,passive:!1}),t.addEventListener("click",M,{capture:!0,passive:!1}),t.addEventListener("keydown",u,{capture:!0,passive:!1}),t.addEventListener("keydown",k),n},$=function(){if(r.active)return t.removeEventListener("focusin",v,!0),t.removeEventListener("mousedown",h,!0),t.removeEventListener("touchstart",h,!0),t.removeEventListener("click",M,!0),t.removeEventListener("keydown",u,!0),t.removeEventListener("keydown",k),n},O=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(function(C){C.some(function(D){return Array.from(D.removedNodes).some(function(B){return B===r.mostRecentlyFocusedNode})})&&x(d())}):void 0,R=function(){O&&(O.disconnect(),r.active&&!r.paused&&r.containers.map(function(C){O.observe(C,{subtree:!0,childList:!0})}))};return n={get active(){return r.active},get paused(){return r.paused},activate:function(C){if(r.active)return this;var D=l(C,"onActivate"),B=l(C,"onPostActivate"),T=l(C,"checkCanFocusTrap");T||S(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=y(t),D?.();var I=function(){T&&S(),j(),R(),B?.()};return T?(T(r.containers.concat()).then(I,I),this):(I(),this)},deactivate:function(C){if(!r.active)return this;var D=Vn({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},C);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,$(),r.active=!1,r.paused=!1,R(),mi(s,n);var B=l(D,"onDeactivate"),T=l(D,"onPostDeactivate"),I=l(D,"checkCanReturnFocus"),_=l(D,"returnFocus","returnFocusOnDeactivate");B?.();var V=function(){$n(function(){_&&x(w(r.nodeFocusedBeforeActivation)),T?.()})};return _&&I?(I(w(r.nodeFocusedBeforeActivation)).then(V,V),this):(V(),this)},pause:function(C){return r.active?(r.manuallyPaused=!0,this._setPausedState(!0,C)):this},unpause:function(C){return r.active?(r.manuallyPaused=!1,s[s.length-1]!==this?this:this._setPausedState(!1,C)):this},updateContainerElements:function(C){var D=[].concat(C).filter(Boolean);return r.containers=D.map(function(B){return typeof B=="string"?t.querySelector(B):B}),r.active&&S(),R(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return r.manuallyPaused}},_setPausedState:{value:function(C,D){if(r.paused===C)return this;if(r.paused=C,C){var B=l(D,"onPause"),T=l(D,"onPostPause");B?.(),$(),R(),T?.()}else{var I=l(D,"onUnpause"),_=l(D,"onPostUnpause");I?.(),S(),j(),R(),_?.()}return this}}}),n.updateContainerElements(e),n}},Symbol.toStringTag,{value:"Module"})),vi=ko(bi),xi=ko(ui);var zn,Wn,wi=(function(){if(Wn)return zn;function e(x){return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},e(x)}function o(x,w,g){return w&&(function(h,v){for(var u=0;u<v.length;u++){var k=v[u];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(h,r(k.key),k)}})(x.prototype,w),Object.defineProperty(x,"prototype",{writable:!1}),x}function n(x,w,g){return w=s(w),(function(h,v){if(v&&(e(v)=="object"||typeof v=="function"))return v;if(v!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u})(h)})(x,t()?Reflect.construct(w,g||[],s(x).constructor):w.apply(x,g))}function t(){try{var x=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t=function(){return!!x})()}function s(x){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},s(x)}function a(x,w){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,h){return g.__proto__=h,g},a(x,w)}function r(x){var w=(function(g,h){if(e(g)!="object"||!g)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var u=v.call(g,h);if(e(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(g)})(x,"string");return e(w)=="symbol"?w:w+""}Wn=1;var l=f,i=dn(),c=vi.createFocusTrap,d=xi.isFocusable,S=(function(x){function w(g){var h;(function(k,M){if(!(k instanceof M))throw new TypeError("Cannot call a class as a function")})(this,w),(function(k,M,j){(M=r(M))in k?Object.defineProperty(k,M,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[M]=j})(h=n(this,w,[g]),"getNodeForOption",function(k){var M,j=(M=this.internalOptions[k])!==null&&M!==void 0?M:this.originalOptions[k];if(typeof j=="function"){for(var $=arguments.length,O=new Array($>1?$-1:0),R=1;R<$;R++)O[R-1]=arguments[R];j=j.apply(void 0,O)}if(j===!0&&(j=void 0),!j){if(j===void 0||j===!1)return j;throw new Error("`".concat(k,"` was specified but was not a node, or did not return a node"))}var C,D=j;if(typeof j=="string"&&!(D=(C=this.getDocument())===null||C===void 0?void 0:C.querySelector(j)))throw new Error("`".concat(k,"` as selector refers to no known node"));return D}),h.handleDeactivate=h.handleDeactivate.bind(h),h.handlePostDeactivate=h.handlePostDeactivate.bind(h),h.handleClickOutsideDeactivates=h.handleClickOutsideDeactivates.bind(h),h.internalOptions={returnFocusOnDeactivate:!1,checkCanReturnFocus:null,onDeactivate:h.handleDeactivate,onPostDeactivate:h.handlePostDeactivate,clickOutsideDeactivates:h.handleClickOutsideDeactivates},h.originalOptions={returnFocusOnDeactivate:!0,onDeactivate:null,onPostDeactivate:null,checkCanReturnFocus:null,clickOutsideDeactivates:!1};var v=g.focusTrapOptions;for(var u in v)Object.prototype.hasOwnProperty.call(v,u)&&(u!=="returnFocusOnDeactivate"&&u!=="onDeactivate"&&u!=="onPostDeactivate"&&u!=="checkCanReturnFocus"&&u!=="clickOutsideDeactivates"?h.internalOptions[u]=v[u]:h.originalOptions[u]=v[u]);return h.outsideClick=null,h.focusTrapElements=g.containerElements||[],h.updatePreviousElement(),h}return(function(g,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(h&&h.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),h&&a(g,h)})(w,x),o(w,[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||(typeof document<"u"?document:void 0)}},{key:"getReturnFocusNode",value:function(){var g=this.getNodeForOption("setReturnFocus",this.previouslyFocusedElement);return g||g!==!1&&this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var g=this.getDocument();g&&(this.previouslyFocusedElement=g.activeElement)}},{key:"deactivateTrap",value:function(){this.focusTrap&&this.focusTrap.active&&this.focusTrap.deactivate({returnFocus:!1,checkCanReturnFocus:null,onDeactivate:this.originalOptions.onDeactivate})}},{key:"handleClickOutsideDeactivates",value:function(g){var h=typeof this.originalOptions.clickOutsideDeactivates=="function"?this.originalOptions.clickOutsideDeactivates.call(null,g):this.originalOptions.clickOutsideDeactivates;return h&&(this.outsideClick={target:g.target,allowDeactivation:h}),h}},{key:"handleDeactivate",value:function(){this.originalOptions.onDeactivate&&this.originalOptions.onDeactivate.call(null),this.deactivateTrap()}},{key:"handlePostDeactivate",value:function(){var g=this,h=function(){var v=g.getReturnFocusNode(),u=!(!g.originalOptions.returnFocusOnDeactivate||v==null||!v.focus||g.outsideClick&&(!g.outsideClick.allowDeactivation||d(g.outsideClick.target,g.internalOptions.tabbableOptions))),k=g.internalOptions.preventScroll,M=k!==void 0&&k;u&&v.focus({preventScroll:M}),g.originalOptions.onPostDeactivate&&g.originalOptions.onPostDeactivate.call(null),g.outsideClick=null};this.originalOptions.checkCanReturnFocus?this.originalOptions.checkCanReturnFocus.call(null,this.getReturnFocusNode()).then(h,h):h()}},{key:"setupFocusTrap",value:function(){this.focusTrap?this.props.active&&!this.focusTrap.active&&(this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()):this.focusTrapElements.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(this.focusTrapElements,this.internalOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(g){if(this.focusTrap){g.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var h=!g.active&&this.props.active,v=g.active&&!this.props.active,u=!g.paused&&this.props.paused,k=g.paused&&!this.props.paused;if(h&&(this.updatePreviousElement(),this.focusTrap.activate()),v)return void this.deactivateTrap();u&&this.focusTrap.pause(),k&&this.focusTrap.unpause()}else g.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var g=this,h=this.props.children?l.Children.only(this.props.children):void 0;if(h){if(h.type&&h.type===l.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return l.cloneElement(h,{ref:function(v){var u=g.props.containerElements;h&&(typeof h.ref=="function"?h.ref(v):h.ref&&(h.ref.current=v)),g.focusTrapElements=u||[v]}})}return null}}])})(l.Component),y=typeof Element>"u"?Function:Element;return S.propTypes={active:i.bool,paused:i.bool,focusTrapOptions:i.shape({document:i.object,onActivate:i.func,onPostActivate:i.func,checkCanFocusTrap:i.func,onPause:i.func,onPostPause:i.func,onUnpause:i.func,onPostUnpause:i.func,onDeactivate:i.func,onPostDeactivate:i.func,checkCanReturnFocus:i.func,initialFocus:i.oneOfType([i.instanceOf(y),i.string,i.bool,i.func]),fallbackFocus:i.oneOfType([i.instanceOf(y),i.string,i.func]),escapeDeactivates:i.oneOfType([i.bool,i.func]),clickOutsideDeactivates:i.oneOfType([i.bool,i.func]),returnFocusOnDeactivate:i.bool,setReturnFocus:i.oneOfType([i.instanceOf(y),i.string,i.bool,i.func]),allowOutsideClick:i.oneOfType([i.bool,i.func]),preventScroll:i.bool,tabbableOptions:i.shape({displayCheck:i.oneOf(["full","legacy-full","non-zero-area","none"]),getShadowRoot:i.oneOfType([i.bool,i.func])}),trapStack:i.array,isKeyForward:i.func,isKeyBackward:i.func}),containerElements:i.arrayOf(i.instanceOf(y)),children:i.oneOfType([i.element,i.instanceOf(y)])},S.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:c},zn=S})();const Si=So(wi);var Un,rt={exports:{}},Hn={},yt={exports:{}},Kn,de={},Fe={};function Rt(){return Kn||(Kn=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.dontSetMe=function(e,o,n){if(e[o])return new Error(`Invalid prop ${o} passed to ${n} - do not set this, set it on the child.`)},Fe.findInArray=function(e,o){for(let n=0,t=e.length;n<t;n++)if(o.apply(o,[e[n],n,e]))return e[n]},Fe.int=function(e){return parseInt(e,10)},Fe.isFunction=function(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"},Fe.isNum=function(e){return typeof e=="number"&&!isNaN(e)}),Fe}var Yn,qn,Ne={};function pn(){if(qn)return de;qn=1,Object.defineProperty(de,"__esModule",{value:!0}),de.addClassName=r,de.addEvent=function(i,c,d,S){if(!i)return;const y={capture:!0,...S};i.addEventListener?i.addEventListener(c,d,y):i.attachEvent?i.attachEvent("on"+c,d):i["on"+c]=d},de.addUserSelectStyles=function(i){if(!i)return;let c=i.getElementById("react-draggable-style-el");c||(c=i.createElement("style"),c.type="text/css",c.id="react-draggable-style-el",c.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
10
10
|
`,c.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
11
|
-
`,i.getElementsByTagName("head")[0].appendChild(c)),i.body&&r(i.body,"react-draggable-transparent-selection")},de.createCSSTransform=function(i,c){const d=s(i,c,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:d}},de.createSVGTransform=function(i,c){return s(i,c,"")},de.getTouch=function(i,c){return i.targetTouches&&(0,e.findInArray)(i.targetTouches,d=>c===d.identifier)||i.changedTouches&&(0,e.findInArray)(i.changedTouches,d=>c===d.identifier)},de.getTouchIdentifier=function(i){if(i.targetTouches&&i.targetTouches[0])return i.targetTouches[0].identifier;if(i.changedTouches&&i.changedTouches[0])return i.changedTouches[0].identifier},de.getTranslation=s,de.innerHeight=function(i){let c=i.clientHeight;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c-=(0,e.int)(d.paddingTop),c-=(0,e.int)(d.paddingBottom),c},de.innerWidth=function(i){let c=i.clientWidth;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c-=(0,e.int)(d.paddingLeft),c-=(0,e.int)(d.paddingRight),c},de.matchesSelector=t,de.matchesSelectorAndParentsTo=function(i,c,d){let S=i;do{if(t(S,c))return!0;if(S===d)return!1;S=S.parentNode}while(S);return!1},de.offsetXYFromParent=function(i,c,d){const S=c===c.ownerDocument.body?{left:0,top:0}:c.getBoundingClientRect(),y=(i.clientX+c.scrollLeft-S.left)/d,x=(i.clientY+c.scrollTop-S.top)/d;return{x:y,y:x}},de.outerHeight=function(i){let c=i.clientHeight;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c+=(0,e.int)(d.borderTopWidth),c+=(0,e.int)(d.borderBottomWidth),c},de.outerWidth=function(i){let c=i.clientWidth;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c+=(0,e.int)(d.borderLeftWidth),c+=(0,e.int)(d.borderRightWidth),c},de.removeClassName=l,de.removeEvent=function(i,c,d,S){if(!i)return;const y={capture:!0,...S};i.removeEventListener?i.removeEventListener(c,d,y):i.detachEvent?i.detachEvent("on"+c,d):i["on"+c]=null},de.scheduleRemoveUserSelectStyles=function(i){window.requestAnimationFrame?window.requestAnimationFrame(()=>{a(i)}):a(i)};var e=Rt(),o=(function(i,c){if(typeof WeakMap=="function")var d=new WeakMap,S=new WeakMap;return(function(y,x){if(!x&&y&&y.__esModule)return y;var w,g,h={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return h;if(w=x?S:d){if(w.has(y))return w.get(y);w.set(y,h)}for(const v in y)v!=="default"&&{}.hasOwnProperty.call(y,v)&&((g=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,v))&&(g.get||g.set)?w(h,v,g):h[v]=y[v]);return h})(i,c)})((function(){if(Yn)return Ne;Yn=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.browserPrefixToKey=d,Ne.browserPrefixToStyle=function(S,y){return y?`-${y.toLowerCase()}-${S}`:S},Ne.default=void 0,Ne.getPrefix=c;const i=["Moz","Webkit","O","ms"];function c(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const y=window.document?.documentElement?.style;if(!y||S in y)return"";for(let x=0;x<i.length;x++)if(d(S,i[x])in y)return i[x];return""}function d(S,y){return y?`${y}${(function(x){let w="",g=!0;for(let h=0;h<x.length;h++)g?(w+=x[h].toUpperCase(),g=!1):x[h]==="-"?g=!0:w+=x[h];return w})(S)}`:S}return Ne.default=c(),Ne})());let n="";function t(i,c){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(d){return(0,e.isFunction)(i[d])})),!!(0,e.isFunction)(i[n])&&i[n](c)}function s(i,c,d){let{x:S,y}=i,x=`translate(${S}${d},${y}${d})`;return c&&(x=`translate(${`${typeof c.x=="string"?c.x:c.x+d}`}, ${`${typeof c.y=="string"?c.y:c.y+d}`})`+x),x}function a(i){if(i)try{if(i.body&&l(i.body,"react-draggable-transparent-selection"),i.selection)i.selection.empty();else{const c=(i.defaultView||window).getSelection();c&&c.type!=="Caret"&&c.removeAllRanges()}}catch{}}function r(i,c){i.classList?i.classList.add(c):i.className.match(new RegExp(`(?:^|\\s)${c}(?!\\S)`))||(i.className+=` ${c}`)}function l(i,c){i.classList?i.classList.remove(c):i.className=i.className.replace(new RegExp(`(?:^|\\s)${c}(?!\\S)`,"g"),"")}return de}var Gn,Me={};function tr(){if(Gn)return Me;Gn=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.canDragX=function(t){return t.props.axis==="both"||t.props.axis==="x"},Me.canDragY=function(t){return t.props.axis==="both"||t.props.axis==="y"},Me.createCoreData=function(t,s,a){const r=!(0,e.isNum)(t.lastX),l=n(t);return r?{node:l,deltaX:0,deltaY:0,lastX:s,lastY:a,x:s,y:a}:{node:l,deltaX:s-t.lastX,deltaY:a-t.lastY,lastX:t.lastX,lastY:t.lastY,x:s,y:a}},Me.createDraggableData=function(t,s){const a=t.props.scale;return{node:s.node,x:t.state.x+s.deltaX/a,y:t.state.y+s.deltaY/a,deltaX:s.deltaX/a,deltaY:s.deltaY/a,lastX:t.state.x,lastY:t.state.y}},Me.getBoundPosition=function(t,s,a){if(!t.props.bounds)return[s,a];let{bounds:r}=t.props;r=typeof r=="string"?r:(function(i){return{left:i.left,top:i.top,right:i.right,bottom:i.bottom}})(r);const l=n(t);if(typeof r=="string"){const{ownerDocument:i}=l,c=i.defaultView;let d;if(r==="parent"?d=l.parentNode:d=l.getRootNode().querySelector(r),!(d instanceof c.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const S=d,y=c.getComputedStyle(l),x=c.getComputedStyle(S);r={left:-l.offsetLeft+(0,e.int)(x.paddingLeft)+(0,e.int)(y.marginLeft),top:-l.offsetTop+(0,e.int)(x.paddingTop)+(0,e.int)(y.marginTop),right:(0,o.innerWidth)(S)-(0,o.outerWidth)(l)-l.offsetLeft+(0,e.int)(x.paddingRight)-(0,e.int)(y.marginRight),bottom:(0,o.innerHeight)(S)-(0,o.outerHeight)(l)-l.offsetTop+(0,e.int)(x.paddingBottom)-(0,e.int)(y.marginBottom)}}return(0,e.isNum)(r.right)&&(s=Math.min(s,r.right)),(0,e.isNum)(r.bottom)&&(a=Math.min(a,r.bottom)),(0,e.isNum)(r.left)&&(s=Math.max(s,r.left)),(0,e.isNum)(r.top)&&(a=Math.max(a,r.top)),[s,a]},Me.getControlPosition=function(t,s,a){const r=typeof s=="number"?(0,o.getTouch)(t,s):null;if(typeof s=="number"&&!r)return null;const l=n(a),i=a.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,o.offsetXYFromParent)(r||t,i,a.props.scale)},Me.snapToGrid=function(t,s,a){const r=Math.round(s/t[0])*t[0],l=Math.round(a/t[1])*t[1];return[r,l]};var e=Rt(),o=pn();function n(t){const s=t.findDOMNode();if(!s)throw new Error("<DraggableCore>: Unmounted during event!");return s}return Me}var Xn,Qn,Jn,Zn,it={},bt={};function nr(){return Xn||(Xn=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=function(){}),bt}function ki(){if(Qn)return it;Qn=1,Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0;var e=(function(x,w){if(typeof WeakMap=="function")var g=new WeakMap,h=new WeakMap;return(function(v,u){if(!u&&v&&v.__esModule)return v;var k,M,j={__proto__:null,default:v};if(v===null||typeof v!="object"&&typeof v!="function")return j;if(k=u?h:g){if(k.has(v))return k.get(v);k.set(v,j)}for(const $ in v)$!=="default"&&{}.hasOwnProperty.call(v,$)&&((M=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(v,$))&&(M.get||M.set)?k(j,$,M):j[$]=v[$]);return j})(x,w)})(f),o=l(dn()),n=l(en),t=pn(),s=tr(),a=Rt(),r=l(nr());function l(x){return x&&x.__esModule?x:{default:x}}function i(x,w,g){return(w=(function(h){var v=(function(u,k){if(typeof u!="object"||!u)return u;var M=u[Symbol.toPrimitive];if(M!==void 0){var j=M.call(u,k);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(u)})(h,"string");return typeof v=="symbol"?v:v+""})(w))in x?Object.defineProperty(x,w,{value:g,enumerable:!0,configurable:!0,writable:!0}):x[w]=g,x}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let S=d,y=class extends e.Component{constructor(){super(...arguments),i(this,"dragging",!1),i(this,"lastX",NaN),i(this,"lastY",NaN),i(this,"touchIdentifier",null),i(this,"mounted",!1),i(this,"handleDragStart",x=>{if(this.props.onMouseDown(x),!this.props.allowAnyClick&&typeof x.button=="number"&&x.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:g}=w;if(this.props.disabled||!(x.target instanceof g.defaultView.Node)||this.props.handle&&!(0,t.matchesSelectorAndParentsTo)(x.target,this.props.handle,w)||this.props.cancel&&(0,t.matchesSelectorAndParentsTo)(x.target,this.props.cancel,w))return;x.type!=="touchstart"||this.props.allowMobileScroll||x.preventDefault();const h=(0,t.getTouchIdentifier)(x);this.touchIdentifier=h;const v=(0,s.getControlPosition)(x,h,this);if(v==null)return;const{x:u,y:k}=v,M=(0,s.createCoreData)(this,u,k);(0,r.default)("DraggableCore: handleDragStart: %j",M),(0,r.default)("calling",this.props.onStart),this.props.onStart(x,M)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,t.addUserSelectStyles)(g),this.dragging=!0,this.lastX=u,this.lastY=k,(0,t.addEvent)(g,S.move,this.handleDrag),(0,t.addEvent)(g,S.stop,this.handleDragStop))}),i(this,"handleDrag",x=>{const w=(0,s.getControlPosition)(x,this.touchIdentifier,this);if(w==null)return;let{x:g,y:h}=w;if(Array.isArray(this.props.grid)){let u=g-this.lastX,k=h-this.lastY;if([u,k]=(0,s.snapToGrid)(this.props.grid,u,k),!u&&!k)return;g=this.lastX+u,h=this.lastY+k}const v=(0,s.createCoreData)(this,g,h);if((0,r.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(x,v)!==!1&&this.mounted!==!1)this.lastX=g,this.lastY=h;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}}),i(this,"handleDragStop",x=>{if(!this.dragging)return;const w=(0,s.getControlPosition)(x,this.touchIdentifier,this);if(w==null)return;let{x:g,y:h}=w;if(Array.isArray(this.props.grid)){let k=g-this.lastX||0,M=h-this.lastY||0;[k,M]=(0,s.snapToGrid)(this.props.grid,k,M),g=this.lastX+k,h=this.lastY+M}const v=(0,s.createCoreData)(this,g,h);if(this.props.onStop(x,v)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(u.ownerDocument),(0,r.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,r.default)("DraggableCore: Removing handlers"),(0,t.removeEvent)(u.ownerDocument,S.move,this.handleDrag),(0,t.removeEvent)(u.ownerDocument,S.stop,this.handleDragStop))}),i(this,"onMouseDown",x=>(S=d,this.handleDragStart(x))),i(this,"onMouseUp",x=>(S=d,this.handleDragStop(x))),i(this,"onTouchStart",x=>(S=c,this.handleDragStart(x))),i(this,"onTouchEnd",x=>(S=c,this.handleDragStop(x)))}componentDidMount(){this.mounted=!0;const x=this.findDOMNode();x&&(0,t.addEvent)(x,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const x=this.findDOMNode();if(x){const{ownerDocument:w}=x;(0,t.removeEvent)(w,d.move,this.handleDrag),(0,t.removeEvent)(w,c.move,this.handleDrag),(0,t.removeEvent)(w,d.stop,this.handleDragStop),(0,t.removeEvent)(w,c.stop,this.handleDragStop),(0,t.removeEvent)(x,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(w)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return it.default=y,i(y,"displayName","DraggableCore"),i(y,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(x,w){if(x[w]&&x[w].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),i(y,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),it}function Ci(){return Jn||(Jn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return i.default}}),e.default=void 0;var o=(function(w,g){if(typeof WeakMap=="function")var h=new WeakMap,v=new WeakMap;return(function(u,k){if(!k&&u&&u.__esModule)return u;var M,j,$={__proto__:null,default:u};if(u===null||typeof u!="object"&&typeof u!="function")return $;if(M=k?v:h){if(M.has(u))return M.get(u);M.set(u,$)}for(const O in u)O!=="default"&&{}.hasOwnProperty.call(u,O)&&((j=(M=Object.defineProperty)&&Object.getOwnPropertyDescriptor(u,O))&&(j.get||j.set)?M($,O,j):$[O]=u[O]);return $})(w,g)})(f),n=d(dn()),t=d(en),s=(function(){if(Un)return yt.exports;function w(h){var v,u,k="";if(typeof h=="string"||typeof h=="number")k+=h;else if(typeof h=="object")if(Array.isArray(h)){var M=h.length;for(v=0;v<M;v++)h[v]&&(u=w(h[v]))&&(k&&(k+=" "),k+=u)}else for(u in h)h[u]&&(k&&(k+=" "),k+=u);return k}function g(){for(var h,v,u=0,k="",M=arguments.length;u<M;u++)(h=arguments[u])&&(v=w(h))&&(k&&(k+=" "),k+=v);return k}return Un=1,yt.exports=g,yt.exports.clsx=g,yt.exports})(),a=pn(),r=tr(),l=Rt(),i=d(ki()),c=d(nr());function d(w){return w&&w.__esModule?w:{default:w}}function S(){return S=Object.assign?Object.assign.bind():function(w){for(var g=1;g<arguments.length;g++){var h=arguments[g];for(var v in h)({}).hasOwnProperty.call(h,v)&&(w[v]=h[v])}return w},S.apply(null,arguments)}function y(w,g,h){return(g=(function(v){var u=(function(k,M){if(typeof k!="object"||!k)return k;var j=k[Symbol.toPrimitive];if(j!==void 0){var $=j.call(k,M);if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(k)})(v,"string");return typeof u=="symbol"?u:u+""})(g))in w?Object.defineProperty(w,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):w[g]=h,w}class x extends o.Component{static getDerivedStateFromProps(g,h){let{position:v}=g,{prevPropsPosition:u}=h;return!v||u&&v.x===u.x&&v.y===u.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:u}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(g){super(g),y(this,"onDragStart",(h,v)=>{if((0,c.default)("Draggable: onDragStart: %j",v),this.props.onStart(h,(0,r.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(h,v)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",v);const u=(0,r.createDraggableData)(this,v),k={x:u.x,y:u.y,slackX:0,slackY:0};if(this.props.bounds){const{x:M,y:j}=k;k.x+=this.state.slackX,k.y+=this.state.slackY;const[$,O]=(0,r.getBoundPosition)(this,k.x,k.y);k.x=$,k.y=O,k.slackX=this.state.slackX+(M-k.x),k.slackY=this.state.slackY+(j-k.y),u.x=k.x,u.y=k.y,u.deltaX=k.x-this.state.x,u.deltaY=k.y-this.state.y}if(this.props.onDrag(h,u)===!1)return!1;this.setState(k)}),y(this,"onDragStop",(h,v)=>{if(!this.state.dragging||this.props.onStop(h,(0,r.createDraggableData)(this,v))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",v);const u={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:k,y:M}=this.props.position;u.x=k,u.y=M}this.setState(u)}),this.state={dragging:!1,dragged:!1,x:g.position?g.position.x:g.defaultPosition.x,y:g.position?g.position.y:g.defaultPosition.y,prevPropsPosition:{...g.position},slackX:0,slackY:0,isElementSVG:!1},!g.position||g.onDrag||g.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??t.default.findDOMNode(this)}render(){const{axis:g,bounds:h,children:v,defaultPosition:u,defaultClassName:k,defaultClassNameDragging:M,defaultClassNameDragged:j,position:$,positionOffset:O,scale:R,...C}=this.props;let D={},B=null;const T=!$||this.state.dragging,I=$||u,_={x:(0,r.canDragX)(this)&&T?this.state.x:I.x,y:(0,r.canDragY)(this)&&T?this.state.y:I.y};this.state.isElementSVG?B=(0,a.createSVGTransform)(_,O):D=(0,a.createCSSTransform)(_,O);const V=(0,s.clsx)(v.props.className||"",k,{[M]:this.state.dragging,[j]:this.state.dragged});return o.createElement(i.default,S({},C,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(v),{className:V,style:{...v.props.style,...D},transform:B}))}}e.default=x,y(x,"displayName","Draggable"),y(x,"propTypes",{...i.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),y(x,"defaultProps",{...i.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Hn)),Hn}var Di=(function(){if(Zn)return rt.exports;Zn=1;const{default:e,DraggableCore:o}=Ci();return rt.exports=e,rt.exports.default=e,rt.exports.DraggableCore=o,rt.exports})();const Oi=So(Di),eo={x:0,y:0},Ei=f.memo(f.forwardRef((e,o)=>{const{defaultPosition:n=eo,PaperComponent:t=L.Paper,onDragStop:s,rootSel:a=".MuiModal-root",handleSel:r=".draggable-title",titleSize:l,rootSize:i,...c}=e,d=f.useRef(null),S=f.useMemo(()=>l&&i?{left:0,top:0,right:i.width-l.width,bottom:i.height-l.height}:null,[l,i]),[y,x]=f.useState(null),[w,g]=f.useState(null),[h,v]=f.useState(null);return f.useLayoutEffect(()=>{!y&&n&&x(n??eo)},[n]),f.useEffect(()=>{S&&y&&g({x:Math.max(0,Math.min(y.x,S.right)),y:Math.max(0,Math.min(y.y,S.bottom))})},[y,S]),m.jsx(Oi,{nodeRef:d,handle:r,cancel:'[class*="MuiDialogContent-root"]',position:w,bounds:S??".MuiModal-root",onStop:s,onStart:(u,k)=>{const M=u;v({x:(M.clientX??M.touches?.[0]?.clientX)-k.x,y:(M.clientY??M.touches?.[0]?.clientY)-k.y})},onDrag:(u,k)=>{const M=u,j=M.clientX??M.touches?.[0]?.clientX,$=M.clientY??M.touches?.[0]?.clientY;x({x:j-h.x,y:$-h.y})},children:m.jsx(t,{ref:St([d,o]),...c})})})),Mi={x:"50",y:"50"},or=f.memo(f.forwardRef((e,o)=>{const n=We.useThemeProps({props:e,name:"MuiDialog"}),t=We.useTheme(),s={enter:.66*t.transitions.duration.enteringScreen,exit:.66*t.transitions.duration.leavingScreen},{title:a="SheetXL",key:r="draggable-window",onCancel:l,onDone:i,onShow:c,onShown:d,onHide:S,onClose:y,open:x,autoFocusSel:w,children:g,transitionDuration:h=s,TransitionProps:v,slots:u=ve.CommonUtils.EmptyArray,slotProps:k=ve.CommonUtils.EmptyArray,sx:M,className:j,onMouseDown:$,initialPosition:O=Mi,isModal:R=!1,...C}=n;let D=u.transition??L.Fade;const B=u.backdrop??L.Backdrop,T=u.paper??L.Paper;let I=k.transition;v&&(I={...v,...I});const _=k.backdrop,V=k.paper,z=f.useRef(null),[H,Z]=f.useState(null),[X,J]=f.useState(!1),[ne,oe]=f.useState(!1),ee=f.useRef(null),[re,ie]=wn(),p=f.useRef(null),[b,E]=wn(),N=f.useRef(null);f.useEffect(()=>{H&&J(x)},[x,H]);const A=F.useCallbackRef(()=>{l?.(),J(!1)},[l]);f.useEffect(()=>{if(ie.width===0&&ie.height===0||H)return;const U=N.current?.getBoundingClientRect(),he=ie.height-U.height,et=ie.width-U.width;let Pe=.5*et,Nt=.5*he;typeof O?.x=="number"?Pe=O.x:typeof O?.x=="string"&&(Pe=et*(parseFloat(O.x)/100)),typeof O?.y=="number"?Nt=O.y:typeof O?.y=="string"&&(Nt=he*(parseFloat(O.y)/100)),Z({x:Pe,y:Nt})},[ie,E]);const[P,W]=f.useState(!1),[Y,q]=f.useState(null),[Q,te]=f.useState(null),ae=F.useCallbackRef(U=>{if(Y)return Y.focus(U),!0;if(w){const he=p.current?.querySelectorAll?.(w);if(he&&he.length>0)return he[0]?.focus?.(U),!0}return p.current?.focus?.(U),!1},[Y,w]),ue=F.useImperativeElement(o,()=>({focus:U=>{ae(U)}}),[]),Oe={...I,onExited:U=>{i?.(null),I?.onExited?.(U)},onExit:U=>{const he=Q;he&&requestAnimationFrame(()=>{ue.current?.contains(document.activeElement)&&he.focus()}),S?.(),oe(!1),I?.onExit?.(U)},onEntered:(U,he)=>{c?.(),I?.onEntered?.(U,he)},onEntering:(U,he)=>{oe(!0),d?.(ue.current)}};f.useEffect(()=>{ne&&ae()},[ne]);let be=m.jsx(Si,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:z,active:ne,children:m.jsx(D,{in:X,timeout:h,role:"presentation",...Oe,children:m.jsx(L.Box,{className:"MuiDialog-container",ref:p,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:U=>{U.which===F.KeyCodes.Escape&&(A(),ee.current?.start(U,{center:!1}),setTimeout(()=>ee.current?.stop(U),180)),U.stopPropagation()},children:m.jsxs(Ei,{ref:St([N,o]),className:ge({"Mui-focusVisible":P},j,"draggable"),sx:{"& *":U=>sn(U),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:U=>`solid ${se.alpha(U.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:U=>`solid ${se.alpha(U.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...M},defaultPosition:H,titleSize:E,rootSize:ie,PaperComponent:T,...C,...V,children:[a?m.jsx(L.DialogTitle,{className:ge({"Mui-selected":P},"draggable-title"),sx:{cursor:"move",display:"flex",color:U=>U.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:U=>`${U.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:U=>U.transitions.duration.shortest/2+"ms"},backgroundColor:U=>se.alpha(U.palette.action.hover,.03)},ref:b,children:m.jsxs(L.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:U=>U.spacing(1),marginLeft:U=>U.spacing(1),marginRight:U=>U.spacing(1)},children:[m.jsx(L.Box,{sx:{flex:"1 1 100%",paddingLeft:U=>U.spacing(1)},children:a}),m.jsx(Ke,{label:"Close",children:m.jsx(L.IconButton,{"aria-label":"close",sx:{color:U=>U.palette.text.icon??U.palette.action.active},touchRippleRef:ee,onPointerDown:U=>{ee.current?.start(U,{center:!1}),U.stopPropagation(),U.preventDefault()},onPointerUp:A,children:m.jsx(F.DynamicIcon,{iconKey:"Close"})})})]})}):null,g]})})})}),G=null;R&&(G=m.jsx(B,{..._,open:X,onMouseDown:U=>{A(),_?.onMouseDown?.(U)},onClick:U=>{y?.(U,"backdropClick"),_?.onClick?.(U)},sx:{pointerEvents:"auto",..._?.sx}}));const{getPortalContainer:le}=F.useFullscreenPortal();return en.createPortal(m.jsxs(L.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:St([ue,re]),onPointerDown:U=>{P&&(U.target===p.current||U.target.tabIndex<0)&&p.current?.contains(document.activeElement)},onContextMenu:U=>{U.isPropagationStopped()||U.preventDefault()},onFocus:U=>{!P&&(U.target===p.current||U.target.tabIndex<0)&&setTimeout(()=>{ae()},100),z.current?.focusTrap?.unpause(),W(!0),p.current?.contains(U.target)&&U.target!==p.current&&q(U.target),U.relatedTarget&&!Q&&te(U.relatedTarget)},onBlur:U=>{ue?.current?.contains(U.relatedTarget)||(te(null),z.current?.focusTrap?.pause(),W(!1))},children:[G,be]}),le(),r+"")}));var De=typeof window<"u"?window:{screen:{},navigator:{}},Ze=(De.matchMedia||function(){return{matches:!1}}).bind(De),Ti={get passive(){return!0}},to=function(){};De.addEventListener&&De.addEventListener("p",to,Ti),De.removeEventListener&&De.removeEventListener("p",to,!1);var fn="ontouchstart"in De,ji=fn||"TouchEvent"in De&&Ze("(any-pointer: coarse)").matches,no=(De.navigator.maxTouchPoints||0)>0||ji,rr=De.navigator.userAgent||"",Ri=Ze("(pointer: coarse)").matches&&/iPad|Macintosh/.test(rr)&&Math.min(De.screen.width||0,De.screen.height||0)>=768,ir=(Ze("(pointer: coarse)").matches||!Ze("(pointer: fine)").matches&&fn)&&!/Windows.*Firefox/.test(rr),Pi=Ze("(any-pointer: fine)").matches||Ze("(any-hover: hover)").matches||Ri||!fn,oo=!no||!Pi&&ir?no?"touchOnly":"mouseOnly":"hybrid",Fi=oo==="mouseOnly"?"mouse":oo==="touchOnly"||ir?"touch":"mouse",ut=e=>e.type==="checkbox",$e=e=>e instanceof Date,we=e=>e==null;const ar=e=>typeof e=="object";var me=e=>!we(e)&&!Array.isArray(e)&&ar(e)&&!$e(e),mn=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function ye(e){let o;const n=Array.isArray(e),t=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)o=new Date(e);else{if(mn&&(e instanceof Blob||t)||!n&&!me(e))return e;if(o=n?[]:Object.create(Object.getPrototypeOf(e)),n||(s=>{const a=s.constructor&&s.constructor.prototype;return me(a)&&a.hasOwnProperty("isPrototypeOf")})(e))for(const s in e)e.hasOwnProperty(s)&&(o[s]=ye(e[s]));else o=e}return o}var Pt=e=>/^\w*$/.test(e),fe=e=>e===void 0,Xt=e=>Array.isArray(e)?e.filter(Boolean):[],hn=e=>Xt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,o,n)=>{if(!o||!me(e))return n;const t=(Pt(o)?[o]:hn(o)).reduce((s,a)=>we(s)?s:s[a],e);return fe(t)||t===e?fe(e[o])?n:e[o]:t},Te=e=>typeof e=="boolean",ce=(e,o,n)=>{let t=-1;const s=Pt(o)?[o]:hn(o),a=s.length,r=a-1;for(;++t<a;){const l=s[t];let i=n;if(t!==r){const c=e[l];i=me(c)||Array.isArray(c)?c:isNaN(+s[t+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=i,e=e[l]}};const Ni="blur",Ii="focusout",Bi="onBlur",sr="onChange",lr="onSubmit",_i="onTouched",pt="all",Ai="max",Li="min",Vi="maxLength",$i="minLength",ro="pattern",io="required",zi="validate",cr=f.createContext(null);cr.displayName="HookFormContext";const Wi=e=>{const{children:o,...n}=e;return f.createElement(cr.Provider,{value:n},o)},Ui=typeof window<"u"?f.useLayoutEffect:f.useEffect;var ke=e=>typeof e=="string",Qt=e=>we(e)||!ar(e);function Ae(e,o,n=new WeakSet){if(Qt(e)||Qt(o))return e===o;if($e(e)&&$e(o))return e.getTime()===o.getTime();const t=Object.keys(e),s=Object.keys(o);if(t.length!==s.length)return!1;if(n.has(e)||n.has(o))return!0;n.add(e),n.add(o);for(const a of t){const r=e[a];if(!s.includes(a))return!1;if(a!=="ref"){const l=o[a];if($e(r)&&$e(l)||me(r)&&me(l)||Array.isArray(r)&&Array.isArray(l)?!Ae(r,l,n):r!==l)return!1}}return!0}var Hi=(e,o,n,t,s)=>o?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[t]:s||!0}}:{},st=e=>Array.isArray(e)?e:[e],ao=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}};function ur(e,o){const n={};for(const t in e)if(e.hasOwnProperty(t)){const s=e[t],a=o[t];if(s&&me(s)&&a){const r=ur(s,a);me(r)&&(n[t]=r)}else e[t]&&(n[t]=a)}return n}var Se=e=>me(e)&&!Object.keys(e).length,gn=e=>e.type==="file",Ee=e=>typeof e=="function",Ot=e=>{if(!mn)return!1;const o=e?e.ownerDocument:0;return e instanceof(o&&o.defaultView?o.defaultView.HTMLElement:HTMLElement)},dr=e=>e.type==="select-multiple",yn=e=>e.type==="radio",$t=e=>Ot(e)&&e.isConnected;function pe(e,o){const n=Array.isArray(o)?o:Pt(o)?[o]:hn(o),t=n.length===1?e:(function(r,l){const i=l.slice(0,-1).length;let c=0;for(;c<i;)r=fe(r)?c++:r[l[c++]];return r})(e,n),s=n.length-1,a=n[s];return t&&delete t[a],s!==0&&(me(t)&&Se(t)||Array.isArray(t)&&(function(r){for(const l in r)if(r.hasOwnProperty(l)&&!fe(r[l]))return!1;return!0})(t))&&pe(e,n.slice(0,-1)),e}function pr(e){return Array.isArray(e)||me(e)&&!(o=>{for(const n in o)if(Ee(o[n]))return!0;return!1})(e)}function Jt(e,o={}){for(const n in e)pr(e[n])?(o[n]=Array.isArray(e[n])?[]:{},Jt(e[n],o[n])):we(e[n])||(o[n]=!0);return o}function qe(e,o,n){n||(n=Jt(o));for(const t in e)pr(e[t])?fe(o)||Qt(n[t])?n[t]=Jt(e[t],Array.isArray(e[t])?[]:{}):qe(e[t],we(o)?{}:o[t],n[t]):n[t]=!Ae(e[t],o[t]);return n}const so={value:!1,isValid:!1},lo={value:!0,isValid:!0};var fr=e=>{if(Array.isArray(e)){if(e.length>1){const o=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:o,isValid:!!o.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fe(e[0].attributes.value)?fe(e[0].value)||e[0].value===""?lo:{value:e[0].value,isValid:!0}:lo:so}return so},mr=(e,{valueAsNumber:o,valueAsDate:n,setValueAs:t})=>fe(e)?e:o?e===""?NaN:e&&+e:n&&ke(e)?new Date(e):t?t(e):e;const co={isValid:!1,value:null};var hr=e=>Array.isArray(e)?e.reduce((o,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:o,co):co;function uo(e){const o=e.ref;return gn(o)?o.files:yn(o)?hr(e.refs).value:dr(o)?[...o.selectedOptions].map(({value:n})=>n):ut(o)?fr(e.refs).value:mr(fe(o.value)?e.ref.value:o.value,e)}var Et=e=>e instanceof RegExp,at=e=>fe(e)?e:Et(e)?e.source:me(e)?Et(e.value)?e.value.source:e.value:e,po=e=>({isOnSubmit:!e||e===lr,isOnBlur:e===Bi,isOnChange:e===sr,isOnAll:e===pt,isOnTouch:e===_i});const fo="AsyncFunction";var Ki=e=>!!e&&!!e.validate&&!!(Ee(e.validate)&&e.validate.constructor.name===fo||me(e.validate)&&Object.values(e.validate).find(o=>o.constructor.name===fo)),mo=(e,o,n)=>!n&&(o.watchAll||o.watch.has(e)||[...o.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const dt=(e,o,n,t)=>{for(const s of n||Object.keys(e)){const a=K(e,s);if(a){const{_f:r,...l}=a;if(r){if(r.refs&&r.refs[0]&&o(r.refs[0],s)&&!t||r.ref&&o(r.ref,r.name)&&!t)return!0;if(dt(l,o))break}else if(me(l)&&dt(l,o))break}}};function ho(e,o,n){const t=K(e,n);if(t||Pt(n))return{error:t,name:n};const s=n.split(".");for(;s.length;){const a=s.join("."),r=K(o,a),l=K(e,a);if(r&&!Array.isArray(r)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};s.pop()}return{name:n}}var Yi=(e,o,n)=>{const t=st(K(e,n));return ce(t,"root",o[n]),ce(e,n,t),e};function go(e,o,n="validate"){if(ke(e)||Array.isArray(e)&&e.every(ke)||Te(e)&&!e)return{type:n,message:ke(e)?e:"",ref:o}}var Ye=e=>me(e)&&!Et(e)?e:{value:e,message:""},yo=async(e,o,n,t,s,a)=>{const{ref:r,refs:l,required:i,maxLength:c,minLength:d,min:S,max:y,pattern:x,validate:w,name:g,valueAsNumber:h,mount:v}=e._f,u=K(n,g);if(!v||o.has(g))return{};const k=l?l[0]:r,M=T=>{s&&k.reportValidity&&(k.setCustomValidity(Te(T)?"":T||""),k.reportValidity())},j={},$=yn(r),O=ut(r),R=$||O,C=(h||gn(r))&&fe(r.value)&&fe(u)||Ot(r)&&r.value===""||u===""||Array.isArray(u)&&!u.length,D=Hi.bind(null,g,t,j),B=(T,I,_,V=Vi,z=$i)=>{const H=T?I:_;j[g]={type:T?V:z,message:H,ref:r,...D(T?V:z,H)}};if(a?!Array.isArray(u)||!u.length:i&&(!R&&(C||we(u))||Te(u)&&!u||O&&!fr(l).isValid||$&&!hr(l).isValid)){const{value:T,message:I}=ke(i)?{value:!!i,message:i}:Ye(i);if(T&&(j[g]={type:io,message:I,ref:k,...D(io,I)},!t))return M(I),j}if(!(C||we(S)&&we(y))){let T,I;const _=Ye(y),V=Ye(S);if(we(u)||isNaN(u)){const z=r.valueAsDate||new Date(u),H=J=>new Date(new Date().toDateString()+" "+J),Z=r.type=="time",X=r.type=="week";ke(_.value)&&u&&(T=Z?H(u)>H(_.value):X?u>_.value:z>new Date(_.value)),ke(V.value)&&u&&(I=Z?H(u)<H(V.value):X?u<V.value:z<new Date(V.value))}else{const z=r.valueAsNumber||u&&+u;we(_.value)||(T=z>_.value),we(V.value)||(I=z<V.value)}if((T||I)&&(B(!!T,_.message,V.message,Ai,Li),!t))return M(j[g].message),j}if((c||d)&&!C&&(ke(u)||a&&Array.isArray(u))){const T=Ye(c),I=Ye(d),_=!we(T.value)&&u.length>+T.value,V=!we(I.value)&&u.length<+I.value;if((_||V)&&(B(_,T.message,I.message),!t))return M(j[g].message),j}if(x&&!C&&ke(u)){const{value:T,message:I}=Ye(x);if(Et(T)&&!u.match(T)&&(j[g]={type:ro,message:I,ref:r,...D(ro,I)},!t))return M(I),j}if(w){if(Ee(w)){const T=go(await w(u,n),k);if(T&&(j[g]={...T,...D(zi,T.message)},!t))return M(T.message),j}else if(me(w)){let T={};for(const I in w){if(!Se(T)&&!t)break;const _=go(await w[I](u,n),k,I);_&&(T={..._,...D(I,_.message)},M(_.message),t&&(j[g]=T))}if(!Se(T)&&(j[g]={ref:k,...T},!t))return j}}return M(!0),j};const qi={mode:lr,reValidateMode:sr,shouldFocusError:!0};function Gi(e={}){let o,n={...qi,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ee(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},a=(me(n.defaultValues)||me(n.values))&&ye(n.defaultValues||n.values)||{},r=n.shouldUnregister?{}:ye(a),l={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let S={...d};const y={array:ao(),state:ao()},x=n.criteriaMode===pt,w=async p=>{if(!n.disabled&&(d.isValid||S.isValid||p)){const b=n.resolver?Se((await k()).errors):await M(s,!0);b!==t.isValid&&y.state.next({isValid:b})}},g=(p,b)=>{!n.disabled&&(d.isValidating||d.validatingFields||S.isValidating||S.validatingFields)&&((p||Array.from(i.mount)).forEach(E=>{E&&(b?ce(t.validatingFields,E,b):pe(t.validatingFields,E))}),y.state.next({validatingFields:t.validatingFields,isValidating:!Se(t.validatingFields)}))},h=(p,b,E,N)=>{const A=K(s,p);if(A){const P=K(r,p,fe(E)?K(a,p):E);fe(P)||N&&N.defaultChecked||b?ce(r,p,b?P:uo(A._f)):O(p,P),l.mount&&w()}},v=(p,b,E,N,A)=>{let P=!1,W=!1;const Y={name:p};if(!n.disabled){if(!E||N){(d.isDirty||S.isDirty)&&(W=t.isDirty,t.isDirty=Y.isDirty=j(),P=W!==Y.isDirty);const q=Ae(K(a,p),b);W=!!K(t.dirtyFields,p),q?pe(t.dirtyFields,p):ce(t.dirtyFields,p,!0),Y.dirtyFields=t.dirtyFields,P=P||(d.dirtyFields||S.dirtyFields)&&W!==!q}if(E){const q=K(t.touchedFields,p);q||(ce(t.touchedFields,p,E),Y.touchedFields=t.touchedFields,P=P||(d.touchedFields||S.touchedFields)&&q!==E)}P&&A&&y.state.next(Y)}return P?Y:{}},u=(p,b,E,N)=>{const A=K(t.errors,p),P=(d.isValid||S.isValid)&&Te(b)&&t.isValid!==b;var W;if(n.delayError&&E?(W=()=>((Y,q)=>{ce(t.errors,Y,q),y.state.next({errors:t.errors})})(p,E),o=Y=>{clearTimeout(c),c=setTimeout(W,Y)},o(n.delayError)):(clearTimeout(c),o=null,E?ce(t.errors,p,E):pe(t.errors,p)),(E?!Ae(A,E):A)||!Se(N)||P){const Y={...N,...P&&Te(b)?{isValid:b}:{},errors:t.errors,name:p};t={...t,...Y},y.state.next(Y)}},k=async p=>{g(p,!0);const b=await n.resolver(r,n.context,((E,N,A,P)=>{const W={};for(const Y of E){const q=K(N,Y);q&&ce(W,Y,q._f)}return{criteriaMode:A,names:[...E],fields:W,shouldUseNativeValidation:P}})(p||i.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return g(p),b},M=async(p,b,E={valid:!0})=>{for(const N in p){const A=p[N];if(A){const{_f:P,...W}=A;if(P){const Y=i.array.has(P.name),q=A._f&&Ki(A._f);q&&d.validatingFields&&g([P.name],!0);const Q=await yo(A,i.disabled,r,x,n.shouldUseNativeValidation&&!b,Y);if(q&&d.validatingFields&&g([P.name]),Q[P.name]&&(E.valid=!1,b))break;!b&&(K(Q,P.name)?Y?Yi(t.errors,Q,P.name):ce(t.errors,P.name,Q[P.name]):pe(t.errors,P.name))}!Se(W)&&await M(W,b,E)}}return E.valid},j=(p,b)=>!n.disabled&&(p&&b&&ce(r,p,b),!Ae(I(),a)),$=(p,b,E)=>((N,A,P,W,Y)=>ke(N)?(W&&A.watch.add(N),K(P,N,Y)):Array.isArray(N)?N.map(q=>(W&&A.watch.add(q),K(P,q))):(W&&(A.watchAll=!0),P))(p,i,{...l.mount?r:fe(b)?a:ke(p)?{[p]:b}:b},E,b),O=(p,b,E={})=>{const N=K(s,p);let A=b;if(N){const P=N._f;P&&(!P.disabled&&ce(r,p,mr(b,P)),A=Ot(P.ref)&&we(b)?"":b,dr(P.ref)?[...P.ref.options].forEach(W=>W.selected=A.includes(W.value)):P.refs?ut(P.ref)?P.refs.forEach(W=>{W.defaultChecked&&W.disabled||(Array.isArray(A)?W.checked=!!A.find(Y=>Y===W.value):W.checked=A===W.value||!!A)}):P.refs.forEach(W=>W.checked=W.value===A):gn(P.ref)?P.ref.value="":(P.ref.value=A,P.ref.type||y.state.next({name:p,values:ye(r)})))}(E.shouldDirty||E.shouldTouch)&&v(p,A,E.shouldTouch,E.shouldDirty,!0),E.shouldValidate&&T(p)},R=(p,b,E)=>{for(const N in b){if(!b.hasOwnProperty(N))return;const A=b[N],P=p+"."+N,W=K(s,P);(i.array.has(p)||me(A)||W&&!W._f)&&!$e(A)?R(P,A,E):O(P,A,E)}},C=(p,b,E={})=>{const N=K(s,p),A=i.array.has(p),P=ye(b);ce(r,p,P),A?(y.array.next({name:p,values:ye(r)}),(d.isDirty||d.dirtyFields||S.isDirty||S.dirtyFields)&&E.shouldDirty&&y.state.next({name:p,dirtyFields:qe(a,r),isDirty:j(p,P)})):!N||N._f||we(P)?O(p,P,E):R(p,P,E),mo(p,i)&&y.state.next({...t,name:p}),y.state.next({name:l.mount?p:void 0,values:ye(r)})},D=async p=>{l.mount=!0;const b=p.target;let E=b.name,N=!0;const A=K(s,E),P=q=>{N=Number.isNaN(q)||$e(q)&&isNaN(q.getTime())||Ae(q,K(r,E,q))},W=po(n.mode),Y=po(n.reValidateMode);if(A){let q,Q;const te=b.type?uo(A._f):(le=>me(le)&&le.target?ut(le.target)?le.target.checked:le.target.value:le)(p),ae=p.type===Ni||p.type===Ii,ue=!(le=>le.mount&&(le.required||le.min||le.max||le.maxLength||le.minLength||le.pattern||le.validate))(A._f)&&!n.resolver&&!K(t.errors,E)&&!A._f.deps||((le,U,he,et,Pe)=>!Pe.isOnAll&&(!he&&Pe.isOnTouch?!(U||le):(he?et.isOnBlur:Pe.isOnBlur)?!le:!(he?et.isOnChange:Pe.isOnChange)||le))(ae,K(t.touchedFields,E),t.isSubmitted,Y,W),Oe=mo(E,i,ae);ce(r,E,te),ae?b&&b.readOnly||(A._f.onBlur&&A._f.onBlur(p),o&&o(0)):A._f.onChange&&A._f.onChange(p);const be=v(E,te,ae),G=!Se(be)||Oe;if(!ae&&y.state.next({name:E,type:p.type,values:ye(r)}),ue)return(d.isValid||S.isValid)&&(n.mode==="onBlur"?ae&&w():ae||w()),G&&y.state.next({name:E,...Oe?{}:be});if(!ae&&Oe&&y.state.next({...t}),n.resolver){const{errors:le}=await k([E]);if(P(te),N){const U=ho(t.errors,s,E),he=ho(le,s,U.name||E);q=he.error,E=he.name,Q=Se(le)}}else g([E],!0),q=(await yo(A,i.disabled,r,x,n.shouldUseNativeValidation))[E],g([E]),P(te),N&&(q?Q=!1:(d.isValid||S.isValid)&&(Q=await M(s,!0)));N&&(A._f.deps&&(!Array.isArray(A._f.deps)||A._f.deps.length>0)&&T(A._f.deps),u(E,Q,q,be))}},B=(p,b)=>{if(K(t.errors,b)&&p.focus)return p.focus(),1},T=async(p,b={})=>{let E,N;const A=st(p);if(n.resolver){const P=await(async W=>{const{errors:Y}=await k(W);if(W)for(const q of W){const Q=K(Y,q);Q?ce(t.errors,q,Q):pe(t.errors,q)}else t.errors=Y;return Y})(fe(p)?p:A);E=Se(P),N=p?!A.some(W=>K(P,W)):E}else p?(N=(await Promise.all(A.map(async P=>{const W=K(s,P);return await M(W&&W._f?{[P]:W}:W)}))).every(Boolean),(N||t.isValid)&&w()):N=E=await M(s);return y.state.next({...!ke(p)||(d.isValid||S.isValid)&&E!==t.isValid?{}:{name:p},...n.resolver||!p?{isValid:E}:{},errors:t.errors}),b.shouldFocus&&!N&&dt(s,B,p?A:i.mount),N},I=(p,b)=>{let E={...l.mount?r:a};return b&&(E=ur(b.dirtyFields?t.dirtyFields:t.touchedFields,E)),fe(p)?E:ke(p)?K(E,p):p.map(N=>K(E,N))},_=(p,b)=>({invalid:!!K((b||t).errors,p),isDirty:!!K((b||t).dirtyFields,p),error:K((b||t).errors,p),isValidating:!!K(t.validatingFields,p),isTouched:!!K((b||t).touchedFields,p)}),V=(p,b,E)=>{const N=(K(s,p,{_f:{}})._f||{}).ref,A=K(t.errors,p)||{},{ref:P,message:W,type:Y,...q}=A;ce(t.errors,p,{...q,...b,ref:N}),y.state.next({name:p,errors:t.errors,isValid:!1}),E&&E.shouldFocus&&N&&N.focus&&N.focus()},z=p=>y.state.subscribe({next:b=>{var E,N,A;E=p.name,N=b.name,A=p.exact,E&&N&&E!==N&&!st(E).some(P=>P&&(A?P===N:P.startsWith(N)||N.startsWith(P)))||!((P,W,Y,q)=>{Y(P);const{name:Q,...te}=P;return Se(te)||Object.keys(te).length>=Object.keys(W).length||Object.keys(te).find(ae=>W[ae]===(!q||pt))})(b,p.formState||d,re,p.reRenderRoot)||p.callback({values:{...r},...t,...b,defaultValues:a})}}).unsubscribe,H=(p,b={})=>{for(const E of p?st(p):i.mount)i.mount.delete(E),i.array.delete(E),b.keepValue||(pe(s,E),pe(r,E)),!b.keepError&&pe(t.errors,E),!b.keepDirty&&pe(t.dirtyFields,E),!b.keepTouched&&pe(t.touchedFields,E),!b.keepIsValidating&&pe(t.validatingFields,E),!n.shouldUnregister&&!b.keepDefaultValue&&pe(a,E);y.state.next({values:ye(r)}),y.state.next({...t,...b.keepDirty?{isDirty:j()}:{}}),!b.keepIsValid&&w()},Z=({disabled:p,name:b})=>{(Te(p)&&l.mount||p||i.disabled.has(b))&&(p?i.disabled.add(b):i.disabled.delete(b))},X=(p,b={})=>{let E=K(s,p);const N=Te(b.disabled)||Te(n.disabled);return ce(s,p,{...E||{},_f:{...E&&E._f?E._f:{ref:{name:p}},name:p,mount:!0,...b}}),i.mount.add(p),E?Z({disabled:Te(b.disabled)?b.disabled:n.disabled,name:p}):h(p,!0,b.value),{...N?{disabled:b.disabled||n.disabled}:{},...n.progressive?{required:!!b.required,min:at(b.min),max:at(b.max),minLength:at(b.minLength),maxLength:at(b.maxLength),pattern:at(b.pattern)}:{},name:p,onChange:D,onBlur:D,ref:A=>{if(A){X(p,b),E=K(s,p);const P=fe(A.value)&&A.querySelectorAll&&A.querySelectorAll("input,select,textarea")[0]||A,W=(q=>yn(q)||ut(q))(P),Y=E._f.refs||[];if(W?Y.find(q=>q===P):P===E._f.ref)return;ce(s,p,{_f:{...E._f,...W?{refs:[...Y.filter($t),P,...Array.isArray(K(a,p))?[{}]:[]],ref:{type:P.type,name:p}}:{ref:P}}}),h(p,!1,void 0,P)}else E=K(s,p,{}),E._f&&(E._f.mount=!1),(n.shouldUnregister||b.shouldUnregister)&&(!((P,W)=>P.has((Y=>Y.substring(0,Y.search(/\.\d+(\.|$)/))||Y)(W)))(i.array,p)||!l.action)&&i.unMount.add(p)}}},J=()=>n.shouldFocusError&&dt(s,B,i.mount),ne=(p,b)=>async E=>{let N;E&&(E.preventDefault&&E.preventDefault(),E.persist&&E.persist());let A=ye(r);if(y.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:W}=await k();t.errors=P,A=ye(W)}else await M(s);if(i.disabled.size)for(const P of i.disabled)pe(A,P);if(pe(t.errors,"root"),Se(t.errors)){y.state.next({errors:{}});try{await p(A,E)}catch(P){N=P}}else b&&await b({...t.errors},E),J(),setTimeout(J);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Se(t.errors)&&!N,submitCount:t.submitCount+1,errors:t.errors}),N)throw N},oe=(p,b={})=>{const E=p?ye(p):a,N=ye(E),A=Se(p),P=A?a:N;if(b.keepDefaultValues||(a=E),!b.keepValues){if(b.keepDirtyValues){const W=new Set([...i.mount,...Object.keys(qe(a,r))]);for(const Y of Array.from(W))K(t.dirtyFields,Y)?ce(P,Y,K(r,Y)):C(Y,K(P,Y))}else{if(mn&&fe(p))for(const W of i.mount){const Y=K(s,W);if(Y&&Y._f){const q=Array.isArray(Y._f.refs)?Y._f.refs[0]:Y._f.ref;if(Ot(q)){const Q=q.closest("form");if(Q){Q.reset();break}}}}if(b.keepFieldsRef)for(const W of i.mount)C(W,K(P,W));else s={}}r=n.shouldUnregister?b.keepDefaultValues?ye(a):{}:ye(P),y.array.next({values:{...P}}),y.state.next({values:{...P}})}i={mount:b.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!d.isValid||!!b.keepIsValid||!!b.keepDirtyValues,l.watch=!!n.shouldUnregister,y.state.next({submitCount:b.keepSubmitCount?t.submitCount:0,isDirty:!A&&(b.keepDirty?t.isDirty:!(!b.keepDefaultValues||Ae(p,a))),isSubmitted:!!b.keepIsSubmitted&&t.isSubmitted,dirtyFields:A?{}:b.keepDirtyValues?b.keepDefaultValues&&r?qe(a,r):t.dirtyFields:b.keepDefaultValues&&p?qe(a,p):b.keepDirty?t.dirtyFields:{},touchedFields:b.keepTouched?t.touchedFields:{},errors:b.keepErrors?t.errors:{},isSubmitSuccessful:!!b.keepIsSubmitSuccessful&&t.isSubmitSuccessful,isSubmitting:!1,defaultValues:a})},ee=(p,b)=>oe(Ee(p)?p(r):p,b),re=p=>{t={...t,...p}},ie={control:{register:X,unregister:H,getFieldState:_,handleSubmit:ne,setError:V,_subscribe:z,_runSchema:k,_focusError:J,_getWatch:$,_getDirty:j,_setValid:w,_setFieldArray:(p,b=[],E,N,A=!0,P=!0)=>{if(N&&E&&!n.disabled){if(l.action=!0,P&&Array.isArray(K(s,p))){const W=E(K(s,p),N.argA,N.argB);A&&ce(s,p,W)}if(P&&Array.isArray(K(t.errors,p))){const W=E(K(t.errors,p),N.argA,N.argB);A&&ce(t.errors,p,W),((Y,q)=>{!Xt(K(Y,q)).length&&pe(Y,q)})(t.errors,p)}if((d.touchedFields||S.touchedFields)&&P&&Array.isArray(K(t.touchedFields,p))){const W=E(K(t.touchedFields,p),N.argA,N.argB);A&&ce(t.touchedFields,p,W)}(d.dirtyFields||S.dirtyFields)&&(t.dirtyFields=qe(a,r)),y.state.next({name:p,isDirty:j(p,b),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else ce(r,p,b)},_setDisabledField:Z,_setErrors:p=>{t.errors=p,y.state.next({errors:t.errors,isValid:!1})},_getFieldArray:p=>Xt(K(l.mount?r:a,p,n.shouldUnregister?K(a,p,[]):[])),_reset:oe,_resetDefaultValues:()=>Ee(n.defaultValues)&&n.defaultValues().then(p=>{ee(p,n.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const p of i.unMount){const b=K(s,p);b&&(b._f.refs?b._f.refs.every(E=>!$t(E)):!$t(b._f.ref))&&H(p)}i.unMount=new Set},_disableForm:p=>{Te(p)&&(y.state.next({disabled:p}),dt(s,(b,E)=>{const N=K(s,E);N&&(b.disabled=N._f.disabled||p,Array.isArray(N._f.refs)&&N._f.refs.forEach(A=>{A.disabled=N._f.disabled||p}))},0,!1))},_subjects:y,_proxyFormState:d,get _fields(){return s},get _formValues(){return r},get _state(){return l},set _state(p){l=p},get _defaultValues(){return a},get _names(){return i},set _names(p){i=p},get _formState(){return t},get _options(){return n},set _options(p){n={...n,...p}}},subscribe:p=>(l.mount=!0,S={...S,...p.formState},z({...p,formState:S})),trigger:T,register:X,handleSubmit:ne,watch:(p,b)=>Ee(p)?y.state.subscribe({next:E=>"values"in E&&p($(void 0,b),E)}):$(p,b,!0),setValue:C,getValues:I,reset:ee,resetField:(p,b={})=>{K(s,p)&&(fe(b.defaultValue)?C(p,ye(K(a,p))):(C(p,b.defaultValue),ce(a,p,ye(b.defaultValue))),b.keepTouched||pe(t.touchedFields,p),b.keepDirty||(pe(t.dirtyFields,p),t.isDirty=b.defaultValue?j(p,ye(K(a,p))):j()),b.keepError||(pe(t.errors,p),d.isValid&&w()),y.state.next({...t}))},clearErrors:p=>{p&&st(p).forEach(b=>pe(t.errors,b)),y.state.next({errors:p?t.errors:{}})},unregister:H,setError:V,setFocus:(p,b={})=>{const E=K(s,p),N=E&&E._f;if(N){const A=N.refs?N.refs[0]:N.ref;A.focus&&(A.focus(),b.shouldSelect&&Ee(A.select)&&A.select())}},getFieldState:_};return{...ie,formControl:ie}}function Xi(e={}){const o=f.useRef(void 0),n=f.useRef(void 0),[t,s]=f.useState({isDirty:!1,isValidating:!1,isLoading:Ee(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ee(e.defaultValues)?void 0:e.defaultValues});if(!o.current)if(e.formControl)o.current={...e.formControl,formState:t},e.defaultValues&&!Ee(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...l}=Gi(e);o.current={...l,formState:t}}const a=o.current.control;return a._options=e,Ui(()=>{const r=a._subscribe({formState:a._proxyFormState,callback:()=>s({...a._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),a._formState.isReady=!0,r},[a]),f.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),f.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),f.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),f.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),f.useEffect(()=>{if(a._proxyFormState.isDirty){const r=a._getDirty();r!==t.isDirty&&a._subjects.state.next({isDirty:r})}},[a,t.isDirty]),f.useEffect(()=>{e.values&&!Ae(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,s(r=>({...r}))):a._resetDefaultValues()},[a,e.values]),f.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),o.current.formState=((r,l,i,c=!0)=>{const d={defaultValues:l._defaultValues};for(const S in r)Object.defineProperty(d,S,{get:()=>{const y=S;return l._proxyFormState[y]!==pt&&(l._proxyFormState[y]=!c||pt),r[y]}});return d})(t,a),o.current}const Qi=["Ok","Cancel"],Zt=f.memo(f.forwardRef((e,o)=>{const{description:n,icon:t,onCancel:s,onOption:a,onDone:r,onValidateOption:l,createOptionsButton:i,options:c=Qi,autoFocusSel:d=".defaultOption",defaultOption:S=c[0],cancelOption:y="Cancel",autoFocus:x,children:w,...g}=e,h=Xi({shouldUseNativeValidation:!1}),{handleSubmit:v,formState:u}=h,k=f.useRef(null),M=f.useRef(null),j=f.useRef(null),$=F.useCallbackRef(async T=>{let I;try{if(I=await Promise.resolve(l?.(T))??!0,I!==!0)return;await Promise.resolve(a?.(T,T===y,T===S)),r?.(T)}catch{}},[a,r,l,y,S]),O=F.useCallbackRef((T,I)=>{setTimeout(()=>{$(S)},180)},[$]),R=F.useCallbackRef(()=>{a?.(y,!0,!1),s?.(),r?.(null)},[a,y,s,r]),C=u&&(Object.keys(u.errors).length>0||u.disabled||u.isSubmitted),D=F.useCallbackRef((T,I)=>{const _=T===y,V={className:I?"defaultOption":"action",type:I?"submit":"button",style:{minWidth:"75px"},onClick:()=>{_?R():I||$(T)}};if(i)return i(T,V,I);const z={className:I?"defaultOption":"action",variant:I?"contained":"outlined",size:"small",disabled:!_&&C,color:"primary",...V};if(I||_){const H=I?k:M;z.touchRippleRef=H,z.onPointerDown=Z=>{H.current?.start(Z,{center:!1}),Z.stopPropagation(),Z.preventDefault()}}return m.jsx(L.Button,{...z,children:m.jsx("div",{style:{paddingTop:"3px"},children:T})},`action:${T}`)},[c,S,y,i,u]),B=f.useMemo(()=>{const T=[];for(let I=0;I<c.length;I++){const _=c[I],V=S?_===S:I===0;T.push(D(_,V))}return T},[c,S,u]);return m.jsx(or,{onCancel:R,initialPosition:{y:Fi==="touch"?"15":"35"},onDone:r,autoFocusSel:d,isModal:!0,ref:o,...g,children:m.jsx(Wi,{...h,children:m.jsxs("form",{ref:j,onSubmit:v(O),children:[m.jsx(L.DialogContent,{dividers:!0,onKeyDown:T=>{if(T.isDefaultPrevented())return;T.stopPropagation();let I=null,_=null;const V=T.which===F.KeyCodes.Escape&&y;if(V)I=y,_=M;else{if(C)return;T.which===F.KeyCodes.Enter&&(I=S??c[0],_=k)}I&&(_.current?.start(T,{center:!1}),setTimeout(()=>{_.current?.stop(T),V&&$(I)},180))},children:m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:T=>T.spacing(t||n?1.5:0)},children:[m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"column"},children:[t,m.jsx(L.Typography,{children:n})]}),w]})}),m.jsx(L.DialogActions,{sx:{paddingTop:T=>T.spacing(1),paddingBottom:T=>T.spacing(1),paddingLeft:T=>T.spacing(1),paddingRight:T=>T.spacing(1),backgroundColor:T=>se.alpha(T.palette.action.hover,.03)},children:B})]})})})})),Ji=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Zt,default:Zt},Symbol.toStringTag,{value:"Module"})),Zi=f.lazy(()=>Promise.resolve().then(()=>Ji)),ea=f.lazy(()=>Promise.resolve().then(()=>require("./DmH1UN3Qw3K9zv1H.cjs"))),Ft=f.memo(f.forwardRef((e,o)=>{const{command:n,disabled:t=!1,shortcut:s,children:a,...r}=e;return F.useCommand(n),m.jsx(Ke,{ref:o,label:t!==void 0?n?.getLabel():"",shortcut:s!==void 0?s:Array.isArray(n?.getShortcut())?n?.getShortcut()[0]:n?.getShortcut(),description:n?.getDescription(),disabled:t,chips:n?.getTags(),componentDisabled:n?.disabled(),...r,children:m.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:a})})})),ta=m.jsx(F.DynamicIcon,{}),bn=f.memo(f.forwardRef((e,o)=>{const{command:n,commandHook:t,scope:s,context:a,icon:r,label:l,disabled:i=!1,variant:c=F.CommandButtonType.Toolbar,shortcut:d,commandState:S,propsTooltip:y,...x}=e,w=f.useRef(null),g=f.useRef(!1),h=f.useMemo(()=>{const R={onExecute(C,D){t?.onExecute?.(C,D),g.current||(w.current?.start({center:!1}),setTimeout(()=>w.current?.stop({}),180)),g.current=!1},onError(C,D,B){t?.onError(C,D,B)}};return t?.beforeExecute&&(R.beforeExecute=t.beforeExecute),R},[t]),v=F.useCommand(n,h),u=f.useCallback(R=>{R.button===0&&R.preventDefault()},[]),k=f.useCallback(R=>{R.button===0&&n?.execute(S,t)},[v,t,S]),M=f.useCallback(R=>{R.keyCode!==F.KeyCodes.Enter&&R.keyCode!==F.KeyCodes.Space||n?.execute(S,t)},[v,t,S]),j=f.useMemo(()=>{if(r)return typeof r=="function"?r(n):r;let R=n?.getIcon(a);return R?(typeof R=="string"&&(R=m.jsx(F.DynamicIcon,{iconKey:R})),R):c===F.CommandButtonType.Toolbar||n?.getState()?void 0:ta},[v,r]),$=f.useMemo(()=>({tabIndex:0,ref:o,selected:n?.getState(),icon:c===F.CommandButtonType.Toolbar?j:m.jsx($o,{selected:n?.getState()??!1,children:j}),touchRippleRef:w,disabled:i||!n||n.disabled(),onMouseDown:u,onMouseUp:k,onKeyDown:M}),[v,t,i,j]);let O;return O=c===F.CommandButtonType.Menuitem?m.jsx(Je,{...x,chips:n?.getTags(),...$,children:l??n?.getLabel(s,a)}):m.jsx(mt,{...x,...$}),(l||n?.getLabel())&&((n.disabled()||i)&&(O=m.jsx("div",{children:O})),O=m.jsx(Ft,{command:n,placement:c===F.CommandButtonType.Toolbar?"bottom-start":"right-start",shortcut:d,...y,children:O})),O}));bn.displayName="CommandButton";const na=m.jsx(F.DynamicIcon,{}),oa=f.memo(f.forwardRef((e,o)=>{const{command:n,scope:t,icon:s=na,label:a,variant:r=F.CommandButtonType.Toolbar,disabled:l=!1,commandHook:i,...c}=e,d=f.useRef(null),S=f.useRef(!1),y=f.useMemo(()=>{const O={onExecute(R,C){i?.onExecute?.(R,C),S.current||(d.current?.start({center:!1}),setTimeout(()=>d.current?.stop({}),180)),S.current=!1},onError(R,C,D){i?.onError(R,C,D)}};return i?.beforeExecute&&(O.beforeExecute=i.beforeExecute),O},[i]),x=F.useCommand(n,y),w=()=>n?.getState()?.toString()||"0",[g,h]=f.useState(w),v=F.useCallbackRef(()=>{const O=parseFloat(g);isNaN(O)?h(w()):parseFloat(w())!==O&&n.execute(O,i)},[w,n,g,i]);f.useEffect(()=>{h(w())},[n?.getState()]);const u=f.useMemo(()=>{let O=typeof s=="function"?s(n):s;return O&&(O=n?.getIcon()),typeof O=="string"&&(O=m.jsx(F.DynamicIcon,{iconKey:O})),O},[x,s,n?.getIcon]),k=f.useMemo(()=>a===void 0?n?.getLabel(t):typeof a=="function"?a():a,[x]),M=f.useMemo(()=>m.jsx(L.IconButton,{...c,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:O=>O.stopPropagation(),onMouseDown:O=>{O.button===0&&O.stopPropagation()},onMouseUp:O=>{O.button===0&&O.stopPropagation()},children:m.jsx(L.Input,{inputMode:"numeric",disabled:l||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.getKey()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:O=>`${Math.round(O.typography.fontSize)}px`,width:O=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:g,onFocus:O=>{O.target?.select()},onKeyDown:O=>{if(O.which===F.KeyCodes.Enter)w()!==g&&(O.stopPropagation(),O.preventDefault(),v());else if(O.which===F.KeyCodes.Escape)w()!==g&&(h(w()),setTimeout(()=>{O.target?.select()},0),O.stopPropagation(),O.preventDefault());else{if(O.key.match("[-]")||O.key.match("[0-9.]")&&(g+O.key).length>4)return O.stopPropagation(),void O.preventDefault();if(O.which===F.KeyCodes.Space)return void O.preventDefault()}},onBlur:()=>{v()},onChange:O=>{if(O.target.value.length>4)return O.stopPropagation(),void O.preventDefault();h(O.target.value)}})}),[g,l,n]),j={tabIndex:0,ref:o,icon:u,touchRippleRef:d,disabled:l||!n||n.disabled(),onMouseDown:O=>{O.button===0&&O.preventDefault()},onMouseUp:O=>{O.button!==0||O.isPropagationStopped()||O.isDefaultPrevented()||O.isDefaultPrevented()||(O.preventDefault(),n?.execute(!n?.getState(),y))},onKeyDown:O=>{O.keyCode!==F.KeyCodes.Enter&&O.keyCode!==F.KeyCodes.Space||n?.execute(!n?.getState(),y)}};let $;return $=r===F.CommandButtonType.Menuitem?m.jsxs(Je,{...c,chips:n?.getTags(),...j,children:[k,M]}):m.jsx(mt,{...c,...j}),n?.getLabel()&&((n.disabled()||l)&&($=m.jsx("div",{children:$})),$=m.jsx(Ft,{command:n,placement:r===F.CommandButtonType.Toolbar?"bottom-start":"right-start",children:$})),$})),vn=f.memo(f.forwardRef((e,o)=>{const{variant:n=F.CommandButtonType.Toolbar,quickCommand:t,onQuickClick:s,commands:a,commandState:r,commandHook:l,disabled:i,label:c,icon:d,createPopupPanel:S,tooltip:y,selected:x,scope:w,...g}=e,h=f.useRef(null),v=f.useRef(!1),u=f.useMemo(()=>{const D={onExecute(B,T){l?.onExecute?.(B,T),v.current||(h.current?.start({center:!1}),setTimeout(()=>h.current?.stop({}),180)),v.current=!1},onError(B,T,I){l?.onError(B,T,I)}};return l?.beforeExecute&&(D.beforeExecute=l.beforeExecute),D},[l]),k=F.useCommands(a,[t],null,[t]),M=k[0],{label:j,icon:$}=f.useMemo(()=>{let D=null;c&&(D=typeof c=="function"?c(M):c),D||(D=M?.getLabel?.(w));let B=d;return B||(B=M?.getIcon?.()),typeof B=="string"?B=m.jsx(F.DynamicIcon,{iconKey:B}):typeof B=="function"&&(B=B(M)),{label:D,icon:B}},[k,c,d]),O={disabled:i,scope:w,touchRippleRef:h,onQuickClick:s,tooltip:y,label:j,icon:$};(j||y)&&(O.createTooltip=({children:D},B)=>m.jsx(Ke,{label:j,description:y,disabled:B,children:D}));const R=F.useCallbackRef(D=>S?.(D,a),[S,k]),C=F.useCallbackRef(D=>M?.execute(r,u),[M]);return M?(O.propsQuickButton={},O.propsQuickButton.createTooltip=({children:D,placement:B},T)=>m.jsx(Ft,{command:M,placement:B??n===F.CommandButtonType.Toolbar?"bottom-start":"right-start",disabled:T,children:D}),O.disabled=O.disabled??M?.disabled(),s||(O.onQuickClick=C)):t&&(O.onQuickClick=()=>{}),O.selected=x??M?.getState(),O.createPopupPanel=R,n===F.CommandButtonType.Toolbar?m.jsx(jt,{...g,...O,ref:o}):m.jsx(un,{...g,...O,ref:o})}));vn.displayName="CommandPopupButton";const ra=m.jsx(F.DynamicIcon,{iconKey:"Check"}),gr=f.memo(f.forwardRef((e,o)=>{const{sx:n,commands:t,propsCommandButton:s,parentFloat:a,renderToolbarPalette:r,children:l,...i}=e,c=F.useImperativeElement(o,()=>({}),[]),[d,S]=f.useState(null),{reference:y}=ft({label:"toolbar",anchor:c.current,parentFloat:a,createPopupPanel:null}),x=f.useCallback(()=>{const O=d;O&&requestAnimationFrame(()=>{c.current?.contains(document.activeElement)&&O.focus()})},[]),w=f.useMemo(()=>({dense:!0,outlined:!1}),[]),g=f.useMemo(()=>{const{commandHook:O,...R}=s||{};return{commandHook:{beforeExecute:(C,D)=>O?.beforeExecute?.(C,D)!==!1&&y.closeAll(),onExecute(C,D){O?.onExecute?.(C,D),x()},onError(C,D,B){O?.onError?.(C,D,B)}},...R}},[y,s]),h=f.useMemo(()=>({...w,...g}),[w,g]),[v,u]=f.useReducer(O=>O+1,0);F.useCommands(t,[],{onChange:()=>{u()}});const k=f.useMemo(()=>({commands:t,parentFloat:y,...g}),[v,h,y,s]);let M=0;w.dense||(M+=2),w.outlined&&M++;let j=2;w.dense||(j=4);const $=f.useMemo(()=>r({commands:t,propsCommandButton:h,propsCommandPopup:{commands:t,...k,...s}}),[v,h,k,r]);return m.jsx(L.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${j}px`,paddingBottom:`${j}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:c,onFocus:O=>{O.relatedTarget&&!d&&S(O.relatedTarget)},onBlur:O=>{d&&!c?.current?.contains(O.relatedTarget)&&S(null)},onKeyDown:O=>{d&&O.which===F.KeyCodes.Escape&&d.focus()},...i,children:m.jsx("div",{ref:c,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${j}px`,columnGap:`${M}px`,alignItems:"center",maxWidth:"100%"},children:$})})}));gr.displayName="CommandToolbar";const ia=e=>{const{key:o,...n}=e;return m.jsx(bn,{...n},o)},aa=f.memo(f.forwardRef((e,o)=>{const{popupCommandKeys:n,renderCommandButton:t=ia,scope:s,commands:a,quickCommand:r,popupScope:l=r,commandState:i,commandHook:c,disabled:d=!1,...S}=e,y=F.useCommands(a,n?[r,...n]:[r]),{allDisabled:x}=f.useMemo(()=>{let g=0;const h=y.length;for(let v=0;v<h;v++){const u=y[v];u&&!u.disabled()&&g++}return{allDisabled:g===0}},[y]),w=f.useCallback((g,h)=>{const v={variant:F.CommandButtonType.Menuitem,commandHook:c,commandState:i,scope:l??s,disabled:d},u=[],k=n?n.length:0;for(let M=0;M<k;M++){const j=n[M];if(j===null||j==="-"){u.push(m.jsx(xo,{orientation:"horizontal"},`element-${u.length}`));continue}const $=h.getCommand(j),O={key:`${j}-${u.length}`,command:$,...v},R=t(O);R&&u.push(R)}return Tt({...g,children:u})},[d,c,i,l,n,t]);return n?m.jsx(vn,{ref:o,commands:a,disabled:d||x,commandHook:c,commandState:i,scope:s,quickCommand:r,createPopupPanel:w,...S}):t({ref:o,disabled:d,commandHook:c,commandState:i,scope:s,command:y[0],...S})}));exports.AnimatedBouncingEllipsisIcon=wr,exports.AnimatedCircleIcon=Do,exports.AnimatedClockIcon=vr,exports.AnimatedFadingEllipsisIcon=xr,exports.AnimatedLoadingPanel=Oo,exports.AnimatedOrbitIcon=Sr,exports.AnimatedTraversingEllipsisIcon=kr,exports.ArrowDownIcon=Kt,exports.ArrowRightIcon=Io,exports.ChipStrip=nn,exports.ClosingReason={ByPopup:"popupDone",Cancel:"popupCancel",ClickAway:"clickAway"},exports.CommandButton=bn,exports.CommandPopupButton=vn,exports.CommandToolbar=gr,exports.CommandTooltip=Ft,exports.ContextMenu=Vr,exports.ExhibitDivider=xo,exports.ExhibitFloatPanel=ln,exports.ExhibitIconButton=mt,exports.ExhibitMenuHeader=Kr,exports.ExhibitMenuItem=Je,exports.ExhibitOptionButton=qr,exports.ExhibitPopper=an,exports.ExhibitPopupIconButton=jt,exports.ExhibitPopupMenuItem=un,exports.ExhibitTooltip=Ke,exports.InputCommandButton=oa,exports.InternalWindow=or,exports.LabelIcon=e=>{const{command:o,label:n,scope:t,icon:s=ra,sx:a,...r}=e;return m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:l=>l.typography.subtitle2.fontSize,...a},...r,children:[s,m.jsx(L.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:l=>l.spacing(.25),paddingRight:l=>l.spacing(.25),fontSize:"inherit"},children:o?.getLabel(t)||n})]})},exports.ModalProvider=function(e){var o=e.children,n=e.legacy,t=n!==void 0&&n,s=e.suspense,a=s===void 0||s,r=e.fallback,l=r===void 0?null:r,i=f.useReducer(Zr,Jr),c=i[0],d=i[1],S=f.useCallback(function(v,u){var k=zo(u,ei);v?d({type:Ce.UPDATE,payload:{id:v,props:k}}):console.error(Lt)},[d]),y=f.useCallback(function(v){v?d({type:Ce.HIDE,payload:{id:v}}):console.error(Lt)},[d]),x=f.useCallback(function(v){v?d({type:Ce.DESTROY,payload:{id:v}}):console.error(Lt)},[d]),w=f.useCallback(function(v){v?d({type:Ce.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[d]),g=f.useCallback(function(v,u,k){var M=Uo(8);return k&&k.rootId&&(M=k.rootId+"."+M),d({type:Ce.SHOW,payload:{id:M,component:v,props:u,options:k}}),{id:M,hide:function(){return y(M)},destroy:function(){return x(M)},update:function(j){return S(M,j)}}},[d,y,x,S]),h=a?f.Suspense:f.Fragment;return f.createElement(Wo.Provider,{value:{state:c,updateModal:S,hideModal:y,destroyModal:x,showModal:g,destroyModalsByRootId:w}},o,f.createElement(h,Object.assign({},a&&{fallback:l}),Object.keys(c).map(function(v){var u=c[v],k=u.component,M=u.props,j=u.options,$=function(){var R,C;M!=null&&M.onExited&&M.onExited.apply(M,arguments),M!=null&&(R=M.TransitionProps)!=null&&R.onExited&&(C=M.TransitionProps).onExited.apply(C,arguments),x(v)},O={};return O=t?{onExited:$}:{TransitionProps:xe({},M?.TransitionProps,{onExited:$})},f.createElement(k,Object.assign({},M,{key:v,onClose:function(){j&&j.hideOnClose&&y(v),j&&j.destroyOnClose&&j.hideOnClose&&x(v),M&&M.onClose&&M.onClose.apply(M,arguments)}},j&&!j.destroyOnClose&&O))})))},exports.NestingPopupButton=Vo,exports.OptionsDialog=Zt,exports.PopupAutoFocus={Popup:"popup",Anchor:"anchor"},exports.PopupButtonType=Ao,exports.SelectedIcon=$o,exports.SimpleCommandPopupButton=aa,exports.SimpleTooltip=He,exports.StackTrace=tn,exports.StackTraceErrorPanel=Eo,exports.ThemeMode={Light:"light",Dark:"dark"},exports.ThemedIcon=Br,exports.clsx=ge,exports.createDownArrow=qt,exports.createExhibitTheme=(e,o)=>{let n=We.createTheme({palette:{mode:e?"dark":"light"}});const t={"--icon-primary":n.palette.primary.main,"--icon-secondary":n.palette.secondary.main,"--icon-secondary-light":n.palette.secondary.light,"--icon-success":n.palette.success.main,"--icon-success-light":n.palette.success.light,"--icon-info":n.palette.info.main,"--icon-warn":n.palette.warning.main,"--icon-error":n.palette.error.main,"--icon-error-light":n.palette.error.light,"--icon-grey":n.palette.text.icon??n.palette.action.active,"--icon-shadow":e?n.palette.text.primary:n.palette.divider,"--icon-size":"1.25rem","@media (pointer: coarse)":{"--icon-size":"1.75rem"}};let s={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:se.alpha(n.palette.text.secondary,.75),icon:e?se.alpha(n.palette.text.secondary,.7):se.alpha(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{defaultProps:{IconComponent:Kt,MenuProps:{container:()=>document.fullscreenElement??void 0}},styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px",color:"unset"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiMenu:{defaultProps:{container:()=>document.fullscreenElement??void 0},styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiToolbar:{styleOverrides:{root:{paddingTop:"4px",paddingBottom:"4px","@media (min-width: 600px)":{paddingTop:"4px",paddingBottom:"4px"}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiInputBase:{styleOverrides:{root:{}}},MuiPaper:{styleOverrides:{root:{...t}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},a=s;return o&&(a=bo.deepmerge(s,o)),We.createTheme(a)},exports.createScrollButton=It,exports.createStrokeShadowFilter=(e=1)=>o=>{if(o.palette.mode!=="dark")return;const n=o.palette.mode==="dark"?o.palette.text.primary:o.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},exports.defaultCreatePopupPanel=Tt,exports.elevateColor=Yt,exports.getModalConfig=Ko,exports.getScrollbarCssVariables=_o,exports.hexToRGB=Bo,exports.overlayAlpha=function(e){let o=0;return o=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(o/100).toFixed(2)},exports.renderScrollButtonEdge=e=>{const o={style:{cursor:"pointer"},...e};return F.defaultCreateScrollEdgeButton(o)},exports.renderScrollButtonEnd=e=>It(e,F.ScrollbarOrientation.Horizontal?m.jsx(F.DynamicIcon,{iconKey:"ArrowRight",size:"small"}):m.jsx(F.DynamicIcon,{iconKey:"ArrowDownward",size:"small"}),"Scroll "+(e.orientation===F.ScrollbarOrientation.Horizontal?"Right":"Down"),`Scroll ${e.orientation===F.ScrollbarOrientation.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),exports.renderScrollButtonStart=e=>It(e,F.ScrollbarOrientation.Horizontal?m.jsx(F.DynamicIcon,{iconKey:"ArrowLeft",size:"small"}):m.jsx(F.DynamicIcon,{iconKey:"ArrowUpward",size:"small"}),"Scroll "+(e.orientation===F.ScrollbarOrientation.Horizontal?"Left":"Up"),`Scroll ${e.orientation===F.ScrollbarOrientation.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),exports.scrollbarTheming=sn,exports.setModalConfig=function(e){Object.assign(Ho,e)},exports.strokeShadowFilter=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},exports.toShortcutElements=cn,exports.useFloatStack=ft,exports.useInputDialog=e=>{const{showModal:o}=ht();return n=>{const{defaultOption:t=n.options?.[0],cancelOption:s="Cancel",...a}=n;return new Promise(r=>{const l=o(ea,{...e,defaultOption:t,cancelOption:s,...a,onOption(i){a?.onOption?.(i,i===s,i===t),r({input:"",option:i})},onInput(i,c){a?.onInput?.(i,c),r({input:i,option:c})},onDone:()=>{a?.onDone?.(),l.hide()}})})}},exports.useLazyWindow=function(e){const[o,n]=f.useState(()=>new Map),{showModal:t,updateModal:s,destroyModal:a,hideModal:r}=ht({disableAutoDestroy:!0});return(l,i,c,d)=>new Promise((S,y)=>{let x=!1;c?.disableAutoDestroy!==void 0&&(x=c.disableAutoDestroy,delete(c={...c}).disableAutoDestroy);const w={...e,...c,...d,onHide:()=>{const u=o.get(l);d?.onHide?.(),n(k=>(k.delete(l),k)),r(u.id)},onDone:u=>{const k=o.get(l);n(M=>(M.delete(l),M)),d?.onDone?.(u),k&&k.id&&!x&&a(k.id)},onShown:u=>{n(k=>{const M=k.get(l);return k.set(l,{...M,element:u}),k}),S(u)},open:!0},g=o.get(l);if(g)return s(g.id,w),S(g.element),void(w.autoFocus&&g.element?.focus());if(!i)return void y(`Invalid function for window '${l}'`);const h=f.lazy(i),v=t(h,w,{destroyOnClose:!x});n(u=>(u.set(l,{id:v.id,element:null}),u))})},exports.useModal=ht,exports.useOptionsDialog=e=>{const{showModal:o}=ht();return n=>new Promise(t=>{const s=o(Zi,{...e,...n,onOption(a){n?.onOption?.(a,a===n.cancelOption,a===n.defaultOption),t(a)},onDone:()=>{n?.onDone?.(),s.hide()}})})},exports.useResolvedThemeMode=function(e){const{mode:o}=e||{},[n,t]=f.useState(()=>{if(o==="light"||o==="dark")return{themeMode:o,source:"prop"};if(typeof document<"u"){const s=Mn();if(s)return{themeMode:s,source:"class"}}return{themeMode:Tn(),source:"media"}});return f.useEffect(()=>{const s=()=>{if(o)return void(o===n.themeMode&&n.source==="prop"||t(c=>({...c,themeMode:o,source:"prop"})));const i=Mn();if(i)t({themeMode:i,source:"class"});else{const c=Tn();t({themeMode:c,source:"media"})}},a=new MutationObserver(s),r=[document.documentElement,document.body].filter(Boolean);for(const i of r)a.observe(i,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",s),s(),()=>{a.disconnect(),l.removeEventListener("change",s)}},[o]),n};
|
|
11
|
+
`,i.getElementsByTagName("head")[0].appendChild(c)),i.body&&r(i.body,"react-draggable-transparent-selection")},de.createCSSTransform=function(i,c){const d=s(i,c,"px");return{[(0,o.browserPrefixToKey)("transform",o.default)]:d}},de.createSVGTransform=function(i,c){return s(i,c,"")},de.getTouch=function(i,c){return i.targetTouches&&(0,e.findInArray)(i.targetTouches,d=>c===d.identifier)||i.changedTouches&&(0,e.findInArray)(i.changedTouches,d=>c===d.identifier)},de.getTouchIdentifier=function(i){if(i.targetTouches&&i.targetTouches[0])return i.targetTouches[0].identifier;if(i.changedTouches&&i.changedTouches[0])return i.changedTouches[0].identifier},de.getTranslation=s,de.innerHeight=function(i){let c=i.clientHeight;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c-=(0,e.int)(d.paddingTop),c-=(0,e.int)(d.paddingBottom),c},de.innerWidth=function(i){let c=i.clientWidth;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c-=(0,e.int)(d.paddingLeft),c-=(0,e.int)(d.paddingRight),c},de.matchesSelector=t,de.matchesSelectorAndParentsTo=function(i,c,d){let S=i;do{if(t(S,c))return!0;if(S===d)return!1;S=S.parentNode}while(S);return!1},de.offsetXYFromParent=function(i,c,d){const S=c===c.ownerDocument.body?{left:0,top:0}:c.getBoundingClientRect(),y=(i.clientX+c.scrollLeft-S.left)/d,x=(i.clientY+c.scrollTop-S.top)/d;return{x:y,y:x}},de.outerHeight=function(i){let c=i.clientHeight;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c+=(0,e.int)(d.borderTopWidth),c+=(0,e.int)(d.borderBottomWidth),c},de.outerWidth=function(i){let c=i.clientWidth;const d=i.ownerDocument.defaultView.getComputedStyle(i);return c+=(0,e.int)(d.borderLeftWidth),c+=(0,e.int)(d.borderRightWidth),c},de.removeClassName=l,de.removeEvent=function(i,c,d,S){if(!i)return;const y={capture:!0,...S};i.removeEventListener?i.removeEventListener(c,d,y):i.detachEvent?i.detachEvent("on"+c,d):i["on"+c]=null},de.scheduleRemoveUserSelectStyles=function(i){window.requestAnimationFrame?window.requestAnimationFrame(()=>{a(i)}):a(i)};var e=Rt(),o=(function(i,c){if(typeof WeakMap=="function")var d=new WeakMap,S=new WeakMap;return(function(y,x){if(!x&&y&&y.__esModule)return y;var w,g,h={__proto__:null,default:y};if(y===null||typeof y!="object"&&typeof y!="function")return h;if(w=x?S:d){if(w.has(y))return w.get(y);w.set(y,h)}for(const v in y)v!=="default"&&{}.hasOwnProperty.call(y,v)&&((g=(w=Object.defineProperty)&&Object.getOwnPropertyDescriptor(y,v))&&(g.get||g.set)?w(h,v,g):h[v]=y[v]);return h})(i,c)})((function(){if(Yn)return Ne;Yn=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.browserPrefixToKey=d,Ne.browserPrefixToStyle=function(S,y){return y?`-${y.toLowerCase()}-${S}`:S},Ne.default=void 0,Ne.getPrefix=c;const i=["Moz","Webkit","O","ms"];function c(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const y=window.document?.documentElement?.style;if(!y||S in y)return"";for(let x=0;x<i.length;x++)if(d(S,i[x])in y)return i[x];return""}function d(S,y){return y?`${y}${(function(x){let w="",g=!0;for(let h=0;h<x.length;h++)g?(w+=x[h].toUpperCase(),g=!1):x[h]==="-"?g=!0:w+=x[h];return w})(S)}`:S}return Ne.default=c(),Ne})());let n="";function t(i,c){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(d){return(0,e.isFunction)(i[d])})),!!(0,e.isFunction)(i[n])&&i[n](c)}function s(i,c,d){let{x:S,y}=i,x=`translate(${S}${d},${y}${d})`;return c&&(x=`translate(${`${typeof c.x=="string"?c.x:c.x+d}`}, ${`${typeof c.y=="string"?c.y:c.y+d}`})`+x),x}function a(i){if(i)try{if(i.body&&l(i.body,"react-draggable-transparent-selection"),i.selection)i.selection.empty();else{const c=(i.defaultView||window).getSelection();c&&c.type!=="Caret"&&c.removeAllRanges()}}catch{}}function r(i,c){i.classList?i.classList.add(c):i.className.match(new RegExp(`(?:^|\\s)${c}(?!\\S)`))||(i.className+=` ${c}`)}function l(i,c){i.classList?i.classList.remove(c):i.className=i.className.replace(new RegExp(`(?:^|\\s)${c}(?!\\S)`,"g"),"")}return de}var Gn,Me={};function tr(){if(Gn)return Me;Gn=1,Object.defineProperty(Me,"__esModule",{value:!0}),Me.canDragX=function(t){return t.props.axis==="both"||t.props.axis==="x"},Me.canDragY=function(t){return t.props.axis==="both"||t.props.axis==="y"},Me.createCoreData=function(t,s,a){const r=!(0,e.isNum)(t.lastX),l=n(t);return r?{node:l,deltaX:0,deltaY:0,lastX:s,lastY:a,x:s,y:a}:{node:l,deltaX:s-t.lastX,deltaY:a-t.lastY,lastX:t.lastX,lastY:t.lastY,x:s,y:a}},Me.createDraggableData=function(t,s){const a=t.props.scale;return{node:s.node,x:t.state.x+s.deltaX/a,y:t.state.y+s.deltaY/a,deltaX:s.deltaX/a,deltaY:s.deltaY/a,lastX:t.state.x,lastY:t.state.y}},Me.getBoundPosition=function(t,s,a){if(!t.props.bounds)return[s,a];let{bounds:r}=t.props;r=typeof r=="string"?r:(function(i){return{left:i.left,top:i.top,right:i.right,bottom:i.bottom}})(r);const l=n(t);if(typeof r=="string"){const{ownerDocument:i}=l,c=i.defaultView;let d;if(r==="parent"?d=l.parentNode:d=l.getRootNode().querySelector(r),!(d instanceof c.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const S=d,y=c.getComputedStyle(l),x=c.getComputedStyle(S);r={left:-l.offsetLeft+(0,e.int)(x.paddingLeft)+(0,e.int)(y.marginLeft),top:-l.offsetTop+(0,e.int)(x.paddingTop)+(0,e.int)(y.marginTop),right:(0,o.innerWidth)(S)-(0,o.outerWidth)(l)-l.offsetLeft+(0,e.int)(x.paddingRight)-(0,e.int)(y.marginRight),bottom:(0,o.innerHeight)(S)-(0,o.outerHeight)(l)-l.offsetTop+(0,e.int)(x.paddingBottom)-(0,e.int)(y.marginBottom)}}return(0,e.isNum)(r.right)&&(s=Math.min(s,r.right)),(0,e.isNum)(r.bottom)&&(a=Math.min(a,r.bottom)),(0,e.isNum)(r.left)&&(s=Math.max(s,r.left)),(0,e.isNum)(r.top)&&(a=Math.max(a,r.top)),[s,a]},Me.getControlPosition=function(t,s,a){const r=typeof s=="number"?(0,o.getTouch)(t,s):null;if(typeof s=="number"&&!r)return null;const l=n(a),i=a.props.offsetParent||l.offsetParent||l.ownerDocument.body;return(0,o.offsetXYFromParent)(r||t,i,a.props.scale)},Me.snapToGrid=function(t,s,a){const r=Math.round(s/t[0])*t[0],l=Math.round(a/t[1])*t[1];return[r,l]};var e=Rt(),o=pn();function n(t){const s=t.findDOMNode();if(!s)throw new Error("<DraggableCore>: Unmounted during event!");return s}return Me}var Xn,Qn,Jn,Zn,it={},bt={};function nr(){return Xn||(Xn=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=function(){}),bt}function ki(){if(Qn)return it;Qn=1,Object.defineProperty(it,"__esModule",{value:!0}),it.default=void 0;var e=(function(x,w){if(typeof WeakMap=="function")var g=new WeakMap,h=new WeakMap;return(function(v,u){if(!u&&v&&v.__esModule)return v;var k,M,j={__proto__:null,default:v};if(v===null||typeof v!="object"&&typeof v!="function")return j;if(k=u?h:g){if(k.has(v))return k.get(v);k.set(v,j)}for(const $ in v)$!=="default"&&{}.hasOwnProperty.call(v,$)&&((M=(k=Object.defineProperty)&&Object.getOwnPropertyDescriptor(v,$))&&(M.get||M.set)?k(j,$,M):j[$]=v[$]);return j})(x,w)})(f),o=l(dn()),n=l(en),t=pn(),s=tr(),a=Rt(),r=l(nr());function l(x){return x&&x.__esModule?x:{default:x}}function i(x,w,g){return(w=(function(h){var v=(function(u,k){if(typeof u!="object"||!u)return u;var M=u[Symbol.toPrimitive];if(M!==void 0){var j=M.call(u,k);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(u)})(h,"string");return typeof v=="symbol"?v:v+""})(w))in x?Object.defineProperty(x,w,{value:g,enumerable:!0,configurable:!0,writable:!0}):x[w]=g,x}const c={start:"touchstart",move:"touchmove",stop:"touchend"},d={start:"mousedown",move:"mousemove",stop:"mouseup"};let S=d,y=class extends e.Component{constructor(){super(...arguments),i(this,"dragging",!1),i(this,"lastX",NaN),i(this,"lastY",NaN),i(this,"touchIdentifier",null),i(this,"mounted",!1),i(this,"handleDragStart",x=>{if(this.props.onMouseDown(x),!this.props.allowAnyClick&&typeof x.button=="number"&&x.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:g}=w;if(this.props.disabled||!(x.target instanceof g.defaultView.Node)||this.props.handle&&!(0,t.matchesSelectorAndParentsTo)(x.target,this.props.handle,w)||this.props.cancel&&(0,t.matchesSelectorAndParentsTo)(x.target,this.props.cancel,w))return;x.type!=="touchstart"||this.props.allowMobileScroll||x.preventDefault();const h=(0,t.getTouchIdentifier)(x);this.touchIdentifier=h;const v=(0,s.getControlPosition)(x,h,this);if(v==null)return;const{x:u,y:k}=v,M=(0,s.createCoreData)(this,u,k);(0,r.default)("DraggableCore: handleDragStart: %j",M),(0,r.default)("calling",this.props.onStart),this.props.onStart(x,M)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&(0,t.addUserSelectStyles)(g),this.dragging=!0,this.lastX=u,this.lastY=k,(0,t.addEvent)(g,S.move,this.handleDrag),(0,t.addEvent)(g,S.stop,this.handleDragStop))}),i(this,"handleDrag",x=>{const w=(0,s.getControlPosition)(x,this.touchIdentifier,this);if(w==null)return;let{x:g,y:h}=w;if(Array.isArray(this.props.grid)){let u=g-this.lastX,k=h-this.lastY;if([u,k]=(0,s.snapToGrid)(this.props.grid,u,k),!u&&!k)return;g=this.lastX+u,h=this.lastY+k}const v=(0,s.createCoreData)(this,g,h);if((0,r.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(x,v)!==!1&&this.mounted!==!1)this.lastX=g,this.lastY=h;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const k=document.createEvent("MouseEvents");k.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(k)}}),i(this,"handleDragStop",x=>{if(!this.dragging)return;const w=(0,s.getControlPosition)(x,this.touchIdentifier,this);if(w==null)return;let{x:g,y:h}=w;if(Array.isArray(this.props.grid)){let k=g-this.lastX||0,M=h-this.lastY||0;[k,M]=(0,s.snapToGrid)(this.props.grid,k,M),g=this.lastX+k,h=this.lastY+M}const v=(0,s.createCoreData)(this,g,h);if(this.props.onStop(x,v)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(u.ownerDocument),(0,r.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,r.default)("DraggableCore: Removing handlers"),(0,t.removeEvent)(u.ownerDocument,S.move,this.handleDrag),(0,t.removeEvent)(u.ownerDocument,S.stop,this.handleDragStop))}),i(this,"onMouseDown",x=>(S=d,this.handleDragStart(x))),i(this,"onMouseUp",x=>(S=d,this.handleDragStop(x))),i(this,"onTouchStart",x=>(S=c,this.handleDragStart(x))),i(this,"onTouchEnd",x=>(S=c,this.handleDragStop(x)))}componentDidMount(){this.mounted=!0;const x=this.findDOMNode();x&&(0,t.addEvent)(x,c.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const x=this.findDOMNode();if(x){const{ownerDocument:w}=x;(0,t.removeEvent)(w,d.move,this.handleDrag),(0,t.removeEvent)(w,c.move,this.handleDrag),(0,t.removeEvent)(w,d.stop,this.handleDragStop),(0,t.removeEvent)(w,c.stop,this.handleDragStop),(0,t.removeEvent)(x,c.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,t.scheduleRemoveUserSelectStyles)(w)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:n.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return it.default=y,i(y,"displayName","DraggableCore"),i(y,"propTypes",{allowAnyClick:o.default.bool,allowMobileScroll:o.default.bool,children:o.default.node.isRequired,disabled:o.default.bool,enableUserSelectHack:o.default.bool,offsetParent:function(x,w){if(x[w]&&x[w].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:o.default.arrayOf(o.default.number),handle:o.default.string,cancel:o.default.string,nodeRef:o.default.object,onStart:o.default.func,onDrag:o.default.func,onStop:o.default.func,onMouseDown:o.default.func,scale:o.default.number,className:a.dontSetMe,style:a.dontSetMe,transform:a.dontSetMe}),i(y,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),it}function Ci(){return Jn||(Jn=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return i.default}}),e.default=void 0;var o=(function(w,g){if(typeof WeakMap=="function")var h=new WeakMap,v=new WeakMap;return(function(u,k){if(!k&&u&&u.__esModule)return u;var M,j,$={__proto__:null,default:u};if(u===null||typeof u!="object"&&typeof u!="function")return $;if(M=k?v:h){if(M.has(u))return M.get(u);M.set(u,$)}for(const O in u)O!=="default"&&{}.hasOwnProperty.call(u,O)&&((j=(M=Object.defineProperty)&&Object.getOwnPropertyDescriptor(u,O))&&(j.get||j.set)?M($,O,j):$[O]=u[O]);return $})(w,g)})(f),n=d(dn()),t=d(en),s=(function(){if(Un)return yt.exports;function w(h){var v,u,k="";if(typeof h=="string"||typeof h=="number")k+=h;else if(typeof h=="object")if(Array.isArray(h)){var M=h.length;for(v=0;v<M;v++)h[v]&&(u=w(h[v]))&&(k&&(k+=" "),k+=u)}else for(u in h)h[u]&&(k&&(k+=" "),k+=u);return k}function g(){for(var h,v,u=0,k="",M=arguments.length;u<M;u++)(h=arguments[u])&&(v=w(h))&&(k&&(k+=" "),k+=v);return k}return Un=1,yt.exports=g,yt.exports.clsx=g,yt.exports})(),a=pn(),r=tr(),l=Rt(),i=d(ki()),c=d(nr());function d(w){return w&&w.__esModule?w:{default:w}}function S(){return S=Object.assign?Object.assign.bind():function(w){for(var g=1;g<arguments.length;g++){var h=arguments[g];for(var v in h)({}).hasOwnProperty.call(h,v)&&(w[v]=h[v])}return w},S.apply(null,arguments)}function y(w,g,h){return(g=(function(v){var u=(function(k,M){if(typeof k!="object"||!k)return k;var j=k[Symbol.toPrimitive];if(j!==void 0){var $=j.call(k,M);if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(k)})(v,"string");return typeof u=="symbol"?u:u+""})(g))in w?Object.defineProperty(w,g,{value:h,enumerable:!0,configurable:!0,writable:!0}):w[g]=h,w}class x extends o.Component{static getDerivedStateFromProps(g,h){let{position:v}=g,{prevPropsPosition:u}=h;return!v||u&&v.x===u.x&&v.y===u.y?null:((0,c.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:u}),{x:v.x,y:v.y,prevPropsPosition:{...v}})}constructor(g){super(g),y(this,"onDragStart",(h,v)=>{if((0,c.default)("Draggable: onDragStart: %j",v),this.props.onStart(h,(0,r.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(h,v)=>{if(!this.state.dragging)return!1;(0,c.default)("Draggable: onDrag: %j",v);const u=(0,r.createDraggableData)(this,v),k={x:u.x,y:u.y,slackX:0,slackY:0};if(this.props.bounds){const{x:M,y:j}=k;k.x+=this.state.slackX,k.y+=this.state.slackY;const[$,O]=(0,r.getBoundPosition)(this,k.x,k.y);k.x=$,k.y=O,k.slackX=this.state.slackX+(M-k.x),k.slackY=this.state.slackY+(j-k.y),u.x=k.x,u.y=k.y,u.deltaX=k.x-this.state.x,u.deltaY=k.y-this.state.y}if(this.props.onDrag(h,u)===!1)return!1;this.setState(k)}),y(this,"onDragStop",(h,v)=>{if(!this.state.dragging||this.props.onStop(h,(0,r.createDraggableData)(this,v))===!1)return!1;(0,c.default)("Draggable: onDragStop: %j",v);const u={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:k,y:M}=this.props.position;u.x=k,u.y=M}this.setState(u)}),this.state={dragging:!1,dragged:!1,x:g.position?g.position.x:g.defaultPosition.x,y:g.position?g.position.y:g.defaultPosition.y,prevPropsPosition:{...g.position},slackX:0,slackY:0,isElementSVG:!1},!g.position||g.onDrag||g.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??t.default.findDOMNode(this)}render(){const{axis:g,bounds:h,children:v,defaultPosition:u,defaultClassName:k,defaultClassNameDragging:M,defaultClassNameDragged:j,position:$,positionOffset:O,scale:R,...C}=this.props;let D={},B=null;const T=!$||this.state.dragging,I=$||u,_={x:(0,r.canDragX)(this)&&T?this.state.x:I.x,y:(0,r.canDragY)(this)&&T?this.state.y:I.y};this.state.isElementSVG?B=(0,a.createSVGTransform)(_,O):D=(0,a.createCSSTransform)(_,O);const V=(0,s.clsx)(v.props.className||"",k,{[M]:this.state.dragging,[j]:this.state.dragged});return o.createElement(i.default,S({},C,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),o.cloneElement(o.Children.only(v),{className:V,style:{...v.props.style,...D},transform:B}))}}e.default=x,y(x,"displayName","Draggable"),y(x,"propTypes",{...i.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),y(x,"defaultProps",{...i.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Hn)),Hn}var Di=(function(){if(Zn)return rt.exports;Zn=1;const{default:e,DraggableCore:o}=Ci();return rt.exports=e,rt.exports.default=e,rt.exports.DraggableCore=o,rt.exports})();const Oi=So(Di),eo={x:0,y:0},Ei=f.memo(f.forwardRef((e,o)=>{const{defaultPosition:n=eo,PaperComponent:t=L.Paper,onDragStop:s,rootSel:a=".MuiModal-root",handleSel:r=".draggable-title",titleSize:l,rootSize:i,...c}=e,d=f.useRef(null),S=f.useMemo(()=>l&&i?{left:0,top:0,right:i.width-l.width,bottom:i.height-l.height}:null,[l,i]),[y,x]=f.useState(null),[w,g]=f.useState(null),[h,v]=f.useState(null);return f.useLayoutEffect(()=>{!y&&n&&x(n??eo)},[n]),f.useEffect(()=>{S&&y&&g({x:Math.max(0,Math.min(y.x,S.right)),y:Math.max(0,Math.min(y.y,S.bottom))})},[y,S]),m.jsx(Oi,{nodeRef:d,handle:r,cancel:'[class*="MuiDialogContent-root"]',position:w,bounds:S??".MuiModal-root",onStop:s,onStart:(u,k)=>{const M=u;v({x:(M.clientX??M.touches?.[0]?.clientX)-k.x,y:(M.clientY??M.touches?.[0]?.clientY)-k.y})},onDrag:(u,k)=>{const M=u,j=M.clientX??M.touches?.[0]?.clientX,$=M.clientY??M.touches?.[0]?.clientY;x({x:j-h.x,y:$-h.y})},children:m.jsx(t,{ref:St([d,o]),...c})})})),Mi={x:"50",y:"50"},or=f.memo(f.forwardRef((e,o)=>{const n=We.useThemeProps({props:e,name:"MuiDialog"}),t=We.useTheme(),s={enter:.66*t.transitions.duration.enteringScreen,exit:.66*t.transitions.duration.leavingScreen},{title:a="SheetXL",key:r="draggable-window",onCancel:l,onDone:i,onShow:c,onShown:d,onHide:S,onClose:y,open:x,autoFocusSel:w,children:g,transitionDuration:h=s,TransitionProps:v,slots:u=ve.CommonUtils.EmptyArray,slotProps:k=ve.CommonUtils.EmptyArray,sx:M,className:j,onMouseDown:$,initialPosition:O=Mi,isModal:R=!1,...C}=n;let D=u.transition??L.Fade;const B=u.backdrop??L.Backdrop,T=u.paper??L.Paper;let I=k.transition;v&&(I={...v,...I});const _=k.backdrop,V=k.paper,z=f.useRef(null),[H,Z]=f.useState(null),[X,J]=f.useState(!1),[ne,oe]=f.useState(!1),ee=f.useRef(null),[re,ie]=wn(),p=f.useRef(null),[b,E]=wn(),N=f.useRef(null);f.useEffect(()=>{H&&J(x)},[x,H]);const A=F.useCallbackRef(()=>{l?.(),J(!1)},[l]);f.useEffect(()=>{if(ie.width===0&&ie.height===0||H)return;const U=N.current?.getBoundingClientRect(),he=ie.height-U.height,et=ie.width-U.width;let Pe=.5*et,Nt=.5*he;typeof O?.x=="number"?Pe=O.x:typeof O?.x=="string"&&(Pe=et*(parseFloat(O.x)/100)),typeof O?.y=="number"?Nt=O.y:typeof O?.y=="string"&&(Nt=he*(parseFloat(O.y)/100)),Z({x:Pe,y:Nt})},[ie,E]);const[P,W]=f.useState(!1),[Y,q]=f.useState(null),[Q,te]=f.useState(null),ae=F.useCallbackRef(U=>{if(Y)return Y.focus(U),!0;if(w){const he=p.current?.querySelectorAll?.(w);if(he&&he.length>0)return he[0]?.focus?.(U),!0}return p.current?.focus?.(U),!1},[Y,w]),ue=F.useImperativeElement(o,()=>({focus:U=>{ae(U)}}),[]),Oe={...I,onExited:U=>{i?.(null),I?.onExited?.(U)},onExit:U=>{const he=Q;he&&requestAnimationFrame(()=>{ue.current?.contains(document.activeElement)&&he.focus()}),S?.(),oe(!1),I?.onExit?.(U)},onEntered:(U,he)=>{c?.(),I?.onEntered?.(U,he)},onEntering:(U,he)=>{oe(!0),d?.(ue.current)}};f.useEffect(()=>{ne&&ae()},[ne]);let be=m.jsx(Si,{focusTrapOptions:{escapeDeactivates:!1,allowOutsideClick:!0,initialFocus:!1},ref:z,active:ne,children:m.jsx(D,{in:X,timeout:h,role:"presentation",...Oe,children:m.jsx(L.Box,{className:"MuiDialog-container",ref:p,tabIndex:0,sx:{outline:"none",position:"relative"},onKeyDown:U=>{U.which===F.KeyCodes.Escape&&(A(),ee.current?.start(U,{center:!1}),setTimeout(()=>ee.current?.stop(U),180)),U.stopPropagation()},children:m.jsxs(Ei,{ref:St([N,o]),className:ge({"Mui-focusVisible":P},j,"draggable"),sx:{"& *":U=>sn(U),pointerEvents:"auto",userSelect:"none","&:hover:not([disabled]):not(.Mui-focusVisible)":{outline:U=>`solid ${se.alpha(U.palette.text?.primary,.2)} 1px`},"&.Mui-focusVisible":{outline:U=>`solid ${se.alpha(U.palette.text?.primary,.2)} 1px`},position:"absolute",maxWidth:"100%",...M},defaultPosition:H,titleSize:E,rootSize:ie,PaperComponent:T,...C,...V,children:[a?m.jsx(L.DialogTitle,{className:ge({"Mui-selected":P},"draggable-title"),sx:{cursor:"move",display:"flex",color:U=>U.palette.text.secondary,boxSizing:"border-box",padding:"0 0",transitionProperty:"opacity",transitionDuration:U=>`${U.transitions.duration.shortest}ms`,opacity:.7,"&.Mui-selected":{opacity:1,transitionDuration:U=>U.transitions.duration.shortest/2+"ms"},backgroundColor:U=>se.alpha(U.palette.action.hover,.03)},ref:b,children:m.jsxs(L.Box,{sx:{display:"flex",flex:"1 1 10%",flexDirection:"row",alignItems:"center",marginTop:U=>U.spacing(1),marginLeft:U=>U.spacing(1),marginRight:U=>U.spacing(1)},children:[m.jsx(L.Box,{sx:{flex:"1 1 100%",paddingLeft:U=>U.spacing(1)},children:a}),m.jsx(Ke,{label:"Close",children:m.jsx(L.IconButton,{"aria-label":"close",sx:{color:U=>U.palette.text.icon??U.palette.action.active},touchRippleRef:ee,onPointerDown:U=>{ee.current?.start(U,{center:!1}),U.stopPropagation(),U.preventDefault()},onPointerUp:A,children:m.jsx(F.DynamicIcon,{iconKey:"Close"})})})]})}):null,g]})})})}),G=null;R&&(G=m.jsx(B,{..._,open:X,onMouseDown:U=>{A(),_?.onMouseDown?.(U)},onClick:U=>{y?.(U,"backdropClick"),_?.onClick?.(U)},sx:{pointerEvents:"auto",..._?.sx}}));const{getPortalContainer:le}=F.useFullscreenPortal();return en.createPortal(m.jsxs(L.Box,{className:"MuiModal-root",sx:{position:"fixed",zIndex:"1300",right:"0",bottom:"0",top:"0",left:"0",outline:"0",display:"block",pointerEvents:"none"},ref:St([ue,re]),onPointerDown:U=>{P&&(U.target===p.current||U.target.tabIndex<0)&&p.current?.contains(document.activeElement)},onContextMenu:U=>{U.isPropagationStopped()||U.preventDefault()},onFocus:U=>{!P&&(U.target===p.current||U.target.tabIndex<0)&&setTimeout(()=>{ae()},100),z.current?.focusTrap?.unpause(),W(!0),p.current?.contains(U.target)&&U.target!==p.current&&q(U.target),U.relatedTarget&&!Q&&te(U.relatedTarget)},onBlur:U=>{ue?.current?.contains(U.relatedTarget)||(te(null),z.current?.focusTrap?.pause(),W(!1))},children:[G,be]}),le(),r+"")}));var De=typeof window<"u"?window:{screen:{},navigator:{}},Ze=(De.matchMedia||function(){return{matches:!1}}).bind(De),Ti={get passive(){return!0}},to=function(){};De.addEventListener&&De.addEventListener("p",to,Ti),De.removeEventListener&&De.removeEventListener("p",to,!1);var fn="ontouchstart"in De,ji=fn||"TouchEvent"in De&&Ze("(any-pointer: coarse)").matches,no=(De.navigator.maxTouchPoints||0)>0||ji,rr=De.navigator.userAgent||"",Ri=Ze("(pointer: coarse)").matches&&/iPad|Macintosh/.test(rr)&&Math.min(De.screen.width||0,De.screen.height||0)>=768,ir=(Ze("(pointer: coarse)").matches||!Ze("(pointer: fine)").matches&&fn)&&!/Windows.*Firefox/.test(rr),Pi=Ze("(any-pointer: fine)").matches||Ze("(any-hover: hover)").matches||Ri||!fn,oo=!no||!Pi&&ir?no?"touchOnly":"mouseOnly":"hybrid",Fi=oo==="mouseOnly"?"mouse":oo==="touchOnly"||ir?"touch":"mouse",ut=e=>e.type==="checkbox",$e=e=>e instanceof Date,we=e=>e==null;const ar=e=>typeof e=="object";var me=e=>!we(e)&&!Array.isArray(e)&&ar(e)&&!$e(e),mn=typeof window<"u"&&window.HTMLElement!==void 0&&typeof document<"u";function ye(e){let o;const n=Array.isArray(e),t=typeof FileList<"u"&&e instanceof FileList;if(e instanceof Date)o=new Date(e);else{if(mn&&(e instanceof Blob||t)||!n&&!me(e))return e;if(o=n?[]:Object.create(Object.getPrototypeOf(e)),n||(s=>{const a=s.constructor&&s.constructor.prototype;return me(a)&&a.hasOwnProperty("isPrototypeOf")})(e))for(const s in e)e.hasOwnProperty(s)&&(o[s]=ye(e[s]));else o=e}return o}var Pt=e=>/^\w*$/.test(e),fe=e=>e===void 0,Xt=e=>Array.isArray(e)?e.filter(Boolean):[],hn=e=>Xt(e.replace(/["|']|\]/g,"").split(/\.|\[/)),K=(e,o,n)=>{if(!o||!me(e))return n;const t=(Pt(o)?[o]:hn(o)).reduce((s,a)=>we(s)?s:s[a],e);return fe(t)||t===e?fe(e[o])?n:e[o]:t},Te=e=>typeof e=="boolean",ce=(e,o,n)=>{let t=-1;const s=Pt(o)?[o]:hn(o),a=s.length,r=a-1;for(;++t<a;){const l=s[t];let i=n;if(t!==r){const c=e[l];i=me(c)||Array.isArray(c)?c:isNaN(+s[t+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=i,e=e[l]}};const Ni="blur",Ii="focusout",Bi="onBlur",sr="onChange",lr="onSubmit",_i="onTouched",pt="all",Ai="max",Li="min",Vi="maxLength",$i="minLength",ro="pattern",io="required",zi="validate",cr=f.createContext(null);cr.displayName="HookFormContext";const Wi=e=>{const{children:o,...n}=e;return f.createElement(cr.Provider,{value:n},o)},Ui=typeof window<"u"?f.useLayoutEffect:f.useEffect;var ke=e=>typeof e=="string",Qt=e=>we(e)||!ar(e);function Ae(e,o,n=new WeakSet){if(Qt(e)||Qt(o))return e===o;if($e(e)&&$e(o))return e.getTime()===o.getTime();const t=Object.keys(e),s=Object.keys(o);if(t.length!==s.length)return!1;if(n.has(e)||n.has(o))return!0;n.add(e),n.add(o);for(const a of t){const r=e[a];if(!s.includes(a))return!1;if(a!=="ref"){const l=o[a];if($e(r)&&$e(l)||me(r)&&me(l)||Array.isArray(r)&&Array.isArray(l)?!Ae(r,l,n):r!==l)return!1}}return!0}var Hi=(e,o,n,t,s)=>o?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[t]:s||!0}}:{},st=e=>Array.isArray(e)?e:[e],ao=()=>{let e=[];return{get observers(){return e},next:o=>{for(const n of e)n.next&&n.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(n=>n!==o)}}),unsubscribe:()=>{e=[]}}};function ur(e,o){const n={};for(const t in e)if(e.hasOwnProperty(t)){const s=e[t],a=o[t];if(s&&me(s)&&a){const r=ur(s,a);me(r)&&(n[t]=r)}else e[t]&&(n[t]=a)}return n}var Se=e=>me(e)&&!Object.keys(e).length,gn=e=>e.type==="file",Ee=e=>typeof e=="function",Ot=e=>{if(!mn)return!1;const o=e?e.ownerDocument:0;return e instanceof(o&&o.defaultView?o.defaultView.HTMLElement:HTMLElement)},dr=e=>e.type==="select-multiple",yn=e=>e.type==="radio",$t=e=>Ot(e)&&e.isConnected;function pe(e,o){const n=Array.isArray(o)?o:Pt(o)?[o]:hn(o),t=n.length===1?e:(function(r,l){const i=l.slice(0,-1).length;let c=0;for(;c<i;)r=fe(r)?c++:r[l[c++]];return r})(e,n),s=n.length-1,a=n[s];return t&&delete t[a],s!==0&&(me(t)&&Se(t)||Array.isArray(t)&&(function(r){for(const l in r)if(r.hasOwnProperty(l)&&!fe(r[l]))return!1;return!0})(t))&&pe(e,n.slice(0,-1)),e}function pr(e){return Array.isArray(e)||me(e)&&!(o=>{for(const n in o)if(Ee(o[n]))return!0;return!1})(e)}function Jt(e,o={}){for(const n in e)pr(e[n])?(o[n]=Array.isArray(e[n])?[]:{},Jt(e[n],o[n])):we(e[n])||(o[n]=!0);return o}function qe(e,o,n){n||(n=Jt(o));for(const t in e)pr(e[t])?fe(o)||Qt(n[t])?n[t]=Jt(e[t],Array.isArray(e[t])?[]:{}):qe(e[t],we(o)?{}:o[t],n[t]):n[t]=!Ae(e[t],o[t]);return n}const so={value:!1,isValid:!1},lo={value:!0,isValid:!0};var fr=e=>{if(Array.isArray(e)){if(e.length>1){const o=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:o,isValid:!!o.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!fe(e[0].attributes.value)?fe(e[0].value)||e[0].value===""?lo:{value:e[0].value,isValid:!0}:lo:so}return so},mr=(e,{valueAsNumber:o,valueAsDate:n,setValueAs:t})=>fe(e)?e:o?e===""?NaN:e&&+e:n&&ke(e)?new Date(e):t?t(e):e;const co={isValid:!1,value:null};var hr=e=>Array.isArray(e)?e.reduce((o,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:o,co):co;function uo(e){const o=e.ref;return gn(o)?o.files:yn(o)?hr(e.refs).value:dr(o)?[...o.selectedOptions].map(({value:n})=>n):ut(o)?fr(e.refs).value:mr(fe(o.value)?e.ref.value:o.value,e)}var Et=e=>e instanceof RegExp,at=e=>fe(e)?e:Et(e)?e.source:me(e)?Et(e.value)?e.value.source:e.value:e,po=e=>({isOnSubmit:!e||e===lr,isOnBlur:e===Bi,isOnChange:e===sr,isOnAll:e===pt,isOnTouch:e===_i});const fo="AsyncFunction";var Ki=e=>!!e&&!!e.validate&&!!(Ee(e.validate)&&e.validate.constructor.name===fo||me(e.validate)&&Object.values(e.validate).find(o=>o.constructor.name===fo)),mo=(e,o,n)=>!n&&(o.watchAll||o.watch.has(e)||[...o.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));const dt=(e,o,n,t)=>{for(const s of n||Object.keys(e)){const a=K(e,s);if(a){const{_f:r,...l}=a;if(r){if(r.refs&&r.refs[0]&&o(r.refs[0],s)&&!t||r.ref&&o(r.ref,r.name)&&!t)return!0;if(dt(l,o))break}else if(me(l)&&dt(l,o))break}}};function ho(e,o,n){const t=K(e,n);if(t||Pt(n))return{error:t,name:n};const s=n.split(".");for(;s.length;){const a=s.join("."),r=K(o,a),l=K(e,a);if(r&&!Array.isArray(r)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};if(l&&l.root&&l.root.type)return{name:`${a}.root`,error:l.root};s.pop()}return{name:n}}var Yi=(e,o,n)=>{const t=st(K(e,n));return ce(t,"root",o[n]),ce(e,n,t),e};function go(e,o,n="validate"){if(ke(e)||Array.isArray(e)&&e.every(ke)||Te(e)&&!e)return{type:n,message:ke(e)?e:"",ref:o}}var Ye=e=>me(e)&&!Et(e)?e:{value:e,message:""},yo=async(e,o,n,t,s,a)=>{const{ref:r,refs:l,required:i,maxLength:c,minLength:d,min:S,max:y,pattern:x,validate:w,name:g,valueAsNumber:h,mount:v}=e._f,u=K(n,g);if(!v||o.has(g))return{};const k=l?l[0]:r,M=T=>{s&&k.reportValidity&&(k.setCustomValidity(Te(T)?"":T||""),k.reportValidity())},j={},$=yn(r),O=ut(r),R=$||O,C=(h||gn(r))&&fe(r.value)&&fe(u)||Ot(r)&&r.value===""||u===""||Array.isArray(u)&&!u.length,D=Hi.bind(null,g,t,j),B=(T,I,_,V=Vi,z=$i)=>{const H=T?I:_;j[g]={type:T?V:z,message:H,ref:r,...D(T?V:z,H)}};if(a?!Array.isArray(u)||!u.length:i&&(!R&&(C||we(u))||Te(u)&&!u||O&&!fr(l).isValid||$&&!hr(l).isValid)){const{value:T,message:I}=ke(i)?{value:!!i,message:i}:Ye(i);if(T&&(j[g]={type:io,message:I,ref:k,...D(io,I)},!t))return M(I),j}if(!(C||we(S)&&we(y))){let T,I;const _=Ye(y),V=Ye(S);if(we(u)||isNaN(u)){const z=r.valueAsDate||new Date(u),H=J=>new Date(new Date().toDateString()+" "+J),Z=r.type=="time",X=r.type=="week";ke(_.value)&&u&&(T=Z?H(u)>H(_.value):X?u>_.value:z>new Date(_.value)),ke(V.value)&&u&&(I=Z?H(u)<H(V.value):X?u<V.value:z<new Date(V.value))}else{const z=r.valueAsNumber||u&&+u;we(_.value)||(T=z>_.value),we(V.value)||(I=z<V.value)}if((T||I)&&(B(!!T,_.message,V.message,Ai,Li),!t))return M(j[g].message),j}if((c||d)&&!C&&(ke(u)||a&&Array.isArray(u))){const T=Ye(c),I=Ye(d),_=!we(T.value)&&u.length>+T.value,V=!we(I.value)&&u.length<+I.value;if((_||V)&&(B(_,T.message,I.message),!t))return M(j[g].message),j}if(x&&!C&&ke(u)){const{value:T,message:I}=Ye(x);if(Et(T)&&!u.match(T)&&(j[g]={type:ro,message:I,ref:r,...D(ro,I)},!t))return M(I),j}if(w){if(Ee(w)){const T=go(await w(u,n),k);if(T&&(j[g]={...T,...D(zi,T.message)},!t))return M(T.message),j}else if(me(w)){let T={};for(const I in w){if(!Se(T)&&!t)break;const _=go(await w[I](u,n),k,I);_&&(T={..._,...D(I,_.message)},M(_.message),t&&(j[g]=T))}if(!Se(T)&&(j[g]={ref:k,...T},!t))return j}}return M(!0),j};const qi={mode:lr,reValidateMode:sr,shouldFocusError:!0};function Gi(e={}){let o,n={...qi,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ee(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},a=(me(n.defaultValues)||me(n.values))&&ye(n.defaultValues||n.values)||{},r=n.shouldUnregister?{}:ye(a),l={action:!1,mount:!1,watch:!1},i={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let S={...d};const y={array:ao(),state:ao()},x=n.criteriaMode===pt,w=async p=>{if(!n.disabled&&(d.isValid||S.isValid||p)){const b=n.resolver?Se((await k()).errors):await M(s,!0);b!==t.isValid&&y.state.next({isValid:b})}},g=(p,b)=>{!n.disabled&&(d.isValidating||d.validatingFields||S.isValidating||S.validatingFields)&&((p||Array.from(i.mount)).forEach(E=>{E&&(b?ce(t.validatingFields,E,b):pe(t.validatingFields,E))}),y.state.next({validatingFields:t.validatingFields,isValidating:!Se(t.validatingFields)}))},h=(p,b,E,N)=>{const A=K(s,p);if(A){const P=K(r,p,fe(E)?K(a,p):E);fe(P)||N&&N.defaultChecked||b?ce(r,p,b?P:uo(A._f)):O(p,P),l.mount&&w()}},v=(p,b,E,N,A)=>{let P=!1,W=!1;const Y={name:p};if(!n.disabled){if(!E||N){(d.isDirty||S.isDirty)&&(W=t.isDirty,t.isDirty=Y.isDirty=j(),P=W!==Y.isDirty);const q=Ae(K(a,p),b);W=!!K(t.dirtyFields,p),q?pe(t.dirtyFields,p):ce(t.dirtyFields,p,!0),Y.dirtyFields=t.dirtyFields,P=P||(d.dirtyFields||S.dirtyFields)&&W!==!q}if(E){const q=K(t.touchedFields,p);q||(ce(t.touchedFields,p,E),Y.touchedFields=t.touchedFields,P=P||(d.touchedFields||S.touchedFields)&&q!==E)}P&&A&&y.state.next(Y)}return P?Y:{}},u=(p,b,E,N)=>{const A=K(t.errors,p),P=(d.isValid||S.isValid)&&Te(b)&&t.isValid!==b;var W;if(n.delayError&&E?(W=()=>((Y,q)=>{ce(t.errors,Y,q),y.state.next({errors:t.errors})})(p,E),o=Y=>{clearTimeout(c),c=setTimeout(W,Y)},o(n.delayError)):(clearTimeout(c),o=null,E?ce(t.errors,p,E):pe(t.errors,p)),(E?!Ae(A,E):A)||!Se(N)||P){const Y={...N,...P&&Te(b)?{isValid:b}:{},errors:t.errors,name:p};t={...t,...Y},y.state.next(Y)}},k=async p=>{g(p,!0);const b=await n.resolver(r,n.context,((E,N,A,P)=>{const W={};for(const Y of E){const q=K(N,Y);q&&ce(W,Y,q._f)}return{criteriaMode:A,names:[...E],fields:W,shouldUseNativeValidation:P}})(p||i.mount,s,n.criteriaMode,n.shouldUseNativeValidation));return g(p),b},M=async(p,b,E={valid:!0})=>{for(const N in p){const A=p[N];if(A){const{_f:P,...W}=A;if(P){const Y=i.array.has(P.name),q=A._f&&Ki(A._f);q&&d.validatingFields&&g([P.name],!0);const Q=await yo(A,i.disabled,r,x,n.shouldUseNativeValidation&&!b,Y);if(q&&d.validatingFields&&g([P.name]),Q[P.name]&&(E.valid=!1,b))break;!b&&(K(Q,P.name)?Y?Yi(t.errors,Q,P.name):ce(t.errors,P.name,Q[P.name]):pe(t.errors,P.name))}!Se(W)&&await M(W,b,E)}}return E.valid},j=(p,b)=>!n.disabled&&(p&&b&&ce(r,p,b),!Ae(I(),a)),$=(p,b,E)=>((N,A,P,W,Y)=>ke(N)?(W&&A.watch.add(N),K(P,N,Y)):Array.isArray(N)?N.map(q=>(W&&A.watch.add(q),K(P,q))):(W&&(A.watchAll=!0),P))(p,i,{...l.mount?r:fe(b)?a:ke(p)?{[p]:b}:b},E,b),O=(p,b,E={})=>{const N=K(s,p);let A=b;if(N){const P=N._f;P&&(!P.disabled&&ce(r,p,mr(b,P)),A=Ot(P.ref)&&we(b)?"":b,dr(P.ref)?[...P.ref.options].forEach(W=>W.selected=A.includes(W.value)):P.refs?ut(P.ref)?P.refs.forEach(W=>{W.defaultChecked&&W.disabled||(Array.isArray(A)?W.checked=!!A.find(Y=>Y===W.value):W.checked=A===W.value||!!A)}):P.refs.forEach(W=>W.checked=W.value===A):gn(P.ref)?P.ref.value="":(P.ref.value=A,P.ref.type||y.state.next({name:p,values:ye(r)})))}(E.shouldDirty||E.shouldTouch)&&v(p,A,E.shouldTouch,E.shouldDirty,!0),E.shouldValidate&&T(p)},R=(p,b,E)=>{for(const N in b){if(!b.hasOwnProperty(N))return;const A=b[N],P=p+"."+N,W=K(s,P);(i.array.has(p)||me(A)||W&&!W._f)&&!$e(A)?R(P,A,E):O(P,A,E)}},C=(p,b,E={})=>{const N=K(s,p),A=i.array.has(p),P=ye(b);ce(r,p,P),A?(y.array.next({name:p,values:ye(r)}),(d.isDirty||d.dirtyFields||S.isDirty||S.dirtyFields)&&E.shouldDirty&&y.state.next({name:p,dirtyFields:qe(a,r),isDirty:j(p,P)})):!N||N._f||we(P)?O(p,P,E):R(p,P,E),mo(p,i)&&y.state.next({...t,name:p}),y.state.next({name:l.mount?p:void 0,values:ye(r)})},D=async p=>{l.mount=!0;const b=p.target;let E=b.name,N=!0;const A=K(s,E),P=q=>{N=Number.isNaN(q)||$e(q)&&isNaN(q.getTime())||Ae(q,K(r,E,q))},W=po(n.mode),Y=po(n.reValidateMode);if(A){let q,Q;const te=b.type?uo(A._f):(le=>me(le)&&le.target?ut(le.target)?le.target.checked:le.target.value:le)(p),ae=p.type===Ni||p.type===Ii,ue=!(le=>le.mount&&(le.required||le.min||le.max||le.maxLength||le.minLength||le.pattern||le.validate))(A._f)&&!n.resolver&&!K(t.errors,E)&&!A._f.deps||((le,U,he,et,Pe)=>!Pe.isOnAll&&(!he&&Pe.isOnTouch?!(U||le):(he?et.isOnBlur:Pe.isOnBlur)?!le:!(he?et.isOnChange:Pe.isOnChange)||le))(ae,K(t.touchedFields,E),t.isSubmitted,Y,W),Oe=mo(E,i,ae);ce(r,E,te),ae?b&&b.readOnly||(A._f.onBlur&&A._f.onBlur(p),o&&o(0)):A._f.onChange&&A._f.onChange(p);const be=v(E,te,ae),G=!Se(be)||Oe;if(!ae&&y.state.next({name:E,type:p.type,values:ye(r)}),ue)return(d.isValid||S.isValid)&&(n.mode==="onBlur"?ae&&w():ae||w()),G&&y.state.next({name:E,...Oe?{}:be});if(!ae&&Oe&&y.state.next({...t}),n.resolver){const{errors:le}=await k([E]);if(P(te),N){const U=ho(t.errors,s,E),he=ho(le,s,U.name||E);q=he.error,E=he.name,Q=Se(le)}}else g([E],!0),q=(await yo(A,i.disabled,r,x,n.shouldUseNativeValidation))[E],g([E]),P(te),N&&(q?Q=!1:(d.isValid||S.isValid)&&(Q=await M(s,!0)));N&&(A._f.deps&&(!Array.isArray(A._f.deps)||A._f.deps.length>0)&&T(A._f.deps),u(E,Q,q,be))}},B=(p,b)=>{if(K(t.errors,b)&&p.focus)return p.focus(),1},T=async(p,b={})=>{let E,N;const A=st(p);if(n.resolver){const P=await(async W=>{const{errors:Y}=await k(W);if(W)for(const q of W){const Q=K(Y,q);Q?ce(t.errors,q,Q):pe(t.errors,q)}else t.errors=Y;return Y})(fe(p)?p:A);E=Se(P),N=p?!A.some(W=>K(P,W)):E}else p?(N=(await Promise.all(A.map(async P=>{const W=K(s,P);return await M(W&&W._f?{[P]:W}:W)}))).every(Boolean),(N||t.isValid)&&w()):N=E=await M(s);return y.state.next({...!ke(p)||(d.isValid||S.isValid)&&E!==t.isValid?{}:{name:p},...n.resolver||!p?{isValid:E}:{},errors:t.errors}),b.shouldFocus&&!N&&dt(s,B,p?A:i.mount),N},I=(p,b)=>{let E={...l.mount?r:a};return b&&(E=ur(b.dirtyFields?t.dirtyFields:t.touchedFields,E)),fe(p)?E:ke(p)?K(E,p):p.map(N=>K(E,N))},_=(p,b)=>({invalid:!!K((b||t).errors,p),isDirty:!!K((b||t).dirtyFields,p),error:K((b||t).errors,p),isValidating:!!K(t.validatingFields,p),isTouched:!!K((b||t).touchedFields,p)}),V=(p,b,E)=>{const N=(K(s,p,{_f:{}})._f||{}).ref,A=K(t.errors,p)||{},{ref:P,message:W,type:Y,...q}=A;ce(t.errors,p,{...q,...b,ref:N}),y.state.next({name:p,errors:t.errors,isValid:!1}),E&&E.shouldFocus&&N&&N.focus&&N.focus()},z=p=>y.state.subscribe({next:b=>{var E,N,A;E=p.name,N=b.name,A=p.exact,E&&N&&E!==N&&!st(E).some(P=>P&&(A?P===N:P.startsWith(N)||N.startsWith(P)))||!((P,W,Y,q)=>{Y(P);const{name:Q,...te}=P;return Se(te)||Object.keys(te).length>=Object.keys(W).length||Object.keys(te).find(ae=>W[ae]===(!q||pt))})(b,p.formState||d,re,p.reRenderRoot)||p.callback({values:{...r},...t,...b,defaultValues:a})}}).unsubscribe,H=(p,b={})=>{for(const E of p?st(p):i.mount)i.mount.delete(E),i.array.delete(E),b.keepValue||(pe(s,E),pe(r,E)),!b.keepError&&pe(t.errors,E),!b.keepDirty&&pe(t.dirtyFields,E),!b.keepTouched&&pe(t.touchedFields,E),!b.keepIsValidating&&pe(t.validatingFields,E),!n.shouldUnregister&&!b.keepDefaultValue&&pe(a,E);y.state.next({values:ye(r)}),y.state.next({...t,...b.keepDirty?{isDirty:j()}:{}}),!b.keepIsValid&&w()},Z=({disabled:p,name:b})=>{(Te(p)&&l.mount||p||i.disabled.has(b))&&(p?i.disabled.add(b):i.disabled.delete(b))},X=(p,b={})=>{let E=K(s,p);const N=Te(b.disabled)||Te(n.disabled);return ce(s,p,{...E||{},_f:{...E&&E._f?E._f:{ref:{name:p}},name:p,mount:!0,...b}}),i.mount.add(p),E?Z({disabled:Te(b.disabled)?b.disabled:n.disabled,name:p}):h(p,!0,b.value),{...N?{disabled:b.disabled||n.disabled}:{},...n.progressive?{required:!!b.required,min:at(b.min),max:at(b.max),minLength:at(b.minLength),maxLength:at(b.maxLength),pattern:at(b.pattern)}:{},name:p,onChange:D,onBlur:D,ref:A=>{if(A){X(p,b),E=K(s,p);const P=fe(A.value)&&A.querySelectorAll&&A.querySelectorAll("input,select,textarea")[0]||A,W=(q=>yn(q)||ut(q))(P),Y=E._f.refs||[];if(W?Y.find(q=>q===P):P===E._f.ref)return;ce(s,p,{_f:{...E._f,...W?{refs:[...Y.filter($t),P,...Array.isArray(K(a,p))?[{}]:[]],ref:{type:P.type,name:p}}:{ref:P}}}),h(p,!1,void 0,P)}else E=K(s,p,{}),E._f&&(E._f.mount=!1),(n.shouldUnregister||b.shouldUnregister)&&(!((P,W)=>P.has((Y=>Y.substring(0,Y.search(/\.\d+(\.|$)/))||Y)(W)))(i.array,p)||!l.action)&&i.unMount.add(p)}}},J=()=>n.shouldFocusError&&dt(s,B,i.mount),ne=(p,b)=>async E=>{let N;E&&(E.preventDefault&&E.preventDefault(),E.persist&&E.persist());let A=ye(r);if(y.state.next({isSubmitting:!0}),n.resolver){const{errors:P,values:W}=await k();t.errors=P,A=ye(W)}else await M(s);if(i.disabled.size)for(const P of i.disabled)pe(A,P);if(pe(t.errors,"root"),Se(t.errors)){y.state.next({errors:{}});try{await p(A,E)}catch(P){N=P}}else b&&await b({...t.errors},E),J(),setTimeout(J);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Se(t.errors)&&!N,submitCount:t.submitCount+1,errors:t.errors}),N)throw N},oe=(p,b={})=>{const E=p?ye(p):a,N=ye(E),A=Se(p),P=A?a:N;if(b.keepDefaultValues||(a=E),!b.keepValues){if(b.keepDirtyValues){const W=new Set([...i.mount,...Object.keys(qe(a,r))]);for(const Y of Array.from(W))K(t.dirtyFields,Y)?ce(P,Y,K(r,Y)):C(Y,K(P,Y))}else{if(mn&&fe(p))for(const W of i.mount){const Y=K(s,W);if(Y&&Y._f){const q=Array.isArray(Y._f.refs)?Y._f.refs[0]:Y._f.ref;if(Ot(q)){const Q=q.closest("form");if(Q){Q.reset();break}}}}if(b.keepFieldsRef)for(const W of i.mount)C(W,K(P,W));else s={}}r=n.shouldUnregister?b.keepDefaultValues?ye(a):{}:ye(P),y.array.next({values:{...P}}),y.state.next({values:{...P}})}i={mount:b.keepDirtyValues?i.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!d.isValid||!!b.keepIsValid||!!b.keepDirtyValues,l.watch=!!n.shouldUnregister,y.state.next({submitCount:b.keepSubmitCount?t.submitCount:0,isDirty:!A&&(b.keepDirty?t.isDirty:!(!b.keepDefaultValues||Ae(p,a))),isSubmitted:!!b.keepIsSubmitted&&t.isSubmitted,dirtyFields:A?{}:b.keepDirtyValues?b.keepDefaultValues&&r?qe(a,r):t.dirtyFields:b.keepDefaultValues&&p?qe(a,p):b.keepDirty?t.dirtyFields:{},touchedFields:b.keepTouched?t.touchedFields:{},errors:b.keepErrors?t.errors:{},isSubmitSuccessful:!!b.keepIsSubmitSuccessful&&t.isSubmitSuccessful,isSubmitting:!1,defaultValues:a})},ee=(p,b)=>oe(Ee(p)?p(r):p,b),re=p=>{t={...t,...p}},ie={control:{register:X,unregister:H,getFieldState:_,handleSubmit:ne,setError:V,_subscribe:z,_runSchema:k,_focusError:J,_getWatch:$,_getDirty:j,_setValid:w,_setFieldArray:(p,b=[],E,N,A=!0,P=!0)=>{if(N&&E&&!n.disabled){if(l.action=!0,P&&Array.isArray(K(s,p))){const W=E(K(s,p),N.argA,N.argB);A&&ce(s,p,W)}if(P&&Array.isArray(K(t.errors,p))){const W=E(K(t.errors,p),N.argA,N.argB);A&&ce(t.errors,p,W),((Y,q)=>{!Xt(K(Y,q)).length&&pe(Y,q)})(t.errors,p)}if((d.touchedFields||S.touchedFields)&&P&&Array.isArray(K(t.touchedFields,p))){const W=E(K(t.touchedFields,p),N.argA,N.argB);A&&ce(t.touchedFields,p,W)}(d.dirtyFields||S.dirtyFields)&&(t.dirtyFields=qe(a,r)),y.state.next({name:p,isDirty:j(p,b),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else ce(r,p,b)},_setDisabledField:Z,_setErrors:p=>{t.errors=p,y.state.next({errors:t.errors,isValid:!1})},_getFieldArray:p=>Xt(K(l.mount?r:a,p,n.shouldUnregister?K(a,p,[]):[])),_reset:oe,_resetDefaultValues:()=>Ee(n.defaultValues)&&n.defaultValues().then(p=>{ee(p,n.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(const p of i.unMount){const b=K(s,p);b&&(b._f.refs?b._f.refs.every(E=>!$t(E)):!$t(b._f.ref))&&H(p)}i.unMount=new Set},_disableForm:p=>{Te(p)&&(y.state.next({disabled:p}),dt(s,(b,E)=>{const N=K(s,E);N&&(b.disabled=N._f.disabled||p,Array.isArray(N._f.refs)&&N._f.refs.forEach(A=>{A.disabled=N._f.disabled||p}))},0,!1))},_subjects:y,_proxyFormState:d,get _fields(){return s},get _formValues(){return r},get _state(){return l},set _state(p){l=p},get _defaultValues(){return a},get _names(){return i},set _names(p){i=p},get _formState(){return t},get _options(){return n},set _options(p){n={...n,...p}}},subscribe:p=>(l.mount=!0,S={...S,...p.formState},z({...p,formState:S})),trigger:T,register:X,handleSubmit:ne,watch:(p,b)=>Ee(p)?y.state.subscribe({next:E=>"values"in E&&p($(void 0,b),E)}):$(p,b,!0),setValue:C,getValues:I,reset:ee,resetField:(p,b={})=>{K(s,p)&&(fe(b.defaultValue)?C(p,ye(K(a,p))):(C(p,b.defaultValue),ce(a,p,ye(b.defaultValue))),b.keepTouched||pe(t.touchedFields,p),b.keepDirty||(pe(t.dirtyFields,p),t.isDirty=b.defaultValue?j(p,ye(K(a,p))):j()),b.keepError||(pe(t.errors,p),d.isValid&&w()),y.state.next({...t}))},clearErrors:p=>{p&&st(p).forEach(b=>pe(t.errors,b)),y.state.next({errors:p?t.errors:{}})},unregister:H,setError:V,setFocus:(p,b={})=>{const E=K(s,p),N=E&&E._f;if(N){const A=N.refs?N.refs[0]:N.ref;A.focus&&(A.focus(),b.shouldSelect&&Ee(A.select)&&A.select())}},getFieldState:_};return{...ie,formControl:ie}}function Xi(e={}){const o=f.useRef(void 0),n=f.useRef(void 0),[t,s]=f.useState({isDirty:!1,isValidating:!1,isLoading:Ee(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ee(e.defaultValues)?void 0:e.defaultValues});if(!o.current)if(e.formControl)o.current={...e.formControl,formState:t},e.defaultValues&&!Ee(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...l}=Gi(e);o.current={...l,formState:t}}const a=o.current.control;return a._options=e,Ui(()=>{const r=a._subscribe({formState:a._proxyFormState,callback:()=>s({...a._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),a._formState.isReady=!0,r},[a]),f.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),f.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),f.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),f.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),f.useEffect(()=>{if(a._proxyFormState.isDirty){const r=a._getDirty();r!==t.isDirty&&a._subjects.state.next({isDirty:r})}},[a,t.isDirty]),f.useEffect(()=>{e.values&&!Ae(e.values,n.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),n.current=e.values,s(r=>({...r}))):a._resetDefaultValues()},[a,e.values]),f.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),o.current.formState=((r,l,i,c=!0)=>{const d={defaultValues:l._defaultValues};for(const S in r)Object.defineProperty(d,S,{get:()=>{const y=S;return l._proxyFormState[y]!==pt&&(l._proxyFormState[y]=!c||pt),r[y]}});return d})(t,a),o.current}const Qi=["Ok","Cancel"],Zt=f.memo(f.forwardRef((e,o)=>{const{description:n,icon:t,onCancel:s,onOption:a,onDone:r,onValidateOption:l,createOptionsButton:i,options:c=Qi,autoFocusSel:d=".defaultOption",defaultOption:S=c[0],cancelOption:y="Cancel",autoFocus:x,children:w,...g}=e,h=Xi({shouldUseNativeValidation:!1}),{handleSubmit:v,formState:u}=h,k=f.useRef(null),M=f.useRef(null),j=f.useRef(null),$=F.useCallbackRef(async T=>{let I;try{if(I=await Promise.resolve(l?.(T))??!0,I!==!0)return;await Promise.resolve(a?.(T,T===y,T===S)),r?.(T)}catch{}},[a,r,l,y,S]),O=F.useCallbackRef((T,I)=>{setTimeout(()=>{$(S)},180)},[$]),R=F.useCallbackRef(()=>{a?.(y,!0,!1),s?.(),r?.(null)},[a,y,s,r]),C=u&&(Object.keys(u.errors).length>0||u.disabled||u.isSubmitted),D=F.useCallbackRef((T,I)=>{const _=T===y,V={className:I?"defaultOption":"action",type:I?"submit":"button",style:{minWidth:"75px"},onClick:()=>{_?R():I||$(T)}};if(i)return i(T,V,I);const z={className:I?"defaultOption":"action",variant:I?"contained":"outlined",size:"small",disabled:!_&&C,color:"primary",...V};if(I||_){const H=I?k:M;z.touchRippleRef=H,z.onPointerDown=Z=>{H.current?.start(Z,{center:!1}),Z.stopPropagation(),Z.preventDefault()}}return m.jsx(L.Button,{...z,children:m.jsx("div",{style:{paddingTop:"3px"},children:T})},`action:${T}`)},[c,S,y,i,u]),B=f.useMemo(()=>{const T=[];for(let I=0;I<c.length;I++){const _=c[I],V=S?_===S:I===0;T.push(D(_,V))}return T},[c,S,u]);return m.jsx(or,{onCancel:R,initialPosition:{y:Fi==="touch"?"15":"35"},onDone:r,autoFocusSel:d,isModal:!0,ref:o,...g,children:m.jsx(Wi,{...h,children:m.jsxs("form",{ref:j,onSubmit:v(O),children:[m.jsx(L.DialogContent,{dividers:!0,onKeyDown:T=>{if(T.isDefaultPrevented())return;T.stopPropagation();let I=null,_=null;const V=T.which===F.KeyCodes.Escape&&y;if(V)I=y,_=M;else{if(C)return;T.which===F.KeyCodes.Enter&&(I=S??c[0],_=k)}I&&(_.current?.start(T,{center:!1}),setTimeout(()=>{_.current?.stop(T),V&&$(I)},180))},children:m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"column",whiteSpace:"pre-wrap",rowGap:T=>T.spacing(t||n?1.5:0)},children:[m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"column"},children:[t,m.jsx(L.Typography,{children:n})]}),w]})}),m.jsx(L.DialogActions,{sx:{paddingTop:T=>T.spacing(1),paddingBottom:T=>T.spacing(1),paddingLeft:T=>T.spacing(1),paddingRight:T=>T.spacing(1),backgroundColor:T=>se.alpha(T.palette.action.hover,.03)},children:B})]})})})})),Ji=Object.freeze(Object.defineProperty({__proto__:null,OptionsDialog:Zt,default:Zt},Symbol.toStringTag,{value:"Module"})),Zi=f.lazy(()=>Promise.resolve().then(()=>Ji)),ea=f.lazy(()=>Promise.resolve().then(()=>require("./BVaOx-dz8G9UVo08.cjs"))),Ft=f.memo(f.forwardRef((e,o)=>{const{command:n,disabled:t=!1,shortcut:s,children:a,...r}=e;return F.useCommand(n),m.jsx(Ke,{ref:o,label:t!==void 0?n?.getLabel():"",shortcut:s!==void 0?s:Array.isArray(n?.getShortcut())?n?.getShortcut()[0]:n?.getShortcut(),description:n?.getDescription(),disabled:t,chips:n?.getTags(),componentDisabled:n?.disabled(),...r,children:m.jsx("div",{style:{display:"flex",flex:"1 1 0%"},children:a})})})),ta=m.jsx(F.DynamicIcon,{}),bn=f.memo(f.forwardRef((e,o)=>{const{command:n,commandHook:t,scope:s,context:a,icon:r,label:l,disabled:i=!1,variant:c=F.CommandButtonType.Toolbar,shortcut:d,commandState:S,propsTooltip:y,...x}=e,w=f.useRef(null),g=f.useRef(!1),h=f.useMemo(()=>{const R={onExecute(C,D){t?.onExecute?.(C,D),g.current||(w.current?.start({center:!1}),setTimeout(()=>w.current?.stop({}),180)),g.current=!1},onError(C,D,B){t?.onError(C,D,B)}};return t?.beforeExecute&&(R.beforeExecute=t.beforeExecute),R},[t]),v=F.useCommand(n,h),u=f.useCallback(R=>{R.button===0&&R.preventDefault()},[]),k=f.useCallback(R=>{R.button===0&&n?.execute(S,t)},[v,t,S]),M=f.useCallback(R=>{R.keyCode!==F.KeyCodes.Enter&&R.keyCode!==F.KeyCodes.Space||n?.execute(S,t)},[v,t,S]),j=f.useMemo(()=>{if(r)return typeof r=="function"?r(n):r;let R=n?.getIcon(a);return R?(typeof R=="string"&&(R=m.jsx(F.DynamicIcon,{iconKey:R})),R):c===F.CommandButtonType.Toolbar||n?.getState()?void 0:ta},[v,r]),$=f.useMemo(()=>({tabIndex:0,ref:o,selected:n?.getState(),icon:c===F.CommandButtonType.Toolbar?j:m.jsx($o,{selected:n?.getState()??!1,children:j}),touchRippleRef:w,disabled:i||!n||n.disabled(),onMouseDown:u,onMouseUp:k,onKeyDown:M}),[v,t,i,j]);let O;return O=c===F.CommandButtonType.Menuitem?m.jsx(Je,{...x,chips:n?.getTags(),...$,children:l??n?.getLabel(s,a)}):m.jsx(mt,{...x,...$}),(l||n?.getLabel())&&((n.disabled()||i)&&(O=m.jsx("div",{children:O})),O=m.jsx(Ft,{command:n,placement:c===F.CommandButtonType.Toolbar?"bottom-start":"right-start",shortcut:d,...y,children:O})),O}));bn.displayName="CommandButton";const na=m.jsx(F.DynamicIcon,{}),oa=f.memo(f.forwardRef((e,o)=>{const{command:n,scope:t,icon:s=na,label:a,variant:r=F.CommandButtonType.Toolbar,disabled:l=!1,commandHook:i,...c}=e,d=f.useRef(null),S=f.useRef(!1),y=f.useMemo(()=>{const O={onExecute(R,C){i?.onExecute?.(R,C),S.current||(d.current?.start({center:!1}),setTimeout(()=>d.current?.stop({}),180)),S.current=!1},onError(R,C,D){i?.onError(R,C,D)}};return i?.beforeExecute&&(O.beforeExecute=i.beforeExecute),O},[i]),x=F.useCommand(n,y),w=()=>n?.getState()?.toString()||"0",[g,h]=f.useState(w),v=F.useCallbackRef(()=>{const O=parseFloat(g);isNaN(O)?h(w()):parseFloat(w())!==O&&n.execute(O,i)},[w,n,g,i]);f.useEffect(()=>{h(w())},[n?.getState()]);const u=f.useMemo(()=>{let O=typeof s=="function"?s(n):s;return O&&(O=n?.getIcon()),typeof O=="string"&&(O=m.jsx(F.DynamicIcon,{iconKey:O})),O},[x,s,n?.getIcon]),k=f.useMemo(()=>a===void 0?n?.getLabel(t):typeof a=="function"?a():a,[x]),M=f.useMemo(()=>m.jsx(L.IconButton,{...c,sx:{paddingTop:"0px",paddingBottom:"0px"},component:"div",disableRipple:!0,onClick:O=>O.stopPropagation(),onMouseDown:O=>{O.button===0&&O.stopPropagation()},onMouseUp:O=>{O.button===0&&O.stopPropagation()},children:m.jsx(L.Input,{inputMode:"numeric",disabled:l||!n||n.disabled(),inputProps:{tabIndex:0,name:`input-${n.getKey()}`,autoComplete:"off",type:"number",maxLength:4},sx:{paddingTop:"0px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",fontSize:O=>`${Math.round(O.typography.fontSize)}px`,width:O=>"3.2em",input:{padding:"0 0",textAlign:"center",MozAppearance:"textfield"},"input::-webkit-inner-spin-button":{WebkitAppearance:"none",margin:"0"},minHeight:"24px"},value:g,onFocus:O=>{O.target?.select()},onKeyDown:O=>{if(O.which===F.KeyCodes.Enter)w()!==g&&(O.stopPropagation(),O.preventDefault(),v());else if(O.which===F.KeyCodes.Escape)w()!==g&&(h(w()),setTimeout(()=>{O.target?.select()},0),O.stopPropagation(),O.preventDefault());else{if(O.key.match("[-]")||O.key.match("[0-9.]")&&(g+O.key).length>4)return O.stopPropagation(),void O.preventDefault();if(O.which===F.KeyCodes.Space)return void O.preventDefault()}},onBlur:()=>{v()},onChange:O=>{if(O.target.value.length>4)return O.stopPropagation(),void O.preventDefault();h(O.target.value)}})}),[g,l,n]),j={tabIndex:0,ref:o,icon:u,touchRippleRef:d,disabled:l||!n||n.disabled(),onMouseDown:O=>{O.button===0&&O.preventDefault()},onMouseUp:O=>{O.button!==0||O.isPropagationStopped()||O.isDefaultPrevented()||O.isDefaultPrevented()||(O.preventDefault(),n?.execute(!n?.getState(),y))},onKeyDown:O=>{O.keyCode!==F.KeyCodes.Enter&&O.keyCode!==F.KeyCodes.Space||n?.execute(!n?.getState(),y)}};let $;return $=r===F.CommandButtonType.Menuitem?m.jsxs(Je,{...c,chips:n?.getTags(),...j,children:[k,M]}):m.jsx(mt,{...c,...j}),n?.getLabel()&&((n.disabled()||l)&&($=m.jsx("div",{children:$})),$=m.jsx(Ft,{command:n,placement:r===F.CommandButtonType.Toolbar?"bottom-start":"right-start",children:$})),$})),vn=f.memo(f.forwardRef((e,o)=>{const{variant:n=F.CommandButtonType.Toolbar,quickCommand:t,onQuickClick:s,commands:a,commandState:r,commandHook:l,disabled:i,label:c,icon:d,createPopupPanel:S,tooltip:y,selected:x,scope:w,...g}=e,h=f.useRef(null),v=f.useRef(!1),u=f.useMemo(()=>{const D={onExecute(B,T){l?.onExecute?.(B,T),v.current||(h.current?.start({center:!1}),setTimeout(()=>h.current?.stop({}),180)),v.current=!1},onError(B,T,I){l?.onError(B,T,I)}};return l?.beforeExecute&&(D.beforeExecute=l.beforeExecute),D},[l]),k=F.useCommands(a,[t],null,[t]),M=k[0],{label:j,icon:$}=f.useMemo(()=>{let D=null;c&&(D=typeof c=="function"?c(M):c),D||(D=M?.getLabel?.(w));let B=d;return B||(B=M?.getIcon?.()),typeof B=="string"?B=m.jsx(F.DynamicIcon,{iconKey:B}):typeof B=="function"&&(B=B(M)),{label:D,icon:B}},[k,c,d]),O={disabled:i,scope:w,touchRippleRef:h,onQuickClick:s,tooltip:y,label:j,icon:$};(j||y)&&(O.createTooltip=({children:D},B)=>m.jsx(Ke,{label:j,description:y,disabled:B,children:D}));const R=F.useCallbackRef(D=>S?.(D,a),[S,k]),C=F.useCallbackRef(D=>M?.execute(r,u),[M]);return M?(O.propsQuickButton={},O.propsQuickButton.createTooltip=({children:D,placement:B},T)=>m.jsx(Ft,{command:M,placement:B??n===F.CommandButtonType.Toolbar?"bottom-start":"right-start",disabled:T,children:D}),O.disabled=O.disabled??M?.disabled(),s||(O.onQuickClick=C)):t&&(O.onQuickClick=()=>{}),O.selected=x??M?.getState(),O.createPopupPanel=R,n===F.CommandButtonType.Toolbar?m.jsx(jt,{...g,...O,ref:o}):m.jsx(un,{...g,...O,ref:o})}));vn.displayName="CommandPopupButton";const ra=m.jsx(F.DynamicIcon,{iconKey:"Check"}),gr=f.memo(f.forwardRef((e,o)=>{const{sx:n,commands:t,propsCommandButton:s,parentFloat:a,renderToolbarPalette:r,children:l,...i}=e,c=F.useImperativeElement(o,()=>({}),[]),[d,S]=f.useState(null),{reference:y}=ft({label:"toolbar",anchor:c.current,parentFloat:a,createPopupPanel:null}),x=f.useCallback(()=>{const O=d;O&&requestAnimationFrame(()=>{c.current?.contains(document.activeElement)&&O.focus()})},[]),w=f.useMemo(()=>({dense:!0,outlined:!1}),[]),g=f.useMemo(()=>{const{commandHook:O,...R}=s||{};return{commandHook:{beforeExecute:(C,D)=>O?.beforeExecute?.(C,D)!==!1&&y.closeAll(),onExecute(C,D){O?.onExecute?.(C,D),x()},onError(C,D,B){O?.onError?.(C,D,B)}},...R}},[y,s]),h=f.useMemo(()=>({...w,...g}),[w,g]),[v,u]=f.useReducer(O=>O+1,0);F.useCommands(t,[],{onChange:()=>{u()}});const k=f.useMemo(()=>({commands:t,parentFloat:y,...g}),[v,h,y,s]);let M=0;w.dense||(M+=2),w.outlined&&M++;let j=2;w.dense||(j=4);const $=f.useMemo(()=>r({commands:t,propsCommandButton:h,propsCommandPopup:{commands:t,...k,...s}}),[v,h,k,r]);return m.jsx(L.Toolbar,{variant:"dense",sx:{minHeight:"unset",height:"unset",paddingTop:`${j}px`,paddingBottom:`${j}px`,paddingLeft:"6px !important",paddingRight:"6px !important",flex:"1 1 0%",alignItems:"center",userSelect:"none",flexGrow:1,display:"flex",overflow:"hidden",...n},ref:c,onFocus:O=>{O.relatedTarget&&!d&&S(O.relatedTarget)},onBlur:O=>{d&&!c?.current?.contains(O.relatedTarget)&&S(null)},onKeyDown:O=>{d&&O.which===F.KeyCodes.Escape&&d.focus()},...i,children:m.jsx("div",{ref:c,style:{flex:"1 1 100%",display:"flex",flexWrap:"wrap",rowGap:`${j}px`,columnGap:`${M}px`,alignItems:"center",maxWidth:"100%"},children:$})})}));gr.displayName="CommandToolbar";const ia=e=>{const{key:o,...n}=e;return m.jsx(bn,{...n},o)},aa=f.memo(f.forwardRef((e,o)=>{const{popupCommandKeys:n,renderCommandButton:t=ia,scope:s,commands:a,quickCommand:r,popupScope:l=r,commandState:i,commandHook:c,disabled:d=!1,...S}=e,y=F.useCommands(a,n?[r,...n]:[r]),{allDisabled:x}=f.useMemo(()=>{let g=0;const h=y.length;for(let v=0;v<h;v++){const u=y[v];u&&!u.disabled()&&g++}return{allDisabled:g===0}},[y]),w=f.useCallback((g,h)=>{const v={variant:F.CommandButtonType.Menuitem,commandHook:c,commandState:i,scope:l??s,disabled:d},u=[],k=n?n.length:0;for(let M=0;M<k;M++){const j=n[M];if(j===null||j==="-"){u.push(m.jsx(xo,{orientation:"horizontal"},`element-${u.length}`));continue}const $=h.getCommand(j),O={key:`${j}-${u.length}`,command:$,...v},R=t(O);R&&u.push(R)}return Tt({...g,children:u})},[d,c,i,l,n,t]);return n?m.jsx(vn,{ref:o,commands:a,disabled:d||x,commandHook:c,commandState:i,scope:s,quickCommand:r,createPopupPanel:w,...S}):t({ref:o,disabled:d,commandHook:c,commandState:i,scope:s,command:y[0],...S})}));exports.AnimatedBouncingEllipsisIcon=wr,exports.AnimatedCircleIcon=Do,exports.AnimatedClockIcon=vr,exports.AnimatedFadingEllipsisIcon=xr,exports.AnimatedLoadingPanel=Oo,exports.AnimatedOrbitIcon=Sr,exports.AnimatedTraversingEllipsisIcon=kr,exports.ArrowDownIcon=Kt,exports.ArrowRightIcon=Io,exports.ChipStrip=nn,exports.ClosingReason={ByPopup:"popupDone",Cancel:"popupCancel",ClickAway:"clickAway"},exports.CommandButton=bn,exports.CommandPopupButton=vn,exports.CommandToolbar=gr,exports.CommandTooltip=Ft,exports.ContextMenu=Vr,exports.ExhibitDivider=xo,exports.ExhibitFloatPanel=ln,exports.ExhibitIconButton=mt,exports.ExhibitMenuHeader=Kr,exports.ExhibitMenuItem=Je,exports.ExhibitOptionButton=qr,exports.ExhibitPopper=an,exports.ExhibitPopupIconButton=jt,exports.ExhibitPopupMenuItem=un,exports.ExhibitTooltip=Ke,exports.InputCommandButton=oa,exports.InternalWindow=or,exports.LabelIcon=e=>{const{command:o,label:n,scope:t,icon:s=ra,sx:a,...r}=e;return m.jsxs(L.Box,{sx:{display:"flex",flexDirection:"row",textTransform:"none",alignItems:"center",fontSize:l=>l.typography.subtitle2.fontSize,...a},...r,children:[s,m.jsx(L.Typography,{component:"div",sx:{whiteSpace:"nowrap",lineHeight:"1",paddingLeft:l=>l.spacing(.25),paddingRight:l=>l.spacing(.25),fontSize:"inherit"},children:o?.getLabel(t)||n})]})},exports.ModalProvider=function(e){var o=e.children,n=e.legacy,t=n!==void 0&&n,s=e.suspense,a=s===void 0||s,r=e.fallback,l=r===void 0?null:r,i=f.useReducer(Zr,Jr),c=i[0],d=i[1],S=f.useCallback(function(v,u){var k=zo(u,ei);v?d({type:Ce.UPDATE,payload:{id:v,props:k}}):console.error(Lt)},[d]),y=f.useCallback(function(v){v?d({type:Ce.HIDE,payload:{id:v}}):console.error(Lt)},[d]),x=f.useCallback(function(v){v?d({type:Ce.DESTROY,payload:{id:v}}):console.error(Lt)},[d]),w=f.useCallback(function(v){v?d({type:Ce.DESTROY_BY_ROOT_ID,payload:{rootId:v}}):console.error("[ERROR]: Modal root ID is missing")},[d]),g=f.useCallback(function(v,u,k){var M=Uo(8);return k&&k.rootId&&(M=k.rootId+"."+M),d({type:Ce.SHOW,payload:{id:M,component:v,props:u,options:k}}),{id:M,hide:function(){return y(M)},destroy:function(){return x(M)},update:function(j){return S(M,j)}}},[d,y,x,S]),h=a?f.Suspense:f.Fragment;return f.createElement(Wo.Provider,{value:{state:c,updateModal:S,hideModal:y,destroyModal:x,showModal:g,destroyModalsByRootId:w}},o,f.createElement(h,Object.assign({},a&&{fallback:l}),Object.keys(c).map(function(v){var u=c[v],k=u.component,M=u.props,j=u.options,$=function(){var R,C;M!=null&&M.onExited&&M.onExited.apply(M,arguments),M!=null&&(R=M.TransitionProps)!=null&&R.onExited&&(C=M.TransitionProps).onExited.apply(C,arguments),x(v)},O={};return O=t?{onExited:$}:{TransitionProps:xe({},M?.TransitionProps,{onExited:$})},f.createElement(k,Object.assign({},M,{key:v,onClose:function(){j&&j.hideOnClose&&y(v),j&&j.destroyOnClose&&j.hideOnClose&&x(v),M&&M.onClose&&M.onClose.apply(M,arguments)}},j&&!j.destroyOnClose&&O))})))},exports.NestingPopupButton=Vo,exports.OptionsDialog=Zt,exports.PopupAutoFocus={Popup:"popup",Anchor:"anchor"},exports.PopupButtonType=Ao,exports.SelectedIcon=$o,exports.SimpleCommandPopupButton=aa,exports.SimpleTooltip=He,exports.StackTrace=tn,exports.StackTraceErrorPanel=Eo,exports.ThemeMode={Light:"light",Dark:"dark"},exports.ThemedIcon=Br,exports.clsx=ge,exports.createDownArrow=qt,exports.createExhibitTheme=(e,o)=>{let n=We.createTheme({palette:{mode:e?"dark":"light"}});const t={"--icon-primary":n.palette.primary.main,"--icon-secondary":n.palette.secondary.main,"--icon-secondary-light":n.palette.secondary.light,"--icon-success":n.palette.success.main,"--icon-success-light":n.palette.success.light,"--icon-info":n.palette.info.main,"--icon-warn":n.palette.warning.main,"--icon-error":n.palette.error.main,"--icon-error-light":n.palette.error.light,"--icon-grey":n.palette.text.icon??n.palette.action.active,"--icon-shadow":e?n.palette.text.primary:n.palette.divider,"--icon-size":"1.25rem","@media (pointer: coarse)":{"--icon-size":"1.75rem"}};let s={typography:{},palette:{mode:e?"dark":"light",text:{secondary:e?n.palette.text.secondary:se.alpha(n.palette.text.secondary,.75),icon:e?se.alpha(n.palette.text.secondary,.7):se.alpha(n.palette.text.primary,.75)}},components:{MuiDialogTitle:{styleOverrides:{root:{fontWeight:"normal"}}},MuiSelect:{defaultProps:{IconComponent:Kt,MenuProps:{container:()=>document.fullscreenElement??void 0}},styleOverrides:{iconOutlined:{top:"unset"}}},MuiListItemIcon:{styleOverrides:{root:{minWidth:"0px !important",overflow:"hidden",marginLeft:"0px",marginRight:"6px",padding:"1px 1px",border:"solid transparent 1px",color:"unset"}}},MuiMenuItem:{styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiMenu:{defaultProps:{container:()=>document.fullscreenElement??void 0},styleOverrides:{root:{paddingTop:"2px",paddingBottom:"2px",marginLeft:"4px",marginRight:"4px",paddingLeft:"6px",paddingRight:"18px",borderRadius:"4px",fontSize:"0.875em","@media (pointer: coarse)":{fontSize:"1em"},"&.Mui-selected":{}}}},MuiToolbar:{styleOverrides:{root:{paddingTop:"4px",paddingBottom:"4px","@media (min-width: 600px)":{paddingTop:"4px",paddingBottom:"4px"}}}},MuiDivider:{styleOverrides:{root:{marginTop:"4px !important",marginBottom:"4px !important",marginLeft:"0px",marginRight:"0px"}}},MuiInputBase:{styleOverrides:{root:{}}},MuiPaper:{styleOverrides:{root:{...t}}},MuiPopper:{styleOverrides:{root:{"& .menu":{marginTop:"4px",marginBottom:"4px",borderRadius:"4px"}}}},SmartInputField:{styleOverrides:{automatic:{transition:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",color:function(){return n.palette.text.secondary}},dirty:{fontStyle:"italic",color:function(){return n.palette.text.secondary}}}}}},a=s;return o&&(a=bo.deepmerge(s,o)),We.createTheme(a)},exports.createScrollButton=It,exports.createStrokeShadowFilter=(e=1)=>o=>{if(o.palette.mode!=="dark")return;const n=o.palette.mode==="dark"?o.palette.text.primary:o.palette.divider;return`drop-shadow(0px 0px ${e}px ${n})`},exports.defaultCreatePopupPanel=Tt,exports.elevateColor=Yt,exports.getModalConfig=Ko,exports.getScrollbarCssVariables=_o,exports.hexToRGB=Bo,exports.overlayAlpha=function(e){let o=0;return o=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(o/100).toFixed(2)},exports.renderScrollButtonEdge=e=>{const o={style:{cursor:"pointer"},...e};return F.defaultCreateScrollEdgeButton(o)},exports.renderScrollButtonEnd=e=>It(e,F.ScrollbarOrientation.Horizontal?m.jsx(F.DynamicIcon,{iconKey:"ArrowRight",size:"small"}):m.jsx(F.DynamicIcon,{iconKey:"ArrowDownward",size:"small"}),"Scroll "+(e.orientation===F.ScrollbarOrientation.Horizontal?"Right":"Down"),`Scroll ${e.orientation===F.ScrollbarOrientation.Horizontal?"right":"down"}, 'Ctrl+Click' to scroll to the end`),exports.renderScrollButtonStart=e=>It(e,F.ScrollbarOrientation.Horizontal?m.jsx(F.DynamicIcon,{iconKey:"ArrowLeft",size:"small"}):m.jsx(F.DynamicIcon,{iconKey:"ArrowUpward",size:"small"}),"Scroll "+(e.orientation===F.ScrollbarOrientation.Horizontal?"Left":"Up"),`Scroll ${e.orientation===F.ScrollbarOrientation.Horizontal?"left":"up"}, 'Ctrl+Click' to scroll to the beginning`),exports.scrollbarTheming=sn,exports.setModalConfig=function(e){Object.assign(Ho,e)},exports.strokeShadowFilter=e=>{if(e.palette.mode==="dark")return`drop-shadow(0px 0px 1px ${e.palette.mode==="dark"?e.palette.text.primary:e.palette.divider})`},exports.toShortcutElements=cn,exports.useFloatStack=ft,exports.useInputDialog=e=>{const{showModal:o}=ht();return n=>{const{defaultOption:t=n.options?.[0],cancelOption:s="Cancel",...a}=n;return new Promise(r=>{const l=o(ea,{...e,defaultOption:t,cancelOption:s,...a,onOption(i){a?.onOption?.(i,i===s,i===t),r({input:"",option:i})},onInput(i,c){a?.onInput?.(i,c),r({input:i,option:c})},onDone:()=>{a?.onDone?.(),l.hide()}})})}},exports.useLazyWindow=function(e){const[o,n]=f.useState(()=>new Map),{showModal:t,updateModal:s,destroyModal:a,hideModal:r}=ht({disableAutoDestroy:!0});return(l,i,c,d)=>new Promise((S,y)=>{let x=!1;c?.disableAutoDestroy!==void 0&&(x=c.disableAutoDestroy,delete(c={...c}).disableAutoDestroy);const w={...e,...c,...d,onHide:()=>{const u=o.get(l);d?.onHide?.(),n(k=>(k.delete(l),k)),r(u.id)},onDone:u=>{const k=o.get(l);n(M=>(M.delete(l),M)),d?.onDone?.(u),k&&k.id&&!x&&a(k.id)},onShown:u=>{n(k=>{const M=k.get(l);return k.set(l,{...M,element:u}),k}),S(u)},open:!0},g=o.get(l);if(g)return s(g.id,w),S(g.element),void(w.autoFocus&&g.element?.focus());if(!i)return void y(`Invalid function for window '${l}'`);const h=f.lazy(i),v=t(h,w,{destroyOnClose:!x});n(u=>(u.set(l,{id:v.id,element:null}),u))})},exports.useModal=ht,exports.useOptionsDialog=e=>{const{showModal:o}=ht();return n=>new Promise(t=>{const s=o(Zi,{...e,...n,onOption(a){n?.onOption?.(a,a===n.cancelOption,a===n.defaultOption),t(a)},onDone:()=>{n?.onDone?.(),s.hide()}})})},exports.useResolvedThemeMode=function(e){const{mode:o}=e||{},[n,t]=f.useState(()=>{if(o==="light"||o==="dark")return{themeMode:o,source:"prop"};if(typeof document<"u"){const s=Mn();if(s)return{themeMode:s,source:"class"}}return{themeMode:Tn(),source:"media"}});return f.useEffect(()=>{const s=()=>{if(o)return void(o===n.themeMode&&n.source==="prop"||t(c=>({...c,themeMode:o,source:"prop"})));const i=Mn();if(i)t({themeMode:i,source:"class"});else{const c=Tn();t({themeMode:c,source:"media"})}},a=new MutationObserver(s),r=[document.documentElement,document.body].filter(Boolean);for(const i of r)a.observe(i,{attributes:!0,attributeFilter:["class"]});const l=window.matchMedia("(prefers-color-scheme: dark)");return l.addEventListener("change",s),s(),()=>{a.disconnect(),l.removeEventListener("change",s)}},[o]),n};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("react"),O=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),o=require("react"),O=require("./B9TdLZLtkypqqBMv.cjs"),s=require("@mui/material/styles"),p=require("@mui/material"),n=require("@sheetxl/utils-react"),L=["Input"],N=o.memo(o.forwardRef((b,k)=>{const{initialValue:T="",onOption:v,onValidateOption:c,onInput:d,onValidateInput:r,onDone:g,propsInput:f,inputLabel:w,inputType:F,inputPlaceHolder:S,options:h=L,autoFocusSel:q=".autoFocus",cancelOption:m,defaultOption:x=h?.[0],...I}=b,[R,j]=o.useState(!1),[a,D]=o.useState(T),[P,V]=o.useState(""),[B,M]=o.useState(!0),l=n.useCallbackRef(async(e,t)=>{if(!r)return!0;const u=await r?.(e,t);V(u?.message??"");const C=u?.valid??!0;return M(C),C},[r]),y=n.useCallbackRef(async e=>{d?.(a,e)},[a,d,g,v,m,x]),A=n.useCallbackRef(async e=>{e.keyCode===n.KeyCodes.Enter&&await l?.(a,null)},[a,y]),H=n.useCallbackRef(e=>{D(e.target.value),l?.(e.target.value,null)},[c]),K=n.useCallbackRef(async e=>{let t=await l(a,e);try{t!==!1&&(t=await l(a,e))}catch{}return t??!0},[a,c]);return i.jsx(O.OptionsDialog,{options:h,onDone:g,onOption:(e,t)=>{t||y(e)},onValidateOption:K,cancelOption:m,defaultOption:x,autoFocusSel:q,ref:k,...I,children:i.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:i.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:i.jsx(p.TextField,{onFocus:e=>{R||e.target?.select(),j(!0)},type:F,label:w,helperText:P||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:B?void 0:"error.main"}},slotProps:{inputLabel:{shrink:!0},htmlInput:{placeholder:S,spellCheck:!1,autoComplete:"off",...f,className:O.clsx("autoFocus",f?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${s.alpha("#fff",s.getOverlayAlpha(5))}, ${s.alpha("#fff",s.getOverlayAlpha(5))})`}}},value:a,onChange:H,onKeyDown:A,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=N;
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
2
|
"use strict";/**
|
|
3
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
3
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
7
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./B9TdLZLtkypqqBMv.cjs");exports.AnimatedBouncingEllipsisIcon=o.AnimatedBouncingEllipsisIcon,exports.AnimatedCircleIcon=o.AnimatedCircleIcon,exports.AnimatedClockIcon=o.AnimatedClockIcon,exports.AnimatedFadingEllipsisIcon=o.AnimatedFadingEllipsisIcon,exports.AnimatedLoadingPanel=o.AnimatedLoadingPanel,exports.AnimatedOrbitIcon=o.AnimatedOrbitIcon,exports.AnimatedTraversingEllipsisIcon=o.AnimatedTraversingEllipsisIcon,exports.ArrowDownIcon=o.ArrowDownIcon,exports.ArrowRightIcon=o.ArrowRightIcon,exports.ChipStrip=o.ChipStrip,exports.ClosingReason=o.ClosingReason,exports.CommandButton=o.CommandButton,exports.CommandPopupButton=o.CommandPopupButton,exports.CommandToolbar=o.CommandToolbar,exports.CommandTooltip=o.CommandTooltip,exports.ContextMenu=o.ContextMenu,exports.ExhibitDivider=o.ExhibitDivider,exports.ExhibitFloatPanel=o.ExhibitFloatPanel,exports.ExhibitIconButton=o.ExhibitIconButton,exports.ExhibitMenuHeader=o.ExhibitMenuHeader,exports.ExhibitMenuItem=o.ExhibitMenuItem,exports.ExhibitOptionButton=o.ExhibitOptionButton,exports.ExhibitPopper=o.ExhibitPopper,exports.ExhibitPopupIconButton=o.ExhibitPopupIconButton,exports.ExhibitPopupMenuItem=o.ExhibitPopupMenuItem,exports.ExhibitTooltip=o.ExhibitTooltip,exports.InputCommandButton=o.InputCommandButton,exports.InternalWindow=o.InternalWindow,exports.LabelIcon=o.LabelIcon,exports.ModalProvider=o.ModalProvider,exports.NestingPopupButton=o.NestingPopupButton,exports.OptionsDialog=o.OptionsDialog,exports.PopupAutoFocus=o.PopupAutoFocus,exports.PopupButtonType=o.PopupButtonType,exports.SelectedIcon=o.SelectedIcon,exports.SimpleCommandPopupButton=o.SimpleCommandPopupButton,exports.SimpleTooltip=o.SimpleTooltip,exports.StackTrace=o.StackTrace,exports.StackTraceErrorPanel=o.StackTraceErrorPanel,exports.ThemeMode=o.ThemeMode,exports.ThemedIcon=o.ThemedIcon,exports.createDownArrow=o.createDownArrow,exports.createExhibitTheme=o.createExhibitTheme,exports.createScrollButton=o.createScrollButton,exports.createStrokeShadowFilter=o.createStrokeShadowFilter,exports.defaultCreatePopupPanel=o.defaultCreatePopupPanel,exports.elevateColor=o.elevateColor,exports.getModalConfig=o.getModalConfig,exports.getScrollbarCssVariables=o.getScrollbarCssVariables,exports.hexToRGB=o.hexToRGB,exports.overlayAlpha=o.overlayAlpha,exports.renderScrollButtonEdge=o.renderScrollButtonEdge,exports.renderScrollButtonEnd=o.renderScrollButtonEnd,exports.renderScrollButtonStart=o.renderScrollButtonStart,exports.scrollbarTheming=o.scrollbarTheming,exports.setModalConfig=o.setModalConfig,exports.strokeShadowFilter=o.strokeShadowFilter,exports.toShortcutElements=o.toShortcutElements,exports.useFloatStack=o.useFloatStack,exports.useInputDialog=o.useInputDialog,exports.useLazyWindow=o.useLazyWindow,exports.useModal=o.useModal,exports.useOptionsDialog=o.useOptionsDialog,exports.useResolvedThemeMode=o.useResolvedThemeMode;
|
|
@@ -8,7 +8,7 @@ import { useTheme as dn, styled as ei, createTheme as On, useThemeProps as ti }
|
|
|
8
8
|
import { deepmerge as Pr } from "@mui/utils";
|
|
9
9
|
import Rr, { createPortal as ni } from "react-dom";
|
|
10
10
|
/**
|
|
11
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
11
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
12
12
|
*
|
|
13
13
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
14
14
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -2653,7 +2653,7 @@ const Ba = ["Ok", "Cancel"], Or = ie(de((e, r) => {
|
|
|
2653
2653
|
n?.onDone?.(), s.hide();
|
|
2654
2654
|
} });
|
|
2655
2655
|
});
|
|
2656
|
-
}, za = q.lazy(() => import("./
|
|
2656
|
+
}, za = q.lazy(() => import("./DH6u_M_R8JovMlaN.mjs")), Es = (e) => {
|
|
2657
2657
|
const { showModal: r } = gn();
|
|
2658
2658
|
return (n) => {
|
|
2659
2659
|
const { defaultOption: t = n.options?.[0], cancelOption: s = "Cancel", ...a } = n;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { memo as j, forwardRef as z, useState as s } from "react";
|
|
3
|
-
import { O as E, c as R } from "./
|
|
3
|
+
import { O as E, c as R } from "./C5BtylqqOmUYrVG7.mjs";
|
|
4
4
|
import { alpha as y, getOverlayAlpha as O } from "@mui/material/styles";
|
|
5
5
|
import { Box as A, FormControl as W, TextField as q } from "@mui/material";
|
|
6
6
|
import { useCallbackRef as n, KeyCodes as G } from "@sheetxl/utils-react";
|
|
7
7
|
/**
|
|
8
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
8
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
9
9
|
*
|
|
10
10
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
11
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/browser/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._traverse-ellipsis_14l1h_1{display:inline-block;position:relative}._traverse-ellipsis_14l1h_1 div{position:absolute;border-radius:50%}._traverse-ellipsis_14l1h_1 div:nth-child(1){left:0;animation:_traverse-ellipsis1_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(2){left:0;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(3){left:24px;animation:_traverse-ellipsis2_14l1h_1 .6s infinite}._traverse-ellipsis_14l1h_1 div:nth-child(4){left:48px;animation:_traverse-ellipsis3_14l1h_1 .6s infinite}@keyframes _traverse-ellipsis1_14l1h_1{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes _traverse-ellipsis3_14l1h_1{0%{transform:scale(1)}to{transform:scale(0)}}@keyframes _traverse-ellipsis2_14l1h_1{0%{transform:translate(0)}to{transform:translate(24px)}}")),document.head.appendChild(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
import { C as s, z as e, y as t, B as n, G as i, D as l, F as r, A as u, n as d, J as p, _ as c, a4 as m, a6 as h, a9 as E, a7 as I, K as b, x as S, a3 as g, E as C, b as B, a as x, f as P, Y as T, d as A, e as M, g as w, a5 as k, Q as v, a8 as D, M as F, N as f, O, Z as R, $ as y, S as L, aa as W, L as z, I as G, H, p as N, T as V, a1 as j, k as q, q as J, m as K, a0 as Q, j as U, V as X, h as Y, i as Z, o as _, r as $, w as aa, v as oa, s as sa, W as ea, l as ta, t as na, a2 as ia, U as la, P as ra, X as ua, R as da, u as pa } from "./
|
|
2
|
+
import { C as s, z as e, y as t, B as n, G as i, D as l, F as r, A as u, n as d, J as p, _ as c, a4 as m, a6 as h, a9 as E, a7 as I, K as b, x as S, a3 as g, E as C, b as B, a as x, f as P, Y as T, d as A, e as M, g as w, a5 as k, Q as v, a8 as D, M as F, N as f, O, Z as R, $ as y, S as L, aa as W, L as z, I as G, H, p as N, T as V, a1 as j, k as q, q as J, m as K, a0 as Q, j as U, V as X, h as Y, i as Z, o as _, r as $, w as aa, v as oa, s as sa, W as ea, l as ta, t as na, a2 as ia, U as la, P as ra, X as ua, R as da, u as pa } from "./C5BtylqqOmUYrVG7.mjs";
|
|
3
3
|
/**
|
|
4
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
4
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
5
5
|
*
|
|
6
6
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
7
7
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.
|
|
2
|
+
* @license @sheetxl/utils-mui - Utilities MUI - Utilities for MUI Components needed for all SheetXL components. - v0.7.25
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -760,7 +760,7 @@ const Ft = { x: 0, y: 0 }, At = r(i((t2, o2) => {
|
|
|
760
760
|
o2?.onDone?.(), r2.hide();
|
|
761
761
|
} });
|
|
762
762
|
});
|
|
763
|
-
}, Qt = n.lazy(() => import("./
|
|
763
|
+
}, Qt = n.lazy(() => import("./BPB5gZctbscTI3_j.mjs")), Ut = (e2) => {
|
|
764
764
|
const { showModal: t2 } = le();
|
|
765
765
|
return (o2) => {
|
|
766
766
|
const { defaultOption: n2 = o2.options?.[0], cancelOption: r2 = "Cancel", ...i2 } = o2;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/utils-mui",
|
|
3
3
|
"description": "Utilities MUI - Utilities for MUI Components needed for all SheetXL components.",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.25",
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@popperjs/core": "^2.11.8",
|
|
48
|
-
"@sheetxl/utils": "^0.7.
|
|
49
|
-
"@sheetxl/utils-react": "^0.7.
|
|
48
|
+
"@sheetxl/utils": "^0.7.25",
|
|
49
|
+
"@sheetxl/utils-react": "^0.7.25",
|
|
50
50
|
"clsx": "^2.1.1",
|
|
51
51
|
"detect-it": "^4.0.1",
|
|
52
52
|
"focus-trap-react": "^10.1.4",
|