@nebula.js/sn-table 3.13.1 → 3.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.13.1
2
+ * @nebula.js/sn-table v3.13.2
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -14,7 +14,7 @@ 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
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- function ii(e,t){let n;return n=t?Zo(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Zo(e),n}ri.propTypes={defaultTheme:ze.object,styles:ze.oneOfType([ze.array,ze.string,ze.object,ze.func])};const ai=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var li=Object.freeze({__proto__:null,GlobalStyles:oi,StyledEngineProvider:ni,ThemeContext:Vo,css:Xo,default:ii,internal_processStyles:ai,keyframes:ti});function si(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ui(e){if(!si(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=ui(e[n])})),t}function ci(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return si(e)&&si(t)&&Object.keys(t).forEach((o=>{si(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&si(e[o])?r[o]=ci(e[o],t[o],n):n.clone?r[o]=si(t[o])?ui(t[o]):t[o]:r[o]=t[o]})),r}var di,pi=Object.freeze({__proto__:null,default:ci,isPlainObject:si}),fi={exports:{}},mi={},hi=Symbol.for("react.element"),gi=Symbol.for("react.portal"),bi=Symbol.for("react.fragment"),vi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),xi=Symbol.for("react.provider"),Si=Symbol.for("react.context"),Ei=Symbol.for("react.server_context"),wi=Symbol.for("react.forward_ref"),Ci=Symbol.for("react.suspense"),Ri=Symbol.for("react.suspense_list"),ki=Symbol.for("react.memo"),Ai=Symbol.for("react.lazy"),Ii=Symbol.for("react.offscreen");function Pi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case yi:case vi:case Ci:case Ri:return e;default:switch(e=e&&e.$$typeof){case Ei:case Si:case wi:case Ai:case ki:case xi:return e;default:return t}}case gi:return t}}}di=Symbol.for("react.module.reference"),mi.ContextConsumer=Si,mi.ContextProvider=xi,mi.Element=hi,mi.ForwardRef=wi,mi.Fragment=bi,mi.Lazy=Ai,mi.Memo=ki,mi.Portal=gi,mi.Profiler=yi,mi.StrictMode=vi,mi.Suspense=Ci,mi.SuspenseList=Ri,mi.isAsyncMode=function(){return!1},mi.isConcurrentMode=function(){return!1},mi.isContextConsumer=function(e){return Pi(e)===Si},mi.isContextProvider=function(e){return Pi(e)===xi},mi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},mi.isForwardRef=function(e){return Pi(e)===wi},mi.isFragment=function(e){return Pi(e)===bi},mi.isLazy=function(e){return Pi(e)===Ai},mi.isMemo=function(e){return Pi(e)===ki},mi.isPortal=function(e){return Pi(e)===gi},mi.isProfiler=function(e){return Pi(e)===yi},mi.isStrictMode=function(e){return Pi(e)===vi},mi.isSuspense=function(e){return Pi(e)===Ci},mi.isSuspenseList=function(e){return Pi(e)===Ri},mi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bi||e===yi||e===vi||e===Ci||e===Ri||e===Ii||"object"==typeof e&&null!==e&&(e.$$typeof===Ai||e.$$typeof===ki||e.$$typeof===xi||e.$$typeof===Si||e.$$typeof===wi||e.$$typeof===di||void 0!==e.getModuleId)},mi.typeOf=Pi,fi.exports=mi;var Mi=fi.exports;const Li=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Di(e){const t=`${e}`.match(Li);return t&&t[1]||""}function _i(e,t=""){return e.displayName||e.name||Di(e)||t}function Ti(e,t,n){const r=_i(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Oi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return _i(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Mi.ForwardRef:return Ti(e,e.render,"ForwardRef");case Mi.Memo:return Ti(e,e.type,"memo");default:return}}},getFunctionName:Di});function Ni(e){if("string"!=typeof e)throw new Error(mn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var qi=Object.freeze({__proto__:null,default:Ni});function Fi(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function zi(e){return e&&e.ownerDocument||document}function ji(e){return zi(e).defaultView||window}function Hi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var $i="undefined"!=typeof window?It.useLayoutEffect:It.useEffect;function Bi(e){const t=It.useRef(e);return $i((()=>{t.current=e})),It.useRef(((...e)=>(0,t.current)(...e))).current}function Wi(...e){return It.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Hi(e,t)}))}),e)}const Vi={};const Ui=[];let Gi=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Yi(){const e=function(e,t){const n=It.useRef(Vi);return n.current===Vi&&(n.current=e(t)),n}(Gi.create).current;var t;return t=e.disposeEffect,It.useEffect(t,Ui),e}let Ki=!0,Xi=!1;const Ji=new Gi,Qi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Zi(e){e.metaKey||e.altKey||e.ctrlKey||(Ki=!0)}function ea(){Ki=!1}function ta(){"hidden"===this.visibilityState&&Xi&&(Ki=!0)}function na(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ki||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Qi[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ra(){const e=It.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Zi,!0),t.addEventListener("mousedown",ea,!0),t.addEventListener("pointerdown",ea,!0),t.addEventListener("touchstart",ea,!0),t.addEventListener("visibilitychange",ta,!0))}),[]),t=It.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!na(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Xi=!0,Ji.start(100,(()=>{Xi=!1})),t.current=!1,!0)},ref:e}}function oa(e,t){const n=_e({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=_e({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=_e({},i),Object.keys(o).forEach((e=>{n[r][e]=oa(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function ia(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const aa=e=>e;var la=(()=>{let e=aa;return{configure(t){e=t},generate:t=>e(t),reset(){e=aa}}})();const sa={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ua(e,t,n="Mui"){const r=sa[t];return r?`${n}-${r}`:`${la.generate(e)}-${t}`}function ca(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ua(e,t,n)})),r}function da(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var pa=Object.freeze({__proto__:null,default:da});function fa(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ma(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const ha=["values","unit","step"];function ga(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$e(e,ha),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>_e({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return _e({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ba={borderRadius:4};function va(e,t){return t?ci(e,t,{clone:!1}):e}const ya={xs:0,sm:600,md:900,lg:1200,xl:1536},xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ya[e]}px)`};function Sa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xa;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ya).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ea(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function wa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ea(e,n)||r,t&&(o=t(o,r,e)),o}function Ca(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ea(e.theme,r)||{};return Sa(e,i,(e=>{let r=wa(a,o,e);return e===r&&"string"==typeof e&&(r=wa(a,o,`${t}${"default"===e?"":Ni(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ra={m:"margin",p:"padding"},ka={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ia=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Aa[e])return[e];e=Aa[e]}const[t,n]=e.split(""),r=Ra[t],o=ka[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function La(e,t,n,r){var o;const i=null!=(o=Ea(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Da(e){return La(e,"spacing",8)}function _a(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Ta(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=_a(t,n),e)),{})}(Ia(n),r);return Sa(e,e[n],o)}function Oa(e,t){const n=Da(e.theme);return Object.keys(e).map((r=>Ta(e,t,r,n))).reduce(va,{})}function Na(e){return Oa(e,Pa)}function qa(e){return Oa(e,Ma)}function Fa(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?va(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function za(e){return"number"!=typeof e?e:`${e}px solid`}function ja(e,t){return Ca({prop:e,themeKey:"borders",transform:t})}Na.propTypes={},Na.filterProps=Pa,qa.propTypes={},qa.filterProps=Ma;const Ha=ja("border",za),$a=ja("borderTop",za),Ba=ja("borderRight",za),Wa=ja("borderBottom",za),Va=ja("borderLeft",za),Ua=ja("borderColor"),Ga=ja("borderTopColor"),Ya=ja("borderRightColor"),Ka=ja("borderBottomColor"),Xa=ja("borderLeftColor"),Ja=ja("outline",za),Qa=ja("outlineColor"),Za=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=La(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:_a(t,e)});return Sa(e,e.borderRadius,n)}return null};Za.propTypes={},Za.filterProps=["borderRadius"],Fa(Ha,$a,Ba,Wa,Va,Ua,Ga,Ya,Ka,Xa,Za,Ja,Qa);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=La(e.theme,"spacing",8),n=e=>({gap:_a(t,e)});return Sa(e,e.gap,n)}return null};el.propTypes={},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=La(e.theme,"spacing",8),n=e=>({columnGap:_a(t,e)});return Sa(e,e.columnGap,n)}return null};tl.propTypes={},tl.filterProps=["columnGap"];const nl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=La(e.theme,"spacing",8),n=e=>({rowGap:_a(t,e)});return Sa(e,e.rowGap,n)}return null};nl.propTypes={},nl.filterProps=["rowGap"];function rl(e,t){return"grey"===t?t:e}Fa(el,tl,nl,Ca({prop:"gridColumn"}),Ca({prop:"gridRow"}),Ca({prop:"gridAutoFlow"}),Ca({prop:"gridAutoColumns"}),Ca({prop:"gridAutoRows"}),Ca({prop:"gridTemplateColumns"}),Ca({prop:"gridTemplateRows"}),Ca({prop:"gridTemplateAreas"}),Ca({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Fa(Ca({prop:"color",themeKey:"palette",transform:rl}),Ca({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rl}),Ca({prop:"backgroundColor",themeKey:"palette",transform:rl}));const il=Ca({prop:"width",transform:ol}),al=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ya[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ol(t)}};return Sa(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const ll=Ca({prop:"minWidth",transform:ol}),sl=Ca({prop:"height",transform:ol}),ul=Ca({prop:"maxHeight",transform:ol}),cl=Ca({prop:"minHeight",transform:ol});Ca({prop:"size",cssProperty:"width",transform:ol}),Ca({prop:"size",cssProperty:"height",transform:ol});Fa(il,al,ll,sl,ul,cl,Ca({prop:"boxSizing"}));var dl={border:{themeKey:"borders",transform:za},borderTop:{themeKey:"borders",transform:za},borderRight:{themeKey:"borders",transform:za},borderBottom:{themeKey:"borders",transform:za},borderLeft:{themeKey:"borders",transform:za},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:za},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Za},color:{themeKey:"palette",transform:rl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rl},backgroundColor:{themeKey:"palette",transform:rl},p:{style:qa},pt:{style:qa},pr:{style:qa},pb:{style:qa},pl:{style:qa},px:{style:qa},py:{style:qa},padding:{style:qa},paddingTop:{style:qa},paddingRight:{style:qa},paddingBottom:{style:qa},paddingLeft:{style:qa},paddingX:{style:qa},paddingY:{style:qa},paddingInline:{style:qa},paddingInlineStart:{style:qa},paddingInlineEnd:{style:qa},paddingBlock:{style:qa},paddingBlockStart:{style:qa},paddingBlockEnd:{style:qa},m:{style:Na},mt:{style:Na},mr:{style:Na},mb:{style:Na},ml:{style:Na},mx:{style:Na},my:{style:Na},margin:{style:Na},marginTop:{style:Na},marginRight:{style:Na},marginBottom:{style:Na},marginLeft:{style:Na},marginX:{style:Na},marginY:{style:Na},marginInline:{style:Na},marginInlineStart:{style:Na},marginInlineEnd:{style:Na},marginBlock:{style:Na},marginBlockStart:{style:Na},marginBlockEnd:{style:Na},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:el},rowGap:{style:nl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const pl=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ea(n,l)||{};if(u)return u(o);return Sa(o,t,(t=>{let n=wa(c,s,t);return t===n&&"string"==typeof t&&(n=wa(c,s,`${e}${"default"===t?"":Ni(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:dl;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=va(s,e(n,o,i,a));else{const e=Sa({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=va(s,e):s[n]=t({sx:o,theme:i})}else s=va(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();pl.filterProps=["sx"];var fl=pl;function ml(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const hl=["breakpoints","palette","spacing","shape"];function gl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$e(e,hl),l=ga(n),s=function(e=8){if(e.mui)return e;const t=Da({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ci({breakpoints:l,direction:"ltr",components:{},palette:_e({mode:"light"},r),spacing:s,shape:_e({},ba,i)},a);return u.applyStyles=ml,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=_e({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}function bl(e=null){const t=It.useContext(Vo);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const vl=gl();function yl(e=vl){return bl(e)}var xl={exports:{}},Sl={},El=It,wl=Symbol.for("react.element"),Cl=Symbol.for("react.fragment"),Rl=Object.prototype.hasOwnProperty,kl=El.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Al={key:!0,ref:!0,__self:!0,__source:!0};function Il(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Rl.call(t,r)&&!Al.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:wl,type:e,key:i,ref:a,props:o,_owner:kl.current}}Sl.Fragment=Cl,Sl.jsx=Il,Sl.jsxs=Il,xl.exports=Sl;var Pl=xl.exports;function Ml({styles:e,themeId:t,defaultTheme:n={}}){const r=yl(n),o="function"==typeof e?e(t&&r[t]||r):e;return Pl.jsx(oi,{styles:o})}const Ll=["sx"];function Dl(e){const{sx:t}=e,n=$e(e,Ll),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return si(n)?_e({},r,n):r}:_e({},r,t),_e({},o,{sx:i})}const _l=["className","component"];const Tl=["ownerState"],Ol=["variants"],Nl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ql(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fl=gl(),zl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function jl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Hl(e){return e?(t,n)=>n[e]:null}function $l(e,t){let{ownerState:n}=t,r=$e(t,Tl);const o="function"==typeof e?e(_e({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$l(e,_e({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=$e(o,Ol);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(_e({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(_e({ownerState:n},r)):e.style))})),t}return o}function Bl({props:e,name:t,defaultTheme:n,themeId:r}){let o=yl(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?oa(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Wl(e,t=0,n=1){return da(e,t,n)}function Vl(e){if(e.type)return e;if("#"===e.charAt(0))return Vl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(mn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(mn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Ul(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Gl(e){let t="hsl"===(e=Vl(e)).type||"hsla"===e.type?Vl(function(e){e=Vl(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ul({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Yl(e,t){return e=Vl(e),t=Wl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ul(e)}function Kl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xl(e){if(!Kl(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Xl(e[n])})),t}function Jl(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return Kl(e)&&Kl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kl(t[o])&&o in e&&Kl(e[o])?r[o]=Jl(e[o],t[o],n):n.clone?r[o]=Kl(t[o])?Xl(t[o]):t[o]:r[o]=t[o])})),r}function Ql(e){if("string"!=typeof e)throw new Error(cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zl(e){return e&&e.ownerDocument||document}function es(e){return Zl(e).defaultView||window}var ts="undefined"!=typeof window?It.useLayoutEffect:It.useEffect;let ns=0;const rs=Mt["useId".toString()];function os(e){if(void 0!==rs){const t=rs();return null!=e?e:t}return function(e){const[t,n]=It.useState(e),r=e||t;return It.useEffect((()=>{null==t&&(ns+=1,n(`mui-${ns}`))}),[t]),r}(e)}function is({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=It.useRef(void 0!==e),[i,a]=It.useState(t);return[o?e:i,It.useCallback((e=>{o||a(e)}),[])]}function as(e){const t=It.useRef(e);return ts((()=>{t.current=e})),It.useRef(((...e)=>(0,t.current)(...e))).current}function ls(...e){return It.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ss{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ss}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let us=!0,cs=!1;const ds=new ss,ps={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fs(e){e.metaKey||e.altKey||e.ctrlKey||(us=!0)}function ms(){us=!1}function hs(){"hidden"===this.visibilityState&&cs&&(us=!0)}function gs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return us||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ps[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bs(){const e=It.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fs,!0),t.addEventListener("mousedown",ms,!0),t.addEventListener("pointerdown",ms,!0),t.addEventListener("touchstart",ms,!0),t.addEventListener("visibilitychange",hs,!0))}),[]),t=It.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cs=!0,ds.start(100,(()=>{cs=!1})),t.current=!1,!0)},ref:e}}function vs(e,t){const n=_e({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=_e({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=_e({},i),Object.keys(o).forEach((e=>{n[r][e]=vs(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const ys=e=>e;var xs=(()=>{let e=ys;return{configure(t){e=t},generate:t=>e(t),reset(){e=ys}}})();const Ss={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Es(e,t,n="Mui"){const r=Ss[t];return r?`${n}-${r}`:`${xs.generate(e)}-${t}`}function ws(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Es(e,t,n)})),r}const Cs=["mode","contrastThreshold","tonalOffset"],Rs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tn.white,default:tn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ks={text:{primary:tn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function As(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Vl(e),t=Wl(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ul(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Vl(e),t=Wl(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ul(e)}(e.main,i)))}function Is(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fn(e,Cs),i=e.primary||function(e="light"){return"dark"===e?{main:on[200],light:on[50],dark:on[400]}:{main:on[700],light:on[400],dark:on[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[500],light:rn[300],dark:rn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:nn[500],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[400],dark:nn[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:an[400],light:an[300],dark:an[700]}:{main:an[700],light:an[500],dark:an[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ln[400],light:ln[300],dark:ln[700]}:{main:ln[800],light:ln[500],dark:ln[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sn[400],light:sn[300],dark:sn[700]}:{main:"#ed6c02",light:sn[500],dark:sn[900]}}(t);function d(e){const t=function(e,t){const n=Gl(e),r=Gl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ks.text.primary)>=n?ks.text.primary:Rs.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(cn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return As(e,"light",o,r),As(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ks,light:Rs};return Jl(pn({common:pn({},tn),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:un,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ps=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ms={textTransform:"uppercase"},Ls='"Roboto", "Helvetica", "Arial", sans-serif';function Ds(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ls,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=fn(n,Ps),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return pn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ls?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ms),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ms),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jl(pn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _s(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Ts=["none",_s(0,2,1,-1,0,1,1,0,0,1,3,0),_s(0,3,1,-2,0,2,2,0,0,1,5,0),_s(0,3,3,-2,0,3,4,0,0,1,8,0),_s(0,2,4,-1,0,4,5,0,0,1,10,0),_s(0,3,5,-1,0,5,8,0,0,1,14,0),_s(0,3,5,-1,0,6,10,0,0,1,18,0),_s(0,4,5,-2,0,7,10,1,0,2,16,1),_s(0,5,5,-3,0,8,10,1,0,3,14,2),_s(0,5,6,-3,0,9,12,1,0,3,16,2),_s(0,6,6,-3,0,10,14,1,0,4,18,3),_s(0,6,7,-4,0,11,15,1,0,4,20,3),_s(0,7,8,-4,0,12,17,2,0,5,22,4),_s(0,7,8,-4,0,13,19,2,0,5,24,4),_s(0,7,9,-4,0,14,21,2,0,5,26,4),_s(0,8,9,-5,0,15,22,2,0,6,28,5),_s(0,8,10,-5,0,16,24,2,0,6,30,5),_s(0,8,11,-5,0,17,26,2,0,6,32,5),_s(0,9,11,-5,0,18,28,2,0,7,34,6),_s(0,9,12,-6,0,19,29,2,0,7,36,6),_s(0,10,13,-6,0,20,31,3,0,8,38,7),_s(0,10,13,-6,0,21,33,3,0,8,40,7),_s(0,10,14,-6,0,22,35,3,0,8,42,7),_s(0,11,14,-7,0,23,36,3,0,9,44,8),_s(0,11,15,-7,0,24,38,3,0,9,46,8)];const Os=["duration","easing","delay"],Ns={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)"},qs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fs(e){return`${Math.round(e)}ms`}function zs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function js(e){const t=pn({},Ns,e.easing),n=pn({},qs,e.duration);return pn({getAutoHeightDuration:zs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return fn(r,Os),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fs(o)} ${i} ${"string"==typeof a?a:Fs(a)}`)).join(",")}},e,{easing:t,duration:n})}var Hs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $s=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=fn(e,$s);if(e.vars)throw new Error(cn(18));const l=Is(r),s=gl(e);let u=Jl(s,{mixins:(c=s.breakpoints,d=n,pn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ts.slice(),typography:Ds(l,i),transitions:js(o),zIndex:pn({},Hs),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Jl(u,a),u=t.reduce(((e,t)=>Jl(e,t)),u),u.unstable_sxConfig=pn({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}var Ws=Bs();function Vs(){const e=yl(Ws);return e[dn]||e}function Us({props:e,name:t}){return Bl({props:e,name:t,defaultTheme:Ws,themeId:dn})}const Gs=e=>ql(e)&&"classes"!==e,Ys=ql,Ks=function(e={}){const{themeId:t,defaultTheme:n=Fl,rootShouldForwardProp:r=ql,slotShouldForwardProp:o=ql}=e,i=e=>fl(_e({},e,{theme:jl(_e({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ai(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hl(zl(s))}=a,p=$e(a,Nl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ql;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ii(e,_e({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||si(e)?r=>$l(e,_e({},r,{theme:jl({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=jl(_e({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=$l(n,_e({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=jl(_e({},e,{defaultTheme:n,themeId:t}));return $l({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},_e({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:dn,defaultTheme:Ws,rootShouldForwardProp:Gs});var Xs=Ks;var Js=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qs(e))&&(r&&(r+=" "),r+=t);return r}function eu(e){return Es("MuiSvgIcon",e)}ws("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nu=Xs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ql(n.color)}`],t[`fontSize${Ql(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ru=It.forwardRef((function(e,t){const n=Us({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=fn(n,tu),f=It.isValidElement(r)&&"svg"===r.type,m=pn({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return ia({root:["root","inherit"!==t&&`color${Ql(t)}`,`fontSize${Ql(n)}`]},eu,r)})(m);return Pl.jsxs(nu,pn({as:a,className:Zs(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Pl.jsx("title",{children:c}):null]}))}));ru.muiName="SvgIcon";var ou=ru;var iu,au={},lu=Symbol.for("react.element"),su=Symbol.for("react.portal"),uu=Symbol.for("react.fragment"),cu=Symbol.for("react.strict_mode"),du=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),fu=Symbol.for("react.context"),mu=Symbol.for("react.server_context"),hu=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),yu=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen");
17
+ function ii(e,t){let n;return n=t?Zo(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Zo(e),n}ri.propTypes={defaultTheme:ze.object,styles:ze.oneOfType([ze.array,ze.string,ze.object,ze.func])};const ai=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var li=Object.freeze({__proto__:null,GlobalStyles:oi,StyledEngineProvider:ni,ThemeContext:Vo,css:Xo,default:ii,internal_processStyles:ai,keyframes:ti});function si(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ui(e){if(!si(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=ui(e[n])})),t}function ci(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return si(e)&&si(t)&&Object.keys(t).forEach((o=>{si(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&si(e[o])?r[o]=ci(e[o],t[o],n):n.clone?r[o]=si(t[o])?ui(t[o]):t[o]:r[o]=t[o]})),r}var di,pi=Object.freeze({__proto__:null,default:ci,isPlainObject:si}),fi={exports:{}},mi={},hi=Symbol.for("react.element"),gi=Symbol.for("react.portal"),bi=Symbol.for("react.fragment"),vi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),xi=Symbol.for("react.provider"),Si=Symbol.for("react.context"),Ei=Symbol.for("react.server_context"),wi=Symbol.for("react.forward_ref"),Ci=Symbol.for("react.suspense"),Ri=Symbol.for("react.suspense_list"),ki=Symbol.for("react.memo"),Ai=Symbol.for("react.lazy"),Ii=Symbol.for("react.offscreen");function Pi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case yi:case vi:case Ci:case Ri:return e;default:switch(e=e&&e.$$typeof){case Ei:case Si:case wi:case Ai:case ki:case xi:return e;default:return t}}case gi:return t}}}di=Symbol.for("react.module.reference"),mi.ContextConsumer=Si,mi.ContextProvider=xi,mi.Element=hi,mi.ForwardRef=wi,mi.Fragment=bi,mi.Lazy=Ai,mi.Memo=ki,mi.Portal=gi,mi.Profiler=yi,mi.StrictMode=vi,mi.Suspense=Ci,mi.SuspenseList=Ri,mi.isAsyncMode=function(){return!1},mi.isConcurrentMode=function(){return!1},mi.isContextConsumer=function(e){return Pi(e)===Si},mi.isContextProvider=function(e){return Pi(e)===xi},mi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},mi.isForwardRef=function(e){return Pi(e)===wi},mi.isFragment=function(e){return Pi(e)===bi},mi.isLazy=function(e){return Pi(e)===Ai},mi.isMemo=function(e){return Pi(e)===ki},mi.isPortal=function(e){return Pi(e)===gi},mi.isProfiler=function(e){return Pi(e)===yi},mi.isStrictMode=function(e){return Pi(e)===vi},mi.isSuspense=function(e){return Pi(e)===Ci},mi.isSuspenseList=function(e){return Pi(e)===Ri},mi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bi||e===yi||e===vi||e===Ci||e===Ri||e===Ii||"object"==typeof e&&null!==e&&(e.$$typeof===Ai||e.$$typeof===ki||e.$$typeof===xi||e.$$typeof===Si||e.$$typeof===wi||e.$$typeof===di||void 0!==e.getModuleId)},mi.typeOf=Pi,fi.exports=mi;var Mi=fi.exports;const Li=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Di(e){const t=`${e}`.match(Li);return t&&t[1]||""}function _i(e,t=""){return e.displayName||e.name||Di(e)||t}function Ti(e,t,n){const r=_i(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Oi=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return _i(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Mi.ForwardRef:return Ti(e,e.render,"ForwardRef");case Mi.Memo:return Ti(e,e.type,"memo");default:return}}},getFunctionName:Di});function Ni(e){if("string"!=typeof e)throw new Error(mn(7));return e.charAt(0).toUpperCase()+e.slice(1)}var qi=Object.freeze({__proto__:null,default:Ni});function Fi(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function zi(e){return e&&e.ownerDocument||document}function ji(e){return zi(e).defaultView||window}function Hi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var $i="undefined"!=typeof window?It.useLayoutEffect:It.useEffect;function Bi(e){const t=It.useRef(e);return $i((()=>{t.current=e})),It.useRef(((...e)=>(0,t.current)(...e))).current}function Wi(...e){return It.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Hi(e,t)}))}),e)}const Vi={};const Ui=[];let Gi=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function Yi(){const e=function(e,t){const n=It.useRef(Vi);return n.current===Vi&&(n.current=e(t)),n}(Gi.create).current;return function(e){It.useEffect(e,Ui)}(e.disposeEffect),e}let Ki=!0,Xi=!1;const Ji=new Gi,Qi={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Zi(e){e.metaKey||e.altKey||e.ctrlKey||(Ki=!0)}function ea(){Ki=!1}function ta(){"hidden"===this.visibilityState&&Xi&&(Ki=!0)}function na(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ki||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Qi[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ra(){const e=It.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Zi,!0),t.addEventListener("mousedown",ea,!0),t.addEventListener("pointerdown",ea,!0),t.addEventListener("touchstart",ea,!0),t.addEventListener("visibilitychange",ta,!0))}),[]),t=It.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!na(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Xi=!0,Ji.start(100,(()=>{Xi=!1})),t.current=!1,!0)},ref:e}}function oa(e,t){const n=_e({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=_e({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=_e({},i),Object.keys(o).forEach((e=>{n[r][e]=oa(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function ia(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const aa=e=>e;var la=(()=>{let e=aa;return{configure(t){e=t},generate:t=>e(t),reset(){e=aa}}})();const sa={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ua(e,t,n="Mui"){const r=sa[t];return r?`${n}-${r}`:`${la.generate(e)}-${t}`}function ca(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ua(e,t,n)})),r}function da(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var pa=Object.freeze({__proto__:null,default:da});function fa(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ma(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const ha=["values","unit","step"];function ga(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=$e(e,ha),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>_e({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return _e({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ba={borderRadius:4};function va(e,t){return t?ci(e,t,{clone:!1}):e}const ya={xs:0,sm:600,md:900,lg:1200,xl:1536},xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ya[e]}px)`};function Sa(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||xa;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||xa;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||ya).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ea(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function wa(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ea(e,n)||r,t&&(o=t(o,r,e)),o}function Ca(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ea(e.theme,r)||{};return Sa(e,i,(e=>{let r=wa(a,o,e);return e===r&&"string"==typeof e&&(r=wa(a,o,`${t}${"default"===e?"":Ni(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Ra={m:"margin",p:"padding"},ka={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Aa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ia=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Aa[e])return[e];e=Aa[e]}const[t,n]=e.split(""),r=Ra[t],o=ka[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function La(e,t,n,r){var o;const i=null!=(o=Ea(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Da(e){return La(e,"spacing",8)}function _a(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Ta(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=_a(t,n),e)),{})}(Ia(n),r);return Sa(e,e[n],o)}function Oa(e,t){const n=Da(e.theme);return Object.keys(e).map((r=>Ta(e,t,r,n))).reduce(va,{})}function Na(e){return Oa(e,Pa)}function qa(e){return Oa(e,Ma)}function Fa(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?va(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function za(e){return"number"!=typeof e?e:`${e}px solid`}function ja(e,t){return Ca({prop:e,themeKey:"borders",transform:t})}Na.propTypes={},Na.filterProps=Pa,qa.propTypes={},qa.filterProps=Ma;const Ha=ja("border",za),$a=ja("borderTop",za),Ba=ja("borderRight",za),Wa=ja("borderBottom",za),Va=ja("borderLeft",za),Ua=ja("borderColor"),Ga=ja("borderTopColor"),Ya=ja("borderRightColor"),Ka=ja("borderBottomColor"),Xa=ja("borderLeftColor"),Ja=ja("outline",za),Qa=ja("outlineColor"),Za=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=La(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:_a(t,e)});return Sa(e,e.borderRadius,n)}return null};Za.propTypes={},Za.filterProps=["borderRadius"],Fa(Ha,$a,Ba,Wa,Va,Ua,Ga,Ya,Ka,Xa,Za,Ja,Qa);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=La(e.theme,"spacing",8),n=e=>({gap:_a(t,e)});return Sa(e,e.gap,n)}return null};el.propTypes={},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=La(e.theme,"spacing",8),n=e=>({columnGap:_a(t,e)});return Sa(e,e.columnGap,n)}return null};tl.propTypes={},tl.filterProps=["columnGap"];const nl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=La(e.theme,"spacing",8),n=e=>({rowGap:_a(t,e)});return Sa(e,e.rowGap,n)}return null};nl.propTypes={},nl.filterProps=["rowGap"];function rl(e,t){return"grey"===t?t:e}Fa(el,tl,nl,Ca({prop:"gridColumn"}),Ca({prop:"gridRow"}),Ca({prop:"gridAutoFlow"}),Ca({prop:"gridAutoColumns"}),Ca({prop:"gridAutoRows"}),Ca({prop:"gridTemplateColumns"}),Ca({prop:"gridTemplateRows"}),Ca({prop:"gridTemplateAreas"}),Ca({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Fa(Ca({prop:"color",themeKey:"palette",transform:rl}),Ca({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:rl}),Ca({prop:"backgroundColor",themeKey:"palette",transform:rl}));const il=Ca({prop:"width",transform:ol}),al=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||ya[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ol(t)}};return Sa(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const ll=Ca({prop:"minWidth",transform:ol}),sl=Ca({prop:"height",transform:ol}),ul=Ca({prop:"maxHeight",transform:ol}),cl=Ca({prop:"minHeight",transform:ol});Ca({prop:"size",cssProperty:"width",transform:ol}),Ca({prop:"size",cssProperty:"height",transform:ol});Fa(il,al,ll,sl,ul,cl,Ca({prop:"boxSizing"}));var dl={border:{themeKey:"borders",transform:za},borderTop:{themeKey:"borders",transform:za},borderRight:{themeKey:"borders",transform:za},borderBottom:{themeKey:"borders",transform:za},borderLeft:{themeKey:"borders",transform:za},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:za},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Za},color:{themeKey:"palette",transform:rl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:rl},backgroundColor:{themeKey:"palette",transform:rl},p:{style:qa},pt:{style:qa},pr:{style:qa},pb:{style:qa},pl:{style:qa},px:{style:qa},py:{style:qa},padding:{style:qa},paddingTop:{style:qa},paddingRight:{style:qa},paddingBottom:{style:qa},paddingLeft:{style:qa},paddingX:{style:qa},paddingY:{style:qa},paddingInline:{style:qa},paddingInlineStart:{style:qa},paddingInlineEnd:{style:qa},paddingBlock:{style:qa},paddingBlockStart:{style:qa},paddingBlockEnd:{style:qa},m:{style:Na},mt:{style:Na},mr:{style:Na},mb:{style:Na},ml:{style:Na},mx:{style:Na},my:{style:Na},margin:{style:Na},marginTop:{style:Na},marginRight:{style:Na},marginBottom:{style:Na},marginLeft:{style:Na},marginX:{style:Na},marginY:{style:Na},marginInline:{style:Na},marginInlineStart:{style:Na},marginInlineEnd:{style:Na},marginBlock:{style:Na},marginBlockStart:{style:Na},marginBlockEnd:{style:Na},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:el},rowGap:{style:nl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const pl=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Ea(n,l)||{};if(u)return u(o);return Sa(o,t,(t=>{let n=wa(c,s,t);return t===n&&"string"==typeof t&&(n=wa(c,s,`${e}${"default"===t?"":Ni(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:dl;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=va(s,e(n,o,i,a));else{const e=Sa({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=va(s,e):s[n]=t({sx:o,theme:i})}else s=va(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();pl.filterProps=["sx"];var fl=pl;function ml(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const hl=["breakpoints","palette","spacing","shape"];function gl(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=$e(e,hl),l=ga(n),s=function(e=8){if(e.mui)return e;const t=Da({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=ci({breakpoints:l,direction:"ltr",components:{},palette:_e({mode:"light"},r),spacing:s,shape:_e({},ba,i)},a);return u.applyStyles=ml,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=_e({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}function bl(e=null){const t=It.useContext(Vo);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const vl=gl();function yl(e=vl){return bl(e)}var xl={exports:{}},Sl={},El=It,wl=Symbol.for("react.element"),Cl=Symbol.for("react.fragment"),Rl=Object.prototype.hasOwnProperty,kl=El.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Al={key:!0,ref:!0,__self:!0,__source:!0};function Il(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Rl.call(t,r)&&!Al.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:wl,type:e,key:i,ref:a,props:o,_owner:kl.current}}Sl.Fragment=Cl,Sl.jsx=Il,Sl.jsxs=Il,xl.exports=Sl;var Pl=xl.exports;function Ml({styles:e,themeId:t,defaultTheme:n={}}){const r=yl(n),o="function"==typeof e?e(t&&r[t]||r):e;return Pl.jsx(oi,{styles:o})}const Ll=["sx"];function Dl(e){const{sx:t}=e,n=$e(e,Ll),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:dl;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return si(n)?_e({},r,n):r}:_e({},r,t),_e({},o,{sx:i})}const _l=["className","component"];const Tl=["ownerState"],Ol=["variants"],Nl=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ql(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fl=gl(),zl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function jl({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Hl(e){return e?(t,n)=>n[e]:null}function $l(e,t){let{ownerState:n}=t,r=$e(t,Tl);const o="function"==typeof e?e(_e({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>$l(e,_e({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=$e(o,Ol);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(_e({ownerState:n},r)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(_e({ownerState:n},r)):e.style))})),t}return o}function Bl({props:e,name:t,defaultTheme:n,themeId:r}){let o=yl(n);r&&(o=o[r]||o);const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?oa(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}function Wl(e,t=0,n=1){return da(e,t,n)}function Vl(e){if(e.type)return e;if("#"===e.charAt(0))return Vl(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(mn(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(mn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Ul(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Gl(e){let t="hsl"===(e=Vl(e)).type||"hsla"===e.type?Vl(function(e){e=Vl(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Ul({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Yl(e,t){return e=Vl(e),t=Wl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ul(e)}function Kl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xl(e){if(!Kl(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Xl(e[n])})),t}function Jl(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return Kl(e)&&Kl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kl(t[o])&&o in e&&Kl(e[o])?r[o]=Jl(e[o],t[o],n):n.clone?r[o]=Kl(t[o])?Xl(t[o]):t[o]:r[o]=t[o])})),r}function Ql(e){if("string"!=typeof e)throw new Error(cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Zl(e){return e&&e.ownerDocument||document}function es(e){return Zl(e).defaultView||window}var ts="undefined"!=typeof window?It.useLayoutEffect:It.useEffect;let ns=0;const rs=Mt["useId".toString()];function os(e){if(void 0!==rs){const t=rs();return null!=e?e:t}return function(e){const[t,n]=It.useState(e),r=e||t;return It.useEffect((()=>{null==t&&(ns+=1,n(`mui-${ns}`))}),[t]),r}(e)}function is({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=It.useRef(void 0!==e),[i,a]=It.useState(t);return[o?e:i,It.useCallback((e=>{o||a(e)}),[])]}function as(e){const t=It.useRef(e);return ts((()=>{t.current=e})),It.useRef(((...e)=>(0,t.current)(...e))).current}function ls(...e){return It.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class ss{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ss}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let us=!0,cs=!1;const ds=new ss,ps={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function fs(e){e.metaKey||e.altKey||e.ctrlKey||(us=!0)}function ms(){us=!1}function hs(){"hidden"===this.visibilityState&&cs&&(us=!0)}function gs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return us||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ps[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function bs(){const e=It.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fs,!0),t.addEventListener("mousedown",ms,!0),t.addEventListener("pointerdown",ms,!0),t.addEventListener("touchstart",ms,!0),t.addEventListener("visibilitychange",hs,!0))}),[]),t=It.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cs=!0,ds.start(100,(()=>{cs=!1})),t.current=!1,!0)},ref:e}}function vs(e,t){const n=_e({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=_e({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=_e({},i),Object.keys(o).forEach((e=>{n[r][e]=vs(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const ys=e=>e;var xs=(()=>{let e=ys;return{configure(t){e=t},generate:t=>e(t),reset(){e=ys}}})();const Ss={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Es(e,t,n="Mui"){const r=Ss[t];return r?`${n}-${r}`:`${xs.generate(e)}-${t}`}function ws(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Es(e,t,n)})),r}const Cs=["mode","contrastThreshold","tonalOffset"],Rs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tn.white,default:tn.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ks={text:{primary:tn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function As(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Vl(e),t=Wl(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ul(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Vl(e),t=Wl(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ul(e)}(e.main,i)))}function Is(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=fn(e,Cs),i=e.primary||function(e="light"){return"dark"===e?{main:on[200],light:on[50],dark:on[400]}:{main:on[700],light:on[400],dark:on[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[500],light:rn[300],dark:rn[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:nn[500],light:nn[300],dark:nn[700]}:{main:nn[700],light:nn[400],dark:nn[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:an[400],light:an[300],dark:an[700]}:{main:an[700],light:an[500],dark:an[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ln[400],light:ln[300],dark:ln[700]}:{main:ln[800],light:ln[500],dark:ln[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sn[400],light:sn[300],dark:sn[700]}:{main:"#ed6c02",light:sn[500],dark:sn[900]}}(t);function d(e){const t=function(e,t){const n=Gl(e),r=Gl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ks.text.primary)>=n?ks.text.primary:Rs.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=pn({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(cn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return As(e,"light",o,r),As(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ks,light:Rs};return Jl(pn({common:pn({},tn),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:un,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ps=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ms={textTransform:"uppercase"},Ls='"Roboto", "Helvetica", "Arial", sans-serif';function Ds(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ls,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=fn(n,Ps),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,n,o,i)=>{return pn({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===Ls?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,Ms),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ms),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jl(pn({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function _s(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var Ts=["none",_s(0,2,1,-1,0,1,1,0,0,1,3,0),_s(0,3,1,-2,0,2,2,0,0,1,5,0),_s(0,3,3,-2,0,3,4,0,0,1,8,0),_s(0,2,4,-1,0,4,5,0,0,1,10,0),_s(0,3,5,-1,0,5,8,0,0,1,14,0),_s(0,3,5,-1,0,6,10,0,0,1,18,0),_s(0,4,5,-2,0,7,10,1,0,2,16,1),_s(0,5,5,-3,0,8,10,1,0,3,14,2),_s(0,5,6,-3,0,9,12,1,0,3,16,2),_s(0,6,6,-3,0,10,14,1,0,4,18,3),_s(0,6,7,-4,0,11,15,1,0,4,20,3),_s(0,7,8,-4,0,12,17,2,0,5,22,4),_s(0,7,8,-4,0,13,19,2,0,5,24,4),_s(0,7,9,-4,0,14,21,2,0,5,26,4),_s(0,8,9,-5,0,15,22,2,0,6,28,5),_s(0,8,10,-5,0,16,24,2,0,6,30,5),_s(0,8,11,-5,0,17,26,2,0,6,32,5),_s(0,9,11,-5,0,18,28,2,0,7,34,6),_s(0,9,12,-6,0,19,29,2,0,7,36,6),_s(0,10,13,-6,0,20,31,3,0,8,38,7),_s(0,10,13,-6,0,21,33,3,0,8,40,7),_s(0,10,14,-6,0,22,35,3,0,8,42,7),_s(0,11,14,-7,0,23,36,3,0,9,44,8),_s(0,11,15,-7,0,24,38,3,0,9,46,8)];const Os=["duration","easing","delay"],Ns={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)"},qs={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fs(e){return`${Math.round(e)}ms`}function zs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function js(e){const t=pn({},Ns,e.easing),n=pn({},qs,e.duration);return pn({getAutoHeightDuration:zs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return fn(r,Os),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fs(o)} ${i} ${"string"==typeof a?a:Fs(a)}`)).join(",")}},e,{easing:t,duration:n})}var Hs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $s=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bs(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=fn(e,$s);if(e.vars)throw new Error(cn(18));const l=Is(r),s=gl(e);let u=Jl(s,{mixins:(c=s.breakpoints,d=n,pn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ts.slice(),typography:Ds(l,i),transitions:js(o),zIndex:pn({},Hs),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Jl(u,a),u=t.reduce(((e,t)=>Jl(e,t)),u),u.unstable_sxConfig=pn({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}var Ws=Bs();function Vs(){const e=yl(Ws);return e[dn]||e}function Us({props:e,name:t}){return Bl({props:e,name:t,defaultTheme:Ws,themeId:dn})}const Gs=e=>ql(e)&&"classes"!==e,Ys=ql,Ks=function(e={}){const{themeId:t,defaultTheme:n=Fl,rootShouldForwardProp:r=ql,slotShouldForwardProp:o=ql}=e,i=e=>fl(_e({},e,{theme:jl(_e({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ai(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hl(zl(s))}=a,p=$e(a,Nl),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ql;"Root"===s||"root"===s?h=r:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=ii(e,_e({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||si(e)?r=>$l(e,_e({},r,{theme:jl({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=jl(_e({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=$l(n,_e({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=jl(_e({},e,{defaultTheme:n,themeId:t}));return $l({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},_e({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:dn,defaultTheme:Ws,rootShouldForwardProp:Gs});var Xs=Ks;var Js=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Qs(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qs(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zs(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qs(e))&&(r&&(r+=" "),r+=t);return r}function eu(e){return Es("MuiSvgIcon",e)}ws("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],nu=Xs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ql(n.color)}`],t[`fontSize${Ql(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),ru=It.forwardRef((function(e,t){const n=Us({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,p=fn(n,tu),f=It.isValidElement(r)&&"svg"===r.type,m=pn({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return ia({root:["root","inherit"!==t&&`color${Ql(t)}`,`fontSize${Ql(n)}`]},eu,r)})(m);return Pl.jsxs(nu,pn({as:a,className:Zs(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,c?Pl.jsx("title",{children:c}):null]}))}));ru.muiName="SvgIcon";var ou=ru;var iu,au={},lu=Symbol.for("react.element"),su=Symbol.for("react.portal"),uu=Symbol.for("react.fragment"),cu=Symbol.for("react.strict_mode"),du=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),fu=Symbol.for("react.context"),mu=Symbol.for("react.server_context"),hu=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),yu=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen");
18
18
  /**
19
19
  * @license React
20
20
  * react-is.production.min.js
@@ -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
- `),BT.rippleVisible,XT,550,(({theme:e})=>e.transitions.easing.easeInOut),BT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),BT.child,BT.childLeaving,JT,550,(({theme:e})=>e.transitions.easing.easeInOut),BT.childPulsate,QT,(({theme:e})=>e.transitions.easing.easeInOut)),tO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=$e(n,WT),[l,s]=It.useState([]),u=It.useRef(0),c=It.useRef(null);It.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=It.useRef(!1),p=Yi(),f=It.useRef(null),m=It.useRef(null),h=It.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Pl.jsx(eO,{classes:{ripple:ma(o.ripple,BT.ripple),rippleVisible:ma(o.rippleVisible,BT.rippleVisible),ripplePulsate:ma(o.ripplePulsate,BT.ripplePulsate),child:ma(o.child,BT.child),childLeaving:ma(o.childLeaving,BT.childLeaving),childPulsate:ma(o.childPulsate,BT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=It.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=It.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=It.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 It.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Pl.jsx(ZT,_e({className:ma(BT.root,o.root,i),ref:m},a,{children:Pl.jsx(Bx,{component:null,exit:!0,children:l})}))}));var nO=tO;function rO(e){return ua("MuiButtonBase",e)}var oO=ca("MuiButtonBase",["root","disabled","focusVisible"]);const iO=["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"],aO=w_("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"},[`&.${oO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lO=It.forwardRef((function(e,t){const n=$T({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:I,touchRippleRef:P,type:M}=n,L=$e(n,iO),D=It.useRef(null),_=It.useRef(null),T=Wi(_,P),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=ra(),[z,j]=It.useState(!1);s&&z&&j(!1),It.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[H,$]=It.useState(!1);It.useEffect((()=>{$(!0)}),[]);const B=H&&!u&&!s;function W(e,t,n=c){return Bi((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}It.useEffect((()=>{z&&d&&!u&&H&&_.current.pulsate()}),[u,d,z,H]);const V=W("start",S),U=W("stop",h),G=W("stop",g),Y=W("stop",w),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",k),J=W("stop",C),Q=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Bi((e=>{D.current||(D.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=It.useRef(!1),re=Bi((e=>{d&&!ne.current&&z&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Bi((e=>{d&&" "===e.key&&_.current&&z&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(L.href||L.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(L.href||L.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Wi(t,F,D),se=_e({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ia({root:["root",t&&"disabled",n&&"focusVisible"]},rO,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Pl.jsxs(aO,_e({as:ie,className:ma(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:V,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:s?-1:A,type:M},ae,L,{children:[i,B?Pl.jsx(nO,_e({ref:T,center:o},I)):null]}))}));var sO=lO;var uO=ca("MuiBox",["root"]);const cO=VD(),dO=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(wL),a=It.forwardRef((function(e,a){const l=function(e=PL){return IL(e)}(n),s=LL(e),{className:u,component:c="div"}=s,d=$e(s,_L);return Pl.jsx(i,_e({as:c,ref:a,className:ma(u,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:wM,defaultTheme:cO,defaultClassName:uO.root,generateClassName:la.generate});var pO=dO;var fO=ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var mO=It.createContext({});function hO(e){return ua("MuiListItemIcon",e)}var gO=ca("MuiListItemIcon",["root","alignItemsFlexStart"]);const bO=["className"],vO=w_("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})=>_e({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var yO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=$e(n,bO),i=_e({},n,{alignItems:It.useContext(mO).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hO,n)})(i);return Pl.jsx(vO,_e({className:ma(a.root,r),ownerState:i,ref:t},o))}));var xO=ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function SO(e){return ua("MuiMenuItem",e)}var EO=ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const wO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CO=w_(sO,{shouldForwardProp:e=>E_(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})=>_e({},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"}},[`&.${EO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tD(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${EO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${EO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tD(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})`:tD(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${EO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${EO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fO.inset}`]:{marginLeft:52},[`& .${xO.root}`]:{marginTop:0,marginBottom:0},[`& .${xO.inset}`]:{paddingLeft:36},[`& .${gO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_e({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gO.root} svg`]:{fontSize:"1.25rem"}}))));var RO=It.forwardRef((function(e,t){const n=$T({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=$e(n,wO),f=It.useContext(mO),m=It.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=It.useRef(null);$i((()=>{r&&h.current&&h.current.focus()}),[r]);const g=_e({},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 _e({},a,ia({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SO,a))})(n),v=Wi(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Pl.jsx(mO.Provider,{value:m,children:Pl.jsx(CO,_e({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ma(b.focusVisible,s),className:ma(b.root,d)},p,{ownerState:g,classes:b}))})}));var kO=It.createContext();function AO(e){return ua("MuiTable",e)}ca("MuiTable",["root","stickyHeader"]);const IO=["className","component","padding","size","stickyHeader"],PO=w_("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_e({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_e({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),MO="table",LO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTable"}),{className:r,component:o=MO,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=$e(n,IO),u=_e({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return ia({root:["root",n&&"stickyHeader"]},AO,t)})(u),d=It.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Pl.jsx(kO.Provider,{value:d,children:Pl.jsx(PO,_e({as:o,role:o===MO?null:"table",ref:t,className:ma(c.root,r),ownerState:u},s))})}));var DO=LO;var _O=It.createContext();function TO(e){return ua("MuiTableBody",e)}ca("MuiTableBody",["root"]);const OO=["className","component"],NO=w_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),qO={variant:"body"},FO="tbody";var zO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableBody"}),{className:r,component:o=FO}=n,i=$e(n,OO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},TO,t)})(a);return Pl.jsx(_O.Provider,{value:qO,children:Pl.jsx(NO,_e({className:ma(l.root,r),as:o,ref:t,role:o===FO?null:"rowgroup",ownerState:a},i))})}));function jO(e){return ua("MuiTableCell",e)}var HO=ca("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const $O=["align","className","component","padding","scope","size","sortDirection","variant"],BO=w_("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ni(n.size)}`],"normal"!==n.padding&&t[`padding${Ni(n.padding)}`],"inherit"!==n.align&&t[`align${Ni(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_e({},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?oD(tD(e.palette.divider,1),.88):nD(tD(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",[`&.${HO.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}))),WO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=$e(n,$O),p=It.useContext(kO),f=It.useContext(_O),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=_e({},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 ia({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${Ni(r)}`,"normal"!==o&&`padding${Ni(o)}`,`size${Ni(i)}`]},jO,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Pl.jsx(BO,_e({as:h,ref:t,className:ma(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var VO=WO;function UO(e){return ua("MuiTableContainer",e)}ca("MuiTableContainer",["root"]);const GO=["className","component"],YO=w_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var KO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=$e(n,GO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},UO,t)})(a);return Pl.jsx(YO,_e({ref:t,as:o,className:ma(l.root,r),ownerState:a},i))}));function XO(e){return ua("MuiTableHead",e)}ca("MuiTableHead",["root"]);const JO=["className","component"],QO=w_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ZO={variant:"head"},eN="thead";var tN=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableHead"}),{className:r,component:o=eN}=n,i=$e(n,JO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},XO,t)})(a);return Pl.jsx(_O.Provider,{value:ZO,children:Pl.jsx(QO,_e({as:o,className:ma(l.root,r),ref:t,role:o===eN?null:"rowgroup",ownerState:a},i))})}));function nN(e){return ua("MuiTableRow",e)}var rN=ca("MuiTableRow",["root","selected","hover","head","footer"]);const oN=["className","component","hover","selected"],iN=w_("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,[`&.${rN.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rN.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tD(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}))`:tD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),aN="tr",lN=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableRow"}),{className:r,component:o=aN,hover:i=!1,selected:a=!1}=n,l=$e(n,oN),s=It.useContext(_O),u=_e({},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 ia({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},nN,t)})(u);return Pl.jsx(iN,_e({as:o,ref:t,className:ma(c.root,r),role:o===aN?null:"row",ownerState:u},l))}));var sN=lN,uN=(e={})=>Pt.createElement(NT,{...e},Pt.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Pt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Pt.createElement("rect",{stroke:yT.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const cN={MuiAccordion:{styleOverrides:{root:{backgroundColor:yT.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:yT.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Pt.createElement(_T,{"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 ${yT.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,borderRadius:CT,backgroundColor:yT.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 ${yT.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:yT.WHITE,color:yT.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:CT},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:yT.GREYSCALE_0_15,backgroundColor:yT.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:yT.GREEN_PALE},"&:active":{backgroundColor:yT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:yT.BLUE_PALE},"&:active":{backgroundColor:yT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.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:CT,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:yT.GREYSCALE_0_15,backgroundColor:yT.GREYSCALE_100_60,"&:active":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:yT.PURPLE,"&.Mui-focusVisible":{borderColor:yT.PURPLE,boxShadow:`0 0 0 3px ${OL(yT.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:yT.GREEN,"&.Mui-focusVisible":{borderColor:yT.GREEN,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:yT.BLUE,"&.Mui-focusVisible":{borderColor:yT.BLUE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:yT.ORANGE,"&.Mui-focusVisible":{borderColor:yT.ORANGE,boxShadow:`0 0 0 3px ${OL(yT.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:yT.RED,"&.Mui-focusVisible":{borderColor:yT.RED,boxShadow:`0 0 0 3px ${OL(yT.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:yT.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:yT.PURPLE_PALE},"&:active":{backgroundColor:yT.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:yT.PURPLE_PALE,boxShadow:`0 0 0 3px ${OL(yT.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:yT.GREEN_PALE},"&:active":{backgroundColor:yT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:yT.BLUE_PALE},"&:active":{backgroundColor:yT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:yT.ORANGE_PALE},"&:active":{backgroundColor:yT.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:yT.ORANGE_PALE,boxShadow:`0 0 0 3px ${OL(yT.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:yT.RED_PALE},"&:active":{backgroundColor:yT.RED_DARK},"&.Mui-focusVisible":{borderColor:yT.RED_PALE,boxShadow:`0 0 0 3px ${OL(yT.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:yT.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:yT.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:CT,boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Pt.createElement(OT,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:xT,borderRadius:CT,color:yT.TEXT_PRIMARY,backgroundColor:yT.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:yT.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:yT.GREYSCALE_0_05,color:yT.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:yT.GREEN,borderColor:yT.GREEN},"&.MuiChip-outlinedInfo":{color:yT.BLUE,borderColor:yT.BLUE},"&.MuiChip-outlinedWarning":{color:yT.ORANGE,borderColor:yT.ORANGE},"&.MuiChip-outlinedError":{color:yT.RED,borderColor:yT.RED}},outlined:{border:`solid 1px ${yT.GREYSCALE_0_15}`,backgroundColor:yT.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:CT,boxShadow:"none",backgroundColor:yT.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:yT.GREEN,borderColor:yT.GREEN},outlinedSecondary:{color:yT.BLUE,borderColor:yT.BLUE},label:{fontFamily:PT.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Pt.createElement(OT,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Pt.createElement(_T,{"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:CT},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:CT,fontSize:ST,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:yT.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${yT.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:yT.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:yT.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:yT.GREYSCALE_0_05}}},popupIndicator:{borderRadius:CT,border:`solid 1px ${yT.GREYSCALE_0_15}`,color:yT.GREYSCALE_0_60,marginRight:0,width:wT,height:wT},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${yT.GREYSCALE_0_15}`},clearIndicator:{borderRadius:CT,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:yT.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ST}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:xT,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:yT.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:yT.GREYSCALE_25,fontSize:xT,fontFamily:PT.FONT_FAMILY,fontWeight:AT,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:yT.TEXT_PRIMARY},"&.Mui-error":{color:yT.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:yT.TEXT_SECONDARY,content:"'(optional)'",fontWeight:kT,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:yT.TEXT_SECONDARY,content:"'(required)'",fontWeight:kT,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ST,lineHeight:"16px",backgroundColor:yT.WHITE,borderRadius:CT,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.GREYSCALE_0_05}`,borderColor:yT.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.RED}`,boxShadow:`0px 0px 0px 1px ${yT.RED}, inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.GREYSCALE_0_10}`,borderColor:yT.GREYSCALE_0_10,backgroundColor:yT.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:yT.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:yT.GREYSCALE_0_15,borderRadius:CT,boxShadow:`inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Pt.createElement(_T,{...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:yT.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:yT.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:yT.GREYSCALE_0_03},"&:active":{backgroundColor:yT.GREYSCALE_0_10},"&:focus":{backgroundColor:yT.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${yT.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:yT.GREYSCALE_0_30,"&:hover":{backgroundColor:yT.GREYSCALE_0_0,borderColor:yT.GREYSCALE_0_15},"& ~svg":{color:yT.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${yT.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:CT}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:yT.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ST,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:xT,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:xT,fontWeight:AT,color:yT.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:AT}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${yT.GREYSCALE_0_15}, 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Pt.createElement(zT,null),checkedIcon:Pt.createElement(jT,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:yT.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:yT.GREYSCALE_0_20}},"&.Mui-disabled":{fill:yT.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Pt.createElement(uN,null),checkedIcon:Pt.createElement(qT,null),indeterminateIcon:Pt.createElement(FT,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:CT,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:yT.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:yT.GREYSCALE_0_55,color:yT.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:yT.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:yT.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:yT.GREYSCALE_0_55,"&:hover":{color:yT.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:yT.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:yT.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ST,color:yT.TEXT_PRIMARY,lineHeight:"16px",fontWeight:AT},secondary:{fontSize:xT,color:yT.GREYSCALE_45,fontWeight:kT,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ST,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ST,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:yT.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:xT,borderBottom:`solid 1px ${yT.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ST,color:yT.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:yT.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:yT.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:yT.RED}}},"&.Mui-focusVisible":{backgroundColor:yT.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:yT.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:yT.GREEN,height:"24px","&.Mui-disabled":{color:yT.GREYSCALE_0_15}},rail:{backgroundColor:yT.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${yT.GREYSCALE_0_05}`,borderRadius:CT,boxShadow:`inset 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${yT.GREYSCALE_0_05}`,borderRadius:CT},thumb:{height:"16px",width:"16px",borderRadius:CT,backgroundColor:yT.WHITE,boxShadow:`0px 1px 2px 0px ${yT.GREYSCALE_0_15}, 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`,"&:hover":{borderRadius:CT,boxShadow:`0 2px 4px 0 ${yT.GREYSCALE_0_30}, 0 0 0 1px ${yT.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${yT.GREYSCALE_0_15}, 0 0 0 1px ${yT.GREYSCALE_0_06}, 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${yT.GREYSCALE_0_15}, 0 0 0 1px ${yT.GREYSCALE_0_06}, 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:yT.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:yT.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:yT.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:yT.GREYSCALE_0_15},markLabel:{color:yT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:yT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:yT.WHITE,color:yT.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:yT.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:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:yT.GREYSCALE_0_15,borderRadius:CT},thumb:{height:"16px",width:"16px",borderRadius:CT,backgroundColor:yT.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:ST,fontWeight:AT,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${yT.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,backgroundColor:yT.GREYSCALE_0_03,borderRadius:CT},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:yT.GREYSCALE_25,"&.Mui-selected":{color:yT.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ST,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:CT,"&:hover":{backgroundColor:`${yT.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 ${yT.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${yT.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:CT,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:yT.GREYSCALE_0_05},"&:hover":{backgroundColor:`${yT.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${yT.GREYSCALE_85}`,borderRight:`1px solid ${yT.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:AT,backgroundColor:yT.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:yT.GREYSCALE_98,borderBottom:`1px solid ${yT.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${yT.GREYSCALE_85}`,borderTop:`1px solid ${yT.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:yT.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:yT.GREYSCALE_0_05,"&:hover":{backgroundColor:yT.GREYSCALE_0_03}},"&&:hover":{backgroundColor:yT.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Pt.createElement(HT,{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 ${yT.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ST,borderRadius:CT,padding:"7px 16px",border:`1px solid ${yT.GREYSCALE_0_15}`,backgroundColor:yT.GREYSCALE_100_60,color:yT.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:yT.GREYSCALE_0_10,border:`1px solid ${yT.GREYSCALE_0_30}`},"&:hover":{backgroundColor:yT.GREYSCALE_0_03,border:`1px solid ${yT.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:yT.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`,border:`1px solid ${yT.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:yT.GREYSCALE_25,backgroundColor:yT.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:yT.GREYSCALE_0_10,border:`1px solid ${yT.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:xT,height:24,width:24,padding:7},sizeLarge:{fontSize:ET,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ST,borderRadius:CT}}},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:yT.GREYSCALE_20},tooltip:{backgroundColor:yT.GREYSCALE_20,fontSize:xT,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var dN=e=>cN;const pN={mode:"light",primary:{ultraLight:yT.GREEN_ULTRA_LIGHT,light:yT.GREEN_PALE,main:yT.GREEN,dark:yT.GREEN_DARK,extraDark:yT.GREEN_EXTRA_DARK,contrastText:yT.WHITE},secondary:{ultraLight:yT.BLUE_ULTRA_LIGHT,light:yT.BLUE_PALE,main:yT.BLUE,dark:yT.BLUE_DARK,extraDark:yT.BLUE_EXTRA_DARK,contrastText:yT.WHITE},error:{ultraLight:yT.RED_ULTRA_LIGHT,light:yT.RED_PALE,main:yT.RED,dark:yT.RED_DARK,extraDark:yT.RED_EXTRA_DARK,contrastText:yT.WHITE},warning:{ultraLight:yT.ORANGE_ULTRA_LIGHT,light:yT.ORANGE_PALE,main:yT.ORANGE,dark:yT.ORANGE_DARK,extraDark:yT.ORANGE_EXTRA_DARK,contrastText:yT.WHITE},success:{ultraLight:yT.GREEN_ULTRA_LIGHT,light:yT.GREEN_PALE,main:yT.GREEN,dark:yT.GREEN_DARK,extraDark:yT.GREEN_EXTRA_DARK,contrastText:yT.WHITE},info:{ultraLight:yT.BLUE_ULTRA_LIGHT,light:yT.BLUE_PALE,main:yT.BLUE,dark:yT.BLUE_DARK,extraDark:yT.BLUE_EXTRA_DARK,contrastText:yT.WHITE},text:{primary:yT.TEXT_PRIMARY,secondary:yT.TEXT_SECONDARY,disabled:yT.GREYSCALE_0_30},action:{hover:yT.GREYSCALE_0_03,hoverOpacity:.03,selected:yT.GREYSCALE_0_05,selectedOpacity:.05,focus:yT.MISC_FOCUS_BORDER},amethyst:{ultraLight:yT.WHITE,main:yT.PURPLE,light:yT.PURPLE_PALE,dark:yT.PURPLE_DARK,extraDark:yT.GREYSCALE_0_0,contrastText:yT.WHITE},background:{paper:yT.WHITE,default:yT.GREYSCALE_95},divider:yT.GREYSCALE_0_15},fN=e=>({components:dN(),palette:pN,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:ST,fontWeightLight:RT,fontWeightRegular:kT,fontWeightMedium:AT,fontWeightBold:IT,htmlFontSize:ST,fontFamily:PT.FONT_FAMILY,button:{fontWeight:AT,fontSize:ST,textTransform:"none"},body1:{fontSize:ET,lineHeight:"24px"},body2:{fontSize:ST,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:wT,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ET,fontWeight:AT,lineHeight:"16px"},h6:{fontSize:ST,fontWeight:AT,lineHeight:"16px"},caption:{color:yT.TEXT_SECONDARY},subtitle1:{fontSize:ST,color:yT.TEXT_SECONDARY},subtitle2:{fontSize:xT,color:yT.TEXT_SECONDARY}},shape:{borderRadius:CT}}),mN={...vT,MISC_FOCUS_BORDER:yT.MISC_FOCUS_BORDER},hN=(e="light")=>fN(),gN=hN().palette,bN=(gN.primary.light,j_.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)"),vN=4/3,yN="12px",xN="600",SN="Source Sans Pro, sans-serif",EN={height:"auto",fontSize:yN,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"}},wN={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:xN},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},CN=25e4,RN=(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(kk.PixelsMax,Math.max(kk.PixelsMin,m)),i-=r[a]};switch(s){case Ak.Pixels:m=u||kk.PixelsDefault,h();break;case Ak.Percentage:m=(c||kk.PercentageDefault)/100*t,h();break;case Ak.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===mI.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Ak.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(kk.AutoMinTable,e)}))}return r},kN=e=>e.ctrlKey||e.metaKey,AN=e=>e.shiftKey&&kN(e),IN=e=>[$_.LEFT,$_.RIGHT,$_.UP,$_.DOWN].includes(e),PN=e=>IN(e)||[$_.HOME,$_.END,$_.PAGE_UP,$_.PAGE_DOWN].includes(e),MN=e=>e.shiftKey&&IN(e.key),LN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=j_.Inactive;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?j_.Disabled:void 0!==r[e.qElemNumber]?j_.Selected:j_.Possible),i},DN=(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"]})},_N=(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),DN(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})},TN=(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&&MN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&MN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===$_.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),DN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},ON=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}},NN=(e,t)=>{var n;switch(t.type){case H_.SELECT:return _N(e,t.payload);case H_.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 H_.SELECT_MOUSE_UP:return((e,t)=>ON(e.isSelectMultiValues||e.firstCell!==t.cell?e:_N(e,t)))(e,t.payload);case H_.SELECT_MULTI_ADD:return TN(e,t.payload);case H_.SELECT_MULTI_END:return ON(e);case H_.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case H_.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case H_.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},qN=4/3,FN=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function zN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const jN=(e,t)=>e?{borderBottomColor:ZC.DARK_MODE_BORDER,borderRightColor:ZC.DARK_MODE_BORDER,borderLeftColor:ZC.DARK_MODE_BORDER,borderTopColor:ZC.DARK_MODE_BORDER}:{borderLeftColor:ZC.BORDER_MEDIUM,borderRightColor:ZC.BORDER_MEDIUM,borderTopColor:ZC.BORDER_HEAVY,borderBottomColor:t?ZC.BORDER_HEAVY:ZC.BORDER_LIGHT},HN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*qN+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))},BN=(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:FN(null==n?void 0:n.fontColor)?zN(ZC.TEXT,t,null==n?void 0:n.fontColor):i||ZC.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,...jN(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function WN(e,t,n){var r,o,i;const a=null===(r=$N(e))||void 0===r?void 0:r.header,l=BN("header",t,a,n);return l.background=(e=>{if(void 0===e)return;const t=y(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=QR(null!==(o=l.background)&&void 0!==o?o:ZC.WHITE,Ik),l.activeBackground=QR(null!==(i=l.background)&&void 0!==i?i:ZC.WHITE,Pk),l}function VN(e,t,n,r){var o;const i=null===(o=$N(e))||void 0===o?void 0:o.content,a=BN("content",t,i);a.background=t.background.color;const l=HN(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=FN(u)||!!d,f=FN(s)||!!c,m=p||f;let h;h=FN(s)?zN(ZC.HOVER,t,s):c||(p?"":ZC.HOVER);const g=m?zN(eR(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const UN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in wN&&Object.assign(t,wN[e]))),t};function GN(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&&nk(r);a&&"none"!==a&&(o[n[t]]=a),i=r?UN(r,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=eR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const YN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},KN=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=YN(e,null==t?void 0:t.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},XN=(e,t,n,r=ZC.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=KN(e,t,n);return null!==(o=ak(a,i,l,r))&&void 0!==o?o:r},JN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yN}},QN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",ZN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?xN:"normal",eq=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,tq=e=>parseInt(null!=e?e:EN.fontSize,10)*vN,nq=e=>{const t=Math.max(tq(e.header.fontSize)+8,32),n=tq(e.totalRow.fontSize),r=Math.max(n+8+1,24),o=Math.max(tq(e.dimension.values.fontSize),tq(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:n,totalRowMinHeight:r,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},rq=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",oq=(e,t,n,r,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,I,P,M,L,D,_,T,O,N,q,F,z,j,H,$,B,W,V,U,G,Y,K,X,J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n,r)=>{var o,i,a,l,s;const u=null===(o=$N(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:xN,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:xN,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:eq(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,r),headerLineClamp:eq(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,r),border:n.background.isDark?ZC.DARK_MODE_BORDER:ZC.BORDER_MEDIUM,divider:ZC.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:ek({desiredColor:t.body.color,theme:n,flags:r.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=nq(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,n,r,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=$N(t))&&void 0!==i?i:{},Ee=!0===t.usePagination?ZC.WHITE:ZC.TRANSPARENT,we=XN(r,he,"object.straightTableV2.dimension.label.name.backgroundColor",Ee),Ce=null!==(a=null!==(l=null!==(s=null!==(u=YN(r,null==ge?void 0:ge.fontColor))&&void 0!==u?u:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==s?s:r.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:n.body.color)&&void 0!==a?a:ZC.TEXT,Re=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:r.getStyle("object.straightTableV2","grid","lineClamp"),ke={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:r.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:n.head.fontFamily)&&void 0!==f?f:SN,fontSize:JN(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:r.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:n.head.fontSize),fontStyle:QN(null==he?void 0:he.fontStyle),fontWeight:ZN(null==he?void 0:he.fontStyle,xN),textDecoration:rq(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=YN(r,null==he?void 0:he.fontColor))&&void 0!==x?x:r.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:n.head.color)&&void 0!==v?v:ZC.TEXT,background:we},headerMenuHoverBackground:QR(we,Ik),headerMenuActiveBackground:QR(we,Pk),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(w=null==ge?void 0:ge.fontFamily)&&void 0!==w?w:r.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:n.body.fontFamily)&&void 0!==S?S:SN,fontSize:JN(null!==(C=null!==(R=null!==(k=null==ge?void 0:ge.fontSize)&&void 0!==k?k:null==Se?void 0:Se.fontSize)&&void 0!==R?R:r.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==C?C:n.body.fontSize),fontStyle:QN(null==ge?void 0:ge.fontStyle),fontWeight:ZN(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:rq(null==ge?void 0:ge.fontStyle),color:Ce,background:null!==(A=null!==(I=KN(r,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==I?I:n.body.background)&&void 0!==A?A:ZC.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(M=null!==(L=null==be?void 0:be.fontFamily)&&void 0!==L?L:r.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==M?M:n.body.fontFamily)&&void 0!==P?P:SN,fontSize:JN(null!==(D=null!==(_=null!==(T=null==be?void 0:be.fontSize)&&void 0!==T?T:null==Se?void 0:Se.fontSize)&&void 0!==_?_:r.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==D?D:n.body.fontSize),fontStyle:QN(null==be?void 0:be.fontStyle),fontWeight:ZN(null==be?void 0:be.fontStyle,"normal"),textDecoration:rq(null==be?void 0:be.fontStyle),color:null!==(O=null!==(N=null!==(q=null!==(F=YN(r,null==be?void 0:be.fontColor))&&void 0!==F?F:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==q?q:r.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==N?N:n.body.color)&&void 0!==O?O:ZC.TEXT,background:null!==(z=null!==(j=KN(r,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==j?j:n.body.background)&&void 0!==z?z:ZC.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==($=null!==(B=null==ve?void 0:ve.fontFamily)&&void 0!==B?B:r.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==$?$:n.totals.fontFamily)&&void 0!==H?H:SN,fontSize:JN(null!==(W=null!==(V=null!==(U=null==ve?void 0:ve.fontSize)&&void 0!==U?U:null==Se?void 0:Se.fontSize)&&void 0!==V?V:r.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:n.totals.fontSize),fontStyle:QN(null==ve?void 0:ve.fontStyle),fontWeight:ZN(null==ve?void 0:ve.fontStyle,xN),textDecoration:rq(null==ve?void 0:ve.fontStyle),color:null!==(G=null!==(Y=null!==(K=null!==(X=YN(r,null==ve?void 0:ve.fontColor))&&void 0!==X?X:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==K?K:r.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:n.totals.color)&&void 0!==G?G:ZC.TEXT,background:XN(r,ve,"object.straightTableV2.total.label.value.backgroundColor",Ee)},nullValues:{fontStyle:QN(null==ye?void 0:ye.fontStyle),fontWeight:ZN(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:rq(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Q=null!==(Z=null!==(ee=YN(r,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==Z?Z:r.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Q?Q:n.body.color)&&void 0!==J?J:ZC.TEXT,background:null!==(te=null!==(ne=YN(r,null==ye?void 0:ye.background))&&void 0!==ne?ne:r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:ZC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Re?Re:eq(null===(re=t.multiline)||void 0===re?void 0:re.wrapTextInCells,e),headerLineClamp:eq(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=YN(r,null==xe?void 0:xe.border))&&void 0!==ae?ae:r.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:r.background.isDark?ZC.DARK_MODE_BORDER:ZC.BORDER_MEDIUM,divider:null!==(le=null!==(se=YN(r,null==xe?void 0:xe.divider))&&void 0!==se?se:r.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:ZC.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=YN(r,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:r.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=n.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=YN(r,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:r.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=n.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:n.body.lastRowBottomBorder},selectedColors:ek({desiredColor:Ce,theme:r,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Re},{headerMinRowHeight:Ae,totalRowLineHeight:Ie,totalRowMinHeight:Pe,contentLineHeight:Me,contentMinRowHeight:Le}=nq(ke);return ke.headerMinRowHeight=Ae,ke.totalRowLineHeight=Ie,ke.totalRowMinHeight=Pe,ke.contentLineHeight=Me,ke.contentMinRowHeight=Le,ke},iq=(e,t,n,r)=>{const o=It.useMemo((()=>{const o=n.totalsPosition.atTop,i=VN(e,t,n.rows.length,r),a=WN(e,t,!o),l=function(e,t,n){var r;const o=null===(r=$N(e))||void 0===r?void 0:r.content,i=BN("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=WN(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},aq=new Map;const lq=It.createContext({}),sq=function(e){const t=It.createContext([()=>{},new Set]);return aq.set(e,t),({children:n,value:r})=>{const o=It.useRef(r),i=It.useRef(new Set);It.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=It.useCallback((()=>o.current),[o]),l=It.useMemo((()=>[a,i.current]),[a]);return Pl.jsx(e.Provider,{value:r,children:Pl.jsx(t.Provider,{value:l,children:n})})}}(lq),uq={rows:[],columns:[],totalsPosition:{}},cq=({app:e,children:t,tableData:n=uq,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]=It.useState(0),[w,C]=It.useState(o||bT),[R,k]=((e,t)=>{const[n,r]=It.useReducer(NN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,I]=It.useState(-1),P=iq(i,u,n,d),M=((e,t,n,r,o)=>It.useMemo((()=>oq(e,t,n,r,o)),[t,n,e,r,o]))(x,i,P,u,y),[L,D,_,T]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=pk({...r.header,fontWeight:xN},{maxNbrLinesOfText:3}).measureText,a=pk({...r.totalRow,fontWeight:xN},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=pk(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=pk(r.measure.values,{maxNbrLinesOfText:3}),u=It.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]=It.useState(0),[p,f]=It.useState((()=>RN(e,n,u)));hk((()=>{f(RN(e,n-c,u))}),[e,n,c,u]);const m=It.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,M),O=It.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:M})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,M]);return Pl.jsx(sq,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:I,columnWidths:L,setColumnWidths:D,baseProps:O,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:T,env:x},children:t})};function dq(e,t){const n=function(e){return aq.get(e)}(e),[r,o]=It.useContext(n),[,i]=It.useReducer((e=>e+1),0),a=It.useRef(t),l=It.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=It.useMemo((()=>t(s)),[s,t]);return It.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),It.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function pq(e){var t;const n=hN();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),VD({...n,direction:e})}const fq={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},mq={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},hq=Xs("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":{...fq},"&::-moz-range-track":{...fq},"&::-ms-track":{...fq},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...mq},"&::-moz-range-thumb":{...mq},"&::-ms-thumb":{...mq},"&: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"}}))),gq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=bk({translator:c.translator}),p=It.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}};hk((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,kk.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Ak.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=>{ok(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=>{ok(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),v()},w=!r&&l?e=>{if(e.key===Ck.LEFT||e.key===Ck.RIGHT){ok(e);const t=5,n=e.key===Ck.LEFT?-t:t;b(p.current.columnWidth+n)}else e.key===Ck.SPACE||e.key===Ck.ENTER?(ok(e),l(e),v()):e.key===Ck.ESC&&(ok(e),l(e),b(p.current.initWidth))}:void 0,C=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Pt.createElement(hq,{style:h,key:t,hoverColor:o,isLastColumn:n,className:Rk,"data-testid":Rk,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Ak.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:kk.PixelsMax,"aria-label":C,"aria-valuemin":kk.PixelsMin,"aria-valuemax":kk.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};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)=>Pt.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),Pt.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),yq=It.forwardRef(vq);function xq(){return xq=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},xq.apply(null,arguments)}const Sq=Xs(kE,{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"}))),Eq=Xs(yq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),wq=Xs(rC)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Cq=Xs(XE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Rq=Xs(sC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),kq=Xs(sC,{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")}))),Aq=Xs("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"}))),Iq=Xs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Pq=Xs(AS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Mq=Xs(Mw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));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 Dq=(e,t)=>Pt.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),Pt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),_q=It.forwardRef(Dq);let Tq={};const Oq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=It.useState(!1),p=It.useRef(null),f=It.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Pt.createElement(Pt.Fragment,null,Pt.createElement(kq,{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),Tq={}),null!=a&&a.length&&(d(!0),Tq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Pt.createElement(Aq,null),Pt.createElement(Iq,null,Pt.createElement(Mq,null,Pt.createElement(o,null)),Pt.createElement(Pq,{variant:"body2"},r)),null!=a&&a.length?Pt.createElement(_q,null):null),(null==a?void 0:a.length)&&Pt.createElement(Fq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Tq,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},Nq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Pt.createElement(Rq,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Pt.createElement(Oq,xq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),qq={appear:200,enter:200,exit:100},Fq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Pt.createElement(wq,xq({className:Sk,open:t,anchorEl:e,onClose:n,transitionDuration:qq,MenuListProps:{id:Ek}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[Nq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Pt.createElement(Cq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,zq=(e,t)=>e.some((e=>t[e]>0)),jq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Hq=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=It.useState(null),[a,l]=It.useState(jq);return hk((()=>{e||(l(jq),i(null))}),[e]),It.useEffect((()=>{if(null==r||!r.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:zq(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:zq(["qSelected"],e),canSelectPossible:zq(["qOption"],e),canSelectAlternative:zq(["qAlternative"],e),canSelectExcluded:zq(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};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 Bq=(e,t)=>Pt.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),Pt.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"})),Wq=It.forwardRef(Bq);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 Uq=(e,t)=>Pt.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),Pt.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"})),Gq=It.forwardRef(Uq);function Yq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kq=(e,t)=>Pt.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){Yq(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),Pt.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"})),Xq=It.forwardRef(Kq);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 Qq=(e,t)=>Pt.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),Pt.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"})),Zq=It.forwardRef(Qq);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 tF=(e,t)=>Pt.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),Pt.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),nF=It.forwardRef(tF);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 oF=(e,t)=>Pt.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),Pt.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),iF=It.forwardRef(oF);function aF(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)=>Pt.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){aF(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),Pt.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"})),sF=It.forwardRef(lF);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 cF=(e,t)=>Pt.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),Pt.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"})),dF=It.forwardRef(cF);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 fF=(e,t)=>Pt.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),Pt.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"})),mF=It.forwardRef(fF);function hF(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)=>Pt.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){hF(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),Pt.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"})),bF=It.forwardRef(gF);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 yF=(e,t)=>Pt.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),Pt.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"})),xF=It.forwardRef(yF);function SF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const EF=(e,t)=>Pt.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){SF(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),Pt.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"})),wF=It.forwardRef(EF);let CF=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const RF="/qListObjectDef",kF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(n[CF.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);p.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:Wq,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:Zq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:iF,subMenus:[[{items:e.groupDimensionLabels.map(((t,n)=>({id:n+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:nF,isActive:e.groupDimensionPos===n})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[CF.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:sF,enabled:!0}]}]),n[CF.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:wF,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAll(RF))},icon:dF,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectPossible(RF))},icon:xF,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAlternative(RF))},icon:mF,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectExcluded(RF))},icon:bF,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.clearSelections(RF))},icon:Gq,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[CF.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:Xq,enabled:!0}]}]),p},AF=({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,env:f})=>{var m;const h=bk({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=r,y=null==d?void 0:d.app,{fieldInstance:x,selectionActionsEnabledStatus:S}=Hq({open:e,headerData:r,app:y,qStateName:null==d?void 0:d.qStateName});let E=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&r.qLibraryId){const e=r.qLibraryId;E=async t=>{try{const n=await y.getDimension(e);await n.setActiveField(t)}catch(e){console.error(e)}}}const w=It.useCallback((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;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,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),C=It.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Pt.createElement(Sq,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:xk},s&&Pt.createElement(Eq,{height:vk,className:yk,"data-testid":yk,isInteractionsActive:null!==(m=i.active)&&void 0!==m&&m},Pt.createElement(yq,null)),Pt.createElement(Fq,{open:e,anchorEl:n.current,onClose:C,menuGroups:kF({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:E}),handleHeadCellMenuKeyDown:a})):null},IF=e=>e.isDark?{background:e.color,borderColor:ZC.DARK_MODE_BORDER,color:ZC.DARK_MODE_TEXT,disabledColor:ZC.DARK_MODE_DISABLED,iconColor:ZC.DARK_MODE_TEXT}:{background:e.color,borderColor:ZC.BORDER_MEDIUM,color:ZC.TEXT,disabledColor:ZC.DISABLED},PF=Xs(kE,{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}`}))),MF=Xs(UC,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),LF=Xs(qE,{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)}))),DF=Xs(AS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),_F=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=It.useMemo((()=>IF(r.background)),[r]);if(!n.active)return null;const a=o?Pt.createElement(PF,{footerStyle:i},e):null;return t?Ax.createPortal(e,t):a},TF={},OF=It.createContext(TF),NF=()=>It.useContext(OF),qF=({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=It.useMemo((()=>IF(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=bk({translator:d}),x=It.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 Pt.createElement(OF.Provider,{value:x},e)};let FF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),zF=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 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 HF=(e,t)=>Pt.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),Pt.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),$F=It.forwardRef(HF);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 WF=(e,t)=>Pt.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),Pt.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),VF=It.forwardRef(WF);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)=>Pt.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),Pt.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),YF=It.forwardRef(GF),KF={FirstPage:VF,PreviousPage:$F,NextPage:_q,LastPage:YF,FirstPageRTL:YF,PreviousPageRTL:_q,NextPageRTL:$F,LastPageRTL:VF},XF=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=NF(),u=KF[`${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}},JF=()=>{const{pageInfo:e,width:t}=NF(),n=0===e.page,{IconComponent:r,styledProps:o}=XF({type:FF.FirstPage,disabledCondition:n,pageNumber:0});return t<=zF.FirstPage?null:Pt.createElement(LF,o,Pt.createElement(r,{height:vk}))},QF=(e,t,n=!1)=>{n&&e.key===Ck.TAB&&!e.shiftKey&&(ok(e),rk(e.target,t,!1))},ZF=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=NF(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=XF({type:FF.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>QF(e,t,r):null;return o<=zF.LastPage?null:Pt.createElement(LF,xq({},l,{onKeyDown:s}),Pt.createElement(a,{height:vk}))},ez=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=NF(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=XF({type:FF.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>zF.FirstPage&&o>zF.LastPage)&&t.enabled?e=>QF(e,t,r):null;return Pt.createElement(LF,xq({},l,{onKeyDown:s}),Pt.createElement(a,{height:vk}))},tz=()=>{const{pageInfo:e}=NF(),t=0===e.page,{IconComponent:n,styledProps:r}=XF({type:FF.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Pt.createElement(LF,r,Pt.createElement(n,{height:vk}))},nz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=NF(),{page:o,rowsPerPage:i}=n;if(t<=zF.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Pt.createElement(DF,{variant:"caption"},a)},rz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=NF(),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 Pt.createElement(Pt.Fragment,null,Pt.createElement(DF,{variant:"caption",id:d},u,":"),Pt.createElement(MF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},oz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=NF();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>zF.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Pt.createElement(Pt.Fragment,null,t.rowsPerPageOptions.map((e=>Pt.createElement("option",{key:e,value:e},e))));return Pt.createElement(rz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},iz=1e3,az="…",lz=({totalPages:e,page:t})=>{const n=Math.min(e,iz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-iz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Pt.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Pt.createElement("option",{key:"startMoreOptions",value:az,disabled:!0},az)),o<e-1&&a.push(Pt.createElement("option",{key:"endMoreOptions",value:az,disabled:!0},az)),Pt.createElement(Pt.Fragment,null,a)},sz=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=NF(),{page:o}=e;if(t<=zF.SelectPage)return null;const i=Pt.createElement(lz,{totalPages:n,page:o});return Pt.createElement(rz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},uz=e=>Pt.createElement(qF,e,Pt.createElement(oz,null),Pt.createElement(sz,null),Pt.createElement(nz,null),Pt.createElement(JF,null),Pt.createElement(tz,null),Pt.createElement(ez,null),Pt.createElement(ZF,null));var cz=It.memo(uz);const dz=e=>Pt.createElement(_F,e,Pt.createElement(cz,e)),pz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},fz=w_(pO,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),mz=w_("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isWordWrapEnabled:o=!1})=>{if(r||1===e&&!t)return{...pz,whiteSpace:"nowrap",display:n?"block":void 0};const i=t&&n&&!o||o?"break-word":"break-all";return{...pz,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function hz(e,t){const n=It.useRef(!1);It.useEffect((()=>{n.current?e():n.current=!0}),t)}const gz=(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]]},bz=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),vz=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?vz(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},yz=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?yz(t):t},xz=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(`.${Rk}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},Sz=({focusType:e,cell:t})=>{if(t)switch(e){case B_.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case B_.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case B_.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case B_.ADD_TAB:t.setAttribute("tabIndex","0");break;case B_.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},Ez=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{Sz({focusType:B_.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 $_.DOWN:s<a&&s++;break;case $_.UP:s>i&&s--;break;case $_.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case $_.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case $_.HOME:(kN(e)||o)&&(s=i),o||(u=0);break;case $_.END:(kN(e)||o)&&(s=a),o||(u=l);break;case $_.PAGE_DOWN:s=Math.min(a,s+10);break;case $_.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=gz(t,i);return Sz({focusType:B_.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}},wz=(e,t,n,r)=>{var o;(Sz({focusType:B_.REMOVE_TAB,cell:bz(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):Sz({focusType:B_.ADD_TAB,cell:gz(t,e)})},Cz=(e,t,n)=>{It.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(`.${Sk}`);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])},Rz=(e,t,n)=>{It.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])},kz=(e,t=!1)=>e.key===$_.ESC&&!t||(e.key===$_.LEFT||e.key===$_.RIGHT)&&AN(e),Az=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===$_.DOWN||n===$_.UP){const t=e=>n===$_.DOWN?vz(e):yz(e);ok(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},Iz=({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(j_.Disabled))return void ok(e);const d=null==c?void 0:c.isModal();if(!kz(e,d))switch(e.key){case $_.SPACE:ok(e),n.isSelectable&&o&&r({type:H_.SELECT,payload:{cell:n,evt:e,announce:a}});break;case $_.ENTER:ok(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case $_.ESC:ok(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case $_.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(ok(e),rk(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;default:PN(e.key)&&(ok(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}=Ez({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:H_.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}))}},Pz=e=>{const{layout:t,rect:n,theme:r}=dq(lq,(e=>e.baseProps)),[o,i]=It.useState(0),[a,l]=It.useState(0);return It.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}},Mz=w_("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Lz=w_(KO,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),Dz=w_(DO,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),_z=()=>Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(Mz,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Pl.jsx(Mz,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),Tz=e=>e.stopPropagation(),Oz=({href:e,text:t,interactions:n,color:r})=>Pt.createElement(xw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Tz,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t);var Nz,qz;const Fz=null!==(Nz=window.requestIdleCallback)&&void 0!==Nz?Nz:(e,t)=>{var n;return setTimeout((()=>{e({})}),null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:0)},zz=null!==(qz=window.cancelIdleCallback)&&void 0!==qz?qz:e=>clearTimeout(e),jz=e=>{e.style.position="static"},Hz=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),$z=(e,t)=>({y:{data:{field:"qMeasureInfo/0"},invert:!0,min:Math.min(0,e),max:Math.max(0,t)},x:{data:{extract:{field:"qDimensionInfo/0"}},paddingInner:.3,paddingOuter:0,invert:!1,align:0,maxPxStep:12}}),Bz=null==n?void 0:n();null==Bz||Bz.use(t),null==Bz||Bz.renderer.prio(["canvas"]);const Wz=({chart:e,element:t,requestId:n,qMatrix:r,minY:o,maxY:i})=>({renderChartWithRequestIdleCallback:It.useCallback((()=>{if(null===t.current||null!==e.current)return;n.current=Fz((()=>{t.current&&(e.current=((e,{qMatrix:t,minY:n,maxY:r})=>Bz.chart({element:e,data:{type:"q",key:"qHyperCube",data:Hz(t)},settings:{scales:$z(n,r),components:[{key:"bars",type:"box",data:{extract:{field:"qDimensionInfo/0",props:{start:0,end:{field:"qMeasureInfo/0"}}}},settings:{major:{scale:"x"},minor:{scale:"y"},box:{maxWidthPx:8}},mounted:jz}]}}))(t.current,{qMatrix:r,minY:o,maxY:i}))}),{timeout:250})}),[e,t,i,o,r,n]),safeCancelIdleCallback:It.useCallback((()=>{null!==n.current&&zz(n.current),n.current=null}),[n])}),Vz=({qMatrix:e,minY:t,maxY:n,intersectionRoot:r})=>{const o=It.useRef(null),i=It.useRef(null),a=It.useRef(null),{renderChartWithRequestIdleCallback:l,safeCancelIdleCallback:s}=Wz({element:o,chart:i,requestId:a,qMatrix:e,minY:t,maxY:n});return(({element:e,intersectionRoot:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=It.useCallback((e=>{var t;null!==(t=e.at(0))&&void 0!==t&&t.isIntersecting?r():n()}),[r,n]);It.useEffect((()=>{if(!e.current||!t)return()=>{};const r=new IntersectionObserver(i,{root:null==t?void 0:t.current});return r.observe(e.current),()=>{var e;r.disconnect(),n(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,i,t,n])})({element:o,intersectionRoot:r,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionRoot:r})=>{It.useEffect((()=>r?()=>{}:(e(),()=>{var e;t(),null===(e=n.current)||void 0===e||e.destroy(),n.current=null})),[r,t,e,n])})({intersectionRoot:r,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),o},Uz=({height:e,intersectionRoot:t,qMatrix:n,minY:r,maxY:o})=>{const i=Vz({intersectionRoot:t,qMatrix:n,minY:r,maxY:o});return Pt.createElement("div",{"data-testid":"picasso-container",ref:i,style:{width:"100%",height:e,overflow:"hidden"}})},Gz="cell-text",Yz=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=dq(lq,(e=>e.baseProps)),{flags:l}=dq(lq,(e=>e.env));return o?Pl.jsx(mz,{"data-testid":Gz,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:r,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Pl.jsx(mz,{"data-testid":Gz,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:n,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:r,children:e})},Kz=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}`},Xz=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},Jz=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Pl.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:Xz(a),objectPosition:Kz(l),overflow:"hidden"}});var c;return r?Pl.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},Qz=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),Zz=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},ej=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return l&&y(e.localPaletteColors[t].color).blend(y(l.color),l.t)},tj=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:Qz(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:Zz(r,t,n)})))),r},nj=(e,t,n,r)=>{const o=tj(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=ej(e,a,t);break}r=i}return n})(o,t);return a},rj=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!dP(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!dP(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},oj=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=rj(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!dP(t))return 0;let a=n&&dP(n)?Math.min(n,t):0;const l=r.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}};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)=>Pt.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),Pt.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),lj=It.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)=>Pt.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),Pt.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"})),cj=It.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)=>Pt.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),Pt.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"})),fj=It.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)=>Pt.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),Pt.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"}),Pt.createElement("use",{fillRule:"evenodd"})),gj=It.forwardRef(hj);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)=>Pt.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),Pt.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"})),yj=It.forwardRef(vj);function xj(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)=>Pt.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){xj(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),Pt.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"})),Ej=It.forwardRef(Sj);function wj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cj=(e,t)=>Pt.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){wj(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),Pt.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"})),Rj=It.forwardRef(Cj);function kj(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)=>Pt.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){kj(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),Pt.createElement("path",{d:"M2 7h12v2H2z"})),Ij=It.forwardRef(Aj);function Pj(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)=>Pt.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){Pj(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),Pt.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"})),Lj=It.forwardRef(Mj);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 _j=(e,t)=>Pt.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),Pt.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"})),Tj=It.forwardRef(_j);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 Nj=(e,t)=>Pt.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),Pt.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"})),qj=It.forwardRef(Nj);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 zj=(e,t)=>Pt.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),Pt.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),jj=It.forwardRef(zj);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 $j=(e,t)=>Pt.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),Pt.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"})),Bj=It.forwardRef($j);function Wj(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)=>Pt.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){Wj(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),Pt.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=It.forwardRef(Vj);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 Yj=(e,t)=>Pt.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),Pt.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"})),Kj=It.forwardRef(Yj);function Xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jj=(e,t)=>Pt.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){Xj(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),Pt.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 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)=>Pt.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),Pt.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"})),eH={m:jj,"ï":qj,R:It.forwardRef(Jj),S:Bj,T:Uj,U:Kj,P:Tj,Q:Rj,"è":It.forwardRef(Zj),"¢":yj,"©":gj,"23F4":Ej,2013:cj,"&":Lj,add:lj,"minus-2":Ij,dot:fj},tH=({size:e,iconKey:t,color:n})=>{const r=t&&eH[t]||void 0;return r&&Pl.jsx(r,{style:{color:n,height:e}})},nH=({representation:e,cellValue:t})=>{const n=e.indicatorConditionalColoring,{styleService:r,theme:o}=dq(lq,(e=>e.baseProps));if(!n)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=r.measure.values.fontSize,parseInt(d||yN,10));var d;const p=oj(n,t),f=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return Zz(o,n.limitPaletteColorIndex,r);const a=Qz(n.limitRange,t);return nj(o,a,n.limitRange,r)})(n,t,p,o),m=n.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Pl.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",gap:"2px",alignItems:"center",color:u?f:void 0},children:["left"===s&&tH({size:c,iconKey:m,color:f}),Pl.jsx(Yz,{isNumeric:!0,children:i}),"right"===s&&tH({size:c,iconKey:m,color:f})]}):tH({size:c,iconKey:m,color:f})},rH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,oH=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionRoot:i})=>{const{interactions:a,styleService:l}=dq(lq,(e=>e.baseProps)),s=dq(lq,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=t.representation.text;return t.representation.type!==mI.Link||s||(u=Pl.jsx(Oz,{href:t.representation.url,text:t.representation.text,interactions:a,color:n.cellForegroundColor})),t.representation.type===mI.Image?Pl.jsx(Jz,{representation:t.representation,textStyle:n,maxImageHeight:rH(l,o),wrapInContainer:!r}):t.representation.type===mI.Indicator&&"number"==typeof t.qNum?Pl.jsx(nH,{representation:t.representation,cellValue:+t.qNum}):t.representation.type===mI.MiniChart&&t.representation.miniChart?Pl.jsx(Uz,{height:rH(l,o),intersectionRoot:i,...t.representation.miniChart}):Pl.jsx(Yz,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:u})},iH=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{It.useEffect((()=>{const i=()=>{t({type:H_.RESET})},a=()=>{t({type:H_.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])},aH=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:H_.SELECT_MULTI_END});n({type:H_.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:H_.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:H_.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),lH=w_(zO,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),sH=w_(sN,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),uH=w_(VO,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...EN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),cH=w_(VO,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...EN,...e,fontWeight:xN,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 dH(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,{styleService:a}=dq(lq,(e=>e.baseProps)),l=dq(lq,(e=>LN(n,e.selectionState))),s=dq(lq,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=aH(i,n,s,o),p=function(e,t,n){return t===j_.Selected?{...e,...n}:t===j_.Disabled?{...e,background:`${bN}, ${e.background}`}:e}(r,l,a.selectedColors);return Pl.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function pH(e,t){let n=(r=uH,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 Pl.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${wk}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=dH(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=It.useMemo((()=>n.isNull?o:GN(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,n.isNull,r.qAttrExprInfoIDs]);return Pl.jsx(e,{...t,styling:i})}}(n)),n}const fH=(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}),mH=()=>{const{columns:e,totalsPosition:t,rows:n}=dq(lq,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=dq(lq,(e=>e.baseProps)),s=dq(lq,(e=>e.headRowHeight)),u=dq(lq,(e=>e.setFocusedCellCoord));return Pl.jsx(sN,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return Pl.jsx(cH,{totalsStyle:{...a.totalRow,...fH(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${wk}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)ok(e);else if(!kz(e))switch(e.key){case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;case $_.SPACE:e.preventDefault();break;default:PN(e.key)&&(ok(e),Ez({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{wz(d,r,u,i)},children:Pl.jsx(Yz,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var hH=It.memo(mH);const gH=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=dq(lq,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f}=dq(lq,(e=>e.baseProps)),m=dq(lq,(e=>e.setFocusedCellCoord)),h=dq(lq,(e=>e.selectionDispatch)),g=!!p.active&&!!p.select,b=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),v=It.useMemo((()=>JSON.parse(b).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e)));return pH(t,g)}))),[b,g]),y=!(null===(r=$N(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return iH({keyboard:c,selectionDispatch:h,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Pl.jsxs(lH,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Pl.jsx(hH,{}):void 0,o.map(((e,r)=>Pl.jsx(sH,{hoverColors:f.grid.hoverColors,hover:y,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:r,height:f.contentMinRowHeight,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],b=v[o];let y=r.isDim?f.dimension.values:f.measure.values;d.isNull&&(y={...y,...f.nullValues});const x=GN(y,d.qAttrExps,r.qAttrExprInfoIDs);return b&&Pl.jsx(b,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{Iz({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:h,isSelectionsEnabled:g,setFocusedCellCoord:m,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===$_.SHIFT&&t({type:H_.SELECT_MULTI_END})})(e,h),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;wz([l,a],t,n,r)})(d,u,m,c,l),children:Pl.jsx(oH,{cell:d,style:x,intersectionRoot:t})},i)}))},`row-${r}`))),l.atBottom?Pl.jsx(hH,{}):void 0]})};var bH=It.memo(gH);const vH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>e.columnWidths)),c=dq(lq,(e=>e.setColumnWidths));if(!l.active)return null;return Pl.jsx(gq,{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");Sz({focusType:B_.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function yH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xH=(e,t)=>Pt.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){yH(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),Pt.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"})),SH=It.forwardRef(xH);function EH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wH=(e,t)=>Pt.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){EH(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),Pt.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"})),CH=It.forwardRef(wH);function RH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kH=(e,t)=>Pt.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){RH(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),Pt.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"}),Pt.createElement("use",{fillRule:"evenodd"})),AH=It.forwardRef(kH),IH=w_("div")({position:"absolute",left:0,bottom:0}),PH=w_(pO,{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"})));w_("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const MH=w_(pO,{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},[`& .${xk}`]:{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"},[`& .${xk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),LH=w_(pO,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));w_(pO,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),w_(RO)((({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"}}))),w_("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),w_(yO)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),w_("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const DH=w_(VO,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...EN,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));w_("div")({display:"flex",alignItems:"center"});const _H=w_("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:yN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),TH=({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,styleService:p,layout:f}=dq(lq,(e=>e.baseProps)),m=dq(lq,(t=>t.columnWidths[e.pageColIdx])),h=dq(lq,(e=>e.env)),g=It.useRef(null),b=It.useRef(null),v=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=pk({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:xN});return It.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])})({styleService:p,column:e,columnWidth:m}),y=v(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?Pl.jsx(SH,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Pl.jsx(CH,{height:yN,"data-testid":"head-cell-sort-descending-icon"}),i=n?Pl.jsx(_H,{align:t,children:o}):void 0,a=r?Pl.jsx(LH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Pl.jsx(AH,{height:yN,"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 Pl.jsxs(MH,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Pl.jsxs(PH,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Pl.jsx(Yz,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),S]}),t&&Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(AF,{headerData:e,translator:l,anchorRef:g,handleHeadCellMenuKeyDown:Az,menuAvailabilityFlags:{[CF.SORTING]:!0,[CF.SEARCHING]:!0,[CF.SELECTIONS]:!0,[CF.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:u,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),s(e,n))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:xz},shouldShowMenuIcon:y.shouldShowMenuIcon,env:h}),Pl.jsx(IH,{ref:b}),Pl.jsx(IH,{ref:g})]})]})},OH=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=It.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=It.useState(!1);return hk((()=>{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(Rk)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},NH=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=dq(lq,(e=>e.baseProps)),{columns:l,totalsPosition:s}=dq(lq,(e=>e.tableData)),u=dq(lq,(e=>e.columnWidths[t])),c=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=dq(lq,(e=>e.setFocusedCellCoord)),p=dq(lq,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=OH({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?W_[e.sortDirection]:void 0,y=m?Ek: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 Pl.jsxs(DH,{headerStyle:{...a.header,...fH(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 ${wk}`,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(!kz(e))switch(e.key){case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;case $_.ENTER:case $_.SPACE:i&&i(e);break;default:PN(e.key)&&(ok(e),Ez({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else ok(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):Sz({focusType:B_.FOCUS,cell:gz(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:[Pl.jsx(TH,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Pl.jsx(vH,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},qH=()=>{var e;const{columns:t}=dq(lq,(e=>e.tableData)),{styleService:n,viewService:r}=dq(lq,(e=>e.baseProps)),o=dq(lq,(e=>e.setHeadRowHeight)),i=dq(lq,(e=>e.columnWidths)),a=It.useRef(null);return It.useEffect((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Pl.jsx(tN,{children:Pl.jsx(sN,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Pl.jsx(NH,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var FH=It.memo(qH);const zH=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}=dq(lq,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=dq(lq,(e=>e.baseProps)),k=dq(lq,(e=>e.focusedCellCoord)),A=dq(lq,(e=>e.setFocusedCellCoord)),I=dq(lq,(e=>e.setYScrollbarWidth)),P=dq(lq,(e=>e.showRightBorder)),M=dq(lq,(e=>e.selectionDispatch)),L=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=It.useRef(!1),_=It.useRef(null),T=It.useRef(null),{yScrollbarWidth:O}=Pz(_),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=SM(C,w),F=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,z=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=It.useCallback((()=>{D.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),H=It.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),$=It.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return Cz(T,D,v),Rz(_,i,w),(()=>{const{rootElement:e,keyboard:t}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.focusedCellCoord));hk((()=>{const r=t.active?B_.FOCUS:B_.BLUR,o=t.active?gz(e,n):bz(e);Sz({focusType:r,cell:o})}),[t.active,e])})(),It.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=F,e.scrollTop=z)}),[r,d,F,z]),hz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{Sz({focusType:B_.REMOVE_TAB,cell:bz(t)});const s=[l.atTop?2:1,e[1]],u=r?s:bT;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?B_.FOCUS:B_.ADD_TAB;n.current=!1;const d=gz(t,u);if(Sz({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:L,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),hz((()=>{I(O)}),[O]),hz((()=>{M({type:H_.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Pl.jsxs(fz,{ref:T,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(AN(e)){ok(e);const a=Math.ceil(t/r)-1;e.key===$_.RIGHT&&n<a?(i(),o(n+1)):e.key===$_.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===$_.ESC&&a.enabled&&!l){var s;ok(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else IN(e.key)&&ok(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:H,setShouldRefocus:j,keyboard:v,isSelectionMode:L})},"data-testid":"sn-table",children:[Pl.jsx(_z,{}),Pl.jsx(Lz,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Pl.jsxs(Dz,{stickyHeader:!0,"aria-label":N,borderRight:P?`1px solid ${E.grid.border}`:void 0,children:[Pl.jsx(FH,{}),Pl.jsx(bH,{...e,setShouldRefocus:j,tableWrapperRef:T})]})}),Pl.jsx(dz,{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:H,handleChangeRowsPerPage:$,isSelectionMode:L})]})};var jH=It.memo(zH),HH=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $H(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||HH(r)&&HH(o)))return!1;var r,o;return!0}function BH(e,t){var n;void 0===t&&(t=$H);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}}var WH="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function VH(e){cancelAnimationFrame(e.id)}function UH(e,t){var n=WH();var r={id:requestAnimationFrame((function o(){WH()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var GH=-1;function YH(e){if(void 0===e&&(e=!1),-1===GH||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),GH=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return GH}var KH=null;function XH(e){if(void 0===e&&(e=!1),null===KH||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?KH="positive-descending":(t.scrollLeft=1,KH=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),KH}return KH}var JH=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QH(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,Ve(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ve(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=BH((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=BH((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=BH((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(XH()){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&&VH(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UH(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}We(t,e),t.getDerivedStateFromProps=function(e,t){return ZH(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=YH();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(XH()){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&&VH(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?JH: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 I=R;I<=k;I++)for(var P=E;P<=w;P++)A.push(It.createElement(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,P)}));var M=a(this.props,this._instanceProps),L=l(this.props,this._instanceProps);return It.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:_e({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},It.createElement(u||c||"div",{children:A,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:L}}))},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}(It.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ZH=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},e$=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},t$=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},n$=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]},r$=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?o$(e,t,n,i,0,r):i$(e,t,n,Math.max(0,i),r)},o$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=n$(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&&n$(e,t,r,n).offset<o;)r+=a,a*=2;return o$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},a$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=n$(e,t,n,i),u="column"===e?t$(t,i):e$(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$=QH({getColumnOffset:function(e,t,n){return n$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return r$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=n$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=n$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:e$,getEstimatedTotalWidth:t$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return a$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return a$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return n$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return r$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=n$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=n$("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}}),s$=function(e,t){return e};function u$(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,Ve(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ve(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=BH((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=BH((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=BH((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(XH()){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&&VH(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UH(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}We(t,e),t.getDerivedStateFromProps=function(e,t){return c$(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?YH():0:s.scrollHeight>s.clientHeight?YH():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(XH()){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&&VH(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?s$: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(It.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 It.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:_e({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},It.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}(It.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var c$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},d$=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]},p$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=d$(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},f$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&d$(e,n,t).offset<r;)n+=i,i*=2;return p$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},m$=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},h$=u$({getItemOffset:function(e,t,n){return d$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:m$,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=d$(e,t,o),p=m$(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?p$(e,t,o,0,n):f$(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=d$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=d$(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 g$(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 b$=["style"],v$=["style"];function y$(e,t){var n=e.style,r=$e(e,b$),o=t.style,i=$e(t,v$);return!g$(n,o)&&!g$(r,i)}const x$=({style:e})=>Pl.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var S$=Pt.memo(x$,y$);const E$=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},w$=(e,t,n)=>{It.useEffect((()=>{const r=n?n(e):e.current;if(!r)return()=>{};const o=new ResizeObserver(t);return o.observe(r),()=>{o.disconnect()}}),[e,t,n])},C$=()=>{},R$=e=>e.preventDefault();const k$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=r,d=dq(lq,(e=>e.hoverIndex===t)),p=dq(lq,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=dq(lq,(e=>e.baseProps)),h=dq(lq,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.selectionDispatch)),r="object"==typeof e,o=dq(lq,(t=>r?LN(e,t.selectionState):j_.Inactive)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=aH(R$,e,n,C$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,n,r)=>{const o=It.useRef(null),i=n&&!(null!=n&&n.isNumeric),a=It.useCallback((n=>{const o=E$(n);o&&i&&r(o,e,t)}),[t,r,e,i]);return w$(o,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var w;const r=((e,t,n,r,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?GN(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return r===j_.Selected?{...a,...i.selectedColors}:r===j_.Disabled?{...a,color:n?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${bN}, ${n?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:n?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Pl.jsx("div",{className:`sn-table-cell ${x} ${wk}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===mI.Image&&"fitHeight"===g.representation.imageSize?null===(w=g.representation)||void 0===w||null===(w=w.resolvedImagePosition)||void 0===w?void 0:w.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:Pl.jsx(oH,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:r,lineClamp:c,virtualizedCell:!0})})}return Pl.jsx(S$,{style:{...n,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var A$=Pt.memo(k$,y$);const I$=e=>{const t=It.useRef(e);return t.current=e,t},P$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,M$=(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},L$=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},D$=(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,conditionalColoring:y,qMiniChart:x}=i[o];f[o]=null!==(n=f[o])&&void 0!==n?n:{id:uP(),...e,align:yM(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:pP(e),isNull:pM(e,u),representation:dM(e,v,b,l,y,x)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},_$=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=dq(lq,(e=>e.env)),p=It.useRef([]),f=It.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return D$(t,o,r,s,e,d,c),p.current=r,r}),[i,o,s,e,d,c]),[m,h]=It.useState((()=>f(null!=r?r:[])));hk((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=It.useRef(new Set),r=It.useRef(new Set),o=It.useRef(new Set),i=I$(e),a=I$(t),l=It.useMemo((()=>({enqueue:e=>{const t=P$(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(P$(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=It.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(L$(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[p,g]),v=It.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(M$(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[p,g,o]);return It.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}},T$=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},O$=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,N$=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=dq(lq,(e=>e.baseProps.styleService)),i=dq(lq,(e=>e.columnWidths)),{estimateLineCount:a}=pk(o.dimension.values),l=tq(o.dimension.values.fontSize),s=e||t||1===n;return It.useCallback(((e,t,o)=>{if(s||e.representation.type===mI.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])},q$=({isStaticNbrOfLines:e,minRowHeight:t,state:n,rowCount:r,staticRowHeight:o,viewService:i})=>It.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]),F$=({rowCount:e,isSnapshot:t,viewService:n,gridRef:r,pageInfo:o})=>{const{styleService:i}=dq(lq,(e=>e.baseProps)),[a,l]=It.useState({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:n})=>{var r;const{layout:o}=dq(lq,(e=>e.baseProps)),i=dq(lq,(e=>e.columnWidths)),{flags:a}=dq(lq,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(r=o.multiline)||void 0===r?void 0:r.wrapTextInCells);hk((()=>{var n;null===(n=e.current)||void 0===n||n.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,n.page,l]),hk((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:r,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:n,gridRef:r})=>It.useCallback(((o,i,a)=>{It.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(!O$(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,T$(d)),null===(s=r.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,n,t,r]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:r}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>It.useCallback(((o,i,a)=>{e||t||1===n||r(o,i,a)}),[e,t,n,r]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:N$({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:It.useCallback((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:q$({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:n}),lineClamp:f}};var z$;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(z$||(z$={}));const j$=({layout:e,loadRows:t,loadColumns:n,rowCount:r,pageInfo:o,gridState:i,viewService:a})=>It.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=z$.None,i=z$.None;return o=r>t?z$.Down:r<t?z$.Up:z$.None,i=n>e?z$.Right:n<e?z$.Left:z$.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===z$.Down){const e=x+25;t(b,v,y,u+e>r?r-u:e)}else if(h===z$.Up){const e=x+25,n=o.page*o.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(g===z$.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(g===z$.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]),H$={enabled:!1},$$=()=>{},B$={current:null};const W$=(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=It.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}},V$=({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}`},U$={overflow:"hidden",willChange:"auto"},G$=It.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}=dq(lq,(e=>e.baseProps)),p=dq(lq,(e=>e.columnWidths)),f=dq(lq,(e=>e.initialDataPages)),m=It.useRef(null),h=It.useRef(null),g=It.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=It.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}=W$(l,i,r,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:w,getRowHeight:C,lineClamp:R,totalRowHeight:k}=F$({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:A,loadRows:I,loadColumns:P}=_$({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:w}),M=j$({layout:l,loadRows:I,loadColumns:P,rowCount:y,pageInfo:i,gridState:g,viewService:c}),L=It.useMemo((()=>({rowsInPage:A,columns:o,isHoverEnabled:v,lineClamp:R,setMeasuredCellHeight:E})),[A,o,v,R,E]),D=((e,t,n)=>Math.min(e.height-t,n))(r,a,k);return It.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}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.selectionDispatch));It.useEffect((()=>{n({type:H_.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),iH({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:$$,keyboard:H$,tableWrapperRef:B$})}(A),It.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:D)-D,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,D,y]),Pl.jsx(l$,{"data-key":"body",ref:m,innerRef:h,style:U$,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:D,rowCount:y,rowHeight:C,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:L,onItemsRendered:M,itemKey:V$,className:"sn-table-body",children:A$})}));var Y$=It.memo(G$);const K$=({width:e,height:t,children:n})=>Pl.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),X$=(e,t)=>{const n=It.useRef(null),r=dq(lq,(e=>e.columnWidths));It.useLayoutEffect((()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)}),[t,n,e,r.length]);const o=It.useCallback((n=>{const r=E$(n);r&&t(r+9,e)}),[e,t]);return w$(n,o),n},J$=w_("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}}))),Q$=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=n,{interactions:l,styleService:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=dq(lq,(e=>e.showRightBorder)),d=dq(lq,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=OH({isInteractionEnabled:p,columnsData:r}),b=X$(e,a),v=r[e],y=r.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Pl.jsxs(J$,{className:`sn-table-cell ${wk}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...fH(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:[Pl.jsx(TH,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Pl.jsx(vH,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},Z$=e=>{const[t,n]=It.useState(new Map);hk((()=>{n(new Map)}),[e.length]);const r=It.useCallback(((e,t)=>{n((n=>O$(n.get(t),e)?new Map(n).set(t,e):n))}),[]);return{rowHeight:It.useMemo((()=>T$(t)),[t]),setMeasuredCellHeight:r}},eB=(e,t,n)=>{It.useImperativeHandle(e,(()=>({scrollTo:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.scrollTo(e)},element:n.current})),[t,n])},tB=(e,t,n,r,o)=>{hk((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,n,e,r,o])},nB={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},rB=It.forwardRef(((e,t)=>{const{rect:n,columns:r,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=It.useRef(null),s=It.useRef(null),{layout:u,theme:c,styleService:d}=dq(lq,(e=>e.baseProps)),p=dq(lq,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=Z$(r);return eB(t,l,s),tB(l,u,o,p,c),Pl.jsx(h$,{ref:l,outerRef:s,layout:"horizontal",style:nB,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:Q$})}));var oB=It.memo(rB);const iB=Pt.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=dq(lq,(e=>e.baseProps));return Pl.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),aB=({children:e,rect:t})=>Pl.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),lB=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i}=n,{layout:a,interactions:l,styleService:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>e.showRightBorder)),c=X$(e,i),d=r[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=r[e],m=a.qHyperCube.qSize.qcx-1===e;return Pl.jsx("div",{className:`sn-table-cell ${wk}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...fH(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:Pl.jsx(Yz,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},sB=It.forwardRef(((e,t)=>{const{rect:n,pageInfo:r,totals:o,columns:i}=e,a=It.useRef(null),l=It.useRef(null),{layout:s,theme:u,styleService:c}=dq(lq,(e=>e.baseProps)),d=dq(lq,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=Z$(i);return eB(t,a,l),tB(a,s,r,d,u),Pl.jsx(h$,{ref:a,outerRef:l,layout:"horizontal",style:nB,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:lB})}));var uB=It.memo(sB);const cB=e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.element},dB=e=>{var t,n;const[r,o]=It.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),i=It.useCallback((e=>{const t=E$(e);t&&o(t)}),[]);return w$(e,i,cB),r},pB=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=dq(lq,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=dq(lq,(e=>e.baseProps)),c=dq(lq,(e=>e.columnWidths)),d=dq(lq,(e=>e.setYScrollbarWidth)),p=It.useRef(null),f=It.useRef(null),m=It.useRef(null),h=It.useRef(null),{xScrollbarWidth:g,yScrollbarWidth:b}=Pz(p),v=It.useRef([]),y=It.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),x=It.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=W$(a,n,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:n})=>{const r=dB(e),o=dB(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}=dq(lq,(e=>e.baseProps)),a=dB(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)=>It.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=It.useCallback((()=>{p.current&&(p.current.scrollTop=0)}),[p]);It.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),It.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,S,l]),hz((()=>{d(b)}),[b]);const A=Pl.jsx(uB,{rect:x,pageInfo:n,columns:o,ref:m,totals:r},"totals");return Pl.jsx(iB,{ref:p,width:y.width,height:y.height,onScroll:R,children:Pl.jsx(K$,{width:w,height:C,children:Pl.jsxs(aB,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Pl.jsx(oB,{rect:x,pageInfo:n,columns:o,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v}),r.atTop?A:null,Pl.jsx(Y$,{ref:h,rect:x,pageInfo:n,columns:o,headerAndTotalsHeight:E}),r.atBottom?A:null]})})})};var fB=It.memo(pB);const mB=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=dq(lq,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=dq(lq,(e=>e.tableData)),c=dq(lq,(e=>e.pageInfo)),d=dq(lq,(e=>e.setPage));return Pl.jsxs(fz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Pl.jsx(fB,{pageInfo:c}),Pl.jsx(dz,{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 hB=It.memo(mB);var gB,bB={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"}(gB||(gB={}));const vB=(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(bB).forEach((t=>{e.add(bB[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===gB.FIRST?(u=s,r=gB.SECOND):(u=l,r=gB.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),yB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},xB=({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=SM(o,g),S=EM(o,g),E=vB(r,a),w=x?{page:g.page||yB.page,rowsPerPage:g.rowsPerPage||yB.rowsPerPage,rowsPerPageOptions:yB.rowsPerPageOptions}:yB,[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>fM)return r({...n,rowsPerPage:mM(d,c),page:0}),null;const g=p>10,b=hM(t,o),v=xM(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:uP(),...e[o],align:yM(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:pP(e[o]),isNull:pM(e[o],r.isDim),representation:dM(e[o],r.representation,r.qAttrExprInfoIndex,i,r.conditionalColoring,r.qMiniChart)}})),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=pq(o);null==t||t.render(Pl.jsx(Oo,{stylisPlugins:"rtl"===o?[gT]:void 0,children:Pl.jsx(R_,{theme:x,children:Pl.jsx(cq,{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:Pl.jsx(jH,{...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 SB=({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(CN,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}},EB=({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=!EM(n,g),y=e.useMemo((()=>function(e,t,n){const r=hM(e,n),o=xM(e),i=e.qHyperCube.qSize.qcy,a=Math.min(CN,i),l=i>CN&&!!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(CN,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/CN);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=SB({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=pq("ltr");t.render(Pl.jsx(Pt.StrictMode,{children:Pl.jsx(R_,{theme:S,children:Pl.jsx(cq,{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:Pl.jsx(hB,{})})})}))}({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])},wB={version:JSON.stringify("3.13.1"),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 CB(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 RB=(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]}},kB=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const AB=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||yB.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},IB=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=hM(e,t);if(EM(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=CB(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:AB(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=RB(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=(kB(m,h,g)?d:d+1)+c;let v=p+c;const y=RB(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(kB(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:AB(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},PB=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),MB=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:wB},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:iI,exportProperties:rI,exploration:aI},ext:eP(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>fk(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=uk(i,r,PB,MB),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=tP(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=WN(n,t,!1),{fontSize:i,fontFamily:a}=VN(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(`.${wk}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{_k(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}=IB(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:()=>IB(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),EB({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}),xB({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
+ `),BT.rippleVisible,XT,550,(({theme:e})=>e.transitions.easing.easeInOut),BT.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),BT.child,BT.childLeaving,JT,550,(({theme:e})=>e.transitions.easing.easeInOut),BT.childPulsate,QT,(({theme:e})=>e.transitions.easing.easeInOut)),tO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=$e(n,WT),[l,s]=It.useState([]),u=It.useRef(0),c=It.useRef(null);It.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=It.useRef(!1),p=Yi(),f=It.useRef(null),m=It.useRef(null),h=It.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Pl.jsx(eO,{classes:{ripple:ma(o.ripple,BT.ripple),rippleVisible:ma(o.rippleVisible,BT.rippleVisible),ripplePulsate:ma(o.ripplePulsate,BT.ripplePulsate),child:ma(o.child,BT.child),childLeaving:ma(o.childLeaving,BT.childLeaving),childPulsate:ma(o.childPulsate,BT.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=It.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=It.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=It.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 It.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Pl.jsx(ZT,_e({className:ma(BT.root,o.root,i),ref:m},a,{children:Pl.jsx(Bx,{component:null,exit:!0,children:l})}))}));var nO=tO;function rO(e){return ua("MuiButtonBase",e)}var oO=ca("MuiButtonBase",["root","disabled","focusVisible"]);const iO=["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"],aO=w_("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"},[`&.${oO.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lO=It.forwardRef((function(e,t){const n=$T({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:I,touchRippleRef:P,type:M}=n,L=$e(n,iO),D=It.useRef(null),_=It.useRef(null),T=Wi(_,P),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:F}=ra(),[z,j]=It.useState(!1);s&&z&&j(!1),It.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[H,$]=It.useState(!1);It.useEffect((()=>{$(!0)}),[]);const B=H&&!u&&!s;function W(e,t,n=c){return Bi((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}It.useEffect((()=>{z&&d&&!u&&H&&_.current.pulsate()}),[u,d,z,H]);const V=W("start",S),U=W("stop",h),G=W("stop",g),Y=W("stop",w),K=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=W("start",k),J=W("stop",C),Q=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=Bi((e=>{D.current||(D.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=It.useRef(!1),re=Bi((e=>{d&&!ne.current&&z&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Bi((e=>{d&&" "===e.key&&_.current&&z&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(L.href||L.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===M?"button":M,ae.disabled=s):(L.href||L.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=Wi(t,F,D),se=_e({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=ia({root:["root",t&&"disabled",n&&"focusVisible"]},rO,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Pl.jsxs(aO,_e({as:ie,className:ma(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:U,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:V,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:s?-1:A,type:M},ae,L,{children:[i,B?Pl.jsx(nO,_e({ref:T,center:o},I)):null]}))}));var sO=lO;var uO=ca("MuiBox",["root"]);const cO=VD(),dO=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(wL),a=It.forwardRef((function(e,a){const l=function(e=PL){return IL(e)}(n),s=LL(e),{className:u,component:c="div"}=s,d=$e(s,_L);return Pl.jsx(i,_e({as:c,ref:a,className:ma(u,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:wM,defaultTheme:cO,defaultClassName:uO.root,generateClassName:la.generate});var pO=dO;var fO=ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var mO=It.createContext({});function hO(e){return ua("MuiListItemIcon",e)}var gO=ca("MuiListItemIcon",["root","alignItemsFlexStart"]);const bO=["className"],vO=w_("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})=>_e({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var yO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=$e(n,bO),i=_e({},n,{alignItems:It.useContext(mO).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hO,n)})(i);return Pl.jsx(vO,_e({className:ma(a.root,r),ownerState:i,ref:t},o))}));var xO=ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function SO(e){return ua("MuiMenuItem",e)}var EO=ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const wO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CO=w_(sO,{shouldForwardProp:e=>E_(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})=>_e({},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"}},[`&.${EO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tD(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${EO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:tD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${EO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:tD(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})`:tD(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${EO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${EO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${fO.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${fO.inset}`]:{marginLeft:52},[`& .${xO.root}`]:{marginTop:0,marginBottom:0},[`& .${xO.inset}`]:{paddingLeft:36},[`& .${gO.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_e({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${gO.root} svg`]:{fontSize:"1.25rem"}}))));var RO=It.forwardRef((function(e,t){const n=$T({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=$e(n,wO),f=It.useContext(mO),m=It.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=It.useRef(null);$i((()=>{r&&h.current&&h.current.focus()}),[r]);const g=_e({},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 _e({},a,ia({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SO,a))})(n),v=Wi(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Pl.jsx(mO.Provider,{value:m,children:Pl.jsx(CO,_e({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ma(b.focusVisible,s),className:ma(b.root,d)},p,{ownerState:g,classes:b}))})}));var kO=It.createContext();function AO(e){return ua("MuiTable",e)}ca("MuiTable",["root","stickyHeader"]);const IO=["className","component","padding","size","stickyHeader"],PO=w_("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_e({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_e({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),MO="table",LO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTable"}),{className:r,component:o=MO,padding:i="normal",size:a="medium",stickyHeader:l=!1}=n,s=$e(n,IO),u=_e({},n,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:n}=e;return ia({root:["root",n&&"stickyHeader"]},AO,t)})(u),d=It.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Pl.jsx(kO.Provider,{value:d,children:Pl.jsx(PO,_e({as:o,role:o===MO?null:"table",ref:t,className:ma(c.root,r),ownerState:u},s))})}));var DO=LO;var _O=It.createContext();function TO(e){return ua("MuiTableBody",e)}ca("MuiTableBody",["root"]);const OO=["className","component"],NO=w_("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),qO={variant:"body"},FO="tbody";var zO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableBody"}),{className:r,component:o=FO}=n,i=$e(n,OO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},TO,t)})(a);return Pl.jsx(_O.Provider,{value:qO,children:Pl.jsx(NO,_e({className:ma(l.root,r),as:o,ref:t,role:o===FO?null:"rowgroup",ownerState:a},i))})}));function jO(e){return ua("MuiTableCell",e)}var HO=ca("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const $O=["align","className","component","padding","scope","size","sortDirection","variant"],BO=w_("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ni(n.size)}`],"normal"!==n.padding&&t[`padding${Ni(n.padding)}`],"inherit"!==n.align&&t[`align${Ni(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_e({},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?oD(tD(e.palette.divider,1),.88):nD(tD(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",[`&.${HO.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}))),WO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=n,d=$e(n,$O),p=It.useContext(kO),f=It.useContext(_O),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=_e({},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 ia({root:["root",n,a&&"stickyHeader","inherit"!==r&&`align${Ni(r)}`,"normal"!==o&&`padding${Ni(o)}`,`size${Ni(i)}`]},jO,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Pl.jsx(BO,_e({as:h,ref:t,className:ma(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));var VO=WO;function UO(e){return ua("MuiTableContainer",e)}ca("MuiTableContainer",["root"]);const GO=["className","component"],YO=w_("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var KO=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableContainer"}),{className:r,component:o="div"}=n,i=$e(n,GO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},UO,t)})(a);return Pl.jsx(YO,_e({ref:t,as:o,className:ma(l.root,r),ownerState:a},i))}));function XO(e){return ua("MuiTableHead",e)}ca("MuiTableHead",["root"]);const JO=["className","component"],QO=w_("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),ZO={variant:"head"},eN="thead";var tN=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableHead"}),{className:r,component:o=eN}=n,i=$e(n,JO),a=_e({},n,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},XO,t)})(a);return Pl.jsx(_O.Provider,{value:ZO,children:Pl.jsx(QO,_e({as:o,className:ma(l.root,r),ref:t,role:o===eN?null:"rowgroup",ownerState:a},i))})}));function nN(e){return ua("MuiTableRow",e)}var rN=ca("MuiTableRow",["root","selected","hover","head","footer"]);const oN=["className","component","hover","selected"],iN=w_("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,[`&.${rN.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${rN.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:tD(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}))`:tD(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),aN="tr",lN=It.forwardRef((function(e,t){const n=$T({props:e,name:"MuiTableRow"}),{className:r,component:o=aN,hover:i=!1,selected:a=!1}=n,l=$e(n,oN),s=It.useContext(_O),u=_e({},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 ia({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},nN,t)})(u);return Pl.jsx(iN,_e({as:o,ref:t,className:ma(c.root,r),role:o===aN?null:"row",ownerState:u},l))}));var sN=lN,uN=(e={})=>Pt.createElement(NT,{...e},Pt.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Pt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Pt.createElement("rect",{stroke:yT.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const cN={MuiAccordion:{styleOverrides:{root:{backgroundColor:yT.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:yT.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Pt.createElement(_T,{"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 ${yT.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,borderRadius:CT,backgroundColor:yT.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 ${yT.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:yT.WHITE,color:yT.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:CT},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:yT.GREYSCALE_0_15,backgroundColor:yT.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:yT.GREEN_PALE},"&:active":{backgroundColor:yT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:yT.BLUE_PALE},"&:active":{backgroundColor:yT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.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:CT,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:yT.GREYSCALE_0_15,backgroundColor:yT.GREYSCALE_100_60,"&:active":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:yT.PURPLE,"&.Mui-focusVisible":{borderColor:yT.PURPLE,boxShadow:`0 0 0 3px ${OL(yT.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:yT.GREEN,"&.Mui-focusVisible":{borderColor:yT.GREEN,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:yT.BLUE,"&.Mui-focusVisible":{borderColor:yT.BLUE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:yT.ORANGE,"&.Mui-focusVisible":{borderColor:yT.ORANGE,boxShadow:`0 0 0 3px ${OL(yT.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:yT.RED,"&.Mui-focusVisible":{borderColor:yT.RED,boxShadow:`0 0 0 3px ${OL(yT.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:yT.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:yT.PURPLE_PALE},"&:active":{backgroundColor:yT.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:yT.PURPLE_PALE,boxShadow:`0 0 0 3px ${OL(yT.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:yT.GREEN_PALE},"&:active":{backgroundColor:yT.GREEN_DARK},"&.Mui-focusVisible":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:yT.BLUE_PALE},"&:active":{backgroundColor:yT.BLUE_DARK},"&.Mui-focusVisible":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:yT.ORANGE_PALE},"&:active":{backgroundColor:yT.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:yT.ORANGE_PALE,boxShadow:`0 0 0 3px ${OL(yT.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:yT.RED_PALE},"&:active":{backgroundColor:yT.RED_DARK},"&.Mui-focusVisible":{borderColor:yT.RED_PALE,boxShadow:`0 0 0 3px ${OL(yT.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:yT.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:yT.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:CT,boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Pt.createElement(OT,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:xT,borderRadius:CT,color:yT.TEXT_PRIMARY,backgroundColor:yT.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:yT.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:yT.GREYSCALE_0_05,color:yT.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:yT.GREEN,borderColor:yT.GREEN},"&.MuiChip-outlinedInfo":{color:yT.BLUE,borderColor:yT.BLUE},"&.MuiChip-outlinedWarning":{color:yT.ORANGE,borderColor:yT.ORANGE},"&.MuiChip-outlinedError":{color:yT.RED,borderColor:yT.RED}},outlined:{border:`solid 1px ${yT.GREYSCALE_0_15}`,backgroundColor:yT.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:CT,boxShadow:"none",backgroundColor:yT.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:yT.GREEN,borderColor:yT.GREEN},outlinedSecondary:{color:yT.BLUE,borderColor:yT.BLUE},label:{fontFamily:PT.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Pt.createElement(OT,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Pt.createElement(_T,{"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:CT},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:CT,fontSize:ST,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:yT.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${yT.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:yT.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:yT.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:yT.GREYSCALE_0_05}}},popupIndicator:{borderRadius:CT,border:`solid 1px ${yT.GREYSCALE_0_15}`,color:yT.GREYSCALE_0_60,marginRight:0,width:wT,height:wT},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${yT.GREYSCALE_0_15}`},clearIndicator:{borderRadius:CT,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:yT.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ST}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:xT,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:yT.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:yT.GREYSCALE_25,fontSize:xT,fontFamily:PT.FONT_FAMILY,fontWeight:AT,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:yT.TEXT_PRIMARY},"&.Mui-error":{color:yT.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:yT.TEXT_SECONDARY,content:"'(optional)'",fontWeight:kT,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:yT.TEXT_SECONDARY,content:"'(required)'",fontWeight:kT,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ST,lineHeight:"16px",backgroundColor:yT.WHITE,borderRadius:CT,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.GREYSCALE_0_05}`,borderColor:yT.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.RED}`,boxShadow:`0px 0px 0px 1px ${yT.RED}, inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${yT.GREYSCALE_0_10}`,borderColor:yT.GREYSCALE_0_10,backgroundColor:yT.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:yT.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:yT.GREYSCALE_0_15,borderRadius:CT,boxShadow:`inset 0 2px 0 0 ${yT.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Pt.createElement(_T,{...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:yT.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:yT.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:yT.GREYSCALE_0_03},"&:active":{backgroundColor:yT.GREYSCALE_0_10},"&:focus":{backgroundColor:yT.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${yT.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:yT.GREYSCALE_0_30,"&:hover":{backgroundColor:yT.GREYSCALE_0_0,borderColor:yT.GREYSCALE_0_15},"& ~svg":{color:yT.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${yT.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:CT}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:yT.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:yT.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ST,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:xT,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:xT,fontWeight:AT,color:yT.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:AT}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${yT.GREYSCALE_0_15}, 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Pt.createElement(zT,null),checkedIcon:Pt.createElement(jT,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:yT.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:yT.GREYSCALE_0_20}},"&.Mui-disabled":{fill:yT.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Pt.createElement(uN,null),checkedIcon:Pt.createElement(qT,null),indeterminateIcon:Pt.createElement(FT,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:CT,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:yT.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:yT.GREYSCALE_0_55,color:yT.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:yT.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:yT.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:yT.GREYSCALE_0_55,"&:hover":{color:yT.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:yT.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:yT.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ST,color:yT.TEXT_PRIMARY,lineHeight:"16px",fontWeight:AT},secondary:{fontSize:xT,color:yT.GREYSCALE_45,fontWeight:kT,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ST,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ST,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:yT.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:xT,borderBottom:`solid 1px ${yT.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ST,color:yT.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:yT.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:yT.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:yT.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:yT.RED}}},"&.Mui-focusVisible":{backgroundColor:yT.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:yT.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:yT.GREEN,height:"24px","&.Mui-disabled":{color:yT.GREYSCALE_0_15}},rail:{backgroundColor:yT.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${yT.GREYSCALE_0_05}`,borderRadius:CT,boxShadow:`inset 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${yT.GREYSCALE_0_05}`,borderRadius:CT},thumb:{height:"16px",width:"16px",borderRadius:CT,backgroundColor:yT.WHITE,boxShadow:`0px 1px 2px 0px ${yT.GREYSCALE_0_15}, 0px 0px 0px 1px ${yT.GREYSCALE_0_05}`,"&:hover":{borderRadius:CT,boxShadow:`0 2px 4px 0 ${yT.GREYSCALE_0_30}, 0 0 0 1px ${yT.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${yT.GREYSCALE_0_15}, 0 0 0 1px ${yT.GREYSCALE_0_06}, 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${yT.GREYSCALE_0_15}, 0 0 0 1px ${yT.GREYSCALE_0_06}, 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:yT.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:yT.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:yT.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:yT.GREYSCALE_0_15},markLabel:{color:yT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:yT.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:yT.WHITE,color:yT.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:yT.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:yT.GREEN_PALE,boxShadow:`0 0 0 3px ${OL(yT.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:yT.BLUE_PALE,boxShadow:`0 0 0 3px ${OL(yT.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:yT.GREYSCALE_0_15,borderRadius:CT},thumb:{height:"16px",width:"16px",borderRadius:CT,backgroundColor:yT.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:ST,fontWeight:AT,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${yT.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${yT.MISC_FOCUS_BORDER}`,backgroundColor:yT.GREYSCALE_0_03,borderRadius:CT},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:yT.GREYSCALE_25,"&.Mui-selected":{color:yT.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ST,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:CT,"&:hover":{backgroundColor:`${yT.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 ${yT.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${yT.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:CT,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:yT.GREYSCALE_0_05},"&:hover":{backgroundColor:`${yT.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${yT.GREYSCALE_85}`,borderRight:`1px solid ${yT.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:AT,backgroundColor:yT.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:yT.GREYSCALE_98,borderBottom:`1px solid ${yT.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${yT.GREYSCALE_85}`,borderTop:`1px solid ${yT.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:yT.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:yT.GREYSCALE_0_05,"&:hover":{backgroundColor:yT.GREYSCALE_0_03}},"&&:hover":{backgroundColor:yT.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Pt.createElement(HT,{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 ${yT.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ST,borderRadius:CT,padding:"7px 16px",border:`1px solid ${yT.GREYSCALE_0_15}`,backgroundColor:yT.GREYSCALE_100_60,color:yT.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:yT.GREYSCALE_0_10,border:`1px solid ${yT.GREYSCALE_0_30}`},"&:hover":{backgroundColor:yT.GREYSCALE_0_03,border:`1px solid ${yT.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:yT.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${yT.MISC_FOCUS_BORDER}`,border:`1px solid ${yT.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:yT.GREYSCALE_25,backgroundColor:yT.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:yT.GREYSCALE_0_10,border:`1px solid ${yT.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:xT,height:24,width:24,padding:7},sizeLarge:{fontSize:ET,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ST,borderRadius:CT}}},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:yT.GREYSCALE_20},tooltip:{backgroundColor:yT.GREYSCALE_20,fontSize:xT,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var dN=e=>cN;const pN={mode:"light",primary:{ultraLight:yT.GREEN_ULTRA_LIGHT,light:yT.GREEN_PALE,main:yT.GREEN,dark:yT.GREEN_DARK,extraDark:yT.GREEN_EXTRA_DARK,contrastText:yT.WHITE},secondary:{ultraLight:yT.BLUE_ULTRA_LIGHT,light:yT.BLUE_PALE,main:yT.BLUE,dark:yT.BLUE_DARK,extraDark:yT.BLUE_EXTRA_DARK,contrastText:yT.WHITE},error:{ultraLight:yT.RED_ULTRA_LIGHT,light:yT.RED_PALE,main:yT.RED,dark:yT.RED_DARK,extraDark:yT.RED_EXTRA_DARK,contrastText:yT.WHITE},warning:{ultraLight:yT.ORANGE_ULTRA_LIGHT,light:yT.ORANGE_PALE,main:yT.ORANGE,dark:yT.ORANGE_DARK,extraDark:yT.ORANGE_EXTRA_DARK,contrastText:yT.WHITE},success:{ultraLight:yT.GREEN_ULTRA_LIGHT,light:yT.GREEN_PALE,main:yT.GREEN,dark:yT.GREEN_DARK,extraDark:yT.GREEN_EXTRA_DARK,contrastText:yT.WHITE},info:{ultraLight:yT.BLUE_ULTRA_LIGHT,light:yT.BLUE_PALE,main:yT.BLUE,dark:yT.BLUE_DARK,extraDark:yT.BLUE_EXTRA_DARK,contrastText:yT.WHITE},text:{primary:yT.TEXT_PRIMARY,secondary:yT.TEXT_SECONDARY,disabled:yT.GREYSCALE_0_30},action:{hover:yT.GREYSCALE_0_03,hoverOpacity:.03,selected:yT.GREYSCALE_0_05,selectedOpacity:.05,focus:yT.MISC_FOCUS_BORDER},amethyst:{ultraLight:yT.WHITE,main:yT.PURPLE,light:yT.PURPLE_PALE,dark:yT.PURPLE_DARK,extraDark:yT.GREYSCALE_0_0,contrastText:yT.WHITE},background:{paper:yT.WHITE,default:yT.GREYSCALE_95},divider:yT.GREYSCALE_0_15},fN=e=>({components:dN(),palette:pN,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:ST,fontWeightLight:RT,fontWeightRegular:kT,fontWeightMedium:AT,fontWeightBold:IT,htmlFontSize:ST,fontFamily:PT.FONT_FAMILY,button:{fontWeight:AT,fontSize:ST,textTransform:"none"},body1:{fontSize:ET,lineHeight:"24px"},body2:{fontSize:ST,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:wT,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ET,fontWeight:AT,lineHeight:"16px"},h6:{fontSize:ST,fontWeight:AT,lineHeight:"16px"},caption:{color:yT.TEXT_SECONDARY},subtitle1:{fontSize:ST,color:yT.TEXT_SECONDARY},subtitle2:{fontSize:xT,color:yT.TEXT_SECONDARY}},shape:{borderRadius:CT}}),mN={...vT,MISC_FOCUS_BORDER:yT.MISC_FOCUS_BORDER},hN=(e="light")=>fN(),gN=hN().palette,bN=(gN.primary.light,j_.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)"),vN=4/3,yN="12px",xN="600",SN="Source Sans Pro, sans-serif",EN={height:"auto",fontSize:yN,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"}},wN={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:xN},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},CN=25e4,RN=(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(kk.PixelsMax,Math.max(kk.PixelsMin,m)),i-=r[a]};switch(s){case Ak.Pixels:m=u||kk.PixelsDefault,h();break;case Ak.Percentage:m=(c||kk.PercentageDefault)/100*t,h();break;case Ak.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===mI.Image?o.push(a):(m=n(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Ak.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(kk.AutoMinTable,e)}))}return r},kN=e=>e.ctrlKey||e.metaKey,AN=e=>e.shiftKey&&kN(e),IN=e=>[$_.LEFT,$_.RIGHT,$_.UP,$_.DOWN].includes(e),PN=e=>IN(e)||[$_.HOME,$_.END,$_.PAGE_UP,$_.PAGE_DOWN].includes(e),MN=e=>e.shiftKey&&IN(e.key),LN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=j_.Inactive;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?j_.Disabled:void 0!==r[e.qElemNumber]?j_.Selected:j_.Possible),i},DN=(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"]})},_N=(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),DN(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})},TN=(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&&MN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&MN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===$_.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),DN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},ON=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}},NN=(e,t)=>{var n;switch(t.type){case H_.SELECT:return _N(e,t.payload);case H_.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 H_.SELECT_MOUSE_UP:return((e,t)=>ON(e.isSelectMultiValues||e.firstCell!==t.cell?e:_N(e,t)))(e,t.payload);case H_.SELECT_MULTI_ADD:return TN(e,t.payload);case H_.SELECT_MULTI_END:return ON(e);case H_.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case H_.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case H_.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},qN=4/3,FN=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function zN(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const jN=(e,t)=>e?{borderBottomColor:ZC.DARK_MODE_BORDER,borderRightColor:ZC.DARK_MODE_BORDER,borderLeftColor:ZC.DARK_MODE_BORDER,borderTopColor:ZC.DARK_MODE_BORDER}:{borderLeftColor:ZC.BORDER_MEDIUM,borderRightColor:ZC.BORDER_MEDIUM,borderTopColor:ZC.BORDER_HEAVY,borderBottomColor:t?ZC.BORDER_HEAVY:ZC.BORDER_LIGHT},HN=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*qN+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))},BN=(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:FN(null==n?void 0:n.fontColor)?zN(ZC.TEXT,t,null==n?void 0:n.fontColor):i||ZC.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,...jN(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function WN(e,t,n){var r,o,i;const a=null===(r=$N(e))||void 0===r?void 0:r.header,l=BN("header",t,a,n);return l.background=(e=>{if(void 0===e)return;const t=y(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=QR(null!==(o=l.background)&&void 0!==o?o:ZC.WHITE,Ik),l.activeBackground=QR(null!==(i=l.background)&&void 0!==i?i:ZC.WHITE,Pk),l}function VN(e,t,n,r){var o;const i=null===(o=$N(e))||void 0===o?void 0:o.content,a=BN("content",t,i);a.background=t.background.color;const l=HN(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=FN(u)||!!d,f=FN(s)||!!c,m=p||f;let h;h=FN(s)?zN(ZC.HOVER,t,s):c||(p?"":ZC.HOVER);const g=m?zN(eR(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const UN=(e,t)=>{var n;const r=null!==(n=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==n?n:[];return r.forEach((e=>e in wN&&Object.assign(t,wN[e]))),t};function GN(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&&nk(r);a&&"none"!==a&&(o[n[t]]=a),i=r?UN(r,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=eR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const YN=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},KN=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=YN(e,null==t?void 0:t.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},XN=(e,t,n,r=ZC.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=KN(e,t,n);return null!==(o=ak(a,i,l,r))&&void 0!==o?o:r},JN=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return yN}},QN=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",ZN=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?xN:"normal",eq=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,tq=e=>parseInt(null!=e?e:EN.fontSize,10)*vN,nq=e=>{const t=Math.max(tq(e.header.fontSize)+8,32),n=tq(e.totalRow.fontSize),r=Math.max(n+8+1,24),o=Math.max(tq(e.dimension.values.fontSize),tq(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:n,totalRowMinHeight:r,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},rq=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",oq=(e,t,n,r,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,k,A,I,P,M,L,D,_,T,O,N,q,F,z,j,H,$,B,W,V,U,G,Y,K,X,J,Q,Z,ee,te,ne,re,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,n,r)=>{var o,i,a,l,s;const u=null===(o=$N(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:xN,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:xN,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:eq(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,r),headerLineClamp:eq(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,r),border:n.background.isDark?ZC.DARK_MODE_BORDER:ZC.BORDER_MEDIUM,divider:ZC.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:ek({desiredColor:t.body.color,theme:n,flags:r.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=nq(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,n,r,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=$N(t))&&void 0!==i?i:{},Ee=!0===t.usePagination?ZC.WHITE:ZC.TRANSPARENT,we=XN(r,he,"object.straightTableV2.dimension.label.name.backgroundColor",Ee),Ce=null!==(a=null!==(l=null!==(s=null!==(u=YN(r,null==ge?void 0:ge.fontColor))&&void 0!==u?u:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==s?s:r.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:n.body.color)&&void 0!==a?a:ZC.TEXT,Re=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:r.getStyle("object.straightTableV2","grid","lineClamp"),ke={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:r.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:n.head.fontFamily)&&void 0!==f?f:SN,fontSize:JN(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:r.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:n.head.fontSize),fontStyle:QN(null==he?void 0:he.fontStyle),fontWeight:ZN(null==he?void 0:he.fontStyle,xN),textDecoration:rq(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=YN(r,null==he?void 0:he.fontColor))&&void 0!==x?x:r.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:n.head.color)&&void 0!==v?v:ZC.TEXT,background:we},headerMenuHoverBackground:QR(we,Ik),headerMenuActiveBackground:QR(we,Pk),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(w=null==ge?void 0:ge.fontFamily)&&void 0!==w?w:r.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:n.body.fontFamily)&&void 0!==S?S:SN,fontSize:JN(null!==(C=null!==(R=null!==(k=null==ge?void 0:ge.fontSize)&&void 0!==k?k:null==Se?void 0:Se.fontSize)&&void 0!==R?R:r.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==C?C:n.body.fontSize),fontStyle:QN(null==ge?void 0:ge.fontStyle),fontWeight:ZN(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:rq(null==ge?void 0:ge.fontStyle),color:Ce,background:null!==(A=null!==(I=KN(r,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==I?I:n.body.background)&&void 0!==A?A:ZC.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(M=null!==(L=null==be?void 0:be.fontFamily)&&void 0!==L?L:r.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==M?M:n.body.fontFamily)&&void 0!==P?P:SN,fontSize:JN(null!==(D=null!==(_=null!==(T=null==be?void 0:be.fontSize)&&void 0!==T?T:null==Se?void 0:Se.fontSize)&&void 0!==_?_:r.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==D?D:n.body.fontSize),fontStyle:QN(null==be?void 0:be.fontStyle),fontWeight:ZN(null==be?void 0:be.fontStyle,"normal"),textDecoration:rq(null==be?void 0:be.fontStyle),color:null!==(O=null!==(N=null!==(q=null!==(F=YN(r,null==be?void 0:be.fontColor))&&void 0!==F?F:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==q?q:r.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==N?N:n.body.color)&&void 0!==O?O:ZC.TEXT,background:null!==(z=null!==(j=KN(r,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==j?j:n.body.background)&&void 0!==z?z:ZC.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==($=null!==(B=null==ve?void 0:ve.fontFamily)&&void 0!==B?B:r.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==$?$:n.totals.fontFamily)&&void 0!==H?H:SN,fontSize:JN(null!==(W=null!==(V=null!==(U=null==ve?void 0:ve.fontSize)&&void 0!==U?U:null==Se?void 0:Se.fontSize)&&void 0!==V?V:r.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:n.totals.fontSize),fontStyle:QN(null==ve?void 0:ve.fontStyle),fontWeight:ZN(null==ve?void 0:ve.fontStyle,xN),textDecoration:rq(null==ve?void 0:ve.fontStyle),color:null!==(G=null!==(Y=null!==(K=null!==(X=YN(r,null==ve?void 0:ve.fontColor))&&void 0!==X?X:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==K?K:r.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:n.totals.color)&&void 0!==G?G:ZC.TEXT,background:XN(r,ve,"object.straightTableV2.total.label.value.backgroundColor",Ee)},nullValues:{fontStyle:QN(null==ye?void 0:ye.fontStyle),fontWeight:ZN(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:rq(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Q=null!==(Z=null!==(ee=YN(r,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:YN(r,null==Se?void 0:Se.fontColor))&&void 0!==Z?Z:r.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Q?Q:n.body.color)&&void 0!==J?J:ZC.TEXT,background:null!==(te=null!==(ne=YN(r,null==ye?void 0:ye.background))&&void 0!==ne?ne:r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:ZC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Re?Re:eq(null===(re=t.multiline)||void 0===re?void 0:re.wrapTextInCells,e),headerLineClamp:eq(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=YN(r,null==xe?void 0:xe.border))&&void 0!==ae?ae:r.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:r.background.isDark?ZC.DARK_MODE_BORDER:ZC.BORDER_MEDIUM,divider:null!==(le=null!==(se=YN(r,null==xe?void 0:xe.divider))&&void 0!==se?se:r.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:ZC.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=YN(r,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:r.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=n.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=YN(r,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:r.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=n.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:n.body.lastRowBottomBorder},selectedColors:ek({desiredColor:Ce,theme:r,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Re},{headerMinRowHeight:Ae,totalRowLineHeight:Ie,totalRowMinHeight:Pe,contentLineHeight:Me,contentMinRowHeight:Le}=nq(ke);return ke.headerMinRowHeight=Ae,ke.totalRowLineHeight=Ie,ke.totalRowMinHeight=Pe,ke.contentLineHeight=Me,ke.contentMinRowHeight=Le,ke},iq=(e,t,n,r)=>{const o=It.useMemo((()=>{const o=n.totalsPosition.atTop,i=VN(e,t,n.rows.length,r),a=WN(e,t,!o),l=function(e,t,n){var r;const o=null===(r=$N(e))||void 0===r?void 0:r.content,i=BN("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=WN(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},aq=new Map;const lq=It.createContext({}),sq=function(e){const t=It.createContext([()=>{},new Set]);return aq.set(e,t),({children:n,value:r})=>{const o=It.useRef(r),i=It.useRef(new Set);It.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=It.useCallback((()=>o.current),[o]),l=It.useMemo((()=>[a,i.current]),[a]);return Pl.jsx(e.Provider,{value:r,children:Pl.jsx(t.Provider,{value:l,children:n})})}}(lq),uq={rows:[],columns:[],totalsPosition:{}},cq=({app:e,children:t,tableData:n=uq,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]=It.useState(0),[w,C]=It.useState(o||bT),[R,k]=((e,t)=>{const[n,r]=It.useReducer(NN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[A,I]=It.useState(-1),P=iq(i,u,n,d),M=((e,t,n,r,o)=>It.useMemo((()=>oq(e,t,n,r,o)),[t,n,e,r,o]))(x,i,P,u,y),[L,D,_,T]=((e,t,n,r)=>{const o=t.atBottom||t.atTop,i=pk({...r.header,fontWeight:xN},{maxNbrLinesOfText:3}).measureText,a=pk({...r.totalRow,fontWeight:xN},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=pk(r.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=pk(r.measure.values,{maxNbrLinesOfText:3}),u=It.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]=It.useState(0),[p,f]=It.useState((()=>RN(e,n,u)));hk((()=>{f(RN(e,n-c,u))}),[e,n,c,u]);const m=It.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,M),O=It.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:M})),[e,r,i,a,l,s,u,c.active,d,p,f,m,v,y,M]);return Pl.jsx(sq,{value:{headRowHeight:S,setHeadRowHeight:E,focusedCellCoord:w,setFocusedCellCoord:C,selectionState:R,selectionDispatch:k,hoverIndex:A,setHoverIndex:I,columnWidths:L,setColumnWidths:D,baseProps:O,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:T,env:x},children:t})};function dq(e,t){const n=function(e){return aq.get(e)}(e),[r,o]=It.useContext(n),[,i]=It.useReducer((e=>e+1),0),a=It.useRef(t),l=It.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=It.useMemo((()=>t(s)),[s,t]);return It.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),It.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function pq(e){var t;const n=hN();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),VD({...n,direction:e})}const fq={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},mq={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},hq=Xs("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":{...fq},"&::-moz-range-track":{...fq},"&::-ms-track":{...fq},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...mq},"&::-moz-range-thumb":{...mq},"&::-ms-thumb":{...mq},"&: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"}}))),gq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=bk({translator:c.translator}),p=It.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}};hk((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,kk.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Ak.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=>{ok(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=>{ok(e),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E),v()},w=!r&&l?e=>{if(e.key===Ck.LEFT||e.key===Ck.RIGHT){ok(e);const t=5,n=e.key===Ck.LEFT?-t:t;b(p.current.columnWidth+n)}else e.key===Ck.SPACE||e.key===Ck.ENTER?(ok(e),l(e),v()):e.key===Ck.ESC&&(ok(e),l(e),b(p.current.initWidth))}:void 0,C=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Pt.createElement(hq,{style:h,key:t,hoverColor:o,isLastColumn:n,className:Rk,"data-testid":Rk,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",x),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Ak.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:kk.PixelsMax,"aria-label":C,"aria-valuemin":kk.PixelsMin,"aria-valuemax":kk.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};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)=>Pt.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),Pt.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),yq=It.forwardRef(vq);function xq(){return xq=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},xq.apply(null,arguments)}const Sq=Xs(kE,{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"}))),Eq=Xs(yq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),wq=Xs(rC)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Cq=Xs(XE)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),Rq=Xs(sC)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),kq=Xs(sC,{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")}))),Aq=Xs("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"}))),Iq=Xs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Pq=Xs(AS)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Mq=Xs(Mw)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));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 Dq=(e,t)=>Pt.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),Pt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),_q=It.forwardRef(Dq);let Tq={};const Oq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=It.useState(!1),p=It.useRef(null),f=It.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Pt.createElement(Pt.Fragment,null,Pt.createElement(kq,{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),Tq={}),null!=a&&a.length&&(d(!0),Tq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Pt.createElement(Aq,null),Pt.createElement(Iq,null,Pt.createElement(Mq,null,Pt.createElement(o,null)),Pt.createElement(Pq,{variant:"body2"},r)),null!=a&&a.length?Pt.createElement(_q,null):null),(null==a?void 0:a.length)&&Pt.createElement(Fq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Tq,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},Nq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Pt.createElement(Rq,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Pt.createElement(Oq,xq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),qq={appear:200,enter:200,exit:100},Fq=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?Pt.createElement(wq,xq({className:Sk,open:t,anchorEl:e,onClose:n,transitionDuration:qq,MenuListProps:{id:Ek}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[Nq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Pt.createElement(Cq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,zq=(e,t)=>e.some((e=>t[e]>0)),jq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Hq=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=It.useState(null),[a,l]=It.useState(jq);return hk((()=>{e||(l(jq),i(null))}),[e]),It.useEffect((()=>{if(null==r||!r.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:zq(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:zq(["qSelected"],e),canSelectPossible:zq(["qOption"],e),canSelectAlternative:zq(["qAlternative"],e),canSelectExcluded:zq(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};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 Bq=(e,t)=>Pt.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),Pt.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"})),Wq=It.forwardRef(Bq);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 Uq=(e,t)=>Pt.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),Pt.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"})),Gq=It.forwardRef(Uq);function Yq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kq=(e,t)=>Pt.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){Yq(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),Pt.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"})),Xq=It.forwardRef(Kq);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 Qq=(e,t)=>Pt.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),Pt.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"})),Zq=It.forwardRef(Qq);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 tF=(e,t)=>Pt.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),Pt.createElement("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})),nF=It.forwardRef(tF);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 oF=(e,t)=>Pt.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),Pt.createElement("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})),iF=It.forwardRef(oF);function aF(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)=>Pt.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){aF(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),Pt.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"})),sF=It.forwardRef(lF);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 cF=(e,t)=>Pt.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),Pt.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"})),dF=It.forwardRef(cF);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 fF=(e,t)=>Pt.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),Pt.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"})),mF=It.forwardRef(fF);function hF(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)=>Pt.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){hF(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),Pt.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"})),bF=It.forwardRef(gF);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 yF=(e,t)=>Pt.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),Pt.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"})),xF=It.forwardRef(yF);function SF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const EF=(e,t)=>Pt.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){SF(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),Pt.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"})),wF=It.forwardRef(EF);let CF=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const RF="/qListObjectDef",kF=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(n[CF.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);p.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:Wq,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:Zq,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:iF,subMenus:[[{items:e.groupDimensionLabels.map(((t,n)=>({id:n+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:nF,isActive:e.groupDimensionPos===n})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];n[CF.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:sF,enabled:!0}]}]),n[CF.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:wF,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAll(RF))},icon:dF,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectPossible(RF))},icon:xF,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectAlternative(RF))},icon:mF,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectListObjectExcluded(RF))},icon:bF,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.clearSelections(RF))},icon:Gq,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[CF.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:Xq,enabled:!0}]}]),p},AF=({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,env:f})=>{var m;const h=bk({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=r,y=null==d?void 0:d.app,{fieldInstance:x,selectionActionsEnabledStatus:S}=Hq({open:e,headerData:r,app:y,qStateName:null==d?void 0:d.qStateName});let E=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&r.qLibraryId){const e=r.qLibraryId;E=async t=>{try{const n=await y.getDimension(e);await n.setActiveField(t)}catch(e){console.error(e)}}}const w=It.useCallback((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;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,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),C=It.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Pt.createElement(Sq,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:xk},s&&Pt.createElement(Eq,{height:vk,className:yk,"data-testid":yk,isInteractionsActive:null!==(m=i.active)&&void 0!==m&&m},Pt.createElement(yq,null)),Pt.createElement(Fq,{open:e,anchorEl:n.current,onClose:C,menuGroups:kF({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:x,selectionActionsEnabledStatus:S,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:E}),handleHeadCellMenuKeyDown:a})):null},IF=e=>e.isDark?{background:e.color,borderColor:ZC.DARK_MODE_BORDER,color:ZC.DARK_MODE_TEXT,disabledColor:ZC.DARK_MODE_DISABLED,iconColor:ZC.DARK_MODE_TEXT}:{background:e.color,borderColor:ZC.BORDER_MEDIUM,color:ZC.TEXT,disabledColor:ZC.DISABLED},PF=Xs(kE,{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}`}))),MF=Xs(UC,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),LF=Xs(qE,{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)}))),DF=Xs(AS)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),_F=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=It.useMemo((()=>IF(r.background)),[r]);if(!n.active)return null;const a=o?Pt.createElement(PF,{footerStyle:i},e):null;return t?Ax.createPortal(e,t):a},TF={},OF=It.createContext(TF),NF=()=>It.useContext(OF),qF=({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=It.useMemo((()=>IF(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=bk({translator:d}),x=It.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 Pt.createElement(OF.Provider,{value:x},e)};let FF=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),zF=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 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 HF=(e,t)=>Pt.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),Pt.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),$F=It.forwardRef(HF);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 WF=(e,t)=>Pt.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),Pt.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),VF=It.forwardRef(WF);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)=>Pt.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),Pt.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),YF=It.forwardRef(GF),KF={FirstPage:VF,PreviousPage:$F,NextPage:_q,LastPage:YF,FirstPageRTL:YF,PreviousPageRTL:_q,NextPageRTL:$F,LastPageRTL:VF},XF=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=NF(),u=KF[`${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}},JF=()=>{const{pageInfo:e,width:t}=NF(),n=0===e.page,{IconComponent:r,styledProps:o}=XF({type:FF.FirstPage,disabledCondition:n,pageNumber:0});return t<=zF.FirstPage?null:Pt.createElement(LF,o,Pt.createElement(r,{height:vk}))},QF=(e,t,n=!1)=>{n&&e.key===Ck.TAB&&!e.shiftKey&&(ok(e),rk(e.target,t,!1))},ZF=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=NF(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=XF({type:FF.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>QF(e,t,r):null;return o<=zF.LastPage?null:Pt.createElement(LF,xq({},l,{onKeyDown:s}),Pt.createElement(a,{height:vk}))},ez=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=NF(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=XF({type:FF.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>zF.FirstPage&&o>zF.LastPage)&&t.enabled?e=>QF(e,t,r):null;return Pt.createElement(LF,xq({},l,{onKeyDown:s}),Pt.createElement(a,{height:vk}))},tz=()=>{const{pageInfo:e}=NF(),t=0===e.page,{IconComponent:n,styledProps:r}=XF({type:FF.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Pt.createElement(LF,r,Pt.createElement(n,{height:vk}))},nz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=NF(),{page:o,rowsPerPage:i}=n;if(t<=zF.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Pt.createElement(DF,{variant:"caption"},a)},rz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=NF(),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 Pt.createElement(Pt.Fragment,null,Pt.createElement(DF,{variant:"caption",id:d},u,":"),Pt.createElement(MF,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},oz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=NF();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>zF.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Pt.createElement(Pt.Fragment,null,t.rowsPerPageOptions.map((e=>Pt.createElement("option",{key:e,value:e},e))));return Pt.createElement(rz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},iz=1e3,az="…",lz=({totalPages:e,page:t})=>{const n=Math.min(e,iz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-iz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Pt.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Pt.createElement("option",{key:"startMoreOptions",value:az,disabled:!0},az)),o<e-1&&a.push(Pt.createElement("option",{key:"endMoreOptions",value:az,disabled:!0},az)),Pt.createElement(Pt.Fragment,null,a)},sz=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=NF(),{page:o}=e;if(t<=zF.SelectPage)return null;const i=Pt.createElement(lz,{totalPages:n,page:o});return Pt.createElement(rz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},uz=e=>Pt.createElement(qF,e,Pt.createElement(oz,null),Pt.createElement(sz,null),Pt.createElement(nz,null),Pt.createElement(JF,null),Pt.createElement(tz,null),Pt.createElement(ez,null),Pt.createElement(ZF,null));var cz=It.memo(uz);const dz=e=>Pt.createElement(_F,e,Pt.createElement(cz,e)),pz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},fz=w_(pO,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),mz=w_("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isWordWrapEnabled:o=!1})=>{if(r||1===e&&!t)return{...pz,whiteSpace:"nowrap",display:n?"block":void 0};const i=t&&n&&!o||o?"break-word":"break-all";return{...pz,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function hz(e,t){const n=It.useRef(!1);It.useEffect((()=>{n.current?e():n.current=!0}),t)}const gz=(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]]},bz=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),vz=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?vz(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},yz=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?yz(t):t},xz=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(`.${Rk}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},Sz=({focusType:e,cell:t})=>{if(t)switch(e){case B_.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case B_.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case B_.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case B_.ADD_TAB:t.setAttribute("tabIndex","0");break;case B_.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},Ez=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o})=>{Sz({focusType:B_.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 $_.DOWN:s<a&&s++;break;case $_.UP:s>i&&s--;break;case $_.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case $_.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case $_.HOME:(kN(e)||o)&&(s=i),o||(u=0);break;case $_.END:(kN(e)||o)&&(s=a),o||(u=l);break;case $_.PAGE_DOWN:s=Math.min(a,s+10);break;case $_.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,n,o),a=gz(t,i);return Sz({focusType:B_.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}},wz=(e,t,n,r)=>{var o;(Sz({focusType:B_.REMOVE_TAB,cell:bz(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):Sz({focusType:B_.ADD_TAB,cell:gz(t,e)})},Cz=(e,t,n)=>{It.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(`.${Sk}`);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])},Rz=(e,t,n)=>{It.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])},kz=(e,t=!1)=>e.key===$_.ESC&&!t||(e.key===$_.LEFT||e.key===$_.RIGHT)&&AN(e),Az=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===$_.DOWN||n===$_.UP){const t=e=>n===$_.DOWN?vz(e):yz(e);ok(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},Iz=({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(j_.Disabled))return void ok(e);const d=null==c?void 0:c.isModal();if(!kz(e,d))switch(e.key){case $_.SPACE:ok(e),n.isSelectable&&o&&r({type:H_.SELECT,payload:{cell:n,evt:e,announce:a}});break;case $_.ENTER:ok(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case $_.ESC:ok(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case $_.TAB:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{(null==t?void 0:t.enabled)&&n&&(e.shiftKey||!e.shiftKey&&!r)&&(ok(e),rk(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;default:PN(e.key)&&(ok(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}=Ez({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:H_.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}))}},Pz=e=>{const{layout:t,rect:n,theme:r}=dq(lq,(e=>e.baseProps)),[o,i]=It.useState(0),[a,l]=It.useState(0);return It.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}},Mz=w_("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),Lz=w_(KO,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),Dz=w_(DO,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),_z=()=>Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(Mz,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Pl.jsx(Mz,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),Tz=e=>e.stopPropagation(),Oz=({href:e,text:t,interactions:n,color:r})=>Pt.createElement(xw,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:Tz,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t);var Nz,qz;const Fz=null!==(Nz=window.requestIdleCallback)&&void 0!==Nz?Nz:(e,t)=>{var n;return setTimeout((()=>{e({})}),null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:0)},zz=null!==(qz=window.cancelIdleCallback)&&void 0!==qz?qz:e=>clearTimeout(e),jz=e=>{e.style.position="static"},Hz=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),$z=(e,t)=>({y:{data:{field:"qMeasureInfo/0"},invert:!0,min:Math.min(0,e),max:Math.max(0,t)},x:{data:{extract:{field:"qDimensionInfo/0"}},paddingInner:.3,paddingOuter:0,invert:!1,align:0,maxPxStep:12}}),Bz=null==n?void 0:n();null==Bz||Bz.use(t),null==Bz||Bz.renderer.prio(["canvas"]);const Wz=({chart:e,element:t,requestId:n,qMatrix:r,minY:o,maxY:i})=>({renderChartWithRequestIdleCallback:It.useCallback((()=>{if(null===t.current||null!==e.current)return;n.current=Fz((()=>{t.current&&(e.current=((e,{qMatrix:t,minY:n,maxY:r})=>Bz.chart({element:e,data:{type:"q",key:"qHyperCube",data:Hz(t)},settings:{scales:$z(n,r),components:[{key:"bars",type:"box",data:{extract:{field:"qDimensionInfo/0",props:{start:0,end:{field:"qMeasureInfo/0"}}}},settings:{major:{scale:"x"},minor:{scale:"y"},box:{maxWidthPx:8}},mounted:jz}]}}))(t.current,{qMatrix:r,minY:o,maxY:i}))}),{timeout:250})}),[e,t,i,o,r,n]),safeCancelIdleCallback:It.useCallback((()=>{null!==n.current&&zz(n.current),n.current=null}),[n])}),Vz=({qMatrix:e,minY:t,maxY:n,intersectionRoot:r})=>{const o=It.useRef(null),i=It.useRef(null),a=It.useRef(null),{renderChartWithRequestIdleCallback:l,safeCancelIdleCallback:s}=Wz({element:o,chart:i,requestId:a,qMatrix:e,minY:t,maxY:n});return(({element:e,intersectionRoot:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=It.useCallback((e=>{var t;null!==(t=e.at(0))&&void 0!==t&&t.isIntersecting?r():n()}),[r,n]);It.useEffect((()=>{if(!e.current||!t)return()=>{};const r=new IntersectionObserver(i,{root:null==t?void 0:t.current});return r.observe(e.current),()=>{var e;r.disconnect(),n(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,i,t,n])})({element:o,intersectionRoot:r,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionRoot:r})=>{It.useEffect((()=>r?()=>{}:(e(),()=>{var e;t(),null===(e=n.current)||void 0===e||e.destroy(),n.current=null})),[r,t,e,n])})({intersectionRoot:r,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),o},Uz=({height:e,intersectionRoot:t,qMatrix:n,minY:r,maxY:o})=>{const i=Vz({intersectionRoot:t,qMatrix:n,minY:r,maxY:o});return Pt.createElement("div",{"data-testid":"picasso-container",ref:i,style:{width:"100%",height:e,overflow:"hidden"}})},Gz="cell-text",Yz=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=dq(lq,(e=>e.baseProps)),{flags:l}=dq(lq,(e=>e.env));return o?Pl.jsx(mz,{"data-testid":Gz,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:r,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Pl.jsx(mz,{"data-testid":Gz,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:n,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:r,children:e})},Kz=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}`},Xz=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},Jz=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Pl.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:n,objectFit:Xz(a),objectPosition:Kz(l),overflow:"hidden"}});var c;return r?Pl.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},Qz=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),Zz=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},ej=(e,t,n)=>{const r={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const n=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:n&&t>0?n[t-1]:{value:0,gradient:!1},upperLimit:n&&n[t]?n[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=r===i.value?1:(r-a.value)/(i.value-a.value);return a.gradient&&i.gradient?r-a.value<i.value-r?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return l&&y(e.localPaletteColors[t].color).blend(y(l.color),l.t)},tj=(e,t,n)=>{const r=((e,t)=>{const{limits:n}=e;return n&&(e.limits=n.sort(((e,t)=>e.value-t.value)),e.limits=n.map((e=>({...e,value:Qz(t,e.value)})))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map(((e,t)=>({color:Zz(r,t,n)})))),r},nj=(e,t,n,r)=>{const o=tj(e,n,r),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let n="",r=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=r&&t<i){n=ej(e,a,t);break}r=i}return n})(o,t);return a},rj=(e,t)=>{const n=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),r=n.some((e=>!dP(e)));return 0===n.length||r?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===n.length?((e,t)=>{const n=e[0]-t;if(0===n||!dP(n)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return n>0?{min:t-.5*Math.abs(t),max:e[0]+2*n}:{min:e[0]+2*n,max:t+.5*Math.abs(t)}})(n,t):((e,t)=>{let n=e[e.length-1]-e[0];return n=n>0?n:1,{min:Math.min(t,e[0])-n/2,max:Math.max(t,e[e.length-1])+n/2}})(n,t)},oj=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=rj(e,t),o=Math.abs(t);return{min:null!=n?n:t-o,max:null!=r?r:t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!dP(t))return 0;let a=n&&dP(n)?Math.min(n,t):0;const l=r.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}};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)=>Pt.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),Pt.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})),lj=It.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)=>Pt.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),Pt.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"})),cj=It.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)=>Pt.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),Pt.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"})),fj=It.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)=>Pt.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),Pt.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"}),Pt.createElement("use",{fillRule:"evenodd"})),gj=It.forwardRef(hj);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)=>Pt.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),Pt.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"})),yj=It.forwardRef(vj);function xj(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)=>Pt.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){xj(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),Pt.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"})),Ej=It.forwardRef(Sj);function wj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Cj=(e,t)=>Pt.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){wj(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),Pt.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"})),Rj=It.forwardRef(Cj);function kj(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)=>Pt.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){kj(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),Pt.createElement("path",{d:"M2 7h12v2H2z"})),Ij=It.forwardRef(Aj);function Pj(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)=>Pt.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){Pj(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),Pt.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"})),Lj=It.forwardRef(Mj);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 _j=(e,t)=>Pt.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),Pt.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"})),Tj=It.forwardRef(_j);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 Nj=(e,t)=>Pt.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),Pt.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"})),qj=It.forwardRef(Nj);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 zj=(e,t)=>Pt.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),Pt.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})),jj=It.forwardRef(zj);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 $j=(e,t)=>Pt.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),Pt.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"})),Bj=It.forwardRef($j);function Wj(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)=>Pt.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){Wj(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),Pt.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=It.forwardRef(Vj);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 Yj=(e,t)=>Pt.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),Pt.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"})),Kj=It.forwardRef(Yj);function Xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jj=(e,t)=>Pt.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){Xj(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),Pt.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 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)=>Pt.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),Pt.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"})),eH={m:jj,"ï":qj,R:It.forwardRef(Jj),S:Bj,T:Uj,U:Kj,P:Tj,Q:Rj,"è":It.forwardRef(Zj),"¢":yj,"©":gj,"23F4":Ej,2013:cj,"&":Lj,add:lj,"minus-2":Ij,dot:fj},tH=({size:e,iconKey:t,color:n})=>{const r=t&&eH[t]||void 0;return r&&Pl.jsx(r,{style:{color:n,height:e}})},nH=({representation:e,cellValue:t})=>{const n=e.indicatorConditionalColoring,{styleService:r,theme:o}=dq(lq,(e=>e.baseProps));if(!n)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=r.measure.values.fontSize,parseInt(d||yN,10));var d;const p=oj(n,t),f=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var n,r,o;return!(!e||0===e.length||!(null!==(n=null===(r=e[t])||void 0===r?void 0:r.gradient)&&void 0!==n?n:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,n.limitPaletteColorIndex))return Zz(o,n.limitPaletteColorIndex,r);const a=Qz(n.limitRange,t);return nj(o,a,n.limitRange,r)})(n,t,p,o),m=n.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Pl.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",gap:"2px",alignItems:"center",color:u?f:void 0},children:["left"===s&&tH({size:c,iconKey:m,color:f}),Pl.jsx(Yz,{isNumeric:!0,children:i}),"right"===s&&tH({size:c,iconKey:m,color:f})]}):tH({size:c,iconKey:m,color:f})},rH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,oH=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionRoot:i})=>{const{interactions:a,styleService:l}=dq(lq,(e=>e.baseProps)),s=dq(lq,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=t.representation.text;return t.representation.type!==mI.Link||s||(u=Pl.jsx(Oz,{href:t.representation.url,text:t.representation.text,interactions:a,color:n.cellForegroundColor})),t.representation.type===mI.Image?Pl.jsx(Jz,{representation:t.representation,textStyle:n,maxImageHeight:rH(l,o),wrapInContainer:!r}):t.representation.type===mI.Indicator&&"number"==typeof t.qNum?Pl.jsx(nH,{representation:t.representation,cellValue:+t.qNum}):t.representation.type===mI.MiniChart&&t.representation.miniChart?Pl.jsx(Uz,{height:rH(l,o),intersectionRoot:i,...t.representation.miniChart}):Pl.jsx(Yz,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:u})},iH=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{It.useEffect((()=>{const i=()=>{t({type:H_.RESET})},a=()=>{t({type:H_.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])},aH=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:H_.SELECT_MULTI_END});n({type:H_.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:H_.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:H_.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),lH=w_(zO,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),sH=w_(sN,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:n})=>({height:n,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),uH=w_(VO,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...EN,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),cH=w_(VO,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...EN,...e,fontWeight:xN,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 dH(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,{styleService:a}=dq(lq,(e=>e.baseProps)),l=dq(lq,(e=>LN(n,e.selectionState))),s=dq(lq,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=aH(i,n,s,o),p=function(e,t,n){return t===j_.Selected?{...e,...n}:t===j_.Disabled?{...e,background:`${bN}, ${e.background}`}:e}(r,l,a.selectedColors);return Pl.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function pH(e,t){let n=(r=uH,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 Pl.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${wk}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=dH(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=It.useMemo((()=>n.isNull?o:GN(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,n.isNull,r.qAttrExprInfoIDs]);return Pl.jsx(e,{...t,styling:i})}}(n)),n}const fH=(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}),mH=()=>{const{columns:e,totalsPosition:t,rows:n}=dq(lq,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=dq(lq,(e=>e.baseProps)),s=dq(lq,(e=>e.headRowHeight)),u=dq(lq,(e=>e.setFocusedCellCoord));return Pl.jsx(sN,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:n.length+1,c];return Pl.jsx(cH,{totalsStyle:{...a.totalRow,...fH(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${wk}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o=!1)=>{if(o)ok(e);else if(!kz(e))switch(e.key){case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;case $_.SPACE:e.preventDefault();break;default:PN(e.key)&&(ok(e),Ez({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}})(e,r,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{wz(d,r,u,i)},children:Pl.jsx(Yz,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var hH=It.memo(mH);const gH=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=dq(lq,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f}=dq(lq,(e=>e.baseProps)),m=dq(lq,(e=>e.setFocusedCellCoord)),h=dq(lq,(e=>e.selectionDispatch)),g=!!p.active&&!!p.select,b=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),v=It.useMemo((()=>JSON.parse(b).map((e=>{const t=e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e)));return pH(t,g)}))),[b,g]),y=!(null===(r=$N(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return iH({keyboard:c,selectionDispatch:h,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Pl.jsxs(lH,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Pl.jsx(hH,{}):void 0,o.map(((e,r)=>Pl.jsx(sH,{hoverColors:f.grid.hoverColors,hover:y,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:r,height:f.contentMinRowHeight,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],b=v[o];let y=r.isDim?f.dimension.values:f.measure.values;d.isNull&&(y={...y,...f.nullValues});const x=GN(y,d.qAttrExps,r.qAttrExprInfoIDs);return b&&Pl.jsx(b,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:n,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{Iz({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:h,isSelectionsEnabled:g,setFocusedCellCoord:m,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===$_.SHIFT&&t({type:H_.SELECT_MULTI_END})})(e,h),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;wz([l,a],t,n,r)})(d,u,m,c,l),children:Pl.jsx(oH,{cell:d,style:x,intersectionRoot:t})},i)}))},`row-${r}`))),l.atBottom?Pl.jsx(hH,{}):void 0]})};var bH=It.memo(gH);const vH=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>e.columnWidths)),c=dq(lq,(e=>e.setColumnWidths));if(!l.active)return null;return Pl.jsx(gq,{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");Sz({focusType:B_.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function yH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xH=(e,t)=>Pt.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){yH(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),Pt.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"})),SH=It.forwardRef(xH);function EH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wH=(e,t)=>Pt.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){EH(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),Pt.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"})),CH=It.forwardRef(wH);function RH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kH=(e,t)=>Pt.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){RH(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),Pt.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"}),Pt.createElement("use",{fillRule:"evenodd"})),AH=It.forwardRef(kH),IH=w_("div")({position:"absolute",left:0,bottom:0}),PH=w_(pO,{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"})));w_("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const MH=w_(pO,{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},[`& .${xk}`]:{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"},[`& .${xk}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),LH=w_(pO,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));w_(pO,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),w_(RO)((({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"}}))),w_("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),w_(yO)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),w_("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const DH=w_(VO,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:n,background:r})=>({...EN,...e,cursor:t.active?"pointer":"default",background:r,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?n:r}})));w_("div")({display:"flex",alignItems:"center"});const _H=w_("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:yN,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),TH=({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,styleService:p,layout:f}=dq(lq,(e=>e.baseProps)),m=dq(lq,(t=>t.columnWidths[e.pageColIdx])),h=dq(lq,(e=>e.env)),g=It.useRef(null),b=It.useRef(null),v=(({styleService:e,column:t,columnWidth:n})=>{const{measureText:r}=pk({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:xN});return It.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])})({styleService:p,column:e,columnWidth:m}),y=v(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r})=>{const o="A"===e?Pl.jsx(SH,{height:yN,"data-testid":"head-cell-sort-ascending-icon"}):Pl.jsx(CH,{height:yN,"data-testid":"head-cell-sort-descending-icon"}),i=n?Pl.jsx(_H,{align:t,children:o}):void 0,a=r?Pl.jsx(LH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Pl.jsx(AH,{height:yN,"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 Pl.jsxs(MH,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Pl.jsxs(PH,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Pl.jsx(Yz,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),S]}),t&&Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(AF,{headerData:e,translator:l,anchorRef:g,handleHeadCellMenuKeyDown:Az,menuAvailabilityFlags:{[CF.SORTING]:!0,[CF.SEARCHING]:!0,[CF.SELECTIONS]:!0,[CF.ADJUST_HEADER_SIZE]:!0},open:n,setOpen:r,interactions:u,sortRelatedArgs:{sortFromMenu:(t,n)=>(t.stopPropagation(),s(e,n))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:xz},shouldShowMenuIcon:y.shouldShowMenuIcon,env:h}),Pl.jsx(IH,{ref:b}),Pl.jsx(IH,{ref:g})]})]})},OH=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=It.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=It.useState(!1);return hk((()=>{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(Rk)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},NH=({column:e,columnIndex:t,columnsLength:n})=>{const{interactions:r,rootElement:o,keyboard:i,styleService:a}=dq(lq,(e=>e.baseProps)),{columns:l,totalsPosition:s}=dq(lq,(e=>e.tableData)),u=dq(lq,(e=>e.columnWidths[t])),c=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=dq(lq,(e=>e.setFocusedCellCoord)),p=dq(lq,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),f=!!r.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=OH({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?W_[e.sortDirection]:void 0,y=m?Ek: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 Pl.jsxs(DH,{headerStyle:{...a.header,...fH(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 ${wk}`,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(!kz(e))switch(e.key){case $_.C:ok(e),kN(e)&&_k(e.currentTarget);break;case $_.ENTER:case $_.SPACE:i&&i(e);break;default:PN(e.key)&&(ok(e),Ez({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r}))}}else ok(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):Sz({focusType:B_.FOCUS,cell:gz(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:[Pl.jsx(TH,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Pl.jsx(vH,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},qH=()=>{var e;const{columns:t}=dq(lq,(e=>e.tableData)),{styleService:n,viewService:r}=dq(lq,(e=>e.baseProps)),o=dq(lq,(e=>e.setHeadRowHeight)),i=dq(lq,(e=>e.columnWidths)),a=It.useRef(null);return It.useEffect((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[n.header.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Pl.jsx(tN,{children:Pl.jsx(sN,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Pl.jsx(NH,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var FH=It.memo(qH);const zH=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}=dq(lq,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:C,rect:R}=dq(lq,(e=>e.baseProps)),k=dq(lq,(e=>e.focusedCellCoord)),A=dq(lq,(e=>e.setFocusedCellCoord)),I=dq(lq,(e=>e.setYScrollbarWidth)),P=dq(lq,(e=>e.showRightBorder)),M=dq(lq,(e=>e.selectionDispatch)),L=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=It.useRef(!1),_=It.useRef(null),T=It.useRef(null),{yScrollbarWidth:O}=Pz(_),N=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,q=SM(C,w),F=q&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,z=q&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,j=It.useCallback((()=>{D.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),H=It.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),$=It.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return Cz(T,D,v),Rz(_,i,w),(()=>{const{rootElement:e,keyboard:t}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.focusedCellCoord));hk((()=>{const r=t.active?B_.FOCUS:B_.BLUR,o=t.active?gz(e,n):bz(e);Sz({focusType:r,cell:o})}),[t.active,e])})(),It.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=F,e.scrollTop=z)}),[r,d,F,z]),hz((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{Sz({focusType:B_.REMOVE_TAB,cell:bz(t)});const s=[l.atTop?2:1,e[1]],u=r?s:bT;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=n.current?B_.FOCUS:B_.ADD_TAB;n.current=!1;const d=gz(t,u);if(Sz({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:L,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),hz((()=>{I(O)}),[O]),hz((()=>{M({type:H_.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Pl.jsxs(fz,{ref:T,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(AN(e)){ok(e);const a=Math.ceil(t/r)-1;e.key===$_.RIGHT&&n<a?(i(),o(n+1)):e.key===$_.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===$_.ESC&&a.enabled&&!l){var s;ok(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else IN(e.key)&&ok(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:H,setShouldRefocus:j,keyboard:v,isSelectionMode:L})},"data-testid":"sn-table",children:[Pl.jsx(_z,{}),Pl.jsx(Lz,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Pl.jsxs(Dz,{stickyHeader:!0,"aria-label":N,borderRight:P?`1px solid ${E.grid.border}`:void 0,children:[Pl.jsx(FH,{}),Pl.jsx(bH,{...e,setShouldRefocus:j,tableWrapperRef:T})]})}),Pl.jsx(dz,{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:H,handleChangeRowsPerPage:$,isSelectionMode:L})]})};var jH=It.memo(zH),HH=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $H(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||HH(r)&&HH(o)))return!1;var r,o;return!0}function BH(e,t){var n;void 0===t&&(t=$H);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}}var WH="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function VH(e){cancelAnimationFrame(e.id)}function UH(e,t){var n=WH();var r={id:requestAnimationFrame((function o(){WH()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var GH=-1;function YH(e){if(void 0===e&&(e=!1),-1===GH||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),GH=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return GH}var KH=null;function XH(e){if(void 0===e&&(e=!1),null===KH||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?KH="positive-descending":(t.scrollLeft=1,KH=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),KH}return KH}var JH=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QH(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,Ve(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ve(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=BH((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=BH((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=BH((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(XH()){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&&VH(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UH(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}We(t,e),t.getDerivedStateFromProps=function(e,t){return ZH(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=YH();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(XH()){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&&VH(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?JH: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 I=R;I<=k;I++)for(var P=E;P<=w;P++)A.push(It.createElement(t,{columnIndex:P,data:d,isScrolling:v?x:void 0,key:f({columnIndex:P,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,P)}));var M=a(this.props,this._instanceProps),L=l(this.props,this._instanceProps);return It.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:_e({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},It.createElement(u||c||"div",{children:A,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:L}}))},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}(It.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ZH=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},e$=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},t$=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},n$=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]},r$=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?o$(e,t,n,i,0,r):i$(e,t,n,Math.max(0,i),r)},o$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=n$(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&&n$(e,t,r,n).offset<o;)r+=a,a*=2;return o$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},a$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=n$(e,t,n,i),u="column"===e?t$(t,i):e$(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$=QH({getColumnOffset:function(e,t,n){return n$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return r$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=n$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=n$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:e$,getEstimatedTotalWidth:t$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return a$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return a$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return n$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return r$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=n$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=n$("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}}),s$=function(e,t){return e};function u$(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,Ve(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ve(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=BH((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=BH((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=BH((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(XH()){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&&VH(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UH(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}We(t,e),t.getDerivedStateFromProps=function(e,t){return c$(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?YH():0:s.scrollHeight>s.clientHeight?YH():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(XH()){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&&VH(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?s$: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(It.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 It.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:_e({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},It.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}(It.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var c$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},d$=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]},p$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=d$(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},f$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&d$(e,n,t).offset<r;)n+=i,i*=2;return p$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},m$=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},h$=u$({getItemOffset:function(e,t,n){return d$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:m$,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=d$(e,t,o),p=m$(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?p$(e,t,o,0,n):f$(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=d$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=d$(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 g$(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 b$=["style"],v$=["style"];function y$(e,t){var n=e.style,r=$e(e,b$),o=t.style,i=$e(t,v$);return!g$(n,o)&&!g$(r,i)}const x$=({style:e})=>Pl.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var S$=Pt.memo(x$,y$);const E$=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},w$=(e,t,n)=>{It.useEffect((()=>{const r=n?n(e):e.current;if(!r)return()=>{};const o=new ResizeObserver(t);return o.observe(r),()=>{o.disconnect()}}),[e,t,n])},C$=()=>{},R$=e=>e.preventDefault();const k$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=r,d=dq(lq,(e=>e.hoverIndex===t)),p=dq(lq,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=dq(lq,(e=>e.baseProps)),h=dq(lq,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.selectionDispatch)),r="object"==typeof e,o=dq(lq,(t=>r?LN(e,t.selectionState):j_.Inactive)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=aH(R$,e,n,C$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,n,r)=>{const o=It.useRef(null),i=n&&!(null!=n&&n.isNumeric),a=It.useCallback((n=>{const o=E$(n);o&&i&&r(o,e,t)}),[t,r,e,i]);return w$(o,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var w;const r=((e,t,n,r,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?GN(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return r===j_.Selected?{...a,...i.selectedColors}:r===j_.Disabled?{...a,color:n?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${bN}, ${n?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:n?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Pl.jsx("div",{className:`sn-table-cell ${x} ${wk}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===mI.Image&&"fitHeight"===g.representation.imageSize?null===(w=g.representation)||void 0===w||null===(w=w.resolvedImagePosition)||void 0===w?void 0:w.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...o,children:Pl.jsx(oH,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:r,lineClamp:c,virtualizedCell:!0})})}return Pl.jsx(S$,{style:{...n,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var A$=Pt.memo(k$,y$);const I$=e=>{const t=It.useRef(e);return t.current=e,t},P$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,M$=(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},L$=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},D$=(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,conditionalColoring:y,qMiniChart:x}=i[o];f[o]=null!==(n=f[o])&&void 0!==n?n:{id:uP(),...e,align:yM(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:pP(e),isNull:pM(e,u),representation:dM(e,v,b,l,y,x)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(n,l,s,e.qArea,u,r,o,i,a);n[d]=c}))}))},_$=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=dq(lq,(e=>e.env)),p=It.useRef([]),f=It.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return D$(t,o,r,s,e,d,c),p.current=r,r}),[i,o,s,e,d,c]),[m,h]=It.useState((()=>f(null!=r?r:[])));hk((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=It.useRef(new Set),r=It.useRef(new Set),o=It.useRef(new Set),i=I$(e),a=I$(t),l=It.useMemo((()=>({enqueue:e=>{const t=P$(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(P$(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=It.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(L$(p.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[p,g]),v=It.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(M$(p.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[p,g,o]);return It.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}},T$=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},O$=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,N$=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=dq(lq,(e=>e.baseProps.styleService)),i=dq(lq,(e=>e.columnWidths)),{estimateLineCount:a}=pk(o.dimension.values),l=tq(o.dimension.values.fontSize),s=e||t||1===n;return It.useCallback(((e,t,o)=>{if(s||e.representation.type===mI.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])},q$=({isStaticNbrOfLines:e,minRowHeight:t,state:n,rowCount:r,staticRowHeight:o,viewService:i})=>It.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]),F$=({rowCount:e,isSnapshot:t,viewService:n,gridRef:r,pageInfo:o})=>{const{styleService:i}=dq(lq,(e=>e.baseProps)),[a,l]=It.useState({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:n})=>{var r;const{layout:o}=dq(lq,(e=>e.baseProps)),i=dq(lq,(e=>e.columnWidths)),{flags:a}=dq(lq,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(r=o.multiline)||void 0===r?void 0:r.wrapTextInCells);hk((()=>{var n;null===(n=e.current)||void 0===n||n.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,n.page,l]),hk((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:r,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:n,gridRef:r})=>It.useCallback(((o,i,a)=>{It.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(!O$(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,T$(d)),null===(s=r.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,n,t,r]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:r}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>It.useCallback(((o,i,a)=>{e||t||1===n||r(o,i,a)}),[e,t,n,r]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:N$({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:It.useCallback((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:q$({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:n}),lineClamp:f}};var z$;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(z$||(z$={}));const j$=({layout:e,loadRows:t,loadColumns:n,rowCount:r,pageInfo:o,gridState:i,viewService:a})=>It.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=z$.None,i=z$.None;return o=r>t?z$.Down:r<t?z$.Up:z$.None,i=n>e?z$.Right:n<e?z$.Left:z$.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===z$.Down){const e=x+25;t(b,v,y,u+e>r?r-u:e)}else if(h===z$.Up){const e=x+25,n=o.page*o.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(g===z$.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(g===z$.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]),H$={enabled:!1},$$=()=>{},B$={current:null};const W$=(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=It.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}},V$=({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}`},U$={overflow:"hidden",willChange:"auto"},G$=It.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}=dq(lq,(e=>e.baseProps)),p=dq(lq,(e=>e.columnWidths)),f=dq(lq,(e=>e.initialDataPages)),m=It.useRef(null),h=It.useRef(null),g=It.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=It.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}=W$(l,i,r,p,d.contentMinRowHeight),{setMeasuredCellHeight:E,setEstimatedCellHeight:w,getRowHeight:C,lineClamp:R,totalRowHeight:k}=F$({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:A,loadRows:I,loadColumns:P}=_$({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:w}),M=j$({layout:l,loadRows:I,loadColumns:P,rowCount:y,pageInfo:i,gridState:g,viewService:c}),L=It.useMemo((()=>({rowsInPage:A,columns:o,isHoverEnabled:v,lineClamp:R,setMeasuredCellHeight:E})),[A,o,v,R,E]),D=((e,t,n)=>Math.min(e.height-t,n))(r,a,k);return It.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}=dq(lq,(e=>e.baseProps)),n=dq(lq,(e=>e.selectionDispatch));It.useEffect((()=>{n({type:H_.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),iH({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:$$,keyboard:H$,tableWrapperRef:B$})}(A),It.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:D)-D,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,D,y]),Pl.jsx(l$,{"data-key":"body",ref:m,innerRef:h,style:U$,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:D,rowCount:y,rowHeight:C,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:L,onItemsRendered:M,itemKey:V$,className:"sn-table-body",children:A$})}));var Y$=It.memo(G$);const K$=({width:e,height:t,children:n})=>Pl.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),X$=(e,t)=>{const n=It.useRef(null),r=dq(lq,(e=>e.columnWidths));It.useLayoutEffect((()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)}),[t,n,e,r.length]);const o=It.useCallback((n=>{const r=E$(n);r&&t(r+9,e)}),[e,t]);return w$(n,o),n},J$=w_("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}}))),Q$=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=n,{interactions:l,styleService:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=dq(lq,(e=>e.showRightBorder)),d=dq(lq,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=OH({isInteractionEnabled:p,columnsData:r}),b=X$(e,a),v=r[e],y=r.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Pl.jsxs(J$,{className:`sn-table-cell ${wk}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...fH(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:[Pl.jsx(TH,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Pl.jsx(vH,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},Z$=e=>{const[t,n]=It.useState(new Map);hk((()=>{n(new Map)}),[e.length]);const r=It.useCallback(((e,t)=>{n((n=>O$(n.get(t),e)?new Map(n).set(t,e):n))}),[]);return{rowHeight:It.useMemo((()=>T$(t)),[t]),setMeasuredCellHeight:r}},eB=(e,t,n)=>{It.useImperativeHandle(e,(()=>({scrollTo:e=>{var n;return null===(n=t.current)||void 0===n?void 0:n.scrollTo(e)},element:n.current})),[t,n])},tB=(e,t,n,r,o)=>{hk((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,n,e,r,o])},nB={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},rB=It.forwardRef(((e,t)=>{const{rect:n,columns:r,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=It.useRef(null),s=It.useRef(null),{layout:u,theme:c,styleService:d}=dq(lq,(e=>e.baseProps)),p=dq(lq,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=Z$(r);return eB(t,l,s),tB(l,u,o,p,c),Pl.jsx(h$,{ref:l,outerRef:s,layout:"horizontal",style:nB,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:Q$})}));var oB=It.memo(rB);const iB=Pt.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=dq(lq,(e=>e.baseProps));return Pl.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),aB=({children:e,rect:t})=>Pl.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),lB=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i}=n,{layout:a,interactions:l,styleService:s}=dq(lq,(e=>e.baseProps)),u=dq(lq,(e=>e.showRightBorder)),c=X$(e,i),d=r[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=r[e],m=a.qHyperCube.qSize.qcx-1===e;return Pl.jsx("div",{className:`sn-table-cell ${wk}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...fH(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:Pl.jsx(Yz,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},sB=It.forwardRef(((e,t)=>{const{rect:n,pageInfo:r,totals:o,columns:i}=e,a=It.useRef(null),l=It.useRef(null),{layout:s,theme:u,styleService:c}=dq(lq,(e=>e.baseProps)),d=dq(lq,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=Z$(i);return eB(t,a,l),tB(a,s,r,d,u),Pl.jsx(h$,{ref:a,outerRef:l,layout:"horizontal",style:nB,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:lB})}));var uB=It.memo(sB);const cB=e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.element},dB=e=>{var t,n;const[r,o]=It.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),i=It.useCallback((e=>{const t=E$(e);t&&o(t)}),[]);return w$(e,i,cB),r},pB=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=dq(lq,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=dq(lq,(e=>e.baseProps)),c=dq(lq,(e=>e.columnWidths)),d=dq(lq,(e=>e.setYScrollbarWidth)),p=It.useRef(null),f=It.useRef(null),m=It.useRef(null),h=It.useRef(null),{xScrollbarWidth:g,yScrollbarWidth:b}=Pz(p),v=It.useRef([]),y=It.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(s,i)),[s,i]),x=It.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=W$(a,n,x,c,0),E=(({headerRef:e,totalsRef:t,totalsPosition:n})=>{const r=dB(e),o=dB(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}=dq(lq,(e=>e.baseProps)),a=dB(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)=>It.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=It.useCallback((()=>{p.current&&(p.current.scrollTop=0)}),[p]);It.useLayoutEffect((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),It.useLayoutEffect((()=>{p.current&&(p.current.scrollTop=0)}),[n,S,l]),hz((()=>{d(b)}),[b]);const A=Pl.jsx(uB,{rect:x,pageInfo:n,columns:o,ref:m,totals:r},"totals");return Pl.jsx(iB,{ref:p,width:y.width,height:y.height,onScroll:R,children:Pl.jsx(K$,{width:w,height:C,children:Pl.jsxs(aB,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Pl.jsx(oB,{rect:x,pageInfo:n,columns:o,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v}),r.atTop?A:null,Pl.jsx(Y$,{ref:h,rect:x,pageInfo:n,columns:o,headerAndTotalsHeight:E}),r.atBottom?A:null]})})})};var fB=It.memo(pB);const mB=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=dq(lq,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=dq(lq,(e=>e.tableData)),c=dq(lq,(e=>e.pageInfo)),d=dq(lq,(e=>e.setPage));return Pl.jsxs(fz,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Pl.jsx(fB,{pageInfo:c}),Pl.jsx(dz,{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 hB=It.memo(mB);var gB,bB={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"}(gB||(gB={}));const vB=(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(bB).forEach((t=>{e.add(bB[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===gB.FIRST?(u=s,r=gB.SECOND):(u=l,r=gB.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),yB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},xB=({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=SM(o,g),S=EM(o,g),E=vB(r,a),w=x?{page:g.page||yB.page,rowsPerPage:g.rowsPerPage||yB.rowsPerPage,rowsPerPageOptions:yB.rowsPerPageOptions}:yB,[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>fM)return r({...n,rowsPerPage:mM(d,c),page:0}),null;const g=p>10,b=hM(t,o),v=xM(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:uP(),...e[o],align:yM(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:pP(e[o]),isNull:pM(e[o],r.isDim),representation:dM(e[o],r.representation,r.qAttrExprInfoIndex,i,r.conditionalColoring,r.qMiniChart)}})),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=pq(o);null==t||t.render(Pl.jsx(Oo,{stylisPlugins:"rtl"===o?[gT]:void 0,children:Pl.jsx(R_,{theme:x,children:Pl.jsx(cq,{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:Pl.jsx(jH,{...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 SB=({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(CN,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}},EB=({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=!EM(n,g),y=e.useMemo((()=>function(e,t,n){const r=hM(e,n),o=xM(e),i=e.qHyperCube.qSize.qcy,a=Math.min(CN,i),l=i>CN&&!!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(CN,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/CN);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,v),{initialDataPages:E,isLoading:w}=SB({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=pq("ltr");t.render(Pl.jsx(Pt.StrictMode,{children:Pl.jsx(R_,{theme:S,children:Pl.jsx(cq,{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:Pl.jsx(hB,{})})})}))}({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])},wB={version:JSON.stringify("3.13.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function CB(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 RB=(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]}},kB=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const AB=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||yB.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},IB=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=hM(e,t);if(EM(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=CB(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:AB(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=RB(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=(kB(m,h,g)?d:d+1)+c;let v=p+c;const y=RB(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(kB(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:AB(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},PB=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),MB=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:wB},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:iI,exportProperties:rI,exploration:aI},ext:eP(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>fk(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=uk(i,r,PB,MB),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=tP(i.qHyperCube,l),x=((t,n)=>{const{fontSize:r,fontFamily:o}=WN(n,t,!1),{fontSize:i,fontFamily:a}=VN(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(`.${wk}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{_k(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}=IB(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:()=>IB(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),EB({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}),xB({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})}}}}));