@nebula.js/sn-table 6.56.0 → 6.57.0

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 v6.56.0
2
+ * @nebula.js/sn-table v6.57.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -118,4 +118,4 @@ function Ki(e,t){let n;return n=t?Di(e).withConfig({displayName:t.label,shouldFo
118
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
119
  * See the License for the specific language governing permissions and
120
120
  * limitations under the License.
121
- */var iH=(rH||(rH=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+c+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+c+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),I=new RegExp("("+u+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(I,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(oH,oH.exports)),oH.exports),aH=Bt(iH),sH="comm",lH="rule",uH="decl",cH=Math.abs,dH=String.fromCharCode;function pH(e){return e.trim()}function fH(e,t,n){return e.replace(t,n)}function hH(e,t){return 0|e.charCodeAt(t)}function mH(e,t,n){return e.slice(t,n)}function gH(e){return e.length}function bH(e,t){return t.push(e),e}var vH=1,yH=1,xH=0,SH=0,wH=0,CH="";function EH(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:vH,column:yH,length:a,return:"",siblings:s}}function RH(){return wH=SH>0?hH(CH,--SH):0,yH--,10===wH&&(yH=1,vH--),wH}function AH(){return wH=SH<xH?hH(CH,SH++):0,yH++,10===wH&&(yH=1,vH++),wH}function IH(){return hH(CH,SH)}function kH(){return SH}function PH(e,t){return mH(CH,e,t)}function MH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DH(e){return pH(PH(SH-1,qH(91===e?e+2:40===e?e+1:e)))}function TH(e){for(;(wH=IH())&&wH<33;)AH();return MH(e)>2||MH(wH)>3?"":" "}function OH(e,t){for(;--t&&AH()&&!(wH<48||wH>102||wH>57&&wH<65||wH>70&&wH<97););return PH(e,kH()+(t<6&&32==IH()&&32==AH()))}function qH(e){for(;AH();)switch(wH){case e:return SH;case 34:case 39:34!==e&&39!==e&&qH(wH);break;case 40:41===e&&qH(e);break;case 92:AH()}return SH}function LH(e,t){for(;AH()&&e+wH!==57&&(e+wH!==84||47!==IH()););return"/*"+PH(t,SH-1)+"*"+dH(47===e?e:AH())}function NH(e){for(;!MH(IH());)AH();return PH(e,SH)}function jH(e){return function(e){return CH="",e}(_H("",null,null,null,[""],e=function(e){return vH=yH=1,xH=gH(CH=e),SH=0,[]}(e),0,[0],e))}function _H(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=AH()){case 40:108!=h&&58==hH(E,d-1)?(v++,E+="("):E+=DH(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=DH(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=dH(y);break}E+=TH(h);break;case 92:E+=OH(kH()-1,7);continue;case 47:switch(IH()){case 42:case 47:bH(FH(LH(AH(),kH()),t,n,l),l),5!=MH(h||1)&&5!=MH(IH()||1)||!gH(E)||" "===mH(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=gH(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=dH(y);break}switch(y){case 0:case 125:g=0;case 59+c:-1==b&&(E=fH(E,/\f/g,"")),f>0&&(gH(E)-d||0===m)&&bH(f>32?$H(E+";",r,n,d-1,l):$H(fH(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(bH(C=zH(E,t,n,u,c,o,s,x,S=[],w=[],d,i),i),123===y)if(0===c)_H(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===hH(E,3))break;case 108:if(97===hH(E,2))break;default:c=0;case 100:case 109:case 115:}c?_H(e,C,C,r&&bH(zH(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):_H(E,C,C,C,[""],w,0,s,w)}}u=c=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+gH(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==RH())continue;switch(E+=dH(y),y*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[u++]=(gH(E)-1)*b,b=1;break;case 64:45===IH()&&(E+=DH(AH())),p=IH(),c=d=gH(x=E+=NH(kH())),y++;break;case 45:45===h&&2==gH(E)&&(m=0)}}return i}function zH(e,t,n,r,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=mH(e,p+1,p=cH(g=a[m])),x=e;v<h;++v)(x=pH(g>0?f[v]+" "+y:fH(y,/&\f/g,f[v])))&&(l[b++]=x);return EH(e,t,n,0===o?lH:s,l,u,c,d)}function FH(e,t,n,r){return EH(e,t,n,sH,dH(wH),mH(e,2,-2),0,r)}function $H(e,t,n,r,o){return EH(e,t,n,uH,mH(e,0,r),mH(e,r+1,-1),r,o)}function HH(e,t,n){switch(e.type){case"@import":case uH:case sH:return e.return=e.return||e.value;case lH:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===sH&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),HH);return gH(r)?e.return=e.value+"{"+r+"}":""}function BH(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===lH&&(!e.parent||"@media"===e.parent.type||e.parent.type===lH)){var o=aH.transform(HH(e));e.children=o?jH(o)[0].children:[],e.return=""}}Object.defineProperty(BH,"name",{value:"stylisRTLPlugin"});const VH=hk(({options:e,...t})=>$g(qm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class WH{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const UH=$g(()=>new WH);let GH=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),KH=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),YH=function(e){return e.A="ascending",e.D="descending",e}({}),XH=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const JH=[0,0],ZH=e=>"number"==typeof e&&!Number.isNaN(+e),QH=e=>ZH(e.qNum),eB=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),tB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),nB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},rB=(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),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=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:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},oB=(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:tB(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:nB(r,t,n)}))),r},iB=(e,t,n,r)=>{const o=oB(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=rB(e,a,t);break}r=i}return n})(o,t);return a},aB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!ZH(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||!ZH(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)},sB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=aB(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!ZH(t))return 0;let a=n&&ZH(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},lB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),uB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),cB=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("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"}),Yt.jsx("use",{fillRule:"evenodd"})]})),dB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),pB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),fB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),hB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),mB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),gB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),bB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),vB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),yB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),xB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),SB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),wB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),CB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),EB={m:yB,"ï":bB,R:CB,S:xB,T:SB,U:wB,P:gB,Q:fB,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":dB,"©":cB,"23F4":pB,2013:vB,"&":mB,add:lB,"minus-2":hB,dot:uB},RB=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=sB(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return nB(o,n.limitPaletteColorIndex,r);const a=tB(n.limitRange,t);return iB(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,u=s[l]?.icon??"dot",{indicator:c}=e;let d=c?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:u,position:d}},AB=(hm().palette.primary.light,"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)"),IB=4/3,kB="12px",PB="600",MB="Source Sans Pro, sans-serif",DB={height:"auto",fontSize:kB,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"}},TB={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:PB},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OB=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,qB=(e,t)=>e.representation.type===u$.Image&&"fitHeight"===e.representation.imageSize?OB(t,e.representation):e.align,LB=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",NB=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},jB=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,_B=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",zB=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",FB=24,$B=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),HB=Mu(Sd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?LB(e,r):void 0})),BB=Mu(Sd,{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},[`& .${Um}`]:{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"},[`& .${Um}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),VB=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),WB=Mu(Sd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),UB=Mu(Dc,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),GB=$g(),KB=$g(0),YB=$g(0),XB=e=>parseInt(e??DB.fontSize,10)*IB,JB=4/3,ZB=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function QB(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eV=(e,t)=>e?{borderBottomColor:bm.DARK_MODE_BORDER,borderRightColor:bm.DARK_MODE_BORDER,borderLeftColor:bm.DARK_MODE_BORDER,borderTopColor:bm.DARK_MODE_BORDER}:{borderLeftColor:bm.BORDER_MEDIUM,borderRightColor:bm.BORDER_MEDIUM,borderTopColor:bm.BORDER_HEAVY,borderBottomColor:t?bm.BORDER_HEAVY:bm.BORDER_LIGHT},tV=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*JB+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},nV=e=>e.components?.find(e=>"theme"===e.key),rV=(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"),s={fontFamily:o,color:ZB(n?.fontColor)?QB(bm.TEXT,t,n?.fontColor):i||bm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...eV(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function oV(e,t,n){const r=nV(e)?.header,o=rV("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=xm(o.background??bm.WHITE,eg),o.activeBackground=xm(o.background??bm.WHITE,tg),o}const iV=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in TB)(e)&&Object.assign(t,TB[e])),t};function aV(e,t,n){const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&wm(i);a&&(r[n[t]]=a),o=i?iV(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=vm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const sV=25e4,lV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,uV=5e6,cV=5e5;const dV={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:pV(e),value:pV(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function pV(e){try{return decodeURIComponent(e)}catch{return e}}function fV(e){if(!(this instanceof fV))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>dV.fromSearchString(t.search)}})}function hV(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}fV.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},fV.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=hV(t.key),t.value?n+=`=${hV(t.value)}`:n+=t.useEqualSign?"=":"";return n};var mV=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},gV=class{decode(e){let t="";const n=new mV(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const bV=e=>e>=0&&e<=1114111,vV=e=>e.match(/[\s]/);var yV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!vV(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return bV(a)?String.fromCharCode(a):"�"}},xV=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},SV=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return xV.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return xV.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||xV.newInstanceIfNeeded(e,t,this._value)}},wV=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new SV);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const CV=(()=>{const e=[],t=[],n=new wV;let r,o,i;for(r in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var EV=class extends gV{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,CV.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=CV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}},RV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),bV(i))?String.fromCharCode(i):(e.reset(),null)}};let AV;"undefined"!=typeof document&&(AV=document.createElement("div"));const IV=Array.prototype.indexOf,kV=[",",".","_"," "],PV=[",",".","-","_"," "],MV={width:["%"],height:["%"]},DV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},TV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":DV.image,"background-color":DV.color,"border-color":DV.color,"border-image":DV.image,color:DV.color,icon:DV.image,"list-style-image":DV.image,"outline-color":DV.color},OV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qV(e,t,n){let r;if(t){if(IV)return IV.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function LV(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return AV.appendChild(n),t=AV.innerHTML,AV.removeChild(n),t}function NV(e,t,n){let r,o,i,a,s,l,u,c,d;for(e=_V(e).toLowerCase(),t=_V(t),i=0;i<OV.attr_name.length;i++)if(e.match(OV.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<OV.attr_val.length;i++)if(t.toLowerCase().match(OV.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=MV[e],r||(r=PV),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,r)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return n||(o+='"'),o}function jV(e,t,n){let r,o,i,a,s,l,u,c,d,p;if(e=_V(e).toLowerCase(),t=_V(t),qV(e,OV.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<OV.css_val.length;r++)if(t.toLowerCase().indexOf(OV.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=TV[e],o||(o=DV.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function _V(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new EV,new RV,new yV];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const zV=[];for(let e=0;e<255;e++)zV[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const FV={html:e=>LV(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=jV(t,n[t],!0),i+=jV(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=NV(e,t[e],!0),o+=NV(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function $V(e,t){throw new Error(t)}var HV={canonicalize:_V,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?FV.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.attr(e)):void $V(this,"Invalid parameter type")},encodeForAttr:NV,encodeForAttr2:function(e){return NV("nonsens",e,!0)},encodeForCSS:jV,encodeForHref:function(e){_V(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new fV(e),n=fV.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+fV.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=kV),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),qV(o,t)>=0||null==zV[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:LV,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=_V(t).toLowerCase():$V(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=cV,maxByteSizeImage:r=uV}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=lV.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const BV=(e,t)=>t.qAttrExps?.qValues?.[e],VV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},WV=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!HV.isSafeDataURL(t))?{type:u$.Text,url:void 0,text:e,labelStructure:o}:{type:u$.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:VV(r,a),labelStructure:o,imageBox:i},UV=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:u$.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:u$.MiniChart,text:r,miniChart:a}},GV=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===c$.Attribute?void 0:n?.urlLabel},KV=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:u$.Link,url:HV.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:u$.Text,url:void 0,text:t,labelStructure:e}}},YV=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=d$(t),d=s(e);return c===u$.Image&&u[u$.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=BV(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),WV({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return WV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=BV(n.imageLabel??-1,e)?.qText??r;return WV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:u$.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):c===u$.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===c$.Attribute){const i=GV(n.url??-1,e,t);return KV({labelStructure:r,text:o||i||"",url:i})}if(i===c$.Dimension){const i=GV(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),KV({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:u$.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):c===u$.Indicator&&u[u$.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:u$.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===u$.MiniChart&&u[u$.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?UV(e,t,i,d):{type:u$.Text,url:void 0,text:d,labelStructure:a}},XV=$g(e=>{const t=e(Hb),n=e(Rb);return e(Ab),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),JV=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),ZV=({cId:e})=>e??QF(),QV=1e4;function eW(e,t){return[...t].reverse().find(t=>t*e<=QV)||Math.floor(QV/e)}function tW(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function nW(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function rW(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return ZH(n?.qNum)}function oW(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const iW=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",aW=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?xm(s,eg):void 0,u=s?xm(s,tg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:vm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const sW=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ng.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:Qm.Auto},selectionColIdx:S,isActivelySorted:g,id:ZV(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:JV(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:nW(e,f,u,d??-1),...!f&&{isTotalNumeric:rW(e,d??-1)},...oW(I,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?aW(q,n):void 0}}(e,o,t,n,r))},lW=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",uW=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,cW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},dW=$g(e=>{const t=e(pW),n=e(yb),r=e(XV),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>QV?{...t,rowsPerPage:eW(l,t.rowsPerPageOptions),page:0}:t}),pW=$g(cW),fW=$g(e=>{const t=e(yb),n=e(Hb),r=e(XV);return _b(t,n)?{page:r.page||cW.page,rowsPerPage:r.rowsPerPage||cW.rowsPerPage,rowsPerPageOptions:cW.rowsPerPageOptions}:e(dW)},(e,t,n)=>{t(pW,e=>({...e,...n}))}),hW=!0,mW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,gW=$g(async e=>{const t=e(yb),n=e(Hb),r=e(Fb),{page:o,rowsPerPage:i}=e(fW),a=e(XV),s=e(Gb),l=e(mb),u=e(Sb),c=e(gb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=tW(t,n),v=sW(t,hW,r,c),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(mW);return v.forEach((a,s)=>{const u=e[s],c=!a.isDim&&u.qIsNull,d=a.isDim&&uW(u,a.isDim),p=c||d?lW(a.isDim,u,t,y):u.qText,f=c?eB(p):QH(u),g=QH(u)&&!eB(u.qText??"");o[s]={id:QF(),...u,align:iW(f,a.bodyTextAlign,r,hW),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!c||!f)&&uW(u,a.isDim),representation:YV({cell:u,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),bW=ZR(gW,e=>e),vW=$g(e=>{const t=e(yb),n=e(Hb),r=e(Tb),o=e(Fb),i=e(gb),a=sW(t,false,o,i),s=tW(t,n),l=t.qHyperCube.qSize.qcy,u=Math.min(sV,l),c=l>sV&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),yW={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},xW=$g(),SW=$g(e=>{const t=e(Vb),n=e(xW);return n||(t?e(bW)??yW:e(vW))}),wW=$g(e=>e(SW).totalsPosition),CW=$g(e=>e(SW).columns),EW=$g(e=>e(CW).length),RW=$g(e=>e(SW).rows),AW=$g(e=>e(SW).totalRowCount),IW=$g(e=>e(SW).totalColumnCount),kW=$g(e=>e(SW).paginationNeeded),PW=$g(e=>{const t=e(Qb),n=e(nv),r=e(yb),o=e(wW),i=e(RW),a=o.atTop,s=function(e,t,n,r){const o=nV(e)?.content,i=rV("content",t,o);i.background=t.background.color;const a=tV(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=ZB(l)||!!c,p=ZB(s)||!!u,f=d||p;let h;h=ZB(s)?QB(bm.HOVER,t,s):u||(d?"":bm.HOVER);const m=f?QB(vm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=oV(r,n,!a),u=function(e,t,n){const r=nV(e)?.content,o=rV("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=oV(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:u}}),MW=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},DW=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=MW(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},TW=(e,t,n,r=bm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=DW(e,t,n);return Im(i,o,a,r)??r},OW=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return kB}},qW=e=>e?.some(e=>"italic"===e)?"italic":"normal",LW=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?PB:"normal",NW=e=>!1===e?1:3,jW=e=>e?.some(e=>"underline"===e)?"underline":"none",_W=$g(e=>{const t=e(Hb),n=e(Vb),r=e(nv),o=e(yb),i=e(PW),a=e(gb),{header:s,dimensionValues:l,measureValues:u,totalValues:c,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=nV(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?bm.WHITE:bm.TRANSPARENT,v=TW(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??MB,fontSize:OW(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:qW(s?.fontStyle),fontWeight:LW(s?.fontStyle,PB),textDecoration:jW(s?.fontStyle),color:MW(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??bm.TEXT,background:v},headerMenuHoverBackground:xm(v,eg),headerMenuActiveBackground:xm(v,tg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:qW(l?.fontStyle),fontWeight:LW(l?.fontStyle,"normal"),textDecoration:jW(l?.fontStyle),color:MW(r,l?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??bm.TEXT,background:DW(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},measure:{values:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:qW(u?.fontStyle),fontWeight:LW(u?.fontStyle,"normal"),textDecoration:jW(u?.fontStyle),color:MW(r,u?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??bm.TEXT,background:DW(r,u,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(c?.fontStyle),fontWeight:LW(c?.fontStyle,PB),textDecoration:jW(c?.fontStyle),color:MW(r,c?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,c,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(d?.fontStyle),fontWeight:LW(d?.fontStyle,PB),textDecoration:jW(d?.fontStyle),color:MW(r,d?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:qW(x?.fontStyle),fontWeight:LW(x?.fontStyle,"normal"),textDecoration:jW(x?.fontStyle),color:MW(r,x?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:qW(p?.fontStyle),fontWeight:LW(p?.fontStyle,"normal"),textDecoration:jW(p?.fontStyle),color:MW(r,p?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??NW(o.multiline?.wrapTextInCells),headerLineClamp:NW(o.multiline?.wrapTextInHeaders),border:MW(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?bm.DARK_MODE_BORDER:bm.BORDER_MEDIUM),divider:MW(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??bm.BORDER_HEAVY,hoverColors:{color:MW(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:MW(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:MW(r,h?.zebraStripes?.color?.odd),background:MW(r,h?.zebraStripes?.background?.odd)},even:{color:MW(r,h?.zebraStripes?.color?.even),background:MW(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===MW(r,x?.background),overrideDimNullValueColor:void 0===MW(r,x?.fontColor),overrideMeasNullValueBackground:void 0===MW(r,p?.background),overrideMeasNullValueColor:void 0===MW(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:ym(r),contentStaticLineCount:y}}),zW=$g(e=>{const t=e(_W);return Math.max(XB(t.header.fontSize)+8,32)}),FW=$g(e=>{const t=e(_W),n=XB(t.totalRow.fontSize);return Math.max(n+9,24)}),$W=$g(e=>{const t=e(_W),n=e(wb),r=e(Cb);return Math.max(n>0?XB(t.dimension.values.fontSize):0,r>0?XB(t.measure.values.fontSize):0)}),HW=$g(e=>{const t=e(_W),n=e($W),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),BW=$g(e=>{const t=e(_W),n=XB(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),VW=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Zm.PixelsMax,Math.max(Zm.PixelsMin,f)),i-=r[a]};switch(s){case Qm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PixelsDefault:+e)(l),h();break;case Qm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PercentageDefault:+e)(u)/100*t,h();break;case Qm.FitToContent:e.representation?.type===u$.Image?o.push(a):(f=n(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Qm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Zm.AutoMinTable,e)})}return r},WW=$g(e=>{const t=e(_W),n=e(SW).totalsPosition,r=e(Ib),{measureText:o}=e(VH({...t.header,fontWeight:PB})),{measureText:i}=e(VH({...t.totalRow,fontWeight:PB})),{estimateWidth:a}=e(VH(t.dimension.values)),{estimateWidth:s}=e(VH(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,u,c,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,u&&(n+=20+t),c&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=FB),t+=FB,t+=FB,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),UW=$g(null),GW=$g(e=>{const t=e(SW),n=e(Zb).width,r=e(YB),o=e(WW);return VW(t.columns,n-r,o)}),KW=$g(e=>e(UW)??e(GW),(e,t,n)=>{t(UW,n)}),YW=CA(e=>{const t=e(UH);!1===e(GB)&&t.emit("done-adjusting-column-width")}),XW=CA((e,t)=>{e(yb),t(UW,null)}),JW=$g(e=>e(KW).reduce((e,t)=>e+t,0)),ZW=({children:e})=>(Qg(XW),Qg(YW),e);function QW(e){const t=hm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),cu({...t,direction:e})}const eU={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},tU={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},nU=Mu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,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":{...eU},"&::-moz-range-track":{...eU},"&::-ms-track":{...eU},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...tU},"&::-moz-range-thumb":{...tU},"&::-ms-thumb":{...tU},"&: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"}})),rU=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Bm({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};$m(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Zm.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Qm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Em(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Em(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===Xm.Left||e.key===Xm.Right){Em(e);const t=5,n=e.key===Xm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Xm.Space||e.key===Xm.Enter?(Em(e),s(e),l?.(!1),x()):e.key===Xm.Esc&&(Em(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Yt.jsx(nU,{style:b,hoverColor:o,isLastColumn:n,className:Jm,"data-testid":Jm,onMouseDown:e=>{Em(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Qm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Em(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Zm.PixelsMin,"aria-valuemax":Zm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},oU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),iU=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},aU=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),sU=Mu(oU,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),lU=Mu(jf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Mu(mp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),cU=Mu(Hf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),dU=Mu(Hf,{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"})),pU=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),fU=Mu("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),hU=Mu(jc)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),mU=Mu(cf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),gU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),bU=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?bU(t):t:e.parentElement?.children?.[0]},vU=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?vU(t):t},yU=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Xm.Down||t===Xm.Up){const n=e=>t===Xm.Down?bU(e):vU(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},xU=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let SU={};const wU=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(dU,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),SU={}),a?.length&&(p(!0),SU[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:yU,children:[l?Yt.jsx(pU,{direction:u,isPagination:c}):null,Yt.jsxs(fU,{children:[Yt.jsx(mU,{direction:u,isPagination:c,children:Yt.jsx(o,{})}),Yt.jsx(hU,{variant:"body2",children:r})]}),a?.length?Yt.jsx(gU,{}):null]},t),a?.length?Yt.jsx(AU,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:xU(a,SU),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},CU=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(cU,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(wU,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),EU=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[CU({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(uU,{"data-testid":"group-divider",variant:"middle"}):void 0]),RU={appear:0,enter:0,exit:0},AU=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(lU,{className:Gm,open:t,anchorEl:e,onClose:n,transitionDuration:RU,MenuListProps:{id:Km},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:EU({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,IU=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),kU=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),PU=(e,t)=>e.some(e=>t[e]>0),MU={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},DU=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(MU);return $m(()=>{e||(s(MU),i(null))},[e]),O(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=kU(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:PU(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:PU(["qSelected"],e),canSelectPossible:PU(["qOption"],e),canSelectAlternative:PU(["qAlternative"],e),canSelectExcluded:PU(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},TU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),OU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),qU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),LU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),NU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),jU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),_U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),zU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),FU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),$U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),HU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),BU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),VU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let WU=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const UU="/qListObjectDef",GU=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[WU.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({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);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:TU,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:LU,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:_U,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[WU.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:zU,enabled:!0}]}]),!e.isLocked&&n[WU.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:VU,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(UU))},icon:FU,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(UU))},icon:BU,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(UU))},icon:$U,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(UU))},icon:HU,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(UU))},icon:OU,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:jU,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:NU,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[WU.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:qU,enabled:!0}]}]),f},KU=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Vm})=>{const v=M(null),y=Bm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=DU({open:e,headerData:r,app:C,qStateName:c?.qStateName}),A=iU({model:f,headerData:r}),I=IU({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(aU,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Um,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(sU,{height:b,className:Wm,"data-testid":Wm,isInteractionsActive:i.active??!1,children:Yt.jsx(oU,{})}):null,Yt.jsx(AU,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:GU({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},YU=e=>e.isDark?{background:e.color,borderColor:bm.DARK_MODE_BORDER,color:bm.DARK_MODE_TEXT,disabledColor:bm.DARK_MODE_DISABLED,iconColor:bm.DARK_MODE_TEXT}:{background:e.color,borderColor:bm.BORDER_MEDIUM,color:bm.TEXT,disabledColor:bm.DISABLED},XU=Mu(Sd,{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}`})),JU=Mu(wh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),ZU=Mu(Dd,{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)})),QU=Mu(jc)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),eG=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>YU(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(XU,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},tG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),nG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),rG=D({}),oG=()=>N(rG),iG=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=k(()=>YU(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Bm({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return Yt.jsx(rG.Provider,{value:S,children:e})},aG=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let sG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lG=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}({});const uG=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=oG(),u=0===t.page,c=aG({type:sG.FirstPage,disabledCondition:u,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||lG.FirstPage)?null:Yt.jsx(ZU,{...c,disabled:!r.active,children:"rtl"===e?Yt.jsx(nG,{height:Vm}):Yt.jsx(tG,{height:Vm})})},cG=(e,t,n=!1)=>{n&&e.key===Xm.Tab&&!e.shiftKey&&(Em(e),Cm(e.target,t,!1))},dG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:u,translator:c,tabIndex:d}=oG(),p=t.page>=r-1,f=aG({type:sG.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:u,translator:c,interactions:a,tabIndex:d}),h=n.enabled?e=>{cG(e,n,o)}:void 0;return i<=(s?.lastPage||lG.LastPage)?null:Yt.jsx(ZU,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(tG,{height:Vm}):Yt.jsx(nG,{height:Vm})})},pG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),fG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:u,tabIndex:c}=oG(),d=t.page>=r-1,p=aG({type:sG.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:u,interactions:a,tabIndex:c}),f=!(i>lG.FirstPage&&i>lG.LastPage)&&n.enabled?e=>{cG(e,n,o)}:void 0;return Yt.jsx(ZU,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(pG,{height:Vm}):Yt.jsx(gU,{height:Vm})})},hG=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=oG(),s=0===t.page,l=aG({type:sG.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(ZU,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(gU,{height:Vm}):Yt.jsx(pG,{height:Vm})})},mG=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=oG(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||lG.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(QU,{variant:"caption",dir:"ltr",children:s})},gG=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=oG(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(QU,{variant:"caption",id:p,children:[c,":"]}),Yt.jsx(JU,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},bG=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=oG();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||lG.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(gG,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},vG=1e3,yG="…",xG=({totalPages:e,page:t})=>{const n=Math.min(e,vG),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-vG):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},SG=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=oG(),{page:i}=e;if(t<=(o?.selectPage||lG.SelectPage))return null;const a=Yt.jsx(xG,{totalPages:n,page:i});return Yt.jsx(gG,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var wG=z(e=>Yt.jsxs(iG,{...e,children:[Yt.jsx(bG,{}),Yt.jsx(SG,{}),Yt.jsx(mG,{}),Yt.jsx(uG,{}),Yt.jsx(hG,{}),Yt.jsx(fG,{}),Yt.jsx(dG,{})]}));const CG=e=>Yt.jsx(eG,{...e,children:Yt.jsx(wG,{...e})}),EG=(e,t,n)=>{const r=n.size,o=r>=t.size;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"]})},RG=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},AG=e=>e.ctrlKey||e.metaKey,IG=e=>e.shiftKey&&AG(e),kG=e=>[Xm.Left,Xm.Right,Xm.Up,Xm.Down].includes(e),PG=e=>e.shiftKey&&kG(e.key),MG=e=>(e=>kG(e)||[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown].includes(e))(e.key)&&!IG(e),DG=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),EG(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},TG=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&PG(u)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const c=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&PG(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Xm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,u,a);return EG(l,r,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},OG=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},qG=(e,t)=>{switch(t.type){case KH.Select:return DG(e,t.payload);case KH.SelectMouseDown: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 KH.SelectMouseUp:return((e,t)=>OG(e.isSelectMultiValues||e.firstCell!==t.cell?e:DG(e,t)))(e,t.payload);case KH.SelectMultiAdd:return TG(e,t.payload);case KH.SelectMultiEnd:return OG(e);case KH.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case KH.Clear:return e.rows.size?{...e,rows:new Map}:e;case KH.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LG=$g(e=>{const t=e(Mb);return function(e,t){return $g(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(SW).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},qG)}),NG=$g(e=>e(e(LG)),(e,t,n)=>{t(e(LG),n)}),jG=hk(e=>$g(t=>{const{colIdx:n,rows:r,api:o}=t(NG);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?GH.Disabled:r.has(e.qElemNumber)?GH.Selected:GH.Possible:GH.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),_G=$g(e=>{const t=e(JW),n=e(Zb).width,r=e(YB);return t>0&&t+r<n}),zG=()=>{const[e,t]=P(!1);return p_({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},FG=(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}),$G=$g(e=>{const t=e(wb),n=e(Kb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await n.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),HG=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},BG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),VG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),WG=e=>e.atTop?2:1,UG=(e,t)=>({top:e?WG(t):0,bottom:e&&t.atBottom?1:0}),GG=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],KG=e=>e?.setAttribute("tabIndex","0"),YG=e=>e?.setAttribute("tabIndex","-1"),XG=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(YG)},JG=e=>{e?.focus(),KG(e)},ZG=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Jm}`);JG(t)},0)},QG=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{XG(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=n;switch(e.key){case Xm.Down:u<s&&u++;break;case Xm.Up:u>a&&u--;break;case Xm.Right:if(i)break;[u,c]="rtl"===r?BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Xm.Left:if(i)break;[u,c]="rtl"===r?VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case Xm.Home:(AG(e)||i)&&(u=a),i||(c=0);break;case Xm.End:(AG(e)||i)&&(u=s),i||(c=l);break;case Xm.PageDown:u=Math.min(s,u+10);break;case Xm.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,n,i,o),s=GG(t,a);return JG(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},eK=(e,t,n,r)=>{XG(t),n(e),r.enabled&&!r.active?r.focus?.():JG(GG(t,e))},tK=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${Gm}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${XH.First}`),n=e.querySelector(`.${XH.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},nK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),rK=Mu(Fh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...DB,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),oK=Mu("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:kB,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),iK=parseInt(kB,10)/2,aK=Mu("div")({position:"absolute",bottom:-iK,left:`calc(50% - ${iK}px)`}),sK=Mu(nm)({position:"sticky",top:0,zIndex:1}),lK={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},uK=Mu(Sd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),cK=Mu("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...lK,whiteSpace:"nowrap",display:n?"block":void 0}:{...lK,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),dK=Mu("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),pK="cell-text",fK=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Qg(_W);return o?Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},hK=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Qg(Eb),l=Qg($G),u=Qg(Fb),c=Qg(Tb),d=Qg(ob),p=Qg(rv),f=Qg(nb),h=Qg(KW)[t.pageColIdx],m=Qg(Gb),g=M(null),b=M(null),v=(({column:e,columnWidth:t})=>{const n=Qg(_W),{measureText:r}=Lm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:PB});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(TU,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(LU,{height:kB,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(oK,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(VB,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(nK,{height:kB,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return Yt.jsxs(BB,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:NB(t,i,u),children:[S,Yt.jsxs(HB,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,Yt.jsx(fK,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),Yt.jsx($B,{ref:b,direction:u,isPagination:i}),Yt.jsx($B,{ref:g,direction:u})]}):null]})},mK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),gK=(e,t)=>e.isCyclic&&t,bK=({column:e})=>{const t=Qg(_W),n=Qg(Fb),r=Qg(Gb),o=w.useRef(null),[i,a]=w.useState(!1),s=iU({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(UB,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(mK,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(AU,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},vK=e=>e.isLocked,yK=({column:e})=>{const t=Qg(nb),n=Qg(Eb),r=Qg(bb),o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=kU(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(nK,{height:16,"data-testid":"head-cell-lock-icon"})})},xK=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(oU,{height:16})})},SK=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Qg(nb),s=Qg(Fb),l=Qg(ob),u=Qg(Tb),c=Qg(Gb),d=Qg(Eb),p=Qg(rv),f=Qg($G);return Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:n})},wK=$g();wK.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const CK=({ref:e,callback:t})=>{const n=Qg(wK),r=M(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},EK=Mu(Sd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),RK=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return CK({ref:t,callback:i}),Yt.jsx(EK,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},AK=({children:e})=>e,IK=(e,t)=>!e.isLocked&&e.isDim&&t,kK=({column:e,open:t,setOpen:n})=>{const r=Qg(_W),o=Qg(Eb),i=Qg(Fb),a=Qg(ob);Qg(nb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),u=IU({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),n(!0)},children:Yt.jsx(zU,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},PK=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(CB,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(xB,{height:kB,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(aK,{children:r}):void 0},MK=0,DK=1,TK=2,OK=3,qK=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Qg(_W),u=Qg(Fb),{measureText:c}=Lm(l.header),[d,p]=P(!1),f=M(null),h=M(null),m=M(null),g="number"==typeof a&&a>Zm.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(RK,{children:[Yt.jsx(AK,{prio:TK,minWidth:FB,children:vK(t)?Yt.jsx(yK,{column:t}):null},"Lock"),Yt.jsx(AK,{prio:DK,minWidth:FB,children:gK(t,s)?Yt.jsx(bK,{column:t}):null},"Cyclic"),Yt.jsx(AK,{ignore:!0,children:Yt.jsx(PK,{column:t})},"Sort"),Yt.jsx(AK,{minWidth:c(t.label)+8,children:Yt.jsx(WB,{justifyContent:t.headTextAlign,children:Yt.jsx(fK,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(AK,{prio:g?void 0:MK,minWidth:FB,children:d||IK(t,s)?Yt.jsx(kK,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(AK,{prio:OK,minWidth:FB,children:s?Yt.jsx(xK,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx($B,{ref:h,direction:u,isPagination:o}),Yt.jsx($B,{ref:f,direction:u}),Yt.jsx(SK,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},LK=Mu("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),NK=()=>{},jK=({column:e,isPagination:t})=>{const n=Qg(_W),r=Qg(Fb),o=Qg(_G),i=Qg(wW),a=!1,s=Qg(Ib)?hK:qK;return Yt.jsx(LK,{className:"sn-table-cell",applicableStyle:{...n.header,...FG(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(r,a,o),borderLeftWidth:zB(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:NK})})},_K=({isPagination:e})=>{const t=Qg(CW),[n,r]=P();p_({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Bj,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(jK,{column:o,isPagination:e})})}):null},zK=ZR($g(async e=>{e(yb);const t=e(Kb);return t?.getEffectiveProperties()}),e=>e),FK=$g(e=>e(zK)?.qHyperCubeDef),$K=[YN.configure({activationConstraints:[new WN.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],HK=gj.plugins.filter(e=>e!==CL),BK=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},VK=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=e$({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),u=r.findIndex(e=>e===i);if(l<0||u<0||l===u)return;const c=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,u),d=new Map(c.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:t$({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:c.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[BK("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),BK("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),BK("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),BK("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},WK=({children:e})=>{const t=Qg(Kb),n=Qg(FK),r=Qg(CW);return Yt.jsx(Fj,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&VK(t,n,r,o,i)},sensors:$K,plugins:HK,children:e})};function UK(e,t){const n=M(!1);O(()=>{n.current?e():n.current=!0},t)}const GK=(e,t)=>{const n=Qg(Ub);O(()=>{const r=e.current;if(!r)return;const o=e=>{tK(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},KK=$g(JH),YK=hk(e=>$g(t=>{const[n,r]=t(KK);return 0===n&&r===e})),XK=()=>{const e=Qg(rb);O(()=>{e.notifyIsDoneRendering()})};var JK={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":"已依遞減順序排序。"}}};const ZK=$g(e=>{const t=e(rv),n=e(Qb),r=e(bb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(JK).forEach(t=>{e.add(JK[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${XH.First}`),l=n.querySelector(`.${XH.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let u;o===XH.First?(u=l,o=XH.Second):(u=s,o=XH.First),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-live",i)}}),QK=(e,t)=>{const n=Qg(ZK),r=Qg(Qb),o=Qg(IW),i=Qg(AW),a=Qg(RW),s=Qg(wW),[l,u]=tb(KK),c=Qg(Pb),d=Qg(Ub);UK(()=>{const t=((e,t,n=!1)=>{const r=[WG(t),e[1]];return n?r:JH})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(XG(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=GG(t,e);n.current?(JG(s),n.current=!1):KG(s),r&&(a({keys:[s?.textContent??""]}),RG(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:n})},[a.length,i,o,t])},eY=e=>{Em(e),AG(e)&&ig(e.currentTarget)},tY=e=>{MG(e.evt)&&(Em(e.evt),QG(e))},nY=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!MG(t))return;Em(t);const i=((e,t)=>[e.pageRowIdx+WG(t),e.pageColIdx])(r,n),a=UG(o,n),{nextCell:s,nextCellCoord:l}=QG({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:KH.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):RG(o,a,i)})({...e,nextCell:s})},rY=e=>{const{evt:t}=e;IG(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Em(e);const a=Math.ceil(t/n)-1;e.key===Xm.Right&&r<a?(o(),i(r+1)):e.key===Xm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Xm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Em(e),t.blur?.(!0))})(e):kG(t.key)&&Em(t)},oY=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(GH.Disabled))return void Em(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Xm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Em(e),t.isSelectable&&n&&r({type:KH.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Xm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Em(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Xm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Em(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Xm.C:eY(t);break;case Xm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Em(e),Cm(e.currentTarget,t,e.shiftKey))})(r);break;default:nY(r)}},iY=e=>{const t=Qg(GB),n=eb(KB),r=eb(YB),o=Qg(UH),i=M();CK({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},aY=Mu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),sY=Mu(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),lY=Mu(kh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),uY=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(aY,{className:XH.First,"data-testid":XH.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(aY,{className:XH.Second,"data-testid":XH.Second,"aria-live":"polite","aria-atomic":"true"})]}),cY=e=>{const t=M(new Map),n=M(null);O(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},dY=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),pY=()=>cY(dY),fY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(Mb),r=Qg(Ub),o=eb(NG);O(()=>{const i=()=>{o({type:KH.Reset})},a=()=>{o({type:KH.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},hY=e=>{e.stopPropagation()},mY=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:hY,color:bm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),gY=({href:e,text:t,interactions:n,color:r})=>Yt.jsx($p,{...mY({href:e,text:t,interactions:n,color:r}),children:t}),bY=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),vY=window.cancelIdleCallback??(e=>{clearTimeout(e)}),yY="qDimensionInfo/0",xY="qMeasureInfo/0",SY="x",wY="y",CY=e=>({key:"bars",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e}}}}),EY=e=>({key:"p",type:"point",data:{extract:{field:yY,props:{y:{field:xY}}}},settings:{x:{scale:SY},y:{scale:wY},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),RY=({qNum:e})=>void 0===e?0:Math.sign(e),AY=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Sm(e,t?.negative,n),a=Sm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY,value:RY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},IY=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Sm(e,t?.main,o),l=Sm(e,t?.max,s),u=Sm(e,t?.min,s),c=Sm(e,t?.first,s),d=Sm(e,t?.last,s);return e=>{const t=wY in e.datum?wY:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[CY(a)];case"dots":return[EY(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:yY,props:{v:{field:xY}}}},settings:{coordinates:{major:{scale:SY},minor:{scale:wY,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Sm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,EY(a)]:[t]}case"posNeg":return[AY(e,r)];default:return[]}},kY=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"}),PY=(e,t,n,r)=>({y:{data:{field:xY},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:yY}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),MY=K();MY.use(G),MY.renderer.prio(["canvas"]);const DY={resolve:()=>{},promise:{}},TY=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?It():DY);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;u();n.current=bY(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=r;return MY.chart({element:e,data:{type:"q",key:"qHyperCube",data:kY(s)},settings:{scales:PY(a,l,u,i),components:IY(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&vY(n.current),n.current=null,l()},[n,l])}},OY=e=>{const t=M(null),n=M(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(vY(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=bY(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},qY=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=TY({element:s,chart:l,requestId:u,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);O(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{O(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=OY(t);O(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},LY=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=qY({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},NY=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},jY=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},_Y=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Qg(Fb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Yt.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:n,objectFit:jY(s),objectPosition:NY(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?n:"100%",overflow:"hidden",display:"flex",justifyContent:u?OB(o,e):void 0},children:c}):c},zY=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&EB[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},FY=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Qg(_W),o=Qg(Fb),i=Qg(nv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=RB(e,t,o,i),d=(e=>parseInt(e||kB,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&zY({size:d,iconKey:f,color:p}),Yt.jsx(fK,{isNumeric:!0,children:a}),"right"===h&&zY({size:d,iconKey:f,color:p})]}):zY({size:d,iconKey:f,color:p})},$Y=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,HY=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=Qg(_W),u=Qg($W),c=Qg(rb),d=Qg(yb),p=Qg(nv),f=Qg(Fb),h=Qg(Tb),m=Qg(Pb);if(t.representation.type===u$.Image&&!t.representation.url?.trim())return null;if(t.representation.type===u$.Image)return Yt.jsx(_Y,{representation:t.representation,textStyle:n,maxImageHeight:$Y(l,u,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==u$.Link||m||t.isNull||(g=Yt.jsx(gY,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==u$.Indicator||Number.isNaN(b)?t.representation.type===u$.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(LY,{height:$Y(l,u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:c}):Yt.jsx(fK,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):Yt.jsx(FY,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},BY=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VY=Mu("div")({"& path":{stroke:"none !important"}}),WY=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==GH.Selected||n?e:Yt.jsxs(dK,{children:[e,Yt.jsx(VY,{children:Yt.jsx(BY,{})})]}),UY=e=>{const t=function(){const e=$j(),t=Cj(()=>null==e?void 0:e.dragOperation.source,[e]),n=Cj(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},GY=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:KH.SelectMultiEnd})};n({type:KH.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:KH.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:KH.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),KY=e=>{const t=Qg(kW),n=Qg(wW),r=Qg(ZK),o=Qg(Qb),i=Qg(Fb),a=eb(KK),s=eb(NG),l=Qg(Ub),u=Qg(Lb),c=Qg(Mb),d=d=>{oY({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Xm.Shift&&t({type:KH.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;eK([s,a],t,n,r)})(e,o,a,l,n)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=GY(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},YY=e=>{O(()=>()=>{jG.remove(e)},[e])},XY=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},JY=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},ZY=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return JY(t,e,r?"even":"odd")}return e},QY=(e,t)=>{const n=Qg(_W),r=Qg(jG(e)),o=Qg(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");YY(e);let a=t.isDim?n.dimension.values:n.measure.values;a=ZY(a,n,e),a=i?n.subTotalRow:a,a=XY(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:aV(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===GH.Selected?{...e,...n}:t===GH.Disabled?{...e,background:`${AB}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},eX=Mu(Lh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),tX=Mu(nm,{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}}})),nX=Mu(Fh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...DB,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),rX=Mu(Fh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...DB,...e,fontWeight:PB,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),oX=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Qg(Fb),a=Qg(Tb),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=KY(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=QY(e,t),m=UY(t.id);return Yt.jsx(nX,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Ym}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:Yt.jsx(WY,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(HY,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:jB(i,e.align)})})})},iX=$g(0),aX=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Qg(_W),i=Qg(qb),a=Qg(iX),s=UY(e.id);return Yt.jsx(rX,{totalsStyle:{...o.totalRow,...FG(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ym}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(fK,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},sX=()=>{const e=Qg(wW),t=Qg(CW),n=Qg(RW),r=Qg(Qb),o=Qg(Ob),i=Qg(Fb),a=eb(KK),s=Qg(Pb),l=Qg(Ub);return Yt.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:n.length+1,u];return Yt.jsx(aX,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Xm.C:eY(n);break;case Xm.Space:n.preventDefault();break;default:tY(e)}else Em(n)})({evt:e,rootElement:r,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{eK(c,r,a,l)}},t.id)})})};var lX=z(sX);const uX=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(RW),r=Qg(wW),o=Qg(CW),i=Qg(_W),a=Qg(HW),s=Qg(BW),l=Qg(yb),u=!!nV(l)?.content?.hoverEffect;fY({updateShouldRefocus:e,tableWrapperRef:t});const c=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return cY(t)})(t),d=pY();return Yt.jsxs(eX,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(lX,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(tX,{hoverColors:i.grid.hoverColors,hover:u,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(oX,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:c,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(lX,{}):void 0]})};var cX=z(uX);const dX=(e,t)=>!!e?.skipHeader||!!t.hideHeader,pX=$g(e=>{const t=e(yb),n=e(Gb);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),fX=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Qg(pX),s=Qg(Fb),l=Qg(Ob),u=Qg(rv),[c,d]=tb(KW);if(!l)return null;return Yt.jsx(rU,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{YG(e);const t=e.closest(".sn-table-cell");JG(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},hX=e=>e.target?.getAttribute("class")?.includes(Jm),mX=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=Qg($G),i=Qg(GB);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||hX(t)||i||r(!0)},toggleSortOrder:n=>{e&&!hX(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var gX=class extends UT{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=iP(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=aO(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,n){const r=I_({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new RM(l,u,s,a),n,r);return c}};gX.configure=cD(gX);const bX=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/EM.distance(n.shape.center,s),type:xT.Collision,priority:yT.Normal}:null},vX=[gX.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],yX=(e,t)=>{const n=Qg(Fb),r=!Qg(jb);return Wz({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:vX,data:e,plugins:e=>[...e,mN.configure({feedback:"clone"})],collisionDetector:bX({invert:"rtl"===n})})},xX=({column:e,columnIndex:t,columnsLength:n})=>{const r=Qg(_W),o=Qg(Qb),i=Qg(Fb),a=Qg(Tb),s=Qg(CW),l=Qg(wW),u=Qg(KW)[t],c=eb(KK),d=Qg(YK(t)),p=Qg(jb),f=Qg(Ub),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=mX({isInteractionEnabled:p,column:e}),v=eb(GB),{ref:y,isDragging:x}=yX(e,t),S=UY(e.id),w=Qg(Ib),C=w?hK:qK,E=e.isActivelySorted?YH[e.sortDirection]:void 0,R=h?Km:void 0,A=h?"true":void 0,I=t===n-1,k=[0,e.pageColIdx],P={width:u,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(rK,{"data-dragging":x,ref:y,headerStyle:{...r.header,...FG(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ym}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Xm.C:eY(n);break;case Xm.Enter:case Xm.Space:r?.(n);break;default:tY(e)}else Em(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&eK(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),Yt.jsx(fX,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},SX=()=>{const e=Qg(CW),t=Qg(_W),n=Qg(yb),r=Qg(Hb),o=eb(iX),i=Qg(KW),a=M(null),s=dX(r,n);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Xh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(sK,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(xX,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var wX=z(SX);var CX=z(()=>{const e=Qg(ZK),[t,n]=tb(fW),{page:r,rowsPerPage:o}=t,i=Qg($b),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=Qg(SW),p=Qg(_W),f=Qg(XV),h=Qg(yb),m=Qg(nv),g=Qg(Zb),b=Qg(Qb),v=Qg(Hb),y=Qg(Fb),x=Qg(Tb),S=Qg(rv),w=Qg(_G),C=eb(NG),E=Qg(Pb),R=Qg(Ub),A=M(!1),I=M(null),k=M(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=_b(h,v),T=D?f.scrollLeft??0:0,q=D?f.rowPartialHeight??0:0,N=L(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Qg(Fb),n=Qg(XV);O(()=>{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,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(I),GK(k,A),(()=>{const e=Qg(Qb),t=Qg(Ub),n=Qg(KK);$m(()=>{const r=GG(e,n);t.active?JG(r):(r?.blur(),XG(e))},[t.active,e])})(),QK(A,r),O(()=>{const e=I.current;e&&(e.scrollLeft=T,e.scrollTop=q)},[t,s,T,q]),UK(()=>{C({type:KH.UpdatePageRows,payload:{pageRows:c}})},[c]),XK(),iY(I),Yt.jsxs(WK,{children:[Yt.jsxs(uK,{ref:k,dir:y,onKeyDown:e=>{rY({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(uY,{}),Yt.jsxs(sY,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(lY,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(wX,{}),Yt.jsx(cX,{updateShouldRefocus:N,tableWrapperRef:k})]}),Yt.jsx(zG,{})]}),Yt.jsx(CG,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(_K,{isPagination:!0})]})});const EX=$g(0),RX=$g(e=>{const t=e(xb);return Math.min(sV,t)}),AX=$g(e=>{const t=e(xb);return t===sV?0:Math.floor(t/sV)}),IX=$g(e=>{const t=e(EX),n=e(AX);return Math.min(t,n)}),kX=$g(e=>({page:e(IX),rowsPerPage:e(RX),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(AX);t(EX,Math.max(0,Math.min(n,r)))}),PX=$g(null),MX=$g(null),DX=$g(e=>{const t=e(kX),n=e(xb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),TX=$g(null),OX=$g(null),qX=$g(e=>e(wW).atTop?2:1),LX=$g(e=>e(wW).atTop?1:e(qX)+e(DX)),NX=$g(e=>UG(Boolean(e(Pb)),e(wW))),jX=$g(e=>({firstBodyRowIdx:e(qX),totalsRowIdx:e(LX),allowedRows:e(NX)})),_X=$g(e=>({rootElement:e(Qb),totalsPosition:e(wW),rowCount:e(DX),colCount:e(EW),columnWidths:e(KW)})),zX=$g(e=>({scrollToCell:e(TX),scrollableContainerElement:e(OX)})),FX=$g(e=>({keyboard:e(Ub),isInSelectionMode:e(Pb),selectionsAPI:e(Mb),isSelectionsEnabled:e(Lb)})),$X=$g(e=>({direction:e(Fb),isInteractionEnabled:e(jb),paginationNeeded:e(kW),announce:e(ZK),shouldRefocusRef:e(PX)})),HX=10,BX=e=>e.atTop?2:1,VX=(e,[t,n],r,o)=>{const i=BX(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},WX=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[u,c]=n,d=u-BX(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,c),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(VX(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},UX=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],GX=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],KX=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,u=a.top,c=r-1-a.bottom,d=o-1;switch(e.key){case Xm.Down:case Xm.Up:t=((e,t,n,r)=>e===Xm.Down&&t<r?t+1:e===Xm.Up&&t>n?t-1:t)(e.key,t,u,c);break;case Xm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?GX(e,t,n,0,o,i):UX(e,t,0,r,o,i))(n,t,u,c,0,d,i));break;case Xm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?UX(e,t,0,r,o,i):GX(e,t,n,0,o,i))(n,t,u,c,0,d,i));break;case Xm.Home:l?t=Math.max(u,t-HX):(AG(e)&&(t=u),n=0);break;case Xm.End:l?t=Math.min(c,t+HX):(AG(e)&&(t=c),n=d);break;case Xm.PageDown:t=Math.min(c,t+HX);break;case Xm.PageUp:if(l)t=Math.max(u,t-HX);else{const e=s?BX(s):1,n=t-e;t=n>0&&n<=HX?e:Math.max(u,t-HX)}}return[t,n]},YX=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},XX=[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown],JX=()=>{const e=M(!1),t=M(0),n=M(0),r=M(null),o=M(null),i=M(null),a=M(0),s=eb(KK),l=eb(NG),u=Qg(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:c,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Qg(_X),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Qg(jX),{scrollToCell:v,scrollableContainerElement:y}=Qg(zX),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Qg(FX),{direction:E,announce:R,isInteractionEnabled:A,paginationNeeded:I,shouldRefocusRef:P}=Qg($X),D=k(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);O(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=VX(c,e,d,p);if(i)return document.activeElement!==i&&HG(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[c,d,p]),q=L((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(c instanceof HTMLElement&&!c.isConnected)return;if(Date.now()>s||i>=5)return;const u=document.activeElement;u&&u!==document.body&&u!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=WX(v,c,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,c,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=WX(v,c,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=VX(c,n,d,p);i&&document.activeElement!==i&&HG(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[c,d,p,v,P,y]),z=L((e,t)=>{if(!MG(e))return;Em(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>BX(t)+e+(t.atBottom?1:0))(p,d),l=KX(e,t,i,f,E,g,d);YX(c),s(l);const[,u]=l,[,h]=t;return u!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,D,u),P&&(P.current=!0),r.current=WX(v,c,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>XX.includes(e))(e.key)&&q(l,o)},()=>n.current===o)}),l},[c,d,p,f,E,v,s,g,y,P,T,j,D,q]),F=L(e=>{e.key===Xm.Esc?x.enabled&&!S&&(Em(e),x.blur?.(!0)):kG(e.key)&&Em(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case Xm.C:Em(e),A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget);break;case Xm.Enter:case Xm.Space:if(!A){Em(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Xm.Space:if(Em(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:KH.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case Xm.Enter:if(Em(t),e.current=!1,S){N(),s(JH),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;T(JH,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case Xm.Esc:if(e.current=!1,S){Em(t);const e=N();w?.cancel(),_(e,a)}break;case Xm.C:Em(t),A&&(t.ctrlKey||t.metaKey)&&ig(t.currentTarget);break;case Xm.Tab:{const e=t.shiftKey||!I;x.enabled&&S&&e&&(Em(t),Cm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Xm.Left||t.key===Xm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Em(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:KH.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,I,A,N,_,s,v,y,T,P]),B=L(t=>{t.key===Xm.Space&&(e.current=!1),t.key===Xm.Shift&&l({type:KH.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Em(e);else{if(e.key!==Xm.Space)return e.key===Xm.C?(Em(e),void(A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=L(e=>{j(),n.current+=1;const t=n.current;YX(c),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&q(e,t)},()=>n.current===t)},[c,s,x,T,j,q]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{u&&W([0,e])},[W,u]),focusBodyCellOnClick:L((e,t)=>{u&&W([e+m,t])},[W,m,u]),focusTotalsCellOnClick:L(e=>{u&&W([b,e])},[W,b,u])}};var ZX=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QX(e,t){return e===t||!(!ZX(e)||!ZX(t))}function eJ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!QX(e[n],t[n]))return!1;return!0}function tJ(e,t){var n;void 0===t&&(t=eJ);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var nJ="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rJ(e){cancelAnimationFrame(e.id)}function oJ(e,t){var n=nJ();var r={id:requestAnimationFrame(function o(){nJ()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var iJ=-1;function aJ(e){if(void 0===e&&(e=!1),-1===iJ||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),iJ=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iJ}var sJ=null;function lJ(e){if(void 0===e&&(e=!1),null===sJ||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?sJ="positive-descending":(t.scrollLeft=1,sJ=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sJ}return sJ}var uJ=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cJ(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Ju(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ju(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=tJ(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h: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=tJ(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,s=t.scrollHeight,l=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(lJ()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return dJ(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=aJ();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=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,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(lJ()){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&&rJ(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?uJ:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(r>0&&g)for(var P=A;P<=I;P++)for(var M=w;M<=E;M++)k.push(C(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.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,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,s=a.isScrolling,l=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),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dJ=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},fJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},hJ=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 s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},mJ=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?gJ(e,t,n,i,0,r):bJ(e,t,n,Math.max(0,i),r)},gJ=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=hJ(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},bJ=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&hJ(e,t,r,n).offset<o;)r+=a,a*=2;return gJ(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},vJ=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=hJ(e,t,n,i),u="column"===e?fJ(t,i):pJ(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"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}},yJ=cJ({getColumnOffset:function(e,t,n){return hJ("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return mJ("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=hJ("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:pJ,getEstimatedTotalWidth:fJ,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return vJ("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return vJ("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return hJ("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return mJ("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=hJ("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("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}}),xJ=function(e,t){return e};function SJ(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=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=l(r.props,Ju(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ju(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=tJ(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,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"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=tJ(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(lJ()){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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return wJ(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 s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aJ():0:l.scrollHeight>l.clientHeight?aJ():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},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(lJ()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rJ(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?xJ:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],R=w[1],A=[];if(u>0)for(var I=E;I<=R;I++)A.push(C(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wJ=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CJ=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},EJ=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=CJ(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},RJ=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&CJ(e,n,t).offset<r;)n+=i,i*=2;return EJ(e,t,Math.min(n,o-1),Math.floor(n/2),r)},AJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},IJ=SJ({getItemOffset:function(e,t,n){return CJ(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:AJ,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=CJ(e,t,o),p=AJ(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h: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?EJ(e,t,o,0,n):RJ(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,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=CJ(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CJ(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 kJ(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 PJ=["style"],MJ=["style"];function DJ(e,t){var n=e.style,r=Ln(e,PJ),o=t.style,i=Ln(t,MJ);return!kJ(n,o)&&!kJ(r,i)}const TJ=$g(0),OJ=$g(0),qJ=$g(0),LJ=$g(e=>e(TJ)+e(OJ)),NJ=$g(e=>{const t=e(Zb),n=e(kW),r=t.height-(n?41:0);return{width:t.width,height:r}}),jJ=$g(e=>{const t=e(NJ),n=e(KB),r=e(YB);return{width:t.width-r,height:t.height-n}}),_J=$g(e=>{const t=e(jJ),n=e(LJ),r=e(qJ);return Math.min(t.height-n,r)}),zJ=$g(-1),FJ=hk(e=>$g(t=>t(zJ)===e)),$J=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var HJ=w.memo($J,DJ);const BJ=$g(e=>{const t=e(jJ),n=e(HW),r=e(LJ),o=e(qJ)+r,i=e(DX)*n+r;return o<2*t.height?o:i}),VJ=$g(e=>e(BJ)<=e(NJ).height),WJ=()=>{},UJ=e=>{e.preventDefault()};const GJ=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u,onKeyDown:c,onKeyUp:d,onCellClick:p}=r,f=Qg(FJ(t)),h=eb(zJ),m=Qg(_W),g=Qg(Fb),b=Qg(qb),v=Qg(jb),y=Qg(_G),x=Qg(gb),S=Qg(VJ),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Qg(Lb),r=eb(NG),o=Qg(jG(e));if(YY(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=GY(UJ,e,r,WJ);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,n,r)=>{const o=M(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return CK({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=UY(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=ZY(o,i,e);l=s?i.subTotalRow:l,l=XY(l,i,e,t.isDim);const u=e.isNull||s&&t.isDim?l:aV(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==GH.Selected||s?r!==GH.Disabled||s?n?{...u,...i.grid.hoverColors}:u:{...u,color:n?i.grid.hoverColors?.color:u.color,background:`${AB}, ${n?i.grid.hoverColors?.background:u.background}`}:{...u,...i.selectedColors}})(w,i[e],a&&f,A,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},M=c?n=>{c(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Ym}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:_B(g,w.isLastColumn,y),borderLeftWidth:zB(g,w.isLastColumn,y),justifyContent:qB(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:M,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:Yt.jsx(WY,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(HY,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return Yt.jsx(HJ,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var KJ=z(GJ,DJ);const YJ=ZR($g(async e=>{const t=e(yb),n=e(Gb),r=e(kX).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(sV,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),XJ=$g(e=>{const t=e(DX),n=e(jJ),r=e(HW);return Math.min(t,Math.ceil(n.height/r))}),JJ=$g(e=>{const t=e(KW),n=e(jJ);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),ZJ=e=>{const t=M(e);return t.current=e,t},QJ=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,eZ=e=>-1===e.qElemNumber||!!e.qIsTotalCell,tZ=(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(t?.rowIdx!==o)return!0}return!1},nZ=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},rZ=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(eZ);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&uW(e,m),A=E||R?lW(m,e,a,C):e.qText,I=E?eB(A):QH(e),k=QH(e)&&!eB(e.qText??"");f[n]={id:QF(),...e,align:iW(I,b,u),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:n===c.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&uW(e,m),representation:YV({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:u,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,u,e.qArea,c,r,o,i,a,s);n[p]=d})})},oZ=({gridState:e,setEstimatedCellHeight:t})=>{const n=Qg(yb),r=Qg(nv),o=Qg(Gb),i=Qg(mb),a=Qg(Fb),s=Qg(kX),l=Qg(YJ),u=Qg(CW),c=Qg(DX),d=Qg(XJ),p=Qg(JJ),f=M([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,c):(e=>Array(e).fill(void 0))(c);return rZ(e,s,o,u,n,i,t,a),f.current=o,o},[c,s,u,n,i,t,a]),[m,g]=P(()=>h(l??[]));$m(()=>{g(h(l??[]))},[l,a,c]);const b=((e,t)=>{const n=Qg(bb),r=M(new Set),o=M(new Set),i=M(new Set),a=ZJ(e),s=ZJ(t),l=k(()=>({enqueue:e=>{const t=QJ(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.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 a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(QJ(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(nZ(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(tZ(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return O(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,u=t-i,c=s.rowsPerPage-o,f=Math.min(100,u,t,p+5),h=Math.min(100,c,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},iZ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},aZ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,sZ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Qg(_W),i=Qg(KW),{estimateLineCount:a}=Lm(o.dimension.values),s=XB(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===u$.Image||e.isNumeric&&!e.isDual)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*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},lZ=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Qg(XV);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},uZ=({isSnapshot:e,gridRef:t})=>{const n=Qg(_W),r=Qg(DX),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Qg($W),s=Qg(HW),l=Qg(BW),u=!!n.contentStaticLineCount,c=Math.max(8e6/r,s,l)-9,d=c+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(c/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:u});(({gridRef:e,setState:t})=>{const n=Qg(yb),r=Qg(kX),o=Qg(KW),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Qg(HW),o=Qg(BW);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const u=l?o:r,c=Math.max(u,i+9),d=Math.min(t,c),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!aZ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:iZ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>L((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),g=sZ({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),b=L(e=>u?f??s:o.rowHeights.get(e)??s,[u,s,o.rowHeights,f]);return lZ({isStaticNbrOfLines:u,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},cZ=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);CK({ref:e,callback:n})};let dZ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const pZ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Qg(XV),o=Qg(yb),i=Qg(kX),a=Qg(DX);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?dZ.Down:r<t?dZ.Up:dZ.None,i=n>e?dZ.Right:n<e?dZ.Left:dZ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===dZ.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===dZ.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===dZ.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===dZ.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const fZ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},hZ=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},mZ={overflow:"hidden",willChange:"auto"},gZ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=JX(),i=Qg(CW),a=Qg(jJ),s=eb(qJ),l=Qg(_J),u=Qg(XV),c=Qg(yb),d=Qg(Fb),p=Qg(KW),f=Qg(DX),h=Qg(OX),m=eb(TX),g=M(null),b=M(null),v=M(null),y=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=M(0),S=!!nV(c)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=uZ({isSnapshot:!!c.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:I,loadColumns:P}=oZ({gridState:y,setEstimatedCellHeight:C}),D=pZ({loadRows:I,loadColumns:P,gridState:y}),T=pY(),q=k(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=eb(NG),{shouldRefocusRef:n}=Qg($X),r=Qg(Qb),o=Qg(MX);O(()=>{t({type:KH.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);fY({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),H(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),O(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),hZ(h,b.current)}),()=>{m(null)}),[h,m]),cZ(v,s),Yt.jsx(yJ,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:mZ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:u.estimatedRowHeight,width:a.width,itemData:q,onItemsRendered:D,itemKey:fZ,className:"sn-table-body",direction:d,children:KJ})});var bZ=z(gZ);const vZ=({children:e})=>{const t=Qg(JW),n=Qg(BJ);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},yZ=(e,t)=>{const n=M(null),r=Qg(KW);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return CK({ref:n,callback:o}),n},xZ=Mu("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),SZ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(Fb),c=Qg(Tb),d=Qg(_G),p=eb(GB),f=Qg(wW),h=Qg(jb),m=Qg(KW)[e],g=Qg(Ub),b=Qg(YK(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=mX({isInteractionEnabled:h,column:v}),C=Qg(Ib),E=yZ(e,i),R=r.length-1===e,A=C?hK:qK,{ref:I,isDragging:k}=yX(v,e),P=UY(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(xZ,{"data-dragging":k,ref:I,className:`sn-table-cell ${Ym}`,title:c.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...FG(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(u,R,d),borderLeftWidth:zB(u,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:c,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(fX,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},wZ=e=>{const[t,n]=P(new Map);$m(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>aZ(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>iZ(t),[t]),setMeasuredCellHeight:r}},CZ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},EZ=e=>{const t=Qg(nv),n=Qg(yb),r=Qg(kX),o=Qg(KW);$m(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},RZ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AZ=F((e,t)=>{const{columResizeHandler:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(TJ),a=w.useRef(null),s=M(null),l=Qg(zW),u=Qg(yb),c=Qg(Hb),d=Qg(Fb),p=Qg(KW),{rowHeight:f,setMeasuredCellHeight:h}=wZ(r),m=dX(c,u),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...RZ,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:SZ})});var IZ=z(AZ);const kZ=F((e,t)=>{const{children:n,onScroll:r}=e,o=Qg(Fb),i=Qg(Nb),{width:a,height:s}=Qg(NJ),l=eb(OX),u=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:u,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),PZ=({children:e})=>{const t=Qg(Fb),n=Qg(jJ);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},MZ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(yb),c=Qg(Fb),d=Qg(qb),p=Qg(jb),f=Qg(_G),h=Qg(VJ),m=yZ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=u.qHyperCube.qSize.qcx-1===e,x=UY(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Ym}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...FG(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:_B(c,y,f),borderLeftWidth:zB(c,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(fK,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},DZ=F((e,t)=>{const{totals:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(OJ),a=M(null),s=M(null),l=Qg(FW),u=Qg(Fb),c=Qg(yb),d=Qg(KW),{rowHeight:p,setMeasuredCellHeight:f}=wZ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:RZ,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:u,children:MZ})});var TZ=z(DZ);const OZ=(e,t,n)=>{const r=Qg(Fb),o=Qg(XV);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,n.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,n,e,t,r])};var qZ=z(()=>{const e=Qg(wW),t=M(null),n=M(null),r=M(null),o=M(null),i=OZ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);XK(),(e=>{const t=Qg(EW),n=Qg(kX),r=Qg(nv),o=Qg(DX);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),iY(t);const s=Yt.jsx(TZ,{ref:r,totals:e},"totals");return Yt.jsxs(WK,{children:[Yt.jsx(kZ,{ref:t,onScroll:i,children:Yt.jsxs(vZ,{children:[Yt.jsxs(PZ,{children:[Yt.jsx(IZ,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(bZ,{ref:o}),e.atBottom?s:null]}),Yt.jsx(zG,{})]})}),Yt.jsx(_K,{isPagination:!1})]})});const LZ=()=>{const e=Qg(yb),t=Qg(Zb),n=Qg(Tb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Qg(SW),s=Qg(nv),l=Qg(rv),u=Qg(Ub),[c,d]=tb(kX),p=M(null),f=M(!1),h=eb(PX),m=eb(MX);O(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=JX();return(()=>{const e=Qg(Qb),{keyboard:t}=Qg(FX),n=Qg(KK),r=Qg(wW),o=Qg(DX),{scrollToCell:i}=Qg(zX),{shouldRefocusRef:a}=Qg($X),s=M({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=M(null),u=M(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),O(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:c}=s.current;if("function"==typeof c.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=VX(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&HG(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=VX(c,n,r,o);e&&HG(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),u.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=VX(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),YX(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null)}}},[t.active,e,a])})(),GK(p,f),Yt.jsxs(uK,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(uY,{}),Yt.jsx(qZ,{}),Yt.jsx(CG,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var NZ=z(LZ);const jZ=e=>{const t=e.get(Gb),n=e.get(Vb),r=e.get(vb),o=e.get(Fb);a(()=>{r&&t&&(n?function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[BH]:void 0,children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(CX,{})})})})}))}(e):function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(NZ,{})})})})}))}(e))},[r,n,e,t,o])};function _Z(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.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})(l,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})(l,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)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const zZ=(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]}},FZ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const $Z=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||cW.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},HZ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=tW(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=_Z(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:$Z(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=zZ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(FZ(h,m,g)?d:d+1)+c;let v=p+c;const y=zZ(p,o),x=y?.getBoundingClientRect();return y&&x&&(FZ(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:$Z(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},BZ=({store:e})=>{const t=e.get(yb),n=e.get(Gb),r=e.get(Qb),o=e.get(Jb),i=e.get(Hb),a=e.get(Vb);c(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(XV),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=HZ(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>HZ(t,e.get(XV),r,i,a)}),[t,e,r,a])},VZ={version:JSON.stringify("6.56.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[],accessibleHeader:!1};var WZ=e=>({properties:{initial:VZ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Ev({...t,env:e}),exportProperties:vv,exploration:BF(e)});const UZ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),GZ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
121
+ */var iH=(rH||(rH=1,function(e,t){var n;function r(e,t){var n=[],r=0;function o(e){return n.push(e),t}function i(){return n[r++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}n=new function(){var e="`TMP`",t="`COMMENT`",n="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",u="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",c="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+c+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+c+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+c+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+u+v+"[^;}]+;?)","gi"),I=new RegExp("("+u+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),M=new RegExp(l+"(left)"+b+y+v,"gi"),D=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),O=new RegExp(l+"(right)"+x,"gi"),q=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,n){var r,o;return t.split("(").length>t.split(")").length?e:("%"===n.slice(-1)&&(-1!==(r=n.indexOf("."))?(o=n.length-r-2,n=(n=100-parseFloat(n)).toFixed(o)+"%"):n=100-parseFloat(n)+"%"),t+n)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var n=[].slice.call(arguments),r=n.slice(2,6).filter(function(e){return e}),o=n.slice(6,10).filter(function(e){return e}),i=n[10]||"";return t+(o.length?Z(r)+" / "+Z(o):Z(r))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,n){return t+ee(n)}function ne(e,t,n,r,o){return t+n+ee(r)+o}function re(e,t,n,r,o){return t+n+r+ee(o)}return{transform:function(n,o){var i=new r(A,"`NOFLIP_SINGLE`"),a=new r(I,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(q,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(n=n.replace(T,"$1"+e).replace(O,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(M,"$1"+e).replace(D,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,re).replace(G,re).replace(K,te).replace(Y,ne).replace(X,ne).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),n=i.detokenize(a.detokenize(s.detokenize(n)))}}},e.exports?t.transform=function(e,t,r){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof r&&(o.transformEdgeInUrl=r)),n.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=n)}(oH,oH.exports)),oH.exports),aH=Bt(iH),sH="comm",lH="rule",uH="decl",cH=Math.abs,dH=String.fromCharCode;function pH(e){return e.trim()}function fH(e,t,n){return e.replace(t,n)}function hH(e,t){return 0|e.charCodeAt(t)}function mH(e,t,n){return e.slice(t,n)}function gH(e){return e.length}function bH(e,t){return t.push(e),e}var vH=1,yH=1,xH=0,SH=0,wH=0,CH="";function EH(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:vH,column:yH,length:a,return:"",siblings:s}}function RH(){return wH=SH>0?hH(CH,--SH):0,yH--,10===wH&&(yH=1,vH--),wH}function AH(){return wH=SH<xH?hH(CH,SH++):0,yH++,10===wH&&(yH=1,vH++),wH}function IH(){return hH(CH,SH)}function kH(){return SH}function PH(e,t){return mH(CH,e,t)}function MH(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function DH(e){return pH(PH(SH-1,qH(91===e?e+2:40===e?e+1:e)))}function TH(e){for(;(wH=IH())&&wH<33;)AH();return MH(e)>2||MH(wH)>3?"":" "}function OH(e,t){for(;--t&&AH()&&!(wH<48||wH>102||wH>57&&wH<65||wH>70&&wH<97););return PH(e,kH()+(t<6&&32==IH()&&32==AH()))}function qH(e){for(;AH();)switch(wH){case e:return SH;case 34:case 39:34!==e&&39!==e&&qH(wH);break;case 40:41===e&&qH(e);break;case 92:AH()}return SH}function LH(e,t){for(;AH()&&e+wH!==57&&(e+wH!==84||47!==IH()););return"/*"+PH(t,SH-1)+"*"+dH(47===e?e:AH())}function NH(e){for(;!MH(IH());)AH();return PH(e,SH)}function jH(e){return function(e){return CH="",e}(_H("",null,null,null,[""],e=function(e){return vH=yH=1,xH=gH(CH=e),SH=0,[]}(e),0,[0],e))}function _H(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=r,E=x;g;)switch(h=y,y=AH()){case 40:108!=h&&58==hH(E,d-1)?(v++,E+="("):E+=DH(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=DH(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=dH(y);break}E+=TH(h);break;case 92:E+=OH(kH()-1,7);continue;case 47:switch(IH()){case 42:case 47:bH(FH(LH(AH(),kH()),t,n,l),l),5!=MH(h||1)&&5!=MH(IH()||1)||!gH(E)||" "===mH(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=gH(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=dH(y);break}switch(y){case 0:case 125:g=0;case 59+c:-1==b&&(E=fH(E,/\f/g,"")),f>0&&(gH(E)-d||0===m)&&bH(f>32?$H(E+";",r,n,d-1,l):$H(fH(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(bH(C=zH(E,t,n,u,c,o,s,x,S=[],w=[],d,i),i),123===y)if(0===c)_H(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===hH(E,3))break;case 108:if(97===hH(E,2))break;default:c=0;case 100:case 109:case 115:}c?_H(e,C,C,r&&bH(zH(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):_H(E,C,C,C,[""],w,0,s,w)}}u=c=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+gH(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==RH())continue;switch(E+=dH(y),y*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[u++]=(gH(E)-1)*b,b=1;break;case 64:45===IH()&&(E+=DH(AH())),p=IH(),c=d=gH(x=E+=NH(kH())),y++;break;case 45:45===h&&2==gH(E)&&(m=0)}}return i}function zH(e,t,n,r,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=mH(e,p+1,p=cH(g=a[m])),x=e;v<h;++v)(x=pH(g>0?f[v]+" "+y:fH(y,/&\f/g,f[v])))&&(l[b++]=x);return EH(e,t,n,0===o?lH:s,l,u,c,d)}function FH(e,t,n,r){return EH(e,t,n,sH,dH(wH),mH(e,2,-2),0,r)}function $H(e,t,n,r,o){return EH(e,t,n,uH,mH(e,0,r),mH(e,r+1,-1),r,o)}function HH(e,t,n){switch(e.type){case"@import":case uH:case sH:return e.return=e.return||e.value;case lH:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===sH&&(e.children=e.value)})}var r=function(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}(Array.prototype.concat(e.children),HH);return gH(r)?e.return=e.value+"{"+r+"}":""}function BH(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===lH&&(!e.parent||"@media"===e.parent.type||e.parent.type===lH)){var o=aH.transform(HH(e));e.children=o?jH(o)[0].children:[],e.return=""}}Object.defineProperty(BH,"name",{value:"stylisRTLPlugin"});const VH=hk(({options:e,...t})=>$g(qm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class WH{#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,n){const r=this.#y[e].get(t)??new Set;r.add(n),this.#y[e].set(t,r),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const UH=$g(()=>new WH);let GH=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),KH=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),YH=function(e){return e.A="ascending",e.D="descending",e}({}),XH=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const JH=[0,0],ZH=e=>"number"==typeof e&&!Number.isNaN(+e),QH=e=>ZH(e.qNum),eB=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),tB=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),nB=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},rB=(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),s=((e,t,n,r,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=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:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[n].color,t:r}})(a,r,t,n,e);return se(e.localPaletteColors[t].color??"").blend(se(s.color??""),s.t)},oB=(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:tB(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:nB(r,t,n)}))),r},iB=(e,t,n,r)=>{const o=oB(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=rB(e,a,t);break}r=i}return n})(o,t);return a},aB=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!ZH(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||!ZH(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)},sB=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=aB(e,t),o=Math.abs(t);return{min:n??t-o,max:r??t+o}})(n,t),o=((e,t,n)=>{const{limits:r,paletteColors:o,localPaletteColors:i}=e.segments;if(!r||!ZH(t))return 0;let a=n&&ZH(n)?Math.min(n,t):0;const s=r.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,r.min);return{limitRange:r,limitPaletteColorIndex:o}},lB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),uB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),cB=F((e,t)=>Yt.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[Yt.jsx("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"}),Yt.jsx("use",{fillRule:"evenodd"})]})),dB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),pB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),fB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),hB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M2 7.5h12v1H2z"})})),mB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),gB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),bB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),vB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),yB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),xB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),SB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),wB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),CB=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),EB={m:yB,"ï":bB,R:CB,S:xB,T:SB,U:wB,P:gB,Q:fB,"è":F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":dB,"©":cB,"23F4":pB,2013:vB,"&":mB,add:lB,"minus-2":hB,dot:uB},RB=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=sB(o,t),a=((e,t,n,r)=>{const{segments:o}=e;if(!o||!n)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,n.limitPaletteColorIndex))return nB(o,n.limitPaletteColorIndex,r);const a=tB(n.limitRange,t);return iB(o,a,n.limitRange,r)})(o,t,i,r),{paletteColors:s}=o.segments,l=i?.limitPaletteColorIndex||0,u=s[l]?.icon??"dot",{indicator:c}=e;let d=c?.position||"right";return"rtl"===n&&(d="right"===d?"left":"right"),{color:a,iconKey:u,position:d}},AB=(hm().palette.primary.light,"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)"),IB=4/3,kB="12px",PB="600",MB="Source Sans Pro, sans-serif",DB={height:"auto",fontSize:kB,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"}},TB={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:PB},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},OB=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,qB=(e,t)=>e.representation.type===u$.Image&&"fitHeight"===e.representation.imageSize?OB(t,e.representation):e.align,LB=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",NB=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},jB=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,_B=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",zB=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",FB=24,$B=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),HB=Mu(Sd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:n,isPagination:r})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===n?LB(e,r):void 0})),BB=Mu(Sd,{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},[`& .${Um}`]:{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"},[`& .${Um}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),VB=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),WB=Mu(Sd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),UB=Mu(Dc,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:n,order:r})=>({padding:"4px !important",width:"fit-content",height:"auto",background:n?t:void 0,"&:hover":{background:e},color:"inherit",order:r})),GB=$g(),KB=$g(0),YB=$g(0),XB=e=>parseInt(e??DB.fontSize,10)*IB,JB=4/3,ZB=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function QB(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eV=(e,t)=>e?{borderBottomColor:bm.DARK_MODE_BORDER,borderRightColor:bm.DARK_MODE_BORDER,borderLeftColor:bm.DARK_MODE_BORDER,borderTopColor:bm.DARK_MODE_BORDER}:{borderLeftColor:bm.BORDER_MEDIUM,borderRightColor:bm.BORDER_MEDIUM,borderTopColor:bm.BORDER_HEAVY,borderBottomColor:t?bm.BORDER_HEAVY:bm.BORDER_LIGHT},tV=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*JB+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},nV=e=>e.components?.find(e=>"theme"===e.key),rV=(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"),s={fontFamily:o,color:ZB(n?.fontColor)?QB(bm.TEXT,t,n?.fontColor):i||bm.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...eV(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function oV(e,t,n){const r=nV(e)?.header,o=rV("header",t,r,n);return o.background=(e=>{if(void 0===e)return;const t=se(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=xm(o.background??bm.WHITE,eg),o.activeBackground=xm(o.background??bm.WHITE,tg),o}const iV=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in TB)(e)&&Object.assign(t,TB[e])),t};function aV(e,t,n){const r={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&wm(i);a&&(r[n[t]]=a),o=i?iV(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=vm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const sV=25e4,lV=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,uV=5e6,cV=5e5;const dV={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const n=e.indexOf("=");let r,o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,n){return{key:pV(e),value:pV(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function pV(e){try{return decodeURIComponent(e)}catch{return e}}function fV(e){if(!(this instanceof fV))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>dV.fromSearchString(t.search)}})}function hV(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}fV.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},fV.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=hV(t.key),t.value?n+=`=${hV(t.value)}`:n+=t.useEqualSign?"=":"";return n};var mV=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},gV=class{decode(e){let t="";const n=new mV(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const bV=e=>e>=0&&e<=1114111,vV=e=>e.match(/[\s]/);var yV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(n=i,r=0;r<5&&(o=e.next(),null!=o&&!vV(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return bV(a)?String.fromCharCode(a):"�"}},xV=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}},SV=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,n,r){let o,i;if(t.length===n)return i=this._value,this.setValue(r),i;const a=t.charAt(n);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}get(e,t){if(e.length<=t)return this._value;const n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return xV.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return xV.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||xV.newInstanceIfNeeded(e,t,this._value)}},wV=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new SV);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const CV=(()=>{const e=[],t=[],n=new wV;let r,o,i;for(r in e["&quot"]="34",e["&amp"]="38",e["&lt"]="60",e["&gt"]="62",e["&nbsp"]="160",e["&iexcl"]="161",e["&cent"]="162",e["&pound"]="163",e["&curren"]="164",e["&yen"]="165",e["&brvbar"]="166",e["&sect"]="167",e["&uml"]="168",e["&copy"]="169",e["&ordf"]="170",e["&laquo"]="171",e["&not"]="172",e["&shy"]="173",e["&reg"]="174",e["&macr"]="175",e["&deg"]="176",e["&plusmn"]="177",e["&sup2"]="178",e["&sup3"]="179",e["&acute"]="180",e["&micro"]="181",e["&para"]="182",e["&middot"]="183",e["&cedil"]="184",e["&sup1"]="185",e["&ordm"]="186",e["&raquo"]="187",e["&frac14"]="188",e["&frac12"]="189",e["&frac34"]="190",e["&iquest"]="191",e["&Agrave"]="192",e["&Aacute"]="193",e["&Acirc"]="194",e["&Atilde"]="195",e["&Auml"]="196",e["&Aring"]="197",e["&AElig"]="198",e["&Ccedil"]="199",e["&Egrave"]="200",e["&Eacute"]="201",e["&Ecirc"]="202",e["&Euml"]="203",e["&Igrave"]="204",e["&Iacute"]="205",e["&Icirc"]="206",e["&Iuml"]="207",e["&ETH"]="208",e["&Ntilde"]="209",e["&Ograve"]="210",e["&Oacute"]="211",e["&Ocirc"]="212",e["&Otilde"]="213",e["&Ouml"]="214",e["&times"]="215",e["&Oslash"]="216",e["&Ugrave"]="217",e["&Uacute"]="218",e["&Ucirc"]="219",e["&Uuml"]="220",e["&Yacute"]="221",e["&THORN"]="222",e["&szlig"]="223",e["&agrave"]="224",e["&aacute"]="225",e["&acirc"]="226",e["&atilde"]="227",e["&auml"]="228",e["&aring"]="229",e["&aelig"]="230",e["&ccedil"]="231",e["&egrave"]="232",e["&eacute"]="233",e["&ecirc"]="234",e["&euml"]="235",e["&igrave"]="236",e["&iacute"]="237",e["&icirc"]="238",e["&iuml"]="239",e["&eth"]="240",e["&ntilde"]="241",e["&ograve"]="242",e["&oacute"]="243",e["&ocirc"]="244",e["&otilde"]="245",e["&ouml"]="246",e["&divide"]="247",e["&oslash"]="248",e["&ugrave"]="249",e["&uacute"]="250",e["&ucirc"]="251",e["&uuml"]="252",e["&yacute"]="253",e["&thorn"]="254",e["&yuml"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["&notin"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[r]&&e.hasOwnProperty(r)&&(t[e[r]]=r);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),n.put(i,String.fromCharCode(o)));return n})();var EV=class extends gV{decodeCharacter(e){let t;e.mark();const n=e.next();if(null==n||"&"!==n)return e.reset(),null;const r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(t=this._getNumericEntity(e),null!=t)return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,n,r,o="";for(t=Math.min(e.remainder().length,CV.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=CV.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,16);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}_parseNumber(e){let t,n="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}const r=parseInt(n,10);return!Number.isNaN(+r)&&bV(r)?String.fromCharCode(r):null}},RV=class extends gV{decodeCharacter(e){e.mark();const t=e.next();let n,r,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(n="",r=0;r<2;r++)o=e.nextHex(),null!=o&&(n+=o);return 2===n.length&&(i=parseInt(n,16),bV(i))?String.fromCharCode(i):(e.reset(),null)}};let AV;"undefined"!=typeof document&&(AV=document.createElement("div"));const IV=Array.prototype.indexOf,kV=[",",".","_"," "],PV=[",",".","-","_"," "],MV={width:["%"],height:["%"]},DV={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},TV={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":DV.image,"background-color":DV.color,"border-color":DV.color,"border-image":DV.image,color:DV.color,icon:DV.image,"list-style-image":DV.image,"outline-color":DV.color},OV={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function qV(e,t,n){let r;if(t){if(IV)return IV.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function LV(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return AV.appendChild(n),t=AV.innerHTML,AV.removeChild(n),t}function NV(e,t,n){let r,o,i,a,s,l,u,c,d;for(e=_V(e).toLowerCase(),t=_V(t),i=0;i<OV.attr_name.length;i++)if(e.match(OV.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<OV.attr_val.length;i++)if(t.toLowerCase().match(OV.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=MV[e],r||(r=PV),o="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,r)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return n||(o+='"'),o}function jV(e,t,n){let r,o,i,a,s,l,u,c,d,p;if(e=_V(e).toLowerCase(),t=_V(t),qV(e,OV.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<OV.css_val.length;r++)if(t.toLowerCase().indexOf(OV.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=TV[e],o||(o=DV.default),i="",!n){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&qV(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function _V(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new EV,new RV,new yV];for(;!a;){r=n;for(let e=0;e<s.length;e++)i=s[e].decode(n),i!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}const zV=[];for(let e=0;e<255;e++)zV[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const FV={html:e=>LV(e.unsafe),css(e){let t,n=[];const r=[],o={};let i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=jV(t,n[t],!0),i+=jV(t,n[t],!0),o[t]=r[t]);return e.map?o:i},attr(e){let t=[];const n=[],r={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(n[e]=NV(e,t[e],!0),o+=NV(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function $V(e,t){throw new Error(t)}var HV={canonicalize:_V,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,n;const r=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n=e[t],r===n)continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?FV.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&$V(this,"Invalid parameter type"),FV.attr(e)):void $V(this,"Invalid parameter type")},encodeForAttr:NV,encodeForAttr2:function(e){return NV("nonsens",e,!0)},encodeForCSS:jV,encodeForHref:function(e){_V(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new fV(e),n=fV.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+fV.encodeSearchParams(r)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let n,r,o,i,a,s;for(t||(t=kV),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),qV(o,t)>=0||null==zV[i]?s+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),s+=`\\x${a}${r.toUpperCase()}`):(a="0000".substr(r.length),s+=`\\u${a}${r.toUpperCase()}`));return s},encodeForHTML:LV,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=_V(t).toLowerCase():$V(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':"",n},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:n=cV,maxByteSizeImage:r=uV}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=lV.exec(e.trim())??[];return{encoding:n,data:r,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,n)=>{const r={type:e};if(t?.includes(";base64"))try{return new Blob([atob(n)],r).size}catch{return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0})(o,i,a);return"image/svg+xml"===o?s<=n:s<=r},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const n=function(e){let t=e,n="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("/.."===t){t="/";const e=n.lastIndexOf("/");-1!==e&&(n=n.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),r=e?e[0]:"";t=t.slice(r.length),n+=r}return n}(t);return""!==n&&"/"!==n&&n}};const BV=(e,t)=>t.qAttrExps?.qValues?.[e],VV=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},WV=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!HV.isSafeDataURL(t))?{type:u$.Text,url:void 0,text:e,labelStructure:o}:{type:u$.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:VV(r,a),labelStructure:o,imageBox:i},UV=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:u$.Text,text:r};const{minY:o,maxY:i}=((e,t,n)=>{const r="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=r?n.qYMin:e.qMiniChart.qMin,a=r?n.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,n),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:u$.MiniChart,text:r,miniChart:a}},GV=(e,t,n)=>{const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=r?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return n?.urlPosition===c$.Attribute?void 0:n?.urlLabel},KV=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:u$.Link,url:HV.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:u$.Text,url:void 0,text:t,labelStructure:e}}},YV=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=d$(t),d=s(e);return c===u$.Image&&u[u$.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=BV(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),WV({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return WV({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=BV(n.imageLabel??-1,e)?.qText??r;return WV({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:u$.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):c===u$.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===c$.Attribute){const i=GV(n.url??-1,e,t);return KV({labelStructure:r,text:o||i||"",url:i})}if(i===c$.Dimension){const i=GV(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),KV({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:u$.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):c===u$.Indicator&&u[u$.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:u$.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===u$.MiniChart&&u[u$.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?UV(e,t,i,d):{type:u$.Text,url:void 0,text:d,labelStructure:a}},XV=$g(e=>{const t=e(Hb),n=e(Rb);return e(Ab),{qTop:0,qHeight:0,rowPartialHeight:n?.content?.rowPartialHeight??0,visibleTop:n?.content?.visibleTop??t?.visibleTop,visibleHeight:n?.content?.visibleHeight??t?.visibleHeight,scrollLeft:n?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:n?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:n?.content?.rowsPerPage??t?.rowsPerPage,page:n?.content?.page??t?.page,estimatedRowHeight:n?.content?.estimatedRowHeight??0}}),JV=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),ZV=({cId:e})=>e??QF(),QV=1e4;function eW(e,t){return[...t].reverse().find(t=>t*e<=QV)||Math.floor(QV/e)}function tW(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const n=e.qHyperCube.qDimensionInfo.length>0,r=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(n&&r||!i&&!n)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function nW(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function rW(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return ZH(n?.qNum)}function oW(e,t,n,r,o){return e&&!e.auto?r&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:r||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:n?"right":"left",bodyTextAlign:"auto"}}const iW=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",aW=(e,t)=>{if(!e)return;const{background:n,foreground:r}=e,o=se(n??""),i=se(r??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?xm(s,eg):void 0,u=s?xm(s,tg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:vm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:u}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:u}};const sW=(e,t,n,r=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,n)=>{const r=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<r,{qError:a}=i?t[o]:n[o-r];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const n=e<r,o=(n?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:n?s:void 0,visibleMeasureInfoIdx:n?void 0:s-r}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,n,r,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:u,visibleDimInfoIdx:c,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ng.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==c){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=c,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:M,qApprMaxGlyphCount:D,columnWidth:T,qLibraryId:O,headerColor:q}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:O,pageColIdx:u,qApprMaxGlyphCount:D,qReverseSort:M,columnWidth:T??{type:Qm.Auto},selectionColIdx:S,isActivelySorted:g,id:ZV(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:JV(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:nW(e,f,u,d??-1),...!f&&{isTotalNumeric:rW(e,d??-1)},...oW(I,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?aW(q,n):void 0}}(e,o,t,n,r))},lW=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",uW=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,cW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},dW=$g(e=>{const t=e(pW),n=e(yb),r=e(XV),o=n.qHyperCube.qSize.qcy,i=r.visibleHeight??t.rowsPerPage,a=r.visibleTop??t.page*i,s=r.visibleHeight??Math.min(i,o-a),l=n.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>QV?{...t,rowsPerPage:eW(l,t.rowsPerPageOptions),page:0}:t}),pW=$g(cW),fW=$g(e=>{const t=e(yb),n=e(Hb),r=e(XV);return _b(t,n)?{page:r.page||cW.page,rowsPerPage:r.rowsPerPage||cW.rowsPerPage,rowsPerPageOptions:cW.rowsPerPageOptions}:e(dW)},(e,t,n)=>{t(pW,e=>({...e,...n}))}),hW=!0,mW=e=>-1===e.qElemNumber||!!e.qIsTotalCell,gW=$g(async e=>{const t=e(yb),n=e(Hb),r=e(Fb),{page:o,rowsPerPage:i}=e(fW),a=e(XV),s=e(Gb),l=e(mb),u=e(Sb),c=e(gb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=tW(t,n),v=sW(t,hW,r,c),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,n)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const r=t.qHyperCube.qDataPages.at(0),o=r?.qArea;return r&&o?.qLeft===n.qLeft&&o.qTop===n.qTop&&o.qWidth===n.qWidth&&o.qHeight>=n.qHeight?[{...r,qMatrix:r.qMatrix.slice(0,n.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[n]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});u||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,n)=>{const o=[],i=e.some(mW);return v.forEach((a,s)=>{const u=e[s],c=!a.isDim&&u.qIsNull,d=a.isDim&&uW(u,a.isDim),p=c||d?lW(a.isDim,u,t,y):u.qText,f=c?eB(p):QH(u),g=QH(u)&&!eB(u.qText??"");o[s]={id:QF(),...u,align:iW(f,a.bodyTextAlign,r,hW),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!c||!f)&&uW(u,a.isDim),representation:YV({cell:u,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),bW=ZR(gW,e=>e),vW=$g(e=>{const t=e(yb),n=e(Hb),r=e(Tb),o=e(Fb),i=e(gb),a=sW(t,false,o,i),s=tW(t,n),l=t.qHyperCube.qSize.qcy,u=Math.min(sV,l),c=l>sV&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/u),paginationNeeded:c}}),yW={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},xW=$g(),SW=$g(e=>{const t=e(Vb),n=e(xW);return n||(t?e(bW)??yW:e(vW))}),wW=$g(e=>e(SW).totalsPosition),CW=$g(e=>e(SW).columns),EW=$g(e=>e(CW).length),RW=$g(e=>e(SW).rows),AW=$g(e=>e(SW).totalRowCount),IW=$g(e=>e(SW).totalColumnCount),kW=$g(e=>e(SW).paginationNeeded),PW=$g(e=>{const t=e(Qb),n=e(nv),r=e(yb),o=e(wW),i=e(RW),a=o.atTop,s=function(e,t,n,r){const o=nV(e)?.content,i=rV("content",t,o);i.background=t.background.color;const a=tV(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=ZB(l)||!!c,p=ZB(s)||!!u,f=d||p;let h;h=ZB(s)?QB(bm.HOVER,t,s):u||(d?"":bm.HOVER);const m=f?QB(vm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=oV(r,n,!a),u=function(e,t,n){const r=nV(e)?.content,o=rV("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=oV(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:u}}),MW=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},DW=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=MW(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},TW=(e,t,n,r=bm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=DW(e,t,n);return Im(i,o,a,r)??r},OW=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return kB}},qW=e=>e?.some(e=>"italic"===e)?"italic":"normal",LW=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?PB:"normal",NW=e=>!1===e?1:3,jW=e=>e?.some(e=>"underline"===e)?"underline":"none",_W=$g(e=>{const t=e(Hb),n=e(Vb),r=e(nv),o=e(yb),i=e(PW),a=e(gb),{header:s,dimensionValues:l,measureValues:u,totalValues:c,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=nV(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?bm.WHITE:bm.TRANSPARENT,v=TW(r,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??r.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??MB,fontSize:OW(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:qW(s?.fontStyle),fontWeight:LW(s?.fontStyle,PB),textDecoration:jW(s?.fontStyle),color:MW(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??bm.TEXT,background:v},headerMenuHoverBackground:xm(v,eg),headerMenuActiveBackground:xm(v,tg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:qW(l?.fontStyle),fontWeight:LW(l?.fontStyle,"normal"),textDecoration:jW(l?.fontStyle),color:MW(r,l?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??bm.TEXT,background:DW(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},measure:{values:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??MB,fontSize:OW(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:qW(u?.fontStyle),fontWeight:LW(u?.fontStyle,"normal"),textDecoration:jW(u?.fontStyle),color:MW(r,u?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??bm.TEXT,background:DW(r,u,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??bm.TRANSPARENT}},totalRow:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(c?.fontStyle),fontWeight:LW(c?.fontStyle,PB),textDecoration:jW(c?.fontStyle),color:MW(r,c?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,c,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??MB,fontSize:OW(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:qW(d?.fontStyle),fontWeight:LW(d?.fontStyle,PB),textDecoration:jW(d?.fontStyle),color:MW(r,d?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??bm.TEXT,background:TW(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:qW(x?.fontStyle),fontWeight:LW(x?.fontStyle,"normal"),textDecoration:jW(x?.fontStyle),color:MW(r,x?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:qW(p?.fontStyle),fontWeight:LW(p?.fontStyle,"normal"),textDecoration:jW(p?.fontStyle),color:MW(r,p?.fontColor)??MW(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??bm.TEXT,background:MW(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??bm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??NW(o.multiline?.wrapTextInCells),headerLineClamp:NW(o.multiline?.wrapTextInHeaders),border:MW(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?bm.DARK_MODE_BORDER:bm.BORDER_MEDIUM),divider:MW(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??bm.BORDER_HEAVY,hoverColors:{color:MW(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:MW(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:MW(r,h?.zebraStripes?.color?.odd),background:MW(r,h?.zebraStripes?.background?.odd)},even:{color:MW(r,h?.zebraStripes?.color?.even),background:MW(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===MW(r,x?.background),overrideDimNullValueColor:void 0===MW(r,x?.fontColor),overrideMeasNullValueBackground:void 0===MW(r,p?.background),overrideMeasNullValueColor:void 0===MW(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:ym(r),contentStaticLineCount:y}}),zW=$g(e=>{const t=e(_W);return Math.max(XB(t.header.fontSize)+8,32)}),FW=$g(e=>{const t=e(_W),n=XB(t.totalRow.fontSize);return Math.max(n+9,24)}),$W=$g(e=>{const t=e(_W),n=e(wb),r=e(Cb);return Math.max(n>0?XB(t.dimension.values.fontSize):0,r>0?XB(t.measure.values.fontSize):0)}),HW=$g(e=>{const t=e(_W),n=e($W),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),BW=$g(e=>{const t=e(_W),n=XB(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),VW=(e,t,n)=>{if(!e.length)return[];const r=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(Zm.PixelsMax,Math.max(Zm.PixelsMin,f)),i-=r[a]};switch(s){case Qm.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PixelsDefault:+e)(l),h();break;case Qm.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?Zm.PercentageDefault:+e)(u)/100*t,h();break;case Qm.FitToContent:e.representation?.type===u$.Image?o.push(a):(f=n(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case Qm.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{r[t]=Math.max(Zm.AutoMinTable,e)})}return r},WW=$g(e=>{const t=e(_W),n=e(SW).totalsPosition,r=e(Ib),{measureText:o}=e(VH({...t.header,fontWeight:PB})),{measureText:i}=e(VH({...t.totalRow,fontWeight:PB})),{estimateWidth:a}=e(VH(t.dimension.values)),{estimateWidth:s}=e(VH(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,u,c,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,u&&(n+=20+t),c&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=FB),t+=FB,t+=FB,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),UW=$g(null),GW=$g(e=>{const t=e(SW),n=e(Zb).width,r=e(YB),o=e(WW);return VW(t.columns,n-r,o)}),KW=$g(e=>e(UW)??e(GW),(e,t,n)=>{t(UW,n)}),YW=CA(e=>{const t=e(UH);!1===e(GB)&&t.emit("done-adjusting-column-width")}),XW=CA((e,t)=>{e(yb),t(UW,null)}),JW=$g(e=>e(KW).reduce((e,t)=>e+t,0)),ZW=({children:e})=>(Qg(XW),Qg(YW),e);function QW(e){const t=hm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),cu({...t,direction:e})}const eU={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},tU={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},nU=Mu("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:n})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===n?"-4px":void 0,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":{...eU},"&::-moz-range-track":{...eU},"&::-ms-track":{...eU},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...tU},"&::-moz-range-thumb":{...tU},"&::-ms-thumb":{...tU},"&: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"}})),rU=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Bm({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};$m(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,Zm.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Qm.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Em(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Em(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===Xm.Left||e.key===Xm.Right){Em(e);const t=5,n=e.key===Xm.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===Xm.Space||e.key===Xm.Enter?(Em(e),s(e),l?.(!1),x()):e.key===Xm.Esc&&(Em(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return Yt.jsx(nU,{style:b,hoverColor:o,isLastColumn:n,className:Jm,"data-testid":Jm,onMouseDown:e=>{Em(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Qm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Em(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":Zm.PixelsMin,"aria-valuemax":Zm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},oU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),iU=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const n=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",n,t)}catch(e){console.error(e)}}}return null},aU=Mu(Sd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:n})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:n?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:n?"100%":void 0,alignItems:"center",justifyContent:"center"})),sU=Mu(oU,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),lU=Mu(jf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),uU=Mu(mp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),cU=Mu(Hf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),dU=Mu(Hf,{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"})),pU=Mu("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:n||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),fU=Mu("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),hU=Mu(jc)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),mU=Mu(cf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:n})=>({width:16,minWidth:"unset !important",marginRight:n||"rtl"!==t?e.spacing(1.5):0,marginLeft:n||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),gU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),bU=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?bU(t):t:e.parentElement?.children?.[0]},vU=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?vU(t):t},yU=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===Xm.Down||t===Xm.Up){const n=e=>t===Xm.Down?bU(e):vU(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},xU=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...n})=>({...n,...e?{onClick:async n=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(n)}}:{}}))})));let SU={};const wU=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(dU,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),SU={}),a?.length&&(p(!0),SU[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:yU,children:[l?Yt.jsx(pU,{direction:u,isPagination:c}):null,Yt.jsxs(fU,{children:[Yt.jsx(mU,{direction:u,isPagination:c,children:Yt.jsx(o,{})}),Yt.jsx(hU,{variant:"body2",children:r})]}),a?.length?Yt.jsx(gU,{}):null]},t),a?.length?Yt.jsx(AU,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:xU(a,SU),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},CU=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&Yt.jsx(cU,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>Yt.jsx(wU,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),EU=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[CU({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?Yt.jsx(uU,{"data-testid":"group-divider",variant:"middle"}):void 0]),RU={appear:0,enter:0,exit:0},AU=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?Yt.jsx(lU,{className:Gm,open:t,anchorEl:e,onClose:n,transitionDuration:RU,MenuListProps:{id:Km},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:EU({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,IU=({qLibraryId:e,fieldId:t,searchRelatedArgs:n,selectionRelatedArgs:r,direction:o,onPopoverClose:i})=>L(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(n?.embed){const{embed:e,listboxRef:t}=n;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:n.sortCriteria,stateName:r?.qStateName,direction:o,onPopoverClose:i})}},[e,t,n,r?.qStateName,o,i]),kU=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),PU=(e,t)=>e.some(e=>t[e]>0),MU={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},DU=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(MU);return $m(()=>{e||(s(MU),i(null))},[e]),O(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=kU(t,n),u=await r.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:PU(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:PU(["qSelected"],e),canSelectPossible:PU(["qOption"],e),canSelectAlternative:PU(["qAlternative"],e),canSelectExcluded:PU(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},TU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),OU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),qU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),LU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),NU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})})),jU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})})),_U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),zU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),FU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),$U=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),HU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),BU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("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"})})),VU=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})}));let WU=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const UU="/qListObjectDef",GU=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[WU.Sorting]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({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);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),r(!1)},icon:TU,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),r(!1)},icon:LU,enabled:s,isActive:!!n&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:_U,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[WU.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:zU,enabled:!0}]}]),!e.isLocked&&n[WU.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:VU,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(UU))},icon:FU,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(UU))},icon:BU,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(UU))},icon:$U,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(UU))},icon:HU,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(UU))},icon:OU,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.expandCallback()},icon:jU,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:NU,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[WU.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),c?.(u)},icon:qU,enabled:!0}]}]),f},KU=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Vm})=>{const v=M(null),y=Bm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=DU({open:e,headerData:r,app:C,qStateName:c?.qStateName}),A=iU({model:f,headerData:r}),I=IU({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?Yt.jsxs(aU,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:Um,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?Yt.jsx(sU,{height:b,className:Wm,"data-testid":Wm,isInteractionsActive:i.active??!1,children:Yt.jsx(oU,{})}):null,Yt.jsx(AU,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:GU({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},YU=e=>e.isDark?{background:e.color,borderColor:bm.DARK_MODE_BORDER,color:bm.DARK_MODE_TEXT,disabledColor:bm.DARK_MODE_DISABLED,iconColor:bm.DARK_MODE_TEXT}:{background:e.color,borderColor:bm.BORDER_MEDIUM,color:bm.TEXT,disabledColor:bm.DISABLED},XU=Mu(Sd,{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}`})),JU=Mu(wh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),ZU=Mu(Dd,{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)})),QU=Mu(jc)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),eG=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>YU(r.background),[r]);if(!n.active)return null;const a=o?Yt.jsx(XU,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},tG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),nG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),rG=D({}),oG=()=>N(rG),iG=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=k(()=>YU(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Bm({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,n,r,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return Yt.jsx(rG.Provider,{value:S,children:e})},aG=({disabledCondition:e,pageNumber:t,type:n,footerStyle:r,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:r,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${n}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let sG=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),lG=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}({});const uG=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=oG(),u=0===t.page,c=aG({type:sG.FirstPage,disabledCondition:u,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||lG.FirstPage)?null:Yt.jsx(ZU,{...c,disabled:!r.active,children:"rtl"===e?Yt.jsx(nG,{height:Vm}):Yt.jsx(tG,{height:Vm})})},cG=(e,t,n=!1)=>{n&&e.key===Xm.Tab&&!e.shiftKey&&(Em(e),Cm(e.target,t,!1))},dG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:u,translator:c,tabIndex:d}=oG(),p=t.page>=r-1,f=aG({type:sG.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:u,translator:c,interactions:a,tabIndex:d}),h=n.enabled?e=>{cG(e,n,o)}:void 0;return i<=(s?.lastPage||lG.LastPage)?null:Yt.jsx(ZU,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?Yt.jsx(tG,{height:Vm}):Yt.jsx(nG,{height:Vm})})},pG=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),fG=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:u,tabIndex:c}=oG(),d=t.page>=r-1,p=aG({type:sG.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:u,interactions:a,tabIndex:c}),f=!(i>lG.FirstPage&&i>lG.LastPage)&&n.enabled?e=>{cG(e,n,o)}:void 0;return Yt.jsx(ZU,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?Yt.jsx(pG,{height:Vm}):Yt.jsx(gU,{height:Vm})})},hG=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=oG(),s=0===t.page,l=aG({type:sG.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return Yt.jsx(ZU,{...l,disabled:!n.active,children:"rtl"===e?Yt.jsx(gU,{height:Vm}):Yt.jsx(pG,{height:Vm})})},mG=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=oG(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||lG.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return Yt.jsx(QU,{variant:"caption",dir:"ltr",children:s})},gG=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=oG(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(QU,{variant:"caption",id:p,children:[c,":"]}),Yt.jsx(JU,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},bG=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=oG();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||lG.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=Yt.jsx(Yt.Fragment,{children:e.rowsPerPageOptions.map(e=>Yt.jsx("option",{value:e,children:e},e))});return Yt.jsx(gG,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},vG=1e3,yG="…",xG=({totalPages:e,page:t})=>{const n=Math.min(e,vG),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-vG):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return Yt.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"startMoreOptions")),o<e-1&&a.push(Yt.jsx("option",{value:yG,disabled:!0,children:yG},"endMoreOptions")),Yt.jsx(Yt.Fragment,{children:a})},SG=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=oG(),{page:i}=e;if(t<=(o?.selectPage||lG.SelectPage))return null;const a=Yt.jsx(xG,{totalPages:n,page:i});return Yt.jsx(gG,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var wG=z(e=>Yt.jsxs(iG,{...e,children:[Yt.jsx(bG,{}),Yt.jsx(SG,{}),Yt.jsx(mG,{}),Yt.jsx(uG,{}),Yt.jsx(hG,{}),Yt.jsx(fG,{}),Yt.jsx(dG,{})]}));const CG=e=>Yt.jsx(eG,{...e,children:Yt.jsx(wG,{...e})}),EG=(e,t,n)=>{const r=n.size,o=r>=t.size;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"]})},RG=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},AG=e=>e.ctrlKey||e.metaKey,IG=e=>e.shiftKey&&AG(e),kG=e=>[Xm.Left,Xm.Right,Xm.Up,Xm.Down].includes(e),PG=e=>e.shiftKey&&kG(e.key),MG=e=>(e=>kG(e)||[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown].includes(e))(e.key)&&!IG(e),DG=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)n?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(r)}return l=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?(new Map).set(r,o):(e.has(r)?e.delete(r):e.set(r,o),new Map(e))})(l,i,s),EG(a,r,l),l.size?(n?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(n?.cancel(),{...e,rows:l,colIdx:-1})},TG=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&PG(u)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const c=((e,t,n,r,o)=>{if(!n.isSelectable)return t;const i=new Map(t);if("key"in r&&PG(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===Xm.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,n.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),s=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=s;t++){const n=e[t][o.pageColIdx];n.isSelectable&&i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,u,a);return EG(l,r,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},OG=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(n.values()),[r]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},qG=(e,t)=>{switch(t.type){case KH.Select:return DG(e,t.payload);case KH.SelectMouseDown: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 KH.SelectMouseUp:return((e,t)=>OG(e.isSelectMultiValues||e.firstCell!==t.cell?e:DG(e,t)))(e,t.payload);case KH.SelectMultiAdd:return TG(e,t.payload);case KH.SelectMultiEnd:return OG(e);case KH.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case KH.Clear:return e.rows.size?{...e,rows:new Map}:e;case KH.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LG=$g(e=>{const t=e(Mb);return function(e,t){return $g(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(SW).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},qG)}),NG=$g(e=>e(e(LG)),(e,t,n)=>{t(e(LG),n)}),jG=hk(e=>$g(t=>{const{colIdx:n,rows:r,api:o}=t(NG);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?GH.Disabled:r.has(e.qElemNumber)?GH.Selected:GH.Possible:GH.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),_G=$g(e=>{const t=e(JW),n=e(Zb).width,r=e(YB);return t>0&&t+r<n}),zG=()=>{const[e,t]=P(!1);return p_({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?Yt.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},FG=(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}),$G=$g(e=>{const t=e(wb),n=e(Kb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,u=o?i:i-t,c=await n.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),HG=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},BG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),VG=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),WG=e=>e.atTop?2:1,UG=(e,t)=>({top:e?WG(t):0,bottom:e&&t.atBottom?1:0}),GG=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],KG=e=>e?.setAttribute("tabIndex","0"),YG=e=>e?.setAttribute("tabIndex","-1"),XG=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(YG)},JG=e=>{e?.focus(),KG(e)},ZG=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${Jm}`);JG(t)},0)},QG=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{XG(t);const a=((e,t,n,r,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=n;switch(e.key){case Xm.Down:u<s&&u++;break;case Xm.Up:u>a&&u--;break;case Xm.Right:if(i)break;[u,c]="rtl"===r?BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Xm.Left:if(i)break;[u,c]="rtl"===r?VG({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):BG({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case Xm.Home:(AG(e)||i)&&(u=a),i||(c=0);break;case Xm.End:(AG(e)||i)&&(u=s),i||(c=l);break;case Xm.PageDown:u=Math.min(s,u+10);break;case Xm.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,n,i,o),s=GG(t,a);return JG(s),((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(!n?.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[r].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-i.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),r(a),{nextCell:s,nextCellCoord:a}},eK=(e,t,n,r)=>{XG(t),n(e),r.enabled&&!r.active?r.focus?.():JG(GG(t,e))},tK=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${Gm}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${XH.First}`),n=e.querySelector(`.${XH.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),((e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement;o&&r.contains(o)||n.blur?.(!1)})(e,t,n)},nK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),rK=Mu(Fh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...DB,...e,cursor:t.active?"pointer":"default",background:r,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?n:r}})),oK=Mu("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:kB,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),iK=parseInt(kB,10)/2,aK=Mu("div")({position:"absolute",bottom:-iK,left:`calc(50% - ${iK}px)`}),sK=Mu(nm)({position:"sticky",top:0,zIndex:1}),lK={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},uK=Mu(Sd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),cK=Mu("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:n=!1,isNumeric:r=!1,isDual:o=!1})=>r&&!o||1===e&&!t?{...lK,whiteSpace:"nowrap",display:n?"block":void 0}:{...lK,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),dK=Mu("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),pK="cell-text",fK=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=Qg(_W);return o?Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):Yt.jsx(cK,{"data-testid":pK,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:n,lineClamp:a??s.grid.contentLineClamp,isPagination:r,style:{direction:n?"ltr":void 0},children:e})},hK=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=Qg(Eb),l=Qg($G),u=Qg(Fb),c=Qg(Tb),d=Qg(ob),p=Qg(rv),f=Qg(nb),h=Qg(KW)[t.pageColIdx],m=Qg(Gb),g=M(null),b=M(null),v=(({column:e,columnWidth:t})=>{const n=Qg(_W),{measureText:r}=Lm({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:PB});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,u=t-25,c=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:n,shouldShowLockIcon:r},o)=>{const i="A"===e?Yt.jsx(TU,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(LU,{height:kB,"data-testid":"head-cell-sort-descending-icon"}),a=n?Yt.jsx(oK,{align:t,dir:o,children:i}):void 0,s=r?Yt.jsx(VB,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Yt.jsx(nK,{height:kB,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,u);return Yt.jsxs(BB,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:NB(t,i,u),children:[S,Yt.jsxs(HB,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:u,isPagination:i,children:[y,Yt.jsx(fK,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:u,isPagination:i,isAccessibleHeader:!0}),Yt.jsx($B,{ref:b,direction:u,isPagination:i}),Yt.jsx($B,{ref:g,direction:u})]}):null]})},mK=F((e,t)=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:Yt.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),gK=(e,t)=>e.isCyclic&&t,bK=({column:e})=>{const t=Qg(_W),n=Qg(Fb),r=Qg(Gb),o=w.useRef(null),[i,a]=w.useState(!1),s=iU({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(UB,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:Yt.jsx(mK,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),Yt.jsx(AU,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(n)},enabled:!0,icon:kF,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},vK=e=>e.isLocked,yK=({column:e})=>{const t=Qg(nb),n=Qg(Eb),r=Qg(bb),o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,n,r={warn:()=>{},error:()=>{}})=>{const o=kU(t??"$",n);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){r.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||r.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,n,e,r)},children:Yt.jsx(nK,{height:16,"data-testid":"head-cell-lock-icon"})})},xK=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=Qg(_W);return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:n,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),r(e=>!e)},ref:t,children:Yt.jsx(oU,{height:16})})},SK=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=Qg(nb),s=Qg(Fb),l=Qg(ob),u=Qg(Tb),c=Qg(Gb),d=Qg(Eb),p=Qg(rv),f=Qg($G);return Yt.jsx(KU,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[WU.Sorting]:!0,[WU.Searching]:!0,[WU.Selections]:!0,[WU.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:ZG},shouldShowMenuIcon:!1,model:c,direction:s,isPagination:n})},wK=$g();wK.onMount=e=>{const t=new Map,n=new ResizeObserver(e=>{for(const n of e){const e=t.get(n.target);e&&e.current(n)}});return e({callbacks:t,observer:n}),()=>{t.clear(),n.disconnect()}};const CK=({ref:e,callback:t})=>{const n=Qg(wK),r=M(t);r.current=t,j(()=>{const t=e.current;return void 0===n?()=>{}:(t&&(n.callbacks.set(t,r),n.observer.observe(t)),()=>{t&&(n.callbacks.delete(t),n.observer.unobserve(t))})},[e,r,n])},EK=Mu(Sd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),RK=({children:e})=>{const t=w.useRef(null),[n,r]=P(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=k(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=L(e=>{const t=new Set,n=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const r=e.props.minWidth+1;void 0===e.props.prio||i+r<=n?i+=r:t.add(e.key)}),r(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return CK({ref:t,callback:i}),Yt.jsx(EK,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},AK=({children:e})=>e,IK=(e,t)=>!e.isLocked&&e.isDim&&t,kK=({column:e,open:t,setOpen:n})=>{const r=Qg(_W),o=Qg(Eb),i=Qg(Fb),a=Qg(ob);Qg(nb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),u=IU({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return Yt.jsx(UB,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),n(!0)},children:Yt.jsx(zU,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},PK=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?Yt.jsx(CB,{height:kB,"data-testid":"head-cell-sort-ascending-icon"}):Yt.jsx(xB,{height:kB,"data-testid":"head-cell-sort-descending-icon"});return n?Yt.jsx(aK,{children:r}):void 0},MK=0,DK=1,TK=2,OK=3,qK=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=Qg(_W),u=Qg(Fb),{measureText:c}=Lm(l.header),[d,p]=P(!1),f=M(null),h=M(null),m=M(null),g="number"==typeof a&&a>Zm.PixelsMin+18;return Yt.jsxs(Yt.Fragment,{children:[Yt.jsxs(RK,{children:[Yt.jsx(AK,{prio:TK,minWidth:FB,children:vK(t)?Yt.jsx(yK,{column:t}):null},"Lock"),Yt.jsx(AK,{prio:DK,minWidth:FB,children:gK(t,s)?Yt.jsx(bK,{column:t}):null},"Cyclic"),Yt.jsx(AK,{ignore:!0,children:Yt.jsx(PK,{column:t})},"Sort"),Yt.jsx(AK,{minWidth:c(t.label)+8,children:Yt.jsx(WB,{justifyContent:t.headTextAlign,children:Yt.jsx(fK,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),Yt.jsx(AK,{prio:g?void 0:MK,minWidth:FB,children:d||IK(t,s)?Yt.jsx(kK,{open:d,setOpen:p,column:t}):null},"Search"),Yt.jsx(AK,{prio:OK,minWidth:FB,children:s?Yt.jsx(xK,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?Yt.jsxs(Yt.Fragment,{children:[Yt.jsx($B,{ref:h,direction:u,isPagination:o}),Yt.jsx($B,{ref:f,direction:u}),Yt.jsx(SK,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},LK=Mu("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),NK=()=>{},jK=({column:e,isPagination:t})=>{const n=Qg(_W),r=Qg(Fb),o=Qg(_G),i=Qg(wW),a=!1,s=Qg(Ib)?hK:qK;return Yt.jsx(LK,{className:"sn-table-cell",applicableStyle:{...n.header,...FG(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(r,a,o),borderLeftWidth:zB(r,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??n.header.background,color:e.headerColor?.color??n.header.color,children:Yt.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:NK})})},_K=({isPagination:e})=>{const t=Qg(CW),[n,r]=P();p_({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?Yt.jsx(Bj,{children:Yt.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:Yt.jsx(jK,{column:o,isPagination:e})})}):null},zK=ZR($g(async e=>{e(yb);const t=e(Kb);return t?.getEffectiveProperties()}),e=>e),FK=$g(e=>e(zK)?.qHyperCubeDef),$K=[YN.configure({activationConstraints:[new WN.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],HK=gj.plugins.filter(e=>e!==CL),BK=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},VK=(e,t,n,r,o)=>{if(!e||!t||r===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,visibleColumnIds:r,sourceId:o,targetId:i})=>{const a=e$({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),u=r.findIndex(e=>e===i);if(l<0||u<0||l===u)return;const c=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,u),d=new Map(c.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const n=d.get(e.id),r=d.get(t.id);return void 0===n||void 0===r?0:n-r}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:t$({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:c.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:n.map(e=>e.id),sourceId:r,targetId:o});if(!i)return;const a=[BK("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),BK("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),BK("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),BK("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},WK=({children:e})=>{const t=Qg(Kb),n=Qg(FK),r=Qg(CW);return Yt.jsx(Fj,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&VK(t,n,r,o,i)},sensors:$K,plugins:HK,children:e})};function UK(e,t){const n=M(!1);O(()=>{n.current?e():n.current=!0},t)}const GK=(e,t)=>{const n=Qg(Ub);O(()=>{const r=e.current;if(!r)return;const o=e=>{tK(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},KK=$g(JH),YK=hk(e=>$g(t=>{const[n,r]=t(KK);return 0===n&&r===e})),XK=()=>{const e=Qg(rb);O(()=>{e.notifyIsDoneRendering()})};var JK={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":"已依遞減順序排序。"}}};const ZK=$g(e=>{const t=e(rv),n=e(Qb),r=e(bb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(JK).forEach(t=>{e.add(JK[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),s=n.querySelector(`.${XH.First}`),l=n.querySelector(`.${XH.Second}`);if(!s||!l)return void r.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let u;o===XH.First?(u=l,o=XH.Second):(u=s,o=XH.First),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-live",i)}}),QK=(e,t)=>{const n=Qg(ZK),r=Qg(Qb),o=Qg(IW),i=Qg(AW),a=Qg(RW),s=Qg(wW),[l,u]=tb(KK),c=Qg(Pb),d=Qg(Ub);UK(()=>{const t=((e,t,n=!1)=>{const r=[WG(t),e[1]];return n?r:JH})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(XG(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=GG(t,e);n.current?(JG(s),n.current=!1):KG(s),r&&(a({keys:[s?.textContent??""]}),RG(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:n})},[a.length,i,o,t])},eY=e=>{Em(e),AG(e)&&ig(e.currentTarget)},tY=e=>{MG(e.evt)&&(Em(e.evt),QG(e))},nY=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!MG(t))return;Em(t);const i=((e,t)=>[e.pageRowIdx+WG(t),e.pageColIdx])(r,n),a=UG(o,n),{nextCell:s,nextCellCoord:l}=QG({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:n,selectionDispatch:r,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&n.isSelectable?r({type:KH.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):RG(o,a,i)})({...e,nextCell:s})},rY=e=>{const{evt:t}=e;IG(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Em(e);const a=Math.ceil(t/n)-1;e.key===Xm.Right&&r<a?(o(),i(r+1)):e.key===Xm.Left&&r>0&&(o(),i(r-1))})(e):t.key===Xm.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Em(e),t.blur?.(!0))})(e):kG(t.key)&&Em(t)},oY=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(GH.Disabled))return void Em(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case Xm.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Em(e),t.isSelectable&&n&&r({type:KH.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case Xm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Em(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case Xm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Em(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case Xm.C:eY(t);break;case Xm.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Em(e),Cm(e.currentTarget,t,e.shiftKey))})(r);break;default:nY(r)}},iY=e=>{const t=Qg(GB),n=eb(KB),r=eb(YB),o=Qg(UH),i=M();CK({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);r(e-o),n(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),O(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},aY=Mu("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),sY=Mu(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),lY=Mu(kh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),uY=()=>Yt.jsxs(Yt.Fragment,{children:[Yt.jsx(aY,{className:XH.First,"data-testid":XH.First,"aria-live":"polite","aria-atomic":"true"}),Yt.jsx(aY,{className:XH.Second,"data-testid":XH.Second,"aria-live":"polite","aria-atomic":"true"})]}),cY=e=>{const t=M(new Map),n=M(null);O(()=>{n.current=e(t.current),t.current.forEach((e,t)=>{n.current?.observe(t)});const r=t.current,o=n.current;return()=>{o.disconnect(),r.clear()}},[e,n,t]);const r=L((e,r)=>{t.current.set(e,r),n.current?.observe(e)},[t,n]),o=L(e=>{t.current.delete(e),n.current?.unobserve(e)},[n,t]);return k(()=>({addTask:r,removeTask:o}),[r,o])},dY=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),pY=()=>cY(dY),fY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(Mb),r=Qg(Ub),o=eb(NG);O(()=>{const i=()=>{o({type:KH.Reset})},a=()=>{o({type:KH.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():r.enabled&&r.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}},[n,r,o,e,t])},hY=e=>{e.stopPropagation()},mY=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:hY,color:bm.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),gY=({href:e,text:t,interactions:n,color:r})=>Yt.jsx($p,{...mY({href:e,text:t,interactions:n,color:r}),children:t}),bY=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),vY=window.cancelIdleCallback??(e=>{clearTimeout(e)}),yY="qDimensionInfo/0",xY="qMeasureInfo/0",SY="x",wY="y",CY=e=>({key:"bars",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e}}}}),EY=e=>({key:"p",type:"point",data:{extract:{field:yY,props:{y:{field:xY}}}},settings:{x:{scale:SY},y:{scale:wY},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),RY=({qNum:e})=>void 0===e?0:Math.sign(e),AY=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Sm(e,t?.negative,n),a=Sm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:yY,props:{start:0,end:{field:xY,value:RY}}}},settings:{major:{scale:SY},minor:{scale:wY},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?r:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},IY=(e,{type:t,showDots:n,colors:r,colorMin:o,colorMax:i})=>{const a=((e,t,n,r)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Sm(e,t?.main,o),l=Sm(e,t?.max,s),u=Sm(e,t?.min,s),c=Sm(e,t?.first,s),d=Sm(e,t?.last,s);return e=>{const t=wY in e.datum?wY:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[CY(a)];case"dots":return[EY(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:yY,props:{v:{field:xY}}}},settings:{coordinates:{major:{scale:SY},minor:{scale:wY,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Sm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,EY(a)]:[t]}case"posNeg":return[AY(e,r)];default:return[]}},kY=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"}),PY=(e,t,n,r)=>({y:{data:{field:xY},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:yY}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),MY=K();MY.use(G),MY.renderer.prio(["canvas"]);const DY={resolve:()=>{},promise:{}},TY=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?It():DY);return{addChartPromiseToQueue:L(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:L(()=>{if(null===t.current||null!==e.current)return;u();n.current=bY(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=r;return MY.chart({element:e,data:{type:"q",key:"qHyperCube",data:kY(s)},settings:{scales:PY(a,l,u,i),components:IY(t,r),strategy:n?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:r,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,u,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&vY(n.current),n.current=null,l()},[n,l])}},OY=e=>{const t=M(null),n=M(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(vY(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=bY(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},qY=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=TY({element:s,chart:l,requestId:u,theme:n,isSnapshot:r,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:n,renderChartWithRequestIdleCallback:r,chart:o})=>{const i=L(e=>{e.isIntersecting?r():n()},[r,n]);O(()=>{if(!e.current||!t)return()=>{};const r=e.current;return t.addTask(r,i),()=>{t.removeTask(r),n(),o.current?.destroy(),o.current=null}},[o,e,t,n,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{O(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=OY(t);O(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},LY=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=qY({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return Yt.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},NY=e=>{let t="center",n="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?n="left":"flex-end"===e?.horizontal&&(n="right"),`${n} ${t}`},jY=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},_Y=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=Qg(Fb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Yt.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:n,objectFit:jY(s),objectPosition:NY(l),overflow:"hidden"}});return r?Yt.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?n:"100%",overflow:"hidden",display:"flex",justifyContent:u?OB(o,e):void 0},children:c}):c},zY=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&EB[t];return o&&Yt.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:Yt.jsx(o,{style:{height:e}})})},FY=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=Qg(_W),o=Qg(Fb),i=Qg(nv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=RB(e,t,o,i),d=(e=>parseInt(e||kB,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Yt.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&zY({size:d,iconKey:f,color:p}),Yt.jsx(fK,{isNumeric:!0,children:a}),"right"===h&&zY({size:d,iconKey:f,color:p})]}):zY({size:d,iconKey:f,color:p})},$Y=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,HY=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=Qg(_W),u=Qg($W),c=Qg(rb),d=Qg(yb),p=Qg(nv),f=Qg(Fb),h=Qg(Tb),m=Qg(Pb);if(t.representation.type===u$.Image&&!t.representation.url?.trim())return null;if(t.representation.type===u$.Image)return Yt.jsx(_Y,{representation:t.representation,textStyle:n,maxImageHeight:$Y(l,u,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==u$.Link||m||t.isNull||(g=Yt.jsx(gY,{href:t.representation.url,text:t.representation.text,interactions:h,color:n.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==u$.Indicator||Number.isNaN(b)?t.representation.type===u$.MiniChart&&t.representation.miniChart&&!t.isNull?Yt.jsx(LY,{height:$Y(l,u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:c}):Yt.jsx(fK,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):Yt.jsx(FY,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},BY=()=>Yt.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:Yt.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),VY=Mu("div")({"& path":{stroke:"none !important"}}),WY=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==GH.Selected||n?e:Yt.jsxs(dK,{children:[e,Yt.jsx(VY,{children:Yt.jsx(BY,{})})]}),UY=e=>{const t=function(){const e=$j(),t=Cj(()=>null==e?void 0:e.dragOperation.source,[e]),n=Cj(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return n.value}}}();return t.source&&t.source.id!==e?.5:1},GY=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:KH.SelectMultiEnd})};n({type:KH.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:KH.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:KH.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),KY=e=>{const t=Qg(kW),n=Qg(wW),r=Qg(ZK),o=Qg(Qb),i=Qg(Fb),a=eb(KK),s=eb(NG),l=Qg(Ub),u=Qg(Lb),c=Qg(Mb),d=d=>{oY({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===Xm.Shift&&t({type:KH.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;eK([s,a],t,n,r)})(e,o,a,l,n)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=GY(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},YY=e=>{O(()=>()=>{jG.remove(e)},[e])},XY=(e,t,n,r)=>{if(!n.isNull)return e;const o=r?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=r?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=r?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},JY=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},ZY=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return JY(t,e,r?"even":"odd")}return e},QY=(e,t)=>{const n=Qg(_W),r=Qg(jG(e)),o=Qg(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");YY(e);let a=t.isDim?n.dimension.values:n.measure.values;a=ZY(a,n,e),a=i?n.subTotalRow:a,a=XY(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:aV(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===GH.Selected?{...e,...n}:t===GH.Disabled?{...e,background:`${AB}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},eX=Mu(Lh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),tX=Mu(nm,{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}}})),nX=Mu(Fh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...DB,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),rX=Mu(Fh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...DB,...e,fontWeight:PB,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?n:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),oX=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=Qg(Fb),a=Qg(Tb),{onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d}=KY(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=QY(e,t),m=UY(t.id);return Yt.jsx(nX,{cellStyle:{...p,opacity:m},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Ym}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:u,onMouseUp:c,onMouseOver:d,children:Yt.jsx(WY,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:Yt.jsx(HY,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:jB(i,e.align)})})})},iX=$g(0),aX=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=Qg(_W),i=Qg(qb),a=Qg(iX),s=UY(e.id);return Yt.jsx(rX,{totalsStyle:{...o.totalRow,...FG(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ym}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:Yt.jsx(fK,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},sX=()=>{const e=Qg(wW),t=Qg(CW),n=Qg(RW),r=Qg(Qb),o=Qg(Ob),i=Qg(Fb),a=eb(KK),s=Qg(Pb),l=Qg(Ub);return Yt.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,u)=>{const c=[e.atTop?1:n.length+1,u];return Yt.jsx(aX,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case Xm.C:eY(n);break;case Xm.Space:n.preventDefault();break;default:tY(e)}else Em(n)})({evt:e,rootElement:r,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{eK(c,r,a,l)}},t.id)})})};var lX=z(sX);const uX=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=Qg(RW),r=Qg(wW),o=Qg(CW),i=Qg(_W),a=Qg(HW),s=Qg(BW),l=Qg(yb),u=!!nV(l)?.content?.hoverEffect;fY({updateShouldRefocus:e,tableWrapperRef:t});const c=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return cY(t)})(t),d=pY();return Yt.jsxs(eX,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?Yt.jsx(lX,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return Yt.jsx(tX,{hoverColors:i.grid.hoverColors,hover:u,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:n?s:a,children:o.map((t,n)=>{const{id:r}=t,o=e[n];return Yt.jsx(oX,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:c,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?Yt.jsx(lX,{}):void 0]})};var cX=z(uX);const dX=(e,t)=>!!e?.skipHeader||!!t.hideHeader,pX=$g(e=>{const t=e(yb),n=e(Gb);if(n)return(e,{isDim:r,colIdx:o})=>{const i=r?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[r?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};n.applyPatches([l],!0)}}),fX=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=Qg(pX),s=Qg(Fb),l=Qg(Ob),u=Qg(rv),[c,d]=tb(KW);if(!l)return null;return Yt.jsx(rU,{columnWidth:c.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{YG(e);const t=e.closest(".sn-table-cell");JG(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},hX=e=>e.target?.getAttribute("class")?.includes(Jm),mX=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=Qg($G),i=Qg(GB);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||hX(t)||i||r(!0)},toggleSortOrder:n=>{e&&!hX(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var gX=class extends UT{constructor(e,t){super(e,t),this.boundingRectangle=Yk(null),this.destroy=iP(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=aO(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},a=new ResizeObserver(o);return a.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,n){const r=I_({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}(new RM(l,u,s,a),n,r);return c}};gX.configure=cD(gX);const bX=({invert:e})=>({dragOperation:t,droppable:n})=>{if(!n.shape)return null;const{shape:r}=t;if(!r)return null;const o=function(e){return e.sortable?.index}(n);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=r.current;return"left"===a&&l.left+.3*l.width<=n.shape.center.x||"right"===a&&l.right-.3*l.width>=n.shape.center.x?{id:n.id,value:1/EM.distance(n.shape.center,s),type:xT.Collision,priority:yT.Normal}:null},vX=[gX.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],yX=(e,t)=>{const n=Qg(Fb),r=!Qg(jb);return Wz({id:e.id,disabled:r,index:t,type:"item",accept:"item",group:"column",modifiers:vX,data:e,plugins:e=>[...e,mN.configure({feedback:"clone"})],collisionDetector:bX({invert:"rtl"===n})})},xX=({column:e,columnIndex:t,columnsLength:n})=>{const r=Qg(_W),o=Qg(Qb),i=Qg(Fb),a=Qg(Tb),s=Qg(CW),l=Qg(wW),u=Qg(KW)[t],c=eb(KK),d=Qg(YK(t)),p=Qg(jb),f=Qg(Ub),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=mX({isInteractionEnabled:p,column:e}),v=eb(GB),{ref:y,isDragging:x}=yX(e,t),S=UY(e.id),w=Qg(Ib),C=w?hK:qK,E=e.isActivelySorted?YH[e.sortDirection]:void 0,R=h?Km:void 0,A=h?"true":void 0,I=t===n-1,k=[0,e.pageColIdx],P={width:u,zIndex:s.length-t},M=d&&0===t&&!f.enabled&&p?0:-1;return Yt.jsxs(rK,{"data-dragging":x,ref:y,headerStyle:{...r.header,...FG(r,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground:e.headerColor?.background??r.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,color:e.headerColor?.color??r.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ym}`,tabIndex:M,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case Xm.C:eY(n);break;case Xm.Enter:case Xm.Space:r?.(n);break;default:tY(e)}else Em(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&eK(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[Yt.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:u}),Yt.jsx(fX,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},SX=()=>{const e=Qg(CW),t=Qg(_W),n=Qg(yb),r=Qg(Hb),o=eb(iX),i=Qg(KW),a=M(null),s=dX(r,n);return O(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),Yt.jsx(Xh,{style:{visibility:s?"collapse":void 0},children:Yt.jsx(sK,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>Yt.jsx(xX,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var wX=z(SX);var CX=z(()=>{const e=Qg(ZK),[t,n]=tb(fW),{page:r,rowsPerPage:o}=t,i=Qg($b),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:u,rows:c,columns:d}=Qg(SW),p=Qg(_W),f=Qg(XV),h=Qg(yb),m=Qg(nv),g=Qg(Zb),b=Qg(Qb),v=Qg(Hb),y=Qg(Fb),x=Qg(Tb),S=Qg(rv),w=Qg(_G),C=eb(NG),E=Qg(Pb),R=Qg(Ub),A=M(!1),I=M(null),k=M(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(c.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,D=_b(h,v),T=D?f.scrollLeft??0:0,q=D?f.rowPartialHeight??0:0,N=L(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=L(r=>{n({...t,page:r}),e({keys:[["SNTable.Pagination.PageStatusReport",(r+1).toString(),l.toString()]],politeness:"assertive"})},[t,n,l,e]),_=L(r=>{n({...t,page:0,rowsPerPage:r}),e({keys:[["SNTable.Pagination.RowsPerPageChange",r.toString()]],politeness:"assertive"})},[e,t,n]);return(e=>{const t=Qg(Fb),n=Qg(XV);O(()=>{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,{scrollLeft:o}=n;let i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&e.preventDefault()})(e,"rtl"===t,r)},i=e=>{n.scrollLeft=e.currentTarget?.scrollLeft||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}},[e,t,n])})(I),GK(k,A),(()=>{const e=Qg(Qb),t=Qg(Ub),n=Qg(KK);$m(()=>{const r=GG(e,n);t.active?JG(r):(r?.blur(),XG(e))},[t.active,e])})(),QK(A,r),O(()=>{const e=I.current;e&&(e.scrollLeft=T,e.scrollTop=q)},[t,s,T,q]),UK(()=>{C({type:KH.UpdatePageRows,payload:{pageRows:c}})},[c]),XK(),iY(I),Yt.jsxs(WK,{children:[Yt.jsxs(uK,{ref:k,dir:y,onKeyDown:e=>{rY({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[Yt.jsx(uY,{}),Yt.jsxs(sY,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!u,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[Yt.jsxs(lY,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[Yt.jsx(wX,{}),Yt.jsx(cX,{updateShouldRefocus:N,tableWrapperRef:k})]}),Yt.jsx(zG,{})]}),Yt.jsx(CG,{footerContainer:i,pageInfo:t,paginationNeeded:u,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),Yt.jsx(_K,{isPagination:!0})]})});const EX=$g(0),RX=$g(e=>{const t=e(xb);return Math.min(sV,t)}),AX=$g(e=>{const t=e(xb);return t===sV?0:Math.floor(t/sV)}),IX=$g(e=>{const t=e(EX),n=e(AX);return Math.min(t,n)}),kX=$g(e=>({page:e(IX),rowsPerPage:e(RX),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(AX);t(EX,Math.max(0,Math.min(n,r)))}),PX=$g(null),MX=$g(null),DX=$g(e=>{const t=e(kX),n=e(xb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),TX=$g(null),OX=$g(null),qX=$g(e=>e(wW).atTop?2:1),LX=$g(e=>e(wW).atTop?1:e(qX)+e(DX)),NX=$g(e=>UG(Boolean(e(Pb)),e(wW))),jX=$g(e=>({firstBodyRowIdx:e(qX),totalsRowIdx:e(LX),allowedRows:e(NX)})),_X=$g(e=>({rootElement:e(Qb),totalsPosition:e(wW),rowCount:e(DX),colCount:e(EW),columnWidths:e(KW)})),zX=$g(e=>({scrollToCell:e(TX),scrollableContainerElement:e(OX)})),FX=$g(e=>({keyboard:e(Ub),isInSelectionMode:e(Pb),selectionsAPI:e(Mb),isSelectionsEnabled:e(Lb)})),$X=$g(e=>({direction:e(Fb),isInteractionEnabled:e(jb),paginationNeeded:e(kW),announce:e(ZK),shouldRefocusRef:e(PX)})),HX=10,BX=e=>e.atTop?2:1,VX=(e,[t,n],r,o)=>{const i=BX(r);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${n}"]`);if(r.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${n}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${n}"]`):e.querySelector(`.sn-table-totals-row [data-col="${n}"]`)},WX=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[u,c]=n,d=u-BX(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,c),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top>=r.top&&n.bottom<=r.bottom&&n.left>=r.left&&n.right<=r.right})(VX(t,n,r,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},UX=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],GX=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],KX=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,u=a.top,c=r-1-a.bottom,d=o-1;switch(e.key){case Xm.Down:case Xm.Up:t=((e,t,n,r)=>e===Xm.Down&&t<r?t+1:e===Xm.Up&&t>n?t-1:t)(e.key,t,u,c);break;case Xm.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?GX(e,t,n,0,o,i):UX(e,t,0,r,o,i))(n,t,u,c,0,d,i));break;case Xm.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?UX(e,t,0,r,o,i):GX(e,t,n,0,o,i))(n,t,u,c,0,d,i));break;case Xm.Home:l?t=Math.max(u,t-HX):(AG(e)&&(t=u),n=0);break;case Xm.End:l?t=Math.min(c,t+HX):(AG(e)&&(t=c),n=d);break;case Xm.PageDown:t=Math.min(c,t+HX);break;case Xm.PageUp:if(l)t=Math.max(u,t-HX);else{const e=s?BX(s):1,n=t-e;t=n>0&&n<=HX?e:Math.max(u,t-HX)}}return[t,n]},YX=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},XX=[Xm.Home,Xm.End,Xm.PageUp,Xm.PageDown],JX=()=>{const e=M(!1),t=M(0),n=M(0),r=M(null),o=M(null),i=M(null),a=M(0),s=eb(KK),l=eb(NG),u=Qg(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:c,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=Qg(_X),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=Qg(jX),{scrollToCell:v,scrollableContainerElement:y}=Qg(zX),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=Qg(FX),{direction:E,announce:R,isInteractionEnabled:A,paginationNeeded:I,shouldRefocusRef:P}=Qg($X),D=k(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let n=0;n<e.length;n++)t[n+1]=t[n]+(e[n]??0);return t})(h),[h]);O(()=>()=>{t.current+=1,n.current+=1,a.current+=1,r.current?.(),r.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const T=L((e,t,n,r)=>{const o=t=>{if(r&&!r())return void n?.(!1);const i=VX(c,e,d,p);if(i)return document.activeElement!==i&&HG(i),document.activeElement===i?void n?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void n?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):n?.(!1)};requestAnimationFrame(()=>{o(t)})},[c,d,p]),q=L((e,t)=>{const r=a.current+1;a.current=r;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==r)return;if(n.current!==t)return;if(c instanceof HTMLElement&&!c.isConnected)return;if(Date.now()>s||i>=5)return;const u=document.activeElement;u&&u!==document.body&&u!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=WX(v,c,e,d,p,y,10,()=>a.current===r&&n.current===t,()=>{T(e,300,()=>{P&&(P.current=!1)},()=>a.current===r&&n.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[T,c,p,v,y,P,d]),N=L(()=>(P&&(P.current=!0),t.current+=1,t.current),[P]),j=L(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=L((e,n)=>{const r=o=>{t.current===e&&(i.current?.(),i.current=WX(v,c,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=VX(c,n,d,p);i&&document.activeElement!==i&&HG(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[c,d,p,v,P,y]),z=L((e,t)=>{if(!MG(e))return;Em(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>BX(t)+e+(t.atBottom?1:0))(p,d),l=KX(e,t,i,f,E,g,d);YX(c),s(l);const[,u]=l,[,h]=t;return u!==h&&((e,t,n)=>{if(!e)return;const r=t[n]??0,o=t[n+1]??r,{scrollLeft:i,clientWidth:a}=e;r<i?e.scrollLeft=r:o>i+a&&(e.scrollLeft=o-a)})(y,D,u),P&&(P.current=!0),r.current=WX(v,c,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>XX.includes(e))(e.key)&&q(l,o)},()=>n.current===o)}),l},[c,d,p,f,E,v,s,g,y,P,T,j,D,q]),F=L(e=>{e.key===Xm.Esc?x.enabled&&!S&&(Em(e),x.blur?.(!0)):kG(e.key)&&Em(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case Xm.C:Em(e),A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget);break;case Xm.Enter:case Xm.Space:if(!A){Em(e);break}n?.(e);break;default:z(e,[0,t])}},[z,A]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case Xm.Space:if(Em(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:KH.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case Xm.Enter:if(Em(t),e.current=!1,S){N(),s(JH),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),n.current+=1;const t=n.current;T(JH,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case Xm.Esc:if(e.current=!1,S){Em(t);const e=N();w?.cancel(),_(e,a)}break;case Xm.C:Em(t),A&&(t.ctrlKey||t.metaKey)&&ig(t.currentTarget);break;case Xm.Tab:{const e=t.shiftKey||!I;x.enabled&&S&&e&&(Em(t),Cm(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===Xm.Left||t.key===Xm.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Em(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:KH.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,I,A,N,_,s,v,y,T,P]),B=L(t=>{t.key===Xm.Space&&(e.current=!1),t.key===Xm.Shift&&l({type:KH.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Em(e);else{if(e.key!==Xm.Space)return e.key===Xm.C?(Em(e),void(A&&(e.ctrlKey||e.metaKey)&&ig(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,A]),W=L(e=>{j(),n.current+=1;const t=n.current;YX(c),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&q(e,t)},()=>n.current===t)},[c,s,x,T,j,q]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{u&&W([0,e])},[W,u]),focusBodyCellOnClick:L((e,t)=>{u&&W([e+m,t])},[W,m,u]),focusTotalsCellOnClick:L(e=>{u&&W([b,e])},[W,b,u])}};var ZX=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function QX(e,t){return e===t||!(!ZX(e)||!ZX(t))}function eJ(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!QX(e[n],t[n]))return!1;return!0}function tJ(e,t){var n;void 0===t&&(t=eJ);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var nJ="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function rJ(e){cancelAnimationFrame(e.id)}function oJ(e,t){var n=nJ();var r={id:requestAnimationFrame(function o(){nJ()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var iJ=-1;function aJ(e){if(void 0===e&&(e=!1),-1===iJ||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),iJ=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return iJ}var sJ=null;function lJ(e){if(void 0===e&&(e=!1),null===sJ||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?sJ="positive-descending":(t.scrollLeft=1,sJ=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),sJ}return sJ}var uJ=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function cJ(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Ju(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ju(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=tJ(function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h: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=tJ(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,s=t.scrollHeight,l=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(lJ()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return dJ(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=aJ();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=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,x):m,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(lJ()){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&&rJ(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?uJ:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(r>0&&g)for(var P=A;P<=I;P++)for(var M=w;M<=E;M++)k.push(C(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:k,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.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,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,s=a.isScrolling,l=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),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var dJ=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},pJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},fJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},hJ=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 s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},mJ=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?gJ(e,t,n,i,0,r):bJ(e,t,n,Math.max(0,i),r)},gJ=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=hJ(e,t,a,n).offset;if(s===i)return a;s<i?o=a+1:s>i&&(r=a-1)}return o>0?o-1:0},bJ=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&hJ(e,t,r,n).offset<o;)r+=a,a*=2;return gJ(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},vJ=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=hJ(e,t,n,i),u="column"===e?fJ(t,i):pJ(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=c+s?"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}},yJ=cJ({getColumnOffset:function(e,t,n){return hJ("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return mJ("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=hJ("column",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:pJ,getEstimatedTotalWidth:fJ,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return vJ("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return vJ("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return hJ("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return mJ("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=hJ("row",e,t,r),s=n+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=hJ("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}}),xJ=function(e,t){return e};function SJ(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=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=l(r.props,Ju(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ju(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=tJ(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=tJ(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,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(u&&s,u&&l,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"===l,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=tJ(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(lJ()){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&&rJ(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=oJ(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}$u(t,e),t.getDerivedStateFromProps=function(e,t){return wJ(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 s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?aJ():0:l.scrollHeight>l.clientHeight?aJ():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},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(lJ()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&rJ(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?xJ:d,f=e.layout,h=e.outerElementType,m=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,w=this._getRangeToRender(),E=w[0],R=w[1],A=[];if(u>0)for(var I=E;I<=R;I++)A.push(C(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"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,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,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}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var wJ=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},CJ=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=r(l);o[l]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},EJ=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=CJ(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},RJ=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&CJ(e,n,t).offset<r;)n+=i,i*=2;return EJ(e,t,Math.min(n,o-1),Math.floor(n/2),r)},AJ=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 s=r[i];a=s.offset+s.size}return a+(n-i-1)*o},IJ=SJ({getItemOffset:function(e,t,n){return CJ(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:AJ,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=CJ(e,t,o),p=AJ(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h: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?EJ(e,t,o,0,n):RJ(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,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=CJ(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=CJ(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 kJ(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 PJ=["style"],MJ=["style"];function DJ(e,t){var n=e.style,r=Ln(e,PJ),o=t.style,i=Ln(t,MJ);return!kJ(n,o)&&!kJ(r,i)}const TJ=$g(0),OJ=$g(0),qJ=$g(0),LJ=$g(e=>e(TJ)+e(OJ)),NJ=$g(e=>{const t=e(Zb),n=e(kW),r=t.height-(n?41:0);return{width:t.width,height:r}}),jJ=$g(e=>{const t=e(NJ),n=e(KB),r=e(YB);return{width:t.width-r,height:t.height-n}}),_J=$g(e=>{const t=e(jJ),n=e(LJ),r=e(qJ);return Math.min(t.height-n,r)}),zJ=$g(-1),FJ=hk(e=>$g(t=>t(zJ)===e)),$J=({style:e})=>Yt.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var HJ=w.memo($J,DJ);const BJ=$g(e=>{const t=e(jJ),n=e(HW),r=e(LJ),o=e(qJ)+r,i=e(DX)*n+r;return o<2*t.height?o:i}),VJ=$g(e=>e(BJ)<=e(NJ).height),WJ=()=>{},UJ=e=>{e.preventDefault()};const GJ=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u,onKeyDown:c,onKeyUp:d,onCellClick:p}=r,f=Qg(FJ(t)),h=eb(zJ),m=Qg(_W),g=Qg(Fb),b=Qg(qb),v=Qg(jb),y=Qg(_G),x=Qg(gb),S=Qg(VJ),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,n=Qg(Lb),r=eb(NG),o=Qg(jG(e));if(YY(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=GY(UJ,e,r,WJ);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,n,r)=>{const o=M(null),i=n&&(!n.isNumeric||n.isDual),a=n?.isTotalRow??!1,s=L(n=>{const o=n.contentBoxSize.at(0)?.blockSize;o&&i&&r(o,e,t,a)},[a,t,r,e,i]);return CK({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=UY(i[e].id);if("object"==typeof w){const r=((e,t,n,r,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=ZY(o,i,e);l=s?i.subTotalRow:l,l=XY(l,i,e,t.isDim);const u=e.isNull||s&&t.isDim?l:aV(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==GH.Selected||s?r!==GH.Disabled||s?n?{...u,...i.grid.hoverColors}:u:{...u,color:n?i.grid.hoverColors?.color:u.color,background:`${AB}, ${n?i.grid.hoverColors?.background:u.background}`}:{...u,...i.selectedColors}})(w,i[e],a&&f,A,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},M=c?n=>{c(n,t,e,w)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${A} ${Ym}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:_B(g,w.isLastColumn,y),borderLeftWidth:zB(g,w.isLastColumn,y),justifyContent:qB(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:P},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:M,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:Yt.jsx(WY,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:Yt.jsx(HY,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return Yt.jsx(HJ,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var KJ=z(GJ,DJ);const YJ=ZR($g(async e=>{const t=e(yb),n=e(Gb),r=e(kX).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(sV,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),XJ=$g(e=>{const t=e(DX),n=e(jJ),r=e(HW);return Math.min(t,Math.ceil(n.height/r))}),JJ=$g(e=>{const t=e(KW),n=e(jJ);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),ZJ=e=>{const t=M(e);return t.current=e,t},QJ=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,eZ=e=>-1===e.qElemNumber||!!e.qIsTotalCell,tZ=(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(t?.rowIdx!==o)return!0}return!1},nZ=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},rZ=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,u)=>{const{qSize:c}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(eZ);return t.forEach((e,t)=>{const n=t+r.qLeft;if(f.at(n))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[n],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&uW(e,m),A=E||R?lW(m,e,a,C):e.qText,I=E?eB(A):QH(e),k=QH(e)&&!eB(e.qText??"");f[n]={id:QF(),...e,align:iW(I,b,u),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===c.qcy-1,isLastColumn:n===c.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&uW(e,m),representation:YV({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:u,enabledFeatures:{[u$.Image]:!0,[u$.Indicator]:!0,[u$.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,u,e.qArea,c,r,o,i,a,s);n[p]=d})})},oZ=({gridState:e,setEstimatedCellHeight:t})=>{const n=Qg(yb),r=Qg(nv),o=Qg(Gb),i=Qg(mb),a=Qg(Fb),s=Qg(kX),l=Qg(YJ),u=Qg(CW),c=Qg(DX),d=Qg(XJ),p=Qg(JJ),f=M([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,c):(e=>Array(e).fill(void 0))(c);return rZ(e,s,o,u,n,i,t,a),f.current=o,o},[c,s,u,n,i,t,a]),[m,g]=P(()=>h(l??[]));$m(()=>{g(h(l??[]))},[l,a,c]);const b=((e,t)=>{const n=Qg(bb),r=M(new Set),o=M(new Set),i=M(new Set),a=ZJ(e),s=ZJ(t),l=k(()=>({enqueue:e=>{const t=QJ(e);i.current.has(t)||(r.current.add(e),i.current.add(t),1===r.current.size&&setTimeout(async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),o.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 a.current(t);o.current.has(e)&&s.current(n)}catch(t){e.forEach(e=>{i.current.delete(QJ(e))}),n.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{r.current.clear(),o.current.clear(),i.current.clear()}}),[n,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=L((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(nZ(f.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};b.enqueue(e)}},[b]),y=L((e,t,n,r)=>{for(let o=t;o<t+r;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(tZ(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return O(()=>{if(void 0===l)return;const{qcx:t,qcy:r}=n.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,u=t-i,c=s.rowsPerPage-o,f=Math.min(100,u,t,p+5),h=Math.min(100,c,r,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,n,d,p,s,b,y,e,r]),{rowsInPage:m,loadRows:y,loadColumns:v}},iZ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},aZ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,sZ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=Qg(_W),i=Qg(KW),{estimateLineCount:a}=Lm(o.dimension.values),s=XB(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===u$.Image||e.isNumeric&&!e.isDual)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*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},lZ=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=Qg(XV);j(()=>{const i=e?r:((e,t)=>{const n=0===t?0:e/t;return Math.ceil(n)})(n.sumHeight,n.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,n,r,o])},uZ=({isSnapshot:e,gridRef:t})=>{const n=Qg(_W),r=Qg(DX),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=Qg($W),s=Qg(HW),l=Qg(BW),u=!!n.contentStaticLineCount,c=Math.max(8e6/r,s,l)-9,d=c+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(c/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:u});(({gridRef:e,setState:t})=>{const n=Qg(yb),r=Qg(kX),o=Qg(KW),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),$m(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=Qg(HW),o=Qg(BW);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const u=l?o:r,c=Math.max(u,i+9),d=Math.min(t,c),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!aZ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:iZ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,n.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,r,o,n])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>L((o,i,a,s)=>{e||t||1===n||r(o,i,a,s)},[e,t,n,r]))({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),g=sZ({isSnapshot:e,isStaticNbrOfLines:u,lineClamp:p,setCellHeight:h}),b=L(e=>u?f??s:o.rowHeights.get(e)??s,[u,s,o.rowHeights,f]);return lZ({isStaticNbrOfLines:u,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},cZ=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);CK({ref:e,callback:n})};let dZ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const pZ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=Qg(XV),o=Qg(yb),i=Qg(kX),a=Qg(DX);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},n,r)=>{let o,i;return o=r>t?dZ.Down:r<t?dZ.Up:dZ.None,i=n>e?dZ.Right:n<e?dZ.Left:dZ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,u);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=u,n.current.overscanRowStopIndex=c,u>a)return;const b=s,v=u+i.page*i.rowsPerPage,y=l-s+1,x=c-u+1;if(r.visibleLeft=d,r.visibleWidth=p-d+1,r.visibleTop=f+i.page*i.rowsPerPage,r.visibleHeight=h-f+1,r.page=i.page,r.rowsPerPage=i.rowsPerPage,m===dZ.Down){const t=x+25;e(b,v,y,u+t>a?a-u:t)}else if(m===dZ.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===dZ.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===dZ.Left){const e=Math.max(0,b-5),n=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,n,x)}},[n,a,i.page,i.rowsPerPage,r,e,o.qHyperCube.qSize.qcx,t])};const fZ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},hZ=(e,t)=>{if(!e||!t)return;const n=e.scrollHeight-e.clientHeight,r=Math.round(n*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==r&&(e.scrollTop=r)},mZ={overflow:"hidden",willChange:"auto"},gZ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=JX(),i=Qg(CW),a=Qg(jJ),s=eb(qJ),l=Qg(_J),u=Qg(XV),c=Qg(yb),d=Qg(Fb),p=Qg(KW),f=Qg(DX),h=Qg(OX),m=eb(TX),g=M(null),b=M(null),v=M(null),y=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=M(0),S=!!nV(c)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=uZ({isSnapshot:!!c.snapshotData,gridRef:g}),{rowsInPage:A,loadRows:I,loadColumns:P}=oZ({gridState:y,setEstimatedCellHeight:C}),D=pZ({loadRows:I,loadColumns:P,gridState:y}),T=pY(),q=k(()=>({rowsInPage:A,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[A,i,S,R,w,T,n,r,o]);return j(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=eb(NG),{shouldRefocusRef:n}=Qg($X),r=Qg(Qb),o=Qg(MX);O(()=>{t({type:KH.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);fY({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(A),H(t,()=>({interpolatedScrollTo:(e,t)=>{const n=(v.current?.clientHeight??l)-l,r=Math.round(n*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:r,scrollLeft:t})}}),[v,l,f]),O(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),hZ(h,b.current)}),()=>{m(null)}),[h,m]),cZ(v,s),Yt.jsx(yJ,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:mZ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:u.estimatedRowHeight,width:a.width,itemData:q,onItemsRendered:D,itemKey:fZ,className:"sn-table-body",direction:d,children:KJ})});var bZ=z(gZ);const vZ=({children:e})=>{const t=Qg(JW),n=Qg(BJ);return Yt.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},yZ=(e,t)=>{const n=M(null),r=Qg(KW);j(()=>{n.current&&t(n.current.getBoundingClientRect().height+9,e)},[t,n,e,r.length]);const o=L(n=>{const r=n.contentBoxSize.at(0)?.blockSize;r&&t(r+9,e)},[e,t]);return CK({ref:n,callback:o}),n},xZ=Mu("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:n,applicableStyle:r,color:o})=>({...r,background:n,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),SZ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(Fb),c=Qg(Tb),d=Qg(_G),p=eb(GB),f=Qg(wW),h=Qg(jb),m=Qg(KW)[e],g=Qg(Ub),b=Qg(YK(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=mX({isInteractionEnabled:h,column:v}),C=Qg(Ib),E=yZ(e,i),R=r.length-1===e,A=C?hK:qK,{ref:I,isDragging:k}=yX(v,e),P=UY(v.id),M=b&&!g.enabled&&h?0:-1,D=a?t=>{a(t,e,S)}:void 0;return Yt.jsxs(xZ,{"data-dragging":k,ref:I,className:`sn-table-cell ${Ym}`,title:c.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...FG(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:_B(u,R,d),borderLeftWidth:zB(u,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:c,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:M,onKeyDown:D,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[Yt.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),Yt.jsx(fX,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},wZ=e=>{const[t,n]=P(new Map);$m(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>aZ(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>iZ(t),[t]),setMeasuredCellHeight:r}},CZ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},EZ=e=>{const t=Qg(nv),n=Qg(yb),r=Qg(kX),o=Qg(KW);$m(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},RZ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},AZ=F((e,t)=>{const{columResizeHandler:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(TJ),a=w.useRef(null),s=M(null),l=Qg(zW),u=Qg(yb),c=Qg(Hb),d=Qg(Fb),p=Qg(KW),{rowHeight:f,setMeasuredCellHeight:h}=wZ(r),m=dX(c,u),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...RZ,...m?{display:"none"}:void 0},itemCount:r.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>r[e].id,itemData:{columns:r,columResizeHandler:n,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:SZ})});var IZ=z(AZ);const kZ=F((e,t)=>{const{children:n,onScroll:r}=e,o=Qg(Fb),i=Qg(Nb),{width:a,height:s}=Qg(NJ),l=eb(OX),u=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return Yt.jsx("div",{"data-testid":"scrollable-container",ref:u,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),PZ=({children:e})=>{const t=Qg(Fb),n=Qg(jJ);return Yt.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:n.width,height:n.height},children:e})},MZ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=Qg(_W),u=Qg(yb),c=Qg(Fb),d=Qg(qb),p=Qg(jb),f=Qg(_G),h=Qg(VJ),m=yZ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=u.qHyperCube.qSize.qcx-1===e,x=UY(r[e].id),S=a?t=>{a(t,e)}:void 0;return Yt.jsx("div",{className:`sn-table-cell ${Ym}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...FG(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:_B(c,y,f),borderLeftWidth:zB(c,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:Yt.jsx(fK,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},DZ=F((e,t)=>{const{totals:n}=e,r=Qg(CW),o=Qg(jJ),i=eb(OJ),a=M(null),s=M(null),l=Qg(FW),u=Qg(Fb),c=Qg(yb),d=Qg(KW),{rowHeight:p,setMeasuredCellHeight:f}=wZ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=JX();return CZ(t,a),EZ(a),cZ(s,i),Yt.jsx(IJ,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:RZ,itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:r,totals:n,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:u,children:MZ})});var TZ=z(DZ);const OZ=(e,t,n)=>{const r=Qg(Fb),o=Qg(XV);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((e,t)=>{const{scrollWidth:n,clientWidth:r,scrollLeft:o}=e,i=n-r;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,r),c=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=c,o.scrollLeft=u,n.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)},[o,n,e,t,r])};var qZ=z(()=>{const e=Qg(wW),t=M(null),n=M(null),r=M(null),o=M(null),i=OZ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);XK(),(e=>{const t=Qg(EW),n=Qg(kX),r=Qg(nv),o=Qg(DX);O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),O(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),iY(t);const s=Yt.jsx(TZ,{ref:r,totals:e},"totals");return Yt.jsxs(WK,{children:[Yt.jsx(kZ,{ref:t,onScroll:i,children:Yt.jsxs(vZ,{children:[Yt.jsxs(PZ,{children:[Yt.jsx(IZ,{ref:n,columResizeHandler:a}),e.atTop?s:null,Yt.jsx(bZ,{ref:o}),e.atBottom?s:null]}),Yt.jsx(zG,{})]})}),Yt.jsx(_K,{isPagination:!1})]})});const LZ=()=>{const e=Qg(yb),t=Qg(Zb),n=Qg(Tb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=Qg(SW),s=Qg(nv),l=Qg(rv),u=Qg(Ub),[c,d]=tb(kX),p=M(null),f=M(!1),h=eb(PX),m=eb(MX);O(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=JX();return(()=>{const e=Qg(Qb),{keyboard:t}=Qg(FX),n=Qg(KK),r=Qg(wW),o=Qg(DX),{scrollToCell:i}=Qg(zX),{shouldRefocusRef:a}=Qg($X),s=M({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=M(null),u=M(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),O(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:c}=s.current;if("function"==typeof c.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==u.current&&(cancelAnimationFrame(u.current),u.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=VX(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&HG(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=VX(c,n,r,o);e&&HG(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),u.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=VX(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),YX(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==u.current&&(cancelAnimationFrame(u.current),u.current=null)}}},[t.active,e,a])})(),GK(p,f),Yt.jsxs(uK,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[Yt.jsx(uY,{}),Yt.jsx(qZ,{}),Yt.jsx(CG,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:u,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var NZ=z(LZ);const jZ=e=>{const t=e.get(Gb),n=e.get(Vb),r=e.get(vb),o=e.get(Fb);a(()=>{r&&t&&(n?function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(yi,{stylisPlugins:"rtl"===t?[BH]:void 0,children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(CX,{})})})})}))}(e):function(e){const t=e.get(Fb),n=e.get(tv),r=QW(t);n.render(Yt.jsx(w.StrictMode,{children:Yt.jsx(Tu,{theme:r,children:Yt.jsx(Gg,{store:e,children:Yt.jsx(ZW,{children:Yt.jsx(NZ,{})})})})}))}(e))},[r,n,e,t,o])};function _Z(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=n.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.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})(l,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})(l,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)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const zZ=(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]}},FZ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const $Z=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||cW.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},HZ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=tW(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=_Z(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:$Z(a,o,e,t,r),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=n?.getBoundingClientRect(),o=n?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=zZ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(FZ(h,m,g)?d:d+1)+c;let v=p+c;const y=zZ(p,o),x=y?.getBoundingClientRect();return y&&x&&(FZ(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:$Z(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},BZ=({store:e})=>{const t=e.get(yb),n=e.get(Gb),r=e.get(Qb),o=e.get(Jb),i=e.get(Hb),a=e.get(Vb);c(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(XV),{rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=HZ(t,s,r,i,a);l.qHyperCube.qDataPages=await n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:u,scrollLeft:c,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),d(()=>({getViewState:()=>HZ(t,e.get(XV),r,i,a)}),[t,e,r,a])},VZ={version:JSON.stringify("6.57.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[],accessibleHeader:!1};var WZ=e=>({properties:{initial:VZ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Ev({...t,env:e}),exportProperties:vv,exploration:BF(e)});const UZ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),GZ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});