@nebula.js/sn-pivot-table 4.4.0 → 4.4.1

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-pivot-table v4.4.0
2
+ * @nebula.js/sn-pivot-table v4.4.1
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -171,4 +171,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
171
171
  animation-iteration-count: infinite;
172
172
  animation-delay: 200ms;
173
173
  }
174
- `),tM.rippleVisible,sM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tM.child,tM.childLeaving,uM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.childPulsate,cM,(({theme:e})=>e.transitions.easing.easeInOut)),fM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,rM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=Nv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(pM,{classes:{ripple:fl(i.ripple,tM.ripple),rippleVisible:fl(i.rippleVisible,tM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,tM.ripplePulsate),child:fl(i.child,tM.child),childLeaving:fl(i.childLeaving,tM.childLeaving),childPulsate:fl(i.childPulsate,tM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(dM,hr({className:fl(tM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function mM(e){return hv("MuiButtonBase",e)}const hM=gv("MuiButtonBase",["root","disabled","focusVisible"]),gM=["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"],bM=hS("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"},[`&.${hM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Er(n,gM),O=r.useRef(null),T=r.useRef(null),_=Ov(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Vv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return kv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=kv((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=kv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=kv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ov(t,j,O),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Yv({root:["root",t&&"disabled",r&&"focusVisible"]},mM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(bM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?Yr.jsx(fM,hr({ref:_,center:i},D)):null]}))}));function yM(e){return hv("MuiTypography",e)}gv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],SM=hS("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${lb(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),EM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},CM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wM=r.forwardRef((function(e,t){const r=YL({props:e,name:"MuiTypography"}),n=(e=>CM[e]||e)(r.color),o=uv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=EM}=o,f=Er(o,xM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||EM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Yv({root:["root",i,"inherit"!==e.align&&`align${lb(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},yM,a)})(m);return Yr.jsx(SM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const RM=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=Ov(r.isValidElement(n)?ey(n):null,t);if(Cv((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Cv((()=>{if(a&&!i)return Pv(t,a),()=>{Pv(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),IM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LM={entering:{opacity:1},entered:{opacity:1}},MM=r.forwardRef((function(e,t){const n=Fx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,IM),x=r.useRef(null),S=Ov(x,ey(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{KL(e);const r=XL({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=XL({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},LM[e],g,l.props.style),ref:S},t))}))}));function DM(e){return hv("MuiBackdrop",e)}gv("MuiBackdrop",["root","invisible"]);const AM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],PM=hS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),kM=r.forwardRef((function(e,t){var r,n,o;const i=YL({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=MM,transitionDuration:g}=i,b=Er(i,AM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Yv({root:["root",r&&"invisible"]},DM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(PM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),OM=gv("MuiBox",["root"]),TM=qx(),_M=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ev);return r.forwardRef((function(e,r){const l=lv(n),s=uv(e),{className:u,component:c="div"}=s,d=Er(s,fv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Kg,defaultTheme:TM,defaultClassName:OM.root,generateClassName:pv.generate});function qM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NM(e){return parseInt(Av(e).getComputedStyle(e).paddingRight,10)||0}function FM(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&qM(e,o)}))}function jM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function zM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Dv(e);return t.body===e?Av(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uv(Dv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${NM(n)+e}px`;const t=Dv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${NM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Dv(n).body;else{const t=n.parentElement,r=Av(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const GM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BM(e){const t=[],r=[];return Array.from(e.querySelectorAll(GM)).forEach(((e,n)=>{const o=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!==o&&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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function $M(){return!0}function WM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=BM,isEnabled:l=$M,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=Ov(ey(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HM=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&qM(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);FM(t,e.mount,e.modalRef,n,!0);const o=jM(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=jM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=zM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=jM(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&qM(e.modalRef,t),FM(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&qM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=HM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=Ov(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=kv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Dv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=kv((e=>{m.current=e,e&&(d&&w()?E():h.current&&qM(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Xv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Mv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Mv((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function UM(e){return hv("MuiModal",e)}gv("MuiModal",["root","hidden","backdrop"]);const YM=["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"],KM=hS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XM=hS(kM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JM=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=YL({name:"MuiModal",props:e}),{BackdropComponent:c=XM,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Er(u,YM),k=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=VM(hr({},k,{rootRef:t})),z=hr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Yv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},UM,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:KM,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Qv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Qv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(RM,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(WM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),ZM=gv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eD(e){return`scale(${e}, ${e**2})`}const tD={entering:{opacity:1,transform:eD(1)},entered:{opacity:1,transform:"none"}},rD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,QM),v=Nv(),y=r.useRef(),x=Fx(),S=r.useRef(null),E=Ov(S,ey(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{KL(e);const{duration:r,delay:n,easing:o}=XL({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:rD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=XL({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:rD?o:.666*o,delay:rD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=eD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:eD(.75),visibility:"exited"!==e||l?void 0:"hidden"},tD[e],m,i.props.style),ref:E},t))}))}));function oD(e){return hv("MuiLink",e)}nD.muiSupportAuto=!0;const iD=gv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),aD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lD=({theme:e,ownerState:t})=>{const r=(e=>aD[e]||e)(t.color),n=ub(e,`palette.${r}`,!1)||t.color,o=ub(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xy(n,.4)},sD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uD=hS(wM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${lb(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:lD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iD.focusVisible}`]:{outline:"auto"}}))),cD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,sD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Vv(),[v,y]=r.useState(!1),x=Ov(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Yv({root:["root",`underline${lb(o)}`,"button"===r&&"button",n&&"focusVisible"]},oD,t)})(S);return Yr.jsx(uD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(aD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),dD=r.createContext({});function pD(e){return hv("MuiList",e)}gv("MuiList",["root","padding","dense","subheader"]);const fD=["children","className","component","dense","disablePadding","subheader"],mD=hS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,fD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Yv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},pD,t)})(p);return Yr.jsx(dD.Provider,{value:d,children:Yr.jsxs(mD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),gD=gv("MuiListItemIcon",["root","alignItemsFlexStart"]),bD=gv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),vD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function xD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function SD(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ED(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&SD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const CD=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,vD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cv((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Uv(Dv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ov(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(hD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Dv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ED(t,n,u,s,yD);else if("ArrowUp"===r)e.preventDefault(),ED(t,n,u,s,xD);else if("Home"===r)e.preventDefault(),ED(t,null,u,s,yD);else if("End"===r)e.preventDefault(),ED(t,null,u,s,xD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&SD(n,o);o.previousKeyMatched&&(l||ED(t,n,!1,s,yD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function wD(e){return hv("MuiPopover",e)}gv("MuiPopover",["root","paper"]);const RD=["onEntering"],ID=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],LD=["slotProps"];function MD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function DD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function AD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PD(e){return"function"==typeof e?e():e}const kD=hS(JM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OD=hS(eM,{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}),TD=r.forwardRef((function(e,t){var n,o,i;const a=YL({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=nD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Er(a.TransitionProps,RD),L=Er(a,ID),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ov(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),k=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"]},wD,t)})(P),O=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=PD(s),t=(e&&1===e.nodeType?e:Dv(D.current).body).getBoundingClientRect();return{top:t.top+MD(t,u.vertical),left:t.left+DD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:MD(e,S.vertical),horizontal:DD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:AD(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Av(PD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:AD(r)}}),[s,d,O,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.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,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Av(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Dv(PD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:kD,B=null!=(i=null==y?void 0:y.paper)?i:OD,$=Qv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(k.paper,null==M?void 0:M.className)}),W=Qv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(k.root,f)}),{slotProps:H}=W,V=Er(W,LD);return Yr.jsx(G,hr({},V,!Kv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function _D(e){return hv("MuiMenu",e)}gv("MuiMenu",["root","paper","list"]);const qD=["onEntering"],ND=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},zD=hS(TD,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GD=hS(OD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BD=hS(CD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$D=r.forwardRef((function(e,t){var n,o;const i=YL({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,qD),S=Er(i,ND),E=(()=>{const e=r.useContext(ay);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"],list:["list"]},_D,t)})(C),R=a&&!u&&p,I=r.useRef(null);let L=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===L)&&(L=t))}));const M=null!=(n=v.paper)?n:GD,D=null!=(o=y.paper)?o:f,A=Qv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Qv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx(zD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FD:jD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(BD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===L||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function WD(e){return hv("MuiMenuItem",e)}const HD=gv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UD=hS(vM,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},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"}},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${HD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${HD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xy(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})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${HD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZM.inset}`]:{marginLeft:52},[`& .${bD.root}`]:{marginTop:0,marginBottom:0},[`& .${bD.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}})))),YD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,VD),m=r.useContext(dD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Cv((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Yv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},WD,a))})(n),y=Ov(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(dD.Provider,{value:h,children:Yr.jsx(UD,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),KD=hS(_M,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),XD=hS("div")({position:"absolute",left:0,bottom:0}),JD=hS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),ZD=hS("div")((()=>({...cg}))),QD=hS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),eA=hS($D)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tA=hS(YD,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),rA=hS("span")({textOverflow:"ellipsis",overflow:"hidden"}),nA=hS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var oA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(oA||(oA={}));const iA=(e,t)=>({qExcludeList:t===oA.Expand,qPos:{qDimName:e,qElemNo:[]}}),aA=`${kC}/qExpansionState`,lA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:iA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=aA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${aA}/-`,t=JSON.stringify(o)):(r=`${aA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},sA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:lA({...o,action:oA.Expand}),collapseCallback:lA({...o,action:oA.Collapse})}},uA={[qE.Sorting]:!0,[qE.Selections]:!0,[qE.Searching]:!0},cA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=DC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=IC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:I,textDecoration:L,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,k=c(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=HL(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=wL(B,"flex-start");return Yr.jsxs(KD,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(JD,{children:[O?Yr.jsx(ZD,{children:Yr.jsx($L,{height:12})}):null,Yr.jsx(QD,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:I,textDecoration:L,justifyContent:$,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:x,anchorRef:k,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:uA,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:sA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,env:S,model:E&&"setActiveField"in E?E:void 0}),Yr.jsx(XD,{ref:f}),Yr.jsx(XD,{ref:k})]}):null,Yr.jsx(UL,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},dA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=DC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pA(e,t,r[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:r},e),t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),mA=d(fA);function hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hA(e,t,r[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:r},e),t.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),t.createElement("use",{fillRule:"evenodd"})),bA=d(gA),vA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=DC(),{interactions:o,translator:i}=IC(),{isActive:a}=eL(),{dataModel:l}=gR(),{setIsAdjustingWidth:s}=WL([l]);if(!(!!o.active&&!a))return null;const u=VL(n,{isLeftColumn:!0});return Yr.jsx(ES,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*yR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void l.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*yR);r(i),l.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yA(e,t,r[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:r},e),t.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),SA=d(xA),EA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=IC(),{layoutService:d,effectivePropertiesService:p}=DC(),{open:f,setOpen:m,handleOpenMenu:h}=HL();return Yr.jsxs(tA,{onClick:h,isActive:f,children:[Yr.jsx(rA,{children:e.label}),Yr.jsxs(nA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(SA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:uA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:sA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(XD,{ref:n}),Yr.jsx(XD,{ref:r})]}):null]})]})},CA=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===TC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===TC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==TC&&e<r.length-1)},wA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=DC(),{interactions:a,translator:l}=IC(),{dataModel:s,gridSectionsData:{headersData:d}}=gR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=WL([s]),I=e=>{e.stopPropagation()},L={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(KD,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...L,...pg,color:g},onClick:e=>{!a.active||JI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(JD,{justifyContent:"flex-start",children:[Yr.jsx(QD,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(bA,{}):Yr.jsx(mA,{}),Yr.jsx(XD,{ref:m})]}),Yr.jsx(eA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==TC&&Yr.jsx("li",{role:"presentation",onClick:I,onKeyDown:I,children:Yr.jsx(EA,{cell:r,changeSortOrder:t})}),CA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(AS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(vA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},RA=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,IA={display:"grid",width:"fit-content"},LA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=DC(),{gridSectionsData:{headersData:u}}=gR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...IA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(dA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(RA({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(wA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(cA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var MA=h(LA);const DA=(e,t,r,n)=>{const{layoutService:o}=DC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},AA=(e,t)=>{Wg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},PA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},kA=(e,t,r,n)=>{var o;if(n)return;const i=r?"flex-start":"center";var a,l;if(e.representation.type===Ut.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:r}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return wL(r,i)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return wL(u,i)},OA=()=>{},TA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=DC(),{interactions:m}=IC(),{isLocked:h,createMouseDownHandler:g,createMouseOverHandler:b}=eL(),{showLastBorder:v}=n,y=h(r)||r.isLockedByDimension,x=!(y||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),S=x?g(c,(e=>PA(e,n))):void 0,E=x?b(c):void 0,C=SR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,v),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"0px 4px",cursor:dL(x),background:aL({styleService:p,isCellSelected:s,cell:r,isCellLocked:y}),zIndex:l?void 0:f.size.x-r.x,justifyContent:kA(r,f,l,C),display:"flex",...f.isIndentModeEnabled&&l&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onMouseDown:S,onMouseOver:E,onKeyUp:OA,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},_A=e=>{e.stopPropagation()},qA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:_A,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),NA=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,qA({href:e,text:r,interactions:n,color:o}),r),FA=G();FA.use(z),FA.renderer.prio(["canvas"]);const jA=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=DC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:rL(e),alignItems:n,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(EL,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:rL(e)},children:!!t.labelStructure&&xL(t.labelStructure)})]})},zA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,GA=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(cD,{...qA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&zA(r)]}),BA=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),$A=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{isActive:n}=eL(),{layoutService:o,styleService:i}=DC(),{interactions:a}=IC();let l=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:lL({cell:e,styleService:t,isCellSelected:r}),fontWeight:sL({cell:e,styleService:t}),fontStyle:uL({cell:e,styleService:t}),textDecoration:cL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:i,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,n=r&&t&&t.suffix?jA:CL;return Yr.jsx(n,{cell:e,representation:e.representation,textStyle:s,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:kA(e,o,r)})}if(e.representation.type===Ut.Link&&!n&&!e.isTotal){const t=r&&e.representation.labelStructure?GA:NA;l=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:a,color:e.expressionColor.color})}return Yr.jsx(BA,{textStyle:{...s,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:rL(e)}:{}},children:l})},WA=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=DC(),{isSelected:i}=eL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=WL([r]),f=PA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=GI(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(BI,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(TA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs($I,{verticalAlign:rL(f),width:WI(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(mL,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx($A,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(UL,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var HA=t.memo(WA,II);const VA=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},UA=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},YA=(e,t)=>r=>{e.current&&(e.current[t]=r)},KA={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},XA={overflow:"hidden",willChange:"auto",flexShrink:0},JA=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=CC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=DC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=gR();AA(e,c),DA(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...KA,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=BC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=UA(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return Yr.jsx(EI,{ref:YA(e,s),style:{...XA,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:g,children:HA},m)}))})};var ZA=h(JA);const QA={overflow:"hidden",willChange:"auto"},eP={...dg,borderWidth:"0px 0px 0px 1px"},tP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=DC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d={...eP,borderColor:l,height:n};AA(e,c),DA(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Yr.jsx("div",{style:{width:r,height:n,...eP}}):Yr.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=UA(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=RA({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?BC(h):`empty ${l}`;return Yr.jsx(EI,{ref:YA(e,l),style:QA,height:t(),width:r,itemCount:d,itemSize:VA({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:f,children:HA},g)}))})};var rP=h(tP);const nP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=DC(),r=GR(),n=(()=>{const{model:e}=IC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=zR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=DC(),{gridSectionsData:{headersData:i}}=gR(),{measureText:a}=zg(o.header),l=OR({tableWidth:e}),s=TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+vR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:I,headerGridDims:L,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=GR(),{pageInfo:s}=CC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d=Math.min(l.height*yR,Math.max(l.height*yR-25,l.height-t-a)),p=l.width*yR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),I=Math.min(R,f),L=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,I-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,L-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),O=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=DC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs($R,{style:I,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(MA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:L.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(VR,{style:k.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(BR,{style:M.fullSizeWrapper,children:Yr.jsx(UR,{style:M.stickyWrapper,children:Yr.jsx(rP,{topGridRef:s,rowHightCallback:O,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(VR,{style:k.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(BR,{style:D.fullSizeWrapper,children:Yr.jsx(UR,{style:D.stickyWrapper,children:Yr.jsx(ZA,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(VR,{style:k.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(BR,{style:A.fullSizeWrapper,children:Yr.jsx(UR,{style:A.stickyWrapper,children:Yr.jsx(zL,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},oP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=IC(),{pageInfo:o,updatePageInfo:i,rect:a}=CC(),{layoutService:l}=DC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(nP,{}):null,Yr.jsx(PC,{}),Yr.jsx(SC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},iP={WHITE:"#FFFFFF",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_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_100_15:"rgba(255, 255, 255, 0.15)",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)"},aP=12,lP=14,sP=16,uP=24,cP=3,dP=300,pP=400,fP=600,mP=700,hP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(iP.GREYSCALE_0,.05),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var gP;function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(null,arguments)}Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var vP,yP=function(e){return r.createElement("svg",bP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),gP||(gP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(null,arguments)}var SP=function(e){return r.createElement("svg",xP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),vP||(vP=r.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 EP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function CP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function wP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function RP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function IP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function LP({className:e}){return Yr.jsx(EP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}function MP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:iP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(yP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(RP,{}),Yr.jsx(IP,{}),Yr.jsx((function(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(CP,{}),Yr.jsx(wP,{}),Yr.jsx(yP,{style:{color:iP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const DP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var AP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:iP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(yP,{"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 ${iP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,borderRadius:cP,backgroundColor:iP.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 ${iP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:iP.WHITE,color:iP.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:cP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:iP.PURPLE,"&.Mui-focusVisible":{borderColor:iP.PURPLE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:iP.GREEN,"&.Mui-focusVisible":{borderColor:iP.GREEN,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:iP.BLUE,"&.Mui-focusVisible":{borderColor:iP.BLUE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:iP.ORANGE,"&.Mui-focusVisible":{borderColor:iP.ORANGE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:iP.RED,"&.Mui-focusVisible":{borderColor:iP.RED,boxShadow:`0 0 0 3px ${Lv(iP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:iP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:iP.PURPLE_PALE},"&:active":{backgroundColor:iP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:iP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:iP.ORANGE_PALE},"&:active":{backgroundColor:iP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:iP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:iP.RED_PALE},"&:active":{backgroundColor:iP.RED_DARK},"&.Mui-focusVisible":{borderColor:iP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:iP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:iP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cP,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:aP,borderRadius:cP,color:iP.TEXT_PRIMARY,backgroundColor:iP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:iP.GREYSCALE_0_05,color:iP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:iP.GREEN,borderColor:iP.GREEN},"&.MuiChip-outlinedInfo":{color:iP.BLUE,borderColor:iP.BLUE},"&.MuiChip-outlinedWarning":{color:iP.ORANGE,borderColor:iP.ORANGE},"&.MuiChip-outlinedError":{color:iP.RED,borderColor:iP.RED}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cP,boxShadow:"none",backgroundColor:iP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:iP.GREEN,borderColor:iP.GREEN},outlinedSecondary:{color:iP.BLUE,borderColor:iP.BLUE},label:{fontFamily:hP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(yP,{"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:cP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cP,fontSize:lP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:iP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${iP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:iP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:iP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cP,border:`solid 1px ${iP.GREYSCALE_0_15}`,color:iP.GREYSCALE_0_60,marginRight:0,width:uP,height:uP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${iP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:iP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:aP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:iP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:iP.GREYSCALE_25,fontSize:aP,fontFamily:hP.FONT_FAMILY,fontWeight:fP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:iP.TEXT_PRIMARY},"&.Mui-error":{color:iP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:iP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:iP.TEXT_SECONDARY,content:"'(required)'",fontWeight:pP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lP,lineHeight:"16px",backgroundColor:iP.WHITE,borderRadius:cP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_05}`,borderColor:iP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.RED}`,boxShadow:`0px 0px 0px 1px ${iP.RED}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_10}`,borderColor:iP.GREYSCALE_0_10,backgroundColor:iP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:iP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:iP.GREYSCALE_0_15,borderRadius:cP,boxShadow:`inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(yP,{...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:iP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:iP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&:focus":{backgroundColor:iP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:iP.GREYSCALE_0_30,"&:hover":{backgroundColor:iP.GREYSCALE_0_0,borderColor:iP.GREYSCALE_0_15},"& ~svg":{color:iP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:iP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:aP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:aP,fontWeight:fP,color:iP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(RP,{}),checkedIcon:Yr.jsx(IP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:iP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:iP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:iP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(MP,{}),checkedIcon:Yr.jsx(CP,{}),indeterminateIcon:Yr.jsx(wP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:iP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:iP.GREYSCALE_0_55,color:iP.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:iP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:iP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:iP.GREYSCALE_0_55,"&:hover":{color:iP.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:iP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:iP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lP,color:iP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fP},secondary:{fontSize:aP,color:iP.GREYSCALE_45,fontWeight:pP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:iP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:aP,borderBottom:`solid 1px ${iP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lP,color:iP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.RED}}},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.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:iP.GREEN,height:"24px","&.Mui-disabled":{color:iP.GREYSCALE_0_15}},rail:{backgroundColor:iP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP,boxShadow:`inset 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.WHITE,boxShadow:`0px 1px 2px 0px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`,"&:hover":{borderRadius:cP,boxShadow:`0 2px 4px 0 ${iP.GREYSCALE_0_30}, 0 0 0 1px ${iP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:iP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:iP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:iP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:iP.GREYSCALE_0_15},markLabel:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:iP.WHITE,color:iP.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:iP.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:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:iP.GREYSCALE_0_15,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.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:lP,fontWeight:fP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${iP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,backgroundColor:iP.GREYSCALE_0_03,borderRadius:cP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:iP.GREYSCALE_25,"&.Mui-selected":{color:iP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cP,"&:hover":{backgroundColor:iP.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 ${iP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${iP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderRight:`1px solid ${iP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fP,backgroundColor:iP.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:iP.GREYSCALE_98,borderBottom:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderTop:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05,"&:hover":{backgroundColor:iP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:iP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(LP,{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 ${iP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lP,borderRadius:cP,padding:"7px 16px",border:`1px solid ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_60,color:iP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,border:`1px solid ${iP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:iP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`,border:`1px solid ${iP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:iP.GREYSCALE_25,backgroundColor:iP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:aP,height:24,width:24,padding:7},sizeLarge:{fontSize:sP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lP,borderRadius:cP}}},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:iP.GREYSCALE_20},tooltip:{backgroundColor:iP.GREYSCALE_20,fontSize:aP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...DP}:{}}))(t);const PP=e=>({mode:"light",primary:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},secondary:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},error:{ultraLight:iP.RED_ULTRA_LIGHT,light:iP.RED_PALE,main:iP.RED,dark:iP.RED_DARK,extraDark:iP.RED_EXTRA_DARK,contrastText:iP.WHITE},warning:{ultraLight:iP.ORANGE_ULTRA_LIGHT,light:iP.ORANGE_PALE,main:iP.ORANGE,dark:iP.ORANGE_DARK,extraDark:iP.ORANGE_EXTRA_DARK,contrastText:iP.WHITE},success:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},info:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},text:{primary:iP.TEXT_PRIMARY,secondary:iP.TEXT_SECONDARY,disabled:iP.GREYSCALE_0_30},action:{hover:iP.GREYSCALE_0_03,hoverOpacity:.03,selected:iP.GREYSCALE_0_05,selectedOpacity:.05,focus:iP.MISC_FOCUS_BORDER},amethyst:{ultraLight:iP.WHITE,main:iP.PURPLE,light:iP.PURPLE_PALE,dark:iP.PURPLE_DARK,extraDark:iP.GREYSCALE_0_0,contrastText:iP.WHITE},background:{paper:iP.WHITE,default:iP.GREYSCALE_95},divider:iP.GREYSCALE_0_15}),kP=(e="light",t=!1)=>((e,t=!1)=>({components:AP(0,t),palette:PP(),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:lP,fontWeightLight:dP,fontWeightRegular:pP,fontWeightMedium:fP,fontWeightBold:mP,htmlFontSize:lP,fontFamily:hP.FONT_FAMILY,button:{fontWeight:fP,fontSize:lP,textTransform:"none"},body1:{fontSize:sP,lineHeight:"24px"},body2:{fontSize:lP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:uP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:sP,fontWeight:fP,lineHeight:"16px"},h6:{fontSize:lP,fontWeight:fP,lineHeight:"16px"},caption:{color:iP.TEXT_SECONDARY},subtitle1:{fontSize:lP,color:iP.TEXT_SECONDARY},subtitle2:{fontSize:aP,color:iP.TEXT_SECONDARY}},shape:{borderRadius:cP}}))(0,t);const OP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=kP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),qx({...r,direction:e})}("ltr");e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(bS,{theme:a,children:Yr.jsx(LC,{...i,children:Yr.jsx(wC,{...n,children:Yr.jsx(tL,{selections:r,children:Yr.jsx(AC,{...o,children:Yr.jsx(bR,{children:Yr.jsx(oP,{})})})})})})})}))};var TP,_P,qP,NP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(TP||(TP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(_P||(_P={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(qP||(qP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(NP||(NP={}));const FP=e=>e?`${parseInt(e,10)}px`:void 0,jP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},zP=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),GP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",BP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",$P=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",WP=document.createElement("textarea");function HP(e){WP.value=e,document.body.appendChild(WP),WP.select(),WP.setSelectionRange(0,WP.value.length),document.execCommand("copy"),document.body.removeChild(WP)}WP.style.position="absolute",WP.style.left="-9999px",WP.setAttribute("readonly","");function VP(e){null==I||I(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{HP(r)})):HP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const UP=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Dg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(kC,0,0,!0),await e.expandLeft(kC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(kC,0,0,!0),await e.collapseLeft(kC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),YP=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(OC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:OC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===OC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),KP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Pg(e);return t.current=e,t})(cR(o));return Ng((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(ag,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(kC,dR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},XP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),JP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:XP({rowsPerPage:r,totalRowCount:e,page:t})}),ZP=15,QP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-ZP,0),u=Math.max(l+o-ZP,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=cR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=dR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(kC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var ek={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const tk=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(ek).forEach((t=>{e.add(ek[t])}))}(e)}),[e]),{translator:e,language:t}},rk=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>Gg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=k(),a=O(),l=T(),s=_(),u=kg(),c=((e,t)=>{const[r]=Ng((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=YP(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=qg(o,r),{translator:h,language:g}=tk(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...JP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...JP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=XP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:XP({...a,...e})})}}})(d,u),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),S=QP({rect:N(),layoutService:d,viewService:x,model:i,pageInfo:b}),[w,I]=KP({model:i,layoutService:d,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,k,O,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[TP.LineClamp])&&void 0!==i?i:oe(_P.Grid,qP.Grid,NP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[TP.ColumnLineClamp])&&void 0!==l?l:oe(_P.Grid,qP.Grid,NP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=jP(e,null==J?void 0:J[TP.Background]))&&void 0!==u?u:oe(_P.Dimension,qP.LabelName,NP.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=FP(null==J?void 0:J[TP.FontSize]))&&void 0!==d?d:oe(_P.Dimension,qP.LabelName,NP.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[TP.FontFamily])&&void 0!==f?f:oe(_P.Dimension,qP.LabelName,NP.FontFamily))&&void 0!==p?p:og,fontWeight:GP(null==J?void 0:J[TP.FontStyle],ig),fontStyle:BP(null==J?void 0:J[TP.FontStyle]),textDecoration:$P(null==J?void 0:J[TP.FontStyle]),color:null!==(m=null!==(h=jP(e,null==J?void 0:J[TP.FontColor]))&&void 0!==h?h:oe(_P.Dimension,qP.LabelName,NP.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=FP(null==Z?void 0:Z[TP.FontSize]))&&void 0!==b?b:oe(_P.Dimension,qP.LabelValue,NP.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[TP.FontFamily])&&void 0!==y?y:oe(_P.Dimension,qP.LabelValue,NP.FontFamily))&&void 0!==v?v:og,fontWeight:GP(null==Z?void 0:Z[TP.FontStyle],void 0),fontStyle:BP(null==Z?void 0:Z[TP.FontStyle]),textDecoration:$P(null==Z?void 0:Z[TP.FontStyle]),color:null!==(x=null!==(S=jP(e,null==Z?void 0:Z[TP.FontColor]))&&void 0!==S?S:oe(_P.Dimension,qP.LabelValue,NP.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=jP(e,null==Z?void 0:Z[TP.Background]))&&void 0!==C?C:oe(_P.Dimension,qP.LabelValue,NP.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=FP(null==Q?void 0:Q[TP.FontSize]))&&void 0!==R?R:oe(_P.Measure,qP.LabelValue,NP.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(I=null!==(L=null==Q?void 0:Q[TP.FontFamily])&&void 0!==L?L:oe(_P.Measure,qP.LabelValue,NP.FontFamily))&&void 0!==I?I:og,fontWeight:GP(null==Q?void 0:Q[TP.FontStyle],"normal"),fontStyle:BP(null==Q?void 0:Q[TP.FontStyle]),textDecoration:$P(null==Q?void 0:Q[TP.FontStyle]),color:null!==(M=null!==(D=jP(e,null==Q?void 0:Q[TP.FontColor]))&&void 0!==D?D:oe(_P.Measure,qP.LabelValue,NP.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=jP(e,null==Q?void 0:Q[TP.Background]))&&void 0!==P?P:oe(_P.Measure,qP.LabelValue,NP.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:GP(null==ee?void 0:ee[TP.FontStyle],"normal"),fontStyle:BP(null==ee?void 0:ee[TP.FontStyle]),textDecoration:$P(null==ee?void 0:ee[TP.FontStyle]),color:null!==(k=null!==(O=jP(e,null==ee?void 0:ee[TP.FontColor]))&&void 0!==O?O:oe(_P.Measure,qP.LabelName,NP.FontColor))&&void 0!==k?k:sg.FontSecondary,background:null!==(T=null!==(_=jP(e,null==ee?void 0:ee[TP.Background]))&&void 0!==_?_:oe(_P.Measure,qP.LabelName,NP.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:GP(null==te?void 0:te[TP.FontStyle],ig),fontStyle:BP(null==te?void 0:te[TP.FontStyle]),textDecoration:$P(null==te?void 0:te[TP.FontStyle]),color:null!==(q=null!==(N=jP(e,null==te?void 0:te[TP.FontColor]))&&void 0!==N?N:oe(_P.Total,qP.LabelValue,NP.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=jP(e,null==te?void 0:te[TP.Background]))&&void 0!==j?j:oe(_P.Total,qP.LabelValue,NP.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:GP(null==re?void 0:re[TP.FontStyle],"normal"),fontStyle:BP(null==re?void 0:re[TP.FontStyle]),textDecoration:$P(null==re?void 0:re[TP.FontStyle]),color:null!==(z=null!==(G=jP(e,null==re?void 0:re[TP.FontColor]))&&void 0!==G?G:oe(_P.Null,qP.LabelValue,NP.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=jP(e,null==re?void 0:re[TP.Background]))&&void 0!==$?$:oe(_P.Null,qP.LabelValue,NP.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=jP(e,null==ne?void 0:ne[TP.Border]))&&void 0!==H?H:oe(_P.Grid,qP.Grid,NP.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=jP(e,null==ne?void 0:ne[TP.Divider]))&&void 0!==U?U:oe(_P.Grid,qP.Divider,NP.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=jP(e,null==ne?void 0:ne[TP.Background]))&&void 0!==K?K:oe(_P.Grid,qP.Grid,NP.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(zP(se.header.fontSize,ae),zP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(zP(se.measureValues.fontSize,ie),zP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=zP(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),M=((e,t,r)=>{const[,n,o]=Ng((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,$g].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);VP([UP({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!w&&M&&OP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:L,viewService:x,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,S,p,f,x,d,u,I,w,L,n,M,h,g,b,v,c,l,s,m,e])},nk={version:"4.4.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},ok=()=>({...nk,qHyperCubeDef:{...nk.qHyperCubeDef,qIndentMode:!1}})}}}));
174
+ `),tM.rippleVisible,sM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tM.child,tM.childLeaving,uM,550,(({theme:e})=>e.transitions.easing.easeInOut),tM.childPulsate,cM,(({theme:e})=>e.transitions.easing.easeInOut)),fM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=n,l=Er(n,rM),[s,u]=r.useState([]),c=r.useRef(0),d=r.useRef(null);r.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[s]);const p=r.useRef(!1),f=Nv(),m=r.useRef(null),h=r.useRef(null),g=r.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;u((e=>[...e,Yr.jsx(pM,{classes:{ripple:fl(i.ripple,tM.ripple),rippleVisible:fl(i.rippleVisible,tM.rippleVisible),ripplePulsate:fl(i.ripplePulsate,tM.ripplePulsate),child:fl(i.child,tM.child),childLeaving:fl(i.childLeaving,tM.childLeaving),childPulsate:fl(i.childPulsate,tM.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},c.current)])),c.current+=1,d.current=a}),[i]),b=r.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:n=!1,center:i=o||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===m.current&&(m.current=()=>{g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})},f.start(80,(()=>{m.current&&(m.current(),m.current=null)}))):g({pulsate:n,rippleX:u,rippleY:c,rippleSize:d,cb:r})}),[o,g,f]),v=r.useCallback((()=>{b({},{pulsate:!0})}),[b]),y=r.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&m.current)return m.current(),m.current=null,void f.start(0,(()=>{y(e,t)}));m.current=null,u((e=>e.length>0?e.slice(1):e)),d.current=t}),[f]);return r.useImperativeHandle(t,(()=>({pulsate:v,start:b,stop:y})),[v,b,y]),Yr.jsx(dM,hr({className:fl(tM.root,i.root,a),ref:h},l,{children:Yr.jsx(xc,{component:null,exit:!0,children:s})}))}));function mM(e){return hv("MuiButtonBase",e)}const hM=gv("MuiButtonBase",["root","disabled","focusVisible"]),gM=["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"],bM=hS("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"},[`&.${hM.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vM=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:s="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:m,onClick:h,onContextMenu:g,onDragLeave:b,onFocus:v,onFocusVisible:y,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:I,onTouchStart:L,tabIndex:M=0,TouchRippleProps:D,touchRippleRef:A,type:P}=n,k=Er(n,gM),O=r.useRef(null),T=r.useRef(null),_=Ov(T,A),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Vv(),[z,G]=r.useState(!1);u&&z&&G(!1),r.useImperativeHandle(o,(()=>({focusVisible:()=>{G(!0),O.current.focus()}})),[]);const[B,$]=r.useState(!1);r.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!u;function H(e,t,r=d){return kv((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}r.useEffect((()=>{z&&p&&!c&&B&&T.current.pulsate()}),[c,p,z,B]);const V=H("start",E),U=H("stop",g),Y=H("stop",b),K=H("stop",w),X=H("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=H("start",L),Z=H("stop",R),Q=H("stop",I),ee=H("stop",(e=>{F(e),!1===q.current&&G(!1),m&&m(e)}),!1),te=kv((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(G(!0),y&&y(e)),v&&v(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=r.useRef(!1),oe=kv((e=>{p&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!u&&(e.preventDefault(),h&&h(e))})),ie=kv((e=>{p&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(k.href||k.to)&&(ae=f);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=u):(k.href||k.to||(le.role="button"),u&&(le["aria-disabled"]=u));const se=Ov(t,j,O),ue=hr({},n,{centerRipple:i,component:s,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Yv({root:["root",t&&"disabled",r&&"focusVisible"]},mM,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Yr.jsxs(bM,hr({as:ae,className:fl(ce.root,l),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:u?-1:M,type:P},le,k,{children:[a,W?Yr.jsx(fM,hr({ref:_,center:i},D)):null]}))}));function yM(e){return hv("MuiTypography",e)}gv("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const xM=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],SM=hS("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${lb(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>hr({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}))),EM={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},CM={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},wM=r.forwardRef((function(e,t){const r=YL({props:e,name:"MuiTypography"}),n=(e=>CM[e]||e)(r.color),o=uv(hr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=EM}=o,f=Er(o,xM),m=hr({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||EM[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Yv({root:["root",i,"inherit"!==e.align&&`align${lb(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},yM,a)})(m);return Yr.jsx(SM,hr({as:h,ref:t,ownerState:m,className:fl(g.root,a)},f))}));const RM=r.forwardRef((function(e,t){const{children:n,container:o,disablePortal:i=!1}=e,[a,l]=r.useState(null),s=Ov(r.isValidElement(n)?ey(n):null,t);if(Cv((()=>{i||l(function(e){return"function"==typeof e?e():e}(o)||document.body)}),[o,i]),Cv((()=>{if(a&&!i)return Pv(t,a),()=>{Pv(t,null)}}),[t,a,i]),i){if(r.isValidElement(n)){const e={ref:s};return r.cloneElement(n,e)}return Yr.jsx(r.Fragment,{children:n})}return Yr.jsx(r.Fragment,{children:a?j.createPortal(n,a):a})})),IM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],LM={entering:{opacity:1},entered:{opacity:1}},MM=r.forwardRef((function(e,t){const n=Fx(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,style:g,timeout:b=o,TransitionComponent:v=mc}=e,y=Er(e,IM),x=r.useRef(null),S=Ov(x,ey(l),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(p),w=E(((e,t)=>{KL(e);const r=XL({style:g,timeout:b,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),R=E(d),I=E(h),L=E((e=>{const t=XL({style:g,timeout:b,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),M=E(m);return Yr.jsx(v,hr({appear:a,in:u,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:L,onExited:M,onExiting:I,addEndListener:e=>{i&&i(x.current,e)},timeout:b},y,{children:(e,t)=>r.cloneElement(l,hr({style:hr({opacity:0,visibility:"exited"!==e||u?void 0:"hidden"},LM[e],g,l.props.style),ref:S},t))}))}));function DM(e){return hv("MuiBackdrop",e)}gv("MuiBackdrop",["root","invisible"]);const AM=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],PM=hS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>hr({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"}))),kM=r.forwardRef((function(e,t){var r,n,o;const i=YL({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=MM,transitionDuration:g}=i,b=Er(i,AM),v=hr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Yv({root:["root",r&&"invisible"]},DM,t)})(v),x=null!=(r=f.root)?r:c.root;return Yr.jsx(h,hr({in:p,timeout:g},b,{children:Yr.jsx(PM,hr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:fl(y.root,l,null==x?void 0:x.className),ownerState:hr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),OM=gv("MuiBox",["root"]),TM=qx(),_M=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:i}=e,a=Pa("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ev);return r.forwardRef((function(e,r){const l=lv(n),s=uv(e),{className:u,component:c="div"}=s,d=Er(s,fv);return Yr.jsx(a,hr({as:c,ref:r,className:fl(u,i?i(o):o),theme:t&&l[t]||l},d))}))}({themeId:Kg,defaultTheme:TM,defaultClassName:OM.root,generateClassName:pv.generate});function qM(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function NM(e){return parseInt(Av(e).getComputedStyle(e).paddingRight,10)||0}function FM(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&qM(e,o)}))}function jM(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function zM(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Dv(e);return t.body===e?Av(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=Uv(Dv(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${NM(n)+e}px`;const t=Dv(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${NM(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Dv(n).body;else{const t=n.parentElement,r=Av(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const GM=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BM(e){const t=[],r=[];return Array.from(e.querySelectorAll(GM)).forEach(((e,n)=>{const o=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!==o&&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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function $M(){return!0}function WM(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:i=!1,getTabbable:a=BM,isEnabled:l=$M,open:s}=e,u=r.useRef(!1),c=r.useRef(null),d=r.useRef(null),p=r.useRef(null),f=r.useRef(null),m=r.useRef(!1),h=r.useRef(null),g=Ov(ey(t),h),b=r.useRef(null);r.useEffect((()=>{s&&h.current&&(m.current=!n)}),[n,s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),m.current&&h.current.focus()),()=>{i||(p.current&&p.current.focus&&(u.current=!0,p.current.focus()),p.current=null)}}),[s]),r.useEffect((()=>{if(!s||!h.current)return;const e=Dv(h.current),t=t=>{b.current=t,!o&&l()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(u.current=!0,d.current&&d.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!l()||u.current)return void(u.current=!1);if(t.contains(e.activeElement))return;if(o&&e.activeElement!==c.current&&e.activeElement!==d.current)return;if(e.activeElement!==f.current)f.current=null;else if(null!==f.current)return;if(!m.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==d.current||(r=a(h.current)),r.length>0){var n,i;const e=Boolean((null==(n=b.current)?void 0:n.shiftKey)&&"Tab"===(null==(i=b.current)?void 0:i.key)),t=r[0],o=r[r.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const n=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[n,o,i,l,s,a]);const v=e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0};return Yr.jsxs(r.Fragment,{children:[Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:g,onFocus:e=>{null===p.current&&(p.current=e.relatedTarget),m.current=!0,f.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Yr.jsx("div",{tabIndex:s?0:-1,onFocus:v,ref:d,"data-testid":"sentinelEnd"})]})}const HM=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&qM(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);FM(t,e.mount,e.modalRef,n,!0);const o=jM(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=jM(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=zM(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=jM(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&qM(e.modalRef,t),FM(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&qM(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function VM(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,manager:i=HM,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:s,children:u,onClose:c,open:d,rootRef:p}=e,f=r.useRef({}),m=r.useRef(null),h=r.useRef(null),g=Ov(h,p),[b,v]=r.useState(!d),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(u);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(f.current.modalRef=h.current,f.current.mount=m.current,f.current),E=()=>{i.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},C=kv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Dv(m.current).body;i.add(S(),e),h.current&&E()})),w=r.useCallback((()=>i.isTopModal(S())),[i]),R=kv((e=>{m.current=e,e&&(d&&w()?E():h.current&&qM(h.current,x))})),I=r.useCallback((()=>{i.remove(S(),x)}),[x,i]);r.useEffect((()=>()=>{I()}),[I]),r.useEffect((()=>{d?C():y&&a||I()}),[d,I,y,a,C]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},M=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Xv(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=hr({},r,t);return hr({role:"presentation"},n,{onKeyDown:L(n),ref:g})},getBackdropProps:(e={})=>hr({"aria-hidden":!0},e,{onClick:M(e),open:d}),getTransitionProps:()=>({onEnter:Mv((()=>{v(!1),l&&l()}),null==u?void 0:u.props.onEnter),onExited:Mv((()=>{v(!0),s&&s(),a&&I()}),null==u?void 0:u.props.onExited)}),rootRef:g,portalRef:R,isTopModal:w,exited:b,hasTransition:y}}function UM(e){return hv("MuiModal",e)}gv("MuiModal",["root","hidden","backdrop"]);const YM=["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"],KM=hS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>hr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),XM=hS(kM,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JM=r.forwardRef((function(e,t){var n,o,i,a,l,s;const u=YL({name:"MuiModal",props:e}),{BackdropComponent:c=XM,BackdropProps:d,className:p,closeAfterTransition:f=!1,children:m,container:h,component:g,components:b={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:I=!1,onBackdropClick:L,open:M,slotProps:D,slots:A}=u,P=Er(u,YM),k=hr({},u,{closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:I}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=VM(hr({},k,{rootRef:t})),z=hr({},k,{exited:F}),G=(e=>{const{open:t,exited:r,classes:n}=e;return Yv({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},UM,n)})(z),B={};if(void 0===m.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(o=null==A?void 0:A.root)?o:b.Root)?n:KM,W=null!=(i=null!=(a=null==A?void 0:A.backdrop)?a:b.Backdrop)?i:c,H=null!=(l=null==D?void 0:D.root)?l:v.root,V=null!=(s=null==D?void 0:D.backdrop)?s:v.backdrop,U=Qv({elementType:$,externalSlotProps:H,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:g},ownerState:z,className:fl(p,null==H?void 0:H.className,null==G?void 0:G.root,!z.open&&z.exited&&(null==G?void 0:G.hidden))}),Y=Qv({elementType:W,externalSlotProps:V,additionalProps:d,getSlotProps:e=>T(hr({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:fl(null==V?void 0:V.className,null==d?void 0:d.className,null==G?void 0:G.backdrop),ownerState:z});return I||M||j&&!F?Yr.jsx(RM,{ref:q,container:h,disablePortal:E,children:Yr.jsxs($,hr({},U,{children:[!R&&c?Yr.jsx(W,hr({},Y)):null,Yr.jsx(WM,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:C,isEnabled:N,open:M,children:r.cloneElement(m,B)})]}))}):null})),ZM=gv("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),QM=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function eD(e){return`scale(${e}, ${e**2})`}const tD={entering:{opacity:1,transform:eD(1)},entered:{opacity:1,transform:"none"}},rD="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),nD=r.forwardRef((function(e,t){const{addEndListener:n,appear:o=!0,children:i,easing:a,in:l,onEnter:s,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:f,style:m,timeout:h="auto",TransitionComponent:g=mc}=e,b=Er(e,QM),v=Nv(),y=r.useRef(),x=Fx(),S=r.useRef(null),E=Ov(S,ey(i),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(c),R=C(((e,t)=>{KL(e);const{duration:r,delay:n,easing:o}=XL({style:m,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=r,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:n}),x.transitions.create("transform",{duration:rD?i:.666*i,delay:n,easing:o})].join(","),s&&s(e,t)})),I=C(u),L=C(f),M=C((e=>{const{duration:t,delay:r,easing:n}=XL({style:m,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:rD?o:.666*o,delay:rD?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=eD(.75),d&&d(e)})),D=C(p);return Yr.jsx(g,hr({appear:o,in:l,nodeRef:S,onEnter:R,onEntered:I,onEntering:w,onExit:M,onExited:D,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},b,{children:(e,t)=>r.cloneElement(i,hr({style:hr({opacity:0,transform:eD(.75),visibility:"exited"!==e||l?void 0:"hidden"},tD[e],m,i.props.style),ref:E},t))}))}));function oD(e){return hv("MuiLink",e)}nD.muiSupportAuto=!0;const iD=gv("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),aD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},lD=({theme:e,ownerState:t})=>{const r=(e=>aD[e]||e)(t.color),n=ub(e,`palette.${r}`,!1)||t.color,o=ub(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xy(n,.4)},sD=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uD=hS(wM,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${lb(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>hr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&hr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:lD({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iD.focusVisible}`]:{outline:"auto"}}))),cD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:l,onFocus:s,TypographyClasses:u,underline:c="always",variant:d="inherit",sx:p}=n,f=Er(n,sD),{isFocusVisibleRef:m,onBlur:h,onFocus:g,ref:b}=Vv(),[v,y]=r.useState(!1),x=Ov(t,b),S=hr({},n,{color:i,component:a,focusVisible:v,underline:c,variant:d}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Yv({root:["root",`underline${lb(o)}`,"button"===r&&"button",n&&"focusVisible"]},oD,t)})(S);return Yr.jsx(uD,hr({color:i,className:fl(E.root,o),classes:u,component:a,onBlur:e=>{h(e),!1===m.current&&y(!1),l&&l(e)},onFocus:e=>{g(e),!0===m.current&&y(!0),s&&s(e)},ref:x,ownerState:S,variant:d,sx:[...Object.keys(aD).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},f))})),dD=r.createContext({});function pD(e){return hv("MuiList",e)}gv("MuiList",["root","padding","dense","subheader"]);const fD=["children","className","component","dense","disablePadding","subheader"],mD=hS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>hr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:s=!1,subheader:u}=n,c=Er(n,fD),d=r.useMemo((()=>({dense:l})),[l]),p=hr({},n,{component:a,dense:l,disablePadding:s}),f=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Yv({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},pD,t)})(p);return Yr.jsx(dD.Provider,{value:d,children:Yr.jsxs(mD,hr({as:a,className:fl(f.root,i),ref:t,ownerState:p},c,{children:[u,o]}))})})),gD=gv("MuiListItemIcon",["root","alignItemsFlexStart"]),bD=gv("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),vD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function yD(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function xD(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function SD(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function ED(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&SD(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}const CD=r.forwardRef((function(e,t){const{actions:n,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:s=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu"}=e,p=Er(e,vD),f=r.useRef(null),m=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cv((()=>{o&&f.current.focus()}),[o]),r.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&r){const r=`${Uv(Dv(e))}px`;f.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,f.current.style.width=`calc(100% + ${r})`}return f.current}})),[]);const h=Ov(f,t);let g=-1;r.Children.forEach(a,((e,t)=>{r.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const b=r.Children.map(a,((e,t)=>{if(t===g){const t={};return i&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),r.cloneElement(e,t)}return e}));return Yr.jsx(hD,hr({role:"menu",ref:h,className:l,onKeyDown:e=>{const t=f.current,r=e.key,n=Dv(t).activeElement;if("ArrowDown"===r)e.preventDefault(),ED(t,n,u,s,yD);else if("ArrowUp"===r)e.preventDefault(),ED(t,n,u,s,xD);else if("Home"===r)e.preventDefault(),ED(t,null,u,s,yD);else if("End"===r)e.preventDefault(),ED(t,null,u,s,xD);else if(1===r.length){const o=m.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&SD(n,o);o.previousKeyMatched&&(l||ED(t,n,!1,s,yD,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:o?0:-1},p,{children:b}))}));function wD(e){return hv("MuiPopover",e)}gv("MuiPopover",["root","paper"]);const RD=["onEntering"],ID=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],LD=["slotProps"];function MD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function DD(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function AD(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function PD(e){return"function"==typeof e?e():e}const kD=hS(JM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),OD=hS(eM,{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}),TD=r.forwardRef((function(e,t){var n,o,i;const a=YL({props:e,name:"MuiPopover"}),{action:l,anchorEl:s,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:p,className:f,container:m,elevation:h=8,marginThreshold:g=16,open:b,PaperProps:v={},slots:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=nD,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=a,I=Er(a.TransitionProps,RD),L=Er(a,ID),M=null!=(n=null==x?void 0:x.paper)?n:v,D=r.useRef(),A=Ov(D,M.ref),P=hr({},a,{anchorOrigin:u,anchorReference:d,elevation:h,marginThreshold:g,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:I}),k=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"]},wD,t)})(P),O=r.useCallback((()=>{if("anchorPosition"===d)return c;const e=PD(s),t=(e&&1===e.nodeType?e:Dv(D.current).body).getBoundingClientRect();return{top:t.top+MD(t,u.vertical),left:t.left+DD(t,u.horizontal)}}),[s,u.horizontal,u.vertical,c,d]),T=r.useCallback((e=>({vertical:MD(e,S.vertical),horizontal:DD(e,S.horizontal)})),[S.horizontal,S.vertical]),_=r.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===d)return{top:null,left:null,transformOrigin:AD(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Av(PD(s)),c=u.innerHeight-g,p=u.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,r.vertical+=e}else if(null!==g&&a>c){const e=a-c;o-=e,r.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:AD(r)}}),[s,d,O,T,g]),[q,N]=r.useState(b),F=r.useCallback((()=>{const e=D.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,N(!0)}),[_]);r.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);r.useEffect((()=>{b&&F()})),r.useImperativeHandle(l,(()=>b?{updatePosition:()=>{F()}}:null),[b,F]),r.useEffect((()=>{if(!b)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Av(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,b,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=m||(s?Dv(PD(s)).body:void 0),G=null!=(o=null==y?void 0:y.root)?o:kD,B=null!=(i=null==y?void 0:y.paper)?i:OD,$=Qv({elementType:B,externalSlotProps:hr({},M,{style:q?M.style:hr({},M.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:P,className:fl(k.paper,null==M?void 0:M.className)}),W=Qv({elementType:G,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:b},ownerState:P,className:fl(k.root,f)}),{slotProps:H}=W,V=Er(W,LD);return Yr.jsx(G,hr({},V,!Kv(G)&&{slotProps:H,disableScrollLock:R},{children:Yr.jsx(E,hr({appear:!0,in:b,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},I,{children:Yr.jsx(B,hr({},$,{children:p}))}))}))}));function _D(e){return hv("MuiMenu",e)}gv("MuiMenu",["root","paper","list"]);const qD=["onEntering"],ND=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],FD={vertical:"top",horizontal:"right"},jD={vertical:"top",horizontal:"left"},zD=hS(TD,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GD=hS(OD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),BD=hS(CD,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),$D=r.forwardRef((function(e,t){var n,o;const i=YL({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:l,className:s,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:d,open:p,PaperProps:f={},PopoverClasses:m,transitionDuration:h="auto",TransitionProps:{onEntering:g}={},variant:b="selectedMenu",slots:v={},slotProps:y={}}=i,x=Er(i.TransitionProps,qD),S=Er(i,ND),E=(()=>{const e=r.useContext(ay);return null!=e&&e})(),C=hr({},i,{autoFocus:a,disableAutoFocusItem:u,MenuListProps:c,onEntering:g,PaperProps:f,transitionDuration:h,TransitionProps:x,variant:b}),w=(e=>{const{classes:t}=e;return Yv({root:["root"],paper:["paper"],list:["list"]},_D,t)})(C),R=a&&!u&&p,I=r.useRef(null);let L=-1;r.Children.map(l,((e,t)=>{r.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===L)&&(L=t))}));const M=null!=(n=v.paper)?n:GD,D=null!=(o=y.paper)?o:f,A=Qv({elementType:v.root,externalSlotProps:y.root,ownerState:C,className:[w.root,s]}),P=Qv({elementType:M,externalSlotProps:D,ownerState:C,className:w.paper});return Yr.jsx(zD,hr({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?FD:jD,slots:{paper:M,root:v.root},slotProps:{root:A,paper:P},open:p,ref:t,transitionDuration:h,TransitionProps:hr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),g&&g(e,t)}},x),ownerState:C},S,{classes:m,children:Yr.jsx(BD,hr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:I,autoFocus:a&&(-1===L||u),autoFocusItem:R,variant:b},c,{className:fl(w.list,c.className),children:l}))}))}));function WD(e){return hv("MuiMenuItem",e)}const HD=gv("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),VD=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UD=hS(vM,{shouldForwardProp:e=>mS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>hr({},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"}},[`&.${HD.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${HD.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xy(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${HD.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xy(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})`:xy(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${HD.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${HD.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ZM.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ZM.inset}`]:{marginLeft:52},[`& .${bD.root}`]:{marginTop:0,marginBottom:0},[`& .${bD.inset}`]:{paddingLeft:36},[`& .${gD.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&hr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gD.root} svg`]:{fontSize:"1.25rem"}})))),YD=r.forwardRef((function(e,t){const n=YL({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=Er(n,VD),m=r.useContext(dD),h=r.useMemo((()=>({dense:a||m.dense||!1,disableGutters:s})),[m.dense,a,s]),g=r.useRef(null);Cv((()=>{o&&g.current&&g.current.focus()}),[o]);const b=hr({},n,{dense:h.dense,divider:l,disableGutters:s}),v=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return hr({},a,Yv({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},WD,a))})(n),y=Ov(g,t);let x;return n.disabled||(x=void 0!==d?d:-1),Yr.jsx(dD.Provider,{value:h,children:Yr.jsx(UD,hr({ref:y,role:c,tabIndex:x,component:i,focusVisibleClassName:fl(v.focusVisible,u),className:fl(v.root,p)},f,{ownerState:b,classes:v}))})})),KD=hS(_M,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:r,shouldShowMenuIcon:n,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:n?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?r:t}}))),XD=hS("div")({position:"absolute",left:0,bottom:0}),JD=hS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...cg,justifyContent:null!=e?e:cg.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),ZD=hS("div")((()=>({...cg}))),QD=hS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:r,fontStyle:n,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:r,fontSize:e,fontFamily:t,fontStyle:n,textDecoration:o}))),eA=hS($D)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),tA=hS(YD,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:e.spacing(.5),margin:e.spacing(.25,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:t?"rgba(0, 0, 0, 0.05)":"transparent","&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),rA=hS("span")({textOverflow:"ellipsis",overflow:"hidden"}),nA=hS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:20,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"})));var oA;!function(e){e.Expand="Expand",e.Collapse="Collapse"}(oA||(oA={}));const iA=(e,t)=>({qExcludeList:t===oA.Expand,qPos:{qDimName:e,qElemNo:[]}}),aA=`${kC}/qExpansionState`,lA=({model:e,qExpansionState:t,qEffectiveDimensionName:r,action:n})=>async()=>{const o=(({qEffectiveDimensionName:e,oldExpansionState:t,action:r})=>{const n=null==t?void 0:t.findIndex((t=>{var r;return(null===(r=t.qPos)||void 0===r?void 0:r.qDimName)===e}));return{expansionData:iA(e,r),index:n}})({qEffectiveDimensionName:r,oldExpansionState:t,action:n});await(async({model:e,newExpansionState:t,errorMsg:r})=>{const{index:n,expansionData:o}=t;try{let t,r=aA,i="Add";void 0===n?t=JSON.stringify([o]):-1===n?(r=`${aA}/-`,t=JSON.stringify(o)):(r=`${aA}/${n}`,i="Replace",t=JSON.stringify(o)),await e.applyPatches([{qPath:r,qOp:i,qValue:t}],!0)}catch(e){console.error(r,e)}})({model:e,newExpansionState:o,errorMsg:`Failed to ${n} dimension`})},sA=({model:e,effectivePropertiesService:t,cell:r,env:n})=>{if(!n.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM")||void 0===r.qEffectiveDimensionName)return;const o={model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r.qEffectiveDimensionName};return{expandCallback:lA({...o,action:oA.Expand}),collapseCallback:lA({...o,action:oA.Collapse})}},uA={[qE.Sorting]:!0,[qE.Selections]:!0,[qE.Searching]:!0},cA=({cell:e,style:t,isFirstColumn:r,isLastColumn:n,isLastRow:o,changeSortOrder:i,iconsVisibilityStatus:a,columnWidth:l,overrideLeftGridWidth:s,shouldApplyIndentModeColumnWidth:u,tableWidth:d})=>{var p;const f=c(null),{styleService:m,layoutService:h,effectivePropertiesService:g}=DC(),{app:b,interactions:v,embed:y,translator:x,env:S,model:E}=IC(),{fontSize:C,fontFamily:w,fontStyle:R,fontWeight:I,textDecoration:L,color:M,background:D,hoverBackground:A,activeBackground:P}=m.header,k=c(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=a,{open:_,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=HL(),j={sortFromMenu:async(t,r)=>{t.stopPropagation(),await i(e,r)}},z={embed:y,listboxRef:f,sortCriteria:h.searchSortFromDimension&&e.isDim?g.getSortCriteriaForDimension(e.dimensionInfoIndex):void 0},G={app:b,qStateName:h.layout.qStateName},{labelTextAlign:B}=null!==(p=h.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==p?p:{},$=wL(B,"flex-start");return Yr.jsxs(KD,{className:jt,title:e.label,interactions:v,background:_?P:D,hoverBackground:A,shouldShowMenuIcon:T,isDimension:e.isDim,style:{...t,...pg,...bg(e,o,r,n,m.grid.border),color:M},"data-testid":"title-cell",onClick:N,children:[Yr.jsxs(JD,{children:[O?Yr.jsx(ZD,{children:Yr.jsx($L,{height:12})}):null,Yr.jsx(QD,{fontFamily:w,fontSize:C,fontStyle:R,fontWeight:I,textDecoration:L,justifyContent:$,children:Yr.jsx("span",{style:fg,children:e.label})})]}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:x,anchorRef:k,open:_,setOpen:q,interactions:v,menuAvailabilityFlags:uA,sortRelatedArgs:j,searchRelatedArgs:z,selectionRelatedArgs:G,expandOrCollapseArgs:sA({model:E,effectivePropertiesService:g,cell:e,env:S}),shouldShowMenuIcon:T,env:S,model:E&&"setActiveField"in E?E:void 0}),Yr.jsx(XD,{ref:f}),Yr.jsx(XD,{ref:k})]}):null,Yr.jsx(UL,{cellInfo:{...e,isLeftColumn:!0},columnWidth:l,isLastColumn:n,overrideLeftGridWidth:s,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:u,tableWidth:d})]})},dA=({rowSpan:e,columnSpan:t})=>{const{styleService:r}=DC();return e>0&&t>0?Yr.jsx("div",{style:{...dg,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:r.grid.border,background:r.grid.background},"data-testid":"empty-header-cell"}):null};function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){pA(e,t,r[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:r},e),t.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),mA=d(fA);function hA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hA(e,t,r[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:r},e),t.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),t.createElement("use",{fillRule:"evenodd"})),bA=d(gA),vA=({tableWidth:e,leftGridWidth:t,overrideLeftGridWidth:r})=>{const{styleService:n}=DC(),{interactions:o,translator:i}=IC(),{isActive:a}=eL(),{dataModel:l}=gR(),{setIsAdjustingWidth:s}=WL([l]);if(!(!!o.active&&!a))return null;const u=VL(n,{isLeftColumn:!0});return Yr.jsx(ES,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:u,columnWidth:t,updateWidthCallback:t=>{r(Math.min(t,e*yR))},confirmWidthCallback:n=>{var o;if(n.type===$t.FitToContent)return void l.applyIndentModeColumnWidth({type:$t.Auto});const i=Math.min(null!==(o=n.pixels)&&void 0!==o?o:t,e*yR);r(i),l.applyIndentModeColumnWidth({type:$t.Pixels,pixels:i})},setIsAdjustingWidth:s,accessibilityRelatedArgs:{translator:i,columnLabel:i.get("SNPivotTable.IndentMode.Rows")},direction:"ltr"})};function yA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xA=(e,r)=>t.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yA(e,t,r[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:r},e),t.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),SA=d(xA),EA=({cell:e,changeSortOrder:t})=>{const r=c(null),n=c(null),{app:o,interactions:i,embed:a,translator:l,env:s,model:u}=IC(),{layoutService:d,effectivePropertiesService:p}=DC(),{open:f,setOpen:m,handleOpenMenu:h}=HL();return Yr.jsxs(tA,{onClick:h,isActive:f,children:[Yr.jsx(rA,{children:e.label}),Yr.jsxs(nA,{className:"indent-mode-dropdown-more",visible:f,children:[Yr.jsx(SA,{}),e.isDim?Yr.jsxs(Yr.Fragment,{children:[Yr.jsx(jE,{headerData:e,translator:l,anchorRef:r,open:f,setOpen:m,interactions:i,menuAvailabilityFlags:uA,sortRelatedArgs:{sortFromMenu:async(r,n)=>{r.stopPropagation(),await t(e,n)}},searchRelatedArgs:{embed:a,listboxRef:n},selectionRelatedArgs:{app:o,qStateName:d.layout.qStateName},expandOrCollapseArgs:sA({model:u,effectivePropertiesService:p,cell:e,env:s}),shouldShowMenuIcon:!1,env:s,model:u&&"setActiveField"in u?u:void 0}),Yr.jsx(XD,{ref:n}),Yr.jsx(XD,{ref:r})]}):null]})]})},CA=({idx:e,menu:t,menuItems:r,isOnlyOneRow:n})=>{var o,i;const a=(null===(o=r.at(-1))||void 0===o?void 0:o.id)===TC,l=e+1<r.length&&(null===(i=r[e+1])||void 0===i?void 0:i.id)===TC;return!(n&&a&&l)&&((null==t?void 0:t.id)!==TC&&e<r.length-1)},wA=({menuItems:e,changeSortOrder:t,overrideLeftGridWidth:r,leftGridWidth:n,tableWidth:o})=>{const{styleService:i}=DC(),{interactions:a,translator:l}=IC(),{dataModel:s,gridSectionsData:{headersData:d}}=gR(),[p,f]=u(!1),m=c(null),{headerCellHeight:h}=i,{color:g,background:b,hoverBackground:v,activeBackground:y,fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w}=i.header,{isAdjustingWidth:R}=WL([s]),I=e=>{e.stopPropagation()},L={height:h,gridColumn:`1 / span ${d.size.x}`,gridRow:d.size.y,zIndex:d.size.x-0};return Yr.jsxs(KD,{isDimension:!0,background:p?y:b,interactions:a,hoverBackground:v,style:{...L,...pg,color:g},onClick:e=>{!a.active||JI(e)||R||f(!p)},"data-testid":"indentModeHeaderCellWrapper",children:[Yr.jsxs(JD,{justifyContent:"flex-start",children:[Yr.jsx(QD,{fontFamily:x,fontSize:S,fontStyle:E,fontWeight:C,textDecoration:w,justifyContent:"flex-start",children:Yr.jsx("span",{style:fg,children:l.get("SNPivotTable.IndentMode.Rows")})}),p?Yr.jsx(bA,{}):Yr.jsx(mA,{}),Yr.jsx(XD,{ref:m})]}),Yr.jsx(eA,{open:p,anchorEl:m.current,children:e.map(((r,n)=>[r&&r.id!==TC&&Yr.jsx("li",{role:"presentation",onClick:I,onKeyDown:I,children:Yr.jsx(EA,{cell:r,changeSortOrder:t})}),CA({idx:n,menu:r,menuItems:e,isOnlyOneRow:1===d.size.y})&&Yr.jsx(AS,{"data-testid":"group-divider",variant:"middle"})]))}),Yr.jsx(vA,{tableWidth:o,leftGridWidth:n,overrideLeftGridWidth:r})]})},RA=({layoutService:e,headersData:t,topRowIndex:r})=>e.isIndentModeEnabled&&t.size.x>1&&r+1===t.size.y,IA={display:"grid",width:"fit-content"},LA=({tableWidth:e,leftGridWidth:t,columnWidths:r,rowHight:n,changeSortOrder:o,getHeaderCellsIconsVisibilityStatus:i,height:a,overrideLeftGridWidth:l})=>{const{layoutService:s}=DC(),{gridSectionsData:{headersData:u}}=gR();return Yr.jsxs("div",{"data-testid":"HEADER_GRID",style:{...IA,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:u.data.map((()=>`${n}px`)).join(" "),height:a},children:[u.size.y>1&&Yr.jsx(dA,{columnSpan:u.size.x-1,rowSpan:u.size.y-1}),u.data.map(((a,c)=>{let d=[];if(RA({layoutService:s,headersData:u,topRowIndex:c})){const r=a.at(0);var p;if(Array.isArray(r))d.push(Yr.jsx(wA,{menuItems:r,changeSortOrder:o,overrideLeftGridWidth:l,leftGridWidth:t,tableWidth:e},null===(p=r.at(0))||void 0===p?void 0:p.id));return d}return d=a.reduce(((t,a,d)=>{if(a&&!Array.isArray(a)){const p=i(d,a.isLocked,a.label),f=s.isIndentModeEnabled&&1===u.size.x;t.push(Yr.jsx(cA,{style:{width:r[d],height:n,gridColumn:s.isIndentModeEnabled&&u.size.x>1?2:d+1,gridRow:c+1,zIndex:u.size.x-d},isLastRow:c===u.size.y-1,isFirstColumn:0===d,isLastColumn:d===u.size.x-1,changeSortOrder:o,cell:a,iconsVisibilityStatus:p,columnWidth:r[d],overrideLeftGridWidth:l,shouldApplyIndentModeColumnWidth:f,tableWidth:e},a.id))}return t}),[]),d}))]})};var MA=h(LA);const DA=(e,t,r,n)=>{const{layoutService:o}=DC();g((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,r,n,o])},AA=(e,t)=>{Wg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},PA=(e,t)=>{const{isLast:r,list:n,listValues:o}=t;return r?n[e]:o[e]},kA=(e,t,r,n)=>{var o;if(n)return;const i=r?"flex-start":"center";var a,l;if(e.representation.type===Ut.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:r}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return wL(r,i)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return wL(u,i)},OA=()=>{},TA=({children:e,reactWindowStyle:t,cell:r,data:n,showTotalCellDivider:o,isLastRow:i,isLastColumn:a,isLeftColumn:l,isCellSelected:s,isAdjustingWidth:u,index:c})=>{var d;const{styleService:p,layoutService:f}=DC(),{interactions:m}=IC(),{isLocked:h,createMouseDownHandler:g,createMouseOverHandler:b}=eL(),{showLastBorder:v}=n,y=h(r)||r.isLockedByDimension,x=!(y||!m.active||!m.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||u),S=x?g(c,(e=>PA(e,n))):void 0,E=x?b(c):void 0,C=SR({isLeftColumn:l,layoutService:f,representation:r.representation});return Yr.jsx("div",{className:jt,title:m.passive?r.representation.text:void 0,style:{...t,...gg(i,a,p.grid.border,v),...vg({bottomDivider:o&&l,rightDivider:o&&!l,borderColor:p.grid.divider}),...pg,padding:"0px 4px",cursor:dL(x),background:aL({styleService:p,isCellSelected:s,cell:r,isCellLocked:y}),zIndex:l?void 0:f.size.x-r.x,justifyContent:kA(r,f,l,C),display:"flex",...f.isIndentModeEnabled&&l&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onMouseDown:S,onMouseOver:E,onKeyUp:OA,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,"data-dimension-info-index":r.dimensionInfoIndex,children:e})},_A=e=>{e.stopPropagation()},qA=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:_A,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}),NA=({href:e,text:r,interactions:n,color:o})=>t.createElement(Np,qA({href:e,text:r,interactions:n,color:o}),r),FA=G();FA.use(z),FA.renderer.prio(["canvas"]);const jA=({cell:e,representation:t,textStyle:r,imageContainerHorizontalAlignment:n})=>{var o,i;const{imageBox:a}=t,{styleService:{grid:{lineClamp:l}}}=DC();return Yr.jsxs("div",{style:{display:"grid",gridTemplateColumns:`${null!==(o=null==a?void 0:a.width)&&void 0!==o?o:24}px 1fr`,maxHeight:"fit-content",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",boxSizing:"border-box"},children:[Yr.jsx("div",{"data-key":"image-container--partial-image",style:{display:"flex",flexDirection:"column",justifyContent:rL(e),alignItems:n,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",width:null!==(i=null==a?void 0:a.width)&&void 0!==i?i:24,height:"100%"},children:Yr.jsx(EL,{representation:t,textStyle:r})}),Yr.jsx("span",{style:{paddingRight:0,padding:4/(l<=2?2:1),alignSelf:rL(e)},children:!!t.labelStructure&&xL(t.labelStructure)})]})},zA=({suffix:e,delimeter:t})=>` ${e?t:""} ${e}`,GA=({href:e,text:t,labelStructure:r,interactions:n,color:o})=>Yr.jsxs("span",{children:[Yr.jsx(cD,{...qA({href:e,text:t,interactions:n,color:o}),children:null!=r&&r.maskedValue?r.maskedValue:null==r?void 0:r.originalValue}),!!r&&zA(r)]}),BA=({children:e,textStyle:t})=>Yr.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),$A=({cell:e,isCellSelected:t,isLeftColumn:r})=>{const{isActive:n}=eL(),{layoutService:o,styleService:i}=DC(),{interactions:a}=IC();let l=r&&!e.isNull?(e=>{const{representation:{text:t,labelStructure:r}}=e;if(!r||!r.originalValue)return t;const{originalValue:n,maskedValue:o,suffix:i,delimeter:a}=r;return`${0!==o.length?o:n} ${i?a:""} ${i}`.trim()})(e):e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:r,isLeftColumn:n})=>({...fg,...mg(n?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:lL({cell:e,styleService:t,isCellSelected:r}),fontWeight:sL({cell:e,styleService:t}),fontStyle:uL({cell:e,styleService:t}),textDecoration:cL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:i,isCellSelected:t,isLeftColumn:r});if(e.representation.type===Ut.Image&&!e.isTotal&&!e.isNull){const{labelStructure:t}=e.representation,n=r&&t&&t.suffix?jA:CL;return Yr.jsx(n,{cell:e,representation:e.representation,textStyle:s,isLeftColumn:r,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand,imageContainerHorizontalAlignment:kA(e,o,r)})}if(e.representation.type===Ut.Link&&!n&&!e.isTotal){const t=r&&e.representation.labelStructure?GA:NA;l=Yr.jsx(t,{text:e.representation.text,labelStructure:e.representation.labelStructure,href:e.representation.url,interactions:a,color:e.expressionColor.color})}return Yr.jsx(BA,{textStyle:{...s,...e.representation.type===Ut.Image&&e.isNull?{alignSelf:rL(e)}:{}},children:l})},WA=({index:e,style:t,data:r})=>{const{styleService:n,layoutService:o}=DC(),{isSelected:i}=eL(),{isLeftColumn:a=!1,showLastBorder:l,itemCount:s,isLast:u,totalDividerIndex:c}=r,{isAdjustingWidth:d,setIsAdjustingWidth:p}=WL([r]),f=PA(e,r),m=a?e===s-1:u,h=a?u:e===s-1,g=GI(f,c,o.isIndentModeEnabled);if(void 0===f){const{background:r}=n.dimensionValues;return Yr.jsx(BI,{style:{...t,background:r},index:e,isLastRow:m,isLastColumn:h,showLastBorder:l,isLeftColumn:a,showTotalCellDivider:g})}const b=i(f);return Yr.jsxs(TA,{reactWindowStyle:t,isLeftColumn:a,isLastRow:m,isLastColumn:h,isCellSelected:b,showTotalCellDivider:g,cell:f,data:r,isAdjustingWidth:d,index:e,children:[Yr.jsxs($I,{verticalAlign:rL(f),width:WI(f.representation),right:f.isLeftColumn?void 0:4,isLeftColumn:a,children:[Yr.jsx(mL,{isLeftColumn:a,isCellSelected:b,cell:f}),Yr.jsx($A,{isLeftColumn:a,isCellSelected:b,cell:f})]}),Yr.jsx(UL,{cellInfo:{...f,columnWidthLocation:f.isPseudoDimension?rr.Measures:rr.Dimension},columnWidth:t.width,isLastColumn:h,setIsAdjustingWidth:p})]})};var HA=t.memo(WA,II);const VA=({list:e,listValues:t,isLastRow:r,getRightGridColumnWidth:n})=>o=>{var i;const a=r?e[o]:t.at(o);return a&&0===o&&a.x>0?(a.leafCount+a.x+a.distanceToNextCell)*n():!r&&a?(a.leafCount+a.distanceToNextCell)*n():n(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o)},UA=(e,t,r,n)=>{const o=Object.values(e);let i,a=o.length;return n&&(a=r,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},YA=(e,t)=>r=>{e.current&&(e.current[t]=r)},KA={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...dg},XA={overflow:"hidden",willChange:"auto",flexShrink:0},JA=({leftGridRef:e,width:t,height:r,columnWidths:n,showLastBorder:o})=>{const{pageInfo:i}=CC(),{layoutService:a,styleService:{contentCellHeight:l,grid:{divider:s}}}=DC(),{qSize:u}=a.layout.qHyperCube,{gridSectionsData:{leftDimensionData:c},visibleDimensionsInfo:{visibleLeftDimensionInfo:d}}=gR();AA(e,c),DA(e,t,r,l);const p=i.rowsOnCurrentPage*l,f={...KA,borderColor:s,width:n.reduce(((e,t)=>e+t),0)};return Yr.jsx("div",{style:f,"data-section-id":"LEFT_GRID",children:c.grid.map(((t,s)=>{const f=s===c.columnCount-1,m=BC(d[s]),{itemCount:h,estimatedItemSize:g,listValues:b}=UA(t,p,i.rowsOnCurrentPage,f),v=a.isIndentModeEnabled?()=>l:((e,t,r,n,o)=>i=>{const a=n?e[i]:t.at(i);if(a&&0===i&&a.pageY>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*r;if(a&&a.leafCount>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*r}return r})(t,b,l,f,u.qcy);return Yr.jsx(EI,{ref:YA(e,s),style:{...XA,flexGrow:f?1:0},height:r,width:n[s],itemCount:h,itemSize:v,layout:"vertical",itemData:{list:t,isLeftColumn:!0,isLast:f,itemCount:h,showLastBorder:o,listValues:b,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:g,children:HA},m)}))})};var ZA=h(JA);const QA={overflow:"hidden",willChange:"auto"},eP={...dg,borderWidth:"0px 0px 0px 1px"},tP=({topGridRef:e,rowHightCallback:t,width:r,height:n,showLastBorder:o,getRightGridColumnWidth:i})=>{const{layoutService:a,styleService:{grid:{divider:l},headerCellHeight:s}}=DC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d={...eP,borderColor:l,height:n};AA(e,c),DA(e,r,n,s);const p=a.size.x*i();return 0===c.rowCount?Yr.jsx("div",{style:{width:r,height:n,...eP}}):Yr.jsx("div",{style:d,"data-section-id":"TOP_GRID",children:c.grid.map(((n,l)=>{const s=l===c.rowCount-1,{itemCount:d,estimatedItemSize:f,listValues:m}=UA(n,p,a.size.x,s),h=(({layoutService:e,headersData:t,topRowIndex:r})=>{const n=t.data.at(r);if(void 0===n)return;const o=t.size.x-1,i=RA({layoutService:e,headersData:t,topRowIndex:r})?0:o,a=n.at(i),l=Array.isArray(a)?a.at(o):a;return l?e.getDimensionInfo(l.dimensionInfoIndex):void 0})({layoutService:a,headersData:u,topRowIndex:l}),g=h?BC(h):`empty ${l}`;return Yr.jsx(EI,{ref:YA(e,l),style:QA,height:t(),width:r,itemCount:d,itemSize:VA({list:n,listValues:m,isLastRow:s,getRightGridColumnWidth:i}),layout:"horizontal",itemData:{list:n,isLast:s,itemCount:d,showLastBorder:o,listValues:m,totalDividerIndex:c.totalDividerIndex},itemKey:qL,estimatedItemSize:f,children:HA},g)}))})};var rP=h(tP);const nP=()=>{const{styleService:{headerCellHeight:e,contentCellHeight:t}}=DC(),r=GR(),n=(()=>{const{model:e}=IC(),t=p((async(t,r)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:n,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(r===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!n).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(),{gridSectionsWrapperRefs:{headerGridWrapperRef:o,topGridWrapperRef:i,leftGridWrapperRef:a,dataGridWrapperRef:l},gridRefs:{topGridRef:s,leftGridRef:u,dataGridRef:c},scrollDirectionRefs:{verticalScrollDirection:d,horizontalScrollDirection:m},scrollbarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g,resetHorizontalScrollbarHeight:b}}=zR(),{leftGridWidth:v,leftGridFullWidth:y,leftGridColumnWidths:x,rightGridFullWidth:S,showLastRightBorder:E,getRightGridColumnWidth:C,getHeaderCellsIconsVisibilityStatus:w,overrideLeftGridWidth:R}=function({tableWidth:e,verticalScrollbarWidth:t,resetHorizontalScrollbarHeight:r}){const{layoutService:n,styleService:o}=DC(),{gridSectionsData:{headersData:i}}=gR(),{measureText:a}=zg(o.header),l=OR({tableWidth:e}),s=TR({tableWidth:e,verticalScrollbarWidth:t,leftGridWidth:l.leftGridWidth}),u=l.leftGridWidth+s.rightGridFullWidth+1<e,c=p(((e,t,r="")=>{let o=e;n.isIndentModeEnabled&&(o=1,1===i.size.x&&(o=0));const s=l.leftGridColumnWidths[o];let u=!1,c=!1,d=a(r)+vR;return t&&d+20<=s&&(c=!0,d+=20),d+20<=s&&(u=!0),{shouldShowMenuIcon:u,shouldShowLockIcon:c}}),[l.leftGridColumnWidths,a,n.isIndentModeEnabled,i.size.x]);return f((()=>{const e=l.leftGridWidth===l.leftGridFullWidth,t=s.rightGridWidth===s.rightGridFullWidth;e&&t&&r()}),[r,l.leftGridWidth,l.leftGridFullWidth,s.rightGridWidth,s.rightGridFullWidth]),{...l,...s,showLastRightBorder:u,getHeaderCellsIconsVisibilityStatus:c}}({tableWidth:r.width,verticalScrollbarWidth:h,resetHorizontalScrollbarHeight:b}),{gridScaffoldDimensions:I,headerGridDims:L,topGridDims:M,leftGridDims:D,dataGridDims:A,metadata:{everyThingFitsInTableRectHeight:P,scrollbarsVisibilityStatus:k}}=(({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:r,leftGridOriginalWidth:n,rightGridOriginalWidth:o},scrollBarsDimensions:{verticalScrollbarWidth:i,horizontalScrollbarHeight:a}})=>{const l=GR(),{pageInfo:s}=CC(),{gridSectionsData:{headersData:u,topDimensionData:c}}=gR(),d=Math.min(l.height*yR,Math.max(l.height*yR-25,l.height-t-a)),p=l.width*yR,f=s.rowsOnCurrentPage*t,m=Math.max(u.size.y,c.rowCount,1),h=e*m,g=e*m,b=Math.min(p,r),v=l.width-p,y=Math.max(v,l.width-b),x=Math.min(d,h,g),{availableHeight:S,everyThingFitsInTableRectHeight:E,everyThingFitsInTableRectWidth:C}=((e,t,r)=>{const n=t+1+r+i<=l.width,o=e+1+f+a,s=o-l.height<a||o<=l.height;return{availableHeight:s?o:l.height,everyThingFitsInTableRectHeight:s,everyThingFitsInTableRectWidth:n}})(x,b,y),w=S-d,R=Math.max(w,S-x),I=Math.min(R,f),L=Math.min(R,f),M=h+1+f,{visibilityStatus:D,metadata:{hasLeftGridOverflowX:A,hasDataGridOverflowX:P}}=(e=>{const{gridScaffold:{X_AXIS:{leftSectionWidth:t,rightSectionWidth:r},Y_AXIS:{topSectionHeight:n,bottomSectionHeight:o}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:i,rightSectionFullWidth:a},Y_AXIS:{topSectionFullHeight:l,bottomSectionFullHeight:s}}}=e,u=l>n,c=i>t,d=a>r,p=s>o;return{visibilityStatus:{topGrid:{overflowX:"hidden",overflowY:u?"scroll":"hidden"},leftGrid:{overflowX:c?"scroll":"hidden",overflowY:"hidden"},dataGrid:{overflowX:d?"scroll":"hidden",overflowY:p?"scroll":"hidden"}},metadata:{hasTopGridOverflowY:u,hasLeftGridOverflowX:c,hasDataGridOverflowX:d,hasDataGridOverflowY:p}}})({gridScaffold:{X_AXIS:{leftSectionWidth:b,rightSectionWidth:y},Y_AXIS:{topSectionHeight:x,bottomSectionHeight:R}},gridOriginalWidth:{X_AXIS:{leftSectionFullWidth:n,rightSectionFullWidth:o},Y_AXIS:{topSectionFullHeight:g,bottomSectionFullHeight:M-g}}});return{gridScaffoldDimensions:{width:l.width,height:l.height,gridTemplateColumns:`${b}px ${y}px`,gridTemplateRows:`${x}px ${R}px`},headerGridDims:{width:-1,height:x},topGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:g},stickyWrapper:{width:y-1-i,height:-1},self:{width:Math.min(o,y)-(C?1:0)-i,height:g}},leftGridDims:{fullSizeWrapper:{width:b,height:M-g+(!A&&P?a:0)},stickyWrapper:{width:b,height:R-1-a},self:{width:b,height:Math.max(t,I-(E?0:a-1))}},dataGridDims:{fullSizeWrapper:{width:o-i+(P?i:0),height:M-g+(!P&&A?a:0)},stickyWrapper:{width:y-1-i,height:R-1-a},self:{width:Math.min(o,y)-(C?1:0)-i,height:Math.max(t,L-(E?0:a-1))}},metadata:{everyThingFitsInTableRectHeight:E,scrollbarsVisibilityStatus:D}}})({cellHeights:{headerCellHeight:e,contentCellHeight:t},horizontalWidths:{leftGridWidth:v,leftGridOriginalWidth:y,rightGridOriginalWidth:S},scrollBarsDimensions:{verticalScrollbarWidth:h,horizontalScrollbarHeight:g}}),O=p((()=>e),[e]),T=p((()=>t),[t]);return(()=>{const{downloadService:e}=DC();f((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),Yr.jsxs($R,{style:I,children:[Yr.jsx("div",{style:{overflow:"hidden"},ref:o,children:Yr.jsx(MA,{tableWidth:r.width,leftGridWidth:v,columnWidths:x,getHeaderCellsIconsVisibilityStatus:w,rowHight:e,height:L.height,changeSortOrder:n,overrideLeftGridWidth:R})}),Yr.jsx(VR,{style:k.topGrid,origin:or.TopGrid,ref:i,children:Yr.jsx(BR,{style:M.fullSizeWrapper,children:Yr.jsx(UR,{style:M.stickyWrapper,children:Yr.jsx(rP,{topGridRef:s,rowHightCallback:O,...M.self,showLastBorder:{right:E,bottom:!1},getRightGridColumnWidth:C})})})}),Yr.jsx(VR,{style:k.leftGrid,origin:or.LeftGrid,ref:a,children:Yr.jsx(BR,{style:D.fullSizeWrapper,children:Yr.jsx(UR,{style:D.stickyWrapper,children:Yr.jsx(ZA,{leftGridRef:u,...D.self,columnWidths:x,showLastBorder:{right:!1,bottom:P}})})})}),Yr.jsx(VR,{style:k.dataGrid,origin:or.DataGrid,ref:l,children:Yr.jsx(BR,{style:A.fullSizeWrapper,children:Yr.jsx(UR,{style:A.stickyWrapper,children:Yr.jsx(zL,{dataGridRef:c,rowHightCallback:T,...A.self,showLastBorder:{right:E,bottom:P},getRightGridColumnWidth:C,verticalScrollDirection:d,horizontalScrollDirection:m})})})})]})},oP=()=>{const{keyboard:e,theme:t,interactions:r,translator:n}=IC(),{pageInfo:o,updatePageInfo:i,rect:a}=CC(),{layoutService:l}=DC(),{layout:s,hasData:u}=l;return Yr.jsxs(Yr.Fragment,{children:[u?Yr.jsx(nP,{}):null,Yr.jsx(PC,{}),Yr.jsx(SC,{paginationNeeded:o.shouldShowPagination,handleChangePage:e=>{i({page:e})},pageInfo:o,totalRowCount:o.totalRowCount,totalColumnCount:0,totalPages:o.totalPages,keyboard:e,translator:n,theme:t,interactions:r,rect:a,layout:s})]})},iP={WHITE:"#FFFFFF",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_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_100_15:"rgba(255, 255, 255, 0.15)",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)"},aP=12,lP=14,sP=16,uP=24,cP=3,dP=300,pP=400,fP=600,mP=700,hP={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(iP.GREYSCALE_0,.05),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var gP;function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(null,arguments)}Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5),Sr(iP.GREEN_PALE,.5),Sr(iP.BLUE_PALE,.5);var vP,yP=function(e){return r.createElement("svg",bP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),gP||(gP=r.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(null,arguments)}var SP=function(e){return r.createElement("svg",xP({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),vP||(vP=r.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 EP({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Yr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function CP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Yr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Yr.jsx("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"})]})})}function wP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Yr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Yr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function RP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function IP(e={}){return Yr.jsx(EP,{fontSize:"medium",...e,children:Yr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Yr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Yr.jsx("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"})]})})}function LP({className:e}){return Yr.jsx(EP,{fontSize:"small",className:e,children:Yr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Yr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Yr.jsx("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"}),Yr.jsx("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"})]})})})})})}function MP(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Yr.jsx("rect",{stroke:iP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(yP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Yr.jsx(RP,{}),Yr.jsx(IP,{}),Yr.jsx((function(e={}){return Yr.jsx(EP,{...e,children:Yr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Yr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Yr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Yr.jsx(CP,{}),Yr.jsx(wP,{}),Yr.jsx(yP,{style:{color:iP.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const DP={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},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:[]}};var AP=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:iP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Yr.jsx(yP,{"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 ${iP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,borderRadius:cP,backgroundColor:iP.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 ${iP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:iP.WHITE,color:iP.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:cP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:cP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:iP.GREYSCALE_0_15,backgroundColor:iP.GREYSCALE_100_60,"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:iP.PURPLE,"&.Mui-focusVisible":{borderColor:iP.PURPLE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:iP.GREEN,"&.Mui-focusVisible":{borderColor:iP.GREEN,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:iP.BLUE,"&.Mui-focusVisible":{borderColor:iP.BLUE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:iP.ORANGE,"&.Mui-focusVisible":{borderColor:iP.ORANGE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:iP.RED,"&.Mui-focusVisible":{borderColor:iP.RED,boxShadow:`0 0 0 3px ${Lv(iP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:iP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:iP.PURPLE_PALE},"&:active":{backgroundColor:iP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:iP.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:iP.GREEN_PALE},"&:active":{backgroundColor:iP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:iP.BLUE_PALE},"&:active":{backgroundColor:iP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:iP.ORANGE_PALE},"&:active":{backgroundColor:iP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:iP.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:iP.RED_PALE},"&:active":{backgroundColor:iP.RED_DARK},"&.Mui-focusVisible":{borderColor:iP.RED_PALE,boxShadow:`0 0 0 3px ${Lv(iP.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:iP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:iP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cP,boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:aP,borderRadius:cP,color:iP.TEXT_PRIMARY,backgroundColor:iP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:iP.GREYSCALE_0_05,color:iP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:iP.GREEN,borderColor:iP.GREEN},"&.MuiChip-outlinedInfo":{color:iP.BLUE,borderColor:iP.BLUE},"&.MuiChip-outlinedWarning":{color:iP.ORANGE,borderColor:iP.ORANGE},"&.MuiChip-outlinedError":{color:iP.RED,borderColor:iP.RED}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cP,boxShadow:"none",backgroundColor:iP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:iP.GREEN,borderColor:iP.GREEN},outlinedSecondary:{color:iP.BLUE,borderColor:iP.BLUE},label:{fontFamily:hP.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Yr.jsx(SP,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Yr.jsx(yP,{"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:cP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cP,fontSize:lP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:iP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${iP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:iP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:iP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:iP.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cP,border:`solid 1px ${iP.GREYSCALE_0_15}`,color:iP.GREYSCALE_0_60,marginRight:0,width:uP,height:uP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${iP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:iP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:aP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:iP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:iP.GREYSCALE_25,fontSize:aP,fontFamily:hP.FONT_FAMILY,fontWeight:fP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:iP.TEXT_PRIMARY},"&.Mui-error":{color:iP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:iP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:iP.TEXT_SECONDARY,content:"'(required)'",fontWeight:pP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lP,lineHeight:"16px",backgroundColor:iP.WHITE,borderRadius:cP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_05}`,borderColor:iP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.RED}`,boxShadow:`0px 0px 0px 1px ${iP.RED}, inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${iP.GREYSCALE_0_10}`,borderColor:iP.GREYSCALE_0_10,backgroundColor:iP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:iP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:iP.GREYSCALE_0_15,borderRadius:cP,boxShadow:`inset 0 2px 0 0 ${iP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Yr.jsx(yP,{...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:iP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:iP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&:active":{backgroundColor:iP.GREYSCALE_0_10},"&:focus":{backgroundColor:iP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${iP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:iP.GREYSCALE_0_30,"&:hover":{backgroundColor:iP.GREYSCALE_0_0,borderColor:iP.GREYSCALE_0_15},"& ~svg":{color:iP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${iP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:iP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:iP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:aP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:aP,fontWeight:fP,color:iP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Yr.jsx(RP,{}),checkedIcon:Yr.jsx(IP,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:iP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:iP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:iP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Yr.jsx(MP,{}),checkedIcon:Yr.jsx(CP,{}),indeterminateIcon:Yr.jsx(wP,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:iP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:iP.GREYSCALE_0_55,color:iP.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:iP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:iP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:iP.GREYSCALE_0_55,"&:hover":{color:iP.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:iP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:iP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lP,color:iP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fP},secondary:{fontSize:aP,color:iP.GREYSCALE_45,fontWeight:pP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:iP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:aP,borderBottom:`solid 1px ${iP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lP,color:iP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:iP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:iP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.RED}}},"&.Mui-focusVisible":{backgroundColor:iP.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:iP.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:iP.GREEN,height:"24px","&.Mui-disabled":{color:iP.GREYSCALE_0_15}},rail:{backgroundColor:iP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP,boxShadow:`inset 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${iP.GREYSCALE_0_05}`,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.WHITE,boxShadow:`0px 1px 2px 0px ${iP.GREYSCALE_0_15}, 0px 0px 0px 1px ${iP.GREYSCALE_0_05}`,"&:hover":{borderRadius:cP,boxShadow:`0 2px 4px 0 ${iP.GREYSCALE_0_30}, 0 0 0 1px ${iP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${iP.GREYSCALE_0_15}, 0 0 0 1px ${iP.GREYSCALE_0_06}, 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:iP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:iP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:iP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:iP.GREYSCALE_0_15},markLabel:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:iP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:iP.WHITE,color:iP.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:iP.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:iP.GREEN_PALE,boxShadow:`0 0 0 3px ${Lv(iP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:iP.BLUE_PALE,boxShadow:`0 0 0 3px ${Lv(iP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:iP.GREYSCALE_0_15,borderRadius:cP},thumb:{height:"16px",width:"16px",borderRadius:cP,backgroundColor:iP.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:lP,fontWeight:fP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${iP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${iP.MISC_FOCUS_BORDER}`,backgroundColor:iP.GREYSCALE_0_03,borderRadius:cP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:iP.GREYSCALE_25,"&.Mui-selected":{color:iP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cP,"&:hover":{backgroundColor:iP.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 ${iP.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${iP.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cP,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderRight:`1px solid ${iP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fP,backgroundColor:iP.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:iP.GREYSCALE_98,borderBottom:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${iP.GREYSCALE_85}`,borderTop:`1px solid ${iP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:iP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:iP.GREYSCALE_0_05,"&:hover":{backgroundColor:iP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:iP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Yr.jsx(LP,{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 ${iP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lP,borderRadius:cP,padding:"7px 16px",border:`1px solid ${iP.GREYSCALE_0_15}`,backgroundColor:iP.GREYSCALE_100_60,color:iP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:iP.GREYSCALE_0_03,border:`1px solid ${iP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:iP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${iP.MISC_FOCUS_BORDER}`,border:`1px solid ${iP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:iP.GREYSCALE_25,backgroundColor:iP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:iP.GREYSCALE_0_10,border:`1px solid ${iP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:aP,height:24,width:24,padding:7},sizeLarge:{fontSize:sP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lP,borderRadius:cP}}},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:iP.GREYSCALE_20},tooltip:{backgroundColor:iP.GREYSCALE_20,fontSize:aP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...DP}:{}}))(t);const PP=e=>({mode:"light",primary:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},secondary:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},error:{ultraLight:iP.RED_ULTRA_LIGHT,light:iP.RED_PALE,main:iP.RED,dark:iP.RED_DARK,extraDark:iP.RED_EXTRA_DARK,contrastText:iP.WHITE},warning:{ultraLight:iP.ORANGE_ULTRA_LIGHT,light:iP.ORANGE_PALE,main:iP.ORANGE,dark:iP.ORANGE_DARK,extraDark:iP.ORANGE_EXTRA_DARK,contrastText:iP.WHITE},success:{ultraLight:iP.GREEN_ULTRA_LIGHT,light:iP.GREEN_PALE,main:iP.GREEN,dark:iP.GREEN_DARK,extraDark:iP.GREEN_EXTRA_DARK,contrastText:iP.WHITE},info:{ultraLight:iP.BLUE_ULTRA_LIGHT,light:iP.BLUE_PALE,main:iP.BLUE,dark:iP.BLUE_DARK,extraDark:iP.BLUE_EXTRA_DARK,contrastText:iP.WHITE},text:{primary:iP.TEXT_PRIMARY,secondary:iP.TEXT_SECONDARY,disabled:iP.GREYSCALE_0_30},action:{hover:iP.GREYSCALE_0_03,hoverOpacity:.03,selected:iP.GREYSCALE_0_05,selectedOpacity:.05,focus:iP.MISC_FOCUS_BORDER},amethyst:{ultraLight:iP.WHITE,main:iP.PURPLE,light:iP.PURPLE_PALE,dark:iP.PURPLE_DARK,extraDark:iP.GREYSCALE_0_0,contrastText:iP.WHITE},background:{paper:iP.WHITE,default:iP.GREYSCALE_95},divider:iP.GREYSCALE_0_15}),kP=(e="light",t=!1)=>((e,t=!1)=>({components:AP(0,t),palette:PP(),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:lP,fontWeightLight:dP,fontWeightRegular:pP,fontWeightMedium:fP,fontWeightBold:mP,htmlFontSize:lP,fontFamily:hP.FONT_FAMILY,button:{fontWeight:fP,fontSize:lP,textTransform:"none"},body1:{fontSize:sP,lineHeight:"24px"},body2:{fontSize:lP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:uP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:sP,fontWeight:fP,lineHeight:"16px"},h6:{fontSize:lP,fontWeight:fP,lineHeight:"16px"},caption:{color:iP.TEXT_SECONDARY},subtitle1:{fontSize:lP,color:iP.TEXT_SECONDARY},subtitle2:{fontSize:aP,color:iP.TEXT_SECONDARY}},shape:{borderRadius:cP}}))(0,t);const OP=(e,{selections:r,baseObjects:n,coreServices:o,nebulaObjects:i})=>{const a=function(e){var t;const r=kP();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),qx({...r,direction:e})}("ltr");e.render(Yr.jsx(t.StrictMode,{children:Yr.jsx(bS,{theme:a,children:Yr.jsx(LC,{...i,children:Yr.jsx(wC,{...n,children:Yr.jsx(tL,{selections:r,children:Yr.jsx(AC,{...o,children:Yr.jsx(bR,{children:Yr.jsx(oP,{})})})})})})})}))};var TP,_P,qP,NP;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(TP||(TP={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(_P||(_P={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(qP||(qP={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(NP||(NP={}));const FP=e=>e?`${parseInt(e,10)}px`:void 0,jP=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?sg.Transparent:r}},zP=(e,t)=>+(parseInt(e,10)*lg*t+8).toFixed(2),GP=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ig:"normal",BP=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",$P=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",WP=document.createElement("textarea");function HP(e){WP.value=e,document.body.appendChild(WP),WP.select(),WP.setSelectionRange(0,WP.value.length),document.execCommand("copy"),document.body.removeChild(WP)}WP.style.position="absolute",WP.style.left="-9999px",WP.setAttribute("readonly","");function VP(e){null==I||I(((t,r)=>{const n=r.target,o=null==n?void 0:n.closest(`.${jt}`);null!=o&&o.title&&t.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{HP(r)})):HP(r))})(o)}}),null==e||e.forEach((e=>{e(t,r,o)}))}))}const UP=({model:e,env:t,layoutService:r,effectivePropertiesService:n,translator:o})=>Dg(((i,a,l)=>{if(!e||n.qAlwaysFullyExpanded||!t.flags.isEnabled("CLIENT_IM_6273_EXPAND_OR_COLLAPSE_DIM"))return;const s=e,u=i.addItem({translation:"Object.PivotTable.ContextMenu.ExpandCollapse",tid:"expand-collapse-group"}),{qEffectiveDimensionName:c,label:d}=((e,t)=>{const r=((e,t)=>{const r=null==e?void 0:e.getAttribute("data-dimension-info-index");if("string"==typeof r)return t.getDimensionInfo(+r)})(e,t);return"object"==typeof r?{qEffectiveDimensionName:r.qEffectiveDimensionName,label:r.qFallbackTitle}:{qEffectiveDimensionName:void 0,label:void 0}})(l,r);u.addItem((e=>({icon:"lui-icon lui-icon--plus",translation:"Object.PivotTable.ContextMenu.ExpandAll",tid:"expand-all",select:async()=>{try{await e.expandTop(kC,0,0,!0),await e.expandLeft(kC,0,0,!0)}catch(e){console.error("Failed to expand all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--plus",translation:o.get("SNPivotTable.ContextMenu.ExpandDimension",[null!=n?n:""]),tid:"expand-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Expand})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o})),u.addItem((e=>({icon:"lui-icon lui-icon--minus",translation:"Object.PivotTable.ContextMenu.CollapseAll",tid:"collapse-all",select:async()=>{try{await e.collapseTop(kC,0,0,!0),await e.collapseLeft(kC,0,0,!0)}catch(e){console.error("Failed to collapse all",e)}}}))(s)),"string"==typeof c&&u.addItem((({model:e,effectivePropertiesService:t,qEffectiveDimensionName:r,label:n,translator:o})=>({icon:"lui-icon lui-icon--minus",translation:o.get("SNPivotTable.ContextMenu.CollapseDimension",[null!=n?n:""]),tid:"collapse-dimension",select:lA({model:e,qExpansionState:t.qExpansionState,qEffectiveDimensionName:r,action:oA.Collapse})}))({model:s,effectivePropertiesService:n,qEffectiveDimensionName:c,label:d,translator:o}))}),[e,r,n]),YP=(e,t)=>y((()=>(({layout:e,flags:t})=>{var r,n,o,i;const{qHyperCube:a,nullValueRepresentation:l,snapshotData:s}=e,{qNoOfLeftDims:u,qEffectiveInterColumnSortOrder:c,qMeasureInfo:d,qDimensionInfo:p}=a,f=!!s,m=null!==(r=null==s||null===(n=s.content)||void 0===n?void 0:n.rowsPerPage)&&void 0!==r?r:15e3,h={x:Math.min(e.qHyperCube.qSize.qcx,ag),y:Math.min(e.qHyperCube.qSize.qcy,m)},g=c.slice(0,u),b=e=>g.some((t=>t===e)),v=b(OC),y=new Map(c.map((e=>{var t;return[null!==(t=p[e])&&void 0!==t?t:OC,e]}))),x=d.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==l?void 0:l.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(v)return 0;const r=e%x.length;return t?r:d.findIndex((e=>e===x[r]))},getDimensionInfo:e=>e===OC?void 0:p.at(e),getDimensionInfoIndex:e=>{var t;return null!==(t=y.get(e))&&void 0!==t?t:-1},size:h,isSnapshot:f,hasLimitedData:!f&&h.x<e.qHyperCube.qSize.qcx,hasData:h.x>0&&h.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,hasPseudoDimOnLeft:v,leftDimensionInfoIndexes:g,isLeftDimension:b,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:x,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeFeatures:{isLinksSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),isImagesSupported:t.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES")},indentModeColumnWidth:null!==(o=e.qHyperCube.indentModeColumnWidth)&&void 0!==o?o:{type:$t.Auto,pixels:Bt.PixelsDefault,percentage:Bt.PercentageDefault},searchSortFromDimension:"inherit"===(null===(i=e.search)||void 0===i?void 0:i.sorting)}})({layout:e,flags:t})),[e,t]),KP=({model:e,layoutService:t,viewService:r,pageInfo:n,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=Pg(e);return t.current=e,t})(cR(o));return Ng((async()=>{const{qHyperCube:t}=i,{maxNumberOfVisibleRows:o,maxNumberOfVisibleColumns:u}=s.current;var c,d;if(a)return null!==(c=null===(d=i.snapshotData)||void 0===d||null===(d=d.content)||void 0===d?void 0:d.qPivotDataPages)&&void 0!==c?c:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,r,n)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=n||t.gridRowStartIndex+t.gridHeight>=r))(l,r,o,u)||((e,t,r,n)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(n,l.qcx)||c<Math.min(r,l.qcy)})(i,n,o,u))){const t=((e,t,r,n,o,i)=>{const a=n.page*n.rowsPerPage,l=Math.min(a+n.rowsPerPage,r.qcy),s=Math.min(ag,r.qcx);if(r.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,r=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),r>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,r,i.qHyperCube.qSize,n,o,u);return t?e.getHyperCubePivotData(kC,dR(t)):[]}return t.qPivotDataPages}),[i,a,e,r,n.page,n.rowsPerPage,s,l])},XP=({rowsPerPage:e,totalRowCount:t,page:r})=>Math.min(e,t-r*e),JP=(e,t,r=15e3)=>({rowsPerPage:r,totalPages:Math.max(1,Math.ceil(e/r)),totalRowCount:e,rowsOnCurrentPage:XP({rowsPerPage:r,totalRowCount:e,page:t})}),ZP=15,QP=({layoutService:e,viewService:t,rect:r,model:n,pageInfo:o})=>{var i;return L((async e=>{const i=e;if(!i.snapshotData||!n||i.snapshotData.content)return i;if("getHyperCubePivotData"in n){const{scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s}=t,u=((e,t,r)=>{const{gridColumnStartIndex:n,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(n-ZP,0),u=Math.max(l+o-ZP,l,0),c=ag-s,d=l+t.rowsOnCurrentPage-u;if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=cR(r);return{qLeft:s,qTop:u,qWidth:Math.min(c,e+30),qHeight:Math.min(d,t+30)}}return{qLeft:s,qTop:u,qWidth:Math.min(c,i+30),qHeight:Math.min(d,a+30)}})(t,o,r),c=dR(u),d={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};i.snapshotData.content={qPivotDataPages:await n.getHyperCubePivotData(kC,[d,...c]),scrollTop:e,scrollLeft:a,leftGridScrollLeft:l,topGridScrollTop:s,page:o.page,rowsPerPage:o.rowsPerPage},i.snapshotData.object.size.w=r.width,i.snapshotData.object.size.h=r.height}return i})),M((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,topGridScrollTop:e.topGridScrollTop,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:r};var ek={SNPivotTable_ContextMenu_CollapseDimension:{id:"SNPivotTable.ContextMenu.CollapseDimension",locale:{"de-DE":"{0} reduzieren","en-US":"Collapse {0}","es-ES":"Contraer {0}","fr-FR":"Réduire {0}","it-IT":"Comprimi {0}","ja-JP":"{0} を折りたたむ","ko-KR":"{0} 축소","nl-NL":"{0} samenvouwen","pl-PL":"Zwiń {0}","pt-BR":"Recolher {0}","ru-RU":"Свернуть {0}","sv-SE":"Dölj {0}","tr-TR":"{0} öğelerini daralt","zh-CN":"折叠 {0}","zh-TW":"收合 {0}"}},SNPivotTable_ContextMenu_ExpandDimension:{id:"SNPivotTable.ContextMenu.ExpandDimension",locale:{"de-DE":"{0} erweitern","en-US":"Expand {0}","es-ES":"Expandir {0}","fr-FR":"Développer {0}","it-IT":"Espandi {0}","ja-JP":"{0} を展開","ko-KR":"{0} 확장","nl-NL":"{0} uitvouwen","pl-PL":"Rozwiń {0}","pt-BR":"Expandir {0}","ru-RU":"Развернуть {0}","sv-SE":"Visa {0}","tr-TR":"{0} öğelerini genişlet","zh-CN":"展开 {0}","zh-TW":"展開 {0}"}},SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const tk=()=>{const e=D(),t=e.language();return y((()=>{!function(e){const t="SNPivotTable_LimitedData";e.get(t)===t&&Object.keys(ek).forEach((t=>{e.add(ek[t])}))}(e)}),[e]),{translator:e,language:t}},rk=e=>{const{flags:t}=e,r=A(),n=(e=>{const t=y((()=>Gg(e)),[e]);return C((()=>()=>{t.unmount()}),[t]),t})(r),o=P(),i=k(),a=O(),l=T(),s=_(),u=kg(),c=((e,t)=>{const[r]=Ng((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return{...await e.getEffectiveProperties()}}),[e,t]);return y((()=>{var e,t;const n=void 0!==(null==r?void 0:r.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(r.qHyperCubeDef.qSortbyYValue),o=null!==(e=null==r?void 0:r.qHyperCubeDef.qDimensions.map((e=>e.qDef.qSortCriterias)))&&void 0!==e?e:[];return{qAlwaysFullyExpanded:null!==(t=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==t&&t,qExpansionState:null==r?void 0:r.qHyperCubeDef.qExpansionState,isSortedByFirstMeasure:n,getSortCriteriaForDimension:e=>o[e]}}),[r])})(i,o),d=YP(o,t),p=(e=>{const t=R();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(d.isSnapshot),f=q(),m=qg(o,r),{translator:h,language:g}=tk(),{pageInfo:b,updatePageInfo:v}=((e,t)=>{const{size:r,layout:{qHyperCube:{qSize:n}}}=e,o=t.isDownloadedAsPDForImage||e.isSnapshot,i=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[a,l]=E((()=>{const a=((e,t)=>{var r,n,o,i;return t.isDownloadedAsPDForImage?null!==(r=null===(n=t.viewState)||void 0===n?void 0:n.renderPage)&&void 0!==r?r:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,t);return{page:a,shouldShowPagination:n.qcy>r.y&&!o,...JP(n.qcy,a,i)}})),s=e.layout.qHyperCube.qSize.qcy;return C((()=>{l((t=>({...t,...JP(s,t.page,i),shouldShowPagination:s>e.size.y&&!o})))}),[s,e.size.y,l,o,i]),C((()=>{const{page:e,totalPages:t}=a;if(e+1>t){const e=t-1,r=XP({...a,page:e});l({...a,page:e,rowsOnCurrentPage:r})}}),[a]),{pageInfo:a,updatePageInfo:e=>{l({...a,...e,rowsOnCurrentPage:XP({...a,...e})})}}})(d,u),x=((e,t,r)=>y((()=>((e,t)=>{var r,n,o,i,a,l,s,u;if(e.isDownloadedAsPDForImage){var c,d,p,f;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(c=null==t?void 0:t.scrollTop)&&void 0!==c?c:0,scrollLeft:null!==(d=null==t?void 0:t.scrollLeft)&&void 0!==d?d:0,leftGridScrollLeft:null!==(p=null==t?void 0:t.leftGridScrollLeft)&&void 0!==p?p:0,topGridScrollTop:null!==(f=null==t?void 0:t.topGridScrollTop)&&void 0!==f?f:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.scrollTop)&&void 0!==r?r:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0,topGridScrollTop:null!==(s=null==t||null===(u=t.content)||void 0===u?void 0:u.topGridScrollTop)&&void 0!==s?s:0}})(r,t.snapshotData)),[r,e.page,t.snapshotData]))(b,o,u),S=QP({rect:N(),layoutService:d,viewService:x,model:i,pageInfo:b}),[w,I]=KP({model:i,layoutService:d,viewService:x,pageInfo:b,rect:S}),L=y((()=>((e,t,r)=>{var n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,I,L,M,D,A,P,k,O,T,_,q,N,F,j,z,G,B,$,W,H,V,U,Y,K;const X=null===(n=t.layout.components)||void 0===n?void 0:n.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,re=null==X?void 0:X.nullValues,ne=null==X?void 0:X.grid,oe=(t,r,n)=>e.getStyle(t,r,n),ie=+(null!==(o=null!==(i=null==ne?void 0:ne[TP.LineClamp])&&void 0!==i?i:oe(_P.Grid,qP.Grid,NP.LineClamp))&&void 0!==o?o:1),ae=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==ne?void 0:ne[TP.ColumnLineClamp])&&void 0!==l?l:oe(_P.Grid,qP.Grid,NP.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=jP(e,null==J?void 0:J[TP.Background]))&&void 0!==u?u:oe(_P.Dimension,qP.LabelName,NP.BackgroundColor))&&void 0!==s?s:sg.Transparent,se={header:{fontSize:null!==(c=null!==(d=FP(null==J?void 0:J[TP.FontSize]))&&void 0!==d?d:oe(_P.Dimension,qP.LabelName,NP.FontSize))&&void 0!==c?c:ng,fontFamily:null!==(p=null!==(f=null==J?void 0:J[TP.FontFamily])&&void 0!==f?f:oe(_P.Dimension,qP.LabelName,NP.FontFamily))&&void 0!==p?p:og,fontWeight:GP(null==J?void 0:J[TP.FontStyle],ig),fontStyle:BP(null==J?void 0:J[TP.FontStyle]),textDecoration:$P(null==J?void 0:J[TP.FontStyle]),color:null!==(m=null!==(h=jP(e,null==J?void 0:J[TP.FontColor]))&&void 0!==h?h:oe(_P.Dimension,qP.LabelName,NP.FontColor))&&void 0!==m?m:fm.TEXT,background:le,hoverBackground:Hh(le,Wt),activeBackground:Hh(le,Ht)},dimensionValues:{fontSize:null!==(g=null!==(b=FP(null==Z?void 0:Z[TP.FontSize]))&&void 0!==b?b:oe(_P.Dimension,qP.LabelValue,NP.FontSize))&&void 0!==g?g:ng,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[TP.FontFamily])&&void 0!==y?y:oe(_P.Dimension,qP.LabelValue,NP.FontFamily))&&void 0!==v?v:og,fontWeight:GP(null==Z?void 0:Z[TP.FontStyle],void 0),fontStyle:BP(null==Z?void 0:Z[TP.FontStyle]),textDecoration:$P(null==Z?void 0:Z[TP.FontStyle]),color:null!==(x=null!==(S=jP(e,null==Z?void 0:Z[TP.FontColor]))&&void 0!==S?S:oe(_P.Dimension,qP.LabelValue,NP.FontColor))&&void 0!==x?x:fm.TEXT,background:null!==(E=null!==(C=jP(e,null==Z?void 0:Z[TP.Background]))&&void 0!==C?C:oe(_P.Dimension,qP.LabelValue,NP.BackgroundColor))&&void 0!==E?E:sg.Transparent},measureValues:{fontSize:null!==(w=null!==(R=FP(null==Q?void 0:Q[TP.FontSize]))&&void 0!==R?R:oe(_P.Measure,qP.LabelValue,NP.FontSize))&&void 0!==w?w:ng,fontFamily:null!==(I=null!==(L=null==Q?void 0:Q[TP.FontFamily])&&void 0!==L?L:oe(_P.Measure,qP.LabelValue,NP.FontFamily))&&void 0!==I?I:og,fontWeight:GP(null==Q?void 0:Q[TP.FontStyle],"normal"),fontStyle:BP(null==Q?void 0:Q[TP.FontStyle]),textDecoration:$P(null==Q?void 0:Q[TP.FontStyle]),color:null!==(M=null!==(D=jP(e,null==Q?void 0:Q[TP.FontColor]))&&void 0!==D?D:oe(_P.Measure,qP.LabelValue,NP.FontColor))&&void 0!==M?M:sg.FontSecondary,background:null!==(A=null!==(P=jP(e,null==Q?void 0:Q[TP.Background]))&&void 0!==P?P:oe(_P.Measure,qP.LabelValue,NP.BackgroundColor))&&void 0!==A?A:sg.Transparent},measureLabels:{fontWeight:GP(null==ee?void 0:ee[TP.FontStyle],"normal"),fontStyle:BP(null==ee?void 0:ee[TP.FontStyle]),textDecoration:$P(null==ee?void 0:ee[TP.FontStyle]),color:null!==(k=null!==(O=jP(e,null==ee?void 0:ee[TP.FontColor]))&&void 0!==O?O:oe(_P.Measure,qP.LabelName,NP.FontColor))&&void 0!==k?k:sg.FontSecondary,background:null!==(T=null!==(_=jP(e,null==ee?void 0:ee[TP.Background]))&&void 0!==_?_:oe(_P.Measure,qP.LabelName,NP.BackgroundColor))&&void 0!==T?T:sg.Transparent},totalValues:{fontWeight:GP(null==te?void 0:te[TP.FontStyle],ig),fontStyle:BP(null==te?void 0:te[TP.FontStyle]),textDecoration:$P(null==te?void 0:te[TP.FontStyle]),color:null!==(q=null!==(N=jP(e,null==te?void 0:te[TP.FontColor]))&&void 0!==N?N:oe(_P.Total,qP.LabelValue,NP.FontColor))&&void 0!==q?q:fm.TEXT,background:null!==(F=null!==(j=jP(e,null==te?void 0:te[TP.Background]))&&void 0!==j?j:oe(_P.Total,qP.LabelValue,NP.BackgroundColor))&&void 0!==F?F:sg.Transparent},nullValues:{fontWeight:GP(null==re?void 0:re[TP.FontStyle],"normal"),fontStyle:BP(null==re?void 0:re[TP.FontStyle]),textDecoration:$P(null==re?void 0:re[TP.FontStyle]),color:null!==(z=null!==(G=jP(e,null==re?void 0:re[TP.FontColor]))&&void 0!==G?G:oe(_P.Null,qP.LabelValue,NP.FontColor))&&void 0!==z?z:fm.TEXT,background:null!==(B=null!==($=jP(e,null==re?void 0:re[TP.Background]))&&void 0!==$?$:oe(_P.Null,qP.LabelValue,NP.BackgroundColor))&&void 0!==B?B:sg.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(W=null!==(H=jP(e,null==ne?void 0:ne[TP.Border]))&&void 0!==H?H:oe(_P.Grid,qP.Grid,NP.BorderColor))&&void 0!==W?W:sg.DividerLight,divider:null!==(V=null!==(U=jP(e,null==ne?void 0:ne[TP.Divider]))&&void 0!==U?U:oe(_P.Grid,qP.Divider,NP.BorderColor))&&void 0!==V?V:sg.DividerDark,background:null!==(Y=null!==(K=jP(e,null==ne?void 0:ne[TP.Background]))&&void 0!==K?K:oe(_P.Grid,qP.Grid,NP.BackgroundColor))&&void 0!==Y?Y:sg.Transparent},selectedColors:Wh(e)};return se.headerCellHeight=Math.max(zP(se.header.fontSize,ae),zP(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(zP(se.measureValues.fontSize,ie),zP(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=zP(se.dimensionValues.fontSize,1),se})(m,d,t)),[m,d,t]),M=((e,t,r)=>{const[,n,o]=Ng((async()=>{var t;const n=_m(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),l=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...l,o,i,a,$g].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n})(m,o,e);VP([UP({model:i,env:e,layoutService:d,effectivePropertiesService:c,translator:h})]),C((()=>{!I&&i&&!!w&&M&&OP(n,{selections:f,baseObjects:{rect:S,pageInfo:b,qPivotDataPages:w,updatePageInfo:v},nebulaObjects:{env:e,app:a,model:i,embed:l,theme:m,keyboard:s,translator:h,interactions:p},coreServices:{styleService:L,viewService:x,layoutService:d,downloadService:u,effectivePropertiesService:c}})}),[i,a,S,p,f,x,d,u,I,w,L,n,M,h,g,b,v,c,l,s,m,e])},nk={version:"4.4.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},ok=()=>({...nk,qHyperCubeDef:{...nk.qHyperCubeDef,qIndentMode:!1}})}}}));