@nebula.js/sn-table 3.10.4 → 3.10.5

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/dist/sn-table.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.10.4
2
+ * @nebula.js/sn-table v3.10.5
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -209,4 +209,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
209
209
  animation-iteration-count: infinite;
210
210
  animation-delay: 200ms;
211
211
  }
212
- `),_O.rippleVisible,jO,550,(({theme:e})=>e.transitions.easing.easeInOut),_O.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_O.child,_O.childLeaving,$O,550,(({theme:e})=>e.transitions.easing.easeInOut),_O.childPulsate,HO,(({theme:e})=>e.transitions.easing.easeInOut)),WO=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,OO),[l,s]=U.useState([]),u=U.useRef(0),c=U.useRef(null);U.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=U.useRef(!1),p=mo(),f=U.useRef(null),m=U.useRef(null),h=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ki.jsx(VO,{classes:{ripple:Oo(o.ripple,_O.ripple),rippleVisible:Oo(o.rippleVisible,_O.rippleVisible),ripplePulsate:Oo(o.ripplePulsate,_O.ripplePulsate),child:Oo(o.child,_O.child),childLeaving:Oo(o.childLeaving,_O.childLeaving),childPulsate:Oo(o.childPulsate,_O.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=U.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-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:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=U.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 U.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ki.jsx(BO,Rr({className:Oo(_O.root,o.root,i),ref:m},a,{children:Ki.jsx(dy,{component:null,exit:!0,children:l})}))}));var UO=WO;function GO(e){return Io("MuiButtonBase",e)}var YO=Lo("MuiButtonBase",["root","disabled","focusVisible"]);const KO=["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"],XO=f_("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"},[`&.${YO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),JO=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiButtonBase"}),{action:r,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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:I,type:L}=n,M=kr(n,KO),D=U.useRef(null),_=U.useRef(null),O=uo(_,I),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:z}=wo(),[F,j]=U.useState(!1);s&&F&&j(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[$,H]=U.useState(!1);U.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function V(e,t,n=c){return so((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}U.useEffect((()=>{F&&d&&!u&&$&&_.current.pulsate()}),[u,d,F,$]);const W=V("start",S),G=V("stop",h),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",k),Q=V("stop",C),Z=V("stop",R),ee=V("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),te=so((e=>{D.current||(D.current=e.currentTarget),N(e),!0===T.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=so((e=>{d&&!re.current&&F&&_.current&&" "===e.key&&(re.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=so((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(re.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=uo(t,z,D),ue=Rr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ro({root:["root",t&&"disabled",n&&"focusVisible"]},GO,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ki.jsxs(XO,Rr({as:ae,className:Oo(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:L},le,M,{children:[i,B?Ki.jsx(UO,Rr({ref:O,center:o},P)):null]}))}));var QO=JO;var ZO=Lo("MuiBox",["root"]);const eT=TD(),tT=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Er("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fM),a=U.forwardRef((function(e,a){const l=function(e=yM){return vM(e)}(n),s=SM(e),{className:u,component:c="div"}=s,d=kr(s,wM);return Ki.jsx(i,Rr({as:c,ref:a,className:Oo(u,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:fL,defaultTheme:eT,defaultClassName:ZO.root,generateClassName:Ao.generate});var nT=tT;var rT=Lo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var oT=U.createContext({});function iT(e){return Io("MuiListItemIcon",e)}var aT=Lo("MuiListItemIcon",["root","alignItemsFlexStart"]);const lT=["className"],sT=f_("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Rr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var uT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,lT),i=Rr({},n,{alignItems:U.useContext(oT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ro({root:["root","flex-start"===t&&"alignItemsFlexStart"]},iT,n)})(i);return Ki.jsx(sT,Rr({className:Oo(a.root,r),ownerState:i,ref:t},o))}));var cT=Lo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function dT(e){return Io("MuiMenuItem",e)}var pT=Lo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fT=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mT=f_(QO,{shouldForwardProp:e=>p_(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Rr({},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"}},[`&.${pT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WM(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})`:WM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rT.inset}`]:{marginLeft:52},[`& .${cT.root}`]:{marginTop:0,marginBottom:0},[`& .${cT.inset}`]:{paddingLeft:36},[`& .${aT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${aT.root} svg`]:{fontSize:"1.25rem"}}))));var hT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,fT),f=U.useContext(oT),m=U.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=U.useRef(null);lo((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Rr({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Rr({},a,Ro({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dT,a))})(n),v=uo(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Ki.jsx(oT.Provider,{value:m,children:Ki.jsx(mT,Rr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Oo(b.focusVisible,s),className:Oo(b.root,d)},p,{ownerState:g,classes:b}))})}));var gT=U.createContext();function bT(e){return Io("MuiTable",e)}Lo("MuiTable",["root","stickyHeader"]);const vT=["className","component","padding","size","stickyHeader"],yT=f_("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Rr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),xT="table",ST=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTable"}),{className:r,component:o=xT,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=kr(n,vT),u=Rr({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Ro({root:["root",n&&"stickyHeader"]},bT,t)})(u),d=U.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ki.jsx(gT.Provider,{value:d,children:Ki.jsx(yT,Rr({as:o,role:o===xT?null:"table",ref:t,className:Oo(c.root,r),ownerState:u},s))})}));var ET=ST;var wT=U.createContext();function CT(e){return Io("MuiTableBody",e)}Lo("MuiTableBody",["root"]);const RT=["className","component"],kT=f_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),AT={variant:"body"},PT="tbody";var IT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableBody"}),{className:r,component:o=PT}=n,i=kr(n,RT),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},CT,t)})(a);return Ki.jsx(wT.Provider,{value:AT,children:Ki.jsx(kT,Rr({className:Oo(l.root,r),as:o,ref:t,role:o===PT?null:"rowgroup",ownerState:a},i))})}));function LT(e){return Io("MuiTableCell",e)}var MT=Lo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const DT=["align","className","component","padding","scope","size","sortDirection","variant"],_T=f_("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${to(n.size)}`],"normal"!==n.padding&&t[`padding${to(n.padding)}`],"inherit"!==n.align&&t[`align${to(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rr({},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?YM(WM(e.palette.divider,1),.88):UM(WM(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",[`&.${MT.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}))),OT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=kr(n,DT),p=U.useContext(gT),f=U.useContext(wT),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=Rr({},n,{align:r,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}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Ro({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${to(r)}`,"normal"!==o&&`padding${to(o)}`,`size${to(i)}`]},LT,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Ki.jsx(_T,Rr({as:h,ref:t,className:Oo(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var TT=OT;function NT(e){return Io("MuiTableContainer",e)}Lo("MuiTableContainer",["root"]);const qT=["className","component"],zT=f_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var FT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=kr(n,qT),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},NT,t)})(a);return Ki.jsx(zT,Rr({ref:t,as:o,className:Oo(l.root,r),ownerState:a},i))}));function jT(e){return Io("MuiTableHead",e)}Lo("MuiTableHead",["root"]);const $T=["className","component"],HT=f_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),BT={variant:"head"},VT="thead";var WT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableHead"}),{className:r,component:o=VT}=n,i=kr(n,$T),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},jT,t)})(a);return Ki.jsx(wT.Provider,{value:BT,children:Ki.jsx(HT,Rr({as:o,className:Oo(l.root,r),ref:t,role:o===VT?null:"rowgroup",ownerState:a},i))})}));function UT(e){return Io("MuiTableRow",e)}var GT=Lo("MuiTableRow",["root","selected","hover","head","footer"]);const YT=["className","component","hover","selected"],KT=f_("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${GT.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${GT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WM(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}))`:WM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),XT="tr",JT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableRow"}),{className:r,component:o=XT,hover:i=!1,selected:a=!1}=n,l=kr(n,YT),s=U.useContext(wT),u=Rr({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ro({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},UT,t)})(u);return Ki.jsx(KT,Rr({as:o,ref:t,className:Oo(c.root,r),role:o===XT?null:"row",ownerState:u},l))}));var QT=JT,ZT=(e={})=>G.createElement(kO,{...e},G.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},G.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},G.createElement("rect",{stroke:uO.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const eN={MuiAccordion:{styleOverrides:{root:{backgroundColor:uO.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:uO.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:G.createElement(wO,{"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 ${uO.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,borderRadius:mO,backgroundColor:uO.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 ${uO.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:uO.WHITE,color:uO.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:mO},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:uO.GREYSCALE_0_15,backgroundColor:uO.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:uO.GREEN_PALE},"&:active":{backgroundColor:uO.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:uO.BLUE_PALE},"&:active":{backgroundColor:uO.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.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:mO,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:uO.GREYSCALE_0_15,backgroundColor:uO.GREYSCALE_100_60,"&:active":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:uO.PURPLE,"&.Mui-focusVisible":{borderColor:uO.PURPLE,boxShadow:`0 0 0 3px ${RM(uO.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:uO.GREEN,"&.Mui-focusVisible":{borderColor:uO.GREEN,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:uO.BLUE,"&.Mui-focusVisible":{borderColor:uO.BLUE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:uO.ORANGE,"&.Mui-focusVisible":{borderColor:uO.ORANGE,boxShadow:`0 0 0 3px ${RM(uO.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:uO.RED,"&.Mui-focusVisible":{borderColor:uO.RED,boxShadow:`0 0 0 3px ${RM(uO.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:uO.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:uO.PURPLE_PALE},"&:active":{backgroundColor:uO.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:uO.PURPLE_PALE,boxShadow:`0 0 0 3px ${RM(uO.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:uO.GREEN_PALE},"&:active":{backgroundColor:uO.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:uO.BLUE_PALE},"&:active":{backgroundColor:uO.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:uO.ORANGE_PALE},"&:active":{backgroundColor:uO.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:uO.ORANGE_PALE,boxShadow:`0 0 0 3px ${RM(uO.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:uO.RED_PALE},"&:active":{backgroundColor:uO.RED_DARK},"&.Mui-focusVisible":{borderColor:uO.RED_PALE,boxShadow:`0 0 0 3px ${RM(uO.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:uO.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:uO.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mO,boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:G.createElement(RO,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:cO,borderRadius:mO,color:uO.TEXT_PRIMARY,backgroundColor:uO.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:uO.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:uO.GREYSCALE_0_05,color:uO.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:uO.GREEN,borderColor:uO.GREEN},"&.MuiChip-outlinedInfo":{color:uO.BLUE,borderColor:uO.BLUE},"&.MuiChip-outlinedWarning":{color:uO.ORANGE,borderColor:uO.ORANGE},"&.MuiChip-outlinedError":{color:uO.RED,borderColor:uO.RED}},outlined:{border:`solid 1px ${uO.GREYSCALE_0_15}`,backgroundColor:uO.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mO,boxShadow:"none",backgroundColor:uO.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:uO.GREEN,borderColor:uO.GREEN},outlinedSecondary:{color:uO.BLUE,borderColor:uO.BLUE},label:{fontFamily:yO.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:G.createElement(RO,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:G.createElement(wO,{"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:mO},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mO,fontSize:dO,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:uO.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${uO.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:uO.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:uO.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:uO.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mO,border:`solid 1px ${uO.GREYSCALE_0_15}`,color:uO.GREYSCALE_0_60,marginRight:0,width:fO,height:fO},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${uO.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mO,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:uO.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:dO}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:cO,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:uO.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:uO.GREYSCALE_25,fontSize:cO,fontFamily:yO.FONT_FAMILY,fontWeight:bO,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:uO.TEXT_PRIMARY},"&.Mui-error":{color:uO.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:uO.TEXT_SECONDARY,content:"'(optional)'",fontWeight:gO,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:uO.TEXT_SECONDARY,content:"'(required)'",fontWeight:gO,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:dO,lineHeight:"16px",backgroundColor:uO.WHITE,borderRadius:mO,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.GREYSCALE_0_05}`,borderColor:uO.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.RED}`,boxShadow:`0px 0px 0px 1px ${uO.RED}, inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.GREYSCALE_0_10}`,borderColor:uO.GREYSCALE_0_10,backgroundColor:uO.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:uO.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:uO.GREYSCALE_0_15,borderRadius:mO,boxShadow:`inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>G.createElement(wO,{...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:uO.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:uO.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&:active":{backgroundColor:uO.GREYSCALE_0_10},"&:focus":{backgroundColor:uO.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${uO.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:uO.GREYSCALE_0_30,"&:hover":{backgroundColor:uO.GREYSCALE_0_0,borderColor:uO.GREYSCALE_0_15},"& ~svg":{color:uO.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${uO.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mO}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:uO.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:dO,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:cO,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:cO,fontWeight:bO,color:uO.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bO}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${uO.GREYSCALE_0_15}, 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:G.createElement(IO,null),checkedIcon:G.createElement(LO,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:uO.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:uO.GREYSCALE_0_20}},"&.Mui-disabled":{fill:uO.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:G.createElement(ZT,null),checkedIcon:G.createElement(AO,null),indeterminateIcon:G.createElement(PO,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mO,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:uO.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:uO.GREYSCALE_0_55,color:uO.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:uO.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:uO.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:uO.GREYSCALE_0_55,"&:hover":{color:uO.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:uO.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:uO.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:dO,color:uO.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bO},secondary:{fontSize:cO,color:uO.GREYSCALE_45,fontWeight:gO,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:dO,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&:active":{backgroundColor:uO.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:dO,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:uO.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:cO,borderBottom:`solid 1px ${uO.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:dO,color:uO.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:uO.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:uO.RED}}},"&.Mui-focusVisible":{backgroundColor:uO.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:uO.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:uO.GREEN,height:"24px","&.Mui-disabled":{color:uO.GREYSCALE_0_15}},rail:{backgroundColor:uO.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${uO.GREYSCALE_0_05}`,borderRadius:mO,boxShadow:`inset 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${uO.GREYSCALE_0_05}`,borderRadius:mO},thumb:{height:"16px",width:"16px",borderRadius:mO,backgroundColor:uO.WHITE,boxShadow:`0px 1px 2px 0px ${uO.GREYSCALE_0_15}, 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`,"&:hover":{borderRadius:mO,boxShadow:`0 2px 4px 0 ${uO.GREYSCALE_0_30}, 0 0 0 1px ${uO.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${uO.GREYSCALE_0_15}, 0 0 0 1px ${uO.GREYSCALE_0_06}, 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${uO.GREYSCALE_0_15}, 0 0 0 1px ${uO.GREYSCALE_0_06}, 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:uO.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:uO.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:uO.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:uO.GREYSCALE_0_15},markLabel:{color:uO.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:uO.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:uO.WHITE,color:uO.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:uO.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:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:uO.GREYSCALE_0_15,borderRadius:mO},thumb:{height:"16px",width:"16px",borderRadius:mO,backgroundColor:uO.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:dO,fontWeight:bO,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${uO.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,backgroundColor:uO.GREYSCALE_0_03,borderRadius:mO},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:uO.GREYSCALE_25,"&.Mui-selected":{color:uO.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:dO,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mO,"&:hover":{backgroundColor:`${uO.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 ${uO.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${uO.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mO,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:uO.GREYSCALE_0_05},"&:hover":{backgroundColor:`${uO.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${uO.GREYSCALE_85}`,borderRight:`1px solid ${uO.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bO,backgroundColor:uO.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:uO.GREYSCALE_98,borderBottom:`1px solid ${uO.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${uO.GREYSCALE_85}`,borderTop:`1px solid ${uO.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:uO.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:uO.GREYSCALE_0_05,"&:hover":{backgroundColor:uO.GREYSCALE_0_03}},"&&:hover":{backgroundColor:uO.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>G.createElement(MO,{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 ${uO.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:dO,borderRadius:mO,padding:"7px 16px",border:`1px solid ${uO.GREYSCALE_0_15}`,backgroundColor:uO.GREYSCALE_100_60,color:uO.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:uO.GREYSCALE_0_10,border:`1px solid ${uO.GREYSCALE_0_30}`},"&:hover":{backgroundColor:uO.GREYSCALE_0_03,border:`1px solid ${uO.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:uO.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`,border:`1px solid ${uO.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:uO.GREYSCALE_25,backgroundColor:uO.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:uO.GREYSCALE_0_10,border:`1px solid ${uO.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:cO,height:24,width:24,padding:7},sizeLarge:{fontSize:pO,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:dO,borderRadius:mO}}},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:uO.GREYSCALE_20},tooltip:{backgroundColor:uO.GREYSCALE_20,fontSize:cO,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var tN=e=>eN;const nN={mode:"light",primary:{ultraLight:uO.GREEN_ULTRA_LIGHT,light:uO.GREEN_PALE,main:uO.GREEN,dark:uO.GREEN_DARK,extraDark:uO.GREEN_EXTRA_DARK,contrastText:uO.WHITE},secondary:{ultraLight:uO.BLUE_ULTRA_LIGHT,light:uO.BLUE_PALE,main:uO.BLUE,dark:uO.BLUE_DARK,extraDark:uO.BLUE_EXTRA_DARK,contrastText:uO.WHITE},error:{ultraLight:uO.RED_ULTRA_LIGHT,light:uO.RED_PALE,main:uO.RED,dark:uO.RED_DARK,extraDark:uO.RED_EXTRA_DARK,contrastText:uO.WHITE},warning:{ultraLight:uO.ORANGE_ULTRA_LIGHT,light:uO.ORANGE_PALE,main:uO.ORANGE,dark:uO.ORANGE_DARK,extraDark:uO.ORANGE_EXTRA_DARK,contrastText:uO.WHITE},success:{ultraLight:uO.GREEN_ULTRA_LIGHT,light:uO.GREEN_PALE,main:uO.GREEN,dark:uO.GREEN_DARK,extraDark:uO.GREEN_EXTRA_DARK,contrastText:uO.WHITE},info:{ultraLight:uO.BLUE_ULTRA_LIGHT,light:uO.BLUE_PALE,main:uO.BLUE,dark:uO.BLUE_DARK,extraDark:uO.BLUE_EXTRA_DARK,contrastText:uO.WHITE},text:{primary:uO.TEXT_PRIMARY,secondary:uO.TEXT_SECONDARY,disabled:uO.GREYSCALE_0_30},action:{hover:uO.GREYSCALE_0_03,hoverOpacity:.03,selected:uO.GREYSCALE_0_05,selectedOpacity:.05,focus:uO.MISC_FOCUS_BORDER},amethyst:{ultraLight:uO.WHITE,main:uO.PURPLE,light:uO.PURPLE_PALE,dark:uO.PURPLE_DARK,extraDark:uO.GREYSCALE_0_0,contrastText:uO.WHITE},background:{paper:uO.WHITE,default:uO.GREYSCALE_95},divider:uO.GREYSCALE_0_15},rN=e=>({components:tN(),palette:nN,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:dO,fontWeightLight:hO,fontWeightRegular:gO,fontWeightMedium:bO,fontWeightBold:vO,htmlFontSize:dO,fontFamily:yO.FONT_FAMILY,button:{fontWeight:bO,fontSize:dO,textTransform:"none"},body1:{fontSize:pO,lineHeight:"24px"},body2:{fontSize:dO,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fO,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:pO,fontWeight:bO,lineHeight:"16px"},h6:{fontSize:dO,fontWeight:bO,lineHeight:"16px"},caption:{color:uO.TEXT_SECONDARY},subtitle1:{fontSize:dO,color:uO.TEXT_SECONDARY},subtitle2:{fontSize:cO,color:uO.TEXT_SECONDARY}},shape:{borderRadius:mO}}),oN={...sO,MISC_FOCUS_BORDER:uO.MISC_FOCUS_BORDER},iN=(e="light")=>rN(),aN=iN().palette,lN=(aN.primary.light,L_.Selected,"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)"),sN=4/3,uN="12px",cN="600",dN="Source Sans Pro, sans-serif",pN={height:"auto",fontSize:uN,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"}},fN={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:cN},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mN=25e4,hN=(e,t,n)=>{if(null==e||!e.length)return[];const r=[],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=()=>{r[a]=Math.min(Rk.PixelsMax,Math.max(Rk.PixelsMin,m)),i-=r[a]};switch(s){case kk.Pixels:m=u||Rk.PixelsDefault,h();break;case kk.Percentage:m=(c||Rk.PercentageDefault)/100*t,h();break;case kk.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===aP.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case kk.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=>{r[t]=Math.max(Rk.AutoMinTable,e)}))}return r},gN=e=>e.ctrlKey||e.metaKey,bN=e=>e.shiftKey&&gN(e),vN=e=>[D_.LEFT,D_.RIGHT,D_.UP,D_.DOWN].includes(e),yN=e=>vN(e)||[D_.HOME,D_.END,D_.PAGE_UP,D_.PAGE_DOWN].includes(e),xN=e=>e.shiftKey&&vN(e.key),SN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=L_.Inactive;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?L_.Disabled:void 0!==r[e.qElemNumber]?L_.Selected:L_.Possible),i},EN=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},wN=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),EN(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},CN=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&xN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&xN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===D_.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),EN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},RN=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},kN=(e,t)=>{var n;switch(t.type){case M_.SELECT:return wN(e,t.payload);case M_.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case M_.SELECT_MOUSE_UP:return((e,t)=>RN(e.isSelectMultiValues||e.firstCell!==t.cell?e:wN(e,t)))(e,t.payload);case M_.SELECT_MULTI_ADD:return CN(e,t.payload);case M_.SELECT_MULTI_END:return RN(e);case M_.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case M_.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case M_.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},AN=4/3,PN=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function IN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const LN=e=>JR(e)?Sw.WHITE:Sw.TEXT,MN=(e,t)=>e?{borderBottomColor:Sw.DARK_MODE_BORDER,borderRightColor:Sw.DARK_MODE_BORDER,borderLeftColor:Sw.DARK_MODE_BORDER,borderTopColor:Sw.DARK_MODE_BORDER}:{borderLeftColor:Sw.BORDER_MEDIUM,borderRightColor:Sw.BORDER_MEDIUM,borderTopColor:Sw.BORDER_HEAVY,borderBottomColor:t?Sw.BORDER_HEAVY:Sw.BORDER_LIGHT},DN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*AN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},_N=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},ON=(e,t,n,r=!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:PN(null==n?void 0:n.fontColor)?IN(Sw.TEXT,t,null==n?void 0:n.fontColor):i||Sw.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...MN(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function TN(e,t,n){var r,o,i;const a=null===(r=_N(e))||void 0===r?void 0:r.header,l=ON("header",t,a,n);return l.background=(e=>{if(void 0===e)return;const t=ek(e);return t.opacity=1,t.toString()})(t.background.headerColor),l.hoverBackground=xC(null!==(o=l.background)&&void 0!==o?o:Sw.WHITE,Ak),l.activeBackground=xC(null!==(i=l.background)&&void 0!==i?i:Sw.WHITE,Pk),l}function NN(e,t,n,r){var o;const i=null===(o=_N(e))||void 0===o?void 0:o.content,a=ON("content",t,i);a.background=t.background.color;const l=DN(null==a?void 0:a.fontSize,n,r),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=PN(u)||!!d,f=PN(s)||!!c,m=p||f;let h;h=PN(s)?IN(Sw.HOVER,t,s):c||(p?"":Sw.HOVER);const g=m?IN(LN(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const qN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in fN&&Object.assign(t,fN[e]))),t};function zN(e,t,n){var r;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText,a=r&&tk(r);a&&"none"!==a&&(o[n[t]]=a),i=r?qN(r,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=LN(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const FN=e=>parseInt(e||uN,10),jN=e=>parseInt(null!=e?e:pN.fontSize,10)*sN,$N=e=>{const t=Math.max(jN(e.header.fontSize)+8,32),n=Math.max(jN(e.totalRow.fontSize)+8+1,24),r=Math.max(jN(e.dimension.values.fontSize),jN(e.measure.values.fontSize));return{headerMinRowHeight:t,totalRowMinHeight:n,contentLineHeight:r,contentMinRowHeight:Math.max(r+8+1,24)}},HN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uN}},BN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",VN=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",WN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?cN:"normal",UN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},GN=(e,t,n,r)=>{var o,i;const{objectColorFromCSS:a,sheetColorFromCSS:l}=t.background,s=UN(t,null==n?void 0:n.background),u=t.getStyle("","",r);return null!==(o=null!==(i=ik(s,s||a||u,l))&&void 0!==i?i:e)&&void 0!==o?o:Sw.WHITE},YN=(e,t,n,r)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,P,I,L,M,D,_,O,T,N,q,z,F,j,$,H,B,V,W,U,G,Y,K,X,J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ue,ce,de;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n,r)=>{var o,i,a;const l={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:cN,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:cN,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(o=_N(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,border:n.background.isDark?Sw.DARK_MODE_BORDER:Sw.BORDER_MEDIUM,divider:Sw.BORDER_HEAVY,hoverColors:{color:null===(i=t.body.hoverColors)||void 0===i?void 0:i.color,background:null===(a=t.body.hoverColors)||void 0===a?void 0:a.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:XR({desiredColor:t.body.color,theme:n,flags:r.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0},{headerMinRowHeight:s,totalRowMinHeight:u,contentLineHeight:c,contentMinRowHeight:d}=$N(l);return l.headerMinRowHeight=s,l.totalRowMinHeight=u,l.contentLineHeight=c,l.contentMinRowHeight=d,l})(t,n,r,e);const{header:pe,dimensionValues:fe,measureValues:me,totalValues:he,nullValues:ge,grid:be,content:ve}=null!==(o=_N(t))&&void 0!==o?o:{},ye=GN(n.head.background,r,pe,"object.straightTableV2.dimension.label.name.backgroundColor"),xe=null!==(i=null!==(a=null!==(l=null!==(s=UN(r,null==fe?void 0:fe.fontColor))&&void 0!==s?s:UN(r,null==ve?void 0:ve.fontColor))&&void 0!==l?l:r.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==a?a:n.body.color)&&void 0!==i?i:Sw.TEXT,Se={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==pe?void 0:pe.fontFamily)&&void 0!==d?d:r.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:n.head.fontFamily)&&void 0!==u?u:dN,fontSize:HN(null!==(p=null!==(f=null==pe?void 0:pe.fontSize)&&void 0!==f?f:r.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:n.head.fontSize),fontStyle:BN(null==pe?void 0:pe.fontStyle),fontWeight:WN(null==pe?void 0:pe.fontStyle,cN),textDecoration:VN(null==pe?void 0:pe.fontStyle),color:null!==(m=null!==(h=null!==(g=UN(r,null==pe?void 0:pe.fontColor))&&void 0!==g?g:r.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:n.head.color)&&void 0!==m?m:Sw.TEXT,background:ye},headerMenuHoverBackground:xC(ye,Ak),headerMenuActiveBackground:xC(ye,Pk),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==fe?void 0:fe.fontFamily)&&void 0!==y?y:r.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:n.body.fontFamily)&&void 0!==b?b:dN,fontSize:HN(null!==(x=null!==(S=null!==(E=null==fe?void 0:fe.fontSize)&&void 0!==E?E:null==ve?void 0:ve.fontSize)&&void 0!==S?S:r.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:n.body.fontSize),fontStyle:BN(null==fe?void 0:fe.fontStyle),fontWeight:WN(null==fe?void 0:fe.fontStyle,"normal"),textDecoration:VN(null==fe?void 0:fe.fontStyle),color:xe,background:null!==(w=null!==(C=null!==(R=UN(r,null==fe?void 0:fe.background))&&void 0!==R?R:r.getStyle("object.straightTableV2.dimension","label.value","backgroundColor"))&&void 0!==C?C:n.body.background)&&void 0!==w?w:Sw.TRANSPARENT}},measure:{values:{fontFamily:null!==(k=null!==(A=null!==(P=null==me?void 0:me.fontFamily)&&void 0!==P?P:r.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==A?A:n.body.fontFamily)&&void 0!==k?k:dN,fontSize:HN(null!==(I=null!==(L=null!==(M=null==me?void 0:me.fontSize)&&void 0!==M?M:null==ve?void 0:ve.fontSize)&&void 0!==L?L:r.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==I?I:n.body.fontSize),fontStyle:BN(null==me?void 0:me.fontStyle),fontWeight:WN(null==me?void 0:me.fontStyle,"normal"),textDecoration:VN(null==me?void 0:me.fontStyle),color:null!==(D=null!==(_=null!==(O=null!==(T=UN(r,null==me?void 0:me.fontColor))&&void 0!==T?T:UN(r,null==ve?void 0:ve.fontColor))&&void 0!==O?O:r.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==_?_:n.body.color)&&void 0!==D?D:Sw.TEXT,background:null!==(N=null!==(q=null!==(z=UN(r,null==me?void 0:me.background))&&void 0!==z?z:r.getStyle("object.straightTableV2.measure","label.value","backgroundColor"))&&void 0!==q?q:n.body.background)&&void 0!==N?N:Sw.TRANSPARENT}},totalRow:{fontFamily:null!==(F=null!==(j=null!==($=null==he?void 0:he.fontFamily)&&void 0!==$?$:r.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==j?j:n.totals.fontFamily)&&void 0!==F?F:dN,fontSize:HN(null!==(H=null!==(B=null!==(V=null==he?void 0:he.fontSize)&&void 0!==V?V:null==ve?void 0:ve.fontSize)&&void 0!==B?B:r.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==H?H:n.totals.fontSize),fontStyle:BN(null==he?void 0:he.fontStyle),fontWeight:WN(null==he?void 0:he.fontStyle,cN),textDecoration:VN(null==he?void 0:he.fontStyle),color:null!==(W=null!==(U=null!==(G=null!==(Y=UN(r,null==he?void 0:he.fontColor))&&void 0!==Y?Y:UN(r,null==ve?void 0:ve.fontColor))&&void 0!==G?G:r.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==U?U:n.totals.color)&&void 0!==W?W:Sw.TEXT,background:GN(n.totals.background,r,he,"object.straightTableV2.total.label.value.backgroundColor")},nullValues:{fontStyle:BN(null==ge?void 0:ge.fontStyle),fontWeight:WN(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:VN(null==ge?void 0:ge.fontStyle),color:null!==(K=null!==(X=null!==(J=null!==(Q=UN(r,null==ge?void 0:ge.fontColor))&&void 0!==Q?Q:UN(r,null==ve?void 0:ve.fontColor))&&void 0!==J?J:r.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==X?X:n.body.color)&&void 0!==K?K:Sw.TEXT,background:null!==(Z=null!==(ee=UN(r,null==ge?void 0:ge.background))&&void 0!==ee?ee:r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==Z?Z:Sw.NULL_VALUE_BACKGROUND},grid:{lineClamp:null!==(te=null==ve?void 0:ve.rowHeight)&&void 0!==te?te:r.getStyle("object.straightTableV2","grid","lineClamp"),border:null!==(ne=null!==(re=UN(r,null==be?void 0:be.border))&&void 0!==re?re:r.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ne?ne:r.background.isDark?Sw.DARK_MODE_BORDER:Sw.BORDER_MEDIUM,divider:null!==(oe=null!==(ie=UN(r,null==be?void 0:be.divider))&&void 0!==ie?ie:r.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==oe?oe:Sw.BORDER_HEAVY,hoverColors:{color:null!==(ae=null!==(le=UN(r,null==ve?void 0:ve.hoverFontColor))&&void 0!==le?le:r.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ae?ae:null===(se=n.body.hoverColors)||void 0===se?void 0:se.color,background:null!==(ue=null!==(ce=UN(r,null==ve?void 0:ve.hoverColor))&&void 0!==ce?ce:r.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==ue?ue:null===(de=n.body.hoverColors)||void 0===de?void 0:de.background},lastRowBottomBorder:n.body.lastRowBottomBorder},selectedColors:XR({desiredColor:xe,theme:r,flags:e.flags}),headerMinRowHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0},{headerMinRowHeight:Ee,totalRowMinHeight:we,contentLineHeight:Ce,contentMinRowHeight:Re}=$N(Se);return Se.headerMinRowHeight=Ee,Se.totalRowMinHeight=we,Se.contentLineHeight=Ce,Se.contentMinRowHeight=Re,Se},KN=(e,t,n,r)=>{const o=U.useMemo((()=>{const o=n.totalsPosition.atTop,i=NN(e,t,n.rows.length,r),a=TN(e,t,!o),l=function(e,t,n){var r;const o=null===(r=_N(e))||void 0===r?void 0:r.content,i=ON("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=TN(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,n,r]);return o},XN=new Map;const JN=U.createContext({}),QN=function(e){const t=U.createContext([()=>{},new Set]);return XN.set(e,t),({children:n,value:r})=>{const o=U.useRef(r),i=U.useRef(new Set);U.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=U.useCallback((()=>o.current),[o]),l=U.useMemo((()=>[a,i.current]),[a]);return Ki.jsx(e.Provider,{value:r,children:Ki.jsx(t.Provider,{value:l,children:n})})}}(JN),ZN={rows:[],columns:[],totalsPosition:{}},eq=({app:e,children:t,tableData:n=ZN,selectionsAPI:r,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[S,E]=U.useState(0),[w,C]=U.useState(o||lO),[R,k]=((e,t)=>{const[n,r]=U.useReducer(kN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,P]=U.useState(-1),I=KN(i,u,n,d),L=((e,t,n,r)=>U.useMemo((()=>YN(e,t,n,r)),[t,n,e,r]))(x,i,I,u),[M,D,_,O]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=dk({...r.header,fontWeight:cN},{maxNbrLinesOfText:3}).measureText,a=dk({...r.totalRow,fontWeight:cN},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=dk(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=dk(r.measure.values,{maxNbrLinesOfText:3}),u=U.useMemo((()=>(e,t,n,r,u,c)=>{let d=25;d+=28,r&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(n))}),[l,s,i,a,o]),[c,d]=U.useState(0),[p,f]=U.useState((()=>hN(e,n,u)));mk((()=>{f(hN(e,n-c,u))}),[e,n,c,u]);const m=U.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(p,c,n)),[p,c,n]);return[p,f,d,m]})(n.columns,n.totalsPosition,v.width,L),T=U.useMemo((()=>({app:e,selectionsAPI:r,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:L})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,L]);return Ki.jsx(QN,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:P,columnWidths:M,setColumnWidths:D,baseProps:T,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:O,env:x},children:t})};function tq(e,t){const n=function(e){return XN.get(e)}(e),[r,o]=U.useContext(n),[,i]=U.useReducer((e=>e+1),0),a=U.useRef(t),l=U.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=U.useMemo((()=>t(s)),[s,t]);return U.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),U.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function nq(e){var t;const n=iN();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),TD({...n,direction:e})}const rq={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},oq={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},iq=gl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...rq},"&::-moz-range-track":{...rq},"&::-ms-track":{...rq},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...oq},"&::-moz-range-thumb":{...oq},"&::-ms-thumb":{...oq},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),aq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=gk({translator:c.translator}),p=U.useRef({initWidth:e,columnWidth:e,initX:0}),f=n?0:1,m=r&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};mk((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,Rk.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:kk.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{rk(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},S=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},E=e=>{rk(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),v()},w=!r&&l?e=>{if(e.key===wk.LEFT||e.key===wk.RIGHT){rk(e);const t=5,n=e.key===wk.LEFT?-t:t;b(p.current.columnWidth+n)}else e.key===wk.SPACE||e.key===wk.ENTER?(rk(e),l(e),v()):e.key===wk.ESC&&(rk(e),l(e),b(p.current.initWidth))}:void 0,C=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return G.createElement(iq,{style:h,key:t,hoverColor:o,isLastColumn:n,className:Ck,"data-testid":Ck,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:kk.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:Rk.PixelsMax,"aria-label":C,"aria-valuemin":Rk.PixelsMin,"aria-valuemax":Rk.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function lq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),uq=U.forwardRef(sq);function cq(){return cq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cq.apply(null,arguments)}const dq=gl(Yx,{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"}))),pq=gl(uq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),fq=gl(RE)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),mq=gl(vS)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),hq=gl(LE)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),gq=gl(LE,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),bq=gl("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"}))),vq=gl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),yq=gl(Ky)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),xq=gl(QS)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Eq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Sq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),wq=U.forwardRef(Eq);let Cq={};const Rq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=U.useState(!1),p=U.useRef(null),f=U.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return G.createElement(G.Fragment,null,G.createElement(gq,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Cq={}),null!=a&&a.length&&(d(!0),Cq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&G.createElement(bq,null),G.createElement(vq,null,G.createElement(xq,null,G.createElement(o,null)),G.createElement(yq,{variant:"body2"},r)),null!=a&&a.length?G.createElement(wq,null):null),(null==a?void 0:a.length)&&G.createElement(Pq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Cq,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},kq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&G.createElement(hq,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>G.createElement(Rq,cq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),Aq={appear:200,enter:200,exit:100},Pq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?G.createElement(fq,cq({className:xk,open:t,anchorEl:e,onClose:n,transitionDuration:Aq,MenuListProps:{id:Sk}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[kq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?G.createElement(mq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,Iq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Lq=(e,t)=>e.some((e=>t[e]>0));function Mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),_q=U.forwardRef(Dq);function Oq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Nq=U.forwardRef(Tq);function qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Fq=U.forwardRef(zq);function jq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $q=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Hq=U.forwardRef($q);function Bq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Wq=U.forwardRef(Vq);function Uq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Gq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Uq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Yq=U.forwardRef(Gq);function Kq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Xq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Kq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Jq=U.forwardRef(Xq);function Qq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Zq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Qq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),ez=U.forwardRef(Zq);function tz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),rz=U.forwardRef(nz);function oz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),az=U.forwardRef(iz);let lz=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const sz=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[lz.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:_q,enabled:a,isActive:!!n&&"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")),r(!1)},icon:Hq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[lz.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:Wq,enabled:!0}]}]),n[lz.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:az,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:Yq,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:rz,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:Jq,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:ez,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:Nq,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[lz.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:Fq,enabled:!0}]}]),d},uz=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=gk({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=U.useState(null),[o,i]=U.useState(Iq);return U.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:U.useCallback((()=>i(Iq)),[]),updateSelectionActionsEnabledStatus:U.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:Lq(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Lq(["qSelected"],n.qStateCounts),canSelectPossible:Lq(["qOption"],n.qStateCounts),canSelectAlternative:Lq(["qAlternative"],n.qStateCounts),canSelectExcluded:Lq(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=U.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);U.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=U.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?G.createElement(dq,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:yk},s&&G.createElement(pq,{height:bk,className:vk,"data-testid":vk,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},G.createElement(uq,null)),G.createElement(Pq,{open:e,anchorEl:n.current,onClose:w,menuGroups:sz({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},cz=e=>e.isDark?{background:e.color,borderColor:Sw.DARK_MODE_BORDER,color:Sw.DARK_MODE_TEXT,disabledColor:Sw.DARK_MODE_DISABLED,iconColor:Sw.DARK_MODE_TEXT}:{background:e.color,borderColor:Sw.BORDER_MEDIUM,color:Sw.TEXT,disabledColor:Sw.DISABLED},dz=gl(Yx,{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}`}))),pz=gl(mw,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),fz=gl(iS,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),mz=gl(Ky)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),hz=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=U.useMemo((()=>cz(r.background)),[r]);if(!n.active)return null;const a=o?G.createElement(dz,{footerStyle:i},e):null;return t?Kv.createPortal(e,t):a},gz={},bz=U.createContext(gz),vz=()=>U.useContext(bz),yz=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=U.useMemo((()=>cz(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=gk({translator:d}),x=U.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return G.createElement(bz.Provider,{value:x},e)};let xz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Sz=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 Ez(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ez(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),Cz=U.forwardRef(wz);function Rz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),Az=U.forwardRef(kz);function Pz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Iz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),Lz=U.forwardRef(Iz),Mz={FirstPage:Az,PreviousPage:Cz,NextPage:wq,LastPage:Lz,FirstPageRTL:Lz,PreviousPageRTL:wq,NextPageRTL:Cz,LastPageRTL:Az},Dz=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=vz(),u=Mz[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},_z=()=>{const{pageInfo:e,width:t}=vz(),n=0===e.page,{IconComponent:r,styledProps:o}=Dz({type:xz.FirstPage,disabledCondition:n,pageNumber:0});return t<=Sz.FirstPage?null:G.createElement(fz,o,G.createElement(r,{height:bk}))},Oz=(e,t,n=!1)=>{n&&e.key===wk.TAB&&!e.shiftKey&&(rk(e),nk(e.target,t,!1))},Tz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=vz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Dz({type:xz.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Oz(e,t,r):null;return o<=Sz.LastPage?null:G.createElement(fz,cq({},l,{onKeyDown:s}),G.createElement(a,{height:bk}))},Nz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=vz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Dz({type:xz.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Sz.FirstPage&&o>Sz.LastPage)&&t.enabled?e=>Oz(e,t,r):null;return G.createElement(fz,cq({},l,{onKeyDown:s}),G.createElement(a,{height:bk}))},qz=()=>{const{pageInfo:e}=vz(),t=0===e.page,{IconComponent:n,styledProps:r}=Dz({type:xz.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return G.createElement(fz,r,G.createElement(n,{height:bk}))},zz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=vz(),{page:o,rowsPerPage:i}=n;if(t<=Sz.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return G.createElement(mz,{variant:"caption"},a)},Fz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=vz(),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 G.createElement(G.Fragment,null,G.createElement(mz,{variant:"caption",id:d},u,":"),G.createElement(pz,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},jz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=vz();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Sz.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=G.createElement(G.Fragment,null,t.rowsPerPageOptions.map((e=>G.createElement("option",{key:e,value:e},e))));return G.createElement(Fz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},$z=1e3,Hz="…",Bz=({totalPages:e,page:t})=>{const n=Math.min(e,$z),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-$z):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return G.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(G.createElement("option",{key:"startMoreOptions",value:Hz,disabled:!0},Hz)),o<e-1&&a.push(G.createElement("option",{key:"endMoreOptions",value:Hz,disabled:!0},Hz)),G.createElement(G.Fragment,null,a)},Vz=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=vz(),{page:o}=e;if(t<=Sz.SelectPage)return null;const i=G.createElement(Bz,{totalPages:n,page:o});return G.createElement(Fz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},Wz=e=>G.createElement(yz,e,G.createElement(jz,null),G.createElement(Vz,null),G.createElement(zz,null),G.createElement(_z,null),G.createElement(qz,null),G.createElement(Nz,null),G.createElement(Tz,null));var Uz=U.memo(Wz);const Gz=e=>G.createElement(hz,e,G.createElement(Uz,e)),Yz=f_(nT,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),Kz=f_(nT,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:n=!1,headCell:r=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(r||t||1===e)&&{textOverflow:"ellipsis",overflow:"hidden",wordBreak:r&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...r&&{whiteSpace:n||i?"normal":"nowrap"},whiteSpace:"pre-line"}}))),Xz=f_(nT)({overflow:"hidden",textOverflow:"ellipsis"});function Jz(e,t){const n=U.useRef(!1);U.useEffect((()=>{n.current?e():n.current=!0}),t)}const Qz=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},Zz=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),eF=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?eF(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},tF=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?tF(t):t},nF=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ck}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},rF=({focusType:e,cell:t})=>{if(t)switch(e){case __.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case __.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case __.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case __.ADD_TAB:t.setAttribute("tabIndex","0");break;case __.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},oF=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{rF({focusType:__.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,n,r={top:0,bottom:0})=>{const o=r.top>0,i=r.top,a=t.getElementsByClassName("sn-table-row").length-1-r.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=n;switch(e.key){case D_.DOWN:s<a&&s++;break;case D_.UP:s>i&&s--;break;case D_.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case D_.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case D_.HOME:(gN(e)||o)&&(s=i),o||(u=0);break;case D_.END:(gN(e)||o)&&(s=a),o||(u=l);break;case D_.PAGE_DOWN:s=Math.min(a,s+10);break;case D_.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=Qz(t,i);return rF({focusType:__.FOCUS,cell:a}),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.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")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),r(i),{nextCell:a,nextCellCoord:i}},iF=(e,t,n,r)=>{var o;(rF({focusType:__.REMOVE_TAB,cell:Zz(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):rF({focusType:__.ADD_TAB,cell:Qz(t,e)})},aF=(e,t,n)=>{U.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(`.${xk}`);if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])},lF=(e,t,n)=>{U.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},sF=(e,t=!1)=>e.key===D_.ESC&&!t||(e.key===D_.LEFT||e.key===D_.RIGHT)&&bN(e),uF=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===D_.DOWN||n===D_.UP){const t=e=>n===D_.DOWN?eF(e):tF(e);rk(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},cF=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(L_.Disabled))return void rk(e);const d=null==c?void 0:c.isModal();if(!sF(e,d))switch(e.key){case D_.SPACE:rk(e),n.isSelectable&&o&&r({type:M_.SELECT,payload:{cell:n,evt:e,announce:a}});break;case D_.ENTER:rk(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case D_.ESC:rk(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case D_.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(rk(e),nk(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;default:yN(e.key)&&(rk(e),(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[n.pageRowIdx+u,n.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=oF({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,n)=>t.shiftKey&&e&&n.isSelectable)(o,e,n)?r({type:M_.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},dF=e=>{const{layout:t,rect:n,theme:r}=tq(JN,(e=>e.baseProps)),[o,i]=U.useState(0),[a,l]=U.useState(0);return U.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=r-a;l(n-o),i(s)}}),[e,t,n,r]),{xScrollbarWidth:o,yScrollbarWidth:a}},pF=f_("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fF=f_(FT,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),mF=f_(ET,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),hF=()=>Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(pF,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Ki.jsx(pF,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),gF=e=>e.stopPropagation(),bF=({href:e,text:t,interactions:n,color:r})=>G.createElement(HS,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:gF,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),vF=({children:e,forwardRef:t,fontSize:n="",wordBreak:r=!1,isPagination:o=!1,virtualizedCell:i=!1,lines:a=3,headCell:l=!1,allIconsDisabled:s=!1,indicatorColor:u=""})=>{if(l)return Ki.jsx(Kz,{ref:t,component:"span",className:"sn-table-cell-text",lines:a,isPagination:o,headCell:!0,allIconsDisabled:s,children:e});const c=FN(n),d=Ki.jsx(Kz,{ref:t,component:"span",className:"sn-table-cell-text",wordBreak:r,lines:a,virtualizedCell:i,children:e});return r?d:Ki.jsx(Xz,{ref:t,color:u,minHeight:c*sN,maxHeight:c*sN*a,children:d})},yF=e=>{let t="center",n="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)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},xF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},SF=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Ki.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:xF(a),objectPosition:yF(l),overflow:"hidden"}});var c;return r?Ki.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?n:"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};function EF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),CF=U.forwardRef(wF);function RF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"})),AF=U.forwardRef(kF);function PF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const IF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){PF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),LF=U.forwardRef(IF);function MF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const DF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){MF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),G.createElement("use",{fillRule:"evenodd"})),_F=U.forwardRef(DF);function OF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),NF=U.forwardRef(TF);function qF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),FF=U.forwardRef(zF);function jF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $F=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),HF=U.forwardRef($F);function BF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const VF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){BF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M2 7h12v2H2z"})),WF=U.forwardRef(VF);function UF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){UF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),YF=U.forwardRef(GF);function KF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){KF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),JF=U.forwardRef(XF);function QF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),ej=U.forwardRef(ZF);function tj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),rj=U.forwardRef(nj);function oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ij=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),aj=U.forwardRef(ij);function lj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),uj=U.forwardRef(sj);function cj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),pj=U.forwardRef(dj);function fj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function hj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})),bj={m:rj,"ï":ej,R:U.forwardRef(mj),S:aj,T:uj,U:pj,P:JF,Q:HF,"è":U.forwardRef(gj),"¢":NF,"©":_F,"23F4":FF,2013:AF,"&":YF,add:CF,"minus-2":WF,dot:LF},vj=({size:e,iconKey:t,color:n})=>{const r=t&&bj[t]||void 0;return r&&Ki.jsx(r,{style:{color:n,height:e}})},yj=({representation:e})=>{var t;const{text:n,indicator:r}=e,{showTextValues:o,position:i,applySegmentColors:a}=null!=r?r:{},l=null==e||null===(t=e.indicatorConditionalColoring)||void 0===t?void 0:t.segments.paletteColors[0].icon,{styleService:s,theme:u}=tq(JN,(e=>e.baseProps)),c=FN(s.measure.values.fontSize),d=((e,t)=>{var n;const r=null==e||null===(n=e.indicatorConditionalColoring)||void 0===n?void 0:n.segments.paletteColors[0],{color:o,index:i}=r||{index:6};return IN("",t,{color:o,index:i})})(e,u);return o?Ki.jsxs("div",{"data-key":"representation-indicator",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:"2px",alignItems:"center"},children:["left"===i&&vj({size:c,iconKey:l,color:d}),Ki.jsx(vF,{indicatorColor:a?d:void 0,children:n}),"right"===i&&vj({size:c,iconKey:l,color:d})]}):vj({size:c,iconKey:l,color:d})},xj=({forwardRef:e,cell:t,style:n,maxImageHeight:r,virtualizedCell:o,maxLineCount:i})=>{const{interactions:a}=tq(JN,(e=>e.baseProps)),l=tq(JN,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let s=t.representation.text;return t.representation.type!==aP.Link||l||(s=Ki.jsx(bF,{href:t.representation.url,text:t.representation.text,interactions:a,color:n.cellForegroundColor})),t.representation.type===aP.Image?Ki.jsx(SF,{representation:t.representation,textStyle:n,maxImageHeight:r,wrapInContainer:!o}):t.isNull||t.representation.type!==aP.Indicator?Ki.jsx(vF,{forwardRef:e,wordBreak:!t.isNumeric,fontSize:n.fontSize,lines:i,virtualizedCell:o,children:s}):Ki.jsx(yj,{representation:t.representation})},Sj=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{U.useEffect((()=>{const i=()=>{t({type:M_.RESET})},a=()=>{t({type:M_.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!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,r,t,n,o])},Ej=({viewService:e,isImagesEnabled:t,styleService:n})=>{var r,o;let i=null===(r=e.viewState)||void 0===r?void 0:r.maxLineCount;var a;t&&(i=null!==(a=i)&&void 0!==a?a:n.grid.lineClamp);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},wj=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:n})=>t?n*e+8+1:void 0,Cj=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:M_.SELECT_MULTI_END});n({type:M_.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:M_.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:M_.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),Rj=f_(IT,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),kj=f_(QT,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),Aj=f_(TT,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...pN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),Pj=f_(TT,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...pN,...e,fontWeight:cN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function Ij(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,{styleService:a}=tq(JN,(e=>e.baseProps)),l=tq(JN,(e=>SN(n,e.selectionState))),s=tq(JN,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=Cj(i,n,s,o),p=function(e,t,n){return t===L_.Selected?{...e,...n}:t===L_.Disabled?{...e,background:`${lN}, ${e.background}`}:e}(r,l,a.selectedColors);return Ki.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function Lj(e,t){let n=(r=Aj,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return Ki.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${Ek}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=Ij(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=U.useMemo((()=>n.isNull?o:zN(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,n.isNull,r.qAttrExprInfoIDs]);return Ki.jsx(e,{...t,styling:i})}}(n)),n}const Mj=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),Dj=()=>{const{columns:e,totalsPosition:t,rows:n}=tq(JN,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=tq(JN,(e=>e.baseProps)),s=tq(JN,(e=>e.headRowHeight)),u=tq(JN,(e=>e.setFocusedCellCoord));return Ki.jsx(QT,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return Ki.jsx(Pj,{totalsStyle:{...a.totalRow,...Mj(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ek}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)rk(e);else if(!sF(e))switch(e.key){case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;case D_.SPACE:e.preventDefault();break;default:yN(e.key)&&(rk(e),oF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{iF(d,r,u,i)},children:Ki.jsx(vF,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var _j=U.memo(Dj);const Oj=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=tq(JN,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=tq(JN,(e=>e.baseProps)),h=tq(JN,(e=>e.setFocusedCellCoord)),g=tq(JN,(e=>e.selectionDispatch)),{flags:b}=tq(JN,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=U.useMemo((()=>JSON.parse(y).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e)));return Lj(t,v)}))),[y,v]),S=!(null===(r=_N(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{maxNbrLines:E,isStaticNbrOfLines:w}=Ej({viewService:m,styleService:f,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),C=wj({maxNbrLines:E,isStaticNbrOfLines:w,lineHeight:f.contentLineHeight});return Sj({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Ki.jsxs(Rj,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Ki.jsx(_j,{}):void 0,o.map(((e,t)=>Ki.jsx(kj,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:C,children:i.map(((t,r)=>{const{id:o}=t,i=e[r],d=x[r];let m=t.isDim?f.dimension.values:f.measure.values;i.isNull&&(m={...m,...f.nullValues}),!b.isEnabled("CLIENT_IM_6696_INDICATORS")||t.isDim||i.isNull||(i.representation.indicatorConditionalColoring=t.conditionalColoring);const y=zN(m,i.qAttrExps,t.qAttrExprInfoIDs);return d&&Ki.jsx(d,{scope:0===r?"row":void 0,component:0===r?"th":void 0,cell:i,column:t,align:i.align,styling:{...m,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{cF({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===D_.SHIFT&&t({type:M_.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;iF([l,a],t,n,r)})(i,u,h,c,l),children:Ki.jsx(xj,{cell:i,style:y,maxImageHeight:w?f.contentLineHeight*E:f.contentLineHeight,maxLineCount:E})},o)}))},`row-${t}`))),l.atBottom?Ki.jsx(_j,{}):void 0]})};var Tj=U.memo(Oj);const Nj=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=tq(JN,(e=>e.baseProps)),u=tq(JN,(e=>e.columnWidths)),c=tq(JN,(e=>e.setColumnWidths));if(!l.active)return null;return Ki.jsx(aq,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==n||n();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");rF({focusType:__.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function qj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Fj=U.forwardRef(zj);function jj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $j=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Hj=U.forwardRef($j);function Bj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Bj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"}),G.createElement("use",{fillRule:"evenodd"})),Wj=U.forwardRef(Vj),Uj=f_("div")({position:"absolute",left:0,bottom:0}),Gj=f_(nT,{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"})));f_("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const Yj=f_(nT,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${yk}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${yk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),Kj=f_(nT,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));f_(nT,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),f_(hT)((({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"}}))),f_("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),f_(uT)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),f_("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const Xj=f_(TT,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...pN,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));f_("div")({display:"flex",alignItems:"center"});const Jj=f_("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:uN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Qj=({column:e,isInteractionEnabled:t,open:n,setOpen:r,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,model:p,styleService:f}=tq(JN,(e=>e.baseProps)),m=tq(JN,(t=>t.columnWidths[e.pageColIdx])),h=U.useRef(null),g=U.useRef(null),{getHeadCellsIconsVisibilityStatus:b,allIconsDisabled:v}=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=dk({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:cN}),o=U.useCallback((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=n-25,u=a?20:0,c=l?20:0;let d=r(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,n,r]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:f,column:e,columnWidth:m}),y=b(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?Ki.jsx(Fj,{height:uN,"data-testid":"head-cell-sort-ascending-icon"}):Ki.jsx(Hj,{height:uN,"data-testid":"head-cell-sort-descending-icon"}),i=n?Ki.jsx(Jj,{align:t,children:o}):void 0,a=r?Ki.jsx(Kj,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ki.jsx(Wj,{height:uN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);return Ki.jsxs(Yj,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Ki.jsxs(Gj,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Ki.jsx(vF,{forwardRef:a,allIconsDisabled:v,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),S]}),t&&Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(uz,{headerData:e,translator:l,anchorRef:h,handleHeadCellMenuKeyDown:uF,menuAvailabilityFlags:{[lz.SORTING]:!0,[lz.SEARCHING]:!0,[lz.SELECTIONS]:!0,[lz.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:u,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),s(e,n))},searchRelatedArgs:{embed:c,listboxRef:g},selectionRelatedArgs:{app:d,model:p},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:nF},shouldShowMenuIcon:y.shouldShowMenuIcon}),Ki.jsx(Uj,{ref:g}),Ki.jsx(Uj,{ref:h})]})]})},Zj=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=U.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=U.useState(!1);return mk((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,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(Ck)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},e$=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=tq(JN,(e=>e.baseProps)),{columns:l,totalsPosition:s}=tq(JN,(e=>e.tableData)),u=tq(JN,(e=>e.columnWidths[t])),c=tq(JN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=tq(JN,(e=>e.setFocusedCellCoord)),p=tq(JN,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=Zj({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?O_[e.sortDirection]:void 0,y=m?Sk:void 0,x=m?"true":void 0,S=t===n-1,E=[0,e.pageColIdx],w={width:u-(S?8:9),zIndex:l.length-t},C=p&&0===t&&!i.enabled&&f?0:-1;return Ki.jsxs(Xj,{headerStyle:{...a.header,...Mj(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:r,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ek}`,tabIndex:C,title:r.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!sF(e))switch(e.key){case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;case D_.ENTER:case D_.SPACE:i&&i(e);break;default:yN(e.key)&&(rk(e),oF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else rk(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):rF({focusType:__.FOCUS,cell:Qz(t,n)}))})({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:[Ki.jsx(Qj,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Ki.jsx(Nj,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},t$=()=>{var e;const{columns:t}=tq(JN,(e=>e.tableData)),{styleService:n,viewService:r}=tq(JN,(e=>e.baseProps)),o=tq(JN,(e=>e.setHeadRowHeight)),i=tq(JN,(e=>e.columnWidths)),a=U.useRef(null);return U.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Ki.jsx(WT,{children:Ki.jsx(QT,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Ki.jsx(e$,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var n$=U.memo(t$);const r$=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=tq(JN,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=tq(JN,(e=>e.baseProps)),k=tq(JN,(e=>e.focusedCellCoord)),A=tq(JN,(e=>e.setFocusedCellCoord)),P=tq(JN,(e=>e.setYScrollbarWidth)),I=tq(JN,(e=>e.showRightBorder)),L=tq(JN,(e=>e.selectionDispatch)),M=tq(JN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=U.useRef(!1),_=U.useRef(null),O=U.useRef(null),{yScrollbarWidth:T}=dF(_),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=dL(C,w),z=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,F=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=U.useCallback((()=>{D.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),$=U.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),H=U.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return aF(O,D,v),lF(_,i,w),(()=>{const{rootElement:e,keyboard:t}=tq(JN,(e=>e.baseProps)),n=tq(JN,(e=>e.focusedCellCoord));mk((()=>{const r=t.active?__.FOCUS:__.BLUR,o=t.active?Qz(e,n):Zz(e);rF({focusType:r,cell:o})}),[t.active,e])})(),U.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=z,e.scrollTop=F)}),[r,d,z,F]),Jz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{rF({focusType:__.REMOVE_TAB,cell:Zz(t)});const s=[l.atTop?2:1,e[1]],u=r?s:lO;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?__.FOCUS:__.ADD_TAB;n.current=!1;const d=Qz(t,u);if(rF({focusType:c,cell:d}),r){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:k,rootElement:b,shouldRefocus:D,setFocusedCellCoord:A,isSelectionMode:M,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),Jz((()=>{P(T)}),[T]),Jz((()=>{L({type:M_.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Ki.jsxs(Yz,{ref:O,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(bN(e)){rk(e);const a=Math.ceil(t/r)-1;e.key===D_.RIGHT&&n<a?(i(),o(n+1)):e.key===D_.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===D_.ESC&&a.enabled&&!l){var s;rk(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else vN(e.key)&&rk(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:$,setShouldRefocus:j,keyboard:v,isSelectionMode:M})},"data-testid":"sn-table",children:[Ki.jsx(hF,{}),Ki.jsx(fF,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Ki.jsxs(mF,{stickyHeader:!0,"aria-label":N,borderRight:I?`1px solid ${E.grid.border}`:void 0,children:[Ki.jsx(n$,{}),Ki.jsx(Tj,{...e,setShouldRefocus:j,tableWrapperRef:O})]})}),Ki.jsx(Gz,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:$,handleChangeRowsPerPage:H,isSelectionMode:M})]})};var o$=U.memo(r$);function i$(){return i$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i$.apply(this,arguments)}function a$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l$(e,t){return l$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l$(e,t)}function s$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,l$(e,t)}var u$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function c$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||u$(r)&&u$(o)))return!1;var r,o;return!0}function d$(e,t){var n;void 0===t&&(t=c$);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function p$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var f$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function m$(e){cancelAnimationFrame(e.id)}function h$(e,t){var n=f$();var r={id:requestAnimationFrame((function o(){f$()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var g$=-1;function b$(e){if(void 0===e&&(e=!1),-1===g$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),g$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return g$}var v$=null;function y$(e){if(void 0===e&&(e=!1),null===v$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?v$="positive-descending":(t.scrollLeft=1,v$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),v$}return v$}var x$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function S$(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,a$(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:a$(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=d$((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=d$((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=d$((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(y$()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&m$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=h$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}s$(t,e),t.getDerivedStateFromProps=function(e,t){return E$(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=b$();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(y$()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&m$(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?x$: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],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var P=R;P<=k;P++)for(var I=E;I<=w;I++)A.push(U.createElement(t,{columnIndex:I,data:d,isScrolling:v?x:void 0,key:f({columnIndex:I,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,I)}));var L=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return U.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:i$({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},U.createElement(u||c||"div",{children:A,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||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}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var E$=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},w$=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},C$=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},R$=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},k$=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?A$(e,t,n,i,0,r):P$(e,t,n,Math.max(0,i),r)},A$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=R$(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},P$=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&R$(e,t,r,n).offset<o;)r+=a,a*=2;return A$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},I$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=R$(e,t,n,i),u="column"===e?C$(t,i):w$(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},L$=S$({getColumnOffset:function(e,t,n){return R$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return k$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=R$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=R$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:w$,getEstimatedTotalWidth:C$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return I$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return I$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return R$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return k$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=R$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=R$("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),M$=function(e,t){return e};function D$(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,a$(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:a$(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=d$((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=d$((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=d$((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(y$()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&m$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=h$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}s$(t,e),t.getDerivedStateFromProps=function(e,t){return _$(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?b$():0:s.scrollHeight>s.clientHeight?b$():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(y$()){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&&m$(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?M$: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(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(U.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return U.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:i$({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,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,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var _$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},O$=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},T$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=O$(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},N$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&O$(e,n,t).offset<r;)n+=i,i*=2;return T$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},q$=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},z$=D$({getItemOffset:function(e,t,n){return O$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:q$,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=O$(e,t,o),p=q$(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?T$(e,t,o,0,n):N$(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=O$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=O$(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function F$(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var j$=["style"],$$=["style"];function H$(e,t){var n=e.style,r=p$(e,j$),o=t.style,i=p$(t,$$);return!F$(n,o)&&!F$(r,i)}const B$=({style:e})=>Ki.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var V$=G.memo(B$,H$);const W$=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},U$=(e,t)=>{U.useEffect((()=>{if(!e)return()=>{};const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}}),[e,t])},G$=()=>{},Y$=e=>e.preventDefault();const K$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u,setMeasuredCellHeight:c,maxLineCount:d}=r,{flags:p}=tq(JN,(e=>e.env)),f=tq(JN,(e=>e.hoverIndex===t)),m=tq(JN,(e=>e.setHoverIndex)),{interactions:h,styleService:g}=tq(JN,(e=>e.baseProps)),b=tq(JN,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=tq(JN,(e=>e.baseProps)),n=tq(JN,(e=>e.selectionDispatch)),r="object"==typeof e,o=tq(JN,(t=>r?SN(e,t.selectionState):L_.Inactive)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=Cj(Y$,e,n,G$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),w=((e,t,n,r)=>{const o=U.useRef(null),i=n&&!(null!=n&&n.isNumeric);U.useLayoutEffect((()=>{o.current&&i&&r(o.current.getBoundingClientRect().height,e,t)}),[r,o,e,t,i]);const a=U.useCallback((n=>{const o=W$(n);o&&i&&r(o,e,t)}),[t,r,e,i]);return U$(o.current,a),o})(t,e,v,c);let C={borderColor:g.grid.border,...g.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(C={borderColor:g.grid.border,...g.dimension.values}),null!=v&&v.isNull&&(C={...C,...g.nullValues}),"object"==typeof v){var R;!p.isEnabled("CLIENT_IM_6696_INDICATORS")||l[e].isDim||v.isNull||(v.representation.indicatorConditionalColoring=r.columns[e].conditionalColoring);const o=((e,t,n,r,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?zN(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return r===L_.Selected?{...a,...i.selectedColors}:r===L_.Disabled?{...a,color:n?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${lN}, ${n?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:n?{...a,...i.grid.hoverColors}:a;var l,s})(v,l[e],s&&f,E,C,g),i={rowindex:t,columnindex:e};return Ki.jsx("div",{className:`sn-table-cell ${E} ${Ek}`,style:{...n,...o,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:v.isLastColumn&&!b?"0px":"1px",borderStyle:"solid",justifyContent:v.representation.type===aP.Image&&"fitHeight"===v.representation.imageSize?null===(R=v.representation)||void 0===R||null===(R=R.resolvedImagePosition)||void 0===R?void 0:R.horizontal:v.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:s?()=>m(t):void 0,onMouseLeave:s?()=>m(-1):void 0,title:h.passive?v.representation.text:void 0,...i,children:Ki.jsx(xj,{forwardRef:v.isNumeric?void 0:w,cell:v,style:o,maxImageHeight:u,virtualizedCell:!0,maxLineCount:v.isNumeric?1:d})})}return Ki.jsx(V$,{style:{...n,...C,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var X$=G.memo(K$,H$);const J$=e=>{const t=U.useRef(e);return t.current=e,t},Q$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,Z$=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},eH=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},tH=(e,t,n,r,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,n,r,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v}=i[o],y=nI(e);f[o]=null!==(n=f[o])&&void 0!==n?n:{id:ZP(),...e,align:uL(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:y,isNull:nL(e,u),representation:tL(e,v,b,l)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},nH=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=tq(JN,(e=>e.env)),p=U.useRef([]),f=U.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return tH(t,o,r,s,e,d,c),p.current=r,r}),[i,o,s,e,d,c]),[m,h]=U.useState((()=>f(null!=r?r:[])));mk((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=U.useRef(new Set),r=U.useRef(new Set),o=U.useRef(new Set),i=J$(e),a=J$(t),l=U.useMemo((()=>({enqueue:e=>{const t=Q$(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(Q$(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=U.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(eH(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[p,g]),v=U.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(Z$(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[p,g,o]);return U.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-r,p=Math.min(100,c,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,n]),{rowsInPage:m,loadRows:v,loadColumns:b}},rH=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},oH=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,iH=({isSnapshot:e,isStaticNbrOfLines:t,maxLineCount:n,setCellHeight:r})=>{const o=tq(JN,(e=>e.baseProps.styleService)),i=tq(JN,(e=>e.columnWidths)),{estimateLineCount:a}=dk(o.dimension.values),l=jN(o.dimension.values.fontSize),s=e||t||1===n;return U.useCallback(((e,t,o)=>{if(s||e.representation.type===aP.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));r(d*l,t,o)}),[s,i,a,n,l,r])},aH=({isStaticNbrOfLines:e,minRowHeight:t,state:n,rowCount:r,staticRowHeight:o,viewService:i})=>U.useMemo((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:r*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const n=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(n),totalRowHeight:t}})(n.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(r*t,l)}),[e,t,r,n,o,i]),lH=({rowCount:e,isSnapshot:t,viewService:n,gridRef:r,pageInfo:o})=>{const{flags:i}=tq(JN,(e=>e.env)),{styleService:a}=tq(JN,(e=>e.baseProps)),[l,s]=U.useState({rowHeights:new Map,cellHeightsInGrid:new Map}),{maxNbrLines:u,isStaticNbrOfLines:c}=Ej({viewService:n,styleService:a,isImagesEnabled:i.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),d=a.contentLineHeight,p=a.contentMinRowHeight,f=Math.max(8e6/e,p)-9,m=f+9,h=Math.max(1,Math.min(u,Math.round(f/d))),g=wj({maxNbrLines:h,isStaticNbrOfLines:c,lineHeight:d}),b=c?h*d:d;(({gridRef:e,setState:t,pageInfo:n})=>{const{layout:r}=tq(JN,(e=>e.baseProps)),o=tq(JN,(e=>e.columnWidths));mk((()=>{var n;null===(n=e.current)||void 0===n||n.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page]),mk((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:r,setState:s,pageInfo:o});const v=(({setState:e,maxCellHeight:t,minRowHeight:n,gridRef:r})=>U.useCallback(((o,i,a)=>{U.startTransition((()=>{e((e=>{var l,s;const u=Math.max(n,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!oH(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,rH(d)),null===(s=r.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,n,t,r]))({maxCellHeight:m,minRowHeight:p,setState:s,gridRef:r}),y=(({isSnapshot:e,isStaticNbrOfLines:t,maxLineCount:n,setCellHeight:r})=>U.useCallback(((o,i,a)=>{e||t||1===n||r(o,i,a)}),[e,t,n,r]))({isSnapshot:t,isStaticNbrOfLines:c,maxLineCount:h,setCellHeight:v});return{setMeasuredCellHeight:y,setEstimatedCellHeight:iH({isSnapshot:t,isStaticNbrOfLines:c,maxLineCount:h,setCellHeight:v}),getRowHeight:U.useCallback((e=>{var t;return c?g:null!==(t=l.rowHeights.get(e))&&void 0!==t?t:p}),[c,p,l.rowHeights,g]),totalRowHeight:aH({isStaticNbrOfLines:c,minRowHeight:p,state:l,staticRowHeight:g,rowCount:e,viewService:n}),maxLineCount:h,maxImageHeight:b}};var sH;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(sH||(sH={}));const uH=({layout:e,loadRows:t,loadColumns:n,rowCount:r,pageInfo:o,gridState:i,viewService:a})=>U.useCallback((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o=sH.None,i=sH.None;return o=r>t?sH.Down:r<t?sH.Up:sH.None,i=n>e?sH.Right:n<e?sH.Left:sH.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>r)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===sH.Down){const e=x+25;t(b,v,y,u+e>r?r-u:e)}else if(h===sH.Up){const e=x+25,n=o.page*o.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(g===sH.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(g===sH.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[i,r,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,n]),cH={enabled:!1},dH=()=>{},pH={current:null};const fH=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=U.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},mH=({columnIndex:e,data:t,rowIndex:n})=>{var r,o;const i=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${n}-${e}`},hH={overflow:"hidden",willChange:"auto"},gH=U.forwardRef(((e,t)=>{var n;const{rect:r,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=tq(JN,(e=>e.baseProps)),p=tq(JN,(e=>e.columnWidths)),f=tq(JN,(e=>e.initialDataPages)),m=U.useRef(null),h=U.useRef(null),g=U.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=U.useRef(0),v=!(null===(n=_N(l))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=fH(l,i,r,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:w,getRowHeight:C,maxLineCount:R,maxImageHeight:k,totalRowHeight:A}=lH({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:P,loadRows:I,loadColumns:L}=nH({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:w}),M=uH({layout:l,loadRows:I,loadColumns:L,rowCount:y,pageInfo:i,gridState:g,viewService:c}),D=U.useMemo((()=>({rowsInPage:P,columns:o,isHoverEnabled:v,maxLineCount:R,maxImageHeight:k,setMeasuredCellHeight:E})),[P,o,v,R,k,E]),_=((e,t,n)=>Math.min(e.height-t,n))(r,a,A);return U.useLayoutEffect((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=tq(JN,(e=>e.baseProps)),n=tq(JN,(e=>e.selectionDispatch));U.useEffect((()=>{n({type:M_.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),Sj({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:dH,keyboard:cH,tableWrapperRef:pH})}(P),U.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=h.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:_)-_,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,_,y]),Ki.jsx(L$,{"data-key":"body",ref:m,innerRef:h,style:hH,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:_,rowCount:y,rowHeight:C,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:D,onItemsRendered:M,itemKey:mH,className:"sn-table-body",children:X$})}));var bH=U.memo(gH);const vH=({width:e,height:t,children:n})=>Ki.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),yH=(e,t)=>{const n=U.useRef(null),r=tq(JN,(e=>e.columnWidths));U.useLayoutEffect((()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)}),[t,n,e,r.length]);const o=U.useCallback((n=>{const r=W$(n);r&&t(r+9,e)}),[e,t]);return U$(n.current,o),n},xH=f_("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:n,applicableStyle:r})=>({...r,background:n,"&&:hover":{background:e.active?t:void 0}}))),SH=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=n,{interactions:l,styleService:s}=tq(JN,(e=>e.baseProps)),u=tq(JN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=tq(JN,(e=>e.showRightBorder)),d=tq(JN,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=Zj({isInteractionEnabled:p,columnsData:r}),b=yH(e,a),v=r[e],y=r.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Ki.jsxs(xH,{className:`sn-table-cell ${Ek}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...Mj(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Ki.jsx(Qj,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Ki.jsx(Nj,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},EH=e=>{const[t,n]=U.useState(new Map);mk((()=>{n(new Map)}),[e.length]);const r=U.useCallback(((e,t)=>{n((n=>oH(n.get(t),e)?new Map(n).set(t,e):n))}),[]);return{rowHeight:U.useMemo((()=>rH(t)),[t]),setMeasuredCellHeight:r}},wH=(e,t,n)=>{U.useImperativeHandle(e,(()=>({scrollTo:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.scrollTo(e)},element:n.current})),[t,n])},CH=(e,t,n,r,o)=>{mk((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,n,e,r,o])},RH={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},kH=U.forwardRef(((e,t)=>{const{rect:n,columns:r,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=U.useRef(null),s=U.useRef(null),{layout:u,theme:c,styleService:d}=tq(JN,(e=>e.baseProps)),p=tq(JN,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=EH(r);return wH(t,l,s),CH(l,u,o,p,c),Ki.jsx(z$,{ref:l,outerRef:s,layout:"horizontal",style:RH,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:n.width,itemData:{columns:r,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:SH})}));var AH=U.memo(kH);const PH=G.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=tq(JN,(e=>e.baseProps));return Ki.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),IH=({children:e,rect:t})=>Ki.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),LH=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i}=n,{layout:a,interactions:l,styleService:s}=tq(JN,(e=>e.baseProps)),u=tq(JN,(e=>e.showRightBorder)),c=yH(e,i),d=r[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=r[e],m=a.qHyperCube.qSize.qcx-1===e;return Ki.jsx("div",{className:`sn-table-cell ${Ek}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...Mj(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Ki.jsx(vF,{forwardRef:c,wordBreak:!f,lines:3,virtualizedCell:!0,children:d})})},MH=U.forwardRef(((e,t)=>{const{rect:n,pageInfo:r,totals:o,columns:i}=e,a=U.useRef(null),l=U.useRef(null),{layout:s,theme:u,styleService:c}=tq(JN,(e=>e.baseProps)),d=tq(JN,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=EH(i);return wH(t,a,l),CH(a,s,r,d,u),Ki.jsx(z$,{ref:a,outerRef:l,layout:"horizontal",style:RH,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:n.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:LH})}));var DH=U.memo(MH);const _H=e=>{var t,n,r;const[o,i]=U.useState(null!==(t=null===(n=e.current)||void 0===n||null===(n=n.element)||void 0===n?void 0:n.clientHeight)&&void 0!==t?t:0);U.useLayoutEffect((()=>{var t;null!==(t=e.current)&&void 0!==t&&t.element&&i(e.current.element.clientHeight)}),[e]);const a=U.useCallback((e=>{const t=W$(e);t&&i(t)}),[]);return U$(null===(r=e.current)||void 0===r?void 0:r.element,a),o},OH=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=tq(JN,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=tq(JN,(e=>e.baseProps)),c=tq(JN,(e=>e.columnWidths)),d=tq(JN,(e=>e.setYScrollbarWidth)),p=U.useRef(null),f=U.useRef(null),m=U.useRef(null),h=U.useRef(null),{xScrollbarWidth:g,yScrollbarWidth:b}=dF(p),v=U.useRef([]),y=U.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),x=U.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=fH(a,n,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:n})=>{const r=_H(e),o=_H(t);return n.atTop||n.atBottom?r+o:r})({totalsPosition:r,headerRef:f,totalsRef:m}),{width:w,height:C}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:n,stickyContainerRect:r,columnWidths:o})=>{const{styleService:i}=tq(JN,(e=>e.baseProps)),a=_H(e)+t,l=n*i.contentMinRowHeight+t;let s=l;return l<r.height&&a>r.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),R=((e,t,n,r)=>U.useCallback((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)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.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)}),[r,n,e,t]))(f,m,h,u),k=U.useCallback((()=>{p.current&&(p.current.scrollTop=0)}),[p]);U.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),U.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,S,l]),Jz((()=>{d(b)}),[b]);const A=Ki.jsx(DH,{rect:x,pageInfo:n,columns:o,ref:m,totals:r});return Ki.jsx(PH,{ref:p,width:y.width,height:y.height,onScroll:R,children:Ki.jsx(vH,{width:w,height:C,children:Ki.jsxs(IH,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Ki.jsx(AH,{rect:x,pageInfo:n,columns:o,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v}),r.atTop?A:null,Ki.jsx(bH,{ref:h,rect:x,pageInfo:n,columns:o,headerAndTotalsHeight:E}),r.atBottom?A:null]})})})};var TH=U.memo(OH);const NH=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=tq(JN,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=tq(JN,(e=>e.tableData)),c=tq(JN,(e=>e.pageInfo)),d=tq(JN,(e=>e.setPage));return Ki.jsxs(Yz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Ki.jsx(TH,{pageInfo:c}),Ki.jsx(Gz,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var qH=U.memo(NH);var zH,FH={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"}(zH||(zH={}));const jH=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(FH).forEach((t=>{e.add(FH[t])}))}}(n),((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===zH.FIRST?(u=s,r=zH.SECOND):(u=l,r=zH.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),$H={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},HH=({app:t,model:n,rootElement:r,layout:o,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const{direction:v,footerContainer:y}=e.useOptions(),x=dL(o,g),S=pL(o,g),E=jH(r,a),w=x?{page:g.page||$H.page,rowsPerPage:g.rowsPerPage||$H.rowsPerPage,rowsPerPageOptions:$H.rowsPerPageOptions}:$H,[C,R]=e.useState(w),[k]=e.usePromise((async()=>S?async function(e,t,n,r,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=n,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 r({...n,page:0}),null;if(h*d>rL)return r({...n,rowsPerPage:oL(d,c),page:0}),null;const g=p>10,b=iL(t,o),v=cL(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=n.rowsPerPage,o.page=n.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const n=[];return v.forEach(((r,o)=>{n[o]={id:ZP(),...e[o],align:uL(e[o],r.bodyTextAlign),rowIdx:t+m,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===h-1,isNumeric:nI(e[o]),isNull:nL(e[o],r.isDim),representation:tL(e[o],r.representation,r.qAttrExprInfoIndex,i)}})),n})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,o,C,R,g,b):null),[o,C,n,i,S]);e.useEffect((()=>{!!(S&&f&&n&&(o.snapshotData||t)&&o&&k&&u&&s&&l&&h&&p)&&function(e,t){const{app:n,model:r,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=nq(o);null==t||t.render(Ki.jsx(Qn,{stylisPlugins:"rtl"===o?[aO]:void 0,children:Ki.jsx(h_,{theme:x,children:Ki.jsx(eq,{app:n,model:r,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:Ki.jsx(o$,{...y,direction:o})})})}))}({app:t,model:n,rootElement:r,layout:o,tableData:k,direction:v,pageInfo:C,setPageInfo:R,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,footerContainer:y,announce:E,embed:p,applyColumnWidths:m,viewService:g,env:b},f)}),[t,n,f,k,i,v,s,c.active,E,u,m,S,o,l,p,r,C,R,a,d,y,h,b])};const BH=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(mN,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},VH=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const v=!pL(n,g),y=e.useMemo((()=>function(e,t,n){const r=iL(e,n),o=cL(e),i=e.qHyperCube.qSize.qcy,a=Math.min(mN,i),l=i>mN&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:x,setPage:S}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min(mN,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/mN);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=BH({model:r,layout:n,page:x.page,shouldRender:v});e.useEffect((()=>{var e;v&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{v&&r&&c&&E&&!w&&h&&function(e,t){const{app:n,selectionsAPI:r,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:x}=e,S=nq("ltr");t.render(Ki.jsx(G.StrictMode,{children:Ki.jsx(h_,{theme:S,children:Ki.jsx(eq,{app:n,selectionsAPI:r,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:x,children:Ki.jsx(qH,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:y,applyColumnWidths:m,setPage:S,pageInfo:x,initialDataPages:E,viewService:g,env:b},f)}),[t,n,r,o,i,a.active,l,s,u,c,v,d,p,f,y,m,S,x,w,E,h,b])},WH={version:JSON.stringify("3.10.4"),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 UH(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.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:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const GH=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},YH=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const KH=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||$H.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},XH=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=iL(e,t);if(pL(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=UH(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:KH(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=GH(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(YH(m,h,g)?d:d+1)+c;let v=p+c;const y=GH(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(YH(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:KH(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},JH=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),QH=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:WH},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:JA,exportProperties:KA,exploration:QA},ext:VP(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>pk(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n: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}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=sk(i,r,JH,QH),v=((t,n)=>e.useMemo((()=>((e,t)=>{if(t)return async(n,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=n,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=r!==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)}})(t.qDimensionInfo.length,n)),[t.qDimensionInfo.length,n]))(i.qHyperCube,l),y=WP(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=TN(n,t,!1),{fontSize:i,fontFamily:a}=NN(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Ek}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Mk(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=XH(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>XH(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),VH({app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:v,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t}),HH({app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:v,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t})}}}}));
212
+ `),_O.rippleVisible,jO,550,(({theme:e})=>e.transitions.easing.easeInOut),_O.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_O.child,_O.childLeaving,$O,550,(({theme:e})=>e.transitions.easing.easeInOut),_O.childPulsate,HO,(({theme:e})=>e.transitions.easing.easeInOut)),WO=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=kr(n,OO),[l,s]=U.useState([]),u=U.useRef(0),c=U.useRef(null);U.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=U.useRef(!1),p=mo(),f=U.useRef(null),m=U.useRef(null),h=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Ki.jsx(VO,{classes:{ripple:Oo(o.ripple,_O.ripple),rippleVisible:Oo(o.rippleVisible,_O.rippleVisible),ripplePulsate:Oo(o.ripplePulsate,_O.ripplePulsate),child:Oo(o.child,_O.child),childLeaving:Oo(o.childLeaving,_O.childLeaving),childPulsate:Oo(o.childPulsate,_O.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=U.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||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:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-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:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h,p]),b=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=U.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 U.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ki.jsx(BO,Rr({className:Oo(_O.root,o.root,i),ref:m},a,{children:Ki.jsx(dy,{component:null,exit:!0,children:l})}))}));var UO=WO;function GO(e){return Io("MuiButtonBase",e)}var YO=Lo("MuiButtonBase",["root","disabled","focusVisible"]);const KO=["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"],XO=f_("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"},[`&.${YO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),JO=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiButtonBase"}),{action:r,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:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:I,type:L}=n,M=kr(n,KO),D=U.useRef(null),_=U.useRef(null),O=uo(_,I),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:z}=wo(),[F,j]=U.useState(!1);s&&F&&j(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[$,H]=U.useState(!1);U.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function V(e,t,n=c){return so((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}U.useEffect((()=>{F&&d&&!u&&$&&_.current.pulsate()}),[u,d,F,$]);const W=V("start",S),G=V("stop",h),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",k),Q=V("stop",C),Z=V("stop",R),ee=V("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),te=so((e=>{D.current||(D.current=e.currentTarget),N(e),!0===T.current&&(j(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=so((e=>{d&&!re.current&&F&&_.current&&" "===e.key&&(re.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=so((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(re.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(M.href||M.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===L?"button":L,le.disabled=s):(M.href||M.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=uo(t,z,D),ue=Rr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ro({root:["root",t&&"disabled",n&&"focusVisible"]},GO,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return Ki.jsxs(XO,Rr({as:ae,className:Oo(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Q,onTouchMove:Z,onTouchStart:J,ref:se,tabIndex:s?-1:A,type:L},le,M,{children:[i,B?Ki.jsx(UO,Rr({ref:O,center:o},P)):null]}))}));var QO=JO;var ZO=Lo("MuiBox",["root"]);const eT=TD(),tT=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Er("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fM),a=U.forwardRef((function(e,a){const l=function(e=yM){return vM(e)}(n),s=SM(e),{className:u,component:c="div"}=s,d=kr(s,wM);return Ki.jsx(i,Rr({as:c,ref:a,className:Oo(u,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:fL,defaultTheme:eT,defaultClassName:ZO.root,generateClassName:Ao.generate});var nT=tT;var rT=Lo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var oT=U.createContext({});function iT(e){return Io("MuiListItemIcon",e)}var aT=Lo("MuiListItemIcon",["root","alignItemsFlexStart"]);const lT=["className"],sT=f_("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Rr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var uT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kr(n,lT),i=Rr({},n,{alignItems:U.useContext(oT).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ro({root:["root","flex-start"===t&&"alignItemsFlexStart"]},iT,n)})(i);return Ki.jsx(sT,Rr({className:Oo(a.root,r),ownerState:i,ref:t},o))}));var cT=Lo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function dT(e){return Io("MuiMenuItem",e)}var pT=Lo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const fT=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],mT=f_(QO,{shouldForwardProp:e=>p_(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Rr({},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"}},[`&.${pT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${pT.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:WM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${pT.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:WM(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})`:WM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${pT.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${pT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rT.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rT.inset}`]:{marginLeft:52},[`& .${cT.root}`]:{marginTop:0,marginBottom:0},[`& .${cT.inset}`]:{paddingLeft:36},[`& .${aT.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${aT.root} svg`]:{fontSize:"1.25rem"}}))));var hT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=kr(n,fT),f=U.useContext(oT),m=U.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=U.useRef(null);lo((()=>{r&&h.current&&h.current.focus()}),[r]);const g=Rr({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Rr({},a,Ro({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},dT,a))})(n),v=uo(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Ki.jsx(oT.Provider,{value:m,children:Ki.jsx(mT,Rr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Oo(b.focusVisible,s),className:Oo(b.root,d)},p,{ownerState:g,classes:b}))})}));var gT=U.createContext();function bT(e){return Io("MuiTable",e)}Lo("MuiTable",["root","stickyHeader"]);const vT=["className","component","padding","size","stickyHeader"],yT=f_("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Rr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),xT="table",ST=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTable"}),{className:r,component:o=xT,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=kr(n,vT),u=Rr({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return Ro({root:["root",n&&"stickyHeader"]},bT,t)})(u),d=U.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ki.jsx(gT.Provider,{value:d,children:Ki.jsx(yT,Rr({as:o,role:o===xT?null:"table",ref:t,className:Oo(c.root,r),ownerState:u},s))})}));var ET=ST;var wT=U.createContext();function CT(e){return Io("MuiTableBody",e)}Lo("MuiTableBody",["root"]);const RT=["className","component"],kT=f_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),AT={variant:"body"},PT="tbody";var IT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableBody"}),{className:r,component:o=PT}=n,i=kr(n,RT),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},CT,t)})(a);return Ki.jsx(wT.Provider,{value:AT,children:Ki.jsx(kT,Rr({className:Oo(l.root,r),as:o,ref:t,role:o===PT?null:"rowgroup",ownerState:a},i))})}));function LT(e){return Io("MuiTableCell",e)}var MT=Lo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const DT=["align","className","component","padding","scope","size","sortDirection","variant"],_T=f_("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${to(n.size)}`],"normal"!==n.padding&&t[`padding${to(n.padding)}`],"inherit"!==n.align&&t[`align${to(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rr({},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?YM(WM(e.palette.divider,1),.88):UM(WM(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",[`&.${MT.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}))),OT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=kr(n,DT),p=U.useContext(gT),f=U.useContext(wT),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=Rr({},n,{align:r,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}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e;return Ro({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${to(r)}`,"normal"!==o&&`padding${to(o)}`,`size${to(i)}`]},LT,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Ki.jsx(_T,Rr({as:h,ref:t,className:Oo(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var TT=OT;function NT(e){return Io("MuiTableContainer",e)}Lo("MuiTableContainer",["root"]);const qT=["className","component"],zT=f_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var FT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=kr(n,qT),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},NT,t)})(a);return Ki.jsx(zT,Rr({ref:t,as:o,className:Oo(l.root,r),ownerState:a},i))}));function jT(e){return Io("MuiTableHead",e)}Lo("MuiTableHead",["root"]);const $T=["className","component"],HT=f_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),BT={variant:"head"},VT="thead";var WT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableHead"}),{className:r,component:o=VT}=n,i=kr(n,$T),a=Rr({},n,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},jT,t)})(a);return Ki.jsx(wT.Provider,{value:BT,children:Ki.jsx(HT,Rr({as:o,className:Oo(l.root,r),ref:t,role:o===VT?null:"rowgroup",ownerState:a},i))})}));function UT(e){return Io("MuiTableRow",e)}var GT=Lo("MuiTableRow",["root","selected","hover","head","footer"]);const YT=["className","component","hover","selected"],KT=f_("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${GT.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${GT.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:WM(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}))`:WM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),XT="tr",JT=U.forwardRef((function(e,t){const n=DO({props:e,name:"MuiTableRow"}),{className:r,component:o=XT,hover:i=!1,selected:a=!1}=n,l=kr(n,YT),s=U.useContext(wT),u=Rr({},n,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Ro({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},UT,t)})(u);return Ki.jsx(KT,Rr({as:o,ref:t,className:Oo(c.root,r),role:o===XT?null:"row",ownerState:u},l))}));var QT=JT,ZT=(e={})=>G.createElement(kO,{...e},G.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},G.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},G.createElement("rect",{stroke:uO.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const eN={MuiAccordion:{styleOverrides:{root:{backgroundColor:uO.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:uO.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:G.createElement(wO,{"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 ${uO.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,borderRadius:mO,backgroundColor:uO.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 ${uO.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:uO.WHITE,color:uO.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:mO},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:uO.GREYSCALE_0_15,backgroundColor:uO.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:uO.GREEN_PALE},"&:active":{backgroundColor:uO.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:uO.BLUE_PALE},"&:active":{backgroundColor:uO.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.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:mO,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:uO.GREYSCALE_0_15,backgroundColor:uO.GREYSCALE_100_60,"&:active":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:uO.PURPLE,"&.Mui-focusVisible":{borderColor:uO.PURPLE,boxShadow:`0 0 0 3px ${RM(uO.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:uO.GREEN,"&.Mui-focusVisible":{borderColor:uO.GREEN,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:uO.BLUE,"&.Mui-focusVisible":{borderColor:uO.BLUE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:uO.ORANGE,"&.Mui-focusVisible":{borderColor:uO.ORANGE,boxShadow:`0 0 0 3px ${RM(uO.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:uO.RED,"&.Mui-focusVisible":{borderColor:uO.RED,boxShadow:`0 0 0 3px ${RM(uO.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:uO.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:uO.PURPLE_PALE},"&:active":{backgroundColor:uO.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:uO.PURPLE_PALE,boxShadow:`0 0 0 3px ${RM(uO.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:uO.GREEN_PALE},"&:active":{backgroundColor:uO.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:uO.BLUE_PALE},"&:active":{backgroundColor:uO.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:uO.ORANGE_PALE},"&:active":{backgroundColor:uO.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:uO.ORANGE_PALE,boxShadow:`0 0 0 3px ${RM(uO.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:uO.RED_PALE},"&:active":{backgroundColor:uO.RED_DARK},"&.Mui-focusVisible":{borderColor:uO.RED_PALE,boxShadow:`0 0 0 3px ${RM(uO.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:uO.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:uO.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mO,boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:G.createElement(RO,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:cO,borderRadius:mO,color:uO.TEXT_PRIMARY,backgroundColor:uO.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:uO.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:uO.GREYSCALE_0_05,color:uO.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:uO.GREEN,borderColor:uO.GREEN},"&.MuiChip-outlinedInfo":{color:uO.BLUE,borderColor:uO.BLUE},"&.MuiChip-outlinedWarning":{color:uO.ORANGE,borderColor:uO.ORANGE},"&.MuiChip-outlinedError":{color:uO.RED,borderColor:uO.RED}},outlined:{border:`solid 1px ${uO.GREYSCALE_0_15}`,backgroundColor:uO.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mO,boxShadow:"none",backgroundColor:uO.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:uO.GREEN,borderColor:uO.GREEN},outlinedSecondary:{color:uO.BLUE,borderColor:uO.BLUE},label:{fontFamily:yO.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:G.createElement(RO,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:G.createElement(wO,{"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:mO},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mO,fontSize:dO,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:uO.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${uO.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:uO.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:uO.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:uO.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mO,border:`solid 1px ${uO.GREYSCALE_0_15}`,color:uO.GREYSCALE_0_60,marginRight:0,width:fO,height:fO},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${uO.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mO,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:uO.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:dO}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:cO,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:uO.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:uO.GREYSCALE_25,fontSize:cO,fontFamily:yO.FONT_FAMILY,fontWeight:bO,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:uO.TEXT_PRIMARY},"&.Mui-error":{color:uO.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:uO.TEXT_SECONDARY,content:"'(optional)'",fontWeight:gO,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:uO.TEXT_SECONDARY,content:"'(required)'",fontWeight:gO,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:dO,lineHeight:"16px",backgroundColor:uO.WHITE,borderRadius:mO,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.GREYSCALE_0_05}`,borderColor:uO.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.RED}`,boxShadow:`0px 0px 0px 1px ${uO.RED}, inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uO.GREYSCALE_0_10}`,borderColor:uO.GREYSCALE_0_10,backgroundColor:uO.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:uO.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:uO.GREYSCALE_0_15,borderRadius:mO,boxShadow:`inset 0 2px 0 0 ${uO.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>G.createElement(wO,{...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:uO.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:uO.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&:active":{backgroundColor:uO.GREYSCALE_0_10},"&:focus":{backgroundColor:uO.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${uO.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:uO.GREYSCALE_0_30,"&:hover":{backgroundColor:uO.GREYSCALE_0_0,borderColor:uO.GREYSCALE_0_15},"& ~svg":{color:uO.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${uO.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mO}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:uO.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:uO.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:dO,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:cO,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:cO,fontWeight:bO,color:uO.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bO}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${uO.GREYSCALE_0_15}, 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:G.createElement(IO,null),checkedIcon:G.createElement(LO,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:uO.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:uO.GREYSCALE_0_20}},"&.Mui-disabled":{fill:uO.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:G.createElement(ZT,null),checkedIcon:G.createElement(AO,null),indeterminateIcon:G.createElement(PO,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mO,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:uO.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:uO.GREYSCALE_0_55,color:uO.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:uO.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:uO.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:uO.GREYSCALE_0_55,"&:hover":{color:uO.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:uO.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:uO.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:dO,color:uO.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bO},secondary:{fontSize:cO,color:uO.GREYSCALE_45,fontWeight:gO,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:dO,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&:active":{backgroundColor:uO.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:dO,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:uO.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:cO,borderBottom:`solid 1px ${uO.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:dO,color:uO.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:uO.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:uO.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:uO.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:uO.RED}}},"&.Mui-focusVisible":{backgroundColor:uO.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:uO.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:uO.GREEN,height:"24px","&.Mui-disabled":{color:uO.GREYSCALE_0_15}},rail:{backgroundColor:uO.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${uO.GREYSCALE_0_05}`,borderRadius:mO,boxShadow:`inset 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${uO.GREYSCALE_0_05}`,borderRadius:mO},thumb:{height:"16px",width:"16px",borderRadius:mO,backgroundColor:uO.WHITE,boxShadow:`0px 1px 2px 0px ${uO.GREYSCALE_0_15}, 0px 0px 0px 1px ${uO.GREYSCALE_0_05}`,"&:hover":{borderRadius:mO,boxShadow:`0 2px 4px 0 ${uO.GREYSCALE_0_30}, 0 0 0 1px ${uO.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${uO.GREYSCALE_0_15}, 0 0 0 1px ${uO.GREYSCALE_0_06}, 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${uO.GREYSCALE_0_15}, 0 0 0 1px ${uO.GREYSCALE_0_06}, 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:uO.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:uO.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:uO.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:uO.GREYSCALE_0_15},markLabel:{color:uO.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:uO.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:uO.WHITE,color:uO.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:uO.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:uO.GREEN_PALE,boxShadow:`0 0 0 3px ${RM(uO.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:uO.BLUE_PALE,boxShadow:`0 0 0 3px ${RM(uO.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:uO.GREYSCALE_0_15,borderRadius:mO},thumb:{height:"16px",width:"16px",borderRadius:mO,backgroundColor:uO.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:dO,fontWeight:bO,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${uO.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${uO.MISC_FOCUS_BORDER}`,backgroundColor:uO.GREYSCALE_0_03,borderRadius:mO},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:uO.GREYSCALE_25,"&.Mui-selected":{color:uO.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:dO,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mO,"&:hover":{backgroundColor:`${uO.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 ${uO.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${uO.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mO,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:uO.GREYSCALE_0_05},"&:hover":{backgroundColor:`${uO.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${uO.GREYSCALE_85}`,borderRight:`1px solid ${uO.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bO,backgroundColor:uO.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:uO.GREYSCALE_98,borderBottom:`1px solid ${uO.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${uO.GREYSCALE_85}`,borderTop:`1px solid ${uO.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:uO.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:uO.GREYSCALE_0_05,"&:hover":{backgroundColor:uO.GREYSCALE_0_03}},"&&:hover":{backgroundColor:uO.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>G.createElement(MO,{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 ${uO.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:dO,borderRadius:mO,padding:"7px 16px",border:`1px solid ${uO.GREYSCALE_0_15}`,backgroundColor:uO.GREYSCALE_100_60,color:uO.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:uO.GREYSCALE_0_10,border:`1px solid ${uO.GREYSCALE_0_30}`},"&:hover":{backgroundColor:uO.GREYSCALE_0_03,border:`1px solid ${uO.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:uO.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${uO.MISC_FOCUS_BORDER}`,border:`1px solid ${uO.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:uO.GREYSCALE_25,backgroundColor:uO.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:uO.GREYSCALE_0_10,border:`1px solid ${uO.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:cO,height:24,width:24,padding:7},sizeLarge:{fontSize:pO,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:dO,borderRadius:mO}}},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:uO.GREYSCALE_20},tooltip:{backgroundColor:uO.GREYSCALE_20,fontSize:cO,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var tN=e=>eN;const nN={mode:"light",primary:{ultraLight:uO.GREEN_ULTRA_LIGHT,light:uO.GREEN_PALE,main:uO.GREEN,dark:uO.GREEN_DARK,extraDark:uO.GREEN_EXTRA_DARK,contrastText:uO.WHITE},secondary:{ultraLight:uO.BLUE_ULTRA_LIGHT,light:uO.BLUE_PALE,main:uO.BLUE,dark:uO.BLUE_DARK,extraDark:uO.BLUE_EXTRA_DARK,contrastText:uO.WHITE},error:{ultraLight:uO.RED_ULTRA_LIGHT,light:uO.RED_PALE,main:uO.RED,dark:uO.RED_DARK,extraDark:uO.RED_EXTRA_DARK,contrastText:uO.WHITE},warning:{ultraLight:uO.ORANGE_ULTRA_LIGHT,light:uO.ORANGE_PALE,main:uO.ORANGE,dark:uO.ORANGE_DARK,extraDark:uO.ORANGE_EXTRA_DARK,contrastText:uO.WHITE},success:{ultraLight:uO.GREEN_ULTRA_LIGHT,light:uO.GREEN_PALE,main:uO.GREEN,dark:uO.GREEN_DARK,extraDark:uO.GREEN_EXTRA_DARK,contrastText:uO.WHITE},info:{ultraLight:uO.BLUE_ULTRA_LIGHT,light:uO.BLUE_PALE,main:uO.BLUE,dark:uO.BLUE_DARK,extraDark:uO.BLUE_EXTRA_DARK,contrastText:uO.WHITE},text:{primary:uO.TEXT_PRIMARY,secondary:uO.TEXT_SECONDARY,disabled:uO.GREYSCALE_0_30},action:{hover:uO.GREYSCALE_0_03,hoverOpacity:.03,selected:uO.GREYSCALE_0_05,selectedOpacity:.05,focus:uO.MISC_FOCUS_BORDER},amethyst:{ultraLight:uO.WHITE,main:uO.PURPLE,light:uO.PURPLE_PALE,dark:uO.PURPLE_DARK,extraDark:uO.GREYSCALE_0_0,contrastText:uO.WHITE},background:{paper:uO.WHITE,default:uO.GREYSCALE_95},divider:uO.GREYSCALE_0_15},rN=e=>({components:tN(),palette:nN,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:dO,fontWeightLight:hO,fontWeightRegular:gO,fontWeightMedium:bO,fontWeightBold:vO,htmlFontSize:dO,fontFamily:yO.FONT_FAMILY,button:{fontWeight:bO,fontSize:dO,textTransform:"none"},body1:{fontSize:pO,lineHeight:"24px"},body2:{fontSize:dO,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fO,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:pO,fontWeight:bO,lineHeight:"16px"},h6:{fontSize:dO,fontWeight:bO,lineHeight:"16px"},caption:{color:uO.TEXT_SECONDARY},subtitle1:{fontSize:dO,color:uO.TEXT_SECONDARY},subtitle2:{fontSize:cO,color:uO.TEXT_SECONDARY}},shape:{borderRadius:mO}}),oN={...sO,MISC_FOCUS_BORDER:uO.MISC_FOCUS_BORDER},iN=(e="light")=>rN(),aN=iN().palette,lN=(aN.primary.light,L_.Selected,"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)"),sN=4/3,uN="12px",cN="600",dN="Source Sans Pro, sans-serif",pN={height:"auto",fontSize:uN,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"}},fN={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:cN},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mN=25e4,hN=(e,t,n)=>{if(null==e||!e.length)return[];const r=[],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=()=>{r[a]=Math.min(Rk.PixelsMax,Math.max(Rk.PixelsMin,m)),i-=r[a]};switch(s){case kk.Pixels:m=u||Rk.PixelsDefault,h();break;case kk.Percentage:m=(c||Rk.PercentageDefault)/100*t,h();break;case kk.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===aP.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case kk.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=>{r[t]=Math.max(Rk.AutoMinTable,e)}))}return r},gN=e=>e.ctrlKey||e.metaKey,bN=e=>e.shiftKey&&gN(e),vN=e=>[D_.LEFT,D_.RIGHT,D_.UP,D_.DOWN].includes(e),yN=e=>vN(e)||[D_.HOME,D_.END,D_.PAGE_UP,D_.PAGE_DOWN].includes(e),xN=e=>e.shiftKey&&vN(e.key),SN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=L_.Inactive;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?L_.Disabled:void 0!==r[e.qElemNumber]?L_.Selected:L_.Possible),i},EN=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},wN=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),EN(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},CN=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&xN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&xN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===D_.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),EN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},RN=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},kN=(e,t)=>{var n;switch(t.type){case M_.SELECT:return wN(e,t.payload);case M_.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case M_.SELECT_MOUSE_UP:return((e,t)=>RN(e.isSelectMultiValues||e.firstCell!==t.cell?e:wN(e,t)))(e,t.payload);case M_.SELECT_MULTI_ADD:return CN(e,t.payload);case M_.SELECT_MULTI_END:return RN(e);case M_.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case M_.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case M_.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},AN=4/3,PN=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function IN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const LN=e=>JR(e)?Sw.WHITE:Sw.TEXT,MN=(e,t)=>e?{borderBottomColor:Sw.DARK_MODE_BORDER,borderRightColor:Sw.DARK_MODE_BORDER,borderLeftColor:Sw.DARK_MODE_BORDER,borderTopColor:Sw.DARK_MODE_BORDER}:{borderLeftColor:Sw.BORDER_MEDIUM,borderRightColor:Sw.BORDER_MEDIUM,borderTopColor:Sw.BORDER_HEAVY,borderBottomColor:t?Sw.BORDER_HEAVY:Sw.BORDER_LIGHT},DN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*AN+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},_N=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},ON=(e,t,n,r=!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:PN(null==n?void 0:n.fontColor)?IN(Sw.TEXT,t,null==n?void 0:n.fontColor):i||Sw.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...MN(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function TN(e,t,n){var r,o,i;const a=null===(r=_N(e))||void 0===r?void 0:r.header,l=ON("header",t,a,n);return l.background=(e=>{if(void 0===e)return;const t=ek(e);return t.opacity=1,t.toString()})(t.background.headerColor),l.hoverBackground=xC(null!==(o=l.background)&&void 0!==o?o:Sw.WHITE,Ak),l.activeBackground=xC(null!==(i=l.background)&&void 0!==i?i:Sw.WHITE,Pk),l}function NN(e,t,n,r){var o;const i=null===(o=_N(e))||void 0===o?void 0:o.content,a=ON("content",t,i);a.background=t.background.color;const l=DN(null==a?void 0:a.fontSize,n,r),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=PN(u)||!!d,f=PN(s)||!!c,m=p||f;let h;h=PN(s)?IN(Sw.HOVER,t,s):c||(p?"":Sw.HOVER);const g=m?IN(LN(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const qN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in fN&&Object.assign(t,fN[e]))),t};function zN(e,t,n){var r;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText,a=r&&tk(r);a&&"none"!==a&&(o[n[t]]=a),i=r?qN(r,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=LN(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const FN=e=>parseInt(e||uN,10),jN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},$N=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=jN(e,null==t?void 0:t.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},HN=(e,t,n,r)=>{var o,i;const{backgroundColor:a,backgroundFromStyling:l,sheetColorFromCSS:s}=$N(t,n,r);return null!==(o=null!==(i=ik(l,a,s))&&void 0!==i?i:e)&&void 0!==o?o:Sw.WHITE},BN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uN}},VN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",WN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?cN:"normal",UN=e=>parseInt(null!=e?e:pN.fontSize,10)*sN,GN=e=>{const t=Math.max(UN(e.header.fontSize)+8,32),n=Math.max(UN(e.totalRow.fontSize)+8+1,24),r=Math.max(UN(e.dimension.values.fontSize),UN(e.measure.values.fontSize));return{headerMinRowHeight:t,totalRowMinHeight:n,contentLineHeight:r,contentMinRowHeight:Math.max(r+8+1,24)}},YN=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",KN=(e,t,n,r)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,P,I,L,M,D,_,O,T,N,q,z,F,j,$,H,B,V,W,U,G,Y,K,X,J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ue;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n,r)=>{var o,i,a;const l={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:cN,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:cN,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(o=_N(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,border:n.background.isDark?Sw.DARK_MODE_BORDER:Sw.BORDER_MEDIUM,divider:Sw.BORDER_HEAVY,hoverColors:{color:null===(i=t.body.hoverColors)||void 0===i?void 0:i.color,background:null===(a=t.body.hoverColors)||void 0===a?void 0:a.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:XR({desiredColor:t.body.color,theme:n,flags:r.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0},{headerMinRowHeight:s,totalRowMinHeight:u,contentLineHeight:c,contentMinRowHeight:d}=GN(l);return l.headerMinRowHeight=s,l.totalRowMinHeight=u,l.contentLineHeight=c,l.contentMinRowHeight=d,l})(t,n,r,e);const{header:ce,dimensionValues:de,measureValues:pe,totalValues:fe,nullValues:me,grid:he,content:ge}=null!==(o=_N(t))&&void 0!==o?o:{},be=HN(n.head.background,r,ce,"object.straightTableV2.dimension.label.name.backgroundColor"),ve=null!==(i=null!==(a=null!==(l=null!==(s=jN(r,null==de?void 0:de.fontColor))&&void 0!==s?s:jN(r,null==ge?void 0:ge.fontColor))&&void 0!==l?l:r.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==a?a:n.body.color)&&void 0!==i?i:Sw.TEXT,ye={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==ce?void 0:ce.fontFamily)&&void 0!==d?d:r.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:n.head.fontFamily)&&void 0!==u?u:dN,fontSize:BN(null!==(p=null!==(f=null==ce?void 0:ce.fontSize)&&void 0!==f?f:r.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:n.head.fontSize),fontStyle:VN(null==ce?void 0:ce.fontStyle),fontWeight:WN(null==ce?void 0:ce.fontStyle,cN),textDecoration:YN(null==ce?void 0:ce.fontStyle),color:null!==(m=null!==(h=null!==(g=jN(r,null==ce?void 0:ce.fontColor))&&void 0!==g?g:r.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:n.head.color)&&void 0!==m?m:Sw.TEXT,background:be},headerMenuHoverBackground:xC(be,Ak),headerMenuActiveBackground:xC(be,Pk),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==de?void 0:de.fontFamily)&&void 0!==y?y:r.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:n.body.fontFamily)&&void 0!==b?b:dN,fontSize:BN(null!==(x=null!==(S=null!==(E=null==de?void 0:de.fontSize)&&void 0!==E?E:null==ge?void 0:ge.fontSize)&&void 0!==S?S:r.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:n.body.fontSize),fontStyle:VN(null==de?void 0:de.fontStyle),fontWeight:WN(null==de?void 0:de.fontStyle,"normal"),textDecoration:YN(null==de?void 0:de.fontStyle),color:ve,background:null!==(w=null!==(C=$N(r,de,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==C?C:n.body.background)&&void 0!==w?w:Sw.TRANSPARENT}},measure:{values:{fontFamily:null!==(R=null!==(k=null!==(A=null==pe?void 0:pe.fontFamily)&&void 0!==A?A:r.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==k?k:n.body.fontFamily)&&void 0!==R?R:dN,fontSize:BN(null!==(P=null!==(I=null!==(L=null==pe?void 0:pe.fontSize)&&void 0!==L?L:null==ge?void 0:ge.fontSize)&&void 0!==I?I:r.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==P?P:n.body.fontSize),fontStyle:VN(null==pe?void 0:pe.fontStyle),fontWeight:WN(null==pe?void 0:pe.fontStyle,"normal"),textDecoration:YN(null==pe?void 0:pe.fontStyle),color:null!==(M=null!==(D=null!==(_=null!==(O=jN(r,null==pe?void 0:pe.fontColor))&&void 0!==O?O:jN(r,null==ge?void 0:ge.fontColor))&&void 0!==_?_:r.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==D?D:n.body.color)&&void 0!==M?M:Sw.TEXT,background:null!==(T=null!==(N=$N(r,pe,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==N?N:n.body.background)&&void 0!==T?T:Sw.TRANSPARENT}},totalRow:{fontFamily:null!==(q=null!==(z=null!==(F=null==fe?void 0:fe.fontFamily)&&void 0!==F?F:r.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==z?z:n.totals.fontFamily)&&void 0!==q?q:dN,fontSize:BN(null!==(j=null!==($=null!==(H=null==fe?void 0:fe.fontSize)&&void 0!==H?H:null==ge?void 0:ge.fontSize)&&void 0!==$?$:r.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==j?j:n.totals.fontSize),fontStyle:VN(null==fe?void 0:fe.fontStyle),fontWeight:WN(null==fe?void 0:fe.fontStyle,cN),textDecoration:YN(null==fe?void 0:fe.fontStyle),color:null!==(B=null!==(V=null!==(W=null!==(U=jN(r,null==fe?void 0:fe.fontColor))&&void 0!==U?U:jN(r,null==ge?void 0:ge.fontColor))&&void 0!==W?W:r.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==V?V:n.totals.color)&&void 0!==B?B:Sw.TEXT,background:HN(n.totals.background,r,fe,"object.straightTableV2.total.label.value.backgroundColor")},nullValues:{fontStyle:VN(null==me?void 0:me.fontStyle),fontWeight:WN(null==me?void 0:me.fontStyle,"normal"),textDecoration:YN(null==me?void 0:me.fontStyle),color:null!==(G=null!==(Y=null!==(K=null!==(X=jN(r,null==me?void 0:me.fontColor))&&void 0!==X?X:jN(r,null==ge?void 0:ge.fontColor))&&void 0!==K?K:r.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Y?Y:n.body.color)&&void 0!==G?G:Sw.TEXT,background:null!==(J=null!==(Q=jN(r,null==me?void 0:me.background))&&void 0!==Q?Q:r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==J?J:Sw.NULL_VALUE_BACKGROUND},grid:{lineClamp:null!==(Z=null==ge?void 0:ge.rowHeight)&&void 0!==Z?Z:r.getStyle("object.straightTableV2","grid","lineClamp"),border:null!==(ee=null!==(te=jN(r,null==he?void 0:he.border))&&void 0!==te?te:r.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ee?ee:r.background.isDark?Sw.DARK_MODE_BORDER:Sw.BORDER_MEDIUM,divider:null!==(ne=null!==(re=jN(r,null==he?void 0:he.divider))&&void 0!==re?re:r.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==ne?ne:Sw.BORDER_HEAVY,hoverColors:{color:null!==(oe=null!==(ie=jN(r,null==ge?void 0:ge.hoverFontColor))&&void 0!==ie?ie:r.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==oe?oe:null===(ae=n.body.hoverColors)||void 0===ae?void 0:ae.color,background:null!==(le=null!==(se=jN(r,null==ge?void 0:ge.hoverColor))&&void 0!==se?se:r.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==le?le:null===(ue=n.body.hoverColors)||void 0===ue?void 0:ue.background},lastRowBottomBorder:n.body.lastRowBottomBorder},selectedColors:XR({desiredColor:ve,theme:r,flags:e.flags}),headerMinRowHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0},{headerMinRowHeight:xe,totalRowMinHeight:Se,contentLineHeight:Ee,contentMinRowHeight:we}=GN(ye);return ye.headerMinRowHeight=xe,ye.totalRowMinHeight=Se,ye.contentLineHeight=Ee,ye.contentMinRowHeight=we,ye},XN=(e,t,n,r)=>{const o=U.useMemo((()=>{const o=n.totalsPosition.atTop,i=NN(e,t,n.rows.length,r),a=TN(e,t,!o),l=function(e,t,n){var r;const o=null===(r=_N(e))||void 0===r?void 0:r.content,i=ON("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=TN(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,n,r]);return o},JN=new Map;const QN=U.createContext({}),ZN=function(e){const t=U.createContext([()=>{},new Set]);return JN.set(e,t),({children:n,value:r})=>{const o=U.useRef(r),i=U.useRef(new Set);U.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=U.useCallback((()=>o.current),[o]),l=U.useMemo((()=>[a,i.current]),[a]);return Ki.jsx(e.Provider,{value:r,children:Ki.jsx(t.Provider,{value:l,children:n})})}}(QN),eq={rows:[],columns:[],totalsPosition:{}},tq=({app:e,children:t,tableData:n=eq,selectionsAPI:r,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[S,E]=U.useState(0),[w,C]=U.useState(o||lO),[R,k]=((e,t)=>{const[n,r]=U.useReducer(kN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,P]=U.useState(-1),I=XN(i,u,n,d),L=((e,t,n,r)=>U.useMemo((()=>KN(e,t,n,r)),[t,n,e,r]))(x,i,I,u),[M,D,_,O]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=dk({...r.header,fontWeight:cN},{maxNbrLinesOfText:3}).measureText,a=dk({...r.totalRow,fontWeight:cN},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=dk(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=dk(r.measure.values,{maxNbrLinesOfText:3}),u=U.useMemo((()=>(e,t,n,r,u,c)=>{let d=25;d+=28,r&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(n))}),[l,s,i,a,o]),[c,d]=U.useState(0),[p,f]=U.useState((()=>hN(e,n,u)));mk((()=>{f(hN(e,n-c,u))}),[e,n,c,u]);const m=U.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(p,c,n)),[p,c,n]);return[p,f,d,m]})(n.columns,n.totalsPosition,v.width,L),T=U.useMemo((()=>({app:e,selectionsAPI:r,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:L})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,L]);return Ki.jsx(ZN,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:P,columnWidths:M,setColumnWidths:D,baseProps:T,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:O,env:x},children:t})};function nq(e,t){const n=function(e){return JN.get(e)}(e),[r,o]=U.useContext(n),[,i]=U.useReducer((e=>e+1),0),a=U.useRef(t),l=U.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=U.useMemo((()=>t(s)),[s,t]);return U.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),U.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function rq(e){var t;const n=iN();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),TD({...n,direction:e})}const oq={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},iq={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},aq=gl("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...oq},"&::-moz-range-track":{...oq},"&::-ms-track":{...oq},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...iq},"&::-moz-range-thumb":{...iq},"&::-ms-thumb":{...iq},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}}))),lq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=gk({translator:c.translator}),p=U.useRef({initWidth:e,columnWidth:e,initX:0}),f=n?0:1,m=r&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};mk((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,Rk.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:kk.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},x=e=>{rk(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",x),v()},S=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},E=e=>{rk(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),v()},w=!r&&l?e=>{if(e.key===wk.LEFT||e.key===wk.RIGHT){rk(e);const t=5,n=e.key===wk.LEFT?-t:t;b(p.current.columnWidth+n)}else e.key===wk.SPACE||e.key===wk.ENTER?(rk(e),l(e),v()):e.key===wk.ESC&&(rk(e),l(e),b(p.current.initWidth))}:void 0,C=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return G.createElement(aq,{style:h,key:t,hoverColor:o,isLastColumn:n,className:Ck,"data-testid":Ck,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:kk.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",S),document.addEventListener("touchend",E),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:Rk.PixelsMax,"aria-label":C,"aria-valuemin":Rk.PixelsMin,"aria-valuemax":Rk.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function sq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),cq=U.forwardRef(uq);function dq(){return dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dq.apply(null,arguments)}const pq=gl(Yx,{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"}))),fq=gl(cq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),mq=gl(RE)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),hq=gl(vS)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),gq=gl(LE)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),bq=gl(LE,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({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:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),vq=gl("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"}))),yq=gl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),xq=gl(Ky)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Sq=gl(QS)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Eq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Eq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),Cq=U.forwardRef(wq);let Rq={};const kq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=U.useState(!1),p=U.useRef(null),f=U.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return G.createElement(G.Fragment,null,G.createElement(bq,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Rq={}),null!=a&&a.length&&(d(!0),Rq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&G.createElement(vq,null),G.createElement(yq,null,G.createElement(Sq,null,G.createElement(o,null)),G.createElement(xq,{variant:"body2"},r)),null!=a&&a.length?G.createElement(Cq,null):null),(null==a?void 0:a.length)&&G.createElement(Iq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Rq,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},Aq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&G.createElement(gq,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>G.createElement(kq,dq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),Pq={appear:200,enter:200,exit:100},Iq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?G.createElement(mq,dq({className:xk,open:t,anchorEl:e,onClose:n,transitionDuration:Pq,MenuListProps:{id:Sk}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[Aq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?G.createElement(hq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,Lq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Mq=(e,t)=>e.some((e=>t[e]>0));function Dq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _q=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Oq=U.forwardRef(_q);function Tq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Tq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),qq=U.forwardRef(Nq);function zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),jq=U.forwardRef(Fq);function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Bq=U.forwardRef(Hq);function Vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Uq=U.forwardRef(Wq);function Gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Kq=U.forwardRef(Yq);function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jq=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Qq=U.forwardRef(Jq);function Zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ez=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),tz=U.forwardRef(ez);function nz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),oz=U.forwardRef(rz);function iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const az=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),lz=U.forwardRef(az);let sz=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const uz=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[sz.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(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")),r(!1)},icon:Oq,enabled:a,isActive:!!n&&"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")),r(!1)},icon:Bq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[sz.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:Uq,enabled:!0}]}]),n[sz.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:lz,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:Kq,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:oz,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:Qq,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:tz,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:qq,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[sz.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:jq,enabled:!0}]}]),d},cz=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=gk({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=U.useState(null),[o,i]=U.useState(Lq);return U.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:U.useCallback((()=>i(Lq)),[]),updateSelectionActionsEnabledStatus:U.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:Mq(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Mq(["qSelected"],n.qStateCounts),canSelectPossible:Mq(["qOption"],n.qStateCounts),canSelectAlternative:Mq(["qAlternative"],n.qStateCounts),canSelectExcluded:Mq(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=U.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);U.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=U.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?G.createElement(pq,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:yk},s&&G.createElement(fq,{height:bk,className:vk,"data-testid":vk,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},G.createElement(cq,null)),G.createElement(Iq,{open:e,anchorEl:n.current,onClose:w,menuGroups:uz({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},dz=e=>e.isDark?{background:e.color,borderColor:Sw.DARK_MODE_BORDER,color:Sw.DARK_MODE_TEXT,disabledColor:Sw.DARK_MODE_DISABLED,iconColor:Sw.DARK_MODE_TEXT}:{background:e.color,borderColor:Sw.BORDER_MEDIUM,color:Sw.TEXT,disabledColor:Sw.DISABLED},pz=gl(Yx,{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}`}))),fz=gl(mw,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),mz=gl(iS,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),hz=gl(Ky)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),gz=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=U.useMemo((()=>dz(r.background)),[r]);if(!n.active)return null;const a=o?G.createElement(pz,{footerStyle:i},e):null;return t?Kv.createPortal(e,t):a},bz={},vz=U.createContext(bz),yz=()=>U.useContext(vz),xz=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,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=U.useMemo((()=>dz(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=gk({translator:d}),x=U.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,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,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return G.createElement(vz.Provider,{value:x},e)};let Sz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Ez=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 wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),Rz=U.forwardRef(Cz);function kz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Az=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),Pz=U.forwardRef(Az);function Iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lz=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Iz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),Mz=U.forwardRef(Lz),Dz={FirstPage:Pz,PreviousPage:Rz,NextPage:Cq,LastPage:Mz,FirstPageRTL:Mz,PreviousPageRTL:Cq,NextPageRTL:Rz,LastPageRTL:Pz},_z=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=yz(),u=Dz[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Oz=()=>{const{pageInfo:e,width:t}=yz(),n=0===e.page,{IconComponent:r,styledProps:o}=_z({type:Sz.FirstPage,disabledCondition:n,pageNumber:0});return t<=Ez.FirstPage?null:G.createElement(mz,o,G.createElement(r,{height:bk}))},Tz=(e,t,n=!1)=>{n&&e.key===wk.TAB&&!e.shiftKey&&(rk(e),nk(e.target,t,!1))},Nz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=_z({type:Sz.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Tz(e,t,r):null;return o<=Ez.LastPage?null:G.createElement(mz,dq({},l,{onKeyDown:s}),G.createElement(a,{height:bk}))},qz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=yz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=_z({type:Sz.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Ez.FirstPage&&o>Ez.LastPage)&&t.enabled?e=>Tz(e,t,r):null;return G.createElement(mz,dq({},l,{onKeyDown:s}),G.createElement(a,{height:bk}))},zz=()=>{const{pageInfo:e}=yz(),t=0===e.page,{IconComponent:n,styledProps:r}=_z({type:Sz.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return G.createElement(mz,r,G.createElement(n,{height:bk}))},Fz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=yz(),{page:o,rowsPerPage:i}=n;if(t<=Ez.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return G.createElement(hz,{variant:"caption"},a)},jz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=yz(),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 G.createElement(G.Fragment,null,G.createElement(hz,{variant:"caption",id:d},u,":"),G.createElement(fz,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},$z=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=yz();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Ez.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=G.createElement(G.Fragment,null,t.rowsPerPageOptions.map((e=>G.createElement("option",{key:e,value:e},e))));return G.createElement(jz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Hz=1e3,Bz="…",Vz=({totalPages:e,page:t})=>{const n=Math.min(e,Hz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Hz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return G.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(G.createElement("option",{key:"startMoreOptions",value:Bz,disabled:!0},Bz)),o<e-1&&a.push(G.createElement("option",{key:"endMoreOptions",value:Bz,disabled:!0},Bz)),G.createElement(G.Fragment,null,a)},Wz=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=yz(),{page:o}=e;if(t<=Ez.SelectPage)return null;const i=G.createElement(Vz,{totalPages:n,page:o});return G.createElement(jz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},Uz=e=>G.createElement(xz,e,G.createElement($z,null),G.createElement(Wz,null),G.createElement(Fz,null),G.createElement(Oz,null),G.createElement(zz,null),G.createElement(qz,null),G.createElement(Nz,null));var Gz=U.memo(Uz);const Yz=e=>G.createElement(gz,e,G.createElement(Gz,e)),Kz=f_(nT,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),Xz=f_(nT,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:n=!1,headCell:r=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(r||t||1===e)&&{textOverflow:"ellipsis",overflow:"hidden",wordBreak:r&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...r&&{whiteSpace:n||i?"normal":"nowrap"},whiteSpace:"pre-line"}}))),Jz=f_(nT)({overflow:"hidden",textOverflow:"ellipsis"});function Qz(e,t){const n=U.useRef(!1);U.useEffect((()=>{n.current?e():n.current=!0}),t)}const Zz=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},eF=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),tF=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?tF(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},nF=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?nF(t):t},rF=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ck}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},oF=({focusType:e,cell:t})=>{if(t)switch(e){case __.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case __.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case __.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case __.ADD_TAB:t.setAttribute("tabIndex","0");break;case __.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},iF=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{oF({focusType:__.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,n,r={top:0,bottom:0})=>{const o=r.top>0,i=r.top,a=t.getElementsByClassName("sn-table-row").length-1-r.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=n;switch(e.key){case D_.DOWN:s<a&&s++;break;case D_.UP:s>i&&s--;break;case D_.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case D_.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case D_.HOME:(gN(e)||o)&&(s=i),o||(u=0);break;case D_.END:(gN(e)||o)&&(s=a),o||(u=l);break;case D_.PAGE_DOWN:s=Math.min(a,s+10);break;case D_.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=Zz(t,i);return oF({focusType:__.FOCUS,cell:a}),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.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")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),r(i),{nextCell:a,nextCellCoord:i}},aF=(e,t,n,r)=>{var o;(oF({focusType:__.REMOVE_TAB,cell:eF(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):oF({focusType:__.ADD_TAB,cell:Zz(t,e)})},lF=(e,t,n)=>{U.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(`.${xk}`);if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])},sF=(e,t,n)=>{U.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},uF=(e,t=!1)=>e.key===D_.ESC&&!t||(e.key===D_.LEFT||e.key===D_.RIGHT)&&bN(e),cF=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===D_.DOWN||n===D_.UP){const t=e=>n===D_.DOWN?tF(e):nF(e);rk(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},dF=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(L_.Disabled))return void rk(e);const d=null==c?void 0:c.isModal();if(!uF(e,d))switch(e.key){case D_.SPACE:rk(e),n.isSelectable&&o&&r({type:M_.SELECT,payload:{cell:n,evt:e,announce:a}});break;case D_.ENTER:rk(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case D_.ESC:rk(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case D_.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(rk(e),nk(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;default:yN(e.key)&&(rk(e),(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[n.pageRowIdx+u,n.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=iF({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,n)=>t.shiftKey&&e&&n.isSelectable)(o,e,n)?r({type:M_.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},pF=e=>{const{layout:t,rect:n,theme:r}=nq(QN,(e=>e.baseProps)),[o,i]=U.useState(0),[a,l]=U.useState(0);return U.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=r-a;l(n-o),i(s)}}),[e,t,n,r]),{xScrollbarWidth:o,yScrollbarWidth:a}},fF=f_("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mF=f_(FT,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),hF=f_(ET,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),gF=()=>Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(fF,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Ki.jsx(fF,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),bF=e=>e.stopPropagation(),vF=({href:e,text:t,interactions:n,color:r})=>G.createElement(HS,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:bF,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),yF=({children:e,forwardRef:t,fontSize:n="",wordBreak:r=!1,isPagination:o=!1,virtualizedCell:i=!1,lines:a=3,headCell:l=!1,allIconsDisabled:s=!1,indicatorColor:u=""})=>{if(l)return Ki.jsx(Xz,{ref:t,component:"span",className:"sn-table-cell-text",lines:a,isPagination:o,headCell:!0,allIconsDisabled:s,children:e});const c=FN(n),d=Ki.jsx(Xz,{ref:t,component:"span",className:"sn-table-cell-text",wordBreak:r,lines:a,virtualizedCell:i,children:e});return r?d:Ki.jsx(Jz,{ref:t,color:u,minHeight:c*sN,maxHeight:c*sN*a,children:d})},xF=e=>{let t="center",n="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)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},SF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},EF=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Ki.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:SF(a),objectPosition:xF(l),overflow:"hidden"}});var c;return r?Ki.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?n:"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};function wF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const CF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),RF=U.forwardRef(CF);function kF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"})),PF=U.forwardRef(AF);function IF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),MF=U.forwardRef(LF);function DF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _F=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){DF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),G.createElement("use",{fillRule:"evenodd"})),OF=U.forwardRef(_F);function TF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})),qF=U.forwardRef(NF);function zF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})),jF=U.forwardRef(FF);function $F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const HF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$F(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})),BF=U.forwardRef(HF);function VF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M2 7h12v2H2z"})),UF=U.forwardRef(WF);function GF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const YF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){GF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})),KF=U.forwardRef(YF);function XF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JF=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})),QF=U.forwardRef(JF);function ZF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ej=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ZF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})),tj=U.forwardRef(ej);function nj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),oj=U.forwardRef(rj);function ij(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ij(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})),lj=U.forwardRef(aj);function sj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})),cj=U.forwardRef(uj);function dj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})),fj=U.forwardRef(pj);function mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"}));function gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})),vj={m:oj,"ï":tj,R:U.forwardRef(hj),S:lj,T:cj,U:fj,P:QF,Q:BF,"è":U.forwardRef(bj),"¢":qF,"©":OF,"23F4":jF,2013:PF,"&":KF,add:RF,"minus-2":UF,dot:MF},yj=({size:e,iconKey:t,color:n})=>{const r=t&&vj[t]||void 0;return r&&Ki.jsx(r,{style:{color:n,height:e}})},xj=({representation:e})=>{var t;const{text:n,indicator:r}=e,{showTextValues:o,position:i,applySegmentColors:a}=null!=r?r:{},l=null==e||null===(t=e.indicatorConditionalColoring)||void 0===t?void 0:t.segments.paletteColors[0].icon,{styleService:s,theme:u}=nq(QN,(e=>e.baseProps)),c=FN(s.measure.values.fontSize),d=((e,t)=>{var n;const r=null==e||null===(n=e.indicatorConditionalColoring)||void 0===n?void 0:n.segments.paletteColors[0],{color:o,index:i}=r||{index:6};return IN("",t,{color:o,index:i})})(e,u);return o?Ki.jsxs("div",{"data-key":"representation-indicator",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:"2px",alignItems:"center"},children:["left"===i&&yj({size:c,iconKey:l,color:d}),Ki.jsx(yF,{indicatorColor:a?d:void 0,children:n}),"right"===i&&yj({size:c,iconKey:l,color:d})]}):yj({size:c,iconKey:l,color:d})},Sj=({forwardRef:e,cell:t,style:n,maxImageHeight:r,virtualizedCell:o,maxLineCount:i})=>{const{interactions:a}=nq(QN,(e=>e.baseProps)),l=nq(QN,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let s=t.representation.text;return t.representation.type!==aP.Link||l||(s=Ki.jsx(vF,{href:t.representation.url,text:t.representation.text,interactions:a,color:n.cellForegroundColor})),t.representation.type===aP.Image?Ki.jsx(EF,{representation:t.representation,textStyle:n,maxImageHeight:r,wrapInContainer:!o}):t.isNull||t.representation.type!==aP.Indicator?Ki.jsx(yF,{forwardRef:e,wordBreak:!t.isNumeric,fontSize:n.fontSize,lines:i,virtualizedCell:o,children:s}):Ki.jsx(xj,{representation:t.representation})},Ej=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{U.useEffect((()=>{const i=()=>{t({type:M_.RESET})},a=()=>{t({type:M_.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!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,r,t,n,o])},wj=({viewService:e,isImagesEnabled:t,styleService:n})=>{var r,o;let i=null===(r=e.viewState)||void 0===r?void 0:r.maxLineCount;var a;t&&(i=null!==(a=i)&&void 0!==a?a:n.grid.lineClamp);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},Cj=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:n})=>t?n*e+8+1:void 0,Rj=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:M_.SELECT_MULTI_END});n({type:M_.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:M_.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:M_.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),kj=f_(IT,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),Aj=f_(QT,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),Pj=f_(TT,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...pN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),Ij=f_(TT,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...pN,...e,fontWeight:cN,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function Lj(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,{styleService:a}=nq(QN,(e=>e.baseProps)),l=nq(QN,(e=>SN(n,e.selectionState))),s=nq(QN,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=Rj(i,n,s,o),p=function(e,t,n){return t===L_.Selected?{...e,...n}:t===L_.Disabled?{...e,background:`${lN}, ${e.background}`}:e}(r,l,a.selectedColors);return Ki.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function Mj(e,t){let n=(r=Pj,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return Ki.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${Ek}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=Lj(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=U.useMemo((()=>n.isNull?o:zN(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,n.isNull,r.qAttrExprInfoIDs]);return Ki.jsx(e,{...t,styling:i})}}(n)),n}const Dj=(e,{atTop:t,atBottom:n},r)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!r&&n?e.grid.divider:e.grid.border,borderBottomColor:r&&!t||!r&&t?e.grid.divider:e.grid.border}),_j=()=>{const{columns:e,totalsPosition:t,rows:n}=nq(QN,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=nq(QN,(e=>e.baseProps)),s=nq(QN,(e=>e.headRowHeight)),u=nq(QN,(e=>e.setFocusedCellCoord));return Ki.jsx(QT,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return Ki.jsx(Ij,{totalsStyle:{...a.totalRow,...Dj(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ek}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)rk(e);else if(!uF(e))switch(e.key){case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;case D_.SPACE:e.preventDefault();break;default:yN(e.key)&&(rk(e),iF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{aF(d,r,u,i)},children:Ki.jsx(yF,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var Oj=U.memo(_j);const Tj=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=nq(QN,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=nq(QN,(e=>e.baseProps)),h=nq(QN,(e=>e.setFocusedCellCoord)),g=nq(QN,(e=>e.selectionDispatch)),{flags:b}=nq(QN,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=U.useMemo((()=>JSON.parse(y).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e)));return Mj(t,v)}))),[y,v]),S=!(null===(r=_N(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{maxNbrLines:E,isStaticNbrOfLines:w}=wj({viewService:m,styleService:f,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),C=Cj({maxNbrLines:E,isStaticNbrOfLines:w,lineHeight:f.contentLineHeight});return Ej({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Ki.jsxs(kj,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Ki.jsx(Oj,{}):void 0,o.map(((e,t)=>Ki.jsx(Aj,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:C,children:i.map(((t,r)=>{const{id:o}=t,i=e[r],d=x[r];let m=t.isDim?f.dimension.values:f.measure.values;i.isNull&&(m={...m,...f.nullValues}),!b.isEnabled("CLIENT_IM_6696_INDICATORS")||t.isDim||i.isNull||(i.representation.indicatorConditionalColoring=t.conditionalColoring);const y=zN(m,i.qAttrExps,t.qAttrExprInfoIDs);return d&&Ki.jsx(d,{scope:0===r?"row":void 0,component:0===r?"th":void 0,cell:i,column:t,align:i.align,styling:{...m,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{dF({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===D_.SHIFT&&t({type:M_.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;aF([l,a],t,n,r)})(i,u,h,c,l),children:Ki.jsx(Sj,{cell:i,style:y,maxImageHeight:w?f.contentLineHeight*E:f.contentLineHeight,maxLineCount:E})},o)}))},`row-${t}`))),l.atBottom?Ki.jsx(Oj,{}):void 0]})};var Nj=U.memo(Tj);const qj=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=nq(QN,(e=>e.baseProps)),u=nq(QN,(e=>e.columnWidths)),c=nq(QN,(e=>e.setColumnWidths));if(!l.active)return null;return Ki.jsx(lq,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==n||n();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");oF({focusType:__.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function zj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),jj=U.forwardRef(Fj);function $j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$j(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"})),Bj=U.forwardRef(Hj);function Vj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Wj=(e,t)=>G.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Vj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),G.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"}),G.createElement("use",{fillRule:"evenodd"})),Uj=U.forwardRef(Wj),Gj=f_("div")({position:"absolute",left:0,bottom:0}),Yj=f_(nT,{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"})));f_("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const Kj=f_(nT,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:n})=>{const r=e?"24px":"";let o;switch(n){case"left":o={gridTemplateColumns:t?`20px 2fr ${r}`:`1fr ${r}`};break;case"center":{const n=e||t;o={gridTemplateColumns:n?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:n?2:1},[`& .${yk}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${r} 2fr 20px`:`${r} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${yk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),Xj=f_(nT,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));f_(nT,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),f_(hT)((({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"}}))),f_("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),f_(uT)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),f_("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const Jj=f_(TT,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...pN,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));f_("div")({display:"flex",alignItems:"center"});const Qj=f_("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:uN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Zj=({column:e,isInteractionEnabled:t,open:n,setOpen:r,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,model:p,styleService:f}=nq(QN,(e=>e.baseProps)),m=nq(QN,(t=>t.columnWidths[e.pageColIdx])),h=U.useRef(null),g=U.useRef(null),{getHeadCellsIconsVisibilityStatus:b,allIconsDisabled:v}=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=dk({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:cN}),o=U.useCallback((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=n-25,u=a?20:0,c=l?20:0;let d=r(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,n,r]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:f,column:e,columnWidth:m}),y=b(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?Ki.jsx(jj,{height:uN,"data-testid":"head-cell-sort-ascending-icon"}):Ki.jsx(Bj,{height:uN,"data-testid":"head-cell-sort-descending-icon"}),i=n?Ki.jsx(Qj,{align:t,children:o}):void 0,a=r?Ki.jsx(Xj,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ki.jsx(Uj,{height:uN,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);return Ki.jsxs(Kj,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Ki.jsxs(Yj,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Ki.jsx(yF,{forwardRef:a,allIconsDisabled:v,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),S]}),t&&Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(cz,{headerData:e,translator:l,anchorRef:h,handleHeadCellMenuKeyDown:cF,menuAvailabilityFlags:{[sz.SORTING]:!0,[sz.SEARCHING]:!0,[sz.SELECTIONS]:!0,[sz.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:u,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),s(e,n))},searchRelatedArgs:{embed:c,listboxRef:g},selectionRelatedArgs:{app:d,model:p},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:rF},shouldShowMenuIcon:y.shouldShowMenuIcon}),Ki.jsx(Gj,{ref:g}),Ki.jsx(Gj,{ref:h})]})]})},e$=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=U.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=U.useState(!1);return mk((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,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(Ck)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},t$=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=nq(QN,(e=>e.baseProps)),{columns:l,totalsPosition:s}=nq(QN,(e=>e.tableData)),u=nq(QN,(e=>e.columnWidths[t])),c=nq(QN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=nq(QN,(e=>e.setFocusedCellCoord)),p=nq(QN,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=e$({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?O_[e.sortDirection]:void 0,y=m?Sk:void 0,x=m?"true":void 0,S=t===n-1,E=[0,e.pageColIdx],w={width:u-(S?8:9),zIndex:l.length-t},C=p&&0===t&&!i.enabled&&f?0:-1;return Ki.jsxs(Jj,{headerStyle:{...a.header,...Dj(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:r,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ek}`,tabIndex:C,title:r.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!uF(e))switch(e.key){case D_.C:rk(e),gN(e)&&Mk(e.currentTarget);break;case D_.ENTER:case D_.SPACE:i&&i(e);break;default:yN(e.key)&&(rk(e),iF({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else rk(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):oF({focusType:__.FOCUS,cell:Zz(t,n)}))})({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:[Ki.jsx(Zj,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Ki.jsx(qj,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},n$=()=>{var e;const{columns:t}=nq(QN,(e=>e.tableData)),{styleService:n,viewService:r}=nq(QN,(e=>e.baseProps)),o=nq(QN,(e=>e.setHeadRowHeight)),i=nq(QN,(e=>e.columnWidths)),a=U.useRef(null);return U.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Ki.jsx(WT,{children:Ki.jsx(QT,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Ki.jsx(t$,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var r$=U.memo(n$);const o$=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=nq(QN,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=nq(QN,(e=>e.baseProps)),k=nq(QN,(e=>e.focusedCellCoord)),A=nq(QN,(e=>e.setFocusedCellCoord)),P=nq(QN,(e=>e.setYScrollbarWidth)),I=nq(QN,(e=>e.showRightBorder)),L=nq(QN,(e=>e.selectionDispatch)),M=nq(QN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=U.useRef(!1),_=U.useRef(null),O=U.useRef(null),{yScrollbarWidth:T}=pF(_),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=dL(C,w),z=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,F=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=U.useCallback((()=>{D.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),$=U.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),H=U.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return lF(O,D,v),sF(_,i,w),(()=>{const{rootElement:e,keyboard:t}=nq(QN,(e=>e.baseProps)),n=nq(QN,(e=>e.focusedCellCoord));mk((()=>{const r=t.active?__.FOCUS:__.BLUR,o=t.active?Zz(e,n):eF(e);oF({focusType:r,cell:o})}),[t.active,e])})(),U.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=z,e.scrollTop=F)}),[r,d,z,F]),Qz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{oF({focusType:__.REMOVE_TAB,cell:eF(t)});const s=[l.atTop?2:1,e[1]],u=r?s:lO;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?__.FOCUS:__.ADD_TAB;n.current=!1;const d=Zz(t,u);if(oF({focusType:c,cell:d}),r){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:k,rootElement:b,shouldRefocus:D,setFocusedCellCoord:A,isSelectionMode:M,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),Qz((()=>{P(T)}),[T]),Qz((()=>{L({type:M_.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Ki.jsxs(Kz,{ref:O,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(bN(e)){rk(e);const a=Math.ceil(t/r)-1;e.key===D_.RIGHT&&n<a?(i(),o(n+1)):e.key===D_.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===D_.ESC&&a.enabled&&!l){var s;rk(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else vN(e.key)&&rk(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:$,setShouldRefocus:j,keyboard:v,isSelectionMode:M})},"data-testid":"sn-table",children:[Ki.jsx(gF,{}),Ki.jsx(mF,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Ki.jsxs(hF,{stickyHeader:!0,"aria-label":N,borderRight:I?`1px solid ${E.grid.border}`:void 0,children:[Ki.jsx(r$,{}),Ki.jsx(Nj,{...e,setShouldRefocus:j,tableWrapperRef:O})]})}),Ki.jsx(Yz,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:$,handleChangeRowsPerPage:H,isSelectionMode:M})]})};var i$=U.memo(o$);function a$(){return a$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a$.apply(this,arguments)}function l$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s$(e,t){return s$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s$(e,t)}function u$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s$(e,t)}var c$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function d$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||c$(r)&&c$(o)))return!1;var r,o;return!0}function p$(e,t){var n;void 0===t&&(t=d$);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function f$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var m$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function h$(e){cancelAnimationFrame(e.id)}function g$(e,t){var n=m$();var r={id:requestAnimationFrame((function o(){m$()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var b$=-1;function v$(e){if(void 0===e&&(e=!1),-1===b$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),b$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return b$}var y$=null;function x$(e){if(void 0===e&&(e=!1),null===y$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?y$="positive-descending":(t.scrollLeft=1,y$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),y$}return y$}var S$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function E$(e){var t,n=e.getColumnOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,l$(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:l$(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=p$((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=p$((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=p$((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(x$()){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-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&h$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=g$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}u$(t,e),t.getDerivedStateFromProps=function(e,t){return w$(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=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=v$();void 0!==r&&(r=Math.max(0,Math.min(r,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!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(x$()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&h$(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=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?S$: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],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var P=R;P<=k;P++)for(var I=E;I<=w;I++)A.push(U.createElement(t,{columnIndex:I,data:d,isScrolling:v?x:void 0,key:f({columnIndex:I,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,I)}));var L=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return U.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:a$({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},U.createElement(u||c||"div",{children:A,ref:s,style:{height:L,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&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 r){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,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(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,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||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}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var w$=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},C$=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},R$=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},k$=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},A$=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?P$(e,t,n,i,0,r):I$(e,t,n,Math.max(0,i),r)},P$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=k$(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},I$=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&k$(e,t,r,n).offset<o;)r+=a,a*=2;return P$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},L$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=k$(e,t,n,i),u="column"===e?R$(t,i):C$(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){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}},M$=E$({getColumnOffset:function(e,t,n){return k$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return A$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=k$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=k$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:C$,getEstimatedTotalWidth:R$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return L$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return L$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return k$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return A$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=k$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=k$("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),D$=function(e,t){return e};function _$(e){var t,n=e.getItemOffset,r=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 r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,l$(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:l$(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=p$((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=p$((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._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},r._getItemStyleCache=void 0,r._getItemStyleCache=p$((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(x$()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&h$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=g$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}u$(t,e),t.getDerivedStateFromProps=function(e,t){return O$(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?v$():0:s.scrollHeight>s.clientHeight?v$():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(x$()){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&&h$(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=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?D$: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(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(U.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return U.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:a$({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,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,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.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,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var O$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},T$=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.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=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},N$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=T$(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},q$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&T$(e,n,t).offset<r;)n+=i,i*=2;return N$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},z$=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},F$=_$({getItemOffset:function(e,t,n){return T$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:z$,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=T$(e,t,o),p=z$(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?N$(e,t,o,0,n):q$(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){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=T$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=T$(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function j$(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var $$=["style"],H$=["style"];function B$(e,t){var n=e.style,r=f$(e,$$),o=t.style,i=f$(t,H$);return!j$(n,o)&&!j$(r,i)}const V$=({style:e})=>Ki.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var W$=G.memo(V$,B$);const U$=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},G$=(e,t)=>{U.useEffect((()=>{if(!e)return()=>{};const n=new ResizeObserver(t);return n.observe(e),()=>{n.disconnect()}}),[e,t])},Y$=()=>{},K$=e=>e.preventDefault();const X$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u,setMeasuredCellHeight:c,maxLineCount:d}=r,{flags:p}=nq(QN,(e=>e.env)),f=nq(QN,(e=>e.hoverIndex===t)),m=nq(QN,(e=>e.setHoverIndex)),{interactions:h,styleService:g}=nq(QN,(e=>e.baseProps)),b=nq(QN,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=nq(QN,(e=>e.baseProps)),n=nq(QN,(e=>e.selectionDispatch)),r="object"==typeof e,o=nq(QN,(t=>r?SN(e,t.selectionState):L_.Inactive)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=Rj(K$,e,n,Y$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),w=((e,t,n,r)=>{const o=U.useRef(null),i=n&&!(null!=n&&n.isNumeric);U.useLayoutEffect((()=>{o.current&&i&&r(o.current.getBoundingClientRect().height,e,t)}),[r,o,e,t,i]);const a=U.useCallback((n=>{const o=U$(n);o&&i&&r(o,e,t)}),[t,r,e,i]);return G$(o.current,a),o})(t,e,v,c);let C={borderColor:g.grid.border,...g.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(C={borderColor:g.grid.border,...g.dimension.values}),null!=v&&v.isNull&&(C={...C,...g.nullValues}),"object"==typeof v){var R;!p.isEnabled("CLIENT_IM_6696_INDICATORS")||l[e].isDim||v.isNull||(v.representation.indicatorConditionalColoring=r.columns[e].conditionalColoring);const o=((e,t,n,r,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?zN(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return r===L_.Selected?{...a,...i.selectedColors}:r===L_.Disabled?{...a,color:n?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${lN}, ${n?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:n?{...a,...i.grid.hoverColors}:a;var l,s})(v,l[e],s&&f,E,C,g),i={rowindex:t,columnindex:e};return Ki.jsx("div",{className:`sn-table-cell ${E} ${Ek}`,style:{...n,...o,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:v.isLastColumn&&!b?"0px":"1px",borderStyle:"solid",justifyContent:v.representation.type===aP.Image&&"fitHeight"===v.representation.imageSize?null===(R=v.representation)||void 0===R||null===(R=R.resolvedImagePosition)||void 0===R?void 0:R.horizontal:v.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:s?()=>m(t):void 0,onMouseLeave:s?()=>m(-1):void 0,title:h.passive?v.representation.text:void 0,...i,children:Ki.jsx(Sj,{forwardRef:v.isNumeric?void 0:w,cell:v,style:o,maxImageHeight:u,virtualizedCell:!0,maxLineCount:v.isNumeric?1:d})})}return Ki.jsx(W$,{style:{...n,...C,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var J$=G.memo(X$,B$);const Q$=e=>{const t=U.useRef(e);return t.current=e,t},Z$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,eH=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},tH=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},nH=(e,t,n,r,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,n,r,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v}=i[o],y=nI(e);f[o]=null!==(n=f[o])&&void 0!==n?n:{id:ZP(),...e,align:uL(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:y,isNull:nL(e,u),representation:tL(e,v,b,l)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},rH=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=nq(QN,(e=>e.env)),p=U.useRef([]),f=U.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return nH(t,o,r,s,e,d,c),p.current=r,r}),[i,o,s,e,d,c]),[m,h]=U.useState((()=>f(null!=r?r:[])));mk((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=U.useRef(new Set),r=U.useRef(new Set),o=U.useRef(new Set),i=Q$(e),a=Q$(t),l=U.useMemo((()=>({enqueue:e=>{const t=Z$(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(Z$(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=U.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(tH(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[p,g]),v=U.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(eH(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[p,g,o]);return U.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-r,p=Math.min(100,c,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,n]),{rowsInPage:m,loadRows:v,loadColumns:b}},oH=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},iH=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,aH=({isSnapshot:e,isStaticNbrOfLines:t,maxLineCount:n,setCellHeight:r})=>{const o=nq(QN,(e=>e.baseProps.styleService)),i=nq(QN,(e=>e.columnWidths)),{estimateLineCount:a}=dk(o.dimension.values),l=UN(o.dimension.values.fontSize),s=e||t||1===n;return U.useCallback(((e,t,o)=>{if(s||e.representation.type===aP.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(n,Math.max(1,c));r(d*l,t,o)}),[s,i,a,n,l,r])},lH=({isStaticNbrOfLines:e,minRowHeight:t,state:n,rowCount:r,staticRowHeight:o,viewService:i})=>U.useMemo((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:r*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const n=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(n),totalRowHeight:t}})(n.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(r*t,l)}),[e,t,r,n,o,i]),sH=({rowCount:e,isSnapshot:t,viewService:n,gridRef:r,pageInfo:o})=>{const{flags:i}=nq(QN,(e=>e.env)),{styleService:a}=nq(QN,(e=>e.baseProps)),[l,s]=U.useState({rowHeights:new Map,cellHeightsInGrid:new Map}),{maxNbrLines:u,isStaticNbrOfLines:c}=wj({viewService:n,styleService:a,isImagesEnabled:i.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),d=a.contentLineHeight,p=a.contentMinRowHeight,f=Math.max(8e6/e,p)-9,m=f+9,h=Math.max(1,Math.min(u,Math.round(f/d))),g=Cj({maxNbrLines:h,isStaticNbrOfLines:c,lineHeight:d}),b=c?h*d:d;(({gridRef:e,setState:t,pageInfo:n})=>{const{layout:r}=nq(QN,(e=>e.baseProps)),o=nq(QN,(e=>e.columnWidths));mk((()=>{var n;null===(n=e.current)||void 0===n||n.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page]),mk((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:r,setState:s,pageInfo:o});const v=(({setState:e,maxCellHeight:t,minRowHeight:n,gridRef:r})=>U.useCallback(((o,i,a)=>{U.startTransition((()=>{e((e=>{var l,s;const u=Math.max(n,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!iH(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,oH(d)),null===(s=r.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,n,t,r]))({maxCellHeight:m,minRowHeight:p,setState:s,gridRef:r}),y=(({isSnapshot:e,isStaticNbrOfLines:t,maxLineCount:n,setCellHeight:r})=>U.useCallback(((o,i,a)=>{e||t||1===n||r(o,i,a)}),[e,t,n,r]))({isSnapshot:t,isStaticNbrOfLines:c,maxLineCount:h,setCellHeight:v});return{setMeasuredCellHeight:y,setEstimatedCellHeight:aH({isSnapshot:t,isStaticNbrOfLines:c,maxLineCount:h,setCellHeight:v}),getRowHeight:U.useCallback((e=>{var t;return c?g:null!==(t=l.rowHeights.get(e))&&void 0!==t?t:p}),[c,p,l.rowHeights,g]),totalRowHeight:lH({isStaticNbrOfLines:c,minRowHeight:p,state:l,staticRowHeight:g,rowCount:e,viewService:n}),maxLineCount:h,maxImageHeight:b}};var uH;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(uH||(uH={}));const cH=({layout:e,loadRows:t,loadColumns:n,rowCount:r,pageInfo:o,gridState:i,viewService:a})=>U.useCallback((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o=uH.None,i=uH.None;return o=r>t?uH.Down:r<t?uH.Up:uH.None,i=n>e?uH.Right:n<e?uH.Left:uH.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>r)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===uH.Down){const e=x+25;t(b,v,y,u+e>r?r-u:e)}else if(h===uH.Up){const e=x+25,n=o.page*o.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(g===uH.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(g===uH.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[i,r,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,n]),dH={enabled:!1},pH=()=>{},fH={current:null};const mH=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=U.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},hH=({columnIndex:e,data:t,rowIndex:n})=>{var r,o;const i=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${n}-${e}`},gH={overflow:"hidden",willChange:"auto"},bH=U.forwardRef(((e,t)=>{var n;const{rect:r,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=nq(QN,(e=>e.baseProps)),p=nq(QN,(e=>e.columnWidths)),f=nq(QN,(e=>e.initialDataPages)),m=U.useRef(null),h=U.useRef(null),g=U.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=U.useRef(0),v=!(null===(n=_N(l))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=mH(l,i,r,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:w,getRowHeight:C,maxLineCount:R,maxImageHeight:k,totalRowHeight:A}=sH({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:P,loadRows:I,loadColumns:L}=rH({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:w}),M=cH({layout:l,loadRows:I,loadColumns:L,rowCount:y,pageInfo:i,gridState:g,viewService:c}),D=U.useMemo((()=>({rowsInPage:P,columns:o,isHoverEnabled:v,maxLineCount:R,maxImageHeight:k,setMeasuredCellHeight:E})),[P,o,v,R,k,E]),_=((e,t,n)=>Math.min(e.height-t,n))(r,a,A);return U.useLayoutEffect((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=nq(QN,(e=>e.baseProps)),n=nq(QN,(e=>e.selectionDispatch));U.useEffect((()=>{n({type:M_.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),Ej({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:pH,keyboard:dH,tableWrapperRef:fH})}(P),U.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=h.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:_)-_,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,_,y]),Ki.jsx(M$,{"data-key":"body",ref:m,innerRef:h,style:gH,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:_,rowCount:y,rowHeight:C,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:D,onItemsRendered:M,itemKey:hH,className:"sn-table-body",children:J$})}));var vH=U.memo(bH);const yH=({width:e,height:t,children:n})=>Ki.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),xH=(e,t)=>{const n=U.useRef(null),r=nq(QN,(e=>e.columnWidths));U.useLayoutEffect((()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)}),[t,n,e,r.length]);const o=U.useCallback((n=>{const r=U$(n);r&&t(r+9,e)}),[e,t]);return G$(n.current,o),n},SH=f_("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:n,applicableStyle:r})=>({...r,background:n,"&&:hover":{background:e.active?t:void 0}}))),EH=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=n,{interactions:l,styleService:s}=nq(QN,(e=>e.baseProps)),u=nq(QN,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=nq(QN,(e=>e.showRightBorder)),d=nq(QN,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=e$({isInteractionEnabled:p,columnsData:r}),b=xH(e,a),v=r[e],y=r.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Ki.jsxs(SH,{className:`sn-table-cell ${Ek}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...Dj(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Ki.jsx(Zj,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Ki.jsx(qj,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},wH=e=>{const[t,n]=U.useState(new Map);mk((()=>{n(new Map)}),[e.length]);const r=U.useCallback(((e,t)=>{n((n=>iH(n.get(t),e)?new Map(n).set(t,e):n))}),[]);return{rowHeight:U.useMemo((()=>oH(t)),[t]),setMeasuredCellHeight:r}},CH=(e,t,n)=>{U.useImperativeHandle(e,(()=>({scrollTo:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.scrollTo(e)},element:n.current})),[t,n])},RH=(e,t,n,r,o)=>{mk((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,n,e,r,o])},kH={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AH=U.forwardRef(((e,t)=>{const{rect:n,columns:r,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=U.useRef(null),s=U.useRef(null),{layout:u,theme:c,styleService:d}=nq(QN,(e=>e.baseProps)),p=nq(QN,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=wH(r);return CH(t,l,s),RH(l,u,o,p,c),Ki.jsx(F$,{ref:l,outerRef:s,layout:"horizontal",style:kH,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:n.width,itemData:{columns:r,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:EH})}));var PH=U.memo(AH);const IH=G.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=nq(QN,(e=>e.baseProps));return Ki.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),LH=({children:e,rect:t})=>Ki.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),MH=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i}=n,{layout:a,interactions:l,styleService:s}=nq(QN,(e=>e.baseProps)),u=nq(QN,(e=>e.showRightBorder)),c=xH(e,i),d=r[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=r[e],m=a.qHyperCube.qSize.qcx-1===e;return Ki.jsx("div",{className:`sn-table-cell ${Ek}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...Dj(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Ki.jsx(yF,{forwardRef:c,wordBreak:!f,lines:3,virtualizedCell:!0,children:d})})},DH=U.forwardRef(((e,t)=>{const{rect:n,pageInfo:r,totals:o,columns:i}=e,a=U.useRef(null),l=U.useRef(null),{layout:s,theme:u,styleService:c}=nq(QN,(e=>e.baseProps)),d=nq(QN,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=wH(i);return CH(t,a,l),RH(a,s,r,d,u),Ki.jsx(F$,{ref:a,outerRef:l,layout:"horizontal",style:kH,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:n.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:MH})}));var _H=U.memo(DH);const OH=e=>{var t,n,r;const[o,i]=U.useState(null!==(t=null===(n=e.current)||void 0===n||null===(n=n.element)||void 0===n?void 0:n.clientHeight)&&void 0!==t?t:0);U.useLayoutEffect((()=>{var t;null!==(t=e.current)&&void 0!==t&&t.element&&i(e.current.element.clientHeight)}),[e]);const a=U.useCallback((e=>{const t=U$(e);t&&i(t)}),[]);return G$(null===(r=e.current)||void 0===r?void 0:r.element,a),o},TH=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=nq(QN,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=nq(QN,(e=>e.baseProps)),c=nq(QN,(e=>e.columnWidths)),d=nq(QN,(e=>e.setYScrollbarWidth)),p=U.useRef(null),f=U.useRef(null),m=U.useRef(null),h=U.useRef(null),{xScrollbarWidth:g,yScrollbarWidth:b}=pF(p),v=U.useRef([]),y=U.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),x=U.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=mH(a,n,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:n})=>{const r=OH(e),o=OH(t);return n.atTop||n.atBottom?r+o:r})({totalsPosition:r,headerRef:f,totalsRef:m}),{width:w,height:C}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:n,stickyContainerRect:r,columnWidths:o})=>{const{styleService:i}=nq(QN,(e=>e.baseProps)),a=OH(e)+t,l=n*i.contentMinRowHeight+t;let s=l;return l<r.height&&a>r.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),R=((e,t,n,r)=>U.useCallback((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)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.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)}),[r,n,e,t]))(f,m,h,u),k=U.useCallback((()=>{p.current&&(p.current.scrollTop=0)}),[p]);U.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),U.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,S,l]),Qz((()=>{d(b)}),[b]);const A=Ki.jsx(_H,{rect:x,pageInfo:n,columns:o,ref:m,totals:r});return Ki.jsx(IH,{ref:p,width:y.width,height:y.height,onScroll:R,children:Ki.jsx(yH,{width:w,height:C,children:Ki.jsxs(LH,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Ki.jsx(PH,{rect:x,pageInfo:n,columns:o,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v}),r.atTop?A:null,Ki.jsx(vH,{ref:h,rect:x,pageInfo:n,columns:o,headerAndTotalsHeight:E}),r.atBottom?A:null]})})})};var NH=U.memo(TH);const qH=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=nq(QN,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=nq(QN,(e=>e.tableData)),c=nq(QN,(e=>e.pageInfo)),d=nq(QN,(e=>e.setPage));return Ki.jsxs(Kz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Ki.jsx(NH,{pageInfo:c}),Ki.jsx(Yz,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var zH=U.memo(qH);var FH,jH={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"}(FH||(FH={}));const $H=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(jH).forEach((t=>{e.add(jH[t])}))}}(n),((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===FH.FIRST?(u=s,r=FH.SECOND):(u=l,r=FH.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),HH={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},BH=({app:t,model:n,rootElement:r,layout:o,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const{direction:v,footerContainer:y}=e.useOptions(),x=dL(o,g),S=pL(o,g),E=$H(r,a),w=x?{page:g.page||HH.page,rowsPerPage:g.rowsPerPage||HH.rowsPerPage,rowsPerPageOptions:HH.rowsPerPageOptions}:HH,[C,R]=e.useState(w),[k]=e.usePromise((async()=>S?async function(e,t,n,r,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=n,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 r({...n,page:0}),null;if(h*d>rL)return r({...n,rowsPerPage:oL(d,c),page:0}),null;const g=p>10,b=iL(t,o),v=cL(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=n.rowsPerPage,o.page=n.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const n=[];return v.forEach(((r,o)=>{n[o]={id:ZP(),...e[o],align:uL(e[o],r.bodyTextAlign),rowIdx:t+m,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===h-1,isNumeric:nI(e[o]),isNull:nL(e[o],r.isDim),representation:tL(e[o],r.representation,r.qAttrExprInfoIndex,i)}})),n})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,o,C,R,g,b):null),[o,C,n,i,S]);e.useEffect((()=>{!!(S&&f&&n&&(o.snapshotData||t)&&o&&k&&u&&s&&l&&h&&p)&&function(e,t){const{app:n,model:r,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=rq(o);null==t||t.render(Ki.jsx(Qn,{stylisPlugins:"rtl"===o?[aO]:void 0,children:Ki.jsx(h_,{theme:x,children:Ki.jsx(tq,{app:n,model:r,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:Ki.jsx(i$,{...y,direction:o})})})}))}({app:t,model:n,rootElement:r,layout:o,tableData:k,direction:v,pageInfo:C,setPageInfo:R,interactions:i,translator:a,selectionsAPI:l,theme:s,changeSortOrder:u,keyboard:c,rect:d,footerContainer:y,announce:E,embed:p,applyColumnWidths:m,viewService:g,env:b},f)}),[t,n,f,k,i,v,s,c.active,E,u,m,S,o,l,p,r,C,R,a,d,y,h,b])};const VH=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min(mN,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},WH=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,env:b})=>{const v=!pL(n,g),y=e.useMemo((()=>function(e,t,n){const r=iL(e,n),o=cL(e),i=e.qHyperCube.qSize.qcy,a=Math.min(mN,i),l=i>mN&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:x,setPage:S}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min(mN,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/mN);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=VH({model:r,layout:n,page:x.page,shouldRender:v});e.useEffect((()=>{var e;v&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{v&&r&&c&&E&&!w&&h&&function(e,t){const{app:n,selectionsAPI:r,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:x}=e,S=rq("ltr");t.render(Ki.jsx(G.StrictMode,{children:Ki.jsx(h_,{theme:S,children:Ki.jsx(tq,{app:n,selectionsAPI:r,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:x,children:Ki.jsx(zH,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:y,applyColumnWidths:m,setPage:S,pageInfo:x,initialDataPages:E,viewService:g,env:b},f)}),[t,n,r,o,i,a.active,l,s,u,c,v,d,p,f,y,m,S,x,w,E,h,b])},UH={version:JSON.stringify("3.10.5"),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 GH(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.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:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const YH=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},KH=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const XH=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||HH.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},JH=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=iL(e,t);if(pL(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=GH(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:XH(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)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=YH(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(KH(m,h,g)?d:d+1)+c;let v=p+c;const y=YH(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(KH(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:XH(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},QH=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),ZH=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:UH},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:JA,exportProperties:KA,exploration:QA},ext:VP(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>pk(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n: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}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=sk(i,r,QH,ZH),v=((t,n)=>e.useMemo((()=>((e,t)=>{if(t)return async(n,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=n,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=r!==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)}})(t.qDimensionInfo.length,n)),[t.qDimensionInfo.length,n]))(i.qHyperCube,l),y=WP(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=TN(n,t,!1),{fontSize:i,fontFamily:a}=NN(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${Ek}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Mk(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=JH(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>JH(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),WH({app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:v,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t}),BH({app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:v,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:y,isFontLoaded:x,viewService:h,env:t})}}}}));