@nebula.js/sn-table 3.9.0 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.9.0
2
+ * @nebula.js/sn-table v3.9.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -190,4 +190,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
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),YE.rippleVisible,tC,550,(({theme:e})=>e.transitions.easing.easeInOut),YE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),YE.child,YE.childLeaving,rC,550,(({theme:e})=>e.transitions.easing.easeInOut),YE.childPulsate,nC,(({theme:e})=>e.transitions.easing.easeInOut));var aC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=K(r,KE),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=Eo(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,na.jsx(iC,{classes:{ripple:Bo(o.ripple,YE.ripple),rippleVisible:Bo(o.rippleVisible,YE.rippleVisible),ripplePulsate:Bo(o.ripplePulsate,YE.ripplePulsate),child:Bo(o.child,YE.child),childLeaving:Bo(o.childLeaving,YE.childLeaving),childPulsate:Bo(o.childPulsate,YE.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;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)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=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;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),na.jsx(oC,j({className:Bo(YE.root,o.root,i),ref:m},a,{children:na.jsx(ps,{component:null,exit:!0,children:l})}))}));function lC(e){return No("MuiButtonBase",e)}var sC=Fo("MuiButtonBase",["root","disabled","focusVisible"]);const uC=["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"],cC=cE("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"},[`&.${sC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=K(r,uC),T=y.useRef(null),k=y.useRef(null),O=vo(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Mo(),[$,B]=y.useState(!1);s&&$&&B(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[H,G]=y.useState(!1);y.useEffect((()=>{G(!0)}),[]);const W=H&&!u&&!s;function V(e,t,r=c){return bo((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{$&&d&&!u&&H&&k.current.pulsate()}),[u,d,$,H]);const U=V("start",E),Y=V("stop",h),X=V("stop",g),J=V("stop",w),Z=V("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),Q=V("start",I),ee=V("stop",R),te=V("stop",A),re=V("stop",(e=>{F(e),!1===q.current&&B(!1),f&&f(e)}),!1),ne=bo((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(B(!0),v&&v(e)),b&&b(e)})),oe=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=bo((e=>{d&&!ie.current&&$&&k.current&&" "===e.key&&(ie.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),le=bo((e=>{d&&" "===e.key&&k.current&&$&&!e.defaultPrevented&&(ie.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=l;"button"===se&&(_.href||_.to)&&(se=p);const ue={};"button"===se?(ue.type=void 0===M?"button":M,ue.disabled=s):(_.href||_.to||(ue.role="button"),s&&(ue["aria-disabled"]=s));const ce=vo(t,z,T),de=j({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=To({root:["root",t&&"disabled",r&&"focusVisible"]},lC,o);return r&&n&&(i.root+=` ${n}`),i})(de);return na.jsxs(cC,j({as:se,className:Bo(pe.root,a),ownerState:de,onBlur:re,onClick:m,onContextMenu:Y,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:U,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ce,tabIndex:s?-1:D,type:M},ue,_,{children:[i,W?na.jsx(aC,j({ref:O,center:o},L)):null]}))}));var pC=dC;var fC=Fo("MuiBox",["root"]);const mC=_S(),hC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=_n("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(sx),a=y.forwardRef((function(e,a){const l=function(e=mx){return fx(e)}(r),s=bx(e),{className:u,component:c="div"}=s,d=K(s,yx);return na.jsx(i,j({as:c,ref:a,className:Bo(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:ly,defaultTheme:mC,defaultClassName:fC.root,generateClassName:Oo.generate});var gC=hC;var bC=Fo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var vC=y.createContext({});function yC(e){return No("MuiListItemIcon",e)}var xC=Fo("MuiListItemIcon",["root","alignItemsFlexStart"]);const SC=["className"],EC=cE("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var CC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=K(r,SC),i=j({},r,{alignItems:y.useContext(vC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return To({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yC,r)})(i);return na.jsx(EC,j({className:Bo(a.root,n),ownerState:i,ref:t},o))}));var wC=Fo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function RC(e){return No("MuiMenuItem",e)}var AC=Fo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const IC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],DC=cE(pC,{shouldForwardProp:e=>uE(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})=>j({},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"}},[`&.${AC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${AC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${AC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bx(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})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${AC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${AC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bC.inset}`]:{marginLeft:52},[`& .${wC.root}`]:{marginTop:0,marginBottom:0},[`& .${wC.inset}`]:{paddingLeft:36},[`& .${xC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xC.root} svg`]:{fontSize:"1.25rem"}}))));var LC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=K(r,IC),f=y.useContext(vC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);go((()=>{n&&h.current&&h.current.focus()}),[n]);const g=j({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return j({},a,To({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},RC,a))})(r),v=vo(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),na.jsx(vC.Provider,{value:m,children:na.jsx(DC,j({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Bo(b.focusVisible,s),className:Bo(b.root,d)},p,{ownerState:g,classes:b}))})}));var PC=y.createContext();function MC(e){return No("MuiTable",e)}Fo("MuiTable",["root","stickyHeader"]);const _C=["className","component","padding","size","stickyHeader"],TC=cE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),kC="table",OC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTable"}),{className:n,component:o=kC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=K(r,_C),u=j({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return To({root:["root",r&&"stickyHeader"]},MC,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return na.jsx(PC.Provider,{value:d,children:na.jsx(TC,j({as:o,role:o===kC?null:"table",ref:t,className:Bo(c.root,n),ownerState:u},s))})}));var qC=OC;var NC=y.createContext();function FC(e){return No("MuiTableBody",e)}Fo("MuiTableBody",["root"]);const zC=["className","component"],jC=cE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$C={variant:"body"},BC="tbody";var HC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableBody"}),{className:n,component:o=BC}=r,i=K(r,zC),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},FC,t)})(a);return na.jsx(NC.Provider,{value:$C,children:na.jsx(jC,j({className:Bo(l.root,n),as:o,ref:t,role:o===BC?null:"rowgroup",ownerState:a},i))})}));function GC(e){return No("MuiTableCell",e)}var WC=Fo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const VC=["align","className","component","padding","scope","size","sortDirection","variant"],UC=cE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${uo(r.size)}`],"normal"!==r.padding&&t[`padding${uo(r.padding)}`],"inherit"!==r.align&&t[`align${uo(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Wx(Bx(e.palette.divider,1),.88):Hx(Bx(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${WC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),YC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=K(r,VC),p=y.useContext(PC),f=y.useContext(NC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=j({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return To({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${uo(n)}`,"normal"!==o&&`padding${uo(o)}`,`size${uo(i)}`]},GC,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),na.jsx(UC,j({as:h,ref:t,className:Bo(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var KC=YC;function XC(e){return No("MuiTableContainer",e)}Fo("MuiTableContainer",["root"]);const JC=["className","component"],ZC=cE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var QC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=K(r,JC),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},XC,t)})(a);return na.jsx(ZC,j({ref:t,as:o,className:Bo(l.root,n),ownerState:a},i))}));function ew(e){return No("MuiTableHead",e)}Fo("MuiTableHead",["root"]);const tw=["className","component"],rw=cE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nw={variant:"head"},ow="thead";var iw=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableHead"}),{className:n,component:o=ow}=r,i=K(r,tw),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},ew,t)})(a);return na.jsx(NC.Provider,{value:nw,children:na.jsx(rw,j({as:o,className:Bo(l.root,n),ref:t,role:o===ow?null:"rowgroup",ownerState:a},i))})}));function aw(e){return No("MuiTableRow",e)}var lw=Fo("MuiTableRow",["root","selected","hover","head","footer"]);const sw=["className","component","hover","selected"],uw=cE("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${lw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),cw="tr",dw=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableRow"}),{className:n,component:o=cw,hover:i=!1,selected:a=!1}=r,l=K(r,sw),s=y.useContext(NC),u=j({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return To({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},aw,t)})(u);return na.jsx(uw,j({as:o,ref:t,className:Bo(c.root,n),role:o===cw?null:"row",ownerState:u},l))}));var pw=dw,fw=(e={})=>x.createElement($E,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:wE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const mw={MuiAccordion:{styleOverrides:{root:{backgroundColor:wE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:wE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(FE,{"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 ${wE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,borderRadius:LE,backgroundColor:wE.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 ${wE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:wE.WHITE,color:wE.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:LE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:wE.GREYSCALE_0_15,backgroundColor:wE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:wE.GREEN_PALE},"&:active":{backgroundColor:wE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:wE.BLUE_PALE},"&:active":{backgroundColor:wE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.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:LE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:wE.GREYSCALE_0_15,backgroundColor:wE.GREYSCALE_100_60,"&:active":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:wE.PURPLE,"&.Mui-focusVisible":{borderColor:wE.PURPLE,boxShadow:`0 0 0 3px ${Sx(wE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:wE.GREEN,"&.Mui-focusVisible":{borderColor:wE.GREEN,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:wE.BLUE,"&.Mui-focusVisible":{borderColor:wE.BLUE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:wE.ORANGE,"&.Mui-focusVisible":{borderColor:wE.ORANGE,boxShadow:`0 0 0 3px ${Sx(wE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:wE.RED,"&.Mui-focusVisible":{borderColor:wE.RED,boxShadow:`0 0 0 3px ${Sx(wE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:wE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:wE.PURPLE_PALE},"&:active":{backgroundColor:wE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:wE.PURPLE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:wE.GREEN_PALE},"&:active":{backgroundColor:wE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:wE.BLUE_PALE},"&:active":{backgroundColor:wE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:wE.ORANGE_PALE},"&:active":{backgroundColor:wE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:wE.ORANGE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:wE.RED_PALE},"&:active":{backgroundColor:wE.RED_DARK},"&.Mui-focusVisible":{borderColor:wE.RED_PALE,boxShadow:`0 0 0 3px ${Sx(wE.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:wE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:wE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:LE,boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:RE,borderRadius:LE,color:wE.TEXT_PRIMARY,backgroundColor:wE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:wE.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:wE.GREYSCALE_0_05,color:wE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:wE.GREEN,borderColor:wE.GREEN},"&.MuiChip-outlinedInfo":{color:wE.BLUE,borderColor:wE.BLUE},"&.MuiChip-outlinedWarning":{color:wE.ORANGE,borderColor:wE.ORANGE},"&.MuiChip-outlinedError":{color:wE.RED,borderColor:wE.RED}},outlined:{border:`solid 1px ${wE.GREYSCALE_0_15}`,backgroundColor:wE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:LE,boxShadow:"none",backgroundColor:wE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:wE.GREEN,borderColor:wE.GREEN},outlinedSecondary:{color:wE.BLUE,borderColor:wE.BLUE},label:{fontFamily:kE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(FE,{"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:LE},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:LE,fontSize:AE,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:wE.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${wE.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:wE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:wE.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:wE.GREYSCALE_0_05}}},popupIndicator:{borderRadius:LE,border:`solid 1px ${wE.GREYSCALE_0_15}`,color:wE.GREYSCALE_0_60,marginRight:0,width:DE,height:DE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${wE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:LE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:wE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:AE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:RE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:wE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:wE.GREYSCALE_25,fontSize:RE,fontFamily:kE.FONT_FAMILY,fontWeight:_E,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:wE.TEXT_PRIMARY},"&.Mui-error":{color:wE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:wE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ME,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:wE.TEXT_SECONDARY,content:"'(required)'",fontWeight:ME,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:AE,lineHeight:"16px",backgroundColor:wE.WHITE,borderRadius:LE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.GREYSCALE_0_05}`,borderColor:wE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.RED}`,boxShadow:`0px 0px 0px 1px ${wE.RED}, inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.GREYSCALE_0_10}`,borderColor:wE.GREYSCALE_0_10,backgroundColor:wE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:wE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:wE.GREYSCALE_0_15,borderRadius:LE,boxShadow:`inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(FE,{...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:wE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:wE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&:active":{backgroundColor:wE.GREYSCALE_0_10},"&:focus":{backgroundColor:wE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${wE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:wE.GREYSCALE_0_30,"&:hover":{backgroundColor:wE.GREYSCALE_0_0,borderColor:wE.GREYSCALE_0_15},"& ~svg":{color:wE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${wE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:LE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:wE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:AE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:RE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:RE,fontWeight:_E,color:wE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_E}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${wE.GREYSCALE_0_15}, 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(GE,null),checkedIcon:x.createElement(WE,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:wE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:wE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:wE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(fw,null),checkedIcon:x.createElement(BE,null),indeterminateIcon:x.createElement(HE,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:LE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:wE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:wE.GREYSCALE_0_55,color:wE.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:wE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:wE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:wE.GREYSCALE_0_55,"&:hover":{color:wE.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:wE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:wE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:AE,color:wE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_E},secondary:{fontSize:RE,color:wE.GREYSCALE_45,fontWeight:ME,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:AE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&:active":{backgroundColor:wE.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:AE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:wE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:RE,borderBottom:`solid 1px ${wE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:AE,color:wE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:wE.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:wE.RED}}},"&.Mui-focusVisible":{backgroundColor:wE.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:wE.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:wE.GREEN,height:"24px","&.Mui-disabled":{color:wE.GREYSCALE_0_15}},rail:{backgroundColor:wE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${wE.GREYSCALE_0_05}`,borderRadius:LE,boxShadow:`inset 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${wE.GREYSCALE_0_05}`,borderRadius:LE},thumb:{height:"16px",width:"16px",borderRadius:LE,backgroundColor:wE.WHITE,boxShadow:`0px 1px 2px 0px ${wE.GREYSCALE_0_15}, 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`,"&:hover":{borderRadius:LE,boxShadow:`0 2px 4px 0 ${wE.GREYSCALE_0_30}, 0 0 0 1px ${wE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${wE.GREYSCALE_0_15}, 0 0 0 1px ${wE.GREYSCALE_0_06}, 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${wE.GREYSCALE_0_15}, 0 0 0 1px ${wE.GREYSCALE_0_06}, 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:wE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:wE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:wE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:wE.GREYSCALE_0_15},markLabel:{color:wE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:wE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:wE.WHITE,color:wE.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:wE.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:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:wE.GREYSCALE_0_15,borderRadius:LE},thumb:{height:"16px",width:"16px",borderRadius:LE,backgroundColor:wE.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:AE,fontWeight:_E,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${wE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,backgroundColor:wE.GREYSCALE_0_03,borderRadius:LE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:wE.GREYSCALE_25,"&.Mui-selected":{color:wE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:AE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:LE,"&:hover":{backgroundColor:`${wE.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 ${wE.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${wE.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:LE,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:wE.GREYSCALE_0_05},"&:hover":{backgroundColor:`${wE.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${wE.GREYSCALE_85}`,borderRight:`1px solid ${wE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_E,backgroundColor:wE.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:wE.GREYSCALE_98,borderBottom:`1px solid ${wE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${wE.GREYSCALE_85}`,borderTop:`1px solid ${wE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:wE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:wE.GREYSCALE_0_05,"&:hover":{backgroundColor:wE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:wE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(VE,{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 ${wE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:AE,borderRadius:LE,padding:"7px 16px",border:`1px solid ${wE.GREYSCALE_0_15}`,backgroundColor:wE.GREYSCALE_100_60,color:wE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:wE.GREYSCALE_0_10,border:`1px solid ${wE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:wE.GREYSCALE_0_03,border:`1px solid ${wE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:wE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`,border:`1px solid ${wE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:wE.GREYSCALE_25,backgroundColor:wE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:wE.GREYSCALE_0_10,border:`1px solid ${wE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:RE,height:24,width:24,padding:7},sizeLarge:{fontSize:IE,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:AE,borderRadius:LE}}},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:wE.GREYSCALE_20},tooltip:{backgroundColor:wE.GREYSCALE_20,fontSize:RE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var hw=e=>mw;const gw={mode:"light",primary:{ultraLight:wE.GREEN_ULTRA_LIGHT,light:wE.GREEN_PALE,main:wE.GREEN,dark:wE.GREEN_DARK,extraDark:wE.GREEN_EXTRA_DARK,contrastText:wE.WHITE},secondary:{ultraLight:wE.BLUE_ULTRA_LIGHT,light:wE.BLUE_PALE,main:wE.BLUE,dark:wE.BLUE_DARK,extraDark:wE.BLUE_EXTRA_DARK,contrastText:wE.WHITE},error:{ultraLight:wE.RED_ULTRA_LIGHT,light:wE.RED_PALE,main:wE.RED,dark:wE.RED_DARK,extraDark:wE.RED_EXTRA_DARK,contrastText:wE.WHITE},warning:{ultraLight:wE.ORANGE_ULTRA_LIGHT,light:wE.ORANGE_PALE,main:wE.ORANGE,dark:wE.ORANGE_DARK,extraDark:wE.ORANGE_EXTRA_DARK,contrastText:wE.WHITE},success:{ultraLight:wE.GREEN_ULTRA_LIGHT,light:wE.GREEN_PALE,main:wE.GREEN,dark:wE.GREEN_DARK,extraDark:wE.GREEN_EXTRA_DARK,contrastText:wE.WHITE},info:{ultraLight:wE.BLUE_ULTRA_LIGHT,light:wE.BLUE_PALE,main:wE.BLUE,dark:wE.BLUE_DARK,extraDark:wE.BLUE_EXTRA_DARK,contrastText:wE.WHITE},text:{primary:wE.TEXT_PRIMARY,secondary:wE.TEXT_SECONDARY,disabled:wE.GREYSCALE_0_30},action:{hover:wE.GREYSCALE_0_03,hoverOpacity:.03,selected:wE.GREYSCALE_0_05,selectedOpacity:.05,focus:wE.MISC_FOCUS_BORDER},amethyst:{ultraLight:wE.WHITE,main:wE.PURPLE,light:wE.PURPLE_PALE,dark:wE.PURPLE_DARK,extraDark:wE.GREYSCALE_0_0,contrastText:wE.WHITE},background:{paper:wE.WHITE,default:wE.GREYSCALE_95},divider:wE.GREYSCALE_0_15},bw=e=>({components:hw(),palette:gw,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:AE,fontWeightLight:PE,fontWeightRegular:ME,fontWeightMedium:_E,fontWeightBold:TE,htmlFontSize:AE,fontFamily:kE.FONT_FAMILY,button:{fontWeight:_E,fontSize:AE,textTransform:"none"},body1:{fontSize:IE,lineHeight:"24px"},body2:{fontSize:AE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:DE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:IE,fontWeight:_E,lineHeight:"16px"},h6:{fontSize:AE,fontWeight:_E,lineHeight:"16px"},caption:{color:wE.TEXT_SECONDARY},subtitle1:{fontSize:AE,color:wE.TEXT_SECONDARY},subtitle2:{fontSize:RE,color:wE.TEXT_SECONDARY}},shape:{borderRadius:LE}}),vw={...CE,MISC_FOCUS_BORDER:wE.MISC_FOCUS_BORDER},yw=(e="light")=>bw(),xw=yw().palette,Sw={SELECTED:{color:vw.GREYSCALE_100,background:xw.primary.light,selectedCellClass:mE.SELECTED},POSSIBLE:{color:xw.text.primary,background:vw.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Ew=4/3,Cw="12px",ww="600",Rw="Source Sans Pro, sans-serif",Aw={height:"auto",fontSize:Cw,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Iw={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:ww},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},Dw=25e4,Lw=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(fh.PixelsMax,Math.max(fh.PixelsMin,m)),i-=n[a]};switch(s){case mh.Pixels:m=u||fh.PixelsDefault,h();break;case mh.Percentage:m=(c||fh.PercentageDefault)/100*t,h();break;case mh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===Qg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case mh.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(fh.AutoMinTable,e)}))}return n},Pw=e=>e.ctrlKey||e.metaKey,Mw=e=>e.shiftKey&&Pw(e),_w=e=>[gE.LEFT,gE.RIGHT,gE.UP,gE.DOWN].includes(e),Tw=e=>_w(e)||[gE.HOME,gE.END,gE.PAGE_UP,gE.PAGE_DOWN].includes(e),kw=e=>e.shiftKey&&_w(e.key),Ow=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=mE.INACTIVE;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?mE.EXCLUDED:void 0!==n[e.qElemNumber]?mE.SELECTED:mE.POSSIBLE),i},qw=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Nw=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),qw(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},Fw=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&kw(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&kw(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===gE.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),qw(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},zw=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},jw=(e,t)=>{var r;switch(t.type){case hE.SELECT:return Nw(e,t.payload);case hE.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case hE.SELECT_MOUSE_UP:return((e,t)=>zw(e.isSelectMultiValues||e.firstCell!==t.cell?e:Nw(e,t)))(e,t.payload);case hE.SELECT_MULTI_ADD:return Fw(e,t.payload);case hE.SELECT_MULTI_END:return zw(e);case hE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case hE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case hE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},$w=4/3,Bw=e=>parseInt(e,10)*$w+8+1,Hw=e=>!!e&&(!(null==e||!e.color)||(null==e?void 0:e.index)>-1);function Gw(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const Ww=e=>Cf(e)?Sp.WHITE:Sp.TEXT,Vw=(e,t)=>e?{borderBottomColor:Sp.DARK_MODE_BORDER,borderRightColor:Sp.DARK_MODE_BORDER,borderLeftColor:Sp.DARK_MODE_BORDER,borderTopColor:Sp.DARK_MODE_BORDER}:{borderLeftColor:Sp.BORDER_MEDIUM,borderRightColor:Sp.BORDER_MEDIUM,borderTopColor:Sp.BORDER_HEAVY,borderBottomColor:t?Sp.BORDER_HEAVY:Sp.BORDER_LIGHT},Uw=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},Yw=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:Hw(null==r?void 0:r.fontColor)?Gw(Sp.TEXT,t,null==r?void 0:r.fontColor):i||Sp.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...Vw(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function Kw(e,t,r){var n,o,i;const a=null===(n=Uw(e))||void 0===n?void 0:n.header,l=Yw("header",t,a,r);return l.background=Df(t.background.headerColor),l.hoverBackground=Ef(null!==(o=l.background)&&void 0!==o?o:Sp.WHITE,hh.hover),l.activeBackground=Ef(null!==(i=l.background)&&void 0!==i?i:Sp.WHITE,hh.active),l}function Xw(e,t,r,n){var o;const i=null===(o=Uw(e))||void 0===o?void 0:o.content,a=Yw("content",t,i);a.background=t.background.color;const l=((e,t,r)=>{if(e&&t&&r)return Bw(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=Hw(u)||!!d,f=Hw(s)||!!c,m=p||f;let h;h=Hw(s)?Gw(Sp.HOVER,t,s):c||(p?"":Sp.HOVER);const g=m?Gw(Ww(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const Jw=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in Iw&&Object.assign(t,Iw[e]))),t};function Zw(e,t,r,n){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&If(o);l&&"none"!==l&&(i[r[t]]=l),n.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=Jw(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=Ww(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const Qw=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return Cw}},eR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",tR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",rR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ww:"normal",nR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},oR=(e,t,r,n)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,D,L,P,M,_,T,k,O,q,N,F,z;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r)=>{var n,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:ww,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:ww,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(n=Uw(e))||void 0===n||null===(n=n.content)||void 0===n?void 0:n.rowHeight,border:r.background.isDark?Sp.DARK_MODE_BORDER:Sp.BORDER_MEDIUM,divider:Sp.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,r,n);const{header:j,dimensionValues:$,measureValues:B,totalRow:H,nullValues:G,grid:W,content:V}=null!==(o=Uw(t))&&void 0!==o?o:{},U=null!==(i=null!==(a=nR(n,null==j?void 0:j.background))&&void 0!==a?a:r.head.background)&&void 0!==i?i:Sp.TRANSPARENT;return{header:{fontFamily:null!==(l=null!==(s=null==j?void 0:j.fontFamily)&&void 0!==s?s:r.head.fontFamily)&&void 0!==l?l:Rw,fontSize:Qw(null!==(u=null==j?void 0:j.fontSize)&&void 0!==u?u:r.head.fontSize),fontStyle:eR(null==j?void 0:j.fontStyle),fontWeight:rR(null==j?void 0:j.fontStyle,ww),textDecoration:tR(null==j?void 0:j.fontStyle),color:null!==(c=null!==(d=nR(n,null==j?void 0:j.fontColor))&&void 0!==d?d:r.head.color)&&void 0!==c?c:Sp.TEXT,background:U},headerMenuHoverBackground:Ef(U,hh.hover),headerMenuActiveBackground:Ef(U,hh.active),dimension:{values:{fontFamily:null!==(p=null!==(f=null==$?void 0:$.fontFamily)&&void 0!==f?f:r.body.fontFamily)&&void 0!==p?p:Rw,fontSize:Qw(null!==(m=null==$?void 0:$.fontSize)&&void 0!==m?m:r.body.fontSize),fontStyle:eR(null==$?void 0:$.fontStyle),fontWeight:rR(null==$?void 0:$.fontStyle,"normal"),textDecoration:tR(null==$?void 0:$.fontStyle),color:null!==(h=null!==(g=nR(n,null==$?void 0:$.fontColor))&&void 0!==g?g:r.body.color)&&void 0!==h?h:Sp.TEXT,background:null!==(b=null!==(v=nR(n,null==$?void 0:$.background))&&void 0!==v?v:r.body.background)&&void 0!==b?b:Sp.TRANSPARENT}},measure:{values:{fontFamily:null!==(y=null!==(x=null==B?void 0:B.fontFamily)&&void 0!==x?x:r.body.fontFamily)&&void 0!==y?y:Rw,fontSize:Qw(null!==(S=null==B?void 0:B.fontSize)&&void 0!==S?S:r.body.fontSize),fontStyle:eR(null==B?void 0:B.fontStyle),fontWeight:rR(null==B?void 0:B.fontStyle,"normal"),textDecoration:tR(null==B?void 0:B.fontStyle),color:null!==(E=null!==(C=nR(n,null==B?void 0:B.fontColor))&&void 0!==C?C:r.body.color)&&void 0!==E?E:Sp.TEXT,background:null!==(w=null!==(R=nR(n,null==B?void 0:B.background))&&void 0!==R?R:r.body.background)&&void 0!==w?w:Sp.TRANSPARENT}},totalRow:{fontFamily:null!==(A=null!==(I=null==H?void 0:H.fontFamily)&&void 0!==I?I:r.totals.fontFamily)&&void 0!==A?A:Rw,fontSize:Qw(null!==(D=null==H?void 0:H.fontSize)&&void 0!==D?D:r.totals.fontSize),fontStyle:eR(null==H?void 0:H.fontStyle),fontWeight:rR(null==H?void 0:H.fontStyle,ww),textDecoration:tR(null==H?void 0:H.fontStyle),color:null!==(L=null!==(P=nR(n,null==H?void 0:H.fontColor))&&void 0!==P?P:r.totals.color)&&void 0!==L?L:Sp.TEXT,background:null!==(M=null!==(_=nR(n,null==H?void 0:H.background))&&void 0!==_?_:r.totals.background)&&void 0!==M?M:Sp.TRANSPARENT},nullValues:{fontStyle:eR(null==G?void 0:G.fontStyle),fontWeight:rR(null==G?void 0:G.fontStyle,"normal"),textDecoration:tR(null==G?void 0:G.fontStyle),color:null!==(T=null!==(k=nR(n,null==G?void 0:G.fontColor))&&void 0!==k?k:r.body.color)&&void 0!==T?T:Sp.TEXT,background:null!==(O=nR(n,null==G?void 0:G.background))&&void 0!==O?O:Sp.NULL_VALUE_BACKGROUND},grid:{lineClamp:null==V?void 0:V.rowHeight,border:null!==(q=nR(n,null==W?void 0:W.border))&&void 0!==q?q:n.background.isDark?Sp.DARK_MODE_BORDER:Sp.BORDER_MEDIUM,divider:null!==(N=nR(n,null==W?void 0:W.divider))&&void 0!==N?N:Sp.BORDER_HEAVY,hoverColors:{color:null===(F=r.body.hoverColors)||void 0===F?void 0:F.color,background:null===(z=r.body.hoverColors)||void 0===z?void 0:z.background},lastRowBottomBorder:r.body.lastRowBottomBorder}}},iR=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=Xw(e,t,r.rows.length,n),a=Kw(e,t,!o),l=function(e,t,r){var n;const o=null===(n=Uw(e))||void 0===n?void 0:n.content,i=Yw("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=Kw(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},aR=new Map;const lR=P({}),sR=function(e){const t=P([()=>{},new Set]);return aR.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=_((()=>o.current),[o]),l=E((()=>[a,i.current]),[a]);return na.jsx(e.Provider,{value:n,children:na.jsx(t.Provider,{value:l,children:r})})}}(lR),uR={rows:[],columns:[],totalsPosition:{}},cR=({app:e,children:t,tableData:r=uR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[C,w]=S(0),[R,A]=S(o||EE),[I,D]=((e,t)=>{const[r,n]=L(jw,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,M]=S(-1),_=iR(i,u,r,d),T=((e,t,r,n)=>E((()=>oR(e,t,r,n)),[t,r,e,n]))(x,i,_,u),[k,O,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Zm({...n.header,fontWeight:ww},{maxNbrLinesOfText:3}).measureText,a=Zm({...n.totalRow,fontWeight:ww},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=Zm(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=Zm(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=S(0),[p,f]=S((()=>Lw(e,r,u)));th((()=>{f(Lw(e,r-c,u))}),[e,r,c,u]);const m=E((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,T),F=E((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:T})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,T]);return na.jsx(sR,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:P,setHoverIndex:M,columnWidths:k,setColumnWidths:O,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function dR(e,t){const r=function(e){return aR.get(e)}(e),[n,o]=w(r),[,i]=L((e=>e+1),0),a=M(t),l=M(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function pR(e){var t;const r=yw();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),_S({...r,direction:e})}const fR=Rl(Yu,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${ph}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${ph}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),mR=Rl(Yu)({position:"absolute",height:"100%",width:"3px"}),hR=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};th((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,fh.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:mh.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{Pf(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},S=e=>{Pf(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!n&&l?e=>{if(e.key===ch.LEFT||e.key===ch.RIGHT){Pf(e);const t=5,r=e.key===ch.LEFT?-t:t;h(c.current.columnWidth+r)}else e.key===ch.SPACE||e.key===ch.ENTER?(Pf(e),l(e),g()):e.key===ch.ESC&&(Pf(e),l(e),h(c.current.initWidth))}:void 0;return x.createElement(fR,{className:dh,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:mh.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>m(),"data-testid":dh},x.createElement(mR,{className:ph}))};function gR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bR=T(((e,t)=>x.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){gR(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:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function vR(){return vR=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},vR.apply(null,arguments)}const yR=Rl(Yu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),xR=Rl(bR,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SR=Rl(Rd)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ER=Rl(vc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CR=Rl(Pd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wR=Rl(Pd,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),RR=Rl("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),AR=Rl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),IR=Rl(Ks)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),DR=Rl(Zc)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function LR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PR=T(((e,t)=>x.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){LR(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:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let MR={};const _R=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=M(null),f=_((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(wR,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MR={}),null!=a&&a.length&&(d(!0),MR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(RR,null),x.createElement(AR,null,x.createElement(DR,null,x.createElement(o,null)),x.createElement(IR,{variant:"body2"},n)),null!=a&&a.length?x.createElement(PR,null):null),(null==a?void 0:a.length)&&x.createElement(OR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=MR,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},TR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(CR,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(_R,vR({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),kR={appear:200,enter:200,exit:100},OR=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(SR,vR({className:lh,open:t,anchorEl:e,onClose:r,transitionDuration:kR,MenuListProps:{id:sh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[TR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(ER,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},NR=(e,t)=>e.some((e=>t[e]>0));function FR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zR=T(((e,t)=>x.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){FR(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:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function jR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $R=T(((e,t)=>x.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){jR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function BR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HR=T(((e,t)=>x.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){BR(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:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function GR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WR=T(((e,t)=>x.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){GR(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:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function VR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const UR=T(((e,t)=>x.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){VR(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:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function YR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KR=T(((e,t)=>x.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){YR(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:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function XR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JR=T(((e,t)=>x.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){XR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QR=T(((e,t)=>x.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){ZR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function eA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tA=T(((e,t)=>x.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){eA(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function rA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nA=T(((e,t)=>x.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){rA(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:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let oA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const iA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(r[oA.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:zR,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:WR,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];r[oA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:UR,enabled:!0}]}]),r[oA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:nA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:KR,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:tA,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:JR,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:QR,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:$R,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return r[oA.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:HR,enabled:!0}]}]),d},aA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=nh({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(qR);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:_((()=>i(qR)),[]),updateSelectionActionsEnabledStatus:_((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:NR(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:NR(["qSelected"],r.qStateCounts),canSelectPossible:NR(["qOption"],r.qStateCounts),canSelectAlternative:NR(["qAlternative"],r.qStateCounts),canSelectExcluded:NR(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=_((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);C((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,E,w,null==d?void 0:d.model]);const A=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(yR,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:ah},s&&x.createElement(xR,{height:oh,className:ih,"data-testid":ih,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(bR,null)),x.createElement(OR,{open:e,anchorEl:r.current,onClose:A,menuGroups:iA({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},lA=e=>e.isDark?{background:e.color,borderColor:Sp.DARK_MODE_BORDER,color:Sp.DARK_MODE_TEXT,disabledColor:Sp.DARK_MODE_DISABLED,iconColor:Sp.DARK_MODE_TEXT}:{background:e.color,borderColor:Sp.BORDER_MEDIUM,color:Sp.TEXT,disabledColor:Sp.DISABLED},sA=Rl(Yu,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),uA=Rl(mp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),cA=Rl(ic,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),dA=Rl(Ks)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pA=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>lA(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(sA,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},fA=P({}),mA=()=>w(fA),hA=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>lA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=nh({translator:d}),S=E((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(fA.Provider,{value:S},e)};let gA=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bA=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function vA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yA=T(((e,t)=>x.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){vA(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:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function xA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SA=T(((e,t)=>x.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){xA(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:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CA=T(((e,t)=>x.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){EA(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:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),wA={FirstPage:SA,PreviousPage:yA,NextPage:PR,LastPage:CA,FirstPageRTL:CA,PreviousPageRTL:PR,NextPageRTL:yA,LastPageRTL:SA},RA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=mA(),u=wA[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},AA=()=>{const{pageInfo:e,width:t}=mA(),r=0===e.page,{IconComponent:n,styledProps:o}=RA({type:gA.FirstPage,disabledCondition:r,pageNumber:0});return t<=bA.FirstPage?null:x.createElement(cA,o,x.createElement(n,{height:oh}))},IA=(e,t,r=!1)=>{r&&e.key===ch.TAB&&!e.shiftKey&&(Pf(e),Lf(e.target,t,!1))},DA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=mA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=RA({type:gA.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>IA(e,t,n):null;return o<=bA.LastPage?null:x.createElement(cA,vR({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},LA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=mA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=RA({type:gA.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>bA.FirstPage&&o>bA.LastPage)&&t.enabled?e=>IA(e,t,n):null;return x.createElement(cA,vR({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},PA=()=>{const{pageInfo:e}=mA(),t=0===e.page,{IconComponent:r,styledProps:n}=RA({type:gA.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(cA,n,x.createElement(r,{height:oh}))},MA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=mA(),{page:o,rowsPerPage:i}=r;if(t<=bA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(dA,{variant:"caption"},a)},_A=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=mA(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(dA,{variant:"caption",id:d},u,":"),x.createElement(uA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},TA=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=mA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>bA.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(_A,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},kA=1e3,OA="…",qA=({totalPages:e,page:t})=>{const r=Math.min(e,kA),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-kA):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:OA,disabled:!0},OA)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:OA,disabled:!0},OA)),x.createElement(x.Fragment,null,a)},NA=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=mA(),{page:o}=e;if(t<=bA.SelectPage)return null;const i=x.createElement(qA,{totalPages:r,page:o});return x.createElement(_A,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var FA=k((e=>x.createElement(hA,e,x.createElement(TA,null),x.createElement(NA,null),x.createElement(MA,null),x.createElement(AA,null),x.createElement(PA,null),x.createElement(LA,null),x.createElement(DA,null))));const zA=e=>x.createElement(pA,e,x.createElement(FA,e)),jA=cE(gC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),$A=cE(gC,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),BA=cE(gC)({overflow:"hidden",textOverflow:"ellipsis"});function HA(e,t){const r=M(!1);C((()=>{r.current?e():r.current=!0}),t)}const GA=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},WA=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),VA=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?VA(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},UA=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?UA(t):t},YA=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${dh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},KA=({focusType:e,cell:t})=>{if(t)switch(e){case bE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case bE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case bE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case bE.ADD_TAB:t.setAttribute("tabIndex","0");break;case bE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},XA=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{KA({focusType:bE.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case gE.DOWN:s<a&&s++;break;case gE.UP:s>i&&s--;break;case gE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case gE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case gE.HOME:(Pw(e)||o)&&(s=i),o||(u=0);break;case gE.END:(Pw(e)||o)&&(s=a),o||(u=l);break;case gE.PAGE_DOWN:s=Math.min(a,s+10);break;case gE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=GA(t,i);return KA({focusType:bE.FOCUS,cell:a}),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},JA=(e,t,r,n)=>{var o;(KA({focusType:bE.REMOVE_TAB,cell:WA(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):KA({focusType:bE.ADD_TAB,cell:GA(t,e)})},ZA=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${lh}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},QA=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},eI=(e,t=!1)=>e.key===gE.ESC&&!t||(e.key===gE.LEFT||e.key===gE.RIGHT)&&Mw(e),tI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===gE.DOWN||r===gE.UP){const t=e=>r===gE.DOWN?VA(e):UA(e);Pf(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},rI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void Pf(e);const d=null==c?void 0:c.isModal();if(!eI(e,d))switch(e.key){case gE.SPACE:Pf(e),r.isSelectable&&o&&n({type:hE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case gE.ENTER:Pf(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case gE.ESC:Pf(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case gE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Pf(e),Lf(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;default:Tw(e.key)&&(Pf(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=XA({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:hE.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},nI=e=>{const{layout:t,rect:r,theme:n}=dR(lR,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return O((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},oI=cE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),iI=cE(QC,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),aI=cE(qC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),lI=()=>na.jsxs(na.Fragment,{children:[na.jsx(oI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),na.jsx(oI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),sI=e=>e.stopPropagation(),uI=({href:e,text:t,interactions:r,color:n})=>x.createElement(Bc,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:sI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),cI=({layout:e,viewService:t,isImagesEnabled:r})=>{var n,o;let i=null===(n=t.viewState)||void 0===n?void 0:n.maxLineCount;var a,l;r&&(i=null!==(a=i)&&void 0!==a?a:null===(l=Uw(e))||void 0===l||null===(l=l.content)||void 0===l?void 0:l.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},dI=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{if(a)return na.jsx($A,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:l,children:e});const s=parseInt(t||Cw,10),u=na.jsx($A,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?u:na.jsx(BA,{minHeight:s*Ew,maxHeight:s*Ew*i,children:u})},pI=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},fI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},mI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=na.jsx("img",{src:o,alt:i,style:{width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:fI(a),objectPosition:pI(l),...t,overflow:"hidden"}});var c;return n?na.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},hI=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=dR(lR,(e=>e.env)),{interactions:i,viewService:a,layout:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=cI({viewService:a,layout:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Qg.Link||s||(c=na.jsx(uI,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Qg.Image?na.jsx(mI,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):na.jsx(dI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c})},gI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:hE.RESET})},a=()=>{t({type:hE.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},bI=e=>parseInt(null!=e?e:Aw.fontSize,10)*Ew,vI=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,yI=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:hE.SELECT_MULTI_END});r({type:hE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:hE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:hE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),xI=cE(HC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),SI=cE(pw,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),EI=cE(KC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Aw,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),CI=cE(KC,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...Aw,...e,fontWeight:ww,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function wI(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,a=dR(lR,(e=>Ow(r,e.selectionState))),l=dR(lR,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=yI(i,r,l,o),d=function(e,t){let r={};switch(t){case mE.SELECTED:r=Sw.SELECTED;break;case mE.POSSIBLE:r=Sw.POSSIBLE;break;case mE.EXCLUDED:r={background:`${Sw.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:mE.EXCLUDED}}return{...e,...r}}(n,a);return na.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function RI(e,t,r){let n=(o=EI,e=>{const{styling:{selectedCellClass:t,...r},component:n,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return na.jsx(o,{cellStyle:r,component:n,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""} ${uh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(n=wI(n)),e&&(n=function(e,t){return r=>{const{cell:n,column:o,styling:i}=r,a=E((()=>Zw(i,n.qAttrExps,o.qAttrExprInfoIDs,t)),[i,n.qAttrExps,o.qAttrExprInfoIDs]);return na.jsx(e,{...r,styling:a})}}(n,r)),n}const AI=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),II=()=>{const{columns:e,totalsPosition:t,rows:r}=dR(lR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>e.headRowHeight)),u=dR(lR,(e=>e.setFocusedCellCoord));return na.jsx(pw,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return na.jsx(CI,{totalsStyle:{...a.totalRow,...AI(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${uh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Pf(e);else if(!eI(e))switch(e.key){case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;case gE.SPACE:e.preventDefault();break;default:Tw(e.key)&&(Pf(e),XA({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{JA(d,n,u,i)},children:na.jsx(dI,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var DI=k(II);const LI=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=dR(lR,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=dR(lR,(e=>e.baseProps)),h=dR(lR,(e=>e.setFocusedCellCoord)),g=dR(lR,(e=>e.selectionDispatch)),{flags:b}=dR(lR,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=E((()=>JSON.parse(y).map((e=>RI(e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e))),v,b)))),[y,v,b]),S=!(null===(n=Uw(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:C,isStaticNbrOfLines:w}=cI({viewService:m,layout:d,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),R=bI(f.dimension.values.fontSize),A=vI({maxNbrLines:C,isStaticNbrOfLines:w,lineHeight:R});return gI({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),na.jsxs(xI,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?na.jsx(DI,{}):void 0,o.map(((e,t)=>na.jsx(SI,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:A,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=x[n],m=Zw({},i.qAttrExps,t.qAttrExprInfoIDs,b);let y=t.isDim?f.dimension.values:f.measure.values;return i.isNull&&(y={...y,...f.nullValues}),d&&na.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{rI({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===gE.SHIFT&&t({type:hE.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;JA([l,a],t,r,n)})(i,u,h,c,l),children:na.jsx(hI,{cell:i,style:m,maxImageHeight:w?R*C:R})},o)}))},`row-${t}`))),l.atBottom?na.jsx(DI,{}):void 0]})};var PI=k(LI);const MI=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=dR(lR,(e=>e.baseProps)),l=dR(lR,(e=>e.columnWidths)),s=dR(lR,(e=>e.setColumnWidths));if(!a.active)return null;return na.jsx(hR,{columnWidth:l[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...l];t[o]=e,s(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");KA({focusType:bE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n})};function _I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TI=T(((e,t)=>x.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){_I(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:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function kI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OI=T(((e,t)=>x.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){kI(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:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function qI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NI=T(((e,t)=>x.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){qI(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:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),FI=cE("div")({position:"absolute",left:0,bottom:0}),zI=cE(gC,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));cE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const jI=cE(gC,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${ah}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${ah}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),$I=cE(gC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));cE(gC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),cE(LC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),cE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),cE(CC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),cE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const BI=cE(KC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...Aw,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));cE("div")({display:"flex",alignItems:"center"});const HI=cE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Cw,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),GI=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=dR(lR,(e=>e.baseProps)),f=dR(lR,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Zm({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:ww}),o=_((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?na.jsx(TI,{height:Cw,"data-testid":"head-cell-sort-ascending-icon"}):na.jsx(OI,{height:Cw,"data-testid":"head-cell-sort-descending-icon"}),i=r?na.jsx(HI,{align:t,children:o}):void 0,a=n?na.jsx($I,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:na.jsx(NI,{height:Cw,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return na.jsxs(jI,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,na.jsxs(zI,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,na.jsx(dI,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&na.jsxs(na.Fragment,{children:[na.jsx(aA,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:tI,menuAvailabilityFlags:{[oA.SORTING]:!0,[oA.SEARCHING]:!0,[oA.SELECTIONS]:!0,[oA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:YA},shouldShowMenuIcon:v.shouldShowMenuIcon}),na.jsx(FI,{ref:h}),na.jsx(FI,{ref:m})]})]})},WI=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return th((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(dh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},VI=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=dR(lR,(e=>e.baseProps)),{columns:l,totalsPosition:s}=dR(lR,(e=>e.tableData)),u=dR(lR,(e=>e.columnWidths[t])),c=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=dR(lR,(e=>e.setFocusedCellCoord)),p=dR(lR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=WI({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?vE[e.sortDirection]:void 0,y=m?sh:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:u-(S?8:9),zIndex:l.length-t},w=p&&0===t&&!i.enabled&&f?0:-1;return na.jsxs(BI,{headerStyle:{...a.header,...AI(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${uh}`,tabIndex:w,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!eI(e))switch(e.key){case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;case gE.ENTER:case gE.SPACE:i&&i(e);break;default:Tw(e.key)&&(Pf(e),XA({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Pf(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):KA({focusType:bE.FOCUS,cell:GA(t,r)}))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[na.jsx(GI,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),na.jsx(MI,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},UI=()=>{var e;const{columns:t}=dR(lR,(e=>e.tableData)),{styleService:r,viewService:n}=dR(lR,(e=>e.baseProps)),o=dR(lR,(e=>e.setHeadRowHeight)),i=dR(lR,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:na.jsx(iw,{children:na.jsx(pw,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>na.jsx(VI,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var YI=k(UI);const KI=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=dR(lR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:R,rect:A}=dR(lR,(e=>e.baseProps)),I=dR(lR,(e=>e.focusedCellCoord)),D=dR(lR,(e=>e.setFocusedCellCoord)),L=dR(lR,(e=>e.setYScrollbarWidth)),P=dR(lR,(e=>e.showRightBorder)),T=dR(lR,(e=>e.selectionDispatch)),k=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),O=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=nI(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=iy(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=_((()=>{O.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),G=_((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),W=_((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return ZA(N,O,v),QA(q,i,w),(()=>{const{rootElement:e,keyboard:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.focusedCellCoord));th((()=>{const n=t.active?bE.FOCUS:bE.BLUR,o=t.active?GA(e,r):WA(e);KA({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),HA((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{KA({focusType:bE.REMOVE_TAB,cell:WA(t)});const s=[l.atTop?2:1,e[1]],u=n?s:EE;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?bE.FOCUS:bE.ADD_TAB;r.current=!1;const d=GA(t,u);if(KA({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:O,setFocusedCellCoord:D,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),HA((()=>{L(F)}),[F]),HA((()=>{T({type:hE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),na.jsxs(jA,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(Mw(e)){Pf(e);const a=Math.ceil(t/n)-1;e.key===gE.RIGHT&&r<a?(i(),o(r+1)):e.key===gE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===gE.ESC&&a.enabled&&!l){var s;Pf(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else _w(e.key)&&Pf(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:G,setShouldRefocus:H,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[na.jsx(lI,{}),na.jsx(iI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:na.jsxs(aI,{stickyHeader:!0,"aria-label":z,borderRight:P?`1px solid ${E.grid.border}`:void 0,children:[na.jsx(YI,{}),na.jsx(PI,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),na.jsx(zA,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:G,handleChangeRowsPerPage:W,isSelectionMode:k})]})};var XI=k(KI);function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JI.apply(this,arguments)}function ZI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QI(e,t){return QI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QI(e,t)}function eD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QI(e,t)}var tD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rD(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||tD(n)&&tD(o)))return!1;var n,o;return!0}function nD(e,t){var r;void 0===t&&(t=rD);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function oD(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var iD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function aD(e){cancelAnimationFrame(e.id)}function lD(e,t){var r=iD();var n={id:requestAnimationFrame((function o(){iD()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var sD=-1;function uD(e){if(void 0===e&&(e=!1),-1===sD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),sD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return sD}var cD=null;function dD(e){if(void 0===e&&(e=!1),null===cD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?cD="positive-descending":(t.scrollLeft=1,cD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cD}return cD}var pD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function fD(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,ZI(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ZI(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nD((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=nD((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=nD((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(dD()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=lD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}eD(t,e),t.getDerivedStateFromProps=function(e,t){return mD(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=uD();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(dD()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?pD:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var L=A;L<=I;L++)for(var P=E;P<=C;P++)D.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var M=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:JI({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var mD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},hD=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},gD=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},bD=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},vD=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?yD(e,t,r,i,0,n):xD(e,t,r,Math.max(0,i),n)},yD=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=bD(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},xD=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&bD(e,t,n,r).offset<o;)n+=a,a*=2;return yD(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},SD=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=bD(e,t,r,i),u="column"===e?gD(t,i):hD(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ED=fD({getColumnOffset:function(e,t,r){return bD("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return vD("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=bD("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=bD("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:hD,getEstimatedTotalWidth:gD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return SD("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return SD("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return bD("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return vD("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=bD("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=bD("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),CD=function(e,t){return e};function wD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,ZI(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ZI(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nD((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=nD((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=nD((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(dD()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=lD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}eD(t,e),t.getDerivedStateFromProps=function(e,t){return RD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?uD():0:s.scrollHeight>s.clientHeight?uD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(dD()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aD(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?CD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:JI({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var RD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},AD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},ID=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=AD(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},DD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&AD(e,r,t).offset<n;)r+=i,i*=2;return ID(e,t,Math.min(r,o-1),Math.floor(r/2),n)},LD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},PD=wD({getItemOffset:function(e,t,r){return AD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:LD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=AD(e,t,o),p=LD(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?ID(e,t,o,0,r):DD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=AD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=AD(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function MD(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var _D=["style"],TD=["style"];function kD(e,t){var r=e.style,n=oD(e,_D),o=t.style,i=oD(t,TD);return!MD(r,o)&&!MD(n,i)}const OD=({style:e})=>na.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var qD=x.memo(OD,kD);const ND=()=>{},FD=e=>e.preventDefault();const zD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=n,{flags:c}=dR(lR,(e=>e.env)),d=dR(lR,(e=>e.hoverIndex===t)),p=dR(lR,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=dR(lR,(e=>e.baseProps)),h=dR(lR,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.selectionDispatch)),n="object"==typeof e,o=dR(lR,(t=>n?Ow(e,t.selectionState):mE.INACTIVE)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=yI(FD,e,r,ND);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;const n=((e,t,r,n,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?Zw(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return n===mE.SELECTED?{...l,...Sw.SELECTED}:n===mE.EXCLUDED?{...l,color:r?null==i?void 0:i.color:l.color,background:`${Sw.EXCLUDED_BACKGROUND}, ${r?null==i?void 0:i.background:l.background}`}:r?{...l,...i}:l})(g,l[e],s&&d,x,S,m.grid.hoverColors,c),o={rowindex:t,columnindex:e};return na.jsx("div",{className:`sn-table-cell ${x} ${uh}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===Qg.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:na.jsx(hI,{cell:g,style:n,maxImageHeight:u,virtualizedCell:!0})})}return na.jsx(qD,{style:{...r,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var jD=x.memo(zD,kD);const $D=e=>{const t=M(e);return t.current=e,t},BD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,HD=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},GD=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},WD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=Xv(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:Ub(),...e,align:ny(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:Yv(e,m),representation:Uv(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},VD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=dR(lR,(e=>e.env)),p=M([]),f=$D(u),m=_(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return WD(t,o,n,s,e,f.current,d),p.current=n,n}),[i,o,s,e,f,d]),[h,g]=S((()=>m(null!=n?n:[])));th((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=$D(e),a=$D(t),l=E((()=>({enqueue:e=>{const t=BD(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(BD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=_(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(GD(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=_(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(HD(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},UD=({style:e,numericStyle:t,columnWidths:r,rowHeight:n,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=dR(lR,(e=>e.baseProps)),[y,x]=S(n||24),{measureText:E,estimateLineCount:C}=Zm(e,{maxNbrLinesOfText:p}),w=bI(e.fontSize),R=bI(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),A=8e6/i-8-1,I=Math.max(0,Math.min(p,Math.round(A/w))),D=vI({maxNbrLines:I,isStaticNbrOfLines:f,lineHeight:w}),L=f?I*w:w,P=_(((e,t,n)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:r[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(r[t]),a=Math.min(I,C({text:e.trim(),maxWidth:i,isNumeric:n})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?w:R;return Math.max(1,a)*l+8+1}),[r,w,R,I,s,C,m]),T=_(((e,t,r,o=!1,i=!1)=>{const a=`${t}-${r}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,r,o]),void x(D);g.current.measuredCells.set(a,[e,t,r,o]);const l=n||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Qg.Image&&r})(r,s,u)?l:P(e,r,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[P,c,f,D,s,n,u]),k=_((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),O=_((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),q=$D(T),N=_((()=>{if(f)return void O();const e=new Map(g.current.measuredCells);O(),e.forEach((([e,t,r,n])=>{q.current(e,t,r,n,!0)})),c||x(g.current.totalHeight/g.current.count)}),[O,c,q,f]);th((()=>{O()}),[b,o]),th((()=>{N()}),[E,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:T,getRowHeight:k,rowMeta:g,estimatedRowHeight:y,maxLineCount:I,resizeVisibleCells:e=>{if(!u||f)return;O();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,b.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&T(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:N,resetRowMeta:O,maxImageHeight:L}};var YD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(YD||(YD={}));const KD={enabled:!1},XD=()=>{},JD={current:null};const ZD=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=E((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},QD=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},eL={overflow:"hidden",willChange:"auto"},tL=T(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=dR(lR,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=dR(lR,(e=>e.baseProps)),g=dR(lR,(e=>e.columnWidths)),b=dR(lR,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=cI({viewService:m,layout:d,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),S=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=Uw(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:I}=(()=>{const e=M(0),t=M(0),r=M(YD.None),n=M(YD.None);return{scrollHandler:_((({scrollTop:o,scrollLeft:i})=>{o>t.current?r.current=YD.Down:o<t.current?r.current=YD.Up:r.current=YD.None,i>e.current?n.current=YD.Right:i<e.current?n.current=YD.Left:n.current=YD.None,t.current=o,e.current=i}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}})(),{rowCount:D,visibleRowCount:L,visibleColumnCount:P}=ZD(d,a,n,g,l),{setCellSize:T,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j,maxImageHeight:$}=UD({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:D,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:B,loadRows:H,loadColumns:G}=VD({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:D,visibleRowCount:L,visibleColumnCount:P,columns:o,setCellSize:T,gridState:S}),W=(({layout:e,loadRows:t,loadColumns:r,verticalScrollDirection:n,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>_((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,n.current===YD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(n.current===YD.Up){const e=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(o.current===YD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(o.current===YD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[l,i,a.page,a.rowsPerPage,s,n,o,t,e.qHyperCube.qSize.qcx,r]))({layout:d,loadRows:H,loadColumns:G,verticalScrollDirection:A,horizontalScrollDirection:I,rowCount:D,pageInfo:a,gridState:S,viewService:m}),V=E((()=>({rowsInPage:B,columns:o,isHoverEnabled:w,maxLineCount:z,maxImageHeight:$})),[B,o,w,z,$]),U=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,s,D,F);return O((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[D,u,i]),O((()=>{var e,t,r;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:D-1,align:"start"}))})),function(e){const{selectionsAPI:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.selectionDispatch));C((()=>{r({type:hE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),gI({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:XD,keyboard:KD,tableWrapperRef:JD})}(B),th((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:U)-U,a=Math.round(o*e);var l,s,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:D-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j(B)}})),[i,U,q,D,j,B]),na.jsx(ED,{"data-key":"body",ref:x,innerRef:i,style:eL,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:U,rowCount:D,rowHeight:k,estimatedRowHeight:F,width:n.width,itemData:V,onItemsRendered:W,onScroll:R,itemKey:QD,className:"sn-table-body",children:jD})}));var rL=k(tL);const nL=({width:e,height:t,children:r})=>na.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),oL=cE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),iL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=r,{interactions:a,styleService:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=dR(lR,(e=>e.showRightBorder)),c=dR(lR,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=WI({isInteractionEnabled:d,columnsData:n}),g=n[e],b=n.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return na.jsxs(oL,{className:`sn-table-cell ${uh}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...AI(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[na.jsx(GI,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),na.jsx(MI,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},aL=(e,t,r,n,o)=>{O((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},lL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},sL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=dR(lR,(e=>e.baseProps)),c=dR(lR,(e=>e.columnWidths));return aL(r,s,o,c,u),na.jsx(PD,{ref:r,layout:"horizontal",style:lL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:n,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:iL})};var uL=k(sL);const cL=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=dR(lR,(e=>e.baseProps));return na.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),dL=({children:e,rect:t})=>na.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),pL=({index:e,style:t,data:r})=>{const{layout:n,interactions:o,styleService:i}=dR(lR,(e=>e.baseProps)),a=dR(lR,(e=>e.showRightBorder)),{columns:l,totals:s}=r,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=n.qHyperCube.qSize.qcx-1===e;return na.jsx("div",{className:`sn-table-cell ${uh}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...AI(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:na.jsx(dI,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},fL=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=dR(lR,(e=>e.baseProps)),u=dR(lR,(e=>e.columnWidths));return aL(r,l,n,u,s),na.jsx(PD,{ref:r,layout:"horizontal",style:lL,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:pL})};var mL=k(fL);const hL=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=dR(lR,(e=>e.baseProps)),c=UD({style:u.header,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=UD({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Kv(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=Aw.fontSize})=>Math.max(24,Bw(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},gL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=dR(lR,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=dR(lR,(e=>e.baseProps)),c=dR(lR,(e=>e.columnWidths)),d=dR(lR,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),g=M(),{xScrollbarWidth:b,yScrollbarWidth:v}=nI(p),y=M([]),{headerRowHeight:x,totalsRowHeight:C,bodyRowHeight:w,headerAndTotalsHeight:R,resizeAllHeaderCells:A,resizeAllTotalCells:I}=hL({columns:o,columnWidths:c,pageInfo:r,totalsPosition:n,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),D=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),L=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(D,b,v)),[D,b,v]),{rowCount:P}=ZD(a,r,L,c,w),[T,k]=S(P*w+R),q=c.reduce(((e,t)=>e+t),0),N=((e,t,r,n)=>_((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),F=_(((e,t=!1)=>{const r=e+R;(T<L.height&&r>L.height||t)&&k(r)}),[T,R,L.height]),z=_((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),A(),I()}),[p,A,I]);O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[r,P,l]),HA((()=>{d(v)}),[v]);const j=na.jsx(mL,{rect:L,pageInfo:r,columns:o,forwardRef:m,totals:n,rowHeight:C});return na.jsx(cL,{ref:p,width:D.width,height:D.height,onScroll:N,children:na.jsx(nL,{width:q,height:T,children:na.jsxs(dL,{rect:L,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:na.jsx(uL,{rect:L,pageInfo:r,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:z,allColumnsIconVisibilityStatusRef:y}),n.atTop?j:null,na.jsx(rL,{ref:h,innerForwardRef:g,rect:L,pageInfo:r,columns:o,rowHeight:w,headerAndTotalsHeight:R,syncHeight:F}),n.atBottom?j:null]})})})};var bL=k(gL);const vL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=dR(lR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=dR(lR,(e=>e.tableData)),c=dR(lR,(e=>e.pageInfo)),d=dR(lR,(e=>e.setPage));return na.jsxs(jA,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[na.jsx(bL,{pageInfo:c}),na.jsx(zA,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var yL=k(vL);var xL,SL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Use las teclas de flecha para navegar por las celdas de la tabla y la pestaña para moverse a los controles de paginación. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(xL||(xL={}));const EL=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(SL).forEach((t=>{e.add(SL[t])}))}}(t),((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;n===xL.FIRST?(u=s,n=xL.SECOND):(u=l,n=xL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),CL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},wL=({app:r,model:n,rootElement:o,layout:l,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=i(),C=iy(l,y),w=ay(l,y),R=EL(o,u),A=C?{page:y.page||CL.page,rowsPerPage:y.rowsPerPage||CL.rowsPerPage,rowsPerPageOptions:CL.rowsPerPageOptions}:CL,[I,D]=e(A),[L]=a((async()=>w?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>Jv)return n({...r,rowsPerPage:Zv(d,c),page:0}),null;const g=p>10,b=Qv(t,o),v=oy(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:Ub(),...e[o],align:ny(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:Xv(e[o]),isNull:Yv(e[o],n.isDim),representation:Uv(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,I,D,y,x):null),[l,I,n,s,w]);t((()=>{!!(w&&g&&n&&(l.snapshotData||r)&&l&&L&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=pR(o);null==t||t.render(na.jsx(sn,{stylisPlugins:"rtl"===o?[SE]:void 0,children:na.jsx(pE,{theme:x,children:na.jsx(cR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:na.jsx(XI,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:L,direction:S,pageInfo:I,setPageInfo:D,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[r,n,g,L,s,S,d,f.active,R,p,b,w,l,c,h,o,I,D,u,m,E,v,x])};const RL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=a((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(Dw,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},AL=({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!ay(o,v),E=n((()=>function(e,t,r){const n=Qv(e,r),o=oy(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Dw,i),l=i>Dw&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(o,c,v)),[o,c,v]),{pageInfo:C,setPage:w}=((t,r)=>{const[o,i]=e(0),a=Math.min(Dw,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/Dw);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=RL({model:i,layout:o,page:C.page,shouldRender:S});t((()=>{var e;S&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),t((()=>{S&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=pR("ltr");t.render(na.jsx(x.StrictMode,{children:na.jsx(pE,{theme:E,children:na.jsx(cR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:na.jsx(yL,{})})})}))}({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[r,o,i,a,l,s.active,u,c,d,p,S,f,m,h,E,g,w,C,A,R,b,y])},IL={version:JSON.stringify("3.9.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function DL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(s,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const LL=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},PL=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ML=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||CL.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},_L=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Qv(e,t);if(ay(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=DL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ML(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=LL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(PL(m,h,g)?d:d+1)+c;let v=p+c;const y=LL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(PL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:ML(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},TL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),kL=e=>e.getStyle("object","straightTableV2","backgroundColor");function OL(e){return{qae:{properties:{initial:IL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Hg,exportProperties:$g,exploration:Gg},ext:Fb(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>Qm(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),C=p(),w=f(),R=m(),A=h(),I=g(),{freeResize:D}=i(),L=b(),P=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!D?{...L,...S.snapshotData.content.size}:L,M=(e=>{const{viewState:t}=i();return n((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])})(S),_=v(),T=kf(S,y,TL,kL),k=((e,t)=>n((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]))(S.qHyperCube,C),O=zb(S.qHyperCube,C),q=((e,t)=>{const{fontSize:r,fontFamily:n}=Kw(t,e,!1),{fontSize:o,fontFamily:i}=Xw(t,e),[l,s]=a((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!l})(T,S);null==o||o(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${uh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{vh(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=_L(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>_L(e,t,n)})),[e,t,n])})({layout:S,viewService:M,model:C,rootElement:y,contentRect:L}),AL({app:E,layout:S,model:C,rect:P,theme:T,keyboard:I,translator:R,interactions:w,selectionsAPI:A,changeSortOrder:k,rootElement:y,embed:_,reactRoot:x,applyColumnWidths:O,isFontLoaded:q,viewService:M,env:e}),wL({app:E,model:C,rootElement:y,layout:S,interactions:w,translator:R,selectionsAPI:A,theme:T,changeSortOrder:k,keyboard:I,rect:P,embed:_,reactRoot:x,applyColumnWidths:O,isFontLoaded:q,viewService:M,env:e})}}}export{OL as default};
193
+ `),YE.rippleVisible,tC,550,(({theme:e})=>e.transitions.easing.easeInOut),YE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),YE.child,YE.childLeaving,rC,550,(({theme:e})=>e.transitions.easing.easeInOut),YE.childPulsate,nC,(({theme:e})=>e.transitions.easing.easeInOut));var aC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=K(r,KE),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=Eo(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,na.jsx(iC,{classes:{ripple:Bo(o.ripple,YE.ripple),rippleVisible:Bo(o.rippleVisible,YE.rippleVisible),ripplePulsate:Bo(o.ripplePulsate,YE.ripplePulsate),child:Bo(o.child,YE.child),childLeaving:Bo(o.childLeaving,YE.childLeaving),childPulsate:Bo(o.childPulsate,YE.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;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)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=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;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),na.jsx(oC,j({className:Bo(YE.root,o.root,i),ref:m},a,{children:na.jsx(ps,{component:null,exit:!0,children:l})}))}));function lC(e){return No("MuiButtonBase",e)}var sC=Fo("MuiButtonBase",["root","disabled","focusVisible"]);const uC=["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"],cC=cE("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"},[`&.${sC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:L,touchRippleRef:P,type:M}=r,_=K(r,uC),T=y.useRef(null),k=y.useRef(null),O=vo(k,P),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Mo(),[$,B]=y.useState(!1);s&&$&&B(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),T.current.focus()}})),[]);const[H,G]=y.useState(!1);y.useEffect((()=>{G(!0)}),[]);const W=H&&!u&&!s;function V(e,t,r=c){return bo((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}y.useEffect((()=>{$&&d&&!u&&H&&k.current.pulsate()}),[u,d,$,H]);const U=V("start",E),Y=V("stop",h),X=V("stop",g),J=V("stop",w),Z=V("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),Q=V("start",I),ee=V("stop",R),te=V("stop",A),re=V("stop",(e=>{F(e),!1===q.current&&B(!1),f&&f(e)}),!1),ne=bo((e=>{T.current||(T.current=e.currentTarget),N(e),!0===q.current&&(B(!0),v&&v(e)),b&&b(e)})),oe=()=>{const e=T.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=bo((e=>{d&&!ie.current&&$&&k.current&&" "===e.key&&(ie.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),le=bo((e=>{d&&" "===e.key&&k.current&&$&&!e.defaultPrevented&&(ie.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=l;"button"===se&&(_.href||_.to)&&(se=p);const ue={};"button"===se?(ue.type=void 0===M?"button":M,ue.disabled=s):(_.href||_.to||(ue.role="button"),s&&(ue["aria-disabled"]=s));const ce=vo(t,z,T),de=j({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=To({root:["root",t&&"disabled",r&&"focusVisible"]},lC,o);return r&&n&&(i.root+=` ${n}`),i})(de);return na.jsxs(cC,j({as:se,className:Bo(pe.root,a),ownerState:de,onBlur:re,onClick:m,onContextMenu:Y,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:U,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ce,tabIndex:s?-1:D,type:M},ue,_,{children:[i,W?na.jsx(aC,j({ref:O,center:o},L)):null]}))}));var pC=dC;var fC=Fo("MuiBox",["root"]);const mC=_S(),hC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=_n("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(sx),a=y.forwardRef((function(e,a){const l=function(e=mx){return fx(e)}(r),s=bx(e),{className:u,component:c="div"}=s,d=K(s,yx);return na.jsx(i,j({as:c,ref:a,className:Bo(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:ly,defaultTheme:mC,defaultClassName:fC.root,generateClassName:Oo.generate});var gC=hC;var bC=Fo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var vC=y.createContext({});function yC(e){return No("MuiListItemIcon",e)}var xC=Fo("MuiListItemIcon",["root","alignItemsFlexStart"]);const SC=["className"],EC=cE("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var CC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=K(r,SC),i=j({},r,{alignItems:y.useContext(vC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return To({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yC,r)})(i);return na.jsx(EC,j({className:Bo(a.root,n),ownerState:i,ref:t},o))}));var wC=Fo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function RC(e){return No("MuiMenuItem",e)}var AC=Fo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const IC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],DC=cE(pC,{shouldForwardProp:e=>uE(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})=>j({},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"}},[`&.${AC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${AC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${AC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bx(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})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${AC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${AC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${bC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${bC.inset}`]:{marginLeft:52},[`& .${wC.root}`]:{marginTop:0,marginBottom:0},[`& .${wC.inset}`]:{paddingLeft:36},[`& .${xC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xC.root} svg`]:{fontSize:"1.25rem"}}))));var LC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=K(r,IC),f=y.useContext(vC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);go((()=>{n&&h.current&&h.current.focus()}),[n]);const g=j({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return j({},a,To({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},RC,a))})(r),v=vo(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),na.jsx(vC.Provider,{value:m,children:na.jsx(DC,j({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Bo(b.focusVisible,s),className:Bo(b.root,d)},p,{ownerState:g,classes:b}))})}));var PC=y.createContext();function MC(e){return No("MuiTable",e)}Fo("MuiTable",["root","stickyHeader"]);const _C=["className","component","padding","size","stickyHeader"],TC=cE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),kC="table",OC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTable"}),{className:n,component:o=kC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=K(r,_C),u=j({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return To({root:["root",r&&"stickyHeader"]},MC,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return na.jsx(PC.Provider,{value:d,children:na.jsx(TC,j({as:o,role:o===kC?null:"table",ref:t,className:Bo(c.root,n),ownerState:u},s))})}));var qC=OC;var NC=y.createContext();function FC(e){return No("MuiTableBody",e)}Fo("MuiTableBody",["root"]);const zC=["className","component"],jC=cE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$C={variant:"body"},BC="tbody";var HC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableBody"}),{className:n,component:o=BC}=r,i=K(r,zC),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},FC,t)})(a);return na.jsx(NC.Provider,{value:$C,children:na.jsx(jC,j({className:Bo(l.root,n),as:o,ref:t,role:o===BC?null:"rowgroup",ownerState:a},i))})}));function GC(e){return No("MuiTableCell",e)}var WC=Fo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const VC=["align","className","component","padding","scope","size","sortDirection","variant"],UC=cE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${uo(r.size)}`],"normal"!==r.padding&&t[`padding${uo(r.padding)}`],"inherit"!==r.align&&t[`align${uo(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Wx(Bx(e.palette.divider,1),.88):Hx(Bx(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${WC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),YC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=K(r,VC),p=y.useContext(PC),f=y.useContext(NC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=j({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return To({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${uo(n)}`,"normal"!==o&&`padding${uo(o)}`,`size${uo(i)}`]},GC,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),na.jsx(UC,j({as:h,ref:t,className:Bo(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var KC=YC;function XC(e){return No("MuiTableContainer",e)}Fo("MuiTableContainer",["root"]);const JC=["className","component"],ZC=cE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var QC=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=K(r,JC),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},XC,t)})(a);return na.jsx(ZC,j({ref:t,as:o,className:Bo(l.root,n),ownerState:a},i))}));function ew(e){return No("MuiTableHead",e)}Fo("MuiTableHead",["root"]);const tw=["className","component"],rw=cE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),nw={variant:"head"},ow="thead";var iw=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableHead"}),{className:n,component:o=ow}=r,i=K(r,tw),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return To({root:["root"]},ew,t)})(a);return na.jsx(NC.Provider,{value:nw,children:na.jsx(rw,j({as:o,className:Bo(l.root,n),ref:t,role:o===ow?null:"rowgroup",ownerState:a},i))})}));function aw(e){return No("MuiTableRow",e)}var lw=Fo("MuiTableRow",["root","selected","hover","head","footer"]);const sw=["className","component","hover","selected"],uw=cE("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${lw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Bx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),cw="tr",dw=y.forwardRef((function(e,t){const r=UE({props:e,name:"MuiTableRow"}),{className:n,component:o=cw,hover:i=!1,selected:a=!1}=r,l=K(r,sw),s=y.useContext(NC),u=j({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return To({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},aw,t)})(u);return na.jsx(uw,j({as:o,ref:t,className:Bo(c.root,n),role:o===cw?null:"row",ownerState:u},l))}));var pw=dw,fw=(e={})=>x.createElement($E,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:wE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const mw={MuiAccordion:{styleOverrides:{root:{backgroundColor:wE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:wE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(FE,{"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 ${wE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,borderRadius:LE,backgroundColor:wE.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 ${wE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:wE.WHITE,color:wE.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:LE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:wE.GREYSCALE_0_15,backgroundColor:wE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:wE.GREEN_PALE},"&:active":{backgroundColor:wE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:wE.BLUE_PALE},"&:active":{backgroundColor:wE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.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:LE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:wE.GREYSCALE_0_15,backgroundColor:wE.GREYSCALE_100_60,"&:active":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:wE.PURPLE,"&.Mui-focusVisible":{borderColor:wE.PURPLE,boxShadow:`0 0 0 3px ${Sx(wE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:wE.GREEN,"&.Mui-focusVisible":{borderColor:wE.GREEN,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:wE.BLUE,"&.Mui-focusVisible":{borderColor:wE.BLUE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:wE.ORANGE,"&.Mui-focusVisible":{borderColor:wE.ORANGE,boxShadow:`0 0 0 3px ${Sx(wE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:wE.RED,"&.Mui-focusVisible":{borderColor:wE.RED,boxShadow:`0 0 0 3px ${Sx(wE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:wE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:wE.PURPLE_PALE},"&:active":{backgroundColor:wE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:wE.PURPLE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:wE.GREEN_PALE},"&:active":{backgroundColor:wE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:wE.BLUE_PALE},"&:active":{backgroundColor:wE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:wE.ORANGE_PALE},"&:active":{backgroundColor:wE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:wE.ORANGE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:wE.RED_PALE},"&:active":{backgroundColor:wE.RED_DARK},"&.Mui-focusVisible":{borderColor:wE.RED_PALE,boxShadow:`0 0 0 3px ${Sx(wE.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:wE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:wE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:LE,boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:RE,borderRadius:LE,color:wE.TEXT_PRIMARY,backgroundColor:wE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:wE.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:wE.GREYSCALE_0_05,color:wE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:wE.GREEN,borderColor:wE.GREEN},"&.MuiChip-outlinedInfo":{color:wE.BLUE,borderColor:wE.BLUE},"&.MuiChip-outlinedWarning":{color:wE.ORANGE,borderColor:wE.ORANGE},"&.MuiChip-outlinedError":{color:wE.RED,borderColor:wE.RED}},outlined:{border:`solid 1px ${wE.GREYSCALE_0_15}`,backgroundColor:wE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:LE,boxShadow:"none",backgroundColor:wE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:wE.GREEN,borderColor:wE.GREEN},outlinedSecondary:{color:wE.BLUE,borderColor:wE.BLUE},label:{fontFamily:kE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(FE,{"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:LE},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:LE,fontSize:AE,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:wE.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${wE.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:wE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:wE.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:wE.GREYSCALE_0_05}}},popupIndicator:{borderRadius:LE,border:`solid 1px ${wE.GREYSCALE_0_15}`,color:wE.GREYSCALE_0_60,marginRight:0,width:DE,height:DE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${wE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:LE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:wE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:AE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:RE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:wE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:wE.GREYSCALE_25,fontSize:RE,fontFamily:kE.FONT_FAMILY,fontWeight:_E,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:wE.TEXT_PRIMARY},"&.Mui-error":{color:wE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:wE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ME,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:wE.TEXT_SECONDARY,content:"'(required)'",fontWeight:ME,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:AE,lineHeight:"16px",backgroundColor:wE.WHITE,borderRadius:LE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.GREYSCALE_0_05}`,borderColor:wE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.RED}`,boxShadow:`0px 0px 0px 1px ${wE.RED}, inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${wE.GREYSCALE_0_10}`,borderColor:wE.GREYSCALE_0_10,backgroundColor:wE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:wE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:wE.GREYSCALE_0_15,borderRadius:LE,boxShadow:`inset 0 2px 0 0 ${wE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(FE,{...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:wE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:wE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&:active":{backgroundColor:wE.GREYSCALE_0_10},"&:focus":{backgroundColor:wE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${wE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:wE.GREYSCALE_0_30,"&:hover":{backgroundColor:wE.GREYSCALE_0_0,borderColor:wE.GREYSCALE_0_15},"& ~svg":{color:wE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${wE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:LE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:wE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:wE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:AE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:RE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:RE,fontWeight:_E,color:wE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:_E}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${wE.GREYSCALE_0_15}, 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(GE,null),checkedIcon:x.createElement(WE,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:wE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:wE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:wE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(fw,null),checkedIcon:x.createElement(BE,null),indeterminateIcon:x.createElement(HE,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:LE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:wE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:wE.GREYSCALE_0_55,color:wE.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:wE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:wE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:wE.GREYSCALE_0_55,"&:hover":{color:wE.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:wE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:wE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:AE,color:wE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:_E},secondary:{fontSize:RE,color:wE.GREYSCALE_45,fontWeight:ME,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:AE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&:active":{backgroundColor:wE.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:AE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:wE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:RE,borderBottom:`solid 1px ${wE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:AE,color:wE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:wE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:wE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:wE.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:wE.RED}}},"&.Mui-focusVisible":{backgroundColor:wE.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:wE.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:wE.GREEN,height:"24px","&.Mui-disabled":{color:wE.GREYSCALE_0_15}},rail:{backgroundColor:wE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${wE.GREYSCALE_0_05}`,borderRadius:LE,boxShadow:`inset 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${wE.GREYSCALE_0_05}`,borderRadius:LE},thumb:{height:"16px",width:"16px",borderRadius:LE,backgroundColor:wE.WHITE,boxShadow:`0px 1px 2px 0px ${wE.GREYSCALE_0_15}, 0px 0px 0px 1px ${wE.GREYSCALE_0_05}`,"&:hover":{borderRadius:LE,boxShadow:`0 2px 4px 0 ${wE.GREYSCALE_0_30}, 0 0 0 1px ${wE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${wE.GREYSCALE_0_15}, 0 0 0 1px ${wE.GREYSCALE_0_06}, 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${wE.GREYSCALE_0_15}, 0 0 0 1px ${wE.GREYSCALE_0_06}, 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:wE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:wE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:wE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:wE.GREYSCALE_0_15},markLabel:{color:wE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:wE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:wE.WHITE,color:wE.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:wE.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:wE.GREEN_PALE,boxShadow:`0 0 0 3px ${Sx(wE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:wE.BLUE_PALE,boxShadow:`0 0 0 3px ${Sx(wE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:wE.GREYSCALE_0_15,borderRadius:LE},thumb:{height:"16px",width:"16px",borderRadius:LE,backgroundColor:wE.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:AE,fontWeight:_E,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${wE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${wE.MISC_FOCUS_BORDER}`,backgroundColor:wE.GREYSCALE_0_03,borderRadius:LE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:wE.GREYSCALE_25,"&.Mui-selected":{color:wE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:AE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:LE,"&:hover":{backgroundColor:`${wE.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 ${wE.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${wE.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:LE,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:wE.GREYSCALE_0_05},"&:hover":{backgroundColor:`${wE.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${wE.GREYSCALE_85}`,borderRight:`1px solid ${wE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:_E,backgroundColor:wE.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:wE.GREYSCALE_98,borderBottom:`1px solid ${wE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${wE.GREYSCALE_85}`,borderTop:`1px solid ${wE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:wE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:wE.GREYSCALE_0_05,"&:hover":{backgroundColor:wE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:wE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(VE,{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 ${wE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:AE,borderRadius:LE,padding:"7px 16px",border:`1px solid ${wE.GREYSCALE_0_15}`,backgroundColor:wE.GREYSCALE_100_60,color:wE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:wE.GREYSCALE_0_10,border:`1px solid ${wE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:wE.GREYSCALE_0_03,border:`1px solid ${wE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:wE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${wE.MISC_FOCUS_BORDER}`,border:`1px solid ${wE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:wE.GREYSCALE_25,backgroundColor:wE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:wE.GREYSCALE_0_10,border:`1px solid ${wE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:RE,height:24,width:24,padding:7},sizeLarge:{fontSize:IE,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:AE,borderRadius:LE}}},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:wE.GREYSCALE_20},tooltip:{backgroundColor:wE.GREYSCALE_20,fontSize:RE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var hw=e=>mw;const gw={mode:"light",primary:{ultraLight:wE.GREEN_ULTRA_LIGHT,light:wE.GREEN_PALE,main:wE.GREEN,dark:wE.GREEN_DARK,extraDark:wE.GREEN_EXTRA_DARK,contrastText:wE.WHITE},secondary:{ultraLight:wE.BLUE_ULTRA_LIGHT,light:wE.BLUE_PALE,main:wE.BLUE,dark:wE.BLUE_DARK,extraDark:wE.BLUE_EXTRA_DARK,contrastText:wE.WHITE},error:{ultraLight:wE.RED_ULTRA_LIGHT,light:wE.RED_PALE,main:wE.RED,dark:wE.RED_DARK,extraDark:wE.RED_EXTRA_DARK,contrastText:wE.WHITE},warning:{ultraLight:wE.ORANGE_ULTRA_LIGHT,light:wE.ORANGE_PALE,main:wE.ORANGE,dark:wE.ORANGE_DARK,extraDark:wE.ORANGE_EXTRA_DARK,contrastText:wE.WHITE},success:{ultraLight:wE.GREEN_ULTRA_LIGHT,light:wE.GREEN_PALE,main:wE.GREEN,dark:wE.GREEN_DARK,extraDark:wE.GREEN_EXTRA_DARK,contrastText:wE.WHITE},info:{ultraLight:wE.BLUE_ULTRA_LIGHT,light:wE.BLUE_PALE,main:wE.BLUE,dark:wE.BLUE_DARK,extraDark:wE.BLUE_EXTRA_DARK,contrastText:wE.WHITE},text:{primary:wE.TEXT_PRIMARY,secondary:wE.TEXT_SECONDARY,disabled:wE.GREYSCALE_0_30},action:{hover:wE.GREYSCALE_0_03,hoverOpacity:.03,selected:wE.GREYSCALE_0_05,selectedOpacity:.05,focus:wE.MISC_FOCUS_BORDER},amethyst:{ultraLight:wE.WHITE,main:wE.PURPLE,light:wE.PURPLE_PALE,dark:wE.PURPLE_DARK,extraDark:wE.GREYSCALE_0_0,contrastText:wE.WHITE},background:{paper:wE.WHITE,default:wE.GREYSCALE_95},divider:wE.GREYSCALE_0_15},bw=e=>({components:hw(),palette:gw,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:AE,fontWeightLight:PE,fontWeightRegular:ME,fontWeightMedium:_E,fontWeightBold:TE,htmlFontSize:AE,fontFamily:kE.FONT_FAMILY,button:{fontWeight:_E,fontSize:AE,textTransform:"none"},body1:{fontSize:IE,lineHeight:"24px"},body2:{fontSize:AE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:DE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:IE,fontWeight:_E,lineHeight:"16px"},h6:{fontSize:AE,fontWeight:_E,lineHeight:"16px"},caption:{color:wE.TEXT_SECONDARY},subtitle1:{fontSize:AE,color:wE.TEXT_SECONDARY},subtitle2:{fontSize:RE,color:wE.TEXT_SECONDARY}},shape:{borderRadius:LE}}),vw={...CE,MISC_FOCUS_BORDER:wE.MISC_FOCUS_BORDER},yw=(e="light")=>bw(),xw=yw().palette,Sw={SELECTED:{color:vw.GREYSCALE_100,background:xw.primary.light,selectedCellClass:mE.SELECTED},POSSIBLE:{color:xw.text.primary,background:vw.GREYSCALE_100},EXCLUDED_BACKGROUND:"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"},Ew=4/3,Cw="12px",ww="600",Rw="Source Sans Pro, sans-serif",Aw={height:"auto",fontSize:Cw,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},Iw={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:ww},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},Dw=25e4,Lw=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(fh.PixelsMax,Math.max(fh.PixelsMin,m)),i-=n[a]};switch(s){case mh.Pixels:m=u||fh.PixelsDefault,h();break;case mh.Percentage:m=(c||fh.PercentageDefault)/100*t,h();break;case mh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===Qg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case mh.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(fh.AutoMinTable,e)}))}return n},Pw=e=>e.ctrlKey||e.metaKey,Mw=e=>e.shiftKey&&Pw(e),_w=e=>[gE.LEFT,gE.RIGHT,gE.UP,gE.DOWN].includes(e),Tw=e=>_w(e)||[gE.HOME,gE.END,gE.PAGE_UP,gE.PAGE_DOWN].includes(e),kw=e=>e.shiftKey&&_w(e.key),Ow=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=mE.INACTIVE;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?mE.EXCLUDED:void 0!==n[e.qElemNumber]?mE.SELECTED:mE.POSSIBLE),i},qw=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},Nw=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),qw(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},Fw=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&kw(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&kw(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===gE.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),qw(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},zw=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},jw=(e,t)=>{var r;switch(t.type){case hE.SELECT:return Nw(e,t.payload);case hE.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case hE.SELECT_MOUSE_UP:return((e,t)=>zw(e.isSelectMultiValues||e.firstCell!==t.cell?e:Nw(e,t)))(e,t.payload);case hE.SELECT_MULTI_ADD:return Fw(e,t.payload);case hE.SELECT_MULTI_END:return zw(e);case hE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case hE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case hE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},$w=4/3,Bw=e=>parseInt(e,10)*$w+8+1,Hw=e=>!!e&&(!(null==e||!e.color)||(null==e?void 0:e.index)>-1);function Gw(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const Ww=e=>Cf(e)?Sp.WHITE:Sp.TEXT,Vw=(e,t)=>e?{borderBottomColor:Sp.DARK_MODE_BORDER,borderRightColor:Sp.DARK_MODE_BORDER,borderLeftColor:Sp.DARK_MODE_BORDER,borderTopColor:Sp.DARK_MODE_BORDER}:{borderLeftColor:Sp.BORDER_MEDIUM,borderRightColor:Sp.BORDER_MEDIUM,borderTopColor:Sp.BORDER_HEAVY,borderBottomColor:t?Sp.BORDER_HEAVY:Sp.BORDER_LIGHT},Uw=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},Yw=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:Hw(null==r?void 0:r.fontColor)?Gw(Sp.TEXT,t,null==r?void 0:r.fontColor):i||Sp.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...Vw(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function Kw(e,t,r){var n,o,i;const a=null===(n=Uw(e))||void 0===n?void 0:n.header,l=Yw("header",t,a,r);return l.background=Df(t.background.headerColor),l.hoverBackground=Ef(null!==(o=l.background)&&void 0!==o?o:Sp.WHITE,hh.hover),l.activeBackground=Ef(null!==(i=l.background)&&void 0!==i?i:Sp.WHITE,hh.active),l}function Xw(e,t,r,n){var o;const i=null===(o=Uw(e))||void 0===o?void 0:o.content,a=Yw("content",t,i);a.background=t.background.color;const l=((e,t,r)=>{if(e&&t&&r)return Bw(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=Hw(u)||!!d,f=Hw(s)||!!c,m=p||f;let h;h=Hw(s)?Gw(Sp.HOVER,t,s):c||(p?"":Sp.HOVER);const g=m?Gw(Ww(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const Jw=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in Iw&&Object.assign(t,Iw[e]))),t};function Zw(e,t,r,n){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&If(o);l&&"none"!==l&&(i[r[t]]=l),n.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=Jw(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=Ww(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const Qw=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return Cw}},eR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",tR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",rR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ww:"normal",nR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},oR=(e,t,r,n)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,D,L,P,M,_,T,k,O,q,N,F,z;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r)=>{var n,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:ww,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:ww,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(n=Uw(e))||void 0===n||null===(n=n.content)||void 0===n?void 0:n.rowHeight,border:r.background.isDark?Sp.DARK_MODE_BORDER:Sp.BORDER_MEDIUM,divider:Sp.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,r,n);const{header:j,dimensionValues:$,measureValues:B,totalRow:H,nullValues:G,grid:W,content:V}=null!==(o=Uw(t))&&void 0!==o?o:{},U=null!==(i=null!==(a=nR(n,null==j?void 0:j.background))&&void 0!==a?a:r.head.background)&&void 0!==i?i:Sp.TRANSPARENT;return{header:{fontFamily:null!==(l=null!==(s=null==j?void 0:j.fontFamily)&&void 0!==s?s:r.head.fontFamily)&&void 0!==l?l:Rw,fontSize:Qw(null!==(u=null==j?void 0:j.fontSize)&&void 0!==u?u:r.head.fontSize),fontStyle:eR(null==j?void 0:j.fontStyle),fontWeight:rR(null==j?void 0:j.fontStyle,ww),textDecoration:tR(null==j?void 0:j.fontStyle),color:null!==(c=null!==(d=nR(n,null==j?void 0:j.fontColor))&&void 0!==d?d:r.head.color)&&void 0!==c?c:Sp.TEXT,background:U},headerMenuHoverBackground:Ef(U,hh.hover),headerMenuActiveBackground:Ef(U,hh.active),dimension:{values:{fontFamily:null!==(p=null!==(f=null==$?void 0:$.fontFamily)&&void 0!==f?f:r.body.fontFamily)&&void 0!==p?p:Rw,fontSize:Qw(null!==(m=null==$?void 0:$.fontSize)&&void 0!==m?m:r.body.fontSize),fontStyle:eR(null==$?void 0:$.fontStyle),fontWeight:rR(null==$?void 0:$.fontStyle,"normal"),textDecoration:tR(null==$?void 0:$.fontStyle),color:null!==(h=null!==(g=nR(n,null==$?void 0:$.fontColor))&&void 0!==g?g:r.body.color)&&void 0!==h?h:Sp.TEXT,background:null!==(b=null!==(v=nR(n,null==$?void 0:$.background))&&void 0!==v?v:r.body.background)&&void 0!==b?b:Sp.TRANSPARENT}},measure:{values:{fontFamily:null!==(y=null!==(x=null==B?void 0:B.fontFamily)&&void 0!==x?x:r.body.fontFamily)&&void 0!==y?y:Rw,fontSize:Qw(null!==(S=null==B?void 0:B.fontSize)&&void 0!==S?S:r.body.fontSize),fontStyle:eR(null==B?void 0:B.fontStyle),fontWeight:rR(null==B?void 0:B.fontStyle,"normal"),textDecoration:tR(null==B?void 0:B.fontStyle),color:null!==(E=null!==(C=nR(n,null==B?void 0:B.fontColor))&&void 0!==C?C:r.body.color)&&void 0!==E?E:Sp.TEXT,background:null!==(w=null!==(R=nR(n,null==B?void 0:B.background))&&void 0!==R?R:r.body.background)&&void 0!==w?w:Sp.TRANSPARENT}},totalRow:{fontFamily:null!==(A=null!==(I=null==H?void 0:H.fontFamily)&&void 0!==I?I:r.totals.fontFamily)&&void 0!==A?A:Rw,fontSize:Qw(null!==(D=null==H?void 0:H.fontSize)&&void 0!==D?D:r.totals.fontSize),fontStyle:eR(null==H?void 0:H.fontStyle),fontWeight:rR(null==H?void 0:H.fontStyle,ww),textDecoration:tR(null==H?void 0:H.fontStyle),color:null!==(L=null!==(P=nR(n,null==H?void 0:H.fontColor))&&void 0!==P?P:r.totals.color)&&void 0!==L?L:Sp.TEXT,background:null!==(M=null!==(_=nR(n,null==H?void 0:H.background))&&void 0!==_?_:r.totals.background)&&void 0!==M?M:Sp.TRANSPARENT},nullValues:{fontStyle:eR(null==G?void 0:G.fontStyle),fontWeight:rR(null==G?void 0:G.fontStyle,"normal"),textDecoration:tR(null==G?void 0:G.fontStyle),color:null!==(T=null!==(k=nR(n,null==G?void 0:G.fontColor))&&void 0!==k?k:r.body.color)&&void 0!==T?T:Sp.TEXT,background:null!==(O=nR(n,null==G?void 0:G.background))&&void 0!==O?O:Sp.NULL_VALUE_BACKGROUND},grid:{lineClamp:null==V?void 0:V.rowHeight,border:null!==(q=nR(n,null==W?void 0:W.border))&&void 0!==q?q:n.background.isDark?Sp.DARK_MODE_BORDER:Sp.BORDER_MEDIUM,divider:null!==(N=nR(n,null==W?void 0:W.divider))&&void 0!==N?N:Sp.BORDER_HEAVY,hoverColors:{color:null===(F=r.body.hoverColors)||void 0===F?void 0:F.color,background:null===(z=r.body.hoverColors)||void 0===z?void 0:z.background},lastRowBottomBorder:r.body.lastRowBottomBorder}}},iR=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=Xw(e,t,r.rows.length,n),a=Kw(e,t,!o),l=function(e,t,r){var n;const o=null===(n=Uw(e))||void 0===n?void 0:n.content,i=Yw("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=Kw(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},aR=new Map;const lR=P({}),sR=function(e){const t=P([()=>{},new Set]);return aR.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=_((()=>o.current),[o]),l=E((()=>[a,i.current]),[a]);return na.jsx(e.Provider,{value:n,children:na.jsx(t.Provider,{value:l,children:r})})}}(lR),uR={rows:[],columns:[],totalsPosition:{}},cR=({app:e,children:t,tableData:r=uR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[C,w]=S(0),[R,A]=S(o||EE),[I,D]=((e,t)=>{const[r,n]=L(jw,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[P,M]=S(-1),_=iR(i,u,r,d),T=((e,t,r,n)=>E((()=>oR(e,t,r,n)),[t,r,e,n]))(x,i,_,u),[k,O,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Zm({...n.header,fontWeight:ww},{maxNbrLinesOfText:3}).measureText,a=Zm({...n.totalRow,fontWeight:ww},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=Zm(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=Zm(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=S(0),[p,f]=S((()=>Lw(e,r,u)));th((()=>{f(Lw(e,r-c,u))}),[e,r,c,u]);const m=E((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,T),F=E((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:T})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,T]);return na.jsx(sR,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:P,setHoverIndex:M,columnWidths:k,setColumnWidths:O,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function dR(e,t){const r=function(e){return aR.get(e)}(e),[n,o]=w(r),[,i]=L((e=>e+1),0),a=M(t),l=M(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function pR(e){var t;const r=yw();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),_S({...r,direction:e})}const fR=Rl(Yu,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${ph}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${ph}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),mR=Rl(Yu)({position:"absolute",height:"100%",width:"3px"}),hR=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=r?0:1,p=n&&!u,f={left:p?c.current.columnWidth-d:"100%"},m=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};th((()=>p&&m()),[e]);const h=e=>{const t=Math.max(e,fh.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:mh.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;h(t)},v=e=>{Pf(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;h(t)},S=e=>{Pf(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",S),g()},E=!n&&l?e=>{if(e.key===ch.LEFT||e.key===ch.RIGHT){Pf(e);const t=5,r=e.key===ch.LEFT?-t:t;h(c.current.columnWidth+r)}else e.key===ch.SPACE||e.key===ch.ENTER?(Pf(e),l(e),g()):e.key===ch.ESC&&(Pf(e),l(e),h(c.current.initWidth))}:void 0;return x.createElement(fR,{className:dh,isLastColumn:r,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),m(e.clientX)},onDoubleClick:()=>a({type:mh.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",S),null==s||s(!0),m(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>m(),"data-testid":dh},x.createElement(mR,{className:ph}))};function gR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bR=T(((e,t)=>x.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){gR(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:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function vR(){return vR=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},vR.apply(null,arguments)}const yR=Rl(Yu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),xR=Rl(bR,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),SR=Rl(Rd)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ER=Rl(vc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),CR=Rl(Pd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),wR=Rl(Pd,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(r?"rgba(0, 0, 0, 0.05)":"transparent")}))),RR=Rl("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),AR=Rl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),IR=Rl(Ks)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),DR=Rl(Zc)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function LR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PR=T(((e,t)=>x.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){LR(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:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let MR={};const _R=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=M(null),f=_((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(wR,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MR={}),null!=a&&a.length&&(d(!0),MR[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(RR,null),x.createElement(AR,null,x.createElement(DR,null,x.createElement(o,null)),x.createElement(IR,{variant:"body2"},n)),null!=a&&a.length?x.createElement(PR,null):null),(null==a?void 0:a.length)&&x.createElement(OR,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=MR,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},TR=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(CR,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(_R,vR({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),kR={appear:200,enter:200,exit:100},OR=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(SR,vR({className:lh,open:t,anchorEl:e,onClose:r,transitionDuration:kR,MenuListProps:{id:sh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[TR({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(ER,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,qR={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},NR=(e,t)=>e.some((e=>t[e]>0));function FR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zR=T(((e,t)=>x.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){FR(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:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function jR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $R=T(((e,t)=>x.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){jR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"}))));function BR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HR=T(((e,t)=>x.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){BR(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:t},e),x.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"}))));function GR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WR=T(((e,t)=>x.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){GR(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:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function VR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const UR=T(((e,t)=>x.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){VR(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:t},e),x.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"}))));function YR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KR=T(((e,t)=>x.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){YR(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:t},e),x.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"}))));function XR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JR=T(((e,t)=>x.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){XR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QR=T(((e,t)=>x.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){ZR(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function eA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tA=T(((e,t)=>x.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){eA(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:t},e),x.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"}))));function rA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nA=T(((e,t)=>x.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){rA(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:t},e),x.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"}))));let oA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const iA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(r[oA.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:zR,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:WR,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];r[oA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:UR,enabled:!0}]}]),r[oA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:nA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:KR,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:tA,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:JR,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:QR,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:$R,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return r[oA.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:HR,enabled:!0}]}]),d},aA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=nh({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(qR);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:_((()=>i(qR)),[]),updateSelectionActionsEnabledStatus:_((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:NR(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:NR(["qSelected"],r.qStateCounts),canSelectPossible:NR(["qOption"],r.qStateCounts),canSelectAlternative:NR(["qAlternative"],r.qStateCounts),canSelectExcluded:NR(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=_((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);C((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,E,w,null==d?void 0:d.model]);const A=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(yR,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:ah},s&&x.createElement(xR,{height:oh,className:ih,"data-testid":ih,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(bR,null)),x.createElement(OR,{open:e,anchorEl:r.current,onClose:A,menuGroups:iA({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},lA=e=>e.isDark?{background:e.color,borderColor:Sp.DARK_MODE_BORDER,color:Sp.DARK_MODE_TEXT,disabledColor:Sp.DARK_MODE_DISABLED,iconColor:Sp.DARK_MODE_TEXT}:{background:e.color,borderColor:Sp.BORDER_MEDIUM,color:Sp.TEXT,disabledColor:Sp.DISABLED},sA=Rl(Yu,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),uA=Rl(mp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),cA=Rl(ic,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),dA=Rl(Ks)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),pA=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>lA(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(sA,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},fA=P({}),mA=()=>w(fA),hA=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>lA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=nh({translator:d}),S=E((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(fA.Provider,{value:S},e)};let gA=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),bA=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function vA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yA=T(((e,t)=>x.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){vA(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:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function xA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SA=T(((e,t)=>x.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){xA(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:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CA=T(((e,t)=>x.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){EA(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:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),wA={FirstPage:SA,PreviousPage:yA,NextPage:PR,LastPage:CA,FirstPageRTL:CA,PreviousPageRTL:PR,NextPageRTL:yA,LastPageRTL:SA},RA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=mA(),u=wA[`${r}${"rtl"===n?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},AA=()=>{const{pageInfo:e,width:t}=mA(),r=0===e.page,{IconComponent:n,styledProps:o}=RA({type:gA.FirstPage,disabledCondition:r,pageNumber:0});return t<=bA.FirstPage?null:x.createElement(cA,o,x.createElement(n,{height:oh}))},IA=(e,t,r=!1)=>{r&&e.key===ch.TAB&&!e.shiftKey&&(Pf(e),Lf(e.target,t,!1))},DA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=mA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=RA({type:gA.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>IA(e,t,n):null;return o<=bA.LastPage?null:x.createElement(cA,vR({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},LA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=mA(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=RA({type:gA.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>bA.FirstPage&&o>bA.LastPage)&&t.enabled?e=>IA(e,t,n):null;return x.createElement(cA,vR({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},PA=()=>{const{pageInfo:e}=mA(),t=0===e.page,{IconComponent:r,styledProps:n}=RA({type:gA.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(cA,n,x.createElement(r,{height:oh}))},MA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=mA(),{page:o,rowsPerPage:i}=r;if(t<=bA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(dA,{variant:"caption"},a)},_A=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=mA(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(dA,{variant:"caption",id:d},u,":"),x.createElement(uA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},TA=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=mA();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>bA.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(_A,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},kA=1e3,OA="…",qA=({totalPages:e,page:t})=>{const r=Math.min(e,kA),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-kA):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:OA,disabled:!0},OA)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:OA,disabled:!0},OA)),x.createElement(x.Fragment,null,a)},NA=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=mA(),{page:o}=e;if(t<=bA.SelectPage)return null;const i=x.createElement(qA,{totalPages:r,page:o});return x.createElement(_A,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var FA=k((e=>x.createElement(hA,e,x.createElement(TA,null),x.createElement(NA,null),x.createElement(MA,null),x.createElement(AA,null),x.createElement(PA,null),x.createElement(LA,null),x.createElement(DA,null))));const zA=e=>x.createElement(pA,e,x.createElement(FA,e)),jA=cE(gC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),$A=cE(gC,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),BA=cE(gC)({overflow:"hidden",textOverflow:"ellipsis"});function HA(e,t){const r=M(!1);C((()=>{r.current?e():r.current=!0}),t)}const GA=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},WA=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),VA=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?VA(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},UA=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?UA(t):t},YA=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${dh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},KA=({focusType:e,cell:t})=>{if(t)switch(e){case bE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case bE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case bE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case bE.ADD_TAB:t.setAttribute("tabIndex","0");break;case bE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},XA=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{KA({focusType:bE.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case gE.DOWN:s<a&&s++;break;case gE.UP:s>i&&s--;break;case gE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case gE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case gE.HOME:(Pw(e)||o)&&(s=i),o||(u=0);break;case gE.END:(Pw(e)||o)&&(s=a),o||(u=l);break;case gE.PAGE_DOWN:s=Math.min(a,s+10);break;case gE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=GA(t,i);return KA({focusType:bE.FOCUS,cell:a}),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},JA=(e,t,r,n)=>{var o;(KA({focusType:bE.REMOVE_TAB,cell:WA(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):KA({focusType:bE.ADD_TAB,cell:GA(t,e)})},ZA=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${lh}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},QA=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},eI=(e,t=!1)=>e.key===gE.ESC&&!t||(e.key===gE.LEFT||e.key===gE.RIGHT)&&Mw(e),tI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===gE.DOWN||r===gE.UP){const t=e=>r===gE.DOWN?VA(e):UA(e);Pf(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},rI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains("excluded"))return void Pf(e);const d=null==c?void 0:c.isModal();if(!eI(e,d))switch(e.key){case gE.SPACE:Pf(e),r.isSelectable&&o&&n({type:hE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case gE.ENTER:Pf(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case gE.ESC:Pf(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case gE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Pf(e),Lf(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;default:Tw(e.key)&&(Pf(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=XA({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:hE.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},nI=e=>{const{layout:t,rect:r,theme:n}=dR(lR,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return O((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},oI=cE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),iI=cE(QC,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),aI=cE(qC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),lI=()=>na.jsxs(na.Fragment,{children:[na.jsx(oI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),na.jsx(oI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),sI=e=>e.stopPropagation(),uI=({href:e,text:t,interactions:r,color:n})=>x.createElement(Bc,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:sI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),cI=({layout:e,viewService:t,isImagesEnabled:r})=>{var n,o;let i=null===(n=t.viewState)||void 0===n?void 0:n.maxLineCount;var a,l;r&&(i=null!==(a=i)&&void 0!==a?a:null===(l=Uw(e))||void 0===l||null===(l=l.content)||void 0===l?void 0:l.rowHeight);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},dI=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{if(a)return na.jsx($A,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:l,children:e});const s=parseInt(t||Cw,10),u=na.jsx($A,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?u:na.jsx(BA,{minHeight:s*Ew,maxHeight:s*Ew*i,children:u})},pI=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},fI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},mI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=na.jsx("img",{src:o,alt:i,style:{width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:fI(a),objectPosition:pI(l),...t,overflow:"hidden"}});var c;return n?na.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u},hI=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=dR(lR,(e=>e.env)),{interactions:i,viewService:a,layout:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=cI({viewService:a,layout:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Qg.Link||s||(c=na.jsx(uI,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Qg.Image?na.jsx(mI,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):na.jsx(dI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c})},gI=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:hE.RESET})},a=()=>{t({type:hE.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},bI=e=>parseInt(null!=e?e:Aw.fontSize,10)*Ew,vI=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,yI=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:hE.SELECT_MULTI_END});r({type:hE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:hE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:hE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),xI=cE(HC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),SI=cE(pw,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),EI=cE(KC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Aw,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),CI=cE(KC,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...Aw,...e,fontWeight:ww,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function wI(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,a=dR(lR,(e=>Ow(r,e.selectionState))),l=dR(lR,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=yI(i,r,l,o),d=function(e,t){let r={};switch(t){case mE.SELECTED:r=Sw.SELECTED;break;case mE.POSSIBLE:r=Sw.POSSIBLE;break;case mE.EXCLUDED:r={background:`${Sw.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:mE.EXCLUDED}}return{...e,...r}}(n,a);return na.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function RI(e,t,r){let n=(o=EI,e=>{const{styling:{selectedCellClass:t,...r},component:n,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return na.jsx(o,{cellStyle:r,component:n,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""} ${uh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(n=wI(n)),e&&(n=function(e,t){return r=>{const{cell:n,column:o,styling:i}=r,a=E((()=>Zw(i,n.qAttrExps,o.qAttrExprInfoIDs,t)),[i,n.qAttrExps,o.qAttrExprInfoIDs]);return na.jsx(e,{...r,styling:a})}}(n,r)),n}const AI=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),II=()=>{const{columns:e,totalsPosition:t,rows:r}=dR(lR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>e.headRowHeight)),u=dR(lR,(e=>e.setFocusedCellCoord));return na.jsx(pw,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return na.jsx(CI,{totalsStyle:{...a.totalRow,...AI(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${uh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Pf(e);else if(!eI(e))switch(e.key){case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;case gE.SPACE:e.preventDefault();break;default:Tw(e.key)&&(Pf(e),XA({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{JA(d,n,u,i)},children:na.jsx(dI,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var DI=k(II);const LI=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=dR(lR,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=dR(lR,(e=>e.baseProps)),h=dR(lR,(e=>e.setFocusedCellCoord)),g=dR(lR,(e=>e.selectionDispatch)),{flags:b}=dR(lR,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=E((()=>JSON.parse(y).map((e=>RI(e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e))),v,b)))),[y,v,b]),S=!(null===(n=Uw(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:C,isStaticNbrOfLines:w}=cI({viewService:m,layout:d,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),R=bI(f.dimension.values.fontSize),A=vI({maxNbrLines:C,isStaticNbrOfLines:w,lineHeight:R});return gI({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),na.jsxs(xI,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?na.jsx(DI,{}):void 0,o.map(((e,t)=>na.jsx(SI,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:A,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=x[n],m=Zw({},i.qAttrExps,t.qAttrExprInfoIDs,b);let y=t.isDim?f.dimension.values:f.measure.values;return i.isNull&&(y={...y,...f.nullValues}),d&&na.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{rI({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===gE.SHIFT&&t({type:hE.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;JA([l,a],t,r,n)})(i,u,h,c,l),children:na.jsx(hI,{cell:i,style:m,maxImageHeight:w?R*C:R})},o)}))},`row-${t}`))),l.atBottom?na.jsx(DI,{}):void 0]})};var PI=k(LI);const MI=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=dR(lR,(e=>e.baseProps)),l=dR(lR,(e=>e.columnWidths)),s=dR(lR,(e=>e.setColumnWidths));if(!a.active)return null;return na.jsx(hR,{columnWidth:l[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...l];t[o]=e,s(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");KA({focusType:bE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n})};function _I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TI=T(((e,t)=>x.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){_I(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:t},e),x.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"}))));function kI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OI=T(((e,t)=>x.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){kI(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:t},e),x.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function qI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NI=T(((e,t)=>x.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){qI(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:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),FI=cE("div")({position:"absolute",left:0,bottom:0}),zI=cE(gC,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));cE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const jI=cE(gC,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${ah}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:2},[`& .${ah}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),$I=cE(gC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));cE(gC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),cE(LC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),cE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),cE(CC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),cE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const BI=cE(KC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...Aw,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));cE("div")({display:"flex",alignItems:"center"});const HI=cE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:Cw,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),GI=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=dR(lR,(e=>e.baseProps)),f=dR(lR,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Zm({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:ww}),o=_((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?na.jsx(TI,{height:Cw,"data-testid":"head-cell-sort-ascending-icon"}):na.jsx(OI,{height:Cw,"data-testid":"head-cell-sort-descending-icon"}),i=r?na.jsx(HI,{align:t,children:o}):void 0,a=n?na.jsx($I,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:na.jsx(NI,{height:Cw,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return na.jsxs(jI,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,na.jsxs(zI,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,na.jsx(dI,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&na.jsxs(na.Fragment,{children:[na.jsx(aA,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:tI,menuAvailabilityFlags:{[oA.SORTING]:!0,[oA.SEARCHING]:!0,[oA.SELECTIONS]:!0,[oA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:YA},shouldShowMenuIcon:v.shouldShowMenuIcon}),na.jsx(FI,{ref:h}),na.jsx(FI,{ref:m})]})]})},WI=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return th((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(dh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},VI=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=dR(lR,(e=>e.baseProps)),{columns:l,totalsPosition:s}=dR(lR,(e=>e.tableData)),u=dR(lR,(e=>e.columnWidths[t])),c=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=dR(lR,(e=>e.setFocusedCellCoord)),p=dR(lR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=WI({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?vE[e.sortDirection]:void 0,y=m?sh:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:u-(S?8:9),zIndex:l.length-t},w=p&&0===t&&!i.enabled&&f?0:-1;return na.jsxs(BI,{headerStyle:{...a.header,...AI(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${uh}`,tabIndex:w,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!eI(e))switch(e.key){case gE.C:Pf(e),Pw(e)&&vh(e.currentTarget);break;case gE.ENTER:case gE.SPACE:i&&i(e);break;default:Tw(e.key)&&(Pf(e),XA({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Pf(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):KA({focusType:bE.FOCUS,cell:GA(t,r)}))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[na.jsx(GI,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),na.jsx(MI,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},UI=()=>{var e;const{columns:t}=dR(lR,(e=>e.tableData)),{styleService:r,viewService:n}=dR(lR,(e=>e.baseProps)),o=dR(lR,(e=>e.setHeadRowHeight)),i=dR(lR,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:na.jsx(iw,{children:na.jsx(pw,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>na.jsx(VI,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var YI=k(UI);const KI=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=dR(lR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:R,rect:A}=dR(lR,(e=>e.baseProps)),I=dR(lR,(e=>e.focusedCellCoord)),D=dR(lR,(e=>e.setFocusedCellCoord)),L=dR(lR,(e=>e.setYScrollbarWidth)),P=dR(lR,(e=>e.showRightBorder)),T=dR(lR,(e=>e.selectionDispatch)),k=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),O=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=nI(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=iy(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=_((()=>{O.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),G=_((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),W=_((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return ZA(N,O,v),QA(q,i,w),(()=>{const{rootElement:e,keyboard:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.focusedCellCoord));th((()=>{const n=t.active?bE.FOCUS:bE.BLUR,o=t.active?GA(e,r):WA(e);KA({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),HA((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{KA({focusType:bE.REMOVE_TAB,cell:WA(t)});const s=[l.atTop?2:1,e[1]],u=n?s:EE;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?bE.FOCUS:bE.ADD_TAB;r.current=!1;const d=GA(t,u);if(KA({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:O,setFocusedCellCoord:D,isSelectionMode:k,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),HA((()=>{L(F)}),[F]),HA((()=>{T({type:hE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),na.jsxs(jA,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(Mw(e)){Pf(e);const a=Math.ceil(t/n)-1;e.key===gE.RIGHT&&r<a?(i(),o(r+1)):e.key===gE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===gE.ESC&&a.enabled&&!l){var s;Pf(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else _w(e.key)&&Pf(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:G,setShouldRefocus:H,keyboard:v,isSelectionMode:k})},"data-testid":"sn-table",children:[na.jsx(lI,{}),na.jsx(iI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:na.jsxs(aI,{stickyHeader:!0,"aria-label":z,borderRight:P?`1px solid ${E.grid.border}`:void 0,children:[na.jsx(YI,{}),na.jsx(PI,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),na.jsx(zA,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:G,handleChangeRowsPerPage:W,isSelectionMode:k})]})};var XI=k(KI);function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},JI.apply(this,arguments)}function ZI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QI(e,t){return QI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},QI(e,t)}function eD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QI(e,t)}var tD=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rD(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||tD(n)&&tD(o)))return!1;var n,o;return!0}function nD(e,t){var r;void 0===t&&(t=rD);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function oD(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var iD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function aD(e){cancelAnimationFrame(e.id)}function lD(e,t){var r=iD();var n={id:requestAnimationFrame((function o(){iD()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var sD=-1;function uD(e){if(void 0===e&&(e=!1),-1===sD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),sD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return sD}var cD=null;function dD(e){if(void 0===e&&(e=!1),null===cD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?cD="positive-descending":(t.scrollLeft=1,cD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cD}return cD}var pD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function fD(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,ZI(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ZI(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nD((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=nD((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=nD((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(dD()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=lD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}eD(t,e),t.getDerivedStateFromProps=function(e,t){return mD(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=uD();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(dD()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aD(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?pD:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var L=A;L<=I;L++)for(var P=E;P<=C;P++)D.push(R(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:L}),rowIndex:L,style:this._getItemStyle(L,P)}));var M=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:JI({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var mD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},hD=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},gD=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},bD=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},vD=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?yD(e,t,r,i,0,n):xD(e,t,r,Math.max(0,i),n)},yD=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=bD(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},xD=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&bD(e,t,n,r).offset<o;)n+=a,a*=2;return yD(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},SD=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=bD(e,t,r,i),u="column"===e?gD(t,i):hD(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},ED=fD({getColumnOffset:function(e,t,r){return bD("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return vD("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=bD("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=bD("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:hD,getEstimatedTotalWidth:gD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return SD("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return SD("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return bD("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return vD("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=bD("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=bD("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),CD=function(e,t){return e};function wD(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=s(n.props,ZI(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ZI(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=nD((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=nD((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=nD((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(dD()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&aD(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=lD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}eD(t,e),t.getDerivedStateFromProps=function(e,t){return RD(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?uD():0:s.scrollHeight>s.clientHeight?uD():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(dD()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&aD(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?CD:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:JI({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var RD=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},AD=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},ID=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=AD(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},DD=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&AD(e,r,t).offset<n;)r+=i,i*=2;return ID(e,t,Math.min(r,o-1),Math.floor(r/2),n)},LD=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},PD=wD({getItemOffset:function(e,t,r){return AD(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:LD,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=AD(e,t,o),p=LD(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?ID(e,t,o,0,r):DD(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=AD(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=AD(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function MD(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var _D=["style"],TD=["style"];function kD(e,t){var r=e.style,n=oD(e,_D),o=t.style,i=oD(t,TD);return!MD(r,o)&&!MD(n,i)}const OD=({style:e})=>na.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var qD=x.memo(OD,kD);const ND=()=>{},FD=e=>e.preventDefault();const zD=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=n,{flags:c}=dR(lR,(e=>e.env)),d=dR(lR,(e=>e.hoverIndex===t)),p=dR(lR,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=dR(lR,(e=>e.baseProps)),h=dR(lR,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.selectionDispatch)),n="object"==typeof e,o=dR(lR,(t=>n?Ow(e,t.selectionState):mE.INACTIVE)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=yI(FD,e,r,ND);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;const n=((e,t,r,n,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?Zw(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return n===mE.SELECTED?{...l,...Sw.SELECTED}:n===mE.EXCLUDED?{...l,color:r?null==i?void 0:i.color:l.color,background:`${Sw.EXCLUDED_BACKGROUND}, ${r?null==i?void 0:i.background:l.background}`}:r?{...l,...i}:l})(g,l[e],s&&d,x,S,m.grid.hoverColors,c),o={rowindex:t,columnindex:e};return na.jsx("div",{className:`sn-table-cell ${x} ${uh}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===Qg.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:na.jsx(hI,{cell:g,style:n,maxImageHeight:u,virtualizedCell:!0})})}return na.jsx(qD,{style:{...r,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var jD=x.memo(zD,kD);const $D=e=>{const t=M(e);return t.current=e,t},BD=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,HD=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},GD=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},WD=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=Xv(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:Ub(),...e,align:ny(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:Yv(e,m),representation:Uv(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},VD=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=dR(lR,(e=>e.env)),p=M([]),f=$D(u),m=_(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return WD(t,o,n,s,e,f.current,d),p.current=n,n}),[i,o,s,e,f,d]),[h,g]=S((()=>m(null!=n?n:[])));th((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=$D(e),a=$D(t),l=E((()=>({enqueue:e=>{const t=BD(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(BD(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=_(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(GD(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=_(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(HD(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},UD=({style:e,numericStyle:t,columnWidths:r,rowHeight:n,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=dR(lR,(e=>e.baseProps)),[y,x]=S(n||24),{measureText:E,estimateLineCount:C}=Zm(e,{maxNbrLinesOfText:p}),w=bI(e.fontSize),R=bI(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),A=8e6/i-8-1,I=Math.max(0,Math.min(p,Math.round(A/w))),D=vI({maxNbrLines:I,isStaticNbrOfLines:f,lineHeight:w}),L=f?I*w:w,P=_(((e,t,n)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:r[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(r[t]),a=Math.min(I,C({text:e.trim(),maxWidth:i,isNumeric:n})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?w:R;return Math.max(1,a)*l+8+1}),[r,w,R,I,s,C,m]),T=_(((e,t,r,o=!1,i=!1)=>{const a=`${t}-${r}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,r,o]),void x(D);g.current.measuredCells.set(a,[e,t,r,o]);const l=n||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Qg.Image&&r})(r,s,u)?l:P(e,r,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[P,c,f,D,s,n,u]),k=_((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),O=_((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),q=$D(T),N=_((()=>{if(f)return void O();const e=new Map(g.current.measuredCells);O(),e.forEach((([e,t,r,n])=>{q.current(e,t,r,n,!0)})),c||x(g.current.totalHeight/g.current.count)}),[O,c,q,f]);th((()=>{O()}),[b,o]),th((()=>{N()}),[E,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:T,getRowHeight:k,rowMeta:g,estimatedRowHeight:y,maxLineCount:I,resizeVisibleCells:e=>{if(!u||f)return;O();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,b.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&T(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:N,resetRowMeta:O,maxImageHeight:L}};var YD;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(YD||(YD={}));const KD={enabled:!1},XD=()=>{},JD={current:null};const ZD=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),l=E((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},QD=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},eL={overflow:"hidden",willChange:"auto"},tL=T(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=dR(lR,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=dR(lR,(e=>e.baseProps)),g=dR(lR,(e=>e.columnWidths)),b=dR(lR,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=cI({viewService:m,layout:d,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),S=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=Uw(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:R,verticalScrollDirection:A,horizontalScrollDirection:I}=(()=>{const e=M(0),t=M(0),r=M(YD.None),n=M(YD.None);return{scrollHandler:_((({scrollTop:o,scrollLeft:i})=>{o>t.current?r.current=YD.Down:o<t.current?r.current=YD.Up:r.current=YD.None,i>e.current?n.current=YD.Right:i<e.current?n.current=YD.Left:n.current=YD.None,t.current=o,e.current=i}),[t,e,r,n]),verticalScrollDirection:r,horizontalScrollDirection:n}})(),{rowCount:D,visibleRowCount:L,visibleColumnCount:P}=ZD(d,a,n,g,l),{setCellSize:T,getRowHeight:k,rowMeta:q,estimatedRowHeight:F,maxLineCount:z,resizeVisibleCells:j,maxImageHeight:$}=UD({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:D,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:B,loadRows:H,loadColumns:G}=VD({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:D,visibleRowCount:L,visibleColumnCount:P,columns:o,setCellSize:T,gridState:S}),W=(({layout:e,loadRows:t,loadColumns:r,verticalScrollDirection:n,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>_((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,n.current===YD.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(n.current===YD.Up){const e=x+25,r=a.page*a.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(o.current===YD.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(o.current===YD.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[l,i,a.page,a.rowsPerPage,s,n,o,t,e.qHyperCube.qSize.qcx,r]))({layout:d,loadRows:H,loadColumns:G,verticalScrollDirection:A,horizontalScrollDirection:I,rowCount:D,pageInfo:a,gridState:S,viewService:m}),V=E((()=>({rowsInPage:B,columns:o,isHoverEnabled:w,maxLineCount:z,maxImageHeight:$})),[B,o,w,z,$]),U=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,s,D,F);return O((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[D,u,i]),O((()=>{var e,t,r;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===q.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:D-1,align:"start"}))})),function(e){const{selectionsAPI:t}=dR(lR,(e=>e.baseProps)),r=dR(lR,(e=>e.selectionDispatch));C((()=>{r({type:hE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),gI({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:XD,keyboard:KD,tableWrapperRef:JD})}(B),th((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:U)-U,a=Math.round(o*e);var l,s,u;(q.current.lastScrollToRatio=e,1===q.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:D-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),j(B)}})),[i,U,q,D,j,B]),na.jsx(ED,{"data-key":"body",ref:x,innerRef:i,style:eL,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:U,rowCount:D,rowHeight:k,estimatedRowHeight:F,width:n.width,itemData:V,onItemsRendered:W,onScroll:R,itemKey:QD,className:"sn-table-body",children:jD})}));var rL=k(tL);const nL=({width:e,height:t,children:r})=>na.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),oL=cE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),iL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=r,{interactions:a,styleService:l}=dR(lR,(e=>e.baseProps)),s=dR(lR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=dR(lR,(e=>e.showRightBorder)),c=dR(lR,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=WI({isInteractionEnabled:d,columnsData:n}),g=n[e],b=n.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return na.jsxs(oL,{className:`sn-table-cell ${uh}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...AI(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[na.jsx(GI,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),na.jsx(MI,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},aL=(e,t,r,n,o)=>{O((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},lL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},sL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=dR(lR,(e=>e.baseProps)),c=dR(lR,(e=>e.columnWidths));return aL(r,s,o,c,u),na.jsx(PD,{ref:r,layout:"horizontal",style:lL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:n,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:iL})};var uL=k(sL);const cL=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=dR(lR,(e=>e.baseProps));return na.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),dL=({children:e,rect:t})=>na.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),pL=({index:e,style:t,data:r})=>{const{layout:n,interactions:o,styleService:i}=dR(lR,(e=>e.baseProps)),a=dR(lR,(e=>e.showRightBorder)),{columns:l,totals:s}=r,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=n.qHyperCube.qSize.qcx-1===e;return na.jsx("div",{className:`sn-table-cell ${uh}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...AI(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:na.jsx(dI,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},fL=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=dR(lR,(e=>e.baseProps)),u=dR(lR,(e=>e.columnWidths));return aL(r,l,n,u,s),na.jsx(PD,{ref:r,layout:"horizontal",style:lL,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:pL})};var mL=k(fL);const hL=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=dR(lR,(e=>e.baseProps)),c=UD({style:u.header,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=UD({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Kv(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=Aw.fontSize})=>Math.max(24,Bw(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},gL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=dR(lR,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=dR(lR,(e=>e.baseProps)),c=dR(lR,(e=>e.columnWidths)),d=dR(lR,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),g=M(),{xScrollbarWidth:b,yScrollbarWidth:v}=nI(p),y=M([]),{headerRowHeight:x,totalsRowHeight:C,bodyRowHeight:w,headerAndTotalsHeight:R,resizeAllHeaderCells:A,resizeAllTotalCells:I}=hL({columns:o,columnWidths:c,pageInfo:r,totalsPosition:n,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),D=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),L=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(D,b,v)),[D,b,v]),{rowCount:P}=ZD(a,r,L,c,w),[T,k]=S(P*w+R),q=c.reduce(((e,t)=>e+t),0),N=((e,t,r,n)=>_((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),F=_(((e,t=!1)=>{const r=e+R;(T<L.height&&r>L.height||t)&&k(r)}),[T,R,L.height]),z=_((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),A(),I()}),[p,A,I]);O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[r,P,l]),HA((()=>{d(v)}),[v]);const j=na.jsx(mL,{rect:L,pageInfo:r,columns:o,forwardRef:m,totals:n,rowHeight:C});return na.jsx(cL,{ref:p,width:D.width,height:D.height,onScroll:N,children:na.jsx(nL,{width:q,height:T,children:na.jsxs(dL,{rect:L,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:na.jsx(uL,{rect:L,pageInfo:r,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:z,allColumnsIconVisibilityStatusRef:y}),n.atTop?j:null,na.jsx(rL,{ref:h,innerForwardRef:g,rect:L,pageInfo:r,columns:o,rowHeight:w,headerAndTotalsHeight:R,syncHeight:F}),n.atBottom?j:null]})})})};var bL=k(gL);const vL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=dR(lR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=dR(lR,(e=>e.tableData)),c=dR(lR,(e=>e.pageInfo)),d=dR(lR,(e=>e.setPage));return na.jsxs(jA,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[na.jsx(bL,{pageInfo:c}),na.jsx(zA,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var yL=k(vL);var xL,SL={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(xL||(xL={}));const EL=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(SL).forEach((t=>{e.add(SL[t])}))}}(t),((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;n===xL.FIRST?(u=s,n=xL.SECOND):(u=l,n=xL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),CL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},wL=({app:r,model:n,rootElement:o,layout:l,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=i(),C=iy(l,y),w=ay(l,y),R=EL(o,u),A=C?{page:y.page||CL.page,rowsPerPage:y.rowsPerPage||CL.rowsPerPage,rowsPerPageOptions:CL.rowsPerPageOptions}:CL,[I,D]=e(A),[L]=a((async()=>w?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>Jv)return n({...r,rowsPerPage:Zv(d,c),page:0}),null;const g=p>10,b=Qv(t,o),v=oy(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:Ub(),...e[o],align:ny(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:Xv(e[o]),isNull:Yv(e[o],n.isDim),representation:Uv(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,I,D,y,x):null),[l,I,n,s,w]);t((()=>{!!(w&&g&&n&&(l.snapshotData||r)&&l&&L&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=pR(o);null==t||t.render(na.jsx(sn,{stylisPlugins:"rtl"===o?[SE]:void 0,children:na.jsx(pE,{theme:x,children:na.jsx(cR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:na.jsx(XI,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:L,direction:S,pageInfo:I,setPageInfo:D,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[r,n,g,L,s,S,d,f.active,R,p,b,w,l,c,h,o,I,D,u,m,E,v,x])};const RL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=a((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(Dw,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},AL=({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!ay(o,v),E=n((()=>function(e,t,r){const n=Qv(e,r),o=oy(e),i=e.qHyperCube.qSize.qcy,a=Math.min(Dw,i),l=i>Dw&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(o,c,v)),[o,c,v]),{pageInfo:C,setPage:w}=((t,r)=>{const[o,i]=e(0),a=Math.min(Dw,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/Dw);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=RL({model:i,layout:o,page:C.page,shouldRender:S});t((()=>{var e;S&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),t((()=>{S&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=pR("ltr");t.render(na.jsx(x.StrictMode,{children:na.jsx(pE,{theme:E,children:na.jsx(cR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:na.jsx(yL,{})})})}))}({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[r,o,i,a,l,s.active,u,c,d,p,S,f,m,h,E,g,w,C,A,R,b,y])},IL={version:JSON.stringify("3.9.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function DL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(s,u),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const LL=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},PL=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ML=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||CL.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},_L=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Qv(e,t);if(ay(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=DL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ML(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=LL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(PL(m,h,g)?d:d+1)+c;let v=p+c;const y=LL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(PL(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:ML(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},TL=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),kL=e=>e.getStyle("object","straightTableV2","backgroundColor");function OL(e){return{qae:{properties:{initial:IL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Hg,exportProperties:$g,exploration:Gg},ext:Fb(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>Qm(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),C=p(),w=f(),R=m(),A=h(),I=g(),{freeResize:D}=i(),L=b(),P=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!D?{...L,...S.snapshotData.content.size}:L,M=(e=>{const{viewState:t}=i();return n((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])})(S),_=v(),T=kf(S,y,TL,kL),k=((e,t)=>n((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]))(S.qHyperCube,C),O=zb(S.qHyperCube,C),q=((e,t)=>{const{fontSize:r,fontFamily:n}=Kw(t,e,!1),{fontSize:o,fontFamily:i}=Xw(t,e),[l,s]=a((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!l})(T,S);null==o||o(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${uh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{vh(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=_L(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>_L(e,t,n)})),[e,t,n])})({layout:S,viewService:M,model:C,rootElement:y,contentRect:L}),AL({app:E,layout:S,model:C,rect:P,theme:T,keyboard:I,translator:R,interactions:w,selectionsAPI:A,changeSortOrder:k,rootElement:y,embed:_,reactRoot:x,applyColumnWidths:O,isFontLoaded:q,viewService:M,env:e}),wL({app:E,model:C,rootElement:y,layout:S,interactions:w,translator:R,selectionsAPI:A,theme:T,changeSortOrder:k,keyboard:I,rect:P,embed:_,reactRoot:x,applyColumnWidths:O,isFontLoaded:q,viewService:M,env:e})}}}export{OL as default};