@nebula.js/sn-tabbed-container 0.13.3 → 0.13.4

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/core/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-tabbed-container v0.13.3
2
+ * @nebula.js/sn-tabbed-container v0.13.4
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -93,6 +93,6 @@ import{useOptions as e,useEffect as t,useState as n,onTakeSnapshot as o,useKeybo
93
93
  animation-iteration-count: infinite;
94
94
  animation-delay: 200ms;
95
95
  }
96
- `),ca.rippleVisible,ba,550,(({theme:e})=>e.transitions.easing.easeInOut),ca.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ca.child,ca.childLeaving,ga,550,(({theme:e})=>e.transitions.easing.easeInOut),ca.childPulsate,va,(({theme:e})=>e.transitions.easing.easeInOut));var Ea=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i}=n,a=B(n,da),[l,s]=g.useState([]),c=g.useRef(0),d=g.useRef(null);g.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const u=g.useRef(!1),p=g.useRef(0),h=g.useRef(null),f=g.useRef(null);g.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=g.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:i,cb:a}=e;s((e=>[...e,sn.jsx(xa,{classes:{ripple:Io(r.ripple,ca.ripple),rippleVisible:Io(r.rippleVisible,ca.rippleVisible),ripplePulsate:Io(r.ripplePulsate,ca.ripplePulsate),child:Io(r.child,ca.child),childLeaving:Io(r.childLeaving,ca.childLeaving),childPulsate:Io(r.childPulsate,ca.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[r]),b=g.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const l=a?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(n-s.top)}if(i)b=Math.sqrt((2*s.width**2+s.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:r,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):m({pulsate:r,rippleX:c,rippleY:d,rippleSize:b,cb:n})}),[o,m]),v=g.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=g.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(p.current=setTimeout((()=>{y(e,t)})));h.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return g.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),sn.jsx(ya,N({className:Io(ca.root,r.root,i),ref:f},a,{children:sn.jsx(Qi,{component:null,exit:!0,children:l})}))}));function Sa(e){return To("MuiButtonBase",e)}var Ca=Po("MuiButtonBase",["root","disabled","focusVisible"]);const wa=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ra=wi("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ca.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Aa=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:k,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:_,type:T}=n,P=B(n,wa),M=g.useRef(null),O=g.useRef(null),$=yr(O,_),{isFocusVisibleRef:j,onFocus:D,onBlur:z,ref:F}=Lr(),[G,H]=g.useState(!1);s&&G&&H(!1),g.useImperativeHandle(o,(()=>({focusVisible:()=>{H(!0),M.current.focus()}})),[]);const[Y,W]=g.useState(!1);g.useEffect((()=>{W(!0)}),[]);const V=Y&&!c&&!s;function U(e,t,n=d){return vr((o=>{t&&t(o);return!n&&O.current&&O.current[e](o),!0}))}g.useEffect((()=>{G&&u&&!c&&Y&&O.current.pulsate()}),[c,u,G,Y]);const q=U("start",S),K=U("stop",m),X=U("stop",b),Q=U("stop",w),Z=U("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),J=U("start",k),ee=U("stop",R),te=U("stop",A),ne=U("stop",(e=>{z(e),!1===j.current&&H(!1),h&&h(e)}),!1),oe=vr((e=>{M.current||(M.current=e.currentTarget),D(e),!0===j.current&&(H(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=g.useRef(!1),ae=vr((e=>{u&&!ie.current&&G&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),f&&f(e))})),le=vr((e=>{u&&" "===e.key&&O.current&&G&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let se=l;"button"===se&&(P.href||P.to)&&(se=p);const ce={};"button"===se?(ce.type=void 0===T?"button":T,ce.disabled=s):(P.href||P.to||(ce.role="button"),s&&(ce["aria-disabled"]=s));const de=yr(t,F,M),ue=N({},n,{centerRipple:r,component:l,disabled:s,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:I,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=Or({root:["root",t&&"disabled",n&&"focusVisible"]},Sa,r);return n&&o&&(i.root+=` ${o}`),i})(ue);return sn.jsxs(Ra,N({as:se,className:Io(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:oe,onKeyDown:ae,onKeyUp:le,onMouseDown:q,onMouseLeave:Z,onMouseUp:Q,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:J,ref:de,tabIndex:s?-1:I,type:T},ce,P,{children:[i,V?sn.jsx(Ea,N({ref:$,center:r},L)):null]}))}));var ka=Aa;function Ia(e){return To("MuiTypography",e)}Po("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const La=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_a=wi("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${En(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>N({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ta={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ma=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTypography"}),o=(e=>Pa[e]||e)(n.color),r=wo(N({},n,{color:o})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ta}=r,h=B(r,La),f=N({},r,{align:i,color:o,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=l||(d?"p":p[u]||Ta[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e;return Or({root:["root",i,"inherit"!==e.align&&`align${En(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]},Ia,a)})(f);return sn.jsx(_a,N({as:m,ref:t,ownerState:f,className:Io(b.root,a)},h))}));var Oa=Ma;const $a=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Na(e){const t=[],n=[];return Array.from(e.querySelectorAll($a)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Ba(){return!0}function ja(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=Na,isEnabled:a=Ba,open:l}=e,s=g.useRef(!1),c=g.useRef(null),d=g.useRef(null),u=g.useRef(null),p=g.useRef(null),h=g.useRef(!1),f=g.useRef(null),m=yr(t.ref,f),b=g.useRef(null);g.useEffect((()=>{l&&f.current&&(h.current=!n)}),[n,l]),g.useEffect((()=>{if(!l||!f.current)return;const e=mr(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{r||(u.current&&u.current.focus&&(s.current=!0,u.current.focus()),u.current=null)}}),[l]),g.useEffect((()=>{if(!l||!f.current)return;const e=mr(f.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var r,l;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,o,r,a,l,i]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return sn.jsxs(g.Fragment,{children:[sn.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),sn.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Da=g.forwardRef((function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[i,a]=g.useState(null),l=yr(g.isValidElement(n)?n.ref:null,t);if(lr((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),lr((()=>{if(i&&!r)return gr(t,i),()=>{gr(t,null)}}),[t,i,r]),r){if(g.isValidElement(n)){const e={ref:l};return g.cloneElement(n,e)}return sn.jsx(g.Fragment,{children:n})}return sn.jsx(g.Fragment,{children:i?L.createPortal(n,i):i})}));function za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fa(e){return parseInt(br(e).getComputedStyle(e).paddingRight,10)||0}function Ga(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&za(e,r)}))}function Ha(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Ya(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=mr(e);return t.body===e?br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=_r(mr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Fa(o)+e}px`;const t=mr(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Fa(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=mr(o).body;else{const t=o.parentElement,n=br(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Wa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&za(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ga(t,e.mount,e.modalRef,o,!0);const r=Ha(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=Ha(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Ya(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=Ha(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&za(e.modalRef,t),Ga(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&za(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Va(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:r=Wa,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:d,rootRef:u}=e,p=g.useRef({}),h=g.useRef(null),f=g.useRef(null),m=yr(f,u),[b,v]=g.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),S=()=>{r.mount(E(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},C=vr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||mr(h.current).body;r.add(E(),e),f.current&&S()})),w=g.useCallback((()=>r.isTopModal(E())),[r]),R=vr((e=>{h.current=e,e&&(d&&w()?S():f.current&&za(f.current,x))})),A=g.useCallback((()=>{r.remove(E(),x)}),[x,r]);g.useEffect((()=>()=>{A()}),[A]),g.useEffect((()=>{d?C():y&&i||A()}),[d,A,y,i,C]);const k=e=>t=>{var o;null==(o=e.onKeyDown)||o.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ia(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=N({},n,t);return N({role:"presentation"},o,{onKeyDown:k(o),ref:m})},getBackdropProps:(e={})=>N({"aria-hidden":!0},e,{onClick:I(e),open:d}),getTransitionProps:()=>({onEnter:hr((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hr((()=>{v(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Ua=["onChange","maxRows","minRows","style","value"];function qa(e){return parseInt(e,10)||0}const Ka={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Xa(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Qa=g.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:r=1,style:i,value:a}=e,l=B(e,Ua),{current:s}=g.useRef(null!=a),c=g.useRef(null),d=yr(t,c),u=g.useRef(null),p=g.useRef(0),[h,f]=g.useState({outerHeightStyle:0}),m=g.useCallback((()=>{const t=c.current,n=br(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=u.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=qa(n.paddingBottom)+qa(n.paddingTop),s=qa(n.borderBottomWidth)+qa(n.borderTopWidth),d=i.scrollHeight;i.value="x";const p=i.scrollHeight;let h=d;r&&(h=Math.max(Number(r)*p,h)),o&&(h=Math.min(Number(o)*p,h)),h=Math.max(h,p);return{outerHeightStyle:h+("border-box"===a?l+s:0),overflow:Math.abs(h-d)<=1}}),[o,r,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(p.current+=1,{overflow:o,outerHeightStyle:n}):e},v=g.useCallback((()=>{const e=m();Xa(e)||f((t=>b(t,e)))}),[m]);lr((()=>{const e=()=>{p.current=0,(()=>{const e=m();Xa(e)||L.flushSync((()=>{f((t=>b(t,e)))}))})()};const t=fr(e),n=c.current,o=br(n);let r;return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(e),r.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),o.removeEventListener("resize",t),r&&r.disconnect()}}),[m]),lr((()=>{v()})),g.useEffect((()=>{p.current=0}),[a]);return sn.jsxs(g.Fragment,{children:[sn.jsx("textarea",N({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:d,rows:r,style:N({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),sn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:u,tabIndex:-1,style:N({},Ka,i,{paddingTop:0,paddingBottom:0})})]})}));var Za=g.createContext(void 0);function Ja(){return g.useContext(Za)}function el(e){return sn.jsx(Eo,N({},e,{defaultTheme:yi,themeId:$}))}function tl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function nl(e){return To("MuiInputBase",e)}var ol=Po("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const rl=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],il=wi("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${En(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>N({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&N({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),al=wi("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=N({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return N({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ol.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ol.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ll=sn.jsx(el,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sl=g.forwardRef((function(e,t){var n;const o=Ei({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:E,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:k,onKeyDown:I,onKeyUp:L,placeholder:_,readOnly:T,renderSuffix:P,rows:M,slotProps:$={},slots:j={},startAdornment:D,type:z="text",value:F}=o,G=B(o,rl),H=null!=v.value?v.value:F,{current:Y}=g.useRef(null!=H),W=g.useRef(),V=g.useCallback((e=>{}),[]),U=yr(W,y,v.ref,V),[q,K]=g.useState(!1),X=Ja(),Q=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&void 0===e[o]&&(t[o]=n[o]),t)),{})}({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:q,g.useEffect((()=>{!X&&u&&q&&(K(!1),w&&w())}),[X,u,q,w]);const Z=X&&X.onFilled,J=X&&X.onEmpty,ee=g.useCallback((e=>{!function(e,t=!1){return e&&(tl(e.value)&&""!==e.value||t&&tl(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():Z&&Z()}),[Z,J]);lr((()=>{Y&&ee({value:H})}),[H,ee,Y]);g.useEffect((()=>{ee(W.current)}),[]);let te=b,ne=v;S&&"input"===te&&(ne=N(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=Qa);g.useEffect((()=>{X&&X.setAdornedStart(Boolean(D))}),[X,D]);const oe=N({},o,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:f,hiddenLabel:Q.hiddenLabel,multiline:S,size:Q.size,startAdornment:D,type:z}),re=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Or({root:["root",`color${En(n)}`,o&&"disabled",r&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${En(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},nl,t)})(oe),ie=j.root||s.Root||il,ae=$.root||c.root||{},le=j.input||s.Input||al;return ne=N({},ne,null!=(n=$.input)?n:c.input),sn.jsxs(g.Fragment,{children:[!p&&ll,sn.jsxs(ie,N({},ae,!ra(ie)&&{ownerState:N({},oe,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),A&&A(e)}},G,{className:Io(re.root,ae.className,l,T&&"MuiInputBase-readOnly"),children:[D,sn.jsx(Za.Provider,{value:null,children:sn.jsx(le,N({ownerState:oe,"aria-invalid":Q.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:C,placeholder:_,readOnly:T,required:Q.required,rows:M,value:H,onKeyDown:I,onKeyUp:L,type:z},ne,!ra(le)&&{as:te,ownerState:N({},oe,ne.ownerState)},{ref:U,className:Io(re.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!Y){const t=e.target||W.current;if(null==t)throw new Error(O(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Q.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(N({},Q,{startAdornment:D})):null]}))]})}));var cl=sl;const dl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ul={entering:{opacity:1},entered:{opacity:1}},pl=g.forwardRef((function(e,t){const n=xi(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=o,TransitionComponent:v=Wi}=e,y=B(e,dl),x=g.useRef(null),E=yr(x,a.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=S(u),w=S(((e,t)=>{Zi(e);const o=Ji({style:m,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",o),e.style.transition=n.transitions.create("opacity",o),c&&c(e,t)})),R=S(d),A=S(f),k=S((e=>{const t=Ji({style:m,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=S(h);return sn.jsx(v,N({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:A,addEndListener:e=>{r&&r(x.current,e)},timeout:b},y,{children:(e,t)=>g.cloneElement(a,N({style:N({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ul[e],m,a.props.style),ref:E},t))}))}));var hl=pl;function fl(e){return To("MuiBackdrop",e)}Po("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bl=wi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>N({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gl=g.forwardRef((function(e,t){var n,o,r;const i=Ei({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=hl,transitionDuration:b}=i,g=B(i,ml),v=N({},i,{component:s,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return Or({root:["root",n&&"invisible"]},fl,t)})(v),x=null!=(n=h.root)?n:d.root;return sn.jsx(m,N({in:p,timeout:b},g,{children:sn.jsx(bl,N({"aria-hidden":!0},x,{as:null!=(o=null!=(r=f.root)?r:c.Root)?o:s,className:Io(y.root,l,null==x?void 0:x.className),ownerState:N({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var vl=gl;var yl=Po("MuiBox",["root"]);const xl=vi(),El=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=dn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fo);return g.forwardRef((function(e,a){const l=xo(n),s=wo(e),{className:c,component:d="div"}=s,u=B(s,Lo);return sn.jsx(i,N({as:d,ref:a,className:Io(c,r?r(o):o),theme:t&&l[t]||l},u))}))}({themeId:$,defaultTheme:xl,defaultClassName:yl.root,generateClassName:Ao.generate});var Sl=El;function Cl(e){return To("MuiButton",e)}var wl=Po("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Rl=g.createContext({});var Al=g.createContext(void 0);const kl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Il=e=>N({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ll=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${En(n.color)}`],t[`size${En(n.size)}`],t[`${n.variant}Size${En(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,o;const r="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return N({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":N({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${wl.focusVisible}`]:N({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.disabled}`]:N({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pr(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}})),_l=wi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${En(n.size)}`]]}})((({ownerState:e})=>N({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Il(e)))),Tl=wi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${En(n.size)}`]]}})((({ownerState:e})=>N({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Il(e)))),Pl=g.forwardRef((function(e,t){const n=g.useContext(Rl),o=g.useContext(Al),r=Ei({props:ir(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:v,variant:y="text"}=r,x=B(r,kl),E=N({},r,{color:a,component:l,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e;return N({},a,Or({root:["root",i,`${i}${En(t)}`,`size${En(r)}`,`${i}Size${En(r)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${En(r)}`],endIcon:["endIcon",`iconSize${En(r)}`]},Cl,a))})(E),C=b&&sn.jsx(_l,{className:S.startIcon,ownerState:E,children:b}),w=p&&sn.jsx(Tl,{className:S.endIcon,ownerState:E,children:p}),R=o||"";return sn.jsxs(Ll,N({ownerState:E,className:Io(n.className,S.root,s,R),component:l,disabled:c,focusRipple:!u,focusVisibleClassName:Io(S.focusVisible,h),ref:t,type:v},x,{classes:S,children:[C,i,w]}))}));var Ml=Pl;function Ol(e){return To("MuiModal",e)}Po("MuiModal",["root","hidden","backdrop"]);const $l=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Nl=wi("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>N({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bl=wi(vl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jl=g.forwardRef((function(e,t){var n,o,r,i,a,l;const s=Ei({name:"MuiModal",props:e}),{BackdropComponent:c=Bl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:k,open:I,slotProps:L,slots:_}=s,T=B(s,$l),P=N({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:M,getBackdropProps:O,getTransitionProps:$,portalRef:j,isTopModal:D,exited:z,hasTransition:F}=Va(N({},P,{rootRef:t})),G=N({},P,{exited:z}),H=(e=>{const{open:t,exited:n,classes:o}=e;return Or({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ol,o)})(G),Y={};if(void 0===h.props.tabIndex&&(Y.tabIndex="-1"),F){const{onEnter:e,onExited:t}=$();Y.onEnter=e,Y.onExited=t}const W=null!=(n=null!=(o=null==_?void 0:_.root)?o:b.Root)?n:Nl,V=null!=(r=null!=(i=null==_?void 0:_.backdrop)?i:b.Backdrop)?r:c,U=null!=(a=null==L?void 0:L.root)?a:v.root,q=null!=(l=null==L?void 0:L.backdrop)?l:v.backdrop,K=sa({elementType:W,externalSlotProps:U,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:G,className:Io(u,null==U?void 0:U.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=sa({elementType:V,externalSlotProps:q,additionalProps:d,getSlotProps:e=>O(N({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Io(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return A||I||F&&!z?sn.jsx(Da,{ref:j,container:f,disablePortal:S,children:sn.jsxs(W,N({},K,{children:[!R&&c?sn.jsx(V,N({},X)):null,sn.jsx(ja,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:D,open:I,children:g.cloneElement(h,Y)})]}))}):null}));var Dl=jl;function zl(e){return To("MuiDivider",e)}const Fl=Po("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hl=wi("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>N({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pr(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>N({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>N({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>N({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>N({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Yl=wi("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>N({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Wl=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:i,component:a=(r?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=B(n,Gl),f=N({},n,{absolute:o,component:a,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:s}=e;return Or({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",r&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},zl,o)})(f);return sn.jsx(Hl,N({as:a,className:Io(m.root,i),role:d,ref:t,ownerState:f},h,{children:r?sn.jsx(Yl,{className:m.wrapper,ownerState:f,children:r}):null}))}));Wl.muiSkipListHighlight=!0;var Vl=Wl;const Ul=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ql(e){return`scale(${e}, ${e**2})`}const Kl={entering:{opacity:1,transform:ql(1)},entered:{opacity:1,transform:"none"}},Xl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ql=g.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:r,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Wi}=e,b=B(e,Ul),v=g.useRef(),y=g.useRef(),x=xi(),E=g.useRef(null),S=yr(E,r.ref,t),C=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=C(c),R=C(((e,t)=>{Zi(e);const{duration:n,delay:o,easing:r}=Ji({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:o}),x.transitions.create("transform",{duration:Xl?a:.666*a,delay:o,easing:r})].join(","),l&&l(e,t)})),A=C(s),k=C(p),I=C((e=>{const{duration:t,delay:n,easing:o}=Ji({style:h,timeout:f,easing:i},{mode:"exit"});let r;"auto"===f?(r=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=r):r=t,e.style.transition=[x.transitions.create("opacity",{duration:r,delay:n}),x.transitions.create("transform",{duration:Xl?r:.666*r,delay:Xl?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=ql(.75),d&&d(e)})),L=C(u);return g.useEffect((()=>()=>{clearTimeout(v.current)}),[]),sn.jsx(m,N({appear:o,in:a,nodeRef:E,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:k,addEndListener:e=>{"auto"===f&&(v.current=setTimeout(e,y.current||0)),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>g.cloneElement(r,N({style:N({opacity:0,transform:ql(.75),visibility:"exited"!==e||a?void 0:"hidden"},Kl[e],h,r.props.style),ref:S},t))}))}));Ql.muiSupportAuto=!0;var Zl=Ql;function Jl(e){return To("MuiInputAdornment",e)}var es,ts=Po("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const ns=["children","className","component","disablePointerEvents","disableTypography","position","variant"],os=wi("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${En(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>N({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ts.positionStart}&:not(.${ts.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),rs=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,d=B(n,ns),u=Ja()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=N({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:s,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e;return Or({root:["root",n&&"disablePointerEvents",r&&`position${En(r)}`,a,o&&"hiddenLabel",i&&`size${En(i)}`]},Jl,t)})(h);return sn.jsx(Za.Provider,{value:null,children:sn.jsx(os,N({as:i,ownerState:h,className:Io(f.root,r),ref:t},d,{children:"string"!=typeof o||l?sn.jsxs(g.Fragment,{children:["start"===s?es||(es=sn.jsx("span",{className:"notranslate",children:"​"})):null,o]}):sn.jsx(Oa,{color:"text.secondary",children:o})}))})}));var is=rs;var as=g.createContext({});function ls(e){return To("MuiList",e)}Po("MuiList",["root","padding","dense","subheader"]);const ss=["children","className","component","dense","disablePadding","subheader"],cs=wi("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ds=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiList"}),{children:o,className:r,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=B(n,ss),d=g.useMemo((()=>({dense:a})),[a]),u=N({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Or({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},ls,t)})(u);return sn.jsx(as.Provider,{value:d,children:sn.jsxs(cs,N({as:i,className:Io(p.root,r),ref:t,ownerState:u},c,{children:[s,o]}))})}));function us(e){return To("MuiListItem",e)}var ps=Po("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function hs(e){return To("MuiListItemButton",e)}var fs=Po("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const ms=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],bs=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>N({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})));var gs=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:i="div",children:a,dense:l=!1,disableGutters:s=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=B(n,ms),f=g.useContext(as),m=g.useMemo((()=>({dense:l||f.dense||!1,alignItems:o,disableGutters:s})),[o,f.dense,l,s]),b=g.useRef(null);lr((()=>{r&&b.current&&b.current.focus()}),[r]);const v=N({},n,{alignItems:o,dense:m.dense,disableGutters:s,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:o,disabled:r,disableGutters:i,divider:a,selected:l}=e;return N({},n,Or({root:["root",o&&"dense",!i&&"gutters",a&&"divider",r&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},hs,n))})(v),x=yr(b,t);return sn.jsx(as.Provider,{value:m,children:sn.jsx(bs,N({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Io(y.focusVisible,d),ownerState:v,className:Io(y.root,p)},h,{classes:y,children:a}))})}));function vs(e){return To("MuiListItemSecondaryAction",e)}Po("MuiListItemSecondaryAction",["root","disableGutters"]);const ys=["className"],xs=wi("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>N({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Es=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,r=B(n,ys),i=N({},n,{disableGutters:g.useContext(as).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Or({root:["root",t&&"disableGutters"]},vs,n)})(i);return sn.jsx(xs,N({className:Io(a.root,o),ownerState:i,ref:t},r))}));Es.muiName="ListItemSecondaryAction";var Ss=Es;const Cs=["className"],ws=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Rs=wi("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>N({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&N({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${fs.root}`]:{paddingRight:48}},{[`&.${ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ps.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ps.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ps.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),As=wi("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ks=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:S={},slots:C={}}=n,w=B(n.ContainerProps,Cs),R=B(n,ws),A=g.useContext(as),k=g.useMemo((()=>({dense:h||A.dense||!1,alignItems:o,disableGutters:m})),[o,A.dense,h,m]),I=g.useRef(null);lr((()=>{r&&I.current&&I.current.focus()}),[r]);const L=g.Children.toArray(a),_=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],g.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const $=N({},n,{alignItems:o,autoFocus:r,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:v,hasSecondaryAction:_,selected:E}),j=(e=>{const{alignItems:t,button:n,classes:o,dense:r,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return Or({root:["root",r&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},us,o)})($),D=yr(I,t),z=C.root||c.Root||Rs,F=S.root||d.root||{},G=N({className:Io(j.root,F.className,l),disabled:f},R);let H=s||"li";return i&&(G.component=s||"div",G.focusVisibleClassName=Io(ps.focusVisible,y),H=ka),_?(H=G.component||s?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),sn.jsx(as.Provider,{value:k,children:sn.jsxs(As,N({as:u,className:Io(j.container,p),ref:D,ownerState:$},w,{children:[sn.jsx(z,N({},F,!ra(z)&&{as:H,ownerState:N({},$,F.ownerState)},G,{children:L})),L.pop()]}))})):sn.jsx(as.Provider,{value:k,children:sn.jsxs(z,N({},F,{as:H,ref:D},!ra(z)&&{ownerState:N({},$,F.ownerState)},G,{children:[L,x&&sn.jsx(Ss,{children:x})]}))})}));var Is=ks;function Ls(e){return To("MuiListItemIcon",e)}const _s=Po("MuiListItemIcon",["root","alignItemsFlexStart"]),Ts=["className"],Ps=wi("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>N({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Ms=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemIcon"}),{className:o}=n,r=B(n,Ts),i=N({},n,{alignItems:g.useContext(as).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Or({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ls,n)})(i);return sn.jsx(Ps,N({className:Io(a.root,o),ownerState:i,ref:t},r))}));var Os=Po("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $s=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ns(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bs(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function js(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ds(e,t,n,o,r,i){let a=!1,l=r(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!o&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&js(l,i)&&!t)return l.focus(),!0;l=r(e,l,n)}return!1}var zs=g.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=B(e,$s),p=g.useRef(null),h=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lr((()=>{o&&p.current.focus()}),[o]),g.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${_r(mr(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const f=yr(p,t);let m=-1;g.Children.forEach(i,((e,t)=>{g.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=g.Children.map(i,((e,t)=>{if(t===m){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),g.cloneElement(e,t)}return e}));return sn.jsx(ds,N({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,o=mr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ds(t,o,s,l,Ns);else if("ArrowUp"===n)e.preventDefault(),Ds(t,o,s,l,Bs);else if("Home"===n)e.preventDefault(),Ds(t,null,s,l,Ns);else if("End"===n)e.preventDefault(),Ds(t,null,s,l,Bs);else if(1===n.length){const r=h.current,i=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(i);const s=o&&!r.repeating&&js(o,r);r.previousKeyMatched&&(s||Ds(t,o,!1,l,Ns,r))?e.preventDefault():r.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},u,{children:b}))}));function Fs(e){return To("MuiPopover",e)}Po("MuiPopover",["root","paper"]);const Gs=["onEntering"],Hs=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ys=["slotProps"];function Ws(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Vs(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Us(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qs(e){return"function"==typeof e?e():e}const Ks=wi(Dl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xs=wi(oa,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Qs=g.forwardRef((function(e,t){var n,o,r;const i=Ei({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Zl,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=B(i.TransitionProps,Gs),k=B(i,Hs),I=null!=(n=null==x?void 0:x.paper)?n:v,L=g.useRef(),_=yr(L,I.ref),T=N({},i,{anchorOrigin:s,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:A}),P=(e=>{const{classes:t}=e;return Or({root:["root"],paper:["paper"]},Fs,t)})(T),M=g.useCallback((()=>{if("anchorPosition"===d)return c;const e=qs(l),t=(e&&1===e.nodeType?e:mr(L.current).body).getBoundingClientRect();return{top:t.top+Ws(t,s.vertical),left:t.left+Vs(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,d]),O=g.useCallback((e=>({vertical:Ws(e,E.vertical),horizontal:Vs(e,E.horizontal)})),[E.horizontal,E.vertical]),$=g.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Us(n)};const o=M();let r=o.top-n.vertical,i=o.left-n.horizontal;const a=r+t.height,s=i+t.width,c=br(qs(l)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&r<m){const e=r-m;r-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;r-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(r)}px`,left:`${Math.round(i)}px`,transformOrigin:Us(n)}}),[l,d,M,O,m]),[j,D]=g.useState(b),z=g.useCallback((()=>{const e=L.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,D(!0)}),[$]);g.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,R,z]);g.useEffect((()=>{b&&z()})),g.useImperativeHandle(a,(()=>b?{updatePosition:()=>{z()}}:null),[b,z]),g.useEffect((()=>{if(!b)return;const e=fr((()=>{z()})),t=br(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,z]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(l?mr(qs(l)).body:void 0),H=null!=(o=null==y?void 0:y.root)?o:Ks,Y=null!=(r=null==y?void 0:y.paper)?r:Xs,W=sa({elementType:Y,externalSlotProps:N({},I,{style:j?I.style:N({},I.style,{opacity:0})}),additionalProps:{elevation:f,ref:_},ownerState:T,className:Io(P.paper,null==I?void 0:I.className)}),V=sa({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:T,className:Io(P.root,p)}),{slotProps:U}=V,q=B(V,Ys);return sn.jsx(H,N({},q,!ra(H)&&{slotProps:U,disableScrollLock:R},{children:sn.jsx(S,N({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{D(!1)},timeout:F},A,{children:sn.jsx(Y,N({},W,{children:u}))}))}))}));function Zs(e){return To("MuiMenu",e)}Po("MuiMenu",["root","paper","list"]);const Js=["onEntering"],ec=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tc={vertical:"top",horizontal:"right"},nc={vertical:"top",horizontal:"left"},oc=wi(Qs,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rc=wi(Xs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ic=wi(zs,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ac=g.forwardRef((function(e,t){var n,o;const r=Ei({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=r,x=B(r.TransitionProps,Js),E=B(r,ec),S=xi(),C="rtl"===S.direction,w=N({},r,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return Or({root:["root"],paper:["paper"],list:["list"]},Zs,t)})(w),A=i&&!s&&u,k=g.useRef(null);let I=-1;g.Children.map(a,((e,t)=>{g.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=t))}));const L=null!=(n=v.paper)?n:rc,_=null!=(o=y.paper)?o:p,T=sa({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,l]}),P=sa({elementType:L,externalSlotProps:_,ownerState:w,className:R.paper});return sn.jsx(oc,N({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?tc:nc,slots:{paper:L,root:v.root},slotProps:{root:T,paper:P},open:u,ref:t,transitionDuration:f,TransitionProps:N({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},x),ownerState:w},E,{classes:h,children:sn.jsx(ic,N({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:b},c,{className:Io(R.list,c.className),children:a}))}))}));function lc(e){return To("MuiMenuItem",e)}var sc=Po("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const cc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dc=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>N({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fl.inset}`]:{marginLeft:52},[`& .${Os.root}`]:{marginTop:0,marginBottom:0},[`& .${Os.inset}`]:{paddingLeft:36},[`& .${_s.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&N({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${_s.root} svg`]:{fontSize:"1.25rem"}}))));var uc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:d,className:u}=n,p=B(n,cc),h=g.useContext(as),f=g.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),m=g.useRef(null);lr((()=>{o&&m.current&&m.current.focus()}),[o]);const b=N({},n,{dense:f.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e;return N({},a,Or({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},lc,a))})(n),y=yr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),sn.jsx(as.Provider,{value:f,children:sn.jsx(dc,N({ref:y,role:c,tabIndex:x,component:r,focusVisibleClassName:Io(v.focusVisible,s),className:Io(v.root,u)},p,{ownerState:b,classes:v}))})}));function pc(e){return To("MuiTab",e)}var hc=Po("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const fc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],mc=wi(ka,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${En(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>N({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${hc.iconWrapper}`]:N({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${hc.selected}`]:{opacity:1},[`&.${hc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${hc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${hc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),bc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:s="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:v,wrapped:y=!1}=n,x=B(n,fc),E=N({},n,{disabled:r,disableFocusRipple:i,selected:f,icon:!!l,iconPosition:s,label:!!d,fullWidth:a,textColor:b,wrapped:y}),S=(e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:i,label:a,selected:l,disabled:s}=e;return Or({root:["root",i&&a&&"labelIcon",`textColor${En(n)}`,o&&"fullWidth",r&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},pc,t)})(E),C=l&&d&&g.isValidElement(l)?g.cloneElement(l,{className:Io(S.iconWrapper,l.props.className)}):l;return sn.jsxs(mc,N({focusRipple:!i,className:Io(S.root,o),ref:t,role:"tab","aria-selected":f,disabled:r,onClick:e=>{!f&&u&&u(e,v),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,v),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===s||"start"===s?sn.jsxs(g.Fragment,{children:[C,d]}):sn.jsxs(g.Fragment,{children:[d,C]}),c]}))}));var gc=bc,vc=Mi(sn.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yc=Mi(sn.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Ec=["onChange"],Sc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Cc(e){return To("MuiTabScrollButton",e)}var wc=Po("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const Rc=["className","slots","slotProps","direction","orientation","disabled"],Ac=wi(ka,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>N({width:40,flexShrink:0,opacity:.8,[`&.${wc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),kc=g.forwardRef((function(e,t){var n,o;const r=Ei({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:s}=r,c=B(r,Rc),d=N({isRtl:"rtl"===xi().direction},r),u=(e=>{const{classes:t,orientation:n,disabled:o}=e;return Or({root:["root",n,o&&"disabled"]},Cc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:vc,h=null!=(o=a.EndScrollButtonIcon)?o:yc,f=sa({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=sa({elementType:h,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return sn.jsx(Ac,N({component:"div",className:Io(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===s?sn.jsx(p,N({},f)):sn.jsx(h,N({},m))}))}));var Ic=kc;function Lc(e){return To("MuiTabs",e)}var _c=Po("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const Tc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pc=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Mc=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Oc=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=n(e,r)}},$c=wi("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_c.scrollButtons}`]:t.scrollButtons},{[`& .${_c.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>N({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${_c.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Nc=wi("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>N({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Bc=wi("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>N({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),jc=wi("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>N({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Dc=wi((function(e){const{onChange:t}=e,n=B(e,Ec),o=g.useRef(),r=g.useRef(null),i=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return lr((()=>{const e=fr((()=>{const e=o.current;i(),e!==o.current&&t(o.current)})),n=br(r.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),g.useEffect((()=>{i(),t(o.current)}),[t]),sn.jsx("div",N({style:Sc,ref:r},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zc={},Fc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTabs"}),o=xi(),r="rtl"===o.direction,{"aria-label":i,"aria-labelledby":a,action:l,centered:s=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Ic,scrollButtons:v="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:A="standard",visibleScrollbar:k=!1}=n,I=B(n,Tc),L="scrollable"===A,_="vertical"===m,T=_?"scrollTop":"scrollLeft",P=_?"top":"left",M=_?"bottom":"right",O=_?"clientHeight":"clientWidth",$=_?"height":"width",j=N({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:_,scrollButtons:v,textColor:w,variant:A,visibleScrollbar:k,fixed:!L,hideScrollbar:L&&!k,scrollableX:L&&!_,scrollableY:L&&_,centered:s&&!L,scrollButtonsHideMobile:!p}),D=(e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return Or({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},Lc,s)})(j),z=sa({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:j}),F=sa({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:j}),[G,H]=g.useState(!1),[Y,W]=g.useState(zc),[V,U]=g.useState(!1),[q,K]=g.useState(!1),[X,Q]=g.useState(!1),[Z,J]=g.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=g.useRef(null),ne=g.useRef(null),oe=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Mr(e,o.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},re=vr((()=>{const{tabsMeta:e,tabMeta:t}=oe();let n,o=0;if(_)n="top",t&&e&&(o=t.top-e.top+e.scrollTop);else if(n=r?"right":"left",t&&e){const i=r?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;o=(r?-1:1)*(t[n]-e[n]+i)}const i={[n]:o,[$]:t?t[$]:0};if(isNaN(Y[n])||isNaN(Y[$]))W(i);else{const e=Math.abs(Y[n]-i[n]),t=Math.abs(Y[$]-i[$]);(e>=1||t>=1)&&W(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,o={},r=(()=>{})){const{ease:i=xc,duration:a=300}=o;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=o=>{if(c)return void r(new Error("Animation cancelled"));null===l&&(l=o);const d=Math.min(1,(o-l)/a);t[e]=i(d)*(n-s)+s,d>=1?requestAnimationFrame((()=>{r(null)})):requestAnimationFrame(u)};s===n?r(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:o.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];_?t+=e:(t+=e*(r?-1:1),t*=r&&"reverse"===Pr()?-1:1),ie(t)},le=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let o=0;o<n.length;o+=1){const r=n[o];if(t+r[O]>e){0===o&&(t=e);break}t+=r[O]}return t},se=()=>{ae(-1*le())},ce=()=>{ae(le())},de=g.useCallback((e=>{J({overflow:null,scrollbarWidth:e})}),[]),ue=vr((e=>{const{tabsMeta:t,tabMeta:n}=oe();if(n&&t)if(n[P]<t[P]){const o=t[T]+(n[P]-t[P]);ie(o,{animation:e})}else if(n[M]>t[M]){const o=t[T]+(n[M]-t[M]);ie(o,{animation:e})}})),pe=vr((()=>{L&&!1!==v&&Q(!X)}));g.useEffect((()=>{const e=fr((()=>{te.current&&re()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),pe()},o=br(te.current);let r;return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(r=new MutationObserver(n),r.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),o.removeEventListener("resize",e),null==(n=r)||n.disconnect(),null==(i=t)||i.disconnect()}}),[re,pe]),g.useEffect((()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==v){const n=e[0],o=e[t-1],r={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),r);i.observe(n);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),r);return a.observe(o),()=>{i.disconnect(),a.disconnect()}}}),[L,v,X,null==c?void 0:c.length]),g.useEffect((()=>{H(!0)}),[]),g.useEffect((()=>{re()})),g.useEffect((()=>{ue(zc!==Y)}),[ue,Y]),g.useImperativeHandle(l,(()=>({updateIndicator:re,updateScrollButtons:pe})),[re,pe]);const he=sn.jsx(jc,N({},S,{className:Io(D.indicator,S.className),ownerState:j,style:N({},Y,S.style)}));let fe=0;const me=g.Children.map(c,(e=>{if(!g.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,g.cloneElement(e,N({fullWidth:"fullWidth"===A,indicator:n&&!G&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=L?sn.jsx(Dc,{onChange:de,className:Io(D.scrollableX,D.hideScrollbar)}):null;const t=L&&("auto"===v&&(V||q)||!0===v);return e.scrollButtonStart=t?sn.jsx(b,N({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:r?"right":"left",onClick:se,disabled:!V},C,{className:Io(D.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?sn.jsx(b,N({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:r?"left":"right",onClick:ce,disabled:!q},C,{className:Io(D.scrollButtons,C.className)})):null,e})();return sn.jsxs($c,N({className:Io(D.root,d),ownerState:j,ref:t,as:u},I,{children:[be.scrollButtonStart,be.scrollbarSizeListener,sn.jsxs(Nc,{className:D.scroller,ownerState:j,style:{overflow:Z.overflow,[_?"margin"+(r?"Left":"Right"):"marginBottom"]:k?void 0:-Z.scrollbarWidth},ref:te,children:[sn.jsx(Bc,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:D.flexContainer,ownerState:j,onKeyDown:e=>{const t=ne.current,n=mr(t).activeElement;if("tab"!==n.getAttribute("role"))return;let o="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&r&&(o="ArrowRight",i="ArrowLeft"),e.key){case o:e.preventDefault(),Oc(t,n,Mc);break;case i:e.preventDefault(),Oc(t,n,Pc);break;case"Home":e.preventDefault(),Oc(t,null,Pc);break;case"End":e.preventDefault(),Oc(t,null,Mc)}},ref:ne,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))}));var Gc,Hc=Fc;function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yc.apply(null,arguments)}var Wc,Vc=function(e){return g.createElement("svg",Yc({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Gc||(Gc=g.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uc.apply(null,arguments)}var qc=function(e){return g.createElement("svg",Uc({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Wc||(Wc=g.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Kc({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",r="small"===e?"-2px 0":void 0;return v.createElement("i",{style:{fontSize:o,margin:r,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}const Xc={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Qc=12,Zc=14,Jc=16,ed=24,td=3,nd=300,od=400,rd=600,id=700,ad={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var ld=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{stroke:Xc.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),sd=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},v.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),v.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),cd=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),v.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),dd=(e={})=>v.createElement(Kc,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},v.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ud=(e={})=>v.createElement(Kc,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),v.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),pd=({className:e})=>v.createElement(Kc,{fontSize:"small",className:e},v.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},v.createElement("g",{transform:"translate(4.324187, 1.300372)"},v.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),v.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));const hd={MuiAccordion:{styleOverrides:{root:{backgroundColor:Xc.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Xc.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:v.createElement(Vc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Xc.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,borderRadius:td,backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Xc.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Xc.WHITE,color:Xc.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:td},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Xc.GREYSCALE_0_15,backgroundColor:Xc.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Xc.GREEN_PALE},"&:active":{backgroundColor:Xc.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Xc.BLUE_PALE},"&:active":{backgroundColor:Xc.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:td,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Xc.GREYSCALE_0_15,backgroundColor:Xc.GREYSCALE_100_60,"&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Xc.PURPLE,"&.Mui-focusVisible":{borderColor:Xc.PURPLE,boxShadow:`0 0 0 3px ${pr(Xc.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Xc.GREEN,"&.Mui-focusVisible":{borderColor:Xc.GREEN,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Xc.BLUE,"&.Mui-focusVisible":{borderColor:Xc.BLUE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Xc.ORANGE,"&.Mui-focusVisible":{borderColor:Xc.ORANGE,boxShadow:`0 0 0 3px ${pr(Xc.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Xc.RED,"&.Mui-focusVisible":{borderColor:Xc.RED,boxShadow:`0 0 0 3px ${pr(Xc.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Xc.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Xc.PURPLE_PALE},"&:active":{backgroundColor:Xc.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Xc.PURPLE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Xc.GREEN_PALE},"&:active":{backgroundColor:Xc.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Xc.BLUE_PALE},"&:active":{backgroundColor:Xc.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Xc.ORANGE_PALE},"&:active":{backgroundColor:Xc.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Xc.ORANGE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Xc.RED_PALE},"&:active":{backgroundColor:Xc.RED_DARK},"&.Mui-focusVisible":{borderColor:Xc.RED_PALE,boxShadow:`0 0 0 3px ${pr(Xc.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Xc.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Xc.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:td,boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:v.createElement(qc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Qc,borderRadius:td,color:Xc.TEXT_PRIMARY,backgroundColor:Xc.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Xc.GREYSCALE_0_05,color:Xc.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Xc.GREEN,borderColor:Xc.GREEN},"&.MuiChip-outlinedInfo":{color:Xc.BLUE,borderColor:Xc.BLUE},"&.MuiChip-outlinedWarning":{color:Xc.ORANGE,borderColor:Xc.ORANGE},"&.MuiChip-outlinedError":{color:Xc.RED,borderColor:Xc.RED}},outlined:{border:`solid 1px ${Xc.GREYSCALE_0_15}`,backgroundColor:Xc.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:td,boxShadow:"none",backgroundColor:Xc.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Xc.GREEN,borderColor:Xc.GREEN},outlinedSecondary:{color:Xc.BLUE,borderColor:Xc.BLUE},label:{fontFamily:ad.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:v.createElement(qc,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:v.createElement(Vc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:td},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:td,fontSize:Zc,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Xc.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Xc.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Xc.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Xc.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_05}}},popupIndicator:{borderRadius:td,border:`solid 1px ${Xc.GREYSCALE_0_15}`,color:Xc.GREYSCALE_0_60,marginRight:0,width:ed,height:ed},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Xc.GREYSCALE_0_15}`},clearIndicator:{borderRadius:td,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Xc.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Zc}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Qc,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Xc.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Xc.GREYSCALE_25,fontSize:Qc,fontFamily:ad.FONT_FAMILY,fontWeight:rd,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Xc.TEXT_PRIMARY},"&.Mui-error":{color:Xc.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Xc.TEXT_SECONDARY,content:"'(optional)'",fontWeight:od,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Xc.TEXT_SECONDARY,content:"'(required)'",fontWeight:od,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Zc,lineHeight:"16px",backgroundColor:Xc.WHITE,borderRadius:td,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderColor:Xc.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.RED}`,boxShadow:`0px 0px 0px 1px ${Xc.RED}, inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.GREYSCALE_0_10}`,borderColor:Xc.GREYSCALE_0_10,backgroundColor:Xc.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Xc.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Xc.GREYSCALE_0_15,borderRadius:td,boxShadow:`inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>v.createElement(Vc,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Xc.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Xc.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&:focus":{backgroundColor:Xc.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Xc.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Xc.GREYSCALE_0_30,"&:hover":{backgroundColor:Xc.GREYSCALE_0_0,borderColor:Xc.GREYSCALE_0_15},"& ~svg":{color:Xc.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Xc.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:td}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Xc.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Zc,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Qc,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Qc,fontWeight:rd,color:Xc.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:rd}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Xc.GREYSCALE_0_15}, 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:v.createElement(dd,null),checkedIcon:v.createElement(ud,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Xc.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Xc.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Xc.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:v.createElement(ld,null),checkedIcon:v.createElement(sd,null),indeterminateIcon:v.createElement(cd,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:td,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Xc.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Xc.GREYSCALE_0_55,color:Xc.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Xc.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Xc.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Xc.GREYSCALE_0_55,"&:hover":{color:Xc.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Xc.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Xc.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Zc,color:Xc.TEXT_PRIMARY,lineHeight:"16px",fontWeight:rd},secondary:{fontSize:Qc,color:Xc.GREYSCALE_45,fontWeight:od,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Zc,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&:active":{backgroundColor:Xc.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Zc,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Xc.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Qc,borderBottom:`solid 1px ${Xc.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Zc,color:Xc.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Xc.RED}}},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Xc.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Xc.GREEN,height:"24px","&.Mui-disabled":{color:Xc.GREYSCALE_0_15}},rail:{backgroundColor:Xc.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderRadius:td,boxShadow:`inset 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderRadius:td},thumb:{height:"16px",width:"16px",borderRadius:td,backgroundColor:Xc.WHITE,boxShadow:`0px 1px 2px 0px ${Xc.GREYSCALE_0_15}, 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`,"&:hover":{borderRadius:td,boxShadow:`0 2px 4px 0 ${Xc.GREYSCALE_0_30}, 0 0 0 1px ${Xc.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Xc.GREYSCALE_0_15}, 0 0 0 1px ${Xc.GREYSCALE_0_06}, 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Xc.GREYSCALE_0_15}, 0 0 0 1px ${Xc.GREYSCALE_0_06}, 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Xc.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Xc.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Xc.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Xc.GREYSCALE_0_15},markLabel:{color:Xc.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Xc.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Xc.WHITE,color:Xc.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Xc.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Xc.GREYSCALE_0_15,borderRadius:td},thumb:{height:"16px",width:"16px",borderRadius:td,backgroundColor:Xc.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Zc,fontWeight:rd,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Xc.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,backgroundColor:Xc.GREYSCALE_0_03,borderRadius:td},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Xc.GREYSCALE_25,"&.Mui-selected":{color:Xc.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Zc,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:td,"&:hover":{backgroundColor:`${Xc.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Xc.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Xc.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:td,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Xc.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Xc.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Xc.GREYSCALE_85}`,borderRight:`1px solid ${Xc.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:rd,backgroundColor:Xc.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Xc.GREYSCALE_98,borderBottom:`1px solid ${Xc.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Xc.GREYSCALE_85}`,borderTop:`1px solid ${Xc.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Xc.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Xc.GREYSCALE_0_05,"&:hover":{backgroundColor:Xc.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Xc.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>v.createElement(pd,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Xc.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Zc,borderRadius:td,padding:"7px 16px",border:`1px solid ${Xc.GREYSCALE_0_15}`,backgroundColor:Xc.GREYSCALE_100_60,color:Xc.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Xc.GREYSCALE_0_10,border:`1px solid ${Xc.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03,border:`1px solid ${Xc.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Xc.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`,border:`1px solid ${Xc.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Xc.GREYSCALE_25,backgroundColor:Xc.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Xc.GREYSCALE_0_10,border:`1px solid ${Xc.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Qc,height:24,width:24,padding:7},sizeLarge:{fontSize:Jc,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Zc,borderRadius:td}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Xc.GREYSCALE_20},tooltip:{backgroundColor:Xc.GREYSCALE_20,fontSize:Qc,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var fd=e=>hd;const md={mode:"light",primary:{ultraLight:Xc.GREEN_ULTRA_LIGHT,light:Xc.GREEN_PALE,main:Xc.GREEN,dark:Xc.GREEN_DARK,extraDark:Xc.GREEN_EXTRA_DARK,contrastText:Xc.WHITE},secondary:{ultraLight:Xc.BLUE_ULTRA_LIGHT,light:Xc.BLUE_PALE,main:Xc.BLUE,dark:Xc.BLUE_DARK,extraDark:Xc.BLUE_EXTRA_DARK,contrastText:Xc.WHITE},error:{ultraLight:Xc.RED_ULTRA_LIGHT,light:Xc.RED_PALE,main:Xc.RED,dark:Xc.RED_DARK,extraDark:Xc.RED_EXTRA_DARK,contrastText:Xc.WHITE},warning:{ultraLight:Xc.ORANGE_ULTRA_LIGHT,light:Xc.ORANGE_PALE,main:Xc.ORANGE,dark:Xc.ORANGE_DARK,extraDark:Xc.ORANGE_EXTRA_DARK,contrastText:Xc.WHITE},success:{ultraLight:Xc.GREEN_ULTRA_LIGHT,light:Xc.GREEN_PALE,main:Xc.GREEN,dark:Xc.GREEN_DARK,extraDark:Xc.GREEN_EXTRA_DARK,contrastText:Xc.WHITE},info:{ultraLight:Xc.BLUE_ULTRA_LIGHT,light:Xc.BLUE_PALE,main:Xc.BLUE,dark:Xc.BLUE_DARK,extraDark:Xc.BLUE_EXTRA_DARK,contrastText:Xc.WHITE},text:{primary:Xc.TEXT_PRIMARY,secondary:Xc.TEXT_SECONDARY,disabled:Xc.GREYSCALE_0_30},action:{hover:Xc.GREYSCALE_0_03,hoverOpacity:.03,selected:Xc.GREYSCALE_0_05,selectedOpacity:.05,focus:Xc.MISC_FOCUS_BORDER},amethyst:{ultraLight:Xc.WHITE,main:Xc.PURPLE,light:Xc.PURPLE_PALE,dark:Xc.PURPLE_DARK,extraDark:Xc.GREYSCALE_0_0,contrastText:Xc.WHITE},background:{paper:Xc.WHITE,default:Xc.GREYSCALE_95},divider:Xc.GREYSCALE_0_15},bd=e=>md;function gd(e){return vi({components:fd(),palette:bd(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Zc,fontWeightLight:nd,fontWeightRegular:od,fontWeightMedium:rd,fontWeightBold:id,htmlFontSize:Zc,fontFamily:ad.FONT_FAMILY,button:{fontWeight:rd,fontSize:Zc,textTransform:"none"},body1:{fontSize:Jc,lineHeight:"24px"},body2:{fontSize:Zc,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ed,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Jc,fontWeight:rd,lineHeight:"16px"},h6:{fontSize:Zc,fontWeight:rd,lineHeight:"16px"},caption:{color:Xc.TEXT_SECONDARY},subtitle1:{fontSize:Zc,color:Xc.TEXT_SECONDARY},subtitle2:{fontSize:Qc,color:Xc.TEXT_SECONDARY}},shape:{borderRadius:td},direction:e})}class vd{constructor({translator:e}){M(this,"translator",void 0),M(this,"muiTheme",void 0),M(this,"containers",{}),M(this,"sync",(({element:e,sharedContainerUtilities:t,translator:n,containerId:o,dataHandler:r,renderHelper:i})=>{this.translator=n,this.containers[o]={element:e,sharedContainerUtilities:t,dataHandler:r,renderHelper:i}})),M(this,"setMuiTheme",(e=>{this.muiTheme=gd(e)})),M(this,"destroy",(e=>{delete this.containers[e]})),this.translator=e}}const yd=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class xd{constructor(e,t){M(this,"embed",void 0),M(this,"translator",void 0),M(this,"charts",{}),M(this,"getCharts",(()=>{var e;return this.charts=(null===(e=this.embed)||void 0===e?void 0:e.getRegisteredTypes()).reduce(((e,t)=>{var n,o;if(!(yd.includes(t.id)||!1===(null===(n=t.libraryInfo)||void 0===n?void 0:n.isLibraryItem)||null!==(o=t.libraryInfo)&&void 0!==o&&o.deprecated)){var r;const n=t;null!==(r=n.libraryInfo)&&void 0!==r&&r.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e}),{}),this.charts})),M(this,"getChart",(e=>(this.charts[e]||this.getCharts(),this.charts[e]))),this.embed=e,this.translator=t}}var Ed,Sd=_;function Cd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ed=Sd.createRoot,Sd.hydrateRoot;const wd=y(((e,t)=>v.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Cd(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})))),Rd="rgb(89, 89, 89)",Ad=Qt(Sl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),kd=Qt(Sl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Id=Qt(ds,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),Ld=Qt(Oa)({color:Rd,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),_d=Qt(Ms)({"&.MuiListItemIcon-root":{minWidth:32,color:Rd,marginRight:"0px"}}),Td=Qt(Vl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Pd=Qt(Ml)({"&.MuiButton-contained":{backgroundColor:Rd,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Rd,color:Rd,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Rd}`}}}),Md=Qt(Pi)({width:"1em",height:"1em",paddingBottom:"8px"}),Od=Qt(Pi)({width:"16px",height:"16px"}),$d=({name:e,items:t,onSelect:n})=>v.createElement(v.Fragment,null,v.createElement(Is,{key:e,dense:!0},v.createElement(Ld,{noWrap:!0,fontWeight:"bold"},e)),v.createElement(Td,null),t.map((e=>{var t;return v.createElement(Is,{key:null!==(t=e.qExtendsId)&&void 0!==t?t:e.name,divider:!0,disablePadding:!0,disableGutters:!0},v.createElement(gs,{sx:{minHeight:"32px",height:"auto"},onClick:()=>n(e),disableRipple:!0,dense:!0},e.iconPath&&v.createElement(_d,null,e.IconDefinition?v.createElement(e.IconDefinition,null):v.createElement(Od,{viewBox:"0 0 16 16"},v.createElement("path",{d:e.iconPath}))),v.createElement(Ld,{noWrap:!0,title:e.translation||e.name},e.translation||e.name)))}))),Nd=({categories:e,anchorEl:t,onClose:n,onSelect:o,width:r})=>{const[i,a]=w(""),l=!!t;return R((()=>{l&&a("")}),[l]),v.createElement(Qs,{open:l,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"}},v.createElement(cl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:v.createElement(is,{position:"start"},v.createElement(wd,null))}),v.createElement(Td,null),v.createElement(Id,{width:r},e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return(null==t?void 0:t.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()))>-1}));return t.length>0&&v.createElement($d,{key:e.name,name:e.name,items:t,onSelect:o})}))))},Bd=({anchorEl:e,onClose:t,dataHandler:n,translator:o,sharedContainerUtilities:r,width:i})=>{const[a,l]=w([]),[s,c]=w({});R((()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();l(e),c(n.getCharts())})().catch((()=>{}))}}),[e,n]);const d=[],u=[],p=[],h=[],f=[],m=Object.values(s);if(0===m.length&&0===a.length)return null;m.forEach((e=>{var t,n,o;!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible?d.push(e):e.libraryInfo.visible&&("qlik-dashboard-bundle"===(null===(t=e.libraryInfo.bundle)||void 0===t?void 0:t.id)?h.push(e):"qlik-visualization-bundle"===(null===(n=e.libraryInfo.bundle)||void 0===n?void 0:n.id)?p.push(e):"qlik-smart-bundle"===(null===(o=e.libraryInfo.bundle)||void 0===o?void 0:o.id)?f.push(e):!e.libraryInfo.bundle&&e.libraryInfo.isThirdParty&&u.push(e))}));const b=e=>e.map((e=>{var t,n,o,r;return{iconPath:null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(n=e.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:e.id,translation:(null===(o=e.libraryInfo)||void 0===o?void 0:o.translation)||(null===(r=e.libraryInfo)||void 0===r?void 0:r.name)||e.id||""}})).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),g=[{name:o.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>{var t,n;return{qExtendsId:e.qExtendsId,iconPath:s&&(null===(t=s[e.visualization])||void 0===t||null===(t=t.libraryInfo)||void 0===t?void 0:t.iconPath),IconDefinition:null===(n=s[e.visualization])||void 0===n||null===(n=n.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:e.name}})).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:o.get("LayoutContainer.Object.Charts"),items:d.map((e=>{var t,n,o,r;return{iconPath:(null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath)||"",IconDefinition:null===(n=e.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:(null===(o=e.libraryInfo)||void 0===o?void 0:o.name)||e.id,translation:(null===(r=e.libraryInfo)||void 0===r?void 0:r.translation)||e.id||""}})).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:o.get("LayoutContainer.Object.CustomObjects"),items:b(u)},{name:o.get("LayoutContainer.Object.VisualizationBundle"),items:b(p)},{name:o.get("LayoutContainer.Object.DashboardBundle"),items:b(h)},{name:o.get("LayoutContainer.Object.SmartBundle"),items:b(f)}];return v.createElement(Nd,{categories:g,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:o}=e;(o?n.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.name,objectInitProps:{label:e.translation}})).then((e=>{null!=e&&e.id&&(null==r||r.setSelected([e.id]))})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},jd=e=>{var t,n;const o=zd(e);return null!==(t=null===(n=e.objects)||void 0===n?void 0:n.map((e=>{const{childRefId:t}=e;if(!t)return e;const n=o[t];return n?{...e,id:n}:e})))&&void 0!==t?t:[]},Dd=(e,t)=>{var n;return null==e||null===(n=e.qChildList)||void 0===n||null===(n=n.qItems)||void 0===n?void 0:n.find((e=>{var n;return(null==e||null===(n=e.qData)||void 0===n?void 0:n.childRefId)===t}))},zd=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var n,o;return e[null==t||null===(n=t.qData)||void 0===n?void 0:n.childRefId]=null==t||null===(o=t.qInfo)||void 0===o?void 0:o.qId,e}),{})};var Fd=Dd,Gd=e=>{const t={...e};return t.objects=jd(t),t},Hd=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var n,o;return e[null==t||null===(n=t.qInfo)||void 0===n?void 0:n.qId]=null===(o=t.qData)||void 0===o?void 0:o.childRefId,e}),{})},Yd=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Wd=(e,t)=>{var n;if(!e)return t;const o=Dd(e,t);return null==o||null===(n=o.qInfo)||void 0===n?void 0:n.qId};class Vd{constructor({app:e,data:t}){M(this,"layout",void 0),M(this,"app",void 0),M(this,"activeId",""),M(this,"data",void 0),M(this,"properties",void 0),M(this,"setSelectedChild",(e=>{var t;null===(t=this.activeContainer)||void 0===t||null===(t=t.sharedContainerUtilities)||void 0===t||t.setSelected(e)})),M(this,"addChild",(({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:o}=this.activeContainer;if(null!=e&&e.qExtendsId){const{qExtendsId:r,qInfo:i}=e;return null==o?void 0:o.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:i},objectInitProps:t,children:n})}return null==o?void 0:o.addVizAsChild({type:null==e?void 0:e.visualization,initProps:e,objectInitProps:t,children:n})})),M(this,"deleteChild",(async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(null==t?void 0:t.deleteChildren([e]))})),M(this,"duplicateChild",(async e=>{var t;const{childRefId:n,...o}=e,r=this.getEngineId(n);if(!r)return;const i=await(null===(t=this.app)||void 0===t?void 0:t.getObject(r));if(i&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await i.getFullPropertyTree(),n=t.qProperty,r=t.qChildren,a=await this.addChild({initProps:n,children:r,objectInitProps:o});a&&(null==e||e.setSelected([a.id]))}})),M(this,"openAddChildPopover",(e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let o;return 0===n.length?(o=document.createElement("div"),o.className=t,e.appendChild(o)):o=n[0],Ed(o)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};null==t||t.render(v.createElement(Ai,{theme:this.data.muiTheme},v.createElement(Bd,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})))}})),M(this,"setModel",(e=>{this.activeId=e.id})),M(this,"setLayout",(e=>{this.layout=e})),M(this,"getLayout",(()=>this.layout)),M(this,"getEngineId",(e=>Wd(this.layout,e))),M(this,"setProperties",(e=>{this.properties=e})),M(this,"canAddDimension",(()=>!1)),M(this,"canAddMeasure",(()=>!1)),M(this,"canColorBy",(()=>!1)),M(this,"getDimensions",(()=>[])),M(this,"getMeasures",(()=>[])),M(this,"minDimensions",(()=>0)),M(this,"minMeasures",(()=>0)),M(this,"maxDimensions",(()=>0)),M(this,"maxMeasures",(()=>0)),this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}getObject(e){const t=this.getEngineId(e);var n;if(t)return null===(n=this.activeContainer)||void 0===n?void 0:n.renderHelper.objectMap[t]}}function Ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||Kd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e){return function(e){if(Array.isArray(e))return Xd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kd(e,t){if(e){if("string"==typeof e)return Xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(e,t):void 0}}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Qd=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Zd=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Jd=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function eu(e){var t=e.theme,n=e.translator,o=e.defaultValue,r=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,qd(new Set([o].concat(qd(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(o),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(qd(i.map((function(e){return Jd(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],qd(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Zd:Qd}(r).map((function(e){return Jd(e)}))))}function tu(e){var t=e.theme,n=e.translator,o=e.id,r=e.path,i=e.flags,a=function(){return t.getStyle(o,r,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return eu({theme:t,translator:n,defaultValue:a(),flags:i})}}}var nu=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],ou=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ru(e){var t=e.theme,n=e.translator,o=e.id,r=e.path,i=function(){return t.getStyle(o,r,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,o=[],r=e.theme.getStyle("","","fontSizes");return Array.isArray(r)&&r.length?o.push.apply(o,qd(new Set([n].concat(qd(r))))):o.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(qd(o.map((function(e){return ou(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],qd(nu.map((function(e){return ou(e)}))))}({theme:t,translator:n,defaultValue:i()})}}}function iu(e){var t=e.theme,n=e.translator,o=e.id,r=e.path;return{fontFamily:tu({theme:t,translator:n,id:o,path:r,flags:e.flags}),fontSize:ru({theme:t,translator:n,id:o,path:r})}}var au=Object.prototype.hasOwnProperty,lu=Object.prototype.toString,su=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,du=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===lu.call(e)},uu=function(e){if(!e||"[object Object]"!==lu.call(e))return!1;var t,n=au.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&au.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||au.call(e,t)},pu=function(e,t){su&&"__proto__"===t.name?su(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},hu=function(e,t){if("__proto__"===t){if(!au.call(e,t))return;if(cu)return cu(e,t).value}return e[t]};function fu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mu(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function bu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,o,r,i,a,l=arguments[0],s=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)o=hu(l,n),l!==(r=hu(t,n))&&(d&&r&&(uu(r)||(i=du(r)))?(i?(i=!1,a=o&&du(o)?o:[]):a=o&&uu(o)?o:{},pu(l,{name:n,newValue:e(d,a,r)})):void 0!==r&&pu(l,{name:n,newValue:r}));return l}));var gu=1/.7,vu="\\s*([+-]?\\d+)\\s*",yu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Eu=/^#([0-9a-f]{3,8})$/,Su=new RegExp(`^rgb\\(${vu},${vu},${vu}\\)$`),Cu=new RegExp(`^rgb\\(${xu},${xu},${xu}\\)$`),wu=new RegExp(`^rgba\\(${vu},${vu},${vu},${yu}\\)$`),Ru=new RegExp(`^rgba\\(${xu},${xu},${xu},${yu}\\)$`),Au=new RegExp(`^hsl\\(${yu},${xu},${xu}\\)$`),ku=new RegExp(`^hsla\\(${yu},${xu},${xu},${yu}\\)$`),Iu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lu(){return this.rgb().formatHex()}function _u(){return this.rgb().formatRgb()}function Tu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Eu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pu(t):3===n?new Nu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Mu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Mu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Su.exec(e))?new Nu(t[1],t[2],t[3],1):(t=Cu.exec(e))?new Nu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wu.exec(e))?Mu(t[1],t[2],t[3],t[4]):(t=Ru.exec(e))?Mu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Au.exec(e))?Gu(t[1],t[2]/100,t[3]/100,1):(t=ku.exec(e))?Gu(t[1],t[2]/100,t[3]/100,t[4]):Iu.hasOwnProperty(e)?Pu(Iu[e]):"transparent"===e?new Nu(NaN,NaN,NaN,0):null}function Pu(e){return new Nu(e>>16&255,e>>8&255,255&e,1)}function Mu(e,t,n,o){return o<=0&&(e=t=n=NaN),new Nu(e,t,n,o)}function Ou(e){return e instanceof bu||(e=Tu(e)),e?new Nu((e=e.rgb()).r,e.g,e.b,e.opacity):new Nu}function $u(e,t,n,o){return 1===arguments.length?Ou(e):new Nu(e,t,n,null==o?1:o)}function Nu(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}function Bu(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}`}function ju(){const e=Du(this.opacity);return`${1===e?"rgb(":"rgba("}${zu(this.r)}, ${zu(this.g)}, ${zu(this.b)}${1===e?")":`, ${e})`}`}function Du(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fu(e){return((e=zu(e))<16?"0":"")+e.toString(16)}function Gu(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yu(e,t,n,o)}function Hu(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);if(e instanceof bu||(e=Tu(e)),!e)return new Yu;if(e instanceof Yu)return e;var t=(e=e.rgb()).r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),i=Math.max(t,n,o),a=NaN,l=i-r,s=(i+r)/2;return l?(a=t===i?(n-o)/l+6*(n<o):n===i?(o-t)/l+2:(t-n)/l+4,l/=s<.5?i+r:2-i-r,a*=60):l=s>0&&s<1?0:a,new Yu(a,l,s,e.opacity)}function Yu(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}function Wu(e){return(e=(e||0)%360)<0?e+360:e}function Vu(e){return Math.max(0,Math.min(1,e||0))}function Uu(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fu(bu,Tu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lu,formatHex:Lu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hu(this).formatHsl()},formatRgb:_u,toString:_u}),fu(Nu,$u,mu(bu,{brighter(e){return e=null==e?gu:Math.pow(gu,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nu(zu(this.r),zu(this.g),zu(this.b),Du(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bu,formatHex:Bu,formatHex8:function(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}${Fu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ju,toString:ju})),fu(Yu,(function(e,t,n,o){return 1===arguments.length?Hu(e):new Yu(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return e=null==e?gu:Math.pow(gu,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Nu(Uu(e>=240?e-240:e+120,r,o),Uu(e,r,o),Uu(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new Yu(Wu(this.h),Vu(this.s),Vu(this.l),Du(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Du(this.opacity);return`${1===e?"hsl(":"hsla("}${Wu(this.h)}, ${100*Vu(this.s)}%, ${100*Vu(this.l)}%${1===e?")":`, ${e})`}`}}));const qu=Math.PI/180,Ku=180/Math.PI,Xu=4/29,Qu=6/29,Zu=3*Qu*Qu;function Ju(e){if(e instanceof ep)return new ep(e.l,e.a,e.b,e.opacity);if(e instanceof ip)return ap(e);e instanceof Nu||(e=Ou(e));var t,n,o=rp(e.r),r=rp(e.g),i=rp(e.b),a=tp((.2225045*o+.7168786*r+.0606169*i)/1);return o===r&&r===i?t=n=a:(t=tp((.4360747*o+.3850649*r+.1430804*i)/.96422),n=tp((.0139322*o+.0971045*r+.7141733*i)/.82521)),new ep(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ep(e,t,n,o){this.l=+e,this.a=+t,this.b=+n,this.opacity=+o}function tp(e){return e>.008856451679035631?Math.pow(e,1/3):e/Zu+Xu}function np(e){return e>Qu?e*e*e:Zu*(e-Xu)}function op(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ip(e,t,n,o){this.h=+e,this.c=+t,this.l=+n,this.opacity=+o}function ap(e){if(isNaN(e.h))return new ep(e.l,0,0,e.opacity);var t=e.h*qu;return new ep(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fu(ep,(function(e,t,n,o){return 1===arguments.length?Ju(e):new ep(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return new ep(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ep(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Nu(op(3.1338561*(t=.96422*np(t))-1.6168667*(e=1*np(e))-.4906146*(n=.82521*np(n))),op(-.9787684*t+1.9161415*e+.033454*n),op(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fu(ip,(function(e,t,n,o){return 1===arguments.length?function(e){if(e instanceof ip)return new ip(e.h,e.c,e.l,e.opacity);if(e instanceof ep||(e=Ju(e)),0===e.a&&0===e.b)return new ip(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ku;return new ip(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ip(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return new ip(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ip(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ap(this).rgb()}}));var lp=e=>()=>e;function sp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?sp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}(t,n,e):lp(isNaN(t)?n:t)}}(t);function o(e,t){var o=n((e=$u(e)).r,(t=$u(t)).r),r=n(e.g,t.g),i=n(e.b,t.b),a=sp(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=r(t),e.b=i(t),e.opacity=a(t),e+""}}return o.gamma=e,o}(1);var cp="center",dp="bottom";function up(e,t,n){if(void 0===e||void 0===t)return n;for(var o=t.split("."),r=e,i=0;i<o.length;++i){var a=o[i];if(void 0===r[a])return n;r=r[a]}return r}[{key:"NoDataExist",alignment:cp,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:cp,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:cp,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:cp},{key:"DataRangeIncludingZero",alignment:dp},{key:"LimitedData",alignment:dp},{key:"NegativeOrZeroValues",alignment:dp}].reduce((function(e,t){return e[t.key]=t,e}),{});var pp,hp=["__proto__","constructor"];function fp(e,t,n){if(void 0!==e&&void 0!==t){var o=t.split("."),r=o[o.length-1];if(!hp.some((function(e){return o.includes(e)}))){for(var i=e,a=0;a<o.length-1;++a){var l=o[a];void 0===i[l]&&(i[l]=Number.isNaN(+o[a+1])?{}:[]),i=i[l]}void 0!==n?i[r]=n:delete i[r]}}}function mp(e){var t=0,n=e.children,o=n&&n.length;if(o)for(;--o>=0;)t+=n[o].value;else t=1;e.value=t}function bp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=vp)):void 0===t&&(t=gp);for(var n,o,r,i,a,l=new Ep(e),s=[l];n=s.pop();)if((r=t(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,i=a-1;i>=0;--i)s.push(o=r[i]=new Ep(r[i])),o.parent=n,o.depth=n.depth+1;return l.eachBefore(xp)}function gp(e){return e.children}function vp(e){return Array.isArray(e)?e[1]:null}function yp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function xp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ep(e){this.data=e,this.depth=this.height=0,this.parent=null}Ep.prototype=bp.prototype={constructor:Ep,count:function(){return this.eachAfter(mp)},each:function(e,t){let n=-1;for(const o of this)e.call(t,o,++n,this);return this},eachAfter:function(e,t){for(var n,o,r,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(o=0,r=n.length;o<r;++o)a.push(n[o]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,o,r=this,i=[r],a=-1;r=i.pop();)if(e.call(t,r,++a,this),n=r.children)for(o=n.length-1;o>=0;--o)i.push(n[o]);return this},find:function(e,t){let n=-1;for(const o of this)if(e.call(t,o,++n,this))return o},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,o=t.children,r=o&&o.length;--r>=0;)n+=o[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),o=t.ancestors(),r=null;for(e=n.pop(),t=o.pop();e===t;)r=e,e=n.pop(),t=o.pop();return r}(t,e),o=[t];t!==n;)t=t.parent,o.push(t);for(var r=o.length;e!==n;)o.splice(r,0,e),e=e.parent;return o},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return bp(this).eachBefore(yp)},[Symbol.iterator]:function*(){var e,t,n,o,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(yield r,t=r.children)for(n=0,o=t.length;n<o;++n)i.push(t[n])}while(i.length)}},pp=function(e){
96
+ `),ca.rippleVisible,ba,550,(({theme:e})=>e.transitions.easing.easeInOut),ca.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ca.child,ca.childLeaving,ga,550,(({theme:e})=>e.transitions.easing.easeInOut),ca.childPulsate,va,(({theme:e})=>e.transitions.easing.easeInOut));var Ea=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:r={},className:i}=n,a=B(n,da),[l,s]=g.useState([]),c=g.useRef(0),d=g.useRef(null);g.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const u=g.useRef(!1),p=g.useRef(0),h=g.useRef(null),f=g.useRef(null);g.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=g.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:o,rippleSize:i,cb:a}=e;s((e=>[...e,sn.jsx(xa,{classes:{ripple:Io(r.ripple,ca.ripple),rippleVisible:Io(r.rippleVisible,ca.rippleVisible),ripplePulsate:Io(r.ripplePulsate,ca.ripplePulsate),child:Io(r.child,ca.child),childLeaving:Io(r.childLeaving,ca.childLeaving),childPulsate:Io(r.childPulsate,ca.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:i},c.current)])),c.current+=1,d.current=a}),[r]),b=g.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&u.current)return void(u.current=!1);"touchstart"===(null==e?void 0:e.type)&&(u.current=!0);const l=a?null:f.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,d,b;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),d=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),d=Math.round(n-s.top)}if(i)b=Math.sqrt((2*s.width**2+s.height**2)/3),b%2==0&&(b+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-d),d)+2;b=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:r,rippleX:c,rippleY:d,rippleSize:b,cb:n})},p.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):m({pulsate:r,rippleX:c,rippleY:d,rippleSize:b,cb:n})}),[o,m]),v=g.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=g.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(p.current=setTimeout((()=>{y(e,t)})));h.current=null,s((e=>e.length>0?e.slice(1):e)),d.current=t}),[]);return g.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),sn.jsx(ya,N({className:Io(ca.root,r.root,i),ref:f},a,{children:sn.jsx(Qi,{component:null,exit:!0,children:l})}))}));function Sa(e){return To("MuiButtonBase",e)}var Ca=Po("MuiButtonBase",["root","disabled","focusVisible"]);const wa=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ra=wi("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ca.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Aa=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:r=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:u=!1,LinkComponent:p="a",onBlur:h,onClick:f,onContextMenu:m,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:E,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:k,tabIndex:I=0,TouchRippleProps:L,touchRippleRef:_,type:T}=n,P=B(n,wa),M=g.useRef(null),O=g.useRef(null),$=yr(O,_),{isFocusVisibleRef:j,onFocus:D,onBlur:z,ref:F}=Lr(),[G,H]=g.useState(!1);s&&G&&H(!1),g.useImperativeHandle(o,(()=>({focusVisible:()=>{H(!0),M.current.focus()}})),[]);const[Y,W]=g.useState(!1);g.useEffect((()=>{W(!0)}),[]);const V=Y&&!c&&!s;function U(e,t,n=d){return vr((o=>{t&&t(o);return!n&&O.current&&O.current[e](o),!0}))}g.useEffect((()=>{G&&u&&!c&&Y&&O.current.pulsate()}),[c,u,G,Y]);const q=U("start",S),K=U("stop",m),X=U("stop",b),Q=U("stop",w),Z=U("stop",(e=>{G&&e.preventDefault(),C&&C(e)})),J=U("start",k),ee=U("stop",R),te=U("stop",A),ne=U("stop",(e=>{z(e),!1===j.current&&H(!1),h&&h(e)}),!1),oe=vr((e=>{M.current||(M.current=e.currentTarget),D(e),!0===j.current&&(H(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=g.useRef(!1),ae=vr((e=>{u&&!ie.current&&G&&O.current&&" "===e.key&&(ie.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),f&&f(e))})),le=vr((e=>{u&&" "===e.key&&O.current&&G&&!e.defaultPrevented&&(ie.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),E&&E(e),f&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&f(e)}));let se=l;"button"===se&&(P.href||P.to)&&(se=p);const ce={};"button"===se?(ce.type=void 0===T?"button":T,ce.disabled=s):(P.href||P.to||(ce.role="button"),s&&(ce["aria-disabled"]=s));const de=yr(t,F,M),ue=N({},n,{centerRipple:r,component:l,disabled:s,disableRipple:c,disableTouchRipple:d,focusRipple:u,tabIndex:I,focusVisible:G}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=Or({root:["root",t&&"disabled",n&&"focusVisible"]},Sa,r);return n&&o&&(i.root+=` ${o}`),i})(ue);return sn.jsxs(Ra,N({as:se,className:Io(pe.root,a),ownerState:ue,onBlur:ne,onClick:f,onContextMenu:K,onFocus:oe,onKeyDown:ae,onKeyUp:le,onMouseDown:q,onMouseLeave:Z,onMouseUp:Q,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:J,ref:de,tabIndex:s?-1:I,type:T},ce,P,{children:[i,V?sn.jsx(Ea,N({ref:$,center:r},L)):null]}))}));var ka=Aa;function Ia(e){return To("MuiTypography",e)}Po("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const La=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],_a=wi("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${En(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>N({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Ta={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Pa={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ma=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTypography"}),o=(e=>Pa[e]||e)(n.color),r=wo(N({},n,{color:o})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:d=!1,variant:u="body1",variantMapping:p=Ta}=r,h=B(r,La),f=N({},r,{align:i,color:o,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:d,variant:u,variantMapping:p}),m=l||(d?"p":p[u]||Ta[u])||"span",b=(e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:i,classes:a}=e;return Or({root:["root",i,"inherit"!==e.align&&`align${En(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]},Ia,a)})(f);return sn.jsx(_a,N({as:m,ref:t,ownerState:f,className:Io(b.root,a)},h))}));var Oa=Ma;const $a=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Na(e){const t=[],n=[];return Array.from(e.querySelectorAll($a)).forEach(((e,o)=>{const r=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Ba(){return!0}function ja(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:i=Na,isEnabled:a=Ba,open:l}=e,s=g.useRef(!1),c=g.useRef(null),d=g.useRef(null),u=g.useRef(null),p=g.useRef(null),h=g.useRef(!1),f=g.useRef(null),m=yr(t.ref,f),b=g.useRef(null);g.useEffect((()=>{l&&f.current&&(h.current=!n)}),[n,l]),g.useEffect((()=>{if(!l||!f.current)return;const e=mr(f.current);return f.current.contains(e.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),h.current&&f.current.focus()),()=>{r||(u.current&&u.current.focus&&(s.current=!0,u.current.focus()),u.current=null)}}),[l]),g.useEffect((()=>{if(!l||!f.current)return;const e=mr(f.current),t=t=>{b.current=t,!o&&a()&&"Tab"===t.key&&e.activeElement===f.current&&t.shiftKey&&(s.current=!0,d.current&&d.current.focus())},n=()=>{const t=f.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(n=i(f.current)),n.length>0){var r,l;const e=Boolean((null==(r=b.current)?void 0:r.shiftKey)&&"Tab"===(null==(l=b.current)?void 0:l.key)),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const r=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(r),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,o,r,a,l,i]);const v=e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0};return sn.jsxs(g.Fragment,{children:[sn.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),g.cloneElement(t,{ref:m,onFocus:e=>{null===u.current&&(u.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),sn.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const Da=g.forwardRef((function(e,t){const{children:n,container:o,disablePortal:r=!1}=e,[i,a]=g.useState(null),l=yr(g.isValidElement(n)?n.ref:null,t);if(lr((()=>{r||a(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,r]),lr((()=>{if(i&&!r)return gr(t,i),()=>{gr(t,null)}}),[t,i,r]),r){if(g.isValidElement(n)){const e={ref:l};return g.cloneElement(n,e)}return sn.jsx(g.Fragment,{children:n})}return sn.jsx(g.Fragment,{children:i?L.createPortal(n,i):i})}));function za(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Fa(e){return parseInt(br(e).getComputedStyle(e).paddingRight,10)||0}function Ga(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&za(e,r)}))}function Ha(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function Ya(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function(e){const t=mr(e);return t.body===e?br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=_r(mr(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Fa(o)+e}px`;const t=mr(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Fa(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=mr(o).body;else{const t=o.parentElement,n=br(o);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Wa=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&za(e.modalRef,!1);const o=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ga(t,e.mount,e.modalRef,o,!0);const r=Ha(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=Ha(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];o.restore||(o.restore=Ya(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=Ha(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&za(e.modalRef,t),Ga(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&za(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Va(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:r=Wa,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:c,open:d,rootRef:u}=e,p=g.useRef({}),h=g.useRef(null),f=g.useRef(null),m=yr(f,u),[b,v]=g.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const E=()=>(p.current.modalRef=f.current,p.current.mount=h.current,p.current),S=()=>{r.mount(E(),{disableScrollLock:o}),f.current&&(f.current.scrollTop=0)},C=vr((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||mr(h.current).body;r.add(E(),e),f.current&&S()})),w=g.useCallback((()=>r.isTopModal(E())),[r]),R=vr((e=>{h.current=e,e&&(d&&w()?S():f.current&&za(f.current,x))})),A=g.useCallback((()=>{r.remove(E(),x)}),[x,r]);g.useEffect((()=>()=>{A()}),[A]),g.useEffect((()=>{d?C():y&&i||A()}),[d,A,y,i,C]);const k=e=>t=>{var o;null==(o=e.onKeyDown)||o.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=ia(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o=N({},n,t);return N({role:"presentation"},o,{onKeyDown:k(o),ref:m})},getBackdropProps:(e={})=>N({"aria-hidden":!0},e,{onClick:I(e),open:d}),getTransitionProps:()=>({onEnter:hr((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:hr((()=>{v(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}const Ua=["onChange","maxRows","minRows","style","value"];function qa(e){return parseInt(e,10)||0}const Ka={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Xa(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Qa=g.forwardRef((function(e,t){const{onChange:n,maxRows:o,minRows:r=1,style:i,value:a}=e,l=B(e,Ua),{current:s}=g.useRef(null!=a),c=g.useRef(null),d=yr(t,c),u=g.useRef(null),p=g.useRef(0),[h,f]=g.useState({outerHeightStyle:0}),m=g.useCallback((()=>{const t=c.current,n=br(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=u.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=qa(n.paddingBottom)+qa(n.paddingTop),s=qa(n.borderBottomWidth)+qa(n.borderTopWidth),d=i.scrollHeight;i.value="x";const p=i.scrollHeight;let h=d;r&&(h=Math.max(Number(r)*p,h)),o&&(h=Math.min(Number(o)*p,h)),h=Math.max(h,p);return{outerHeightStyle:h+("border-box"===a?l+s:0),overflow:Math.abs(h-d)<=1}}),[o,r,e.placeholder]),b=(e,t)=>{const{outerHeightStyle:n,overflow:o}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==o)?(p.current+=1,{overflow:o,outerHeightStyle:n}):e},v=g.useCallback((()=>{const e=m();Xa(e)||f((t=>b(t,e)))}),[m]);lr((()=>{const e=()=>{p.current=0,(()=>{const e=m();Xa(e)||L.flushSync((()=>{f((t=>b(t,e)))}))})()};const t=fr(e),n=c.current,o=br(n);let r;return o.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(e),r.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),o.removeEventListener("resize",t),r&&r.disconnect()}}),[m]),lr((()=>{v()})),g.useEffect((()=>{p.current=0}),[a]);return sn.jsxs(g.Fragment,{children:[sn.jsx("textarea",N({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:d,rows:r,style:N({height:h.outerHeightStyle,overflow:h.overflow?"hidden":void 0},i)},l)),sn.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:u,tabIndex:-1,style:N({},Ka,i,{paddingTop:0,paddingBottom:0})})]})}));var Za=g.createContext(void 0);function Ja(){return g.useContext(Za)}function el(e){return sn.jsx(Eo,N({},e,{defaultTheme:yi,themeId:$}))}function tl(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function nl(e){return To("MuiInputBase",e)}var ol=Po("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const rl=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],il=wi("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${En(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]}})((({theme:e,ownerState:t})=>N({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ol.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&N({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),al=wi("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,o=N({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return N({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ol.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ol.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),ll=sn.jsx(el,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sl=g.forwardRef((function(e,t){var n;const o=Ei({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:d,disabled:u,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:f=!1,id:m,inputComponent:b="input",inputProps:v={},inputRef:y,maxRows:x,minRows:E,multiline:S=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:k,onKeyDown:I,onKeyUp:L,placeholder:_,readOnly:T,renderSuffix:P,rows:M,slotProps:$={},slots:j={},startAdornment:D,type:z="text",value:F}=o,G=B(o,rl),H=null!=v.value?v.value:F,{current:Y}=g.useRef(null!=H),W=g.useRef(),V=g.useCallback((e=>{}),[]),U=yr(W,y,v.ref,V),[q,K]=g.useState(!1),X=Ja(),Q=function({props:e,states:t,muiFormControl:n}){return t.reduce(((t,o)=>(t[o]=e[o],n&&void 0===e[o]&&(t[o]=n[o]),t)),{})}({props:o,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Q.focused=X?X.focused:q,g.useEffect((()=>{!X&&u&&q&&(K(!1),w&&w())}),[X,u,q,w]);const Z=X&&X.onFilled,J=X&&X.onEmpty,ee=g.useCallback((e=>{!function(e,t=!1){return e&&(tl(e.value)&&""!==e.value||t&&tl(e.defaultValue)&&""!==e.defaultValue)}(e)?J&&J():Z&&Z()}),[Z,J]);lr((()=>{Y&&ee({value:H})}),[H,ee,Y]);g.useEffect((()=>{ee(W.current)}),[]);let te=b,ne=v;S&&"input"===te&&(ne=N(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:E},ne),te=Qa);g.useEffect((()=>{X&&X.setAdornedStart(Boolean(D))}),[X,D]);const oe=N({},o,{color:Q.color||"primary",disabled:Q.disabled,endAdornment:h,error:Q.error,focused:Q.focused,formControl:X,fullWidth:f,hiddenLabel:Q.hiddenLabel,multiline:S,size:Q.size,startAdornment:D,type:z}),re=(e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:d,readOnly:u,size:p,startAdornment:h,type:f}=e;return Or({root:["root",`color${En(n)}`,o&&"disabled",r&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${En(p)}`,d&&"multiline",h&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",u&&"readOnly"],input:["input",o&&"disabled","search"===f&&"inputTypeSearch",d&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",i&&"inputAdornedEnd",u&&"readOnly"]},nl,t)})(oe),ie=j.root||s.Root||il,ae=$.root||c.root||{},le=j.input||s.Input||al;return ne=N({},ne,null!=(n=$.input)?n:c.input),sn.jsxs(g.Fragment,{children:[!p&&ll,sn.jsxs(ie,N({},ae,!ra(ie)&&{ownerState:N({},oe,ae.ownerState)},{ref:t,onClick:e=>{W.current&&e.currentTarget===e.target&&W.current.focus(),A&&A(e)}},G,{className:Io(re.root,ae.className,l,T&&"MuiInputBase-readOnly"),children:[D,sn.jsx(Za.Provider,{value:null,children:sn.jsx(le,N({ownerState:oe,"aria-invalid":Q.error,"aria-describedby":r,autoComplete:i,autoFocus:a,defaultValue:d,disabled:Q.disabled,id:m,onAnimationStart:e=>{ee("mui-auto-fill-cancel"===e.animationName?W.current:{value:"x"})},name:C,placeholder:_,readOnly:T,required:Q.required,rows:M,value:H,onKeyDown:I,onKeyUp:L,type:z},ne,!ra(le)&&{as:te,ownerState:N({},oe,ne.ownerState)},{ref:U,className:Io(re.input,ne.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):K(!1)},onChange:(e,...t)=>{if(!Y){const t=e.target||W.current;if(null==t)throw new Error(O(1));ee({value:t.value})}v.onChange&&v.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Q.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):K(!0))}}))}),h,P?P(N({},Q,{startAdornment:D})):null]}))]})}));var cl=sl;const dl=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ul={entering:{opacity:1},entered:{opacity:1}},pl=g.forwardRef((function(e,t){const n=xi(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:r,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:d,onEntering:u,onExit:p,onExited:h,onExiting:f,style:m,timeout:b=o,TransitionComponent:v=Wi}=e,y=B(e,dl),x=g.useRef(null),E=yr(x,a.ref,t),S=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},C=S(u),w=S(((e,t)=>{Zi(e);const o=Ji({style:m,timeout:b,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",o),e.style.transition=n.transitions.create("opacity",o),c&&c(e,t)})),R=S(d),A=S(f),k=S((e=>{const t=Ji({style:m,timeout:b,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=S(h);return sn.jsx(v,N({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:k,onExited:I,onExiting:A,addEndListener:e=>{r&&r(x.current,e)},timeout:b},y,{children:(e,t)=>g.cloneElement(a,N({style:N({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},ul[e],m,a.props.style),ref:E},t))}))}));var hl=pl;function fl(e){return To("MuiBackdrop",e)}Po("MuiBackdrop",["root","invisible"]);const ml=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bl=wi("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>N({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),gl=g.forwardRef((function(e,t){var n,o,r;const i=Ei({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:d={},invisible:u=!1,open:p,slotProps:h={},slots:f={},TransitionComponent:m=hl,transitionDuration:b}=i,g=B(i,ml),v=N({},i,{component:s,invisible:u}),y=(e=>{const{classes:t,invisible:n}=e;return Or({root:["root",n&&"invisible"]},fl,t)})(v),x=null!=(n=h.root)?n:d.root;return sn.jsx(m,N({in:p,timeout:b},g,{children:sn.jsx(bl,N({"aria-hidden":!0},x,{as:null!=(o=null!=(r=f.root)?r:c.Root)?o:s,className:Io(y.root,l,null==x?void 0:x.className),ownerState:N({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var vl=gl;var yl=Po("MuiBox",["root"]);const xl=vi(),El=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,i=dn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fo);return g.forwardRef((function(e,a){const l=xo(n),s=wo(e),{className:c,component:d="div"}=s,u=B(s,Lo);return sn.jsx(i,N({as:d,ref:a,className:Io(c,r?r(o):o),theme:t&&l[t]||l},u))}))}({themeId:$,defaultTheme:xl,defaultClassName:yl.root,generateClassName:Ao.generate});var Sl=El;function Cl(e){return To("MuiButton",e)}var wl=Po("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Rl=g.createContext({});var Al=g.createContext(void 0);const kl=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Il=e=>N({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Ll=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${En(n.color)}`],t[`size${En(n.size)}`],t[`${n.variant}Size${En(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,o;const r="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return N({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":N({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:pr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":N({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${wl.focusVisible}`]:N({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.disabled}`]:N({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${pr(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(o=e.palette).getContrastText)?void 0:n.call(o,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:r,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}})),_l=wi("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${En(n.size)}`]]}})((({ownerState:e})=>N({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Il(e)))),Tl=wi("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${En(n.size)}`]]}})((({ownerState:e})=>N({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Il(e)))),Pl=g.forwardRef((function(e,t){const n=g.useContext(Rl),o=g.useContext(Al),r=Ei({props:ir(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:d=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:h,fullWidth:f=!1,size:m="medium",startIcon:b,type:v,variant:y="text"}=r,x=B(r,kl),E=N({},r,{color:a,component:l,disabled:c,disableElevation:d,disableFocusRipple:u,fullWidth:f,size:m,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:i,classes:a}=e;return N({},a,Or({root:["root",i,`${i}${En(t)}`,`size${En(r)}`,`${i}Size${En(r)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${En(r)}`],endIcon:["endIcon",`iconSize${En(r)}`]},Cl,a))})(E),C=b&&sn.jsx(_l,{className:S.startIcon,ownerState:E,children:b}),w=p&&sn.jsx(Tl,{className:S.endIcon,ownerState:E,children:p}),R=o||"";return sn.jsxs(Ll,N({ownerState:E,className:Io(n.className,S.root,s,R),component:l,disabled:c,focusRipple:!u,focusVisibleClassName:Io(S.focusVisible,h),ref:t,type:v},x,{classes:S,children:[C,i,w]}))}));var Ml=Pl;function Ol(e){return To("MuiModal",e)}Po("MuiModal",["root","hidden","backdrop"]);const $l=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Nl=wi("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>N({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bl=wi(vl,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jl=g.forwardRef((function(e,t){var n,o,r,i,a,l;const s=Ei({name:"MuiModal",props:e}),{BackdropComponent:c=Bl,BackdropProps:d,className:u,closeAfterTransition:p=!1,children:h,container:f,component:m,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:E=!1,disablePortal:S=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:k,open:I,slotProps:L,slots:_}=s,T=B(s,$l),P=N({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:E,disablePortal:S,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:M,getBackdropProps:O,getTransitionProps:$,portalRef:j,isTopModal:D,exited:z,hasTransition:F}=Va(N({},P,{rootRef:t})),G=N({},P,{exited:z}),H=(e=>{const{open:t,exited:n,classes:o}=e;return Or({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Ol,o)})(G),Y={};if(void 0===h.props.tabIndex&&(Y.tabIndex="-1"),F){const{onEnter:e,onExited:t}=$();Y.onEnter=e,Y.onExited=t}const W=null!=(n=null!=(o=null==_?void 0:_.root)?o:b.Root)?n:Nl,V=null!=(r=null!=(i=null==_?void 0:_.backdrop)?i:b.Backdrop)?r:c,U=null!=(a=null==L?void 0:L.root)?a:v.root,q=null!=(l=null==L?void 0:L.backdrop)?l:v.backdrop,K=sa({elementType:W,externalSlotProps:U,externalForwardedProps:T,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:G,className:Io(u,null==U?void 0:U.className,null==H?void 0:H.root,!G.open&&G.exited&&(null==H?void 0:H.hidden))}),X=sa({elementType:V,externalSlotProps:q,additionalProps:d,getSlotProps:e=>O(N({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Io(null==q?void 0:q.className,null==d?void 0:d.className,null==H?void 0:H.backdrop),ownerState:G});return A||I||F&&!z?sn.jsx(Da,{ref:j,container:f,disablePortal:S,children:sn.jsxs(W,N({},K,{children:[!R&&c?sn.jsx(V,N({},X)):null,sn.jsx(ja,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:D,open:I,children:g.cloneElement(h,Y)})]}))}):null}));var Dl=jl;function zl(e){return To("MuiDivider",e)}const Fl=Po("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gl=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Hl=wi("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>N({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:pr(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>N({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>N({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>N({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>N({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Yl=wi("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>N({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Wl=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiDivider"}),{absolute:o=!1,children:r,className:i,component:a=(r?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:d=("hr"!==a?"separator":void 0),textAlign:u="center",variant:p="fullWidth"}=n,h=B(n,Gl),f=N({},n,{absolute:o,component:a,flexItem:l,light:s,orientation:c,role:d,textAlign:u,variant:p}),m=(e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:i,orientation:a,textAlign:l,variant:s}=e;return Or({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",r&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},zl,o)})(f);return sn.jsx(Hl,N({as:a,className:Io(m.root,i),role:d,ref:t,ownerState:f},h,{children:r?sn.jsx(Yl,{className:m.wrapper,ownerState:f,children:r}):null}))}));Wl.muiSkipListHighlight=!0;var Vl=Wl;const Ul=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ql(e){return`scale(${e}, ${e**2})`}const Kl={entering:{opacity:1,transform:ql(1)},entered:{opacity:1,transform:"none"}},Xl="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ql=g.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:r,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:d,onExited:u,onExiting:p,style:h,timeout:f="auto",TransitionComponent:m=Wi}=e,b=B(e,Ul),v=g.useRef(),y=g.useRef(),x=xi(),E=g.useRef(null),S=yr(E,r.ref,t),C=e=>t=>{if(e){const n=E.current;void 0===t?e(n):e(n,t)}},w=C(c),R=C(((e,t)=>{Zi(e);const{duration:n,delay:o,easing:r}=Ji({style:h,timeout:f,easing:i},{mode:"enter"});let a;"auto"===f?(a=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=a):a=n,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:o}),x.transitions.create("transform",{duration:Xl?a:.666*a,delay:o,easing:r})].join(","),l&&l(e,t)})),A=C(s),k=C(p),I=C((e=>{const{duration:t,delay:n,easing:o}=Ji({style:h,timeout:f,easing:i},{mode:"exit"});let r;"auto"===f?(r=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=r):r=t,e.style.transition=[x.transitions.create("opacity",{duration:r,delay:n}),x.transitions.create("transform",{duration:Xl?r:.666*r,delay:Xl?n:n||.333*r,easing:o})].join(","),e.style.opacity=0,e.style.transform=ql(.75),d&&d(e)})),L=C(u);return g.useEffect((()=>()=>{clearTimeout(v.current)}),[]),sn.jsx(m,N({appear:o,in:a,nodeRef:E,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:L,onExiting:k,addEndListener:e=>{"auto"===f&&(v.current=setTimeout(e,y.current||0)),n&&n(E.current,e)},timeout:"auto"===f?null:f},b,{children:(e,t)=>g.cloneElement(r,N({style:N({opacity:0,transform:ql(.75),visibility:"exited"!==e||a?void 0:"hidden"},Kl[e],h,r.props.style),ref:S},t))}))}));Ql.muiSupportAuto=!0;var Zl=Ql;function Jl(e){return To("MuiInputAdornment",e)}var es,ts=Po("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const ns=["children","className","component","disablePointerEvents","disableTypography","position","variant"],os=wi("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${En(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>N({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ts.positionStart}&:not(.${ts.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),rs=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiInputAdornment"}),{children:o,className:r,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,d=B(n,ns),u=Ja()||{};let p=c;c&&u.variant,u&&!p&&(p=u.variant);const h=N({},n,{hiddenLabel:u.hiddenLabel,size:u.size,disablePointerEvents:a,position:s,variant:p}),f=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:i,variant:a}=e;return Or({root:["root",n&&"disablePointerEvents",r&&`position${En(r)}`,a,o&&"hiddenLabel",i&&`size${En(i)}`]},Jl,t)})(h);return sn.jsx(Za.Provider,{value:null,children:sn.jsx(os,N({as:i,ownerState:h,className:Io(f.root,r),ref:t},d,{children:"string"!=typeof o||l?sn.jsxs(g.Fragment,{children:["start"===s?es||(es=sn.jsx("span",{className:"notranslate",children:"​"})):null,o]}):sn.jsx(Oa,{color:"text.secondary",children:o})}))})}));var is=rs;var as=g.createContext({});function ls(e){return To("MuiList",e)}Po("MuiList",["root","padding","dense","subheader"]);const ss=["children","className","component","dense","disablePadding","subheader"],cs=wi("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>N({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ds=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiList"}),{children:o,className:r,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=B(n,ss),d=g.useMemo((()=>({dense:a})),[a]),u=N({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return Or({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},ls,t)})(u);return sn.jsx(as.Provider,{value:d,children:sn.jsxs(cs,N({as:i,className:Io(p.root,r),ref:t,ownerState:u},c,{children:[s,o]}))})}));function us(e){return To("MuiListItem",e)}var ps=Po("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function hs(e){return To("MuiListItemButton",e)}var fs=Po("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const ms=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],bs=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>N({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})));var gs=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:r=!1,component:i="div",children:a,dense:l=!1,disableGutters:s=!1,divider:c=!1,focusVisibleClassName:d,selected:u=!1,className:p}=n,h=B(n,ms),f=g.useContext(as),m=g.useMemo((()=>({dense:l||f.dense||!1,alignItems:o,disableGutters:s})),[o,f.dense,l,s]),b=g.useRef(null);lr((()=>{r&&b.current&&b.current.focus()}),[r]);const v=N({},n,{alignItems:o,dense:m.dense,disableGutters:s,divider:c,selected:u}),y=(e=>{const{alignItems:t,classes:n,dense:o,disabled:r,disableGutters:i,divider:a,selected:l}=e;return N({},n,Or({root:["root",o&&"dense",!i&&"gutters",a&&"divider",r&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},hs,n))})(v),x=yr(b,t);return sn.jsx(as.Provider,{value:m,children:sn.jsx(bs,N({ref:x,href:h.href||h.to,component:(h.href||h.to)&&"div"===i?"button":i,focusVisibleClassName:Io(y.focusVisible,d),ownerState:v,className:Io(y.root,p)},h,{classes:y,children:a}))})}));function vs(e){return To("MuiListItemSecondaryAction",e)}Po("MuiListItemSecondaryAction",["root","disableGutters"]);const ys=["className"],xs=wi("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>N({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Es=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemSecondaryAction"}),{className:o}=n,r=B(n,ys),i=N({},n,{disableGutters:g.useContext(as).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return Or({root:["root",t&&"disableGutters"]},vs,n)})(i);return sn.jsx(xs,N({className:Io(a.root,o),ownerState:i,ref:t},r))}));Es.muiName="ListItemSecondaryAction";var Ss=Es;const Cs=["className"],ws=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Rs=wi("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>N({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&N({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${fs.root}`]:{paddingRight:48}},{[`&.${ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ps.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ps.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ps.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),As=wi("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ks=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItem"}),{alignItems:o="center",autoFocus:r=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:d={},ContainerComponent:u="li",ContainerProps:{className:p}={},dense:h=!1,disabled:f=!1,disableGutters:m=!1,disablePadding:b=!1,divider:v=!1,focusVisibleClassName:y,secondaryAction:x,selected:E=!1,slotProps:S={},slots:C={}}=n,w=B(n.ContainerProps,Cs),R=B(n,ws),A=g.useContext(as),k=g.useMemo((()=>({dense:h||A.dense||!1,alignItems:o,disableGutters:m})),[o,A.dense,h,m]),I=g.useRef(null);lr((()=>{r&&I.current&&I.current.focus()}),[r]);const L=g.Children.toArray(a),_=L.length&&(T=L[L.length-1],P=["ListItemSecondaryAction"],g.isValidElement(T)&&-1!==P.indexOf(null!=(M=T.type.muiName)?M:null==(O=T.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var T,P,M,O;const $=N({},n,{alignItems:o,autoFocus:r,button:i,dense:k.dense,disabled:f,disableGutters:m,disablePadding:b,divider:v,hasSecondaryAction:_,selected:E}),j=(e=>{const{alignItems:t,button:n,classes:o,dense:r,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:d}=e;return Or({root:["root",r&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",d&&"selected"],container:["container"]},us,o)})($),D=yr(I,t),z=C.root||c.Root||Rs,F=S.root||d.root||{},G=N({className:Io(j.root,F.className,l),disabled:f},R);let H=s||"li";return i&&(G.component=s||"div",G.focusVisibleClassName=Io(ps.focusVisible,y),H=ka),_?(H=G.component||s?H:"div","li"===u&&("li"===H?H="div":"li"===G.component&&(G.component="div")),sn.jsx(as.Provider,{value:k,children:sn.jsxs(As,N({as:u,className:Io(j.container,p),ref:D,ownerState:$},w,{children:[sn.jsx(z,N({},F,!ra(z)&&{as:H,ownerState:N({},$,F.ownerState)},G,{children:L})),L.pop()]}))})):sn.jsx(as.Provider,{value:k,children:sn.jsxs(z,N({},F,{as:H,ref:D},!ra(z)&&{ownerState:N({},$,F.ownerState)},G,{children:[L,x&&sn.jsx(Ss,{children:x})]}))})}));var Is=ks;function Ls(e){return To("MuiListItemIcon",e)}const _s=Po("MuiListItemIcon",["root","alignItemsFlexStart"]),Ts=["className"],Ps=wi("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>N({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Ms=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiListItemIcon"}),{className:o}=n,r=B(n,Ts),i=N({},n,{alignItems:g.useContext(as).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Or({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Ls,n)})(i);return sn.jsx(Ps,N({className:Io(a.root,o),ownerState:i,ref:t},r))}));var Os=Po("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const $s=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ns(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Bs(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function js(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function Ds(e,t,n,o,r,i){let a=!1,l=r(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!o&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&js(l,i)&&!t)return l.focus(),!0;l=r(e,l,n)}return!1}var zs=g.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:r=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:d="selectedMenu"}=e,u=B(e,$s),p=g.useRef(null),h=g.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lr((()=>{o&&p.current.focus()}),[o]),g.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${_r(mr(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const f=yr(p,t);let m=-1;g.Children.forEach(i,((e,t)=>{g.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const b=g.Children.map(i,((e,t)=>{if(t===m){const t={};return r&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),g.cloneElement(e,t)}return e}));return sn.jsx(ds,N({role:"menu",ref:f,className:a,onKeyDown:e=>{const t=p.current,n=e.key,o=mr(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Ds(t,o,s,l,Ns);else if("ArrowUp"===n)e.preventDefault(),Ds(t,o,s,l,Bs);else if("Home"===n)e.preventDefault(),Ds(t,null,s,l,Ns);else if("End"===n)e.preventDefault(),Ds(t,null,s,l,Bs);else if(1===n.length){const r=h.current,i=n.toLowerCase(),a=performance.now();r.keys.length>0&&(a-r.lastTime>500?(r.keys=[],r.repeating=!0,r.previousKeyMatched=!0):r.repeating&&i!==r.keys[0]&&(r.repeating=!1)),r.lastTime=a,r.keys.push(i);const s=o&&!r.repeating&&js(o,r);r.previousKeyMatched&&(s||Ds(t,o,!1,l,Ns,r))?e.preventDefault():r.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},u,{children:b}))}));function Fs(e){return To("MuiPopover",e)}Po("MuiPopover",["root","paper"]);const Gs=["onEntering"],Hs=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ys=["slotProps"];function Ws(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Vs(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Us(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function qs(e){return"function"==typeof e?e():e}const Ks=wi(Dl,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xs=wi(oa,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var Qs=g.forwardRef((function(e,t){var n,o,r;const i=Ei({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:u,className:p,container:h,elevation:f=8,marginThreshold:m=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:S=Zl,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=B(i.TransitionProps,Gs),k=B(i,Hs),I=null!=(n=null==x?void 0:x.paper)?n:v,L=g.useRef(),_=yr(L,I.ref),T=N({},i,{anchorOrigin:s,anchorReference:d,elevation:f,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:E,TransitionComponent:S,transitionDuration:C,TransitionProps:A}),P=(e=>{const{classes:t}=e;return Or({root:["root"],paper:["paper"]},Fs,t)})(T),M=g.useCallback((()=>{if("anchorPosition"===d)return c;const e=qs(l),t=(e&&1===e.nodeType?e:mr(L.current).body).getBoundingClientRect();return{top:t.top+Ws(t,s.vertical),left:t.left+Vs(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,d]),O=g.useCallback((e=>({vertical:Ws(e,E.vertical),horizontal:Vs(e,E.horizontal)})),[E.horizontal,E.vertical]),$=g.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=O(t);if("none"===d)return{top:null,left:null,transformOrigin:Us(n)};const o=M();let r=o.top-n.vertical,i=o.left-n.horizontal;const a=r+t.height,s=i+t.width,c=br(qs(l)),u=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&r<m){const e=r-m;r-=e,n.vertical+=e}else if(null!==m&&a>u){const e=a-u;r-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(r)}px`,left:`${Math.round(i)}px`,transformOrigin:Us(n)}}),[l,d,M,O,m]),[j,D]=g.useState(b),z=g.useCallback((()=>{const e=L.current;if(!e)return;const t=$(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,D(!0)}),[$]);g.useEffect((()=>(R&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,R,z]);g.useEffect((()=>{b&&z()})),g.useImperativeHandle(a,(()=>b?{updatePosition:()=>{z()}}:null),[b,z]),g.useEffect((()=>{if(!b)return;const e=fr((()=>{z()})),t=br(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,b,z]);let F=C;"auto"!==C||S.muiSupportAuto||(F=void 0);const G=h||(l?mr(qs(l)).body:void 0),H=null!=(o=null==y?void 0:y.root)?o:Ks,Y=null!=(r=null==y?void 0:y.paper)?r:Xs,W=sa({elementType:Y,externalSlotProps:N({},I,{style:j?I.style:N({},I.style,{opacity:0})}),additionalProps:{elevation:f,ref:_},ownerState:T,className:Io(P.paper,null==I?void 0:I.className)}),V=sa({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:G,open:b},ownerState:T,className:Io(P.root,p)}),{slotProps:U}=V,q=B(V,Ys);return sn.jsx(H,N({},q,!ra(H)&&{slotProps:U,disableScrollLock:R},{children:sn.jsx(S,N({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),z()},onExited:()=>{D(!1)},timeout:F},A,{children:sn.jsx(Y,N({},W,{children:u}))}))}))}));function Zs(e){return To("MuiMenu",e)}Po("MuiMenu",["root","paper","list"]);const Js=["onEntering"],ec=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],tc={vertical:"top",horizontal:"right"},nc={vertical:"top",horizontal:"left"},oc=wi(Qs,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rc=wi(Xs,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ic=wi(zs,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var ac=g.forwardRef((function(e,t){var n,o;const r=Ei({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:c={},onClose:d,open:u,PaperProps:p={},PopoverClasses:h,transitionDuration:f="auto",TransitionProps:{onEntering:m}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=r,x=B(r.TransitionProps,Js),E=B(r,ec),S=xi(),C="rtl"===S.direction,w=N({},r,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:f,TransitionProps:x,variant:b}),R=(e=>{const{classes:t}=e;return Or({root:["root"],paper:["paper"],list:["list"]},Zs,t)})(w),A=i&&!s&&u,k=g.useRef(null);let I=-1;g.Children.map(a,((e,t)=>{g.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===I)&&(I=t))}));const L=null!=(n=v.paper)?n:rc,_=null!=(o=y.paper)?o:p,T=sa({elementType:v.root,externalSlotProps:y.root,ownerState:w,className:[R.root,l]}),P=sa({elementType:L,externalSlotProps:_,ownerState:w,className:R.paper});return sn.jsx(oc,N({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?tc:nc,slots:{paper:L,root:v.root},slotProps:{root:T,paper:P},open:u,ref:t,transitionDuration:f,TransitionProps:N({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},x),ownerState:w},E,{classes:h,children:sn.jsx(ic,N({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:b},c,{className:Io(R.list,c.className),children:a}))}))}));function lc(e){return To("MuiMenuItem",e)}var sc=Po("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const cc=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],dc=wi(ka,{shouldForwardProp:e=>Si(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>N({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:pr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:pr(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fl.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fl.inset}`]:{marginLeft:52},[`& .${Os.root}`]:{marginTop:0,marginBottom:0},[`& .${Os.inset}`]:{paddingLeft:36},[`& .${_s.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&N({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${_s.root} svg`]:{fontSize:"1.25rem"}}))));var uc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:r="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:d,className:u}=n,p=B(n,cc),h=g.useContext(as),f=g.useMemo((()=>({dense:i||h.dense||!1,disableGutters:l})),[h.dense,i,l]),m=g.useRef(null);lr((()=>{o&&m.current&&m.current.focus()}),[o]);const b=N({},n,{dense:f.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:i,classes:a}=e;return N({},a,Or({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",i&&"selected"]},lc,a))})(n),y=yr(m,t);let x;return n.disabled||(x=void 0!==d?d:-1),sn.jsx(as.Provider,{value:f,children:sn.jsx(dc,N({ref:y,role:c,tabIndex:x,component:r,focusVisibleClassName:Io(v.focusVisible,s),className:Io(v.root,u)},p,{ownerState:b,classes:v}))})}));function pc(e){return To("MuiTab",e)}var hc=Po("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);const fc=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],mc=wi(ka,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${En(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>N({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${hc.iconWrapper}`]:N({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${hc.selected}`]:{opacity:1},[`&.${hc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${hc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${hc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${hc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)}))),bc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTab"}),{className:o,disabled:r=!1,disableFocusRipple:i=!1,fullWidth:a,icon:l,iconPosition:s="top",indicator:c,label:d,onChange:u,onClick:p,onFocus:h,selected:f,selectionFollowsFocus:m,textColor:b="inherit",value:v,wrapped:y=!1}=n,x=B(n,fc),E=N({},n,{disabled:r,disableFocusRipple:i,selected:f,icon:!!l,iconPosition:s,label:!!d,fullWidth:a,textColor:b,wrapped:y}),S=(e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:i,label:a,selected:l,disabled:s}=e;return Or({root:["root",i&&a&&"labelIcon",`textColor${En(n)}`,o&&"fullWidth",r&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]},pc,t)})(E),C=l&&d&&g.isValidElement(l)?g.cloneElement(l,{className:Io(S.iconWrapper,l.props.className)}):l;return sn.jsxs(mc,N({focusRipple:!i,className:Io(S.root,o),ref:t,role:"tab","aria-selected":f,disabled:r,onClick:e=>{!f&&u&&u(e,v),p&&p(e)},onFocus:e=>{m&&!f&&u&&u(e,v),h&&h(e)},ownerState:E,tabIndex:f?0:-1},x,{children:["top"===s||"start"===s?sn.jsxs(g.Fragment,{children:[C,d]}):sn.jsxs(g.Fragment,{children:[d,C]}),c]}))}));var gc=bc,vc=Mi(sn.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),yc=Mi(sn.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xc(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}const Ec=["onChange"],Sc={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Cc(e){return To("MuiTabScrollButton",e)}var wc=Po("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);const Rc=["className","slots","slotProps","direction","orientation","disabled"],Ac=wi(ka,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>N({width:40,flexShrink:0,opacity:.8,[`&.${wc.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),kc=g.forwardRef((function(e,t){var n,o;const r=Ei({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:s}=r,c=B(r,Rc),d=N({isRtl:"rtl"===xi().direction},r),u=(e=>{const{classes:t,orientation:n,disabled:o}=e;return Or({root:["root",n,o&&"disabled"]},Cc,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:vc,h=null!=(o=a.EndScrollButtonIcon)?o:yc,f=sa({elementType:p,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),m=sa({elementType:h,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return sn.jsx(Ac,N({component:"div",className:Io(u.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===s?sn.jsx(p,N({},f)):sn.jsx(h,N({},m))}))}));var Ic=kc;function Lc(e){return To("MuiTabs",e)}var _c=Po("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);const Tc=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Pc=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Mc=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Oc=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const t=r.disabled||"true"===r.getAttribute("aria-disabled");if(r.hasAttribute("tabindex")&&!t)return void r.focus();r=n(e,r)}},$c=wi("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_c.scrollButtons}`]:t.scrollButtons},{[`& .${_c.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>N({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${_c.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),Nc=wi("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>N({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),Bc=wi("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>N({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),jc=wi("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>N({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),Dc=wi((function(e){const{onChange:t}=e,n=B(e,Ec),o=g.useRef(),r=g.useRef(null),i=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return lr((()=>{const e=fr((()=>{const e=o.current;i(),e!==o.current&&t(o.current)})),n=br(r.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),g.useEffect((()=>{i(),t(o.current)}),[t]),sn.jsx("div",N({style:Sc,ref:r},n))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),zc={},Fc=g.forwardRef((function(e,t){const n=Ei({props:e,name:"MuiTabs"}),o=xi(),r="rtl"===o.direction,{"aria-label":i,"aria-labelledby":a,action:l,centered:s=!1,children:c,className:d,component:u="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:f,orientation:m="horizontal",ScrollButtonComponent:b=Ic,scrollButtons:v="auto",selectionFollowsFocus:y,slots:x={},slotProps:E={},TabIndicatorProps:S={},TabScrollButtonProps:C={},textColor:w="primary",value:R,variant:A="standard",visibleScrollbar:k=!1}=n,I=B(n,Tc),L="scrollable"===A,_="vertical"===m,T=_?"scrollTop":"scrollLeft",P=_?"top":"left",M=_?"bottom":"right",O=_?"clientHeight":"clientWidth",$=_?"height":"width",j=N({},n,{component:u,allowScrollButtonsMobile:p,indicatorColor:h,orientation:m,vertical:_,scrollButtons:v,textColor:w,variant:A,visibleScrollbar:k,fixed:!L,hideScrollbar:L&&!k,scrollableX:L&&!_,scrollableY:L&&_,centered:s&&!L,scrollButtonsHideMobile:!p}),D=(e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:s}=e;return Or({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},Lc,s)})(j),z=sa({elementType:x.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:j}),F=sa({elementType:x.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:j}),[G,H]=g.useState(!1),[Y,W]=g.useState(zc),[V,U]=g.useState(!1),[q,K]=g.useState(!1),[X,Q]=g.useState(!1),[Z,J]=g.useState({overflow:"hidden",scrollbarWidth:0}),ee=new Map,te=g.useRef(null),ne=g.useRef(null),oe=()=>{const e=te.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Mr(e,o.direction),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==R){const e=ne.current.children;if(e.length>0){const t=e[ee.get(R)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},re=vr((()=>{const{tabsMeta:e,tabMeta:t}=oe();let n,o=0;if(_)n="top",t&&e&&(o=t.top-e.top+e.scrollTop);else if(n=r?"right":"left",t&&e){const i=r?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;o=(r?-1:1)*(t[n]-e[n]+i)}const i={[n]:o,[$]:t?t[$]:0};if(isNaN(Y[n])||isNaN(Y[$]))W(i);else{const e=Math.abs(Y[n]-i[n]),t=Math.abs(Y[$]-i[$]);(e>=1||t>=1)&&W(i)}})),ie=(e,{animation:t=!0}={})=>{t?function(e,t,n,o={},r=(()=>{})){const{ease:i=xc,duration:a=300}=o;let l=null;const s=t[e];let c=!1;const d=()=>{c=!0},u=o=>{if(c)return void r(new Error("Animation cancelled"));null===l&&(l=o);const d=Math.min(1,(o-l)/a);t[e]=i(d)*(n-s)+s,d>=1?requestAnimationFrame((()=>{r(null)})):requestAnimationFrame(u)};s===n?r(new Error("Element already at target position")):requestAnimationFrame(u)}(T,te.current,e,{duration:o.transitions.duration.standard}):te.current[T]=e},ae=e=>{let t=te.current[T];_?t+=e:(t+=e*(r?-1:1),t*=r&&"reverse"===Pr()?-1:1),ie(t)},le=()=>{const e=te.current[O];let t=0;const n=Array.from(ne.current.children);for(let o=0;o<n.length;o+=1){const r=n[o];if(t+r[O]>e){0===o&&(t=e);break}t+=r[O]}return t},se=()=>{ae(-1*le())},ce=()=>{ae(le())},de=g.useCallback((e=>{J({overflow:null,scrollbarWidth:e})}),[]),ue=vr((e=>{const{tabsMeta:t,tabMeta:n}=oe();if(n&&t)if(n[P]<t[P]){const o=t[T]+(n[P]-t[P]);ie(o,{animation:e})}else if(n[M]>t[M]){const o=t[T]+(n[M]-t[M]);ie(o,{animation:e})}})),pe=vr((()=>{L&&!1!==v&&Q(!X)}));g.useEffect((()=>{const e=fr((()=>{te.current&&re()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),pe()},o=br(te.current);let r;return o.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(ne.current.children).forEach((e=>{t.observe(e)}))),"undefined"!=typeof MutationObserver&&(r=new MutationObserver(n),r.observe(ne.current,{childList:!0})),()=>{var n,i;e.clear(),o.removeEventListener("resize",e),null==(n=r)||n.disconnect(),null==(i=t)||i.disconnect()}}),[re,pe]),g.useEffect((()=>{const e=Array.from(ne.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&L&&!1!==v){const n=e[0],o=e[t-1],r={root:te.current,threshold:.99},i=new IntersectionObserver((e=>{U(!e[0].isIntersecting)}),r);i.observe(n);const a=new IntersectionObserver((e=>{K(!e[0].isIntersecting)}),r);return a.observe(o),()=>{i.disconnect(),a.disconnect()}}}),[L,v,X,null==c?void 0:c.length]),g.useEffect((()=>{H(!0)}),[]),g.useEffect((()=>{re()})),g.useEffect((()=>{ue(zc!==Y)}),[ue,Y]),g.useImperativeHandle(l,(()=>({updateIndicator:re,updateScrollButtons:pe})),[re,pe]);const he=sn.jsx(jc,N({},S,{className:Io(D.indicator,S.className),ownerState:j,style:N({},Y,S.style)}));let fe=0;const me=g.Children.map(c,(e=>{if(!g.isValidElement(e))return null;const t=void 0===e.props.value?fe:e.props.value;ee.set(t,fe);const n=t===R;return fe+=1,g.cloneElement(e,N({fullWidth:"fullWidth"===A,indicator:n&&!G&&he,selected:n,selectionFollowsFocus:y,onChange:f,textColor:w,value:t},1!==fe||!1!==R||e.props.tabIndex?{}:{tabIndex:0}))})),be=(()=>{const e={};e.scrollbarSizeListener=L?sn.jsx(Dc,{onChange:de,className:Io(D.scrollableX,D.hideScrollbar)}):null;const t=L&&("auto"===v&&(V||q)||!0===v);return e.scrollButtonStart=t?sn.jsx(b,N({slots:{StartScrollButtonIcon:x.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:z},orientation:m,direction:r?"right":"left",onClick:se,disabled:!V},C,{className:Io(D.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?sn.jsx(b,N({slots:{EndScrollButtonIcon:x.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:F},orientation:m,direction:r?"left":"right",onClick:ce,disabled:!q},C,{className:Io(D.scrollButtons,C.className)})):null,e})();return sn.jsxs($c,N({className:Io(D.root,d),ownerState:j,ref:t,as:u},I,{children:[be.scrollButtonStart,be.scrollbarSizeListener,sn.jsxs(Nc,{className:D.scroller,ownerState:j,style:{overflow:Z.overflow,[_?"margin"+(r?"Left":"Right"):"marginBottom"]:k?void 0:-Z.scrollbarWidth},ref:te,children:[sn.jsx(Bc,{"aria-label":i,"aria-labelledby":a,"aria-orientation":"vertical"===m?"vertical":null,className:D.flexContainer,ownerState:j,onKeyDown:e=>{const t=ne.current,n=mr(t).activeElement;if("tab"!==n.getAttribute("role"))return;let o="horizontal"===m?"ArrowLeft":"ArrowUp",i="horizontal"===m?"ArrowRight":"ArrowDown";switch("horizontal"===m&&r&&(o="ArrowRight",i="ArrowLeft"),e.key){case o:e.preventDefault(),Oc(t,n,Mc);break;case i:e.preventDefault(),Oc(t,n,Pc);break;case"Home":e.preventDefault(),Oc(t,null,Pc);break;case"End":e.preventDefault(),Oc(t,null,Mc)}},ref:ne,role:"tablist",children:me}),G&&he]}),be.scrollButtonEnd]}))}));var Gc,Hc=Fc;function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yc.apply(null,arguments)}var Wc,Vc=function(e){return g.createElement("svg",Yc({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Gc||(Gc=g.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Uc(){return Uc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Uc.apply(null,arguments)}var qc=function(e){return g.createElement("svg",Uc({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Wc||(Wc=g.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Kc({fontSize:e="medium",children:t=null,className:n=""}={}){const o="small"===e?"16px":"20px",r="small"===e?"-2px 0":void 0;return v.createElement("i",{style:{fontSize:o,margin:r,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}const Xc={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Qc=12,Zc=14,Jc=16,ed=24,td=3,nd=300,od=400,rd=600,id=700,ad={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var ld=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{stroke:Xc.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})))),sd=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},v.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),v.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),cd=(e={})=>v.createElement(Kc,{...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),v.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),dd=(e={})=>v.createElement(Kc,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},v.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),ud=(e={})=>v.createElement(Kc,{fontSize:"medium",...e},v.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),v.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),pd=({className:e})=>v.createElement(Kc,{fontSize:"small",className:e},v.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},v.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},v.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},v.createElement("g",{transform:"translate(4.324187, 1.300372)"},v.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),v.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"}))))));const hd={MuiAccordion:{styleOverrides:{root:{backgroundColor:Xc.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Xc.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:v.createElement(Vc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${Xc.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,borderRadius:td,backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${Xc.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Xc.WHITE,color:Xc.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:td},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Xc.GREYSCALE_0_15,backgroundColor:Xc.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Xc.GREEN_PALE},"&:active":{backgroundColor:Xc.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Xc.BLUE_PALE},"&:active":{backgroundColor:Xc.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:td,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Xc.GREYSCALE_0_15,backgroundColor:Xc.GREYSCALE_100_60,"&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Xc.PURPLE,"&.Mui-focusVisible":{borderColor:Xc.PURPLE,boxShadow:`0 0 0 3px ${pr(Xc.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Xc.GREEN,"&.Mui-focusVisible":{borderColor:Xc.GREEN,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Xc.BLUE,"&.Mui-focusVisible":{borderColor:Xc.BLUE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Xc.ORANGE,"&.Mui-focusVisible":{borderColor:Xc.ORANGE,boxShadow:`0 0 0 3px ${pr(Xc.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Xc.RED,"&.Mui-focusVisible":{borderColor:Xc.RED,boxShadow:`0 0 0 3px ${pr(Xc.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Xc.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Xc.PURPLE_PALE},"&:active":{backgroundColor:Xc.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Xc.PURPLE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Xc.GREEN_PALE},"&:active":{backgroundColor:Xc.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Xc.BLUE_PALE},"&:active":{backgroundColor:Xc.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Xc.ORANGE_PALE},"&:active":{backgroundColor:Xc.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Xc.ORANGE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Xc.RED_PALE},"&:active":{backgroundColor:Xc.RED_DARK},"&.Mui-focusVisible":{borderColor:Xc.RED_PALE,boxShadow:`0 0 0 3px ${pr(Xc.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:Xc.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Xc.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:td,boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:v.createElement(qc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Qc,borderRadius:td,color:Xc.TEXT_PRIMARY,backgroundColor:Xc.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Xc.GREYSCALE_0_05,color:Xc.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Xc.GREEN,borderColor:Xc.GREEN},"&.MuiChip-outlinedInfo":{color:Xc.BLUE,borderColor:Xc.BLUE},"&.MuiChip-outlinedWarning":{color:Xc.ORANGE,borderColor:Xc.ORANGE},"&.MuiChip-outlinedError":{color:Xc.RED,borderColor:Xc.RED}},outlined:{border:`solid 1px ${Xc.GREYSCALE_0_15}`,backgroundColor:Xc.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:td,boxShadow:"none",backgroundColor:Xc.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Xc.GREEN,borderColor:Xc.GREEN},outlinedSecondary:{color:Xc.BLUE,borderColor:Xc.BLUE},label:{fontFamily:ad.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:v.createElement(qc,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:v.createElement(Vc,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:td},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:td,fontSize:Zc,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Xc.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Xc.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Xc.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Xc.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_05}}},popupIndicator:{borderRadius:td,border:`solid 1px ${Xc.GREYSCALE_0_15}`,color:Xc.GREYSCALE_0_60,marginRight:0,width:ed,height:ed},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Xc.GREYSCALE_0_15}`},clearIndicator:{borderRadius:td,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Xc.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Zc}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Qc,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Xc.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Xc.GREYSCALE_25,fontSize:Qc,fontFamily:ad.FONT_FAMILY,fontWeight:rd,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Xc.TEXT_PRIMARY},"&.Mui-error":{color:Xc.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Xc.TEXT_SECONDARY,content:"'(optional)'",fontWeight:od,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Xc.TEXT_SECONDARY,content:"'(required)'",fontWeight:od,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Zc,lineHeight:"16px",backgroundColor:Xc.WHITE,borderRadius:td,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderColor:Xc.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.RED}`,boxShadow:`0px 0px 0px 1px ${Xc.RED}, inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Xc.GREYSCALE_0_10}`,borderColor:Xc.GREYSCALE_0_10,backgroundColor:Xc.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Xc.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Xc.GREYSCALE_0_15,borderRadius:td,boxShadow:`inset 0 2px 0 0 ${Xc.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>v.createElement(Vc,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:Xc.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Xc.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&:active":{backgroundColor:Xc.GREYSCALE_0_10},"&:focus":{backgroundColor:Xc.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Xc.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Xc.GREYSCALE_0_30,"&:hover":{backgroundColor:Xc.GREYSCALE_0_0,borderColor:Xc.GREYSCALE_0_15},"& ~svg":{color:Xc.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Xc.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:td}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Xc.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Xc.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Zc,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Qc,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Qc,fontWeight:rd,color:Xc.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:rd}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Xc.GREYSCALE_0_15}, 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:v.createElement(dd,null),checkedIcon:v.createElement(ud,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Xc.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Xc.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Xc.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:v.createElement(ld,null),checkedIcon:v.createElement(sd,null),indeterminateIcon:v.createElement(cd,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:td,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Xc.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Xc.GREYSCALE_0_55,color:Xc.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:Xc.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Xc.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Xc.GREYSCALE_0_55,"&:hover":{color:Xc.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:Xc.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Xc.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Zc,color:Xc.TEXT_PRIMARY,lineHeight:"16px",fontWeight:rd},secondary:{fontSize:Qc,color:Xc.GREYSCALE_45,fontWeight:od,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Zc,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&:active":{backgroundColor:Xc.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Zc,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Xc.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Qc,borderBottom:`solid 1px ${Xc.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Zc,color:Xc.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Xc.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Xc.RED}}},"&.Mui-focusVisible":{backgroundColor:Xc.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:Xc.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:Xc.GREEN,height:"24px","&.Mui-disabled":{color:Xc.GREYSCALE_0_15}},rail:{backgroundColor:Xc.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderRadius:td,boxShadow:`inset 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Xc.GREYSCALE_0_05}`,borderRadius:td},thumb:{height:"16px",width:"16px",borderRadius:td,backgroundColor:Xc.WHITE,boxShadow:`0px 1px 2px 0px ${Xc.GREYSCALE_0_15}, 0px 0px 0px 1px ${Xc.GREYSCALE_0_05}`,"&:hover":{borderRadius:td,boxShadow:`0 2px 4px 0 ${Xc.GREYSCALE_0_30}, 0 0 0 1px ${Xc.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Xc.GREYSCALE_0_15}, 0 0 0 1px ${Xc.GREYSCALE_0_06}, 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Xc.GREYSCALE_0_15}, 0 0 0 1px ${Xc.GREYSCALE_0_06}, 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Xc.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Xc.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Xc.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Xc.GREYSCALE_0_15},markLabel:{color:Xc.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Xc.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Xc.WHITE,color:Xc.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:Xc.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Xc.GREEN_PALE,boxShadow:`0 0 0 3px ${pr(Xc.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Xc.BLUE_PALE,boxShadow:`0 0 0 3px ${pr(Xc.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Xc.GREYSCALE_0_15,borderRadius:td},thumb:{height:"16px",width:"16px",borderRadius:td,backgroundColor:Xc.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Zc,fontWeight:rd,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Xc.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Xc.MISC_FOCUS_BORDER}`,backgroundColor:Xc.GREYSCALE_0_03,borderRadius:td},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Xc.GREYSCALE_25,"&.Mui-selected":{color:Xc.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Zc,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:td,"&:hover":{backgroundColor:`${Xc.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Xc.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Xc.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:td,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Xc.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Xc.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Xc.GREYSCALE_85}`,borderRight:`1px solid ${Xc.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:rd,backgroundColor:Xc.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:Xc.GREYSCALE_98,borderBottom:`1px solid ${Xc.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Xc.GREYSCALE_85}`,borderTop:`1px solid ${Xc.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Xc.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Xc.GREYSCALE_0_05,"&:hover":{backgroundColor:Xc.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Xc.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>v.createElement(pd,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${Xc.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Zc,borderRadius:td,padding:"7px 16px",border:`1px solid ${Xc.GREYSCALE_0_15}`,backgroundColor:Xc.GREYSCALE_100_60,color:Xc.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Xc.GREYSCALE_0_10,border:`1px solid ${Xc.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Xc.GREYSCALE_0_03,border:`1px solid ${Xc.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Xc.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Xc.MISC_FOCUS_BORDER}`,border:`1px solid ${Xc.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Xc.GREYSCALE_25,backgroundColor:Xc.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Xc.GREYSCALE_0_10,border:`1px solid ${Xc.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Qc,height:24,width:24,padding:7},sizeLarge:{fontSize:Jc,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Zc,borderRadius:td}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Xc.GREYSCALE_20},tooltip:{backgroundColor:Xc.GREYSCALE_20,fontSize:Qc,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var fd=e=>hd;const md={mode:"light",primary:{ultraLight:Xc.GREEN_ULTRA_LIGHT,light:Xc.GREEN_PALE,main:Xc.GREEN,dark:Xc.GREEN_DARK,extraDark:Xc.GREEN_EXTRA_DARK,contrastText:Xc.WHITE},secondary:{ultraLight:Xc.BLUE_ULTRA_LIGHT,light:Xc.BLUE_PALE,main:Xc.BLUE,dark:Xc.BLUE_DARK,extraDark:Xc.BLUE_EXTRA_DARK,contrastText:Xc.WHITE},error:{ultraLight:Xc.RED_ULTRA_LIGHT,light:Xc.RED_PALE,main:Xc.RED,dark:Xc.RED_DARK,extraDark:Xc.RED_EXTRA_DARK,contrastText:Xc.WHITE},warning:{ultraLight:Xc.ORANGE_ULTRA_LIGHT,light:Xc.ORANGE_PALE,main:Xc.ORANGE,dark:Xc.ORANGE_DARK,extraDark:Xc.ORANGE_EXTRA_DARK,contrastText:Xc.WHITE},success:{ultraLight:Xc.GREEN_ULTRA_LIGHT,light:Xc.GREEN_PALE,main:Xc.GREEN,dark:Xc.GREEN_DARK,extraDark:Xc.GREEN_EXTRA_DARK,contrastText:Xc.WHITE},info:{ultraLight:Xc.BLUE_ULTRA_LIGHT,light:Xc.BLUE_PALE,main:Xc.BLUE,dark:Xc.BLUE_DARK,extraDark:Xc.BLUE_EXTRA_DARK,contrastText:Xc.WHITE},text:{primary:Xc.TEXT_PRIMARY,secondary:Xc.TEXT_SECONDARY,disabled:Xc.GREYSCALE_0_30},action:{hover:Xc.GREYSCALE_0_03,hoverOpacity:.03,selected:Xc.GREYSCALE_0_05,selectedOpacity:.05,focus:Xc.MISC_FOCUS_BORDER},amethyst:{ultraLight:Xc.WHITE,main:Xc.PURPLE,light:Xc.PURPLE_PALE,dark:Xc.PURPLE_DARK,extraDark:Xc.GREYSCALE_0_0,contrastText:Xc.WHITE},background:{paper:Xc.WHITE,default:Xc.GREYSCALE_95},divider:Xc.GREYSCALE_0_15},bd=e=>md;function gd(e){return vi({components:fd(),palette:bd(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Zc,fontWeightLight:nd,fontWeightRegular:od,fontWeightMedium:rd,fontWeightBold:id,htmlFontSize:Zc,fontFamily:ad.FONT_FAMILY,button:{fontWeight:rd,fontSize:Zc,textTransform:"none"},body1:{fontSize:Jc,lineHeight:"24px"},body2:{fontSize:Zc,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ed,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Jc,fontWeight:rd,lineHeight:"16px"},h6:{fontSize:Zc,fontWeight:rd,lineHeight:"16px"},caption:{color:Xc.TEXT_SECONDARY},subtitle1:{fontSize:Zc,color:Xc.TEXT_SECONDARY},subtitle2:{fontSize:Qc,color:Xc.TEXT_SECONDARY}},shape:{borderRadius:td},direction:e})}class vd{constructor({translator:e}){M(this,"translator",void 0),M(this,"muiTheme",void 0),M(this,"containers",{}),M(this,"sync",(({element:e,sharedContainerUtilities:t,translator:n,containerId:o,dataHandler:r,renderHelper:i})=>{this.translator=n,this.containers[o]={element:e,sharedContainerUtilities:t,dataHandler:r,renderHelper:i}})),M(this,"setMuiTheme",(e=>{this.muiTheme=gd(e)})),M(this,"destroy",(e=>{delete this.containers[e]})),this.translator=e}}const yd=["container","sn-layout-container","sn-tabbed-container","listbox","qlik-tabbed-container","qlik-show-hide-container","qlik-trellis-container","qlik-on-demand-reporting","sn-analysis-autochart"];class xd{constructor(e,t){M(this,"embed",void 0),M(this,"translator",void 0),M(this,"charts",{}),M(this,"getCharts",(()=>{var e;return this.charts=(null===(e=this.embed)||void 0===e?void 0:e.getRegisteredTypes()).reduce(((e,t)=>{var n,o;if(!(yd.includes(t.id)||!1===(null===(n=t.libraryInfo)||void 0===n?void 0:n.isLibraryItem)||null!==(o=t.libraryInfo)&&void 0!==o&&o.deprecated)){var r;const n=t;null!==(r=n.libraryInfo)&&void 0!==r&&r.translationKey&&(n.libraryInfo.translation=this.translator.get(n.libraryInfo.translationKey)),e[t.id||t.type]=n}return e}),{}),this.charts})),M(this,"getChart",(e=>(this.charts[e]||this.getCharts(),this.charts[e]))),this.embed=e,this.translator=t}}var Ed,Sd=_;function Cd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ed=Sd.createRoot,Sd.hydrateRoot;const wd=y(((e,t)=>v.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){Cd(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),v.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})))),Rd="rgb(89, 89, 89)",Ad=Qt(Sl)({display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"}),kd=Qt(Sl)({display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}),Id=Qt(ds,{shouldForwardProp:e=>"width"!==e})((({width:e})=>({"&.MuiList-root":{paddingTop:0,paddingBottom:0,width:e||250,maxHeight:250,overflow:"auto"}}))),Ld=Qt(Oa)({color:Rd,fontSize:"12px",fontFamily:"inherit",lineHeight:"24px",margin:"0px"}),_d=Qt(Ms)({"&.MuiListItemIcon-root":{minWidth:32,color:Rd,marginRight:"0px"}}),Td=Qt(Vl)({"&.MuiDivider-root":{borderBottom:"3px solid #595959"}}),Pd=Qt(Ml)({"&.MuiButton-contained":{backgroundColor:Rd,color:"rgb(255, 255, 255)"},"&.MuiButton-outlined":{backgroundColor:"rgb(255, 255, 255)",borderColor:Rd,color:Rd,border:"1px solid rgb(179, 179, 179)","&:hover":{backgroundColor:"rgb(255, 255, 255)",border:`1px solid ${Rd}`}}}),Md=Qt(Pi)({width:"1em",height:"1em",paddingBottom:"8px"}),Od=Qt(Pi)({width:"16px",height:"16px"}),$d=({name:e,items:t,onSelect:n})=>v.createElement(v.Fragment,null,v.createElement(Is,{key:e,dense:!0},v.createElement(Ld,{noWrap:!0,fontWeight:"bold"},e)),v.createElement(Td,null),t.map((e=>{var t;return v.createElement(Is,{key:null!==(t=e.qExtendsId)&&void 0!==t?t:e.name,divider:!0,disablePadding:!0,disableGutters:!0},v.createElement(gs,{sx:{minHeight:"32px",height:"auto"},onClick:()=>n(e),disableRipple:!0,dense:!0},e.iconPath&&v.createElement(_d,null,e.IconDefinition?v.createElement(e.IconDefinition,null):v.createElement(Od,{viewBox:"0 0 16 16"},v.createElement("path",{d:e.iconPath}))),v.createElement(Ld,{noWrap:!0,title:e.translation||e.name},e.translation||e.name)))}))),Nd=({categories:e,anchorEl:t,onClose:n,onSelect:o,width:r})=>{const[i,a]=w(""),l=!!t;return R((()=>{l&&a("")}),[l]),v.createElement(Qs,{open:l,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},sx:{marginTop:"5px"}},v.createElement(cl,{fullWidth:!0,onChange:e=>{a(e.target.value)},startAdornment:v.createElement(is,{position:"start"},v.createElement(wd,null))}),v.createElement(Td,null),v.createElement(Id,{width:r},e.map((e=>{const t=e.items.filter((e=>{const t=e.translation||e.name;return(null==t?void 0:t.toLocaleLowerCase().indexOf(i.toLocaleLowerCase()))>-1}));return t.length>0&&v.createElement($d,{key:e.name,name:e.name,items:t,onSelect:o})}))))},Bd=({anchorEl:e,onClose:t,dataHandler:n,translator:o,sharedContainerUtilities:r,width:i})=>{const[a,l]=w([]),[s,c]=w({});R((()=>{if(e&&n){(async()=>{const e=await n.getMasterVizList();l(e),c(n.getCharts())})().catch((()=>{}))}}),[e,n]);const d=[],u=[],p=[],h=[],f=[],m=Object.values(s);if(0===m.length&&0===a.length)return null;m.forEach((e=>{var t,n,o;!e.libraryInfo||!e.libraryInfo.isThirdParty&&e.libraryInfo.visible?d.push(e):e.libraryInfo.visible&&("qlik-dashboard-bundle"===(null===(t=e.libraryInfo.bundle)||void 0===t?void 0:t.id)?h.push(e):"qlik-visualization-bundle"===(null===(n=e.libraryInfo.bundle)||void 0===n?void 0:n.id)?p.push(e):"qlik-smart-bundle"===(null===(o=e.libraryInfo.bundle)||void 0===o?void 0:o.id)?f.push(e):!e.libraryInfo.bundle&&e.libraryInfo.isThirdParty&&u.push(e))}));const b=e=>e.map((e=>{var t,n,o,r;return{iconPath:null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath,IconDefinition:null===(n=e.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:e.id,translation:(null===(o=e.libraryInfo)||void 0===o?void 0:o.translation)||(null===(r=e.libraryInfo)||void 0===r?void 0:r.name)||e.id||"",type:e.id}})).sort(((e,t)=>(e.translation||e.name).localeCompare(t.translation||t.name))),g=[{name:o.get("LayoutContainer.Object.MasterItems"),items:a.map((e=>{var t,n;return{qExtendsId:e.qExtendsId,iconPath:s&&(null===(t=s[e.visualization])||void 0===t||null===(t=t.libraryInfo)||void 0===t?void 0:t.iconPath),IconDefinition:null===(n=s[e.visualization])||void 0===n||null===(n=n.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:e.name,type:e.visualization}})).sort(((e,t)=>e.name.localeCompare(t.name)))},{name:o.get("LayoutContainer.Object.Charts"),items:d.map((e=>{var t,n,o,r,i;return{iconPath:(null===(t=e.libraryInfo)||void 0===t?void 0:t.iconPath)||"",IconDefinition:null===(n=e.libraryInfo)||void 0===n?void 0:n.IconDefinition,name:(null===(o=e.libraryInfo)||void 0===o?void 0:o.name)||e.id,type:(null===(r=e.libraryInfo)||void 0===r?void 0:r.template)||e.id,translation:(null===(i=e.libraryInfo)||void 0===i?void 0:i.translation)||e.id||""}})).sort(((e,t)=>e.translation.localeCompare(t.translation)))},{name:o.get("LayoutContainer.Object.CustomObjects"),items:b(u)},{name:o.get("LayoutContainer.Object.VisualizationBundle"),items:b(p)},{name:o.get("LayoutContainer.Object.DashboardBundle"),items:b(h)},{name:o.get("LayoutContainer.Object.SmartBundle"),items:b(f)}];return v.createElement(Nd,{categories:g,anchorEl:e,onSelect:e=>{if(!n)return;const{qExtendsId:o}=e;(o?n.addMasterObjectAsChild({initProps:{qExtendsId:o,qInfo:{qType:"undefined"}}}):n.addVizAsChild({type:e.type,objectInitProps:{label:e.translation}})).then((e=>{null!=e&&e.id&&(null==r||r.setSelected([e.id]))})).catch((e=>{console.warn(e)})).finally((()=>{t()}))},onClose:t,width:i})},jd=e=>{var t,n;const o=zd(e);return null!==(t=null===(n=e.objects)||void 0===n?void 0:n.map((e=>{const{childRefId:t}=e;if(!t)return e;const n=o[t];return n?{...e,id:n}:e})))&&void 0!==t?t:[]},Dd=(e,t)=>{var n;return null==e||null===(n=e.qChildList)||void 0===n||null===(n=n.qItems)||void 0===n?void 0:n.find((e=>{var n;return(null==e||null===(n=e.qData)||void 0===n?void 0:n.childRefId)===t}))},zd=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var n,o;return e[null==t||null===(n=t.qData)||void 0===n?void 0:n.childRefId]=null==t||null===(o=t.qInfo)||void 0===o?void 0:o.qId,e}),{})};var Fd=Dd,Gd=e=>{const t={...e};return t.objects=jd(t),t},Hd=e=>{var t;return null==e||null===(t=e.qChildList)||void 0===t||null===(t=t.qItems)||void 0===t?void 0:t.reduce(((e,t)=>{var n,o;return e[null==t||null===(n=t.qInfo)||void 0===n?void 0:n.qId]=null===(o=t.qData)||void 0===o?void 0:o.childRefId,e}),{})},Yd=e=>e.objects.reduce(((e,t)=>(e[t.childRefId]=t,e)),{}),Wd=(e,t)=>{var n;if(!e)return t;const o=Dd(e,t);return null==o||null===(n=o.qInfo)||void 0===n?void 0:n.qId};class Vd{constructor({app:e,data:t}){M(this,"layout",void 0),M(this,"app",void 0),M(this,"activeId",""),M(this,"data",void 0),M(this,"properties",void 0),M(this,"setSelectedChild",(e=>{var t;null===(t=this.activeContainer)||void 0===t||null===(t=t.sharedContainerUtilities)||void 0===t||t.setSelected(e)})),M(this,"addChild",(({initProps:e,objectInitProps:t,children:n})=>{if(!this.activeContainer)return;const{dataHandler:o}=this.activeContainer;if(null!=e&&e.qExtendsId){const{qExtendsId:r,qInfo:i}=e;return null==o?void 0:o.addMasterObjectAsChild({initProps:{qExtendsId:r,qInfo:i},objectInitProps:t,children:n})}return null==o?void 0:o.addVizAsChild({type:null==e?void 0:e.visualization,initProps:e,objectInitProps:t,children:n})})),M(this,"deleteChild",(async e=>{if(!this.activeContainer)return;const{dataHandler:t}=this.activeContainer;await(null==t?void 0:t.deleteChildren([e]))})),M(this,"duplicateChild",(async e=>{var t;const{childRefId:n,...o}=e,r=this.getEngineId(n);if(!r)return;const i=await(null===(t=this.app)||void 0===t?void 0:t.getObject(r));if(i&&this.activeContainer){const{sharedContainerUtilities:e}=this.activeContainer,t=await i.getFullPropertyTree(),n=t.qProperty,r=t.qChildren,a=await this.addChild({initProps:n,children:r,objectInitProps:o});a&&(null==e||e.setSelected([a.id]))}})),M(this,"openAddChildPopover",(e=>{if(this.activeContainer&&this.activeContainer.dataHandler&&this.data.muiTheme){const t=((e,t)=>{const n=e.getElementsByClassName(t);let o;return 0===n.length?(o=document.createElement("div"),o.className=t,e.appendChild(o)):o=n[0],Ed(o)})(this.activeContainer.element,"add-child-popover"),n=()=>{t.unmount()};null==t||t.render(v.createElement(Ai,{theme:this.data.muiTheme},v.createElement(Bd,{translator:this.data.translator,anchorEl:e,dataHandler:this.activeContainer.dataHandler,onClose:n,width:220,sharedContainerUtilities:this.activeContainer.sharedContainerUtilities})))}})),M(this,"setModel",(e=>{this.activeId=e.id})),M(this,"setLayout",(e=>{this.layout=e})),M(this,"getLayout",(()=>this.layout)),M(this,"getEngineId",(e=>Wd(this.layout,e))),M(this,"setProperties",(e=>{this.properties=e})),M(this,"canAddDimension",(()=>!1)),M(this,"canAddMeasure",(()=>!1)),M(this,"canColorBy",(()=>!1)),M(this,"getDimensions",(()=>[])),M(this,"getMeasures",(()=>[])),M(this,"minDimensions",(()=>0)),M(this,"minMeasures",(()=>0)),M(this,"maxDimensions",(()=>0)),M(this,"maxMeasures",(()=>0)),this.app=e,this.data=t}get activeContainer(){return this.data.containers[this.activeId]}getObject(e){const t=this.getEngineId(e);var n;if(t)return null===(n=this.activeContainer)||void 0===n?void 0:n.renderHelper.objectMap[t]}}function Ud(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||Kd(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qd(e){return function(e){if(Array.isArray(e))return Xd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kd(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kd(e,t){if(e){if("string"==typeof e)return Xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xd(e,t):void 0}}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Qd=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Zd=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Jd=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function eu(e){var t=e.theme,n=e.translator,o=e.defaultValue,r=e.flags,i=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?i.push.apply(i,qd(new Set([o].concat(qd(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):i.push(o),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(qd(i.map((function(e){return Jd(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],qd(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Zd:Qd}(r).map((function(e){return Jd(e)}))))}function tu(e){var t=e.theme,n=e.translator,o=e.id,r=e.path,i=e.flags,a=function(){return t.getStyle(o,r,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return eu({theme:t,translator:n,defaultValue:a(),flags:i})}}}var nu=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],ou=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function ru(e){var t=e.theme,n=e.translator,o=e.id,r=e.path,i=function(){return t.getStyle(o,r,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,o=[],r=e.theme.getStyle("","","fontSizes");return Array.isArray(r)&&r.length?o.push.apply(o,qd(new Set([n].concat(qd(r))))):o.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(qd(o.map((function(e){return ou(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],qd(nu.map((function(e){return ou(e)}))))}({theme:t,translator:n,defaultValue:i()})}}}function iu(e){var t=e.theme,n=e.translator,o=e.id,r=e.path;return{fontFamily:tu({theme:t,translator:n,id:o,path:r,flags:e.flags}),fontSize:ru({theme:t,translator:n,id:o,path:r})}}var au=Object.prototype.hasOwnProperty,lu=Object.prototype.toString,su=Object.defineProperty,cu=Object.getOwnPropertyDescriptor,du=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===lu.call(e)},uu=function(e){if(!e||"[object Object]"!==lu.call(e))return!1;var t,n=au.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&au.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||au.call(e,t)},pu=function(e,t){su&&"__proto__"===t.name?su(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},hu=function(e,t){if("__proto__"===t){if(!au.call(e,t))return;if(cu)return cu(e,t).value}return e[t]};function fu(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mu(e,t){var n=Object.create(e.prototype);for(var o in t)n[o]=t[o];return n}function bu(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,o,r,i,a,l=arguments[0],s=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)o=hu(l,n),l!==(r=hu(t,n))&&(d&&r&&(uu(r)||(i=du(r)))?(i?(i=!1,a=o&&du(o)?o:[]):a=o&&uu(o)?o:{},pu(l,{name:n,newValue:e(d,a,r)})):void 0!==r&&pu(l,{name:n,newValue:r}));return l}));var gu=1/.7,vu="\\s*([+-]?\\d+)\\s*",yu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Eu=/^#([0-9a-f]{3,8})$/,Su=new RegExp(`^rgb\\(${vu},${vu},${vu}\\)$`),Cu=new RegExp(`^rgb\\(${xu},${xu},${xu}\\)$`),wu=new RegExp(`^rgba\\(${vu},${vu},${vu},${yu}\\)$`),Ru=new RegExp(`^rgba\\(${xu},${xu},${xu},${yu}\\)$`),Au=new RegExp(`^hsl\\(${yu},${xu},${xu}\\)$`),ku=new RegExp(`^hsla\\(${yu},${xu},${xu},${yu}\\)$`),Iu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Lu(){return this.rgb().formatHex()}function _u(){return this.rgb().formatRgb()}function Tu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Eu.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Pu(t):3===n?new Nu(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Mu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Mu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Su.exec(e))?new Nu(t[1],t[2],t[3],1):(t=Cu.exec(e))?new Nu(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wu.exec(e))?Mu(t[1],t[2],t[3],t[4]):(t=Ru.exec(e))?Mu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Au.exec(e))?Gu(t[1],t[2]/100,t[3]/100,1):(t=ku.exec(e))?Gu(t[1],t[2]/100,t[3]/100,t[4]):Iu.hasOwnProperty(e)?Pu(Iu[e]):"transparent"===e?new Nu(NaN,NaN,NaN,0):null}function Pu(e){return new Nu(e>>16&255,e>>8&255,255&e,1)}function Mu(e,t,n,o){return o<=0&&(e=t=n=NaN),new Nu(e,t,n,o)}function Ou(e){return e instanceof bu||(e=Tu(e)),e?new Nu((e=e.rgb()).r,e.g,e.b,e.opacity):new Nu}function $u(e,t,n,o){return 1===arguments.length?Ou(e):new Nu(e,t,n,null==o?1:o)}function Nu(e,t,n,o){this.r=+e,this.g=+t,this.b=+n,this.opacity=+o}function Bu(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}`}function ju(){const e=Du(this.opacity);return`${1===e?"rgb(":"rgba("}${zu(this.r)}, ${zu(this.g)}, ${zu(this.b)}${1===e?")":`, ${e})`}`}function Du(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fu(e){return((e=zu(e))<16?"0":"")+e.toString(16)}function Gu(e,t,n,o){return o<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Yu(e,t,n,o)}function Hu(e){if(e instanceof Yu)return new Yu(e.h,e.s,e.l,e.opacity);if(e instanceof bu||(e=Tu(e)),!e)return new Yu;if(e instanceof Yu)return e;var t=(e=e.rgb()).r/255,n=e.g/255,o=e.b/255,r=Math.min(t,n,o),i=Math.max(t,n,o),a=NaN,l=i-r,s=(i+r)/2;return l?(a=t===i?(n-o)/l+6*(n<o):n===i?(o-t)/l+2:(t-n)/l+4,l/=s<.5?i+r:2-i-r,a*=60):l=s>0&&s<1?0:a,new Yu(a,l,s,e.opacity)}function Yu(e,t,n,o){this.h=+e,this.s=+t,this.l=+n,this.opacity=+o}function Wu(e){return(e=(e||0)%360)<0?e+360:e}function Vu(e){return Math.max(0,Math.min(1,e||0))}function Uu(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fu(bu,Tu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lu,formatHex:Lu,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Hu(this).formatHsl()},formatRgb:_u,toString:_u}),fu(Nu,$u,mu(bu,{brighter(e){return e=null==e?gu:Math.pow(gu,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Nu(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nu(zu(this.r),zu(this.g),zu(this.b),Du(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bu,formatHex:Bu,formatHex8:function(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}${Fu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ju,toString:ju})),fu(Yu,(function(e,t,n,o){return 1===arguments.length?Hu(e):new Yu(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return e=null==e?gu:Math.pow(gu,e),new Yu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*t,r=2*n-o;return new Nu(Uu(e>=240?e-240:e+120,r,o),Uu(e,r,o),Uu(e<120?e+240:e-120,r,o),this.opacity)},clamp(){return new Yu(Wu(this.h),Vu(this.s),Vu(this.l),Du(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Du(this.opacity);return`${1===e?"hsl(":"hsla("}${Wu(this.h)}, ${100*Vu(this.s)}%, ${100*Vu(this.l)}%${1===e?")":`, ${e})`}`}}));const qu=Math.PI/180,Ku=180/Math.PI,Xu=4/29,Qu=6/29,Zu=3*Qu*Qu;function Ju(e){if(e instanceof ep)return new ep(e.l,e.a,e.b,e.opacity);if(e instanceof ip)return ap(e);e instanceof Nu||(e=Ou(e));var t,n,o=rp(e.r),r=rp(e.g),i=rp(e.b),a=tp((.2225045*o+.7168786*r+.0606169*i)/1);return o===r&&r===i?t=n=a:(t=tp((.4360747*o+.3850649*r+.1430804*i)/.96422),n=tp((.0139322*o+.0971045*r+.7141733*i)/.82521)),new ep(116*a-16,500*(t-a),200*(a-n),e.opacity)}function ep(e,t,n,o){this.l=+e,this.a=+t,this.b=+n,this.opacity=+o}function tp(e){return e>.008856451679035631?Math.pow(e,1/3):e/Zu+Xu}function np(e){return e>Qu?e*e*e:Zu*(e-Xu)}function op(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rp(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ip(e,t,n,o){this.h=+e,this.c=+t,this.l=+n,this.opacity=+o}function ap(e){if(isNaN(e.h))return new ep(e.l,0,0,e.opacity);var t=e.h*qu;return new ep(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fu(ep,(function(e,t,n,o){return 1===arguments.length?Ju(e):new ep(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return new ep(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ep(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Nu(op(3.1338561*(t=.96422*np(t))-1.6168667*(e=1*np(e))-.4906146*(n=.82521*np(n))),op(-.9787684*t+1.9161415*e+.033454*n),op(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fu(ip,(function(e,t,n,o){return 1===arguments.length?function(e){if(e instanceof ip)return new ip(e.h,e.c,e.l,e.opacity);if(e instanceof ep||(e=Ju(e)),0===e.a&&0===e.b)return new ip(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ku;return new ip(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ip(e,t,n,null==o?1:o)}),mu(bu,{brighter(e){return new ip(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ip(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ap(this).rgb()}}));var lp=e=>()=>e;function sp(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lp(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?sp:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(o){return Math.pow(e+o*t,n)}}(t,n,e):lp(isNaN(t)?n:t)}}(t);function o(e,t){var o=n((e=$u(e)).r,(t=$u(t)).r),r=n(e.g,t.g),i=n(e.b,t.b),a=sp(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=r(t),e.b=i(t),e.opacity=a(t),e+""}}return o.gamma=e,o}(1);var cp="center",dp="bottom";function up(e,t,n){if(void 0===e||void 0===t)return n;for(var o=t.split("."),r=e,i=0;i<o.length;++i){var a=o[i];if(void 0===r[a])return n;r=r[a]}return r}[{key:"NoDataExist",alignment:cp,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:cp,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:cp,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:cp},{key:"DataRangeIncludingZero",alignment:dp},{key:"LimitedData",alignment:dp},{key:"NegativeOrZeroValues",alignment:dp}].reduce((function(e,t){return e[t.key]=t,e}),{});var pp,hp=["__proto__","constructor"];function fp(e,t,n){if(void 0!==e&&void 0!==t){var o=t.split("."),r=o[o.length-1];if(!hp.some((function(e){return o.includes(e)}))){for(var i=e,a=0;a<o.length-1;++a){var l=o[a];void 0===i[l]&&(i[l]=Number.isNaN(+o[a+1])?{}:[]),i=i[l]}void 0!==n?i[r]=n:delete i[r]}}}function mp(e){var t=0,n=e.children,o=n&&n.length;if(o)for(;--o>=0;)t+=n[o].value;else t=1;e.value=t}function bp(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=vp)):void 0===t&&(t=gp);for(var n,o,r,i,a,l=new Ep(e),s=[l];n=s.pop();)if((r=t(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,i=a-1;i>=0;--i)s.push(o=r[i]=new Ep(r[i])),o.parent=n,o.depth=n.depth+1;return l.eachBefore(xp)}function gp(e){return e.children}function vp(e){return Array.isArray(e)?e[1]:null}function yp(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function xp(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ep(e){this.data=e,this.depth=this.height=0,this.parent=null}Ep.prototype=bp.prototype={constructor:Ep,count:function(){return this.eachAfter(mp)},each:function(e,t){let n=-1;for(const o of this)e.call(t,o,++n,this);return this},eachAfter:function(e,t){for(var n,o,r,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(o=0,r=n.length;o<r;++o)a.push(n[o]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,o,r=this,i=[r],a=-1;r=i.pop();)if(e.call(t,r,++a,this),n=r.children)for(o=n.length-1;o>=0;--o)i.push(n[o]);return this},find:function(e,t){let n=-1;for(const o of this)if(e.call(t,o,++n,this))return o},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,o=t.children,r=o&&o.length;--r>=0;)n+=o[r].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),o=t.ancestors(),r=null;for(e=n.pop(),t=o.pop();e===t;)r=e,e=n.pop(),t=o.pop();return r}(t,e),o=[t];t!==n;)t=t.parent,o.push(t);for(var r=o.length;e!==n;)o.splice(r,0,e),e=e.parent;return o},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return bp(this).eachBefore(yp)},[Symbol.iterator]:function*(){var e,t,n,o,r=this,i=[r];do{for(e=i.reverse(),i=[];r=e.pop();)if(yield r,t=r.children)for(n=0,o=t.length;n<o;++n)i.push(t[n])}while(i.length)}},pp=function(e){
97
97
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
98
98
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,o,r,i,a,l,s,c,d,u,p=e.length,h=e.search(/[0-9\-\+#]/),f=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),b=m.search(/[0-9\-\+#]/),g=p-b,v=e.substring(g,g+1),y=g+("."===v||","===v?1:0),x=b>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(h,y)).charAt(0)?-t:+t)<0?t=-t:0,r=(o=e.match(/[^\d\-\+#]/g))&&o[o.length-1]||".",i=o&&o[1]&&o[0]||",",e=e.split(r),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),d=e[0].split(i),e[0]=d.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=d[1]&&d[d.length-1].length){for(m="",g=(u=t[0]).length%s,p=u.length,y=0;y<p;y++)m+=u.charAt(y),!((y-g+1)%s)&&y<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?r+t[1]:"","0"!==(o=t.join(""))&&""!==o||(n=!1),f+(n?"-":"")+o+x}},pp({exports:{}});var Sp="'Source Sans Pro', 'Arial', 'sans-serif'",Cp="#333333",wp="#595959",Rp="#737373",Ap="#cccccc",kp="#e6e6e6";function Ip(e){var t={};return[].concat(qd(e),qd([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",wp],["object","axis.label.name","fontFamily",Sp],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",Ap],["object","axis.line.minor","color",kp],["object","axis.title","color"],["object","axis.title","fontFamily",Sp],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",kp],["object","grid.line.major","color",Ap],["object","grid.line.minor","color",kp],["object","label.value","color",wp],["object","label.value","fontFamily",Sp],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",wp],[!1,"label.value","lightColor",kp],["object","outOfRange","color","#999"],["object","legend.title","color",Cp],["object","legend.title","fontFamily",Sp],["object","legend.title","fontSize","15px"],["object","legend.label","color",wp],["object","legend.label","fontFamily",Sp],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",Cp],["object","referenceLine.label.name","fontFamily",Sp],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",kp],["object","referenceLine.outOfBounds","fontFamily",Sp],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",Rp,function(e){return"transparent"===e?Rp:e}]])).reduce((function(e,n){var o="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[o]||(t[o]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var Lp=function(e){return e};function _p(e){var t=e.theme,n=e.id,o=e.transform,r=e.extend,i=e.matrix,a={},l=o.reduce((function(e,t){var n=Ud(t,2),o=n[0],r=n[1];return e[o]=r,e}),{});return i.forEach((function(e){var o=Ud(e,5),r=o[0],i=o[1],s=o[2],c=o[3],d=o[4],u=void 0===d?function(e){return e}:d,p=function(e){var t=e.theme,n=e.base,o=e.path,r=e.attribute,i=e.defaultValue,a=void 0===i?void 0:i;if(!t||!1===n)return a;var l=t.getStyle(n,o,r);return void 0===l?a:l}({theme:t,base:"object"===r&&n?"".concat("object",".").concat(n):r,path:i,attribute:s,defaultValue:c}),h=(l["".concat(i,".").concat(s)]||Lp)(u(p));fp(a,[i,s].filter(Boolean).join("."),h)})),r.forEach((function(e){var t=Ud(e,2),n=t[0],o=t[1];fp(a,n,o)})),a}const Tp={qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",containerChildId:"/containerChildId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}};function Pp(e){if(!e.objects)return{};const t=Yd(e);return{container_id:e.qInfo.qId,objects:e.qChildList.qItems.map((n=>{var o;return{chart_type:n.qData.visualization,chart_id:n.qInfo.qId,chart_isMaster:!!n.qData.qExtendsId,tab_isVisible:0!==(null===(o=t[n.qData.childRefId])||void 0===o?void 0:o.condition),tab_isActive:n.qData.childRefId===e.cachedTabId}}))}}const Mp=({ref:e,theme:t,change:n})=>({component:"inline-wrapper",items:{bgColorDropdown:{ref:`${e}.useColorExpression`,width:9.5,component:"dropdown",change(t){(up(t,`${e}.color`)||up(t,`${e}.colorExpression`))&&(fp(t,`${e}.color`,void 0),fp(t,`${e}.colorExpression`,void 0)),null==n||n(t)},options:[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],defaultValue:!1,placeholder:"properties.colorMode.primary"},bgColorPicker:{component:"color-picker",ref:`${e}.color`,width:1,show:t=>!up(t,`${e}.useColorExpression`),disableNone:!1,defaultValue:()=>{var n;return{color:null!==(n=null==t?void 0:t.getStyle("object.tabbedContainer",e,"color"))&&void 0!==n?n:"none"}},showAlpha:!0,change:e=>{null==n||n(e)}},bgColorExpression:{component:"input-field-expression",ref:`${e}.colorExpression`,show:t=>up(t,`${e}.useColorExpression`)}}}),Op=({theme:e})=>({bgColorAllWrapper:Mp({ref:"background.unselected"}),selectedTab:{translation:"properties.chartType.selected",component:"text"},bgColorSelectedWrapper:Mp({ref:"background.selected"}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Mp({ref:"background.hover",theme:e,change:e=>{fp(e,"indicator.hover.color",up(e,"background.hover.color")),fp(e,"indicator.hover.useColorExpression",up(e,"background.hover.useColorExpression"))}})},show:(e,t)=>"left"===t.layout.orientation}}),$p=({paths:e,fontResolver:t,theme:n})=>{const o=`${e.theme}.fontSize`;return{fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.size`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")}),show:e=>{var t;return!1!==(null===(t=e.icon)||void 0===t?void 0:t.show)}}}},position:{type:"string",ref:"icon.position",component:"dropdown",options:[{value:"start",translation:"properties.dock.start"},{value:"top",translation:"properties.dock.top"},{value:"end",translation:"properties.dock.end"},{value:"bottom",translation:"properties.dock.bottom"}],defaultValue:(e,{layout:t})=>"left"===t.orientation?"top":"start",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"icon.show",component:"switch",defaultValue:!0,show:e=>"tab"===e.key}}},Np=({theme:e})=>({colorWrapper:Mp({ref:"indicator.selected",theme:e}),colorHoverWrapper:{component:"items",items:{hoverLabel:{translation:"Object.TabbedContainer.Hover",component:"text"},hover:Mp({ref:"indicator.hover",theme:e,change:e=>{fp(e,"background.hover.color",up(e,"indicator.hover.color")),fp(e,"background.hover.useColorExpression",up(e,"indicator.hover.useColorExpression"))}})},show:(e,t)=>"left"!==t.layout.orientation}}),Bp=({paths:e,fontResolver:t,theme:n})=>{const o=`${e.theme}.fontFamily`,r=`${e.theme}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:`${e.ref}.fontFamily`,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o),change:(e,t,n)=>{var o;const r=null===(o=e.label)||void 0===o?void 0:o.fontFamily,i=(e=>{const t=[];return e.objects.forEach((e=>{var n,o;const r=null===(n=e.components)||void 0===n?void 0:n.find((e=>"tab"===e.key)),i=null==r||null===(o=r.label)||void 0===o?void 0:o.fontFamily;i&&-1===t.indexOf(i)&&t.push(i)})),t})(n);r&&-1===i.indexOf(r)&&i.push(r),n.fontsUsed=i}},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:`${e.ref}.fontSize`,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontColorItem:{component:"color-picker",width:!1,ref:`${e.ref}.color`,defaultValue:()=>({color:n.getStyle("object.tabbedContainer",e.theme,"color")})}}},alignment:{component:"text-align-buttons",ref:"label.alignment",show:e=>"tabs"===e.key},hide:{type:"boolean",translation:"properties.show",ref:"label.show",component:"switch",defaultValue:!0}}},jp=({ref:e,key:t,fontResolver:n,theme:o})=>({translation:"Object.Container.Props.Label",component:"panel-section",items:{label:{component:"items",ref:e,key:t,items:Bp({paths:{ref:"label",theme:"label.value"},fontResolver:n,theme:o})}}}),Dp=({ref:e,key:t})=>({translation:"Visualizations.Descriptions.Width",component:"panel-section",items:{width:{component:"items",ref:e,key:t,items:{unit:{type:"string",ref:"width.unit",component:"dropdown",options:[{value:"%",translation:"Object.Table.Column.Percentage"},{value:"px",translation:"Object.Table.Column.Pixels"}],defaultValue:"%",change:e=>{var t,n;if(void 0!==(null===(t=e.width)||void 0===t?void 0:t.value)&&"%"===(null===(n=e.width)||void 0===n?void 0:n.unit))for(let t=0;t<e.width.value.length;t++)e.width.value[t]>100?e.width.value[t]=100:e.width.value[t]<5&&(e.width.value[t]=5)}},valuePixel:{translation:"properties.axis.minMax",component:"slider",ref:"width.value",range:!0,step:1,min:0,max:800,show:e=>{var t;return"px"===(null===(t=e.width)||void 0===t?void 0:t.unit)},defaultValue:[0,360]},valuePercentage:{translation:"properties.axis.minMax",component:"slider",type:"array",ref:"width.value",range:!0,step:1,min:5,max:100,show:e=>{var t,n;return!(null!==(t=e.width)&&void 0!==t&&t.unit)||"px"!==(null===(n=e.width)||void 0===n?void 0:n.unit)},defaultValue:[5,20]}}}}}),zp=({theme:e,ref:t,key:n})=>({translation:"Object.TabbedContainer.Indicator",component:"panel-section",items:{indicator:{component:"items",ref:t,key:n,items:Np({theme:e,ref:t,key:n})}}}),Fp=({ref:e,key:t,fontResolver:n,theme:o})=>({translation:"properties.icon",component:"panel-section",items:{icon:{component:"items",ref:e,key:t,items:$p({paths:{ref:"icon",theme:"icon.value"},fontResolver:n,theme:o})}},show:(e,{layout:t})=>!0===t.showIcons}),Gp=({theme:e,ref:t,key:n})=>({translation:"Object.OrgChart.BackgroundColor",component:"panel-section",items:{background:{component:"items",ref:t,key:n,items:"tab"===n?{bgColorWrapper:Mp({ref:"background"})}:Op({theme:e})}}}),Hp=({fontResolver:e,theme:t})=>{const n="components",o="tab";return{component:"styling-panel",chartTitle:"Object.Container",tabTitle:"scripteditor.dataconnectors.delimiter.tab",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",ref:n,items:{label:jp({ref:n,key:o,fontResolver:e,theme:t}),width:{...Dp({ref:n,key:o}),show:(e,{layout:t})=>"left"!==t.orientation},icon:Fp({ref:n,key:o,fontResolver:e,theme:t}),background:Gp({ref:n,key:o,theme:t})}}},Yp={ref:"label",type:"string",translation:"Object.Container.Props.Label",defaultValue:"",expression:"optional"},Wp={ref:"condition",translation:"Object.Container.Props.ShowCondition",component:"expression",defaultValue:{qValueExpression:{qExpr:""}},expressionType:"ValueExpression",expression:"always"},Vp=e=>({component:"button",translation:"Object.Container.Props.EditProperties",disabled:(e,t)=>{var n,o,r;const i=t.getLayout(),a=null===(n=Fd(i,e.childRefId))||void 0===n?void 0:n.qMeta;return!(null!=a&&null!==(o=a.privileges)&&void 0!==o&&o.includes("update")&&null!==(r=i.permissions)&&void 0!==r&&r.update)},action(t,n,{app:o}){const{sense:r}=e.env.anything,i=n.getEngineId(t.childRefId);i&&(r.propertyPanel.show({id:i,app:o,parent:"current",headerLabel:t.label}),n.setSelectedChild([i]))}}),Up=e=>{const{sense:t}=e.env.anything;return{label:Yp,condition:Wp,styling:Hp({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),editProperties:Vp(e)}},qp={translation:"Object.Container.Props.Chart",component:"text",show:e=>e.objects?e.objects.length<=1:e.children.length<=1},Kp={translation:"Common.Charts",component:"text",show:e=>e.objects?e.objects.length>1:e.children.length>1},Xp=e=>({type:"array",ref:"objects",itemTitleRef:e=>e.label,allowAdd:!0,customAdd:!0,allowMove:!0,allowRemove:!0,customRemove:!0,addTranslation:"Object.Container.Props.Add",cId:"childRefId",grouped:!0,add(e,t,n){const o=document.querySelector(".pp-toplist-add-button");null!==o&&n.openAddChildPopover(o)},remove(e,t,n){n.deleteChild(e.childRefId).catch((()=>{}))},items:Up(e)}),Qp=e=>({type:"items",translation:"Object.Container.Props.Content",items:{chartLabel:qp,chartsLabel:Kp,chartList:Xp(e)}}),Zp={type:"boolean",translation:"Object.Container.Props.ShowTabs",ref:"showTabs",defaultValue:!0,component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}]},Jp={type:"boolean",translation:"Object.Container.Props.UseDropdown",label:"Menu",ref:"useDropdown",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},eh={type:"boolean",translation:"Object.Container.Props.UseScrollButtons",ref:"useScrollButton",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],defaultValue:!0,show:e=>e.showTabs},th={type:"boolean",translation:"Object.Container.Props.ShowIcons",ref:"showIcons",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1,show:e=>e.showTabs},nh={type:"string",translation:"Object.Container.Props.DefaultTab",ref:"defaultTabId",component:"dropdown",defaultValue:void 0,options(e,t){const n=t.getLayout();return n?n.objects.map((e=>({translation:e.label,value:e.childRefId}))):[]},change(e,t){const n=Wd(t.getLayout(),e.defaultTabId);n&&t.setSelectedChild([n])},show:e=>e.objects.length>0},oh={type:"string",translation:"properties.orientation",ref:"orientation",component:"dropdown",options:[{value:"top",translation:"properties.orientation.horizontal"},{value:"left",translation:"properties.orientation.vertical"}],defaultValue:"top",show:e=>e.showTabs},rh=({fontResolver:e,theme:t})=>{const n="components",o="tabs";return{component:"styling-panel",chartTitle:"Object.TabContainer",tabTitle:"Object.Container.Props.ShowTabs",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{label:jp({ref:n,key:o,fontResolver:e,theme:t}),width:Dp({ref:n,key:o}),indicator:zp({ref:n,key:o,theme:t}),icon:Fp({ref:n,key:o,fontResolver:e,theme:t}),background:Gp({ref:n,key:o,theme:t})}}},ih={items:{details:{show:e=>!0===e.showDetails}}},ah=e=>{const{sense:t}=e.env.anything;return{type:"items",translation:"properties.presentation",grouped:!0,items:{stylingPanel:rh({fontResolver:e.fontResolver,theme:null==t?void 0:t.theme}),container:{type:"items",items:{showTabs:Zp,useDropdown:Jp,useScrollButton:eh,showIcons:th,orientation:oh,defaultTabId:nh}}}}},lh=e=>({uses:"settings",items:{general:ih,presentation:ah(e)}}),sh=e=>({type:"items",component:"accordion",items:{content:Qp(e),settings:lh(e)}}),ch=e=>{const{sense:t}=e.env.anything,n=function(e){var t=e.theme,n=e.translator,o=e.config,r=void 0===o?{}:o,i=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,o=n.id,r=n.paths;return{id:void 0===o?"object":"".concat("object",".").concat(o),paths:Array.isArray(r)?r:[]}}({config:r}),l=a.id,s=a.paths,c={};s.forEach((function(e){for(var o=e.split("."),r=c,a=0;a<o.length;a++){var s=o[a];a===o.length-1?r[s]=iu({theme:t,translator:n,id:l,path:e,flags:i}):void 0===r[s]&&(r[s]={}),r=r[s]}}));var d=function(e){for(var t=e.split("."),n=c,o=0;o<t.length;o++){var r=t[o];if(void 0===n[r])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[r]}return n};return c.getDefaultValue=function(e){return d(e).getDefaultValue()},c.getOptions=function(e){return d(e).getOptions()},c}({theme:null==t?void 0:t.theme,translator:e.env.translator,flags:e.env.flags,config:{id:"tabbedContainer",paths:["label.value","icon.value"]}}),o=function(e){return{async getDropOptions(e,t,n){const{item:o}=t,r=e.getCreatePropertyHandler();if(r.setModel(e.model),"state"===t.item.type){var i;const o=await e.model.getProperties();return r.setProperties(o),r.setLayout(null===(i=e.model)||void 0===i?void 0:i.layout),this.getDropStateOptions(t,r,e.model,n)}if("visualization"===o.type)return t.menu.addItem({translation:["Object.Container.DropItem",o.name],tid:"addvisualization",select(){var e;null===(e=r.addChild({initProps:{qExtendsId:o.id,qInfo:{qType:"undefined"}}}))||void 0===e||e.then((e=>{e&&r.setSelectedChild([e.id])}))}}),void n();const a=await t.item.getDropOption(t.item);"newObject"===(null==a?void 0:a.id)&&t.menu.addItem({translation:["Object.Container.DropItem",o.name],tid:"createvisualization",select(){var e,t;null===(e=r.addChild({initProps:{...a.args.init,visualization:a.args.template},children:null===(t=a.args.children)||void 0===t?void 0:t.map((e=>({qProperty:e})))}))||void 0===e||e.then((e=>{e&&r.setSelectedChild([e.id])}))}}),n()},async addChild(t,n){const{model:o}=this,r=new Vd({app:o.app,data:e.propertyHandlerData});return r.setModel(o),{childModel:await r.addChild({initProps:t,children:n}),handler:r}},canReceive(e){if(this.model.layout.qExtendsId)return!1;if("libraryitem"===e.type){const{item:t}=e;if("template"===t.type&&yd.includes(t.template))return!1;if("visualization"===t.type&&yd.includes(t.visualization))return!1}return"gridcell"!==e.type||!yd.includes(e.cell.model.layout.visualization)}}}(e);return{definition:sh({...e,fontResolver:n}),support:{snapshot:!1,export:!0,sharing:!1,exportData:!1,viewData:!1},hidePatchPanel:()=>!0,getCreatePropertyHandler:t=>new Vd({app:t,data:e.propertyHandlerData}),...o,addChild:async function(e,t){const{childModel:n,handler:r}=await o.addChild.apply(this,[e,t]);n&&r.setSelectedChild([n.id])},migrate:{properties:(e,t)=>((async(e,t)=>{if(!e.objects){const{objects:n,defaultTabId:o,components:r,orientation:i,showDetails:a}=await t.getEffectiveProperties(),l=await t.getFullPropertyTree();if(!l.qProperty.objects&&n){const s=[];l.qChildren.forEach((e=>{const n=e.qProperty;if(n.qInfo.qId){const o=async o=>{const r=await t.getChild(o),i=await r.getEffectiveProperties();return{...e,qProperty:{...n,childRefId:i.childRefId}}};s.push(o(n.qInfo.qId))}}));const c=await Promise.all(s),d={...e,objects:n,defaultTabId:null!=o?o:"",components:r,qChildListDef:Tp,orientation:i,showDetails:a};t.clearSoftPatches(),await t.setFullPropertyTree({...l,qProperty:d,qChildren:c})}}})(e,t),e)},exportProperties:null,importProperties:(e,t)=>{const n={...e.properties};return"masterobject"!==e.properties.qInfo.qType&&(n.qInfo.qType=t.qInfo.qType),n.visualization=t.visualization,{qProperty:n,qChildren:e.qChildren}},extendMetrics:Pp}},dh=e=>e.reduce(((e,{id:t,data:n})=>(n&&(e[t]=n),e)),{}),uh=async e=>{const t=Object.entries(e).map((([e,t])=>{const n={id:e,data:void 0};return t.getViewState().then((t=>({id:e,data:t}))).catch((()=>n))})),n=await Promise.all(t);return{viewStates:dh(n)}},ph=async e=>{const t=Object.entries(e).map((([e,t])=>{const n={id:e,data:void 0};return t.getSnapshotLayout().then((t=>({id:e,data:t}))).catch((()=>n))})),n=await Promise.all(t);return dh(n)},hh=(e,t)=>(o((async n=>{const o=n,{snapshotData:r}=o;if(r){const n=Gd(o),i=t(e.objectMap,n),[a,l]=await Promise.all([ph(i.objectMap),uh(i.objectMap)]);r.objectsData={layouts:a},o.objects=i.objects,r.viewState=l}return n})),{getViewState:()=>uh(e.objectMap)});let fh=function(e){return e.COPY="ctrl+c",e.CUT="ctrl+x",e.PASTE="ctrl+v",e.OPEN_CONTEXT_MENU="shift+F10",e.ESCAPE="Escape",e.SPACE=" ",e.ENTER="Enter",e.BACKSPACE="Backspace",e.DELETE="Delete",e.SHIFT="Shift",e}({}),mh=function(e){return e.KEY_DOWN="keydown",e.KEY_UP="keyup",e.FOCUS_OUT="focusout",e}({});var bh,gh;!function(e){e.TAB_MENU="tab-menu",e.TAB_MENU_ITEM="tab-menu-item",e.ACTIVE_TAB="active-tab-button",e.TAB_WRAPPER="tab-wrapper",e.TAB="tab-button",e.TAB_EXTRA_PRIO="MuiTab-root",e.TAB_LABEL="tab-label",e.TABS_ICON="tab-icon",e.ACTIVE_TAB_PANEL="active-tab-panel",e.TAB_INDICATOR="MuiTabs-indicator"}(bh||(bh={})),function(e){e.TABS="& .tab-button.MuiTab-root, .tab-button.active-tab-button",e.TABS_HOVER="& .tab-button.MuiTab-root:hover",e.TABS_LABEL="& .tab-label",e.TABS_ICON="& .tab-icon svg",e.TABS_WRAPPER="& .tab-wrapper",e.TAB_INDICATOR="& .MuiTabs-indicator"}(gh||(gh={}));const vh=e=>{var t;return null===(t=e.getElementsByClassName(bh.ACTIVE_TAB))||void 0===t?void 0:t[0]},yh=e=>{var t;return null===(t=e.getElementsByClassName(bh.ACTIVE_TAB_PANEL))||void 0===t?void 0:t[0]},xh=({element:e,setAccessibility:o,accessibility:a,renderHelper:l,interactions:s})=>{const c=r(),d=i((()=>()=>{var e;(o(!1),c.enabled)&&(null===(e=c.blur)||void 0===e||e.call(c,!0))}),[c,o]),u=i((()=>t=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case fh.ESCAPE:var n;t.stopPropagation(),null===(n=c.blur)||void 0===n||n.call(c,!0);break;case fh.ENTER:case fh.SPACE:{t.stopPropagation();const n=t.target;var o;if(null!=n&&n.classList.contains(bh.ACTIVE_TAB))null===(o=yh(e))||void 0===o||o.focus();break}}}),[e,c]),p=i((()=>(t,n)=>{switch(t.shiftKey?`shift+${t.key}`:t.key){case fh.ESCAPE:var o;t.stopPropagation();var r,i;if((null==n?void 0:n.viewDataToggled)&&(null===(o=n.supportViewData)||void 0===o?void 0:o.call(n)))null===(r=n.toggleDataView)||void 0===r||r.call(n);else null===(i=vh(e))||void 0===i||i.focus();break;case fh.ENTER:case fh.SPACE:var a,l,s;if(!n)break;t.stopPropagation(),null===(a=n.setOnBlurHandler)||void 0===a||a.call(n,(()=>{var t;null===(t=yh(e))||void 0===t||t.focus(),n.setOnBlurHandler(void 0)}));var c;if(!n.viewDataToggled&&(null===(l=n.supportViewData)||void 0===l?void 0:l.call(n)))null===(c=n.toggleDataView)||void 0===c||c.call(n);else n.viewDataToggled&&"function"==typeof(null===(s=n.dataViewObject)||void 0===s?void 0:s.focus)?n.dataViewObject.focus():"function"==typeof n.focus&&n.focus();break;case fh.OPEN_CONTEXT_MENU:t.stopPropagation(),null!=n&&n.viewDataToggled||e!==document.activeElement&&(d(),e.focus())}}),[e,d]),h=i((()=>e=>{const t=e.target;if(null!=t&&t.classList.contains(bh.ACTIVE_TAB_PANEL)){const t=Object.values(l.objectMap)[0];p(e,t)}else u(e)}),[u,p,l]);t((()=>(a&&e.addEventListener(mh.KEY_DOWN,h),()=>{e.removeEventListener(mh.KEY_DOWN,h)})),[e,a,h]);const[f,m]=n(!1);t((()=>{f&&(m(!1),window.setTimeout((()=>{var t,n;return null===(t=null!==(n=(e=>{var t;return null===(t=e.getElementsByClassName(bh.TAB_MENU))||void 0===t?void 0:t[0]})(e))&&void 0!==n?n:vh(e))||void 0===t?void 0:t.focus()}),0))}),[e,f]),t((()=>{o(!1)}),[s.edit,o]),t((()=>{const t=t=>{const n=t.relatedTarget;null!=e&&e.contains(n)||null!=n&&n.classList.contains(bh.TAB_MENU_ITEM)||null==d||d()};return c.enabled&&c.active&&!s.edit&&(o(!0),m(!0),e.addEventListener(mh.FOCUS_OUT,t)),()=>{e.removeEventListener(mh.FOCUS_OUT,t)}}),[c])},Eh=e=>{const[t]=n(e);return[t,function(e){Object.assign(t,e)}]},Sh={getChar(e){let t,n=e;return n>9?(t=65+n-10,t>90&&(t+=6)):n=`${n}`.charCodeAt(0),!t||[48,111,79,105,73,108].indexOf(t)>-1?this.getChar(n+1):String.fromCharCode(t)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};const Ch={qInfo:{qId:"MasterObjectList",qType:"MasterObjectList"},qAppObjectListDef:{qType:"masterobject",qData:{name:"/qMetaDef/title",labelExpression:"/labelExpression",visualization:"/visualization",tags:"/qMetaDef/tags"}}};class wh{constructor(e){M(this,"sessionObject",void 0),M(this,"getOrCreateSessionObject",(async e=>{const t=Ch.qInfo.qId;this.sessionObject=await e.getObject(t).catch((()=>e.createSessionObject(Ch)))})),M(this,"getMasterVisualizations",(async()=>{try{if(!this.sessionObject)return[];const e=await this.sessionObject.getLayout();return("qAppObjectList"in e?e.qAppObjectList.qItems:e).map((e=>({...e.qData,qExtendsId:e.qInfo.qId}))).filter((e=>!yd.includes(e.visualization)))}catch(e){return[]}})),this.getOrCreateSessionObject(e).catch((()=>{}))}}let Rh=function(e){return e[e.TOP=0]="TOP",e[e.BOTTOM=1]="BOTTOM",e[e.UP=2]="UP",e[e.DOWN=3]="DOWN",e}({});class Ah{constructor({embed:e,model:t,app:n,translator:o,mutex:r}){M(this,"model",void 0),M(this,"embed",void 0),M(this,"app",void 0),M(this,"undoRedoModel",void 0),M(this,"chartList",void 0),M(this,"masterVizList",void 0),M(this,"mutex",void 0),M(this,"rememberAsGroup",(async e=>{let t;this.undoRedoModel&&(t=await this.undoRedoModel.startGroup());const n=await e();return t&&this.undoRedoModel&&await this.undoRedoModel.endGroup(t),n})),M(this,"generateProperties",(async(e,t)=>await this.embed.generateProperties({type:e,properties:t}))),M(this,"addVizAsChild",(async({type:e,initProps:t,objectInitProps:n,children:o})=>{try{const r=await this.generateProperties(e,t);let i=(null==n?void 0:n.label)||(null==t?void 0:t.title);if(!i){const n=this.getChart(null==t?void 0:t.visualization),o=null==n?void 0:n.libraryInfo;i=(null==o?void 0:o.translation)||(null==o?void 0:o.name)||e}const a={...n,label:i};return await this.addChild(r,o,a)}catch(e){return}})),M(this,"addMasterObjectAsChild",(async({initProps:e,objectInitProps:t,children:n})=>{try{if(!e||!e.qExtendsId||!this.app)return;const o=await this.app.getObject(e.qExtendsId),r=await o.getProperties(),i=(null==t?void 0:t.label)||r.title||r.qMetaDef.title,a={...e,qInfo:{qType:"childObject"}},l={...t,label:i};return await this.addChild(a,n,l)}catch(e){return}})),M(this,"deleteChildren",(async e=>{const{model:t}=this;if(0===e.length||!t)return!1;try{await this.mutex.lock();const n=await t.getFullPropertyTree(),{qChildren:o,qProperty:r}=n,i=new Set(e);return n.qChildren=o.filter((({qProperty:e})=>{const t=e.childRefId;return!t||!i.has(t)})),n.qProperty.objects=r.objects.filter((e=>!i.has(e.childRefId))),await t.setFullPropertyTree(n),!0}catch(e){return!1}finally{this.mutex.unlock()}})),M(this,"moveChild",(async(e,t)=>{if(this.model)try{await this.mutex.lock();const n=await this.model.getProperties(),{objects:o}=n,r=o.findIndex((e=>e.childRefId===t));let i=!1;switch(e){case Rh.TOP:{if(0===r)break;const e=o.splice(r,1)[0];o.unshift(e),i=!0;break}case Rh.BOTTOM:{if(r===o.length-1)break;const e=o.splice(r,1)[0];o.push(e),i=!0;break}case Rh.UP:{if(0===r)break;const e=o.splice(r,1)[0];o.splice(r-1,0,e),i=!0;break}case Rh.DOWN:{if(r===o.length-1)break;const e=o.splice(r,1)[0];o.splice(r+1,0,e),i=!0;break}}i&&await this.model.setProperties(n)}finally{this.mutex.unlock()}})),M(this,"getCharts",(()=>{var e;return(null===(e=this.chartList)||void 0===e?void 0:e.getCharts())||{}})),M(this,"getMasterVizList",(()=>{var e;return(null===(e=this.masterVizList)||void 0===e?void 0:e.getMasterVisualizations())||Promise.resolve([])})),M(this,"getChart",(e=>{var t;return null===(t=this.chartList)||void 0===t?void 0:t.getChart(e)})),M(this,"getChartLabelById",((e,t)=>{var n,o;const r=null==e||null===(n=e.qChildList)||void 0===n?void 0:n.qItems.find((e=>e.qInfo.qId===t));if(!r)return"";const{visualization:i,title:a}=r.qData;if(a)return a;const l=this.getChart(i);return(null==l||null===(o=l.libraryInfo)||void 0===o?void 0:o.translation)||i})),this.model=t,this.embed=e,this.app=n;const i=n;i&&i.getUndoInfoObject&&i.getUndoInfoObject().then((e=>{this.undoRedoModel=e})).catch((()=>{})),n&&(this.masterVizList=new wh(n)),e&&o&&(this.chartList=new xd(e,o)),this.mutex=r}async addChild(e,t,n){if(this.model&&!yd.includes(e.visualization))try{await this.mutex.lock();const{model:o}=this,r=async()=>{e.childRefId=Sh.id();const r=await o.createChild(e);if(r){const t=await o.getProperties();t.objects.unshift({childRefId:e.childRefId,...n,condition:{qValueExpression:{qExpr:""}}}),await o.setProperties(t)}return t&&r&&await Promise.all(t.map((({qProperty:e})=>r.createChild(e)))),r};return await this.rememberAsGroup(r)}catch(e){return}finally{this.mutex.unlock()}}}class kh{constructor(e){M(this,"locked",!1),M(this,"tasks",[]),M(this,"id",void 0),M(this,"lock",(async()=>this.locked?new Promise((e=>{this.tasks.push(e)})):(this.locked=!0,!0))),M(this,"unlock",(()=>{if(this.tasks.length>0){const e=this.tasks.shift();null==e||e(!0)}else this.locked=!1})),this.id=e}}const Ih={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Lh={index:-1,color:"none",alpha:1},_h=e=>{let t=parseFloat(e[1]),n=parseFloat(e[3]),o=parseFloat(e[5]);return t%=360,n/=100,o/=100,t=Math.max(0,Math.min(t,360)),n=Math.max(0,Math.min(n,1)),o=Math.max(0,Math.min(o,1)),{h:t,s:n,l:o,v:o}},Th=(e,t,n,o,r=1)=>{let i,a,l,s=[];switch(n=Math.floor(n)){case 0:s=[e,t,0];break;case 1:s=[t,e,0];break;case 2:s=[0,e,t];break;case 3:s=[0,t,e];break;case 4:s=[t,0,e];break;case 5:s=[e,0,t];break;default:s=[0,0,0]}return i=s[0]+o,a=s[1]+o,l=s[2]+o,i=Math.round(255*i),a=Math.round(255*a),l=Math.round(255*l),`rgba(${i},${a},${l},${r})`},Ph=e=>{const{h:t,s:n,l:o}=_h(e),r=e.length>7?parseFloat(e[7]):1,i=o<=.5?2*o*n:(2-2*o)*n,a=t/60,l=i*(1-Math.abs(a%2-1));return Th(i,l,a,o-.5*i,r)},Mh={resolveExpression:({colorExpression:e=""})=>{let t=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e);if(t)return`rgb(${t[1]},${t[2]},${t[3]})`;if(t=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return`rgba(${t[1]},${t[2]},${t[3]},${t[4]})`;if(t=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e),t){const e=Math.round(Number(t[1])/255*100)/100;return`rgba(${t[2]},${t[3]},${t[4]},${e})`}if(t=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return Ph(t);if(t=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(e),t)return Ph(t);if(t=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(e),t)return(e=>{const{h:t,s:n,v:o}=_h(e),r=o*n,i=t/60,a=r*(1-Math.abs(i%2-1));return Th(r,a,i,o-r)})(t);if(t=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e),t)return e;if(t=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e),t)return e;const n=e&&Ih[e.toLowerCase()];if(n){const e=void 0!==n.a?n.a:1;return`rgba(${n.r},${n.g},${n.b},${e})`}return"none"},getColor({style:e,defaultColor:t,theme:n}){const o=(null==e?void 0:e.color)||Lh;let r;if(null!=e&&e.useColorExpression)r=Mh.resolveExpression(e);else if("string"==typeof o)r=o;else if(o){const e=void 0!==(null==o?void 0:o.alpha)&&(null==o?void 0:o.alpha)<1?Math.round(100*o.alpha):"";r=`${(null==n?void 0:n.getColorPickerColor(o))||""}${e}`}return r&&"none"!==r?r:t}};class Oh{constructor({modifiedLayout:e,themeService:t}){var n;M(this,"modifiedLayout",void 0),M(this,"themeStyle",void 0),M(this,"style",void 0),M(this,"objectMap",void 0),M(this,"activeTabId",void 0),M(this,"theme",void 0),M(this,"getTabsWidth",(e=>{const t=this.resolveComponentStyle({compPath:"width.value",themePath:"tabWidth.value"});if(void 0===t||2!==t.length||e!==this.modifiedLayout.orientation)return{};const n=this.resolveComponentStyle({compPath:"width.unit",themePath:"tabWidth.unit",defaultValue:"%"});return{minWidth:`${t[0]}${n}`,maxWidth:`${t[1]}${n}`}})),M(this,"getTabWidth",(e=>{var t;const n=null==e?void 0:e.value,o=null!==(t=null==e?void 0:e.unit)&&void 0!==t?t:"%";if(void 0===n||2!==n.length||"left"===this.modifiedLayout.orientation)return{};return{minWidth:`${n[0]}${o}`,maxWidth:`${n[1]}${o}`}})),M(this,"getColorStyle",((e,t=e)=>{const n=this.resolveComponentStyle({compPath:e,themePath:t}),o=Mh.getColor({style:n,theme:this.theme});return null!=o?o:n})),M(this,"getTabBackgroundStyle",((e,t)=>{var n;let o;if(this.activeTabId===e){const e=this.resolveComponentStyle({compPath:"background.selected",themePath:""});o=Mh.getColor({style:e,theme:this.theme})}return null!==(n=o)&&void 0!==n?n:Mh.getColor({style:t,theme:this.theme})})),M(this,"createTabClasses",(()=>{var e;return null===(e=this.modifiedLayout.objects)||void 0===e?void 0:e.reduce(((e,t)=>{var n;const o=null==t?void 0:t.childRefId,r=null==t||null===(n=t.components)||void 0===n?void 0:n.find((e=>"tab"===e.key));return e[`#tab-${this.modifiedLayout.qInfo.qId}-${o}`]={textAlign:up(r,"label.alignment"),backgroundColor:this.getTabBackgroundStyle(o,null==r?void 0:r.background),...this.getTabWidth(null==r?void 0:r.width)},e[`#tab-${this.modifiedLayout.qInfo.qId}-${o}:hover`]={..."left"===this.modifiedLayout.orientation&&{backgroundColor:this.getColorStyle("background.hover","background.hover.color")}},e[`#tab-label-${this.modifiedLayout.qInfo.qId}-${o}`]={fontSize:up(r,"label.fontSize"),fontFamily:up(r,"label.fontFamily"),color:Mh.getColor({style:up(r,"label.color"),theme:this.theme})},e[`#tab-icon-${this.modifiedLayout.qInfo.qId}-${o} svg`]={height:up(r,"icon.size"),color:Mh.getColor({style:up(r,"icon.color"),theme:this.theme})},e}),{})})),M(this,"createTabsClasses",(()=>({[gh.TABS_LABEL]:{fontSize:this.resolveComponentStyle({compPath:"label.fontSize",themePath:"label.value.fontSize"}),fontFamily:this.resolveComponentStyle({compPath:"label.fontFamily",themePath:"label.value.fontFamily"}),color:this.resolveComponentStyle({compPath:"label.color.color",themePath:"label.value.color"})},[gh.TABS_ICON]:{height:this.resolveComponentStyle({compPath:"icon.size",themePath:"icon.value.fontSize"}),color:this.getColorStyle("icon.color","icon.value.color")},[gh.TABS]:{textAlign:this.resolveComponentStyle({compPath:"label.alignment",themePath:"label.textAlignment"}),...this.getTabsWidth("top")},[gh.TABS_HOVER]:{..."top"===this.modifiedLayout.orientation&&{borderBottomColor:this.getColorStyle("indicator.hover","indicator.hover.color")}},[gh.TABS_WRAPPER]:{...this.getTabsWidth("left"),backgroundColor:this.getColorStyle("background.unselected","")},[gh.TAB_INDICATOR]:{backgroundColor:this.getColorStyle("indicator.selected","indicator.selected.color")}}))),M(this,"createStyleClasses",(()=>({...this.createTabsClasses(),...this.createTabClasses()}))),M(this,"resolveComponentStyle",(({key:e="tabs",compPath:t,themePath:n=t,defaultValue:o})=>{var r,i,a;const l=null===(r=this.modifiedLayout.components)||void 0===r?void 0:r.find((t=>t.key===e));return null!==(i=null!==(a=up(l,t))&&void 0!==a?a:up(this.themeStyle,n))&&void 0!==i?i:o})),this.modifiedLayout=e;const{cachedTabId:o,defaultTabId:r,objects:i}=this.modifiedLayout;this.activeTabId=o||r||(null===(n=i[0])||void 0===n?void 0:n.childRefId)||"",this.themeStyle=t.getStyles(),this.theme=t.getTheme(),this.objectMap=Yd(this.modifiedLayout),this.style=this.createStyleClasses()}getStyleClasses(){return this.style}getTabStyle(e){var t;return null===(t=this.objectMap[e].components)||void 0===t?void 0:t.find((e=>"tab"===e.key))}}const $h=t=>{const{sense:o}=t.anything,r=a(),f=l(),m=s(),b=c(),g=d(),v=u(),y=e(),x=p(),E=h(),S=function(e){var t=e.theme,n=e.config,o=void 0===n?{}:n,r=o.id,i=o.resolve,a=void 0===i?[]:i,l=o.transform,s=void 0===l?[]:l,c=o.extend,d=void 0===c?[]:c,u={theme:t,matrix:Ip(a),styles:void 0};return u.styles=_p({theme:t,id:r,transform:s,extend:d,matrix:u.matrix}),{getStyles:function(){return u.styles},getTheme:function(){return u.theme},setTheme:function(e){u.theme=e,u.styles=_p({theme:e,id:r,transform:s,extend:d,matrix:u.matrix})}}}({theme:null==o?void 0:o.theme,config:{id:"tabbedContainer",resolve:[["object.tabbedContainer","indicator.selected","color"],["object.tabbedContainer","indicator.hover","color"],["object.tabbedContainer","background.hover","color"],["object.tabbedContainer","icon.value","color"],["object.tabbedContainer","icon.value","fontSize"]]}}),C=i((()=>new xd(b,v)),[b,v]),[w]=n(new kh(g.id)),[R,A]=n(!1),k=i((()=>b&&g&&f?new Ah({embed:b,model:g,app:f,translator:v,mutex:w}):void 0),[b,g,f,v,w]),I=i((()=>Gd(m)),[m]),L=i((()=>new Oh({modifiedLayout:I,themeService:S})),[I,S]);return i((()=>({app:f,modifiedLayout:I,embed:b,model:g,emitter:x,interactions:E,dataHandler:k,chartList:C,styleModel:L,mutex:w,options:y,accessibility:R,setAccessibility:A,translator:v,element:r})),[I,b,g,f,x,E,k,C,L,w,y,R,v,r])},Nh=({dataHandler:e,modifiedLayout:t,translator:n,sharedContainerUtilities:o,Icon:r})=>{const[i,a]=w(void 0);if(!e||!t)return null;const l=!t.qExtendsId;return v.createElement(kd,null,v.createElement(Ad,null,v.createElement(r,null),l?v.createElement(v.Fragment,null,v.createElement(Pd,{sx:{width:250,height:32,fontFamily:"inherit"},className:"init-button",variant:i?"contained":"outlined",onClick:e=>{a(e.currentTarget)},"aria-label":n.get("LayoutContainer.EmptyList.AddContent"),disableRipple:!0},n.get("LayoutContainer.EmptyList.AddContent")),v.createElement(Bd,{translator:n,anchorEl:i,dataHandler:e,onClose:()=>{a(void 0)},sharedContainerUtilities:o})):v.createElement(Oa,{variant:"inherit"},n.get("LayoutContainer.EmptyList.EmptyHint"))))};class Bh{constructor(e){M(this,"_rendered",new Set),M(this,"_objectMap",{}),M(this,"_resolver",void 0),M(this,"_dependencyData",void 0),M(this,"_recreateMap",new Map),M(this,"createTimerForRendering",(()=>{if(!this.resolver){let e;const t=setTimeout((()=>{this.doResolve()}),9e4),n=new Promise((t=>{e=t}));this._resolver={promise:n,resolve:e,timer:t}}return this._resolver})),M(this,"doResolve",(()=>{var e,t,n;this.resolver&&(clearTimeout(null===(e=this.resolver)||void 0===e?void 0:e.timer),null===(t=(n=this.resolver).resolve)||void 0===t||t.call(n,!0),this._resolver=void 0)})),M(this,"tryToResolve",(()=>{const{visibleLayoutObjects:e}=this._dependencyData;if(this.resolver){(0===e.length||e.every((e=>this.rendered.has(e.id))))&&this.doResolve()}})),this._dependencyData=e}set dependencyData(e){this._dependencyData=e}get rendered(){return this._rendered}get objectMap(){return this._objectMap}get resolver(){return this._resolver}get recreateMap(){return this._recreateMap}syncObjects(e){const t={},n=new Set,o=this.objectMap;let r=!1;e.forEach((e=>{o[e.id]?t[e.id]=o[e.id]:r=!0,this.rendered.has(e.id)&&n.add(e.id)}));let i=!1;return Object.entries(o).forEach((([e,n])=>{var o;t[e]||(this.confirmPotentialSelections(n),null===(o=n.destroy)||void 0===o||o.call(n),i=!0)})),this._objectMap=t,i&&(this._rendered=n,this.tryToResolve()),r}destroy(){const e=this.objectMap;Object.values(e).forEach((e=>{var t;null===(t=e.destroy)||void 0===t||t.call(e)})),this._objectMap={}}saveObject(e,t,n){const o=this.objectMap[e];var r;null!=o&&o.destroy?n?(null===(r=o.destroy)||void 0===r||r.call(o),this.objectMap[e]=t):(this.objectMap[e]=t,this.objectMap[e].destroy=o.destroy):this.objectMap[e]=t}onRendered(e){this.rendered.add(e),this.tryToResolve()}getChildrenObjects(){const{visibleLayoutObjects:e}=this._dependencyData,t=[];return e.forEach((e=>{this.objectMap[e.id]&&t.push(this.objectMap[e.id])})),t}getChildLayout(e){const{modifiedLayout:t}=this._dependencyData;return t.qChildList.qItems.find((t=>t.qInfo.qId===e))}getObjectOptions(e){var t,n;const{viewState:o,modifiedLayout:r,options:i}=this._dependencyData,{chartAnimations:a,direction:l,progressiveRendering:s,freeResize:c,navigation:d}=i;return{isReadonly:!1,setController:t=>{this.saveObject(e,t)},onRendered:()=>{this.onRendered(e)},onInitialRender:()=>{this.onRendered(e)},isParentMaster:!(null==r||!r.qExtendsId),isSnapshot:!!r.snapshotData,...!(null==o||null===(t=o.viewStates)||void 0===t||!t[e])&&{viewState:null==o?void 0:o.viewStates[e]},...!(null==o||null===(n=o.layouts)||void 0===n||!n[e])&&{layout:o.layouts[e]},direction:l,chartAnimations:a,progressiveRendering:s,freeResize:c,navigation:d,disableThemeBorder:!1}}confirmPotentialSelections(e){e&&"selectionsApi"in e&&e.selectionsApi.active&&e.selectionsApi.confirm()}}const jh=()=>v.createElement(Md,{viewBox:"0 0 16 16"},v.createElement("path",{d:"M15 6V5H5V2H1.5a.5.5 0 0 0-.5.5V6H0V2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4h-1Zm-5-4H6v2h4V2Zm4.5 0H11v2h4V2.5a.5.5 0 0 0-.5-.5Zm1.5 9h-1V8h1v3Zm0 3a1 1 0 0 1-1 1h-1v-1h.6a.4.4 0 0 0 .4-.4V13h1v1Zm-7 1v-1h3v1H9Zm-5 0v-1h3v1H4Zm-3 0a1 1 0 0 1-1-1v-1h1v.6c0 .22.18.4.4.4H2v1H1ZM0 8h1v3H0V8Zm4-.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4ZM5 11h6V8H5v3Z"})),Dh=({libraryInfo:e,style:t,id:n})=>v.createElement("div",{style:t,"data-testid":"tab-chart-icon",id:n,className:bh.TABS_ICON},v.createElement(e.IconDefinition,null)),zh=({style:e,id:t})=>v.createElement("div",{style:e,"data-testid":"tab-hidden-icon",id:t},v.createElement(Od,{viewBox:"0 0 16 16"},v.createElement("path",{d:"m13.441.795.764.646-1.839 2.174c.568.434 1.076.914 1.522 1.385a13.79 13.79 0 0 1 2.109 3 13.798 13.798 0 0 1-2.108 3c-1.382 1.457-3.345 3-5.89 3-1.34 0-2.52-.428-3.536-1.045l-1.904 2.25-.764-.646L13.441.795ZM11.72 4.379l-1.427 1.686a3 3 0 0 1-3.82 4.516l-1.354 1.6c.86.497 1.819.819 2.88.819 2.121 0 3.834-1.287 5.161-2.685A12.666 12.666 0 0 0 14.857 8a12.691 12.691 0 0 0-1.697-2.315c-.35-.37-.727-.73-1.132-1.063l-.308-.243ZM8 2a6.428 6.428 0 0 1 2.242.412l.305.123-.681.805A5.359 5.359 0 0 0 8 3C5.877 3 4.164 4.287 2.837 5.685A12.664 12.664 0 0 0 1.14 8a12.66 12.66 0 0 0 1.697 2.315l.301.308.311.299-.646.765A14.567 14.567 0 0 1 2.109 11 13.791 13.791 0 0 1 0 8a13.801 13.801 0 0 1 2.109-3C3.49 3.543 5.454 2 8 2Zm1.633 4.845-2.5 2.956a1.999 1.999 0 0 0 2.5-2.956Zm-3.917-.793a3 3 0 0 1 2.692-1.025l.202.035-.809.948A2 2 0 0 0 6 7.967l.003.152-.808.947a3 3 0 0 1 .521-3.014Z"}))),Fh=()=>v.createElement(Od,{viewBox:"0 0 16 16"},v.createElement("path",{d:"M12 4H6V3h6v1ZM6 8.5h4v-1H6v1Zm9 4.5H6v-1h9v1ZM3 11a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1Zm0-5.5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h1Zm0 1H2v1h1v-1ZM3 2a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h1Zm0 1H2v1h1V3Z"})),Gh=wi(Ic)({width:28,overflow:"hidden"}),Hh=wi(Ic)({height:28,width:"100%",overflow:"hidden",alignItems:"center","&::before":{visibility:"hidden"}}),Yh=({chartObject:e,embed:t,renderHelper:n,direction:o,accessibility:r,interactions:i,env:a})=>{const l=A(),{id:s}=e;R((()=>{if(s&&l.current){const e=n.getObjectOptions(s)||{};e.disableThemeBorder=!0,t.render({id:s,element:l.current,options:e}).then((e=>{const t=!!n.objectMap[s];n.saveObject(s,e,t)})).catch((e=>{var t;const o=null===(t=n.getChildLayout(s))||void 0===t||null===(t=t.qInfo)||void 0===t?void 0:t.qType;console.error("Could not render chart with id",s,o,e)}))}}),[s,t,n,o]);const c=k((()=>()=>{if(null!=e&&e.id&&a.anything){const t=null==e?void 0:e.label,{sense:o}=a.anything,r="current",i=n.objectMap[e.id];o.propertyPanel.show({model:i.model,parent:r,headerLabel:t,keepCurrentActiveCell:!0})}}),[a,e,n]);return R((()=>{const e=null==l?void 0:l.current;return e&&null!=i&&i.edit&&e.addEventListener("dblclick",c),()=>{null==e||e.removeEventListener("dblclick",c)}}),[l,c,i]),v.createElement(Sl,{className:bh.ACTIVE_TAB_PANEL,"aria-label":e.label,tabIndex:r?0:-1,height:"100%",width:"100%",sx:{direction:"ltr",padding:"2px",boxSizing:"border-box","&:focus-visible":{boxShadow:"inset 0 0 0 2px #0275D9",borderRadius:"3px",zIndex:1200},flex:"1 0 0"}},v.createElement(Sl,{ref:l,sx:{position:"relative",height:"100%",width:"100%"},"data-testid":`tab-panel-${e.childRefId}`}))};var Wh;!function(e){e.TABS_HEIGHT="36px"}(Wh||(Wh={}));const Vh=(e,t)=>e.find((e=>e.childRefId===t)),Uh=(e,t)=>!t.edit&&0===e.condition,qh=({charts:e,handleChangeTab:t,activeTabId:n,element:o,translator:r,accessibility:i,disabled:a})=>{const[l,s]=v.useState(null),c=Boolean(l),d=()=>{s(null)},u=I((e=>{null==e||e.focus()}),[]);return v.createElement(v.Fragment,null,v.createElement(Ml,{onClick:e=>{s(e.currentTarget)},disabled:a,"aria-haspopup":"menu","data-testid":"chartTabMenuDropdownButton",tabIndex:i?0:-1,"aria-label":r.get("Container.Label.Visualizations"),className:bh.TAB_MENU,sx:{m:"2px"}},v.createElement(Fh,null)),v.createElement(ac,{anchorEl:l,open:c,onClose:d,elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},MenuListProps:{sx:{py:0}},slotProps:{paper:{sx:{maxHeight:"500px",maxWidth:"500px"}}}},e.map((e=>v.createElement(uc,{className:bh.TAB_MENU_ITEM,ref:n===e.childRefId&&c?u:null,key:`chartTabMenu-${e.childRefId}`,onClick:()=>(e=>{t(e.childRefId),d(),window.setTimeout((()=>{var e;return null===(e=o.getElementsByClassName(bh.ACTIVE_TAB_PANEL))||void 0===e||null===(e=e[0])||void 0===e?void 0:e.focus()}),0)})(e),sx:{...n===e.childRefId?{backgroundColor:"rgba(0, 0, 0, 0.1)"}:{}},"aria-label":e.label,title:e.label},v.createElement(Oa,{variant:"inherit",noWrap:!0},e.label))))))},Kh=({label:e,id:t})=>v.createElement(Sl,{className:bh.TAB_LABEL,id:`tab-label-${t}`,sx:{width:"100%",height:"100%",display:"flex",alignItems:"center",overflow:"hidden",flexWrap:"wrap"}},v.createElement("span",{style:{width:"100%",overflowWrap:"break-word",hyphens:"auto",fontWeight:"bold",display:"-webkit-box",WebkitLineClamp:3,WebkitBoxOrient:"vertical",lineHeight:"normal",overflow:"hidden"}},e)),Xh=({libraryInfo:e,chart:t,iconPosition:n,id:o})=>{let r;switch(n){case"bottom":r={marginTop:"6px"};break;case"top":r={marginBottom:"6px"};break;case"end":r={marginInlineStart:"8px"};break;default:r={marginInlineEnd:"8px"}}r.display="flex",r.alignItems="center",r.height="100%",r.flex="1 0 0";return 0===t.condition?v.createElement(zh,{id:`${bh.TABS_ICON}-${o}`,style:r}):e?v.createElement(Dh,{id:`${bh.TABS_ICON}-${o}`,libraryInfo:e,style:r}):null},Qh=({models:e,activeTabId:t,handleChangeTab:n})=>{const{modifiedLayout:o,chartList:r,interactions:i,accessibility:a}=e,l=null==r?void 0:r.getCharts(),s=o.objects.filter((e=>!Uh(e,i))),{orientation:c,tabContainerStyle:d,ScrollButtonComponent:u}=(({orientation:e})=>"left"===e?{orientation:"vertical",tabContainerStyle:{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"25%",flexShrink:0},ScrollButtonComponent:Hh}:{orientation:"horizontal",tabContainerStyle:{display:"flex",flexDirection:"row",alignItems:"center"},ScrollButtonComponent:Gh})(o),p=!1===i.active&&!i.edit,[h,f]=w(!1),m=I((e=>{if(e){const t=e.getElementsByClassName("MuiTabs-flexContainer")[0];if(t)return void f("vertical"===c?t.scrollHeight>t.offsetHeight:t.scrollWidth>t.offsetWidth)}f(!1)}),[c]);return v.createElement(Sl,{className:bh.TAB_WRAPPER,sx:d,ref:e=>m(e)},o.useDropdown&&h&&v.createElement(qh,{charts:s,handleChangeTab:n,activeTabId:t,accessibility:a,translator:e.translator,element:e.element,disabled:p}),v.createElement(Hc,{value:t,onChange:(e,t)=>{n(t)},ScrollButtonComponent:u,variant:"scrollable",orientation:c,scrollButtons:!!o.useScrollButton&&"auto",TabScrollButtonProps:{...p&&{disabled:!0}},sx:{height:"100%",width:"100%",minHeight:Wh.TABS_HEIGHT}},s.map((n=>{var r,i,s,d,u;const h=null===(r=Fd(o,n.childRefId))||void 0===r||null===(r=r.qData)||void 0===r?void 0:r.visualization,f=h&&(null==l||null===(i=l[h])||void 0===i?void 0:i.libraryInfo),m=e.styleModel.getTabStyle(n.childRefId),b=0===n.condition||o.showIcons&&f&&!1!==(null==m||null===(s=m.icon)||void 0===s?void 0:s.show),g="vertical"===c?"top":"start",y=e.styleModel.resolveComponentStyle({compPath:"icon.position",defaultValue:g}),x=e.styleModel.resolveComponentStyle({compPath:"label.show"}),E=n.label&&(null!==(d=null==m||null===(u=m.label)||void 0===u?void 0:u.show)&&void 0!==d?d:!1!==x),S=`${o.qInfo.qId}-${n.childRefId}`;return v.createElement(gc,{className:`${bh.TAB} ${t===n.childRefId?bh.ACTIVE_TAB:""}`,disabled:p,id:`tab-${S}`,value:n.childRefId,title:n.label,label:E?v.createElement(Kh,{label:n.label,id:S}):void 0,icon:b?v.createElement(Xh,{libraryInfo:f,chart:n,iconPosition:y,id:S}):"",iconPosition:y,key:n.childRefId,"data-testid":`container-tab-${n.childRefId}`,sx:{textAlign:"vertical"!==c||o.showIcons?"center":"start",minWidth:"vertical"===c?"100%":void 0,minHeight:Wh.TABS_HEIGHT,padding:"6px 16px","&:hover":{paddingBottom:"4px"},"&.Mui-disabled":{opacity:"inherit"}},"aria-label":n.label,"aria-controls":`tab-panel-${S}`,tabIndex:a&&t===n.childRefId?0:-1})}))))},Zh=({models:e,renderHelper:t,activeTabId:n,handleChangeTab:o,env:r})=>{const{modifiedLayout:i,embed:a,interactions:l,options:s,styleModel:c,accessibility:d}=e,u=i.objects,p=l.edit||!!u.find((e=>0!==e.condition)),h=i.showTabs&&p,f="left"===i.orientation?"row":"column",m=c.getStyleClasses();return v.createElement(Sl,{sx:{display:"flex",flexDirection:f,height:"100%",width:"100%",direction:s.direction,...m}},h&&v.createElement(Qh,{models:e,activeTabId:n,handleChangeTab:o}),u.map((e=>{const o=`tab-panel-${i.qInfo.qId}-${e.childRefId}`,c=n===e.childRefId&&!Uh(e,l);return v.createElement("div",{role:"tabpanel",id:o,key:o,hidden:!c,style:{height:"100%",width:"100%"}},c&&v.createElement(Yh,{chartObject:e,renderHelper:t,direction:s.direction,embed:a,accessibility:d,interactions:l,env:r}))})))};let Jh=function(e){return e.COPY="copy",e.PASTE="paste",e.RESET_COPY_BUFFER="resetCopyBuffer",e}({}),ef=function(e){return e.COPY="copy",e.PASTE="paste-and-replace",e.DUPLICATE="duplicate",e.DELETE="delete",e.CUT="cut",e.EDIT_PROPERTIES="edit",e.ZOOM_IN="zoom-in",e.VISUAL_EXPLORATION="visual-exploration",e.MONITOR_IN_HUB="addto",e.TAKE_SNAP_SHOT="take-snapshot",e.SNAP_SHOT_GROUP="snapshotGroup",e.REORDER_LAYERS_GROUP="reorder-layers-group",e.BRING_TO_FRONT="bring-to-front",e.BRING_FORWARD="bring-forward",e.SEND_TO_BACK="send-to-back",e.SEND_BACKWARDS="send-backwards",e.CONTAINER_HEADER="container-header",e.CHART_HEADER="chart-header",e.ALERT_GROUP="alertGroup",e.ADD_TO_MASTER_ITEMS="add-to-master-items",e.UNLINK_VISUALIZATION="unlink",e.DEVELOPER="object-developer",e.SHOW_DETAILS="object-info",e.EXPLAIN_KEY_DRIVERS="explainKeyDrivers",e.SUBSCRIBE="subscribe",e.NOTES_GROUP="notesGroup",e.DOWNLOAD="download",e.SHARE_IMAGE="share",e}({});const tf=[ef.PASTE,ef.ZOOM_IN,ef.VISUAL_EXPLORATION],nf=[ef.VISUAL_EXPLORATION,ef.ALERT_GROUP,ef.SHOW_DETAILS,ef.EXPLAIN_KEY_DRIVERS],of=[ef.DELETE,ef.CUT,ef.ADD_TO_MASTER_ITEMS,ef.UNLINK_VISUALIZATION],rf=[ef.PASTE],af=(e,t)=>{const{childRefId:n}=e.model.layout,o=t.objects.find((e=>e.childRefId===n));return{...e,additionalData:{label:null==o?void 0:o.label}}},lf=(e,t,n,o,r)=>{const i=t.getSupportFunction(ef.COPY);if(!i)return void e.deleteItem(ef.COPY);const a=()=>{i(af(n,o)).catch((()=>{}))},l=e.items.find((e=>e.id===ef.COPY));if(l)l.updateItem({select:a});else if(r){const t=e.items.findIndex((e=>e.id===ef.CUT)),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.copy",tid:ef.COPY,id:ef.COPY,icon:"copy",select:a,items:[]},n)}},sf=e=>e.interactions.edit&&!e.modifiedLayout.qExtendsId,cf=async(e,t,n,o)=>{const r=t.getBuilder("default");if(!r)return;const i=await r();i.addItem({translation:"contextMenu.containerOptionsHeader",tid:ef.CONTAINER_HEADER,id:ef.CONTAINER_HEADER,bold:!0,items:[]},0);const a=sf(n);i.items.forEach((e=>{(nf.includes(e.id)||!a&&rf.includes(e.id))&&i.deleteItem(e.id)})),a&&await(async(e,t,n)=>{var o;const r=t.getSupportFunction(Jh.PASTE),i=await(null==r||null===(o=r())||void 0===o?void 0:o.catch((()=>{})));if(!i||yd.includes(i.template))return void e.deleteItem(ef.PASTE);const a=()=>{n()},l=e.items.find((e=>e.id===ef.PASTE));if(l)l.updateItem({translation:"contextMenu.paste",select:a});else{const t=e.items.findLastIndex((e=>e.id===ef.COPY||e.id===ef.DEVELOPER||e.id===ef.CONTAINER_HEADER)),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.paste",tid:ef.PASTE,id:ef.PASTE,icon:"paste",select:a,items:[]},n)}})(i,t,o),e.updateItem({items:i.items}),1===e.items.length&&e.deleteItem(ef.CONTAINER_HEADER)},df=e=>{const t={[ef.MONITOR_IN_HUB]:!0,[ef.SUBSCRIBE]:!0,[ef.NOTES_GROUP]:!0,[ef.DOWNLOAD]:!0,[ef.SHARE_IMAGE]:!0};e.items.forEach((n=>{t[n.id]?e.deleteItem(n.id):n.items&&df(n)}))},uf=(e,t,n,o,r,i)=>a=>{const{dataHandler:l,modifiedLayout:s}=o;if(sf(o)){n.isInvalid||(((e,t,n,o)=>{const{model:r,modifiedLayout:i}=n,a=e.items.findLastIndex((e=>e.id===ef.CHART_HEADER||e.id===ef.REORDER_LAYERS_GROUP)),l=a>=0?1+a:void 0;e.addItem({translation:"Object.Container.Props.EditProperties",tid:ef.EDIT_PROPERTIES,id:ef.EDIT_PROPERTIES,icon:ef.EDIT_PROPERTIES,items:[],select:()=>{const{childRefId:e}=t.model.layout,n=i.objects.find((t=>t.childRefId===e)),a=null==n?void 0:n.label,{sense:l}=o.anything,s=r;l.propertyPanel.show({model:t.model,parent:s,headerLabel:a})}},l)})(a,n,o,r),((e,t,n,o,r,i)=>{const a=o.getSupportFunction(ef.COPY);if(!a)return void e.deleteItem(ef.CUT);const l=()=>{r&&a(af(n,i)).then((async()=>{await(null==r?void 0:r.deleteChildren([t]))})).catch((()=>{}))},s=e.items.find((e=>e.id===ef.CUT));if(s)s.updateItem({select:l});else{const t=e.items.findLastIndex((e=>e.id===ef.ADD_TO_MASTER_ITEMS||e.id===ef.UNLINK_VISUALIZATION||e.id===ef.EDIT_PROPERTIES||e.id===ef.REORDER_LAYERS_GROUP||e.id===ef.DEVELOPER)),n=t>=0?1+t:void 0;e.addItem({translation:"contextMenu.cut",tid:ef.CUT,id:ef.CUT,icon:"cut",select:l,items:[]},n)}})(a,t,n,e,l,s),lf(a,e,n,s,!0),((e,t,n,o,r)=>{const i=t.getSupportFunction(Jh.COPY),a=t.getSupportFunction(Jh.PASTE);if(!i||!a)return void e.deleteItem(ef.DUPLICATE);const l=()=>{i(af(n,o)).then((()=>{r()})).catch((()=>{}))},s=e.items.find((e=>e.id===ef.DUPLICATE));if(s)s.updateItem({select:l});else{const t=e.items.findIndex((e=>e.id===ef.COPY)),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Duplicate",tid:ef.DUPLICATE,id:ef.DUPLICATE,icon:ef.DUPLICATE,items:[],select:l},n)}})(a,e,n,s,i)),((e,t,n)=>{const o=()=>{n&&(null==n||n.deleteChildren([t]).catch((()=>{})))},r=e.items.find((e=>e.id===ef.DELETE));if(r)r.updateItem({select:o});else{const t=e.items.findLastIndex((e=>e.id===ef.DUPLICATE||e.id===ef.ADD_TO_MASTER_ITEMS||e.id===ef.UNLINK_VISUALIZATION||e.id===ef.REORDER_LAYERS_GROUP||e.id===ef.DEVELOPER)),n=t>=0?1+t:void 0;e.addItem({translation:"Common.Delete",tid:ef.DELETE,id:ef.DELETE,icon:"bin",items:[],select:o},n)}})(a,t,l)}else lf(a,e,n,s,!1)},pf=(e,t,n,o)=>{m((async(r,i,a)=>{var l;if(!a)return!1;const s=((e,t)=>()=>{if(!e)return;const n=t.getSupportFunction(Jh.PASTE);n&&n().then((async({template:t,init:n,children:o,additionalData:r})=>{const{label:i}=r,a={label:i};n.qExtendsId?await e.addMasterObjectAsChild({initProps:n,children:o,objectInitProps:a}):await e.addVizAsChild({type:t,initProps:n,children:o,objectInitProps:a})})).catch((e=>{e&&t.getSupportFunction(Jh.RESET_COPY_BUFFER)}))})(n.dataHandler,a);if(await cf(r,a,n,s),df(r),!(e=>{var t;let n;n="qv-radial-contextmenu"===e.type?null===(t=e.touches[0])||void 0===t?void 0:t.target:e.target;return n&&((e,t)=>{let n=e;for(;n;){var o;if(null!==(o=n.classList)&&void 0!==o&&o.contains(t))return n;n=n.parentNode}return null})(n,bh.ACTIVE_TAB_PANEL)})(i))return!0;const c=null===(l=n.modifiedLayout.objects.find((t=>t.childRefId===e)))||void 0===l?void 0:l.id;if(!c)return!0;const d=t.objectMap[c];if(!d)return!0;const u=uf(a,e,d,n,o,s),p=await(async(e,t,n,o)=>{const r=sf(n),i=e.getBuilder("object");if(!i)return;const a=await i(t);return a.addItem({translation:"contextMenu.chartOptionsHeader",tid:ef.CHART_HEADER,id:ef.CHART_HEADER,bold:!0,items:[]},0),o(a),a.items.forEach((e=>{(tf.includes(e.id)||!r&&of.includes(e.id))&&a.deleteItem(e.id)})),1===a.items.length&&a.deleteItem(ef.CHART_HEADER),a})(a,d,n,u);return!p||(r.items.length>0&&p.addItem({translation:"contextMenu.subMenuContainerOptions",tid:"tabbed-container-menu",id:"tabbed-container-menu",icon:"tabbed-container",items:[...r.items]},p.items.length),r.updateItem({items:p.items}),!0)}))},hf=({element:o,models:r,env:a})=>{var l;const s=((e,o)=>{const[r,i]=n(void 0);return t((()=>{if(0===e.getElementsByClassName(o).length){const t=document.createElement("div");t.className=o,e.appendChild(t);const n=Ed(t);i(n)}}),[e,o]),r})(o,"init-component"),{options:c,modifiedLayout:d,interactions:u,model:p}=r,{cachedTabId:h,defaultTabId:m,objects:b,qChildList:g}=d,y=gd(c.direction),x=(t=>{const{viewState:n}=e(),{snapshotData:o}=t;if(o){var r;const{layouts:e}=o.objectsData;return{layouts:e,viewStates:null===(r=o.viewState)||void 0===r?void 0:r.viewStates}}if(n){const{viewStates:e}=n;return{viewStates:e}}})(d),E=h||m||(null===(l=b[0])||void 0===l?void 0:l.childRefId)||"",S={modifiedLayout:d,activeTabId:E,env:a},[C,w]=Eh(S);w(S);const R=i((()=>d.objects.filter((e=>E===e.childRefId))),[E,d.objects]),{renderHelper:A}=(e=>{const{visibleLayoutObjects:o,options:r}=e,[i]=n(new Bh(e)),[,a]=n(r);return i.dependencyData=e,f((async()=>{var e,t;return a((e=>(e!==r&&o.forEach((e=>i.recreateMap.set(e.id,!0))),r))),i.syncObjects(o)?null===(t=i.createTimerForRendering())||void 0===t?void 0:t.promise:null===(e=i.resolver)||void 0===e?void 0:e.promise}),[o,r]),t((()=>()=>{i.destroy()}),[i]),{renderHelper:i}})({modifiedLayout:d,visibleLayoutObjects:R,viewState:x,options:c});pf(E,A,r,a);const[k]=n({current:void 0}),I=i((()=>e=>{(async({model:e,patchList:t})=>{if(null!=e&&e.applyPatches){const n=await e.getEffectiveProperties(),o=[];t.forEach((e=>{const{newValue:t,propertyName:r}=e,i=void 0!==n[r]?"Replace":"Add";t?o.push({qPath:`/${r}`,qOp:i,qValue:t&&JSON.stringify(t)}):"Replace"===i&&o.push({qPath:`/${r}`,qOp:"Remove"})})),o.length>0&&await e.applyPatches(o,!0)}})({model:p,patchList:[{newValue:e,propertyName:"cachedTabId"}]})}),[p]),L=i((()=>({setSelected:e=>{var t;const n=null===(t=C.modifiedLayout.objects.find((t=>t.id===e[0])))||void 0===t?void 0:t.childRefId;n?I(n):k.current=e[0]}})),[I,C,k]);t((()=>{const e=(({chartObjects:e,activeTabId:t})=>{var n;return!Vh(e,t)&&e.length>0?null===(n=e[0])||void 0===n?void 0:n.childRefId:t})({chartObjects:C.modifiedLayout.objects,activeTabId:C.activeTabId});if(e!==C.activeTabId)I(e);else if(k.current){var t;const e=null===(t=C.modifiedLayout.objects.find((e=>e.id===k.current)))||void 0===t?void 0:t.childRefId;e&&I(e)}k.current=void 0}),[null==d?void 0:d.objects.length,C,k,I]),t((()=>{const e=(({chartObjects:e,activeTabId:t,interactions:n})=>{const o=Vh(e,t);if(!o||Uh(o,n)){const n=e.find((e=>0!==e.condition));return(null==n?void 0:n.childRefId)||t}return t})({chartObjects:C.modifiedLayout.objects,activeTabId:C.activeTabId,interactions:u});e!==C.activeTabId&&I(e)}),[u,null==d?void 0:d.objects,C,I]);const _=0===g.qItems.length&&u.edit;return t((()=>{null==s||s.render(v.createElement(Ai,{theme:y},_&&v.createElement(Nh,{Icon:jh,dataHandler:r.dataHandler,modifiedLayout:r.modifiedLayout,translator:r.translator,sharedContainerUtilities:L}),!_&&v.createElement(Zh,{models:r,renderHelper:A,activeTabId:E,handleChangeTab:I,env:a})))}),[s,r,y,_,A,E,L,I,a]),{renderHelper:A,sharedContainerUtilities:L,activeTabId:E}};var ff={targets:[]};const mf={showTitles:!0,title:"",subtitle:"",footnote:"",disableNavMenu:!0,showDetails:!1,objects:[],qChildListDef:{qData:{visualization:"/visualization",qExtendsId:"/qExtendsId",title:"/title",childRefId:"/childRefId",showCondition:"/showCondition"}},showTabs:!0,useScrollButton:!0,useDropdown:!1,showIcons:!1,components:[],defaultTabId:"",orientation:"top",fontsUsed:[]};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===n&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".init-component {\n height: 100%;\n overflow: hidden;\n}\n");const bf=(e,t)=>{let n=!0;const o=t.objects.reduce(((t,o)=>{const r=o.id;return 0!==o.condition?(e[r]&&(e=>e.supportExport())(e[r])&&(n=!1,t.objectMap[r]=e[r]),t.objects.push(o),t):t}),{objects:[],objectMap:{}});return n?{objects:[],objectMap:{}}:o};function gf(o){const r=new vd({translator:o.translator});return{qae:{properties:mf,data:ff},ext:ch({env:o,propertyHandlerData:r}),component(){const a=$h(o),l=u();i((()=>{!function(e){if(e&&e.get&&e.add){const t="LayoutContainer.EmptyList.AddContent";if(e.get(t)!==t)return;Object.keys(T).forEach((t=>{e.add(T[t])}))}}(l)}),[l]);const{dataHandler:s,model:c,accessibility:d,setAccessibility:p,interactions:h,element:f,modifiedLayout:m}=a,{renderHelper:g,sharedContainerUtilities:v,activeTabId:y}=hf({element:f,models:a,env:o});(({propertyHandlerData:n,element:o,sharedContainerUtilities:r,translator:i,containerId:a,dataHandler:l,renderHelper:s})=>{const c=e();a&&n.sync({containerId:a,element:o,sharedContainerUtilities:r,translator:i,dataHandler:l,renderHelper:s}),t((()=>{n.setMuiTheme(c.direction)}),[c.direction,n]),t((()=>()=>{a&&n.destroy(a)}),[a,n,c.direction])})({containerId:(null==c?void 0:c.id)||"",element:f,sharedContainerUtilities:v,translator:l,dataHandler:s,propertyHandlerData:r,renderHelper:g});const[x,E]=n(!0);(({isContainerActive:e,activeTabId:n,modifiedLayout:o,renderHelper:r})=>{const a={modifiedLayout:o,activeTabId:n,renderHelper:r,isContainerActive:e},[l,s]=Eh(a);s(a);const c=i((()=>()=>{const e=Hd(l.modifiedLayout);Object.entries(l.renderHelper.objectMap).forEach((([t,n])=>{const o=l.isContainerActive&&l.activeTabId===e[t];"setIsActive"in n&&n.setIsActive(o)}))}),[l]);t((()=>{l.isContainerActive&&c()}),[r.objectMap,c,l]),t((()=>{c()}),[e,c])})({isContainerActive:x,activeTabId:y,renderHelper:g,modifiedLayout:m}),xh({element:f,accessibility:d,setAccessibility:p,renderHelper:g,interactions:h});const{getViewState:S}=hh(g,bf);b((()=>({getViewState:S,getChildrenObjects:()=>(e=>e.map((e=>{if(e.canReceive){const t=e=>"libraryitem"===e.type&&("field"===e.item.type||"measure"===e.item.type||"dimension"===e.item.type);return{...e,canReceive:n=>t(n)&&e.canReceive(n)}}return e})))(g.getChildrenObjects()),updateActiveState(e){E(e)}})),[])}}}export{gf as default};