@nebula.js/sn-table 6.40.0 → 6.43.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,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-table v6.40.0
2
+ * @nebula.js/sn-table v6.43.0
3
3
  * Copyright (c) 2026 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,I,A,k,P,D,M,T,q,O,L,N,j,_,z,F,$,H,B,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,R=e.isValidElement,I=e.cloneElement,A=e.Children,k=e.useMemo,P=e.useState,D=e.useRef,M=e.createContext,T=e.useReducer,q=e.useEffect,O=e.useDebugValue,L=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,H=e.useImperativeHandle,B=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:qJ(e),ext:UF(e),component(){const t=p(),o=n(()=>eb(),[!1!==t.usePagination]);o.set(mb,e);const i=f();o.set(Zb,i),o.set(vb,t),o.set(pb,h()),o.set(Ub,m()),o.set(Mb,g()),o.set(nv,b()),o.set(Pb,v()),o.set(_b,r()),o.set(Wb,y()),o.set(Jb,x()),o.set(hb,S());const a=$m(t,i,OJ,LJ);o.set(tv,a),o.set(bb,Jm(a,t,e)),o.set(fb,$t()),GF(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${ag}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{gg(r)}})}),MJ({store:o}),RJ(o)}}});const J={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",be="bottom-left",ve="left",ye="top-left";ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de={},"equal-equal",[pe,ge]),"equal-higher",[ge,me]),"equal-lower",[pe,fe]),"equal-void",[pe,ge]),"higher-equal",[ve,be,pe,fe]),"higher-higher-acute",[ge,be,ve,fe]),"higher-higher-obtuse",[ge,pe]),"higher-lower-negative",[pe,fe,he]),"higher-lower-positive",[ge,be,ve]),"higher-void",[pe]),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de,"lower-equal",[pe]),"lower-higher-negative",[pe,ye]),"lower-higher-positive",[me]),"lower-lower-acute",[pe,ye,ve,fe,he]),"lower-lower-obtuse",[pe,ge]),"lower-void",[pe]),"void-equal",[pe]),"void-higher",[pe,ge]),"void-lower",[pe,ge,ve]),"void-void",[pe]),ue(de,"unclassified",[pe,ge,he,ve,fe,me,be,ye]);var xe,Se,we=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Ce=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ee(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ce:we}var Re=function(){if(Se)return xe;Se=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return xe=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},xe}();function Ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Pe=.7,De=1/Pe,Me="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Le=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Ne=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),je=new RegExp(`^rgba\\(${Me},${Me},${Me},${Te}\\)$`),_e=new RegExp(`^rgba\\(${qe},${qe},${qe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${qe},${qe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${qe},${qe},${Te}\\)$`),$e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function He(){return this.rgb().formatHex()}function Be(){return this.rgb().formatRgb()}function Ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Oe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?We(t):3===n?new Ye(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Le.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ye(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=je.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ze.exec(e))?tt(t[1],t[2]/100,t[3]/100,1):(t=Fe.exec(e))?tt(t[1],t[2]/100,t[3]/100,t[4]):$e.hasOwnProperty(e)?We($e[e]):"transparent"===e?new Ye(NaN,NaN,NaN,0):null}function We(e){return new Ye(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function Ge(e){return e instanceof ke||(e=Ve(e)),e?new Ye((e=e.rgb()).r,e.g,e.b,e.opacity):new Ye}function Ke(e,t,n,r){return 1===arguments.length?Ge(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xe(){return`#${et(this.r)}${et(this.g)}${et(this.b)}`}function Je(){const e=Ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===e?")":`, ${e})`}`}function Ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function et(e){return((e=Qe(e))<16?"0":"")+e.toString(16)}function tt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function nt(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=Ve(e)),!e)return new rt;if(e instanceof rt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new rt(a,s,l,e.opacity)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ot(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function at(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ie(ke,Ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:He,formatHex:He,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nt(this).formatHsl()},formatRgb:Be,toString:Be}),Ie(Ye,Ke,Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(Qe(this.r),Qe(this.g),Qe(this.b),Ze(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xe,formatHex:Xe,formatHex8:function(){return`#${et(this.r)}${et(this.g)}${et(this.b)}${et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Je,toString:Je})),Ie(rt,function(e,t,n,r){return 1===arguments.length?nt(e):new rt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ye(at(e>=240?e-240:e+120,o,r),at(e,o,r),at(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rt(ot(this.h),it(this.s),it(this.l),Ze(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ze(this.opacity);return`${1===e?"hsl(":"hsla("}${ot(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const st=Math.PI/180,lt=180/Math.PI,ct=.96422,ut=.82521,dt=4/29,pt=6/29,ft=3*pt*pt,ht=pt*pt*pt;function mt(e){if(e instanceof gt)return new gt(e.l,e.a,e.b,e.opacity);if(e instanceof St)return wt(e);e instanceof Ye||(e=Ge(e));var t,n,r=xt(e.r),o=xt(e.g),i=xt(e.b),a=bt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bt((.4360747*r+.3850649*o+.1430804*i)/ct),n=bt((.0139322*r+.0971045*o+.7141733*i)/ut)),new gt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bt(e){return e>ht?Math.pow(e,1/3):e/ft+dt}function vt(e){return e>pt?e*e*e:ft*(e-dt)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function St(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function wt(e){if(isNaN(e.h))return new gt(e.l,0,0,e.opacity);var t=e.h*st;return new gt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ie(gt,function(e,t,n,r){return 1===arguments.length?mt(e):new gt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new gt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ye(yt(3.1338561*(t=ct*vt(t))-1.6168667*(e=1*vt(e))-.4906146*(n=ut*vt(n))),yt(-.9787684*t+1.9161415*e+.033454*n),yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ie(St,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof St)return new St(e.h,e.c,e.l,e.opacity);if(e instanceof gt||(e=mt(e)),0===e.a&&0===e.b)return new St(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lt;return new St(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new St(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new St(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new St(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wt(this).rgb()}}));var Ct=e=>()=>e;function Et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ct(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Et:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ct(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ke(e)).r,(t=Ke(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Et(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Rt="center",It="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:It},{key:"LimitedData",alignment:It},{key:"NegativeOrZeroValues",alignment:It}].reduce(function(e,t){return e[t.key]=t,e},{});var At,kt=["__proto__","constructor"];function Pt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!kt.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Mt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ot)):void 0===t&&(t=qt);for(var n,r,o,i,a,s=new jt(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new jt(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Nt)}function qt(e){return e.children}function Ot(e){return Array.isArray(e)?e[1]:null}function Lt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Nt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function jt(e){this.data=e,this.depth=this.height=0,this.parent=null}jt.prototype=Tt.prototype={constructor:jt,count:function(){return this.eachAfter(Mt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Tt(this).eachBefore(Lt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},At=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],function(e,t){"use strict";var n,r,o,i,a,s,l,c,u,d,p,f,h,m,g,b,v,y,x,S,w,C,E,R,I,A,k,P,D,M,T,q,O,L,N,j,_,z,F,$,H,B,V,W,U,G,K;return{setters:[function(e){n=e.useMemo,r=e.useOptions,o=e.usePromise,i=e.useState,a=e.useEffect,s=e.useTheme,l=e.onContextMenu,c=e.HyperCubeHandler,u=e.onTakeSnapshot,d=e.useImperativeHandle,p=e.useStaleLayout,f=e.useElement,h=e.useApp,m=e.useModel,g=e.useInteractionState,b=e.useTranslator,v=e.useSelections,y=e.useKeyboard,x=e.useRect,S=e.useEmbed},function(e){w=e.default,C=e.createElement,E=e,R=e.isValidElement,I=e.cloneElement,A=e.Children,k=e.useMemo,P=e.useState,D=e.useRef,M=e.createContext,T=e.useReducer,q=e.useEffect,O=e.useDebugValue,L=e.useCallback,N=e.useContext,j=e.useLayoutEffect,_=e.useInsertionEffect,z=e.memo,F=e.forwardRef,$=e.startTransition,H=e.useImperativeHandle,B=e.PureComponent},function(e){V=e.default,W=e,U=e.flushSync},function(e){G=e.default},function(e){K=e.default}],execute:function(){function Y(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function X(e){if("object"==typeof e&&Y(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}e("default",function(e){return{qae:OJ(e),ext:GF(e),component(){const t=p(),o=n(()=>eb(),[!1!==t.usePagination]);o.set(mb,e);const i=f();o.set(Zb,i),o.set(vb,t),o.set(pb,h()),o.set(Ub,m()),o.set(Mb,g()),o.set(nv,b()),o.set(Pb,v()),o.set(_b,r()),o.set(Wb,y()),o.set(Jb,x()),o.set(hb,S());const a=$m(t,i,LJ,NJ);o.set(tv,a),o.set(bb,Jm(a,t,e)),o.set(fb,$t()),KF(o),l?.((e,t)=>{const n=t.target,r=n?.closest(`.${ag}`);r?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{gg(r)}})}),TJ({store:o}),IJ(o)}}});const J={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Z="qcm-color";function Q(...e){const t={type:Z,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Z)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Y(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(s[1],10),r=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,n=parseInt(s[2],10),r=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(s[1],16),r=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(s[1]+s[1],16),r=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-.5*l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let c=e/60;const u=l*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}const p=a-l;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in J}(e)){const t=J[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function ee(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,c=Math.max(i,a,s),u=Math.min(i,a,s),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:l}}function te(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=l;if(l===c)t=0,r=0;else{switch(n=l-c,t=0===n?0:n/u,l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function ne(e){if(Y(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?X(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function re(e,t){return Y(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:re(Q(e))}function oe(e){return Y(e)?1===e.a?ne(e):re(e):oe(Q(e))}const ie=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ae(e){return.2126*ie(e.r)+.7152*ie(e.g)+.0722*ie(e.b)}function se(...e){const t=Q(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=ee(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Q(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Q(...e);return t.invalid||ae(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=ne(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=re(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=oe(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=function(e){let t,n,r;if(Y(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?X(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Q(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),c=Math.min(i,a,s),u=(l+c)/2;if(l===c)t=0,r=0;else{switch(n=l-c,t=u>.5?n/(2-l-c):n/(l+c),l){case i:r=(a-s)/n+(a<s?6:0);break;case a:r=(s-i)/n+2;break;case s:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=ee(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=te(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=te(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>se(o(18*e)),getDarkenedColor:(e=1)=>se(o(18*-e))}}function le(e,t){if(!e||!t)return;const n=ae(e),r=ae(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const ce="#FFFFFF";function ue(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var de,pe="top",fe="top-right",he="right",me="bottom-right",ge="bottom",be="bottom-left",ve="left",ye="top-left";ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de={},"equal-equal",[pe,ge]),"equal-higher",[ge,me]),"equal-lower",[pe,fe]),"equal-void",[pe,ge]),"higher-equal",[ve,be,pe,fe]),"higher-higher-acute",[ge,be,ve,fe]),"higher-higher-obtuse",[ge,pe]),"higher-lower-negative",[pe,fe,he]),"higher-lower-positive",[ge,be,ve]),"higher-void",[pe]),ue(ue(ue(ue(ue(ue(ue(ue(ue(ue(de,"lower-equal",[pe]),"lower-higher-negative",[pe,ye]),"lower-higher-positive",[me]),"lower-lower-acute",[pe,ye,ve,fe,he]),"lower-lower-obtuse",[pe,ge]),"lower-void",[pe]),"void-equal",[pe]),"void-higher",[pe,ge]),"void-lower",[pe,ge,ve]),"void-void",[pe]),ue(de,"unclassified",[pe,ge,he,ve,fe,me,be,ye]);var xe,Se,we=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Ce=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function Ee(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ce:we}var Re=function(){if(Se)return xe;Se=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return xe=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},xe}();function Ie(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ae(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ke(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Re);var Pe=.7,De=1/Pe,Me="\\s*([+-]?\\d+)\\s*",Te="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",qe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Oe=/^#([0-9a-f]{3,8})$/,Le=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Ne=new RegExp(`^rgb\\(${qe},${qe},${qe}\\)$`),je=new RegExp(`^rgba\\(${Me},${Me},${Me},${Te}\\)$`),_e=new RegExp(`^rgba\\(${qe},${qe},${qe},${Te}\\)$`),ze=new RegExp(`^hsl\\(${Te},${qe},${qe}\\)$`),Fe=new RegExp(`^hsla\\(${Te},${qe},${qe},${Te}\\)$`),$e={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function He(){return this.rgb().formatHex()}function Be(){return this.rgb().formatRgb()}function Ve(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Oe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?We(t):3===n?new Ye(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ue(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ue(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Le.exec(e))?new Ye(t[1],t[2],t[3],1):(t=Ne.exec(e))?new Ye(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=je.exec(e))?Ue(t[1],t[2],t[3],t[4]):(t=_e.exec(e))?Ue(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ze.exec(e))?tt(t[1],t[2]/100,t[3]/100,1):(t=Fe.exec(e))?tt(t[1],t[2]/100,t[3]/100,t[4]):$e.hasOwnProperty(e)?We($e[e]):"transparent"===e?new Ye(NaN,NaN,NaN,0):null}function We(e){return new Ye(e>>16&255,e>>8&255,255&e,1)}function Ue(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ye(e,t,n,r)}function Ge(e){return e instanceof ke||(e=Ve(e)),e?new Ye((e=e.rgb()).r,e.g,e.b,e.opacity):new Ye}function Ke(e,t,n,r){return 1===arguments.length?Ge(e):new Ye(e,t,n,null==r?1:r)}function Ye(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xe(){return`#${et(this.r)}${et(this.g)}${et(this.b)}`}function Je(){const e=Ze(this.opacity);return`${1===e?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${1===e?")":`, ${e})`}`}function Ze(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function et(e){return((e=Qe(e))<16?"0":"")+e.toString(16)}function tt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function nt(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof ke||(e=Ve(e)),!e)return new rt;if(e instanceof rt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new rt(a,s,l,e.opacity)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ot(e){return(e=(e||0)%360)<0?e+360:e}function it(e){return Math.max(0,Math.min(1,e||0))}function at(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ie(ke,Ve,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:He,formatHex:He,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nt(this).formatHsl()},formatRgb:Be,toString:Be}),Ie(Ye,Ke,Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new Ye(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ye(Qe(this.r),Qe(this.g),Qe(this.b),Ze(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xe,formatHex:Xe,formatHex8:function(){return`#${et(this.r)}${et(this.g)}${et(this.b)}${et(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Je,toString:Je})),Ie(rt,function(e,t,n,r){return 1===arguments.length?nt(e):new rt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return e=null==e?De:Math.pow(De,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Pe:Math.pow(Pe,e),new rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ye(at(e>=240?e-240:e+120,o,r),at(e,o,r),at(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rt(ot(this.h),it(this.s),it(this.l),Ze(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ze(this.opacity);return`${1===e?"hsl(":"hsla("}${ot(this.h)}, ${100*it(this.s)}%, ${100*it(this.l)}%${1===e?")":`, ${e})`}`}}));const st=Math.PI/180,lt=180/Math.PI,ct=.96422,ut=.82521,dt=4/29,pt=6/29,ft=3*pt*pt,ht=pt*pt*pt;function mt(e){if(e instanceof gt)return new gt(e.l,e.a,e.b,e.opacity);if(e instanceof St)return wt(e);e instanceof Ye||(e=Ge(e));var t,n,r=xt(e.r),o=xt(e.g),i=xt(e.b),a=bt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=bt((.4360747*r+.3850649*o+.1430804*i)/ct),n=bt((.0139322*r+.0971045*o+.7141733*i)/ut)),new gt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bt(e){return e>ht?Math.pow(e,1/3):e/ft+dt}function vt(e){return e>pt?e*e*e:ft*(e-dt)}function yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function St(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function wt(e){if(isNaN(e.h))return new gt(e.l,0,0,e.opacity);var t=e.h*st;return new gt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ie(gt,function(e,t,n,r){return 1===arguments.length?mt(e):new gt(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new gt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ye(yt(3.1338561*(t=ct*vt(t))-1.6168667*(e=1*vt(e))-.4906146*(n=ut*vt(n))),yt(-.9787684*t+1.9161415*e+.033454*n),yt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ie(St,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof St)return new St(e.h,e.c,e.l,e.opacity);if(e instanceof gt||(e=mt(e)),0===e.a&&0===e.b)return new St(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lt;return new St(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new St(e,t,n,null==r?1:r)},Ae(ke,{brighter(e){return new St(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new St(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return wt(this).rgb()}}));var Ct=e=>()=>e;function Et(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ct(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Et:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ct(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Ke(e)).r,(t=Ke(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Et(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Rt="center",It="bottom";[{key:"NoDataExist",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Rt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Rt},{key:"DataRangeIncludingZero",alignment:It},{key:"LimitedData",alignment:It},{key:"NegativeOrZeroValues",alignment:It}].reduce(function(e,t){return e[t.key]=t,e},{});var At,kt=["__proto__","constructor"];function Pt(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!kt.some(function(e){return r.includes(e)})){for(var i=e,a=0;a<r.length-1;++a){var s=r[a];void 0===i[s]&&(i[s]=Number.isNaN(+r[a+1])?{}:[]),i=i[s]}void 0!==n?i[o]=n:delete i[o]}}}function Dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=function(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(r){var o=t(r);return n.has(o)?n.get(o):n.set(o,e(r))}}function Mt(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Tt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ot)):void 0===t&&(t=qt);for(var n,r,o,i,a,s=new jt(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new jt(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Nt)}function qt(e){return e.children}function Ot(e){return Array.isArray(e)?e[1]:null}function Lt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Nt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function jt(e){this.data=e,this.depth=this.height=0,this.parent=null}jt.prototype=Tt.prototype={constructor:jt,count:function(){return this.eachAfter(Mt)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Tt(this).eachBefore(Lt)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},At=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
9
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,s,l,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},At({exports:{}});const _t=()=>{let e;return{promise:new Promise(t=>{e=t}),resolve:e}};function zt(e,t){return n(()=>e,t)}const Ft={},$t=()=>{const{viewState:e}=r(),t=(e=>{const t=n(()=>({current:Ft}),[]);return t.current=t.current===Ft?e:t.current,t})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=n(()=>_t(),[]),l=zt(e=>{t.current.add(e)},[t]),c=zt(function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(r,i)},n)}}(async()=>{await Promise.all(t.current),t.current.clear(),s()},1e3),[s,t]);return o(async()=>{await a},[a]),n(()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:c,waitForPromise:l}),[c,i,e,l])},Ht={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},Bt={WHITE:"#FFFFFF",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Ht,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},Vt=12,Wt=14,Ut=16,Gt=24,Kt=3,Yt=300,Xt=400,Jt=600,Zt=700,Qt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tn(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var nn,rn,on={exports:{}},an={};var sn=(rn||(rn=1,on.exports=function(){if(nn)return an;nn=1;var e=w,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},c=null,u=null;for(s in void 0!==a&&(c=""+a),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return an.Fragment=n,an.jsx=a,an.jsxs=a,an}()),on.exports);const ln={black:"#000",white:"#fff"},cn="#e57373",un="#ef5350",dn="#f44336",pn="#d32f2f",fn="#c62828",hn="#f3e5f5",mn="#ce93d8",gn="#ba68c8",bn="#ab47bc",vn="#9c27b0",yn="#7b1fa2",xn="#e3f2fd",Sn="#90caf9",wn="#42a5f5",Cn="#1976d2",En="#1565c0",Rn="#4fc3f7",In="#29b6f6",An="#03a9f4",kn="#0288d1",Pn="#01579b",Dn="#81c784",Mn="#66bb6a",Tn="#4caf50",qn="#388e3c",On="#2e7d32",Ln="#1b5e20",Nn="#ffb74d",jn="#ffa726",_n="#ff9800",zn="#f57c00",Fn="#e65100",$n={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Hn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Bn=Object.freeze({__proto__:null,default:Hn}),Vn="$$material";function Wn(){return Wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wn.apply(null,arguments)}function Un(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var Gn="-ms-",Kn="-moz-",Yn="-webkit-",Xn="comm",Jn="rule",Zn="decl",Qn="@keyframes",er=Math.abs,tr=String.fromCharCode,nr=Object.assign;function rr(e){return e.trim()}function or(e,t){return(e=t.exec(e))?e[0]:e}function ir(e,t,n){return e.replace(t,n)}function ar(e,t,n){return e.indexOf(t,n)}function sr(e,t){return 0|e.charCodeAt(t)}function lr(e,t,n){return e.slice(t,n)}function cr(e){return e.length}function ur(e){return e.length}function dr(e,t){return t.push(e),e}function pr(e,t){return e.filter(function(e){return!or(e,t)})}var fr,hr,mr=1,gr=1,br=0,vr=0,yr=0,xr="";function Sr(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:mr,column:gr,length:a,return:"",siblings:s}}function wr(e,t){return nr(Sr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Cr(e){for(;e.root;)e=wr(e.root,{children:[e]});dr(e,e.siblings)}function Er(){return yr=vr>0?sr(xr,--vr):0,gr--,10===yr&&(gr=1,mr--),yr}function Rr(){return yr=vr<br?sr(xr,vr++):0,gr++,10===yr&&(gr=1,mr++),yr}function Ir(){return sr(xr,vr)}function Ar(){return vr}function kr(e,t){return lr(xr,e,t)}function Pr(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 Dr(e){return rr(kr(vr-1,qr(91===e?e+2:40===e?e+1:e)))}function Mr(e){for(;(yr=Ir())&&yr<33;)Rr();return Pr(e)>2||Pr(yr)>3?"":" "}function Tr(e,t){for(;--t&&Rr()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return kr(e,Ar()+(t<6&&32==Ir()&&32==Rr()))}function qr(e){for(;Rr();)switch(yr){case e:return vr;case 34:case 39:34!==e&&39!==e&&qr(yr);break;case 40:41===e&&qr(e);break;case 92:Rr()}return vr}function Or(e,t){for(;Rr()&&e+yr!==57&&(e+yr!==84||47!==Ir()););return"/*"+kr(t,vr-1)+"*"+tr(47===e?e:Rr())}function Lr(e){for(;!Pr(Ir());)Rr();return kr(e,vr)}function Nr(e){return function(e){return xr="",e}(jr("",null,null,null,[""],e=function(e){return mr=gr=1,br=cr(xr=e),vr=0,[]}(e),0,[0],e))}function jr(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,w=r,C=y;g;)switch(h=v,v=Rr()){case 40:if(108!=h&&58==sr(C,d-1)){-1!=ar(C+=ir(Dr(v),"&","&\f"),"&\f",er(c?s[c-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Dr(v);break;case 9:case 10:case 13:case 32:C+=Mr(h);break;case 92:C+=Tr(Ar()-1,7);continue;case 47:switch(Ir()){case 42:case 47:dr(zr(Or(Rr(),Ar()),t,n,l),l),5!=Pr(h||1)&&5!=Pr(Ir()||1)||!cr(C)||" "===lr(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[c++]=cr(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(C=ir(C,/\f/g,"")),f>0&&(cr(C)-d||0===m&&47===h)&&dr(f>32?Fr(C+";",r,n,d-1,l):Fr(ir(C," ","")+";",r,n,d-2,l),l);break;case 59:C+=";";default:if(dr(w=_r(C,t,n,c,u,o,s,y,x=[],S=[],d,i),i),123===v)if(0===u)jr(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===sr(C,3))break;case 108:if(97===sr(C,2))break;default:u=0;case 100:case 109:case 115:}u?jr(e,w,w,r&&dr(_r(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,r?x:S):jr(C,w,w,w,[""],S,0,s,S)}}c=u=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+cr(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Er())continue;switch(C+=tr(v),v*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(cr(C)-1)*b,b=1;break;case 64:45===Ir()&&(C+=Dr(Rr())),p=Ir(),u=d=cr(y=C+=Lr(Ar())),v++;break;case 45:45===h&&2==cr(C)&&(m=0)}}return i}function _r(e,t,n,r,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=ur(f),m=0,g=0,b=0;m<r;++m)for(var v=0,y=lr(e,p+1,p=er(g=a[m])),x=e;v<h;++v)(x=rr(g>0?f[v]+" "+y:ir(y,/&\f/g,f[v])))&&(l[b++]=x);return Sr(e,t,n,0===o?Jn:s,l,c,u,d)}function zr(e,t,n,r){return Sr(e,t,n,Xn,tr(yr),lr(e,2,-2),0,r)}function Fr(e,t,n,r,o){return Sr(e,t,n,Zn,lr(e,0,r),lr(e,r+1,-1),r,o)}function $r(e,t,n){switch(function(e,t){return 45^sr(e,0)?(((t<<2^sr(e,0))<<2^sr(e,1))<<2^sr(e,2))<<2^sr(e,3):0}(e,t)){case 5103:return Yn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Yn+e+e;case 4855:return Yn+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Kn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Yn+e+Kn+e+Gn+e+e;case 5936:switch(sr(e,t+11)){case 114:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Yn+e+Gn+ir(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Yn+e+Gn+e+e;case 6165:return Yn+e+Gn+"flex-"+e+e;case 5187:return Yn+e+ir(e,/(\w+).+(:[^]+)/,Yn+"box-$1$2"+Gn+"flex-$1$2")+e;case 5443:return Yn+e+Gn+"flex-item-"+ir(e,/flex-|-self/g,"")+(or(e,/flex-|baseline/)?"":Gn+"grid-row-"+ir(e,/flex-|-self/g,""))+e;case 4675:return Yn+e+Gn+"flex-line-pack"+ir(e,/align-content|flex-|-self/g,"")+e;case 5548:return Yn+e+Gn+ir(e,"shrink","negative")+e;case 5292:return Yn+e+Gn+ir(e,"basis","preferred-size")+e;case 6060:return Yn+"box-"+ir(e,"-grow","")+Yn+e+Gn+ir(e,"grow","positive")+e;case 4554:return Yn+ir(e,/([^-])(transform)/g,"$1"+Yn+"$2")+e;case 6187:return ir(ir(ir(e,/(zoom-|grab)/,Yn+"$1"),/(image-set)/,Yn+"$1"),e,"")+e;case 5495:case 3959:return ir(e,/(image-set\([^]*)/,Yn+"$1$`$1");case 4968:return ir(ir(e,/(.+:)(flex-)?(.*)/,Yn+"box-pack:$3"+Gn+"flex-pack:$3"),/space-between/,"justify")+Yn+e+e;case 4200:if(!or(e,/flex-|baseline/))return Gn+"grid-column-align"+lr(e,t)+e;break;case 2592:case 3360:return Gn+ir(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,or(e.props,/grid-\w+-end/)})?~ar(e+(n=n[t].value),"span",0)?e:Gn+ir(e,"-start","")+e+Gn+"grid-row-span:"+(~ar(n,"span",0)?or(n,/\d+/):+or(n,/\d+/)-+or(e,/\d+/))+";":Gn+ir(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return or(e.props,/grid-\w+-start/)})?e:Gn+ir(ir(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ir(e,/(.+)-inline(.+)/,Yn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(cr(e)-1-t>6)switch(sr(e,t+1)){case 109:if(45!==sr(e,t+4))break;case 102:return ir(e,/(.+:)(.+)-([^]+)/,"$1"+Yn+"$2-$3$1"+Kn+(108==sr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ar(e,"stretch",0)?$r(ir(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ir(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,s){return Gn+n+":"+r+s+(o?Gn+n+"-span:"+(i?a:+a-+r)+s:"")+e});case 4949:if(121===sr(e,t+6))return ir(e,":",":"+Yn)+e;break;case 6444:switch(sr(e,45===sr(e,14)?18:11)){case 120:return ir(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yn+(45===sr(e,14)?"inline-":"")+"box$3$1"+Yn+"$2$3$1"+Gn+"$2box$3")+e;case 100:return ir(e,":",":"+Gn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ir(e,"scroll-","scroll-snap-")+e}return e}function Hr(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Br(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Zn:return e.return=e.return||e.value;case Xn:return"";case Qn:return e.return=e.value+"{"+Hr(e.children,r)+"}";case Jn:if(!cr(e.value=e.props.join(",")))return""}return cr(n=Hr(e.children,r))?e.return=e.value+"{"+n+"}":""}function Vr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Zn:return void(e.return=$r(e.value,e.length,n));case Qn:return Hr([wr(e,{value:ir(e.value,"@","@"+Yn)})],r);case Jn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(or(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Cr(wr(e,{props:[ir(t,/:(read-\w+)/,":-moz-$1")]})),Cr(wr(e,{props:[t]})),nr(e,{props:pr(n,r)});break;case"::placeholder":Cr(wr(e,{props:[ir(t,/:(plac\w+)/,":"+Yn+"input-$1")]})),Cr(wr(e,{props:[ir(t,/:(plac\w+)/,":-moz-$1")]})),Cr(wr(e,{props:[ir(t,/:(plac\w+)/,Gn+"input-$1")]})),Cr(wr(e,{props:[t]})),nr(e,{props:pr(n,r)})}return""})}}const Wr="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ur="active",Gr="data-styled-version",Kr="6.4.2",Yr="/*!sc*/\n",Xr="undefined"!=typeof window&&"undefined"!=typeof document;function Jr(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const Zr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(hr=null!==(fr=Jr("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==fr?fr:Jr("SC_DISABLE_SPEEDY"))&&void 0!==hr?hr:"undefined"!=typeof process&&void 0!==process.env&&!1),Qr="sc-keyframes-",eo={};function to(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}let no=new Map,ro=new Map,oo=1;const io=e=>{if(no.has(e))return no.get(e);for(;ro.has(oo);)oo++;const t=oo++;return no.set(e,t),ro.set(t,e),t},ao=e=>ro.get(e),so=(e,t)=>{oo=t+1,no.set(e,t),ro.set(t,e)},lo=Object.freeze([]),co=Object.freeze({});function uo(e,t,n=co){return e.theme!==n.theme&&e.theme||t||n.theme}const po=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fo=/(^-|-$)/g;function ho(e){return e.replace(po,"-").replace(fo,"")}const mo=/(a)(d)/gi,go=e=>String.fromCharCode(e+(e>25?39:97));function bo(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=go(t%52)+n;return(go(t%52)+n).replace(mo,"$1-$2")}const vo=5381,yo=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},xo=e=>yo(vo,e);function So(e){return bo(xo(e)>>>0)}function wo(e){return"string"==typeof e&&!0}function Co(e){return wo(e)?`styled.${e}`:`Styled(${function(e){return e.displayName||e.name||"Component"}(e)})`}const Eo=Symbol.for("react.memo"),Ro=Symbol.for("react.forward_ref"),Io={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Ao={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ko={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Po={[Ro]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Eo]:ko};function Do(e){return("type"in(t=e)&&t.type.$$typeof)===Eo?ko:"$$typeof"in e?Po[e.$$typeof]:Io;var t}const Mo=Object.defineProperty,To=Object.getOwnPropertyNames,qo=Object.getOwnPropertySymbols,Oo=Object.getOwnPropertyDescriptor,Lo=Object.getPrototypeOf,No=Object.prototype;function jo(e,t,n){if("string"!=typeof t){const r=Lo(t);r&&r!==No&&jo(e,r,n);const o=To(t).concat(qo(t)),i=Do(e),a=Do(t);for(let r=0;r<o.length;++r){const s=o[r];if(!(s in Ao||n&&n[s]||a&&s in a||i&&s in i)){const n=Oo(t,s);try{Mo(e,s,n)}catch(e){}}}}return e}function _o(e){return"function"==typeof e}const zo=Symbol.for("react.forward_ref");function Fo(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===zo&&"styledComponentId"in e}function $o(e,t){return e&&t?e+" "+t:e||t||""}function Ho(e,t){return e.join("")}function Bo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vo(e,t,n=!1){if(!n&&!Bo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Vo(e[n],t[n]);else if(Bo(t))for(const n in t)e[n]=Vo(e[n],t[n]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}const Uo=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let r=n;for(;e>=r;)if(r<<=1,r<0)throw to(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let o=0,i=t.length;o<i;o++)this.tag.insertRule(n,t[o])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n;for(let e=r;e<o;e++)t+=this.tag.getRule(e)+Yr;return t}},Go=`style[${Wr}][${Gr}="${Kr}"]`,Ko=new RegExp(`^${Wr}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Yo=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Xo=e=>{if(!e)return document;if(Yo(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Yo(t))return t}return document},Jo=(e,t,n)=>{const r=n.split(",");let o;for(let n=0,i=r.length;n<i;n++)(o=r[n])&&e.registerName(t,o)},Zo=(e,t)=>{var n;const r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(Yr),o=[];for(let t=0,n=r.length;t<n;t++){const n=r[t].trim();if(!n)continue;const i=n.match(Ko);if(i){const t=0|parseInt(i[1],10),n=i[2];0!==t&&(so(n,t),Jo(e,n,i[3]),e.getTag().insertRules(t,o)),o.length=0}else o.push(n)}},Qo=e=>{const t=Xo(e.options.target).querySelectorAll(Go);for(let n=0,r=t.length;n<r;n++){const r=t[n];r&&r.getAttribute(Wr)!==Ur&&(Zo(e,r),r.parentNode&&r.parentNode.removeChild(r))}};let ei=!1;const ti=(e,t)=>{const n=document.head,r=e||n,o=document.createElement("style"),i=(e=>{const t=Array.from(e.querySelectorAll(`style[${Wr}]`));return t[t.length-1]})(r),a=void 0!==i?i.nextSibling:null;o.setAttribute(Wr,Ur),o.setAttribute(Gr,Kr);const s=t||function(){if(!1!==ei)return ei;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return ei=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return ei=t.getAttribute("content")||void 0}return ei="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}();return s&&o.setAttribute("nonce",s),r.insertBefore(o,a),o},ni=class{constructor(e,t){this.element=ti(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,r=n.length;t<r;t++){const r=n[t];if(r.ownerNode===e)return r}throw to(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},ri=class{constructor(e,t){this.element=ti(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}};let oi=Xr;const ii={isServer:!Xr,useCSSOMInjection:!Zr};class ai{static registerId(e){return io(e)}constructor(e=co,t={},n){this.options=Object.assign(Object.assign({},ii),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Xr&&oi&&(oi=!1,Qo(this)),Wo(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let r="";for(let o=0;o<n;o++){const n=ao(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const a=t.getGroup(o);if(0===a.length)continue;const s=Wr+".g"+o+'[id="'+n+'"]';let l="";for(const e of i)e.length>0&&(l+=e+",");r+=a+s+'{content:"'+l+'"}'+Yr}return r})(this))}rehydrate(){!this.server&&Xr&&Qo(this)}reconstructWithOptions(e,t=!0){const n=new ai(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&Xr&&e.target!==this.options.target&&Xo(this.options.target)!==Xo(e.target)&&Qo(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new ni(t,n):new ri(t,n))(this.options),new Uo(e)));var e}hasNameForId(e,t){var n,r;return null!==(r=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==r&&r}registerName(e,t){io(e),e.startsWith(Qr)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(io(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(io(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const si=new WeakSet,li={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ci(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in li||e.startsWith("--")?String(t).trim():t+"px"}const ui=47;function di(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t+=r>=65&&r<=90?"-"+String.fromCharCode(r+32):e[n]}return t.startsWith("ms-")?"-"+t:t}const pi=Symbol.for("sc-keyframes");function fi(e){return _o(e)&&!(e.prototype&&e.prototype.isReactComponent)}const hi=e=>null==e||!1===e||""===e,mi=Symbol.for("react.client.reference");function gi(e){return e.$$typeof===mi}function bi(e,t){for(const n in e){const r=e[n];e.hasOwnProperty(n)&&!hi(r)&&(Array.isArray(r)&&si.has(r)||_o(r)?t.push(di(n)+":",r,";"):Bo(r)?(t.push(n+" {"),bi(r,t),t.push("}")):t.push(di(n)+": "+ci(n,r)+";"))}}function vi(e,t,n,r,o=[]){if(hi(e))return o;const i=typeof e;if("string"===i)return o.push(e),o;if("function"===i){if(gi(e))return o;if(fi(e)&&t){return vi(e(t),t,n,r,o)}return o.push(e),o}if(Array.isArray(e)){for(let i=0;i<e.length;i++)vi(e[i],t,n,r,o);return o}return Fo(e)?(o.push(`.${e.styledComponentId}`),o):function(e){return"object"==typeof e&&null!==e&&pi in e}(e)?(n?(e.inject(n,r),o.push(e.getName(r))):o.push(e),o):gi(e)?o:Bo(e)?e.toString!==Object.prototype.toString?(o.push(e.toString()),o):(bi(e,o),o):(o.push(e.toString()),o)}const yi=xo(Kr);class xi{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=yo(yi,t),this.baseStyle=n,ai.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let o="";for(let r=0;r<this.rules.length;r++){const i=this.rules[r];if("string"==typeof i)o+=i;else if(i)if(fi(i)){const r=i(e);"string"==typeof r?o+=r:null!=r&&!1!==r&&(o+=Ho(vi(r,e,t,n)))}else o+=Ho(vi(i,e,t,n))}if(o){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+o:o;let i=this.dynamicNameCache.get(e);if(!i){if(i=bo(yo(yo(this.baseHash,n.hash),o)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,i)}if(!t.hasNameForId(this.componentId,i)){const e=n(o,"."+i,void 0,this.componentId);t.insertRules(this.componentId,i,e)}r=$o(r,i)}}return r}}const Si=/&/g;function wi(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function Ci(e){const t=e.length;let n="",r=0,o=0,i=0,a=!1,s=!1;for(let l=0;l<t;l++){const c=e.charCodeAt(l);if(0!==i||a||c!==ui||42!==e.charCodeAt(l+1))if(a)42===c&&e.charCodeAt(l+1)===ui&&(a=!1,l++);else if(34!==c&&39!==c||wi(e,l)){if(0===i)if(123===c)o++;else if(125===c){if(o--,o<0){s=!0;let n=l+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,o=0,l=n-1,r=n;continue}0===o&&(n+=e.substring(r,l+1),r=l+1)}else 59===c&&0===o&&(n+=e.substring(r,l+1),r=l+1)}else 0===i?i=c:i===c&&(i=0);else a=!0,l++}return s||0!==o||0!==i?(r<t&&0===o&&0===i&&(n+=e.substring(r)),n):e}function Ei(e,t){const n=t+" ",r=","+n;for(let o=0;o<e.length;o++){const i=e[o];if("rule"===i.type){i.value=(n+i.value).replaceAll(",",r);const e=i.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];i.props=t}Array.isArray(i.children)&&"@keyframes"!==i.type&&Ei(i.children,t)}return e}function Ri({options:e=co,plugins:t=lo}=co){let n,r,o;const i=(e,t,o)=>o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?`.${n}`:e,a=t.slice();a.push(e=>{e.type===Jn&&e.value.includes("&")&&(o||(o=new RegExp(`\\${r}\\b`,"g")),e.props[0]=e.props[0].replace(Si,r).replace(o,i))}),e.prefix&&a.push(Vr),a.push(Br);let s=[];const l=function(e){var t=ur(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}(a.concat((d=e=>s.push(e),function(e){e.root||(e=e.return)&&d(e)}))),c=(t,i="",a="",c="&")=>{n=c,r=i,o=void 0;const u=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return Ci(e);const r=e.length;let o="",i=0,a=0,s=0,l=0,c=0,u=!1;for(;a<r;){const t=e.charCodeAt(a);if(34!==t&&39!==t||wi(e,a))if(0===s)if(t===ui&&a+1<r&&42===e.charCodeAt(a+1)){for(a+=2;a+1<r&&(42!==e.charCodeAt(a)||e.charCodeAt(a+1)!==ui);)a++;a+=2}else if(40!==t)if(41!==t)if(l>0)a++;else if(42===t&&a+1<r&&e.charCodeAt(a+1)===ui)o+=e.substring(i,a),a+=2,i=a,u=!0;else if(t===ui&&a+1<r&&e.charCodeAt(a+1)===ui){for(o+=e.substring(i,a);a<r&&10!==e.charCodeAt(a);)a++;i=a,u=!0}else 123===t?c++:125===t&&c--,a++;else l>0&&l--,a++;else l++,a++;else a++;else 0===s?s=t:s===t&&(s=0),a++}return u?(i<r&&(o+=e.substring(i)),0===c?o:Ci(o)):0===c?e:Ci(e)}(t);let d=Nr(a||i?a+" "+i+" { "+u+" }":u);return e.namespace&&(d=Ei(d,e.namespace)),s=[],Hr(d,l),s},u=e;var d;let p=vo;for(let e=0;e<t.length;e++)t[e].name||to(15),p=yo(p,t[e].name);return(null==u?void 0:u.namespace)&&(p=yo(p,u.namespace)),(null==u?void 0:u.prefix)&&(p=yo(p,"p")),c.hash=p!==vo?p.toString():"",c}const Ii=new ai,Ai=Ri(),ki=w.createContext({shouldForwardProp:void 0,styleSheet:Ii,stylis:Ai,stylisPlugins:void 0});function Pi(){return w.useContext(ki)}function Di(e){var t;const n=Pi(),{styleSheet:r}=n,o=w.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,r]),i=w.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?n.stylis:Ri({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,n.stylis,n.stylisPlugins]),a="shouldForwardProp"in e?e.shouldForwardProp:n.shouldForwardProp,s=null!==(t=e.stylisPlugins)&&void 0!==t?t:n.stylisPlugins,l=w.useMemo(()=>({shouldForwardProp:a,styleSheet:o,stylis:i,stylisPlugins:s}),[a,o,i,s]);return w.createElement(ki.Provider,{value:l},e.children)}ki.Consumer;const Mi=w.createContext(void 0);Mi.Consumer;const Ti=Object.prototype.hasOwnProperty,qi={};function Oi(e,t){const n="string"!=typeof e?"sc":ho(e);qi[n]=(qi[n]||0)+1;const r=n+"-"+So(Kr+n+qi[n]);return t?t+"-"+r:r}function Li(e,t,n){const r=Fo(e),o=e,i=!wo(e),{attrs:a=lo,componentId:s=Oi(t.displayName,t.parentComponentId),displayName:l=Co(e)}=t,c=t.displayName&&t.componentId?ho(t.displayName)+"-"+t.componentId:t.componentId||s,u=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a;let{shouldForwardProp:d}=t;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(t.shouldForwardProp){const n=t.shouldForwardProp;d=(t,r)=>e(t,r)&&n(t,r)}else d=e}const p=new xi(n,c,r?o.componentStyle:void 0);function f(e,t){return function(e,t,n){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:a,styledComponentId:s,target:l}=e,c=w.useContext(Mi),u=Pi(),d=e.shouldForwardProp||u.shouldForwardProp,p=uo(t,c,i)||co;let f,h;{const e=w.useRef(null),n=e.current;if(null!==n&&n[1]===p&&n[2]===u.styleSheet&&n[3]===u.stylis&&n[7]===o&&function(e,t,n){const r=e,o=t;let i=0;for(const e in o)if(Ti.call(o,e)&&(i++,r[e]!==o[e]))return!1;return i===n}(n[0],t,n[4]))f=n[5],h=n[6];else{f=function(e,t,n){const r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),o=e.length>1;for(let n=0;n<e.length;n++){const i=e[n],a=_o(i)?i(o?Object.assign({},r):r):i;for(const e in a)"className"===e?r.className=$o(r.className,a[e]):"style"===e?r.style=Object.assign(Object.assign({},r.style),a[e]):e in t&&void 0===t[e]||(r[e]=a[e])}return"className"in t&&"string"==typeof t.className&&(r.className=$o(r.className,t.className)),r}(r,t,p),h=function(e,t,n,r){return e.generateAndInjectStyles(t,n,r)}(o,f,u.styleSheet,u.stylis);let n=0;for(const e in t)Ti.call(t,e)&&n++;e.current=[t,p,u.styleSheet,u.stylis,n,f,h,o]}}const m=f.as||l,g=function(e,t,n,r){const o={};for(const i in e)void 0===e[i]||"$"===i[0]||"as"===i||"theme"===i&&e.theme===n||("forwardedAs"===i?o.as=e.forwardedAs:r&&!r(i,t)||(o[i]=e[i]));return o}(f,m,p,d);let b=$o(a,s);return h&&(b+=" "+h),f.className&&(b+=" "+f.className),g[wo(m)&&m.includes("-")?"class":"className"]=b,n&&(g.ref=n),C(m,g)}(h,e,t)}f.displayName=l;let h=w.forwardRef(f);return h.attrs=u,h.componentStyle=p,h.displayName=l,h.shouldForwardProp=d,h.foldedComponentIds=r?$o(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=c,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Vo(e,n,!0);return e}({},o.defaultProps,e):e}}),Wo(h,()=>`.${h.styledComponentId}`),i&&jo(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}var Ni=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);function ji(e,t){const n=[e[0]];for(let r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}const _i=e=>(si.add(e),e);function zi(e,...t){if(_o(e)||Bo(e))return _i(vi(ji(lo,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?vi(n):_i(vi(ji(n,t)))}function Fi(e,t,n=co){if(!t)throw to(1,t);const r=(r,...o)=>e(t,n,zi(r,...o));return r.attrs=r=>Fi(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Fi(e,t,Object.assign(Object.assign({},n),r)),r}const $i=e=>Fi(Li,e),Hi=$i;Ni.forEach(e=>{Hi[e]=$i(e)});class Bi{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(_o(n)&&!Fo(n))return!1}return!0}(e),ai.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){const o=this.componentId;if(this.isStatic){if(n.hasNameForId(o,o+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{const i=this.computeRules(e,t,n,r);n.insertRules(o,i.name,i.rules)}return}const i=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&i){const t=i.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){const o=Ho(vi(this.rules,t,n,r)),i={name:this.componentId+e,rules:r(o,"")};return this.instanceRules.set(e,i),i}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}var Vi;class Wi{constructor(e,t){this[Vi]=!0,this.inject=(e,t=Ai)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const r=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,r)}},this.name=e,this.id=Qr+e,this.rules=t,io(this.id),Wo(this,()=>{throw to(12,String(this.name))})}getName(e=Ai){return e.hash?this.name+bo(+e.hash>>>0):this.name}}function Ui(e,...t){const n=Ho(zi(e,...t)),r=So(n);return new Wi(r,n)}Vi=pi;var Gi,Ki,Yi,Xi,Ji,Zi={exports:{}};function Qi(){if(Ki)return Gi;Ki=1;return Gi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function ea(){if(Xi)return Yi;Xi=1;var e=Qi();function t(){}function n(){}return n.resetWarningCache=t,Yi=function(){function r(t,n,r,o,i,a){if(a!==e){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function o(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}function ta(){return Ji||(Ji=1,Zi.exports=ea()()),Zi.exports}var na=en(ta());function ra(e){const{injectFirst:t,children:n}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return n}ra.propTypes={children:na.node,injectFirst:na.bool};const oa=function(e,...t){const n=zi(e,...t),r=`sc-global-${So(JSON.stringify(n))}`,o=new Bi(n,r),i=e=>{const t=Pi(),n=w.useContext(Mi);let i;{const e=w.useRef(null);null===e.current&&(e.current=t.styleSheet.allocateGSInstance(r)),i=e.current}t.styleSheet.server&&a(i,e,t.styleSheet,n,t.stylis);{const s=o.isStatic?[i,t.styleSheet,o]:[i,e,t.styleSheet,n,t.stylis,o],l=w.useRef(o);w.useLayoutEffect(()=>{t.styleSheet.server||(l.current!==o&&(t.styleSheet.clearRules(r),l.current=o),a(i,e,t.styleSheet,n,t.stylis))},s),w.useLayoutEffect(()=>()=>{t.styleSheet.server||o.removeStyles(i,t.styleSheet)},[i,t.styleSheet,o])}return t.styleSheet.server&&o.instanceRules.delete(i),null};function a(e,t,n,r,a){if(o.isStatic)o.renderStyles(e,eo,n,a);else{const s=Object.assign(Object.assign({},t),{theme:uo(t,r,i.defaultProps)});o.renderStyles(e,s,n,a)}}return w.memo(i)}(e=>{const{styles:t,defaultTheme:n={}}=e;return"function"==typeof t?t(null==(r=e.theme)||0===Object.keys(r).length?n:e.theme):t;var r});
10
10
  /**
@@ -99,7 +99,7 @@ function ia(e,t){let n;return n=t?Hi(e).withConfig({displayName:t.label,shouldFo
99
99
  *
100
100
  * This source code is licensed under the MIT license found in the
101
101
  * LICENSE file in the root directory of this source tree.
102
- */function xR(){if(gR)return GS;gR=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=function(t){return(0,e.createStyles)(t)};var e=yR;return GS}var SR,wR,CR={},ER={};function RR(){if(SR)return ER;SR=1;var e=Xl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=(0,e(BS()).default)();return ER.default=t,ER}function IR(){if(wR)return CR;wR=1;var e=Xl();Object.defineProperty(CR,"__esModule",{value:!0}),CR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return CR.default=o,CR}var AR,kR,PR={},DR={};function MR(){if(AR)return DR;AR=1;var e=Xl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(iy());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function TR(){if(kR)return PR;kR=1;var e=Xl();Object.defineProperty(PR,"__esModule",{value:!0}),PR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ac()),n=Kv,r=MR();return PR}var qR,OR={};function LR(){if(qR)return OR;qR=1;var e=Xl();Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var t=e(Ac()),n=yR,r=e(RR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return OR.default=o,OR}var NR,jR={};function _R(){if(NR)return jR;NR=1;var e=Xl();Object.defineProperty(jR,"__esModule",{value:!0}),jR.default=function(){return(0,t.useTheme)()||n.default};var t=yR;e(w);var n=e(RR());return jR}var zR,FR={};function $R(){if(zR)return FR;zR=1;var e=Xl();Object.defineProperty(FR,"__esModule",{value:!0}),FR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return FR.default=o,FR}var HR,BR,VR={};function WR(){if(HR)return VR;HR=1;var e=Xl();Object.defineProperty(VR,"__esModule",{value:!0}),VR.default=void 0;var t=yR,n=e(RR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return VR.default=r,VR}function UR(){return BR||(BR=1,function(e){var t=Xl(),n=(Rv||(Rv=1,function(e){var t=Pv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Av)),Av.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Yv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(BS()),a=t(US()),s=t(xR()),l=t(IR()),c=t(TR()),u=t(LR()),d=_S();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(_R()),f=t($R()),h=t(WR()),m=yR}(Iv)),Iv}var GR=UR();GR.alpha(Bt.GREYSCALE_0,.05),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const KR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),YR=new WeakMap,XR=()=>{};function JR(e,n=XR){return((e,t,n)=>{const r=KR(()=>new WeakMap,YR,t);return KR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Jg(0),a=Jg([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Jg(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c))throw r.get(c);return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Jg(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const ZR=new WeakMap;function QR(e,t){const n=nb(t),r=eI(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const eI=e=>{let t=ZR.get(e);return t||(t=new WeakSet,ZR.set(e,t)),t};function tI(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function nI(e){const t=Jg(()=>[]),n=Jg(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=Gg(e),o=r[1],i=r[3],a=Rg(r[6]),s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],p=r[16],f=r[17],h=r[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!yg(t)){if(!bg(i))throw new Error("no atom init");h(r,e,i,i.init)}return xg(t)}const a=u(r,e,i);try{return xg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!bg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(tI())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=rI.get(e);n||(n=new Set,rI.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},tI()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const rI=new WeakMap;const oI=e=>{const{items:t,handler:n,model:r,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{await(async(e,t,n)=>{try{await t.toggleAlternatives(e,n)}catch(t){console.error(`Failed to toggle ${e.map(e=>e.id).join(", ")} from/to alternative`,t)}})(t,n,e.currentColumnIds)})};function iI(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const aI=e=>7005!==e.qError?.qErrorCode,sI=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(aI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},lI=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},cI=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return lI(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),lI(e,i)},uI=Jg(),dI=Jg(),pI=Jg(),fI=Jg(e=>e(pI)?.translate??(e=>e)),hI=Jg(""),mI=Jg(e=>{const t=e(hI).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)}),gI=new WeakMap,bI={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},vI=JR(Jg(async e=>{const t=e(uI);if(t){if(gI.has(t))return gI.get(t);try{const e=await t.app.createSessionObject(bI);return gI.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),yI=Jg(null),xI=Jg(),SI=nI((e,t)=>{const n=e(uI),r=e(vI);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const i=await r.getLayout();t(xI,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(yI,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),wI=Jg(e=>e(xI)?.layout),CI=Jg(e=>e(xI)?.altLayout),EI=Jg(e=>e(xI)?.properties),RI=Jg(e=>void 0===e(wI)||void 0===e(EI)),II=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qDimensionInfo.filter(aI)??[]}),AI=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qMeasureInfo.filter(aI)??[]}),kI=Jg(e=>{const t=e(CI);return sI(t,!0)}),PI=Jg(e=>{const t=e(wI);return sI(t,!1)}),DI=Jg(e=>{const t=e(EI),n=e(wI);if(!t||!n)return[];const r=e(PI),o=e(kI),i=n.qHyperCube.qColumnOrder??[],a=e(yI);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),c=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),u=[...c,...o];return cI(u,c,s)}),MI=Jg(e=>{const t=e(DI),n=e(mI);return t.filter(n)}),TI=Jg(e=>e(MI).length),qI=Jg(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(MI);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),OI=iI(e=>Jg(t=>t(MI)[e]),(e,t)=>e===t),LI=Jg(e=>e(DI).map(e=>e.id)),NI=Jg(e=>e(MI).map(e=>e.id)),jI=Jg(e=>{const t=e(DI),n={};return t.forEach(e=>{n[e.id]=e.type}),n});class _I{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const zI=Jg(null),FI=nI((e,t)=>{const n=e(uI),r=e(dI),o=new _I({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(zI,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),$I=Jg(e=>{const t=[...e(II),...e(AI)].map(e=>e.cId);return new Set(t)}),HI=Jg(new Set),BI=Jg(new Set),VI=Jg(e=>{const t=e(HI),n=e(BI);return e($I).difference(n).union(t)}),WI=nI((e,t)=>{e($I),t(HI,new Set),t(BI,new Set)}),UI=Jg(e=>e(VI),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(VI).has(n.id),o=new Set(e(BI)),i=new Set(e(HI));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(BI,o),t(HI,i),oI({items:[n],handler:e(dI),model:e(uI),currentColumnIds:e(LI),handlerQueue:e(zI)})}),GI=({props:e,children:t})=>(QR([[uI,e.args.model],[pI,e.args.apis],[dI,e.args.handler]]),cb(SI),cb(FI),cb(WI),t);function KI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function YI(e){return"write"in e}const XI=new WeakMap,JI={},{read:ZI,write:QI}=Jg(null);function eA(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[oA(e,t,n),n],o.set(t,r)),r}const l=n??JI;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?eA(a,t,n):[t];u=[t.read===ZI?r:oA(e,t,o),o],c.set(t,u)}return u}function tA(e){for(const t of e[5])t()}function nA(e,t,n,r,o){if(n.read===ZI&&YI(n)&&YI(t)&&n.write!==QI&&e!==r){const{write:i}=n;return t.write=rA(e,n.write.bind(n),r,o),()=>{t.write=i}}}function rA(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=eA(e,t,n);return o(r)},function(t,...o){const[a]=eA(e,t,n),s=nA(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function oA(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==ZI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=eA(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),YI(i)&&YI(t)&&i.write!==QI&&(i.write=rA(e,t.write.bind(t),n)),i}function iA({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=XI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=[...Gg(t)],r=n[21],o=n[22],i=n[23],a={};let s,l;return n[21]=h(r),n[22]=p,n[23]=h(i),n[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...r)=>e[12](n,...r),(t,...r)=>e[13](n,...r),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...r)=>e[26](n,...r),(t,...r)=>e[27](n,...r),e[28],...e.slice(25)]),l},Kg(...n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=m(i.d,function(t){return n=>t(eA(e,n)[0])})):"p"===n?s??(s=g(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function u(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function d(e,t){const n=h(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function p(t,n,r,...i){const[a,s]=eA(e,r),l=nA(e,a,r,s,e);try{return o(t,n,a,...i)}finally{null==l||l()}}function f(t,n){return function(r,...o){const[i]=eA(e,r);return(n?n(t):t)(i,...o)}}function h(t){return function(r,o,i,...a){const[s]=eA(e,i);return t(n,o,s,...a)}}function m(e,t){const n={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield eA(e,n)[0]}}}function b(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=eA(e,n);return t.add(o,r)},n}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(n){delete a[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),XI.set(u,s);for(const t of new Set(e))l.set(t,[oA(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[oA(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[oA(s,t,s),s])});c.add(t)}return u}const aA=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??iA({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!KI(c,e.atoms)||!KI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=XI.get(d);e&&tA(e),f(u)}return QR(Array.from(r).filter(Array.isArray),{store:d}),q(()=>{const e=XI.get(d);return()=>{e&&tA(e)}},[d]),C(e,{store:d,children:i})}}(rb,nb);var sA=Object.defineProperty,lA=Object.defineProperties,cA=Object.getOwnPropertyDescriptors,uA=Object.getOwnPropertySymbols,dA=Object.prototype.hasOwnProperty,pA=Object.prototype.propertyIsEnumerable,fA=(e,t,n)=>t in e?sA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hA=(e,t)=>{for(var n in t||(t={}))dA.call(t,n)&&fA(e,n,t[n]);if(uA)for(var n of uA(t))pA.call(t,n)&&fA(e,n,t[n]);return e},mA=(e,t)=>lA(e,cA(t));function gA(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function bA(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function vA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function yA(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(vA(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&vA(i)){const r=null==i.initialGroup?void 0:bA(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:bA(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return mA(hA({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return mA(hA({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=bA(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&vA(i)){const t=null==i.group?void 0:bA(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return mA(hA({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return mA(hA({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return mA(hA({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return mA(hA({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,gA)}const xA=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,SA=Jg(),wA=Jg(e=>e(SA)?.numberOfSections??0),CA=Jg(e=>e(SA)?.numberOfItemsInSection??[]),EA=Jg(e=>e(SA)?.keyExtractor??xA),RA=Jg(e=>e(SA)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),IA=Jg(e=>e(SA)?.onDragEnd),AA=Jg(e=>e(SA)?.onDragOver),kA=Jg(e=>e(SA)?.itemRenderer),PA=Jg(e=>e(SA)?.headerRenderer),DA=Jg(e=>e(SA)?.dragOverlayRenderer),MA=Jg(e=>e(SA)?.onClick),TA=Jg(e=>{const t=e(wA),n=e(CA),r=e(EA),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),qA=Jg(null),OA=Jg(e=>e(qA),(e,t,n)=>{if(null===n)return void t(qA,null);const r=e(qA);t(qA,{...r,...n})}),LA=iI(e=>Jg(null,(t,n,r)=>{let o;"over"===e?o=t(AA):"end"===e&&(o=t(IA),n(OA,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(OA,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(OA,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=yA(t(TA),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(OA)?.startIndex;n(OA,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(OA)?.startSection??i.data.sectionKey,event:r})})),NA=[SA,wA,CA,EA,RA,IA,kA,PA,MA,OA],jA=[LA],_A=({props:e,children:t})=>{const n=ub(SA);return j(()=>{n(e)},[e,n]),t};var zA=Symbol.for("preact-signals");function FA(){if(WA>1)WA--;else{var e,t=!1;for(!function(){var e=YA;for(YA=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==VA;){var n=VA;for(VA=void 0,UA++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&ek(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(UA=0,WA--,t)throw e}}function $A(e){if(WA>0)return e();KA=++GA,WA++;try{return e()}finally{FA()}}var HA=void 0;function BA(e){var t=HA;HA=void 0;try{return e()}finally{HA=t}}var VA=void 0,WA=0,UA=0,GA=0,KA=0,YA=void 0,XA=0;function JA(e){if(void 0!==HA){var t=e.n;if(void 0===t||t.t!==HA)return t={i:0,S:e,p:HA.s,n:void 0,t:HA,e:void 0,x:void 0,r:t},void 0!==HA.s&&(HA.s.n=t),HA.s=t,e.n=t,32&HA.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=HA.s,t.n=void 0,HA.s.n=t,HA.s=t),t}}function ZA(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function QA(e,t){return new ZA(e,t)}function ek(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function tk(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function nk(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function rk(e,t){ZA.call(this,void 0,t),this.x=e,this.s=void 0,this.g=XA-1,this.f=4}function ok(e,t){return new rk(e,t)}function ik(e){var t=e.m;if(e.m=void 0,"function"==typeof t){WA++;var n=HA;HA=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,ak(e),t}finally{HA=n,FA()}}}function ak(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,ik(e)}function sk(e){if(HA!==this)throw new Error("Out-of-order effect");nk(this),HA=e,this.f&=-2,8&this.f&&ak(this),FA()}function lk(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function ck(e,t){var n=new lk(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}ZA.prototype.brand=zA,ZA.prototype.h=function(){return!0},ZA.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:BA(function(){var e;null==(e=t.W)||e.call(t)}))},ZA.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&BA(function(){var e;null==(e=t.Z)||e.call(t)}))}},ZA.prototype.subscribe=function(e){var t=this;return ck(function(){var n=t.value;BA(function(){return e(n)})},{name:"sub"})},ZA.prototype.valueOf=function(){return this.value},ZA.prototype.toString=function(){return this.value+""},ZA.prototype.toJSON=function(){return this.value},ZA.prototype.peek=function(){var e=this;return BA(function(){return e.value})},Object.defineProperty(ZA.prototype,"value",{get:function(){var e=JA(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(UA>100)throw new Error("Cycle detected");!function(e){0!==WA&&0===UA&&e.l!==KA&&(e.l=KA,YA={S:e,v:e.v,i:e.i,o:YA})}(this),this.v=e,this.i++,XA++,WA++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{FA()}}}}),rk.prototype=new ZA,rk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===XA)return!0;if(this.g=XA,this.f|=1,this.i>0&&!ek(this))return this.f&=-2,!0;var e=HA;try{tk(this),HA=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return HA=e,nk(this),this.f&=-2,!0},rk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}ZA.prototype.S.call(this,e)},rk.prototype.U=function(e){if(void 0!==this.t&&(ZA.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},rk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(rk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=JA(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),lk.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},lk.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ik(this),tk(this),WA++;var e=HA;return HA=this,sk.bind(this,e)},lk.prototype.N=function(){2&this.f||(this.f|=2,this.u=VA,VA=this)},lk.prototype.d=function(){this.f|=8,1&this.f||ak(this)},lk.prototype.dispose=function(){this.d()};var uk,dk,pk,fk,hk,mk,gk,bk,vk,yk,xk,Sk,wk,Ck,Ek,Rk,Ik,Ak,kk,Pk,Dk=Object.create,Mk=Object.defineProperty,Tk=Object.defineProperties,qk=Object.getOwnPropertyDescriptor,Ok=Object.getOwnPropertyDescriptors,Lk=Object.getOwnPropertySymbols,Nk=Object.prototype.hasOwnProperty,jk=Object.prototype.propertyIsEnumerable,_k=e=>{throw TypeError(e)},zk=(e,t,n)=>t in e?Mk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Fk=(e,t)=>Mk(e,"name",{value:t,configurable:!0}),$k=["class","method","getter","setter","accessor","field","value","get","set"],Hk=e=>void 0!==e&&"function"!=typeof e?_k("Function expected"):e,Bk=(e,t,n,r,o)=>({kind:$k[e],name:t,metadata:r,addInitializer:e=>n._?_k("Already initialized"):o.push(Hk(e||null))}),Vk=(e,t)=>{return zk(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},Wk=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Uk=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=$k[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&qk(d<4?o:{get[n](){return Yk(this,i)},set[n](e){return Jk(this,i,e)}},n));d?f&&d<4&&Fk(i,(d>2?"set ":d>1?"get ":"")+n):Fk(o,n);for(var y=r.length-1;y>=0;y--)c=Bk(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Kk(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?Yk:Zk)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>Jk(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?Hk(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?_k("Object expected"):(Hk(a=s.get)&&(v.get=a),Hk(a=s.set)&&(v.set=a),Hk(a=s.init)&&g.unshift(a));return d||Vk(e,o),v&&Mk(o,n,v),f?4^d?i:v:o},Gk=(e,t,n)=>t.has(e)||_k("Cannot "+n),Kk=(e,t)=>Object(t)!==t?_k('Cannot use the "in" operator on this value'):e.has(t),Yk=(e,t,n)=>(Gk(e,t,"read from private field"),n?n.call(e):t.get(e)),Xk=(e,t,n)=>t.has(e)?_k("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Jk=(e,t,n,r)=>(Gk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Zk=(e,t,n)=>(Gk(e,t,"access private method"),n);function Qk(e,t){if(t){let n;return ok(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return ok(e)}function eP(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!eP(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!eP(e[n],t[n]));return!o}return!1}function tP({get:e},t){return{init:e=>QA(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function nP(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=Qk(e.bind(this)),n.set(this,t)),t.value}}function rP(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>Tk(e,Ok(t)))(((e,t)=>{for(var n in t||(t={}))Nk.call(t,n)&&zk(e,n,t[n]);if(Lk)for(var n of Lk(t))jk.call(t,n)&&zk(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function oP(...e){const t=e.map(e=>ck(e));return()=>t.forEach(e=>e())}mk=[tP],hk=[tP],fk=[tP],pk=[rP()],dk=[rP()],uk=[rP()];var iP,aP=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,Wk(gk,5,this),Xk(this,Sk),Xk(this,bk,Wk(gk,8,this)),Wk(gk,11,this),Xk(this,wk,Wk(gk,12,this)),Wk(gk,15,this),Xk(this,Ik,Wk(gk,16,this)),Wk(gk,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return Yk(this,Sk,kk)}get initial(){return Yk(this,Sk,yk)}get previous(){return Yk(this,Sk,Ek)}set current(e){const t=BA(()=>Yk(this,Sk,kk));e&&t&&this.equals(t,e)||$A(()=>{Yk(this,Sk,yk)||Jk(this,Sk,e,xk),Jk(this,Sk,t,Rk),Jk(this,Sk,e,Pk)})}reset(e=this.defaultValue){$A(()=>{Jk(this,Sk,void 0,Rk),Jk(this,Sk,e,xk),Jk(this,Sk,e,Pk)})}};function sP(e){return BA(()=>{const t={};for(const n in e)t[n]=e[n];return t})}gk=[,,,Dk(null)],bk=new WeakMap,Sk=new WeakSet,wk=new WeakMap,Ik=new WeakMap,vk=Uk(gk,20,"#initial",mk,Sk,bk),yk=vk.get,xk=vk.set,Ck=Uk(gk,20,"#previous",hk,Sk,wk),Ek=Ck.get,Rk=Ck.set,Ak=Uk(gk,20,"#current",fk,Sk,Ik),kk=Ak.get,Pk=Ak.set,Uk(gk,2,"current",pk,aP),Uk(gk,2,"initial",dk,aP),Uk(gk,2,"previous",uk,aP),Vk(gk,aP);iP=new WeakMap;var lP,cP,uP,dP,pP,fP=Object.create,hP=Object.defineProperty,mP=Object.getOwnPropertyDescriptor,gP=Object.getOwnPropertySymbols,bP=Object.prototype.hasOwnProperty,vP=Object.prototype.propertyIsEnumerable,yP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),xP=e=>{throw TypeError(e)},SP=Math.pow,wP=(e,t,n)=>t in e?hP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CP=["class","method","getter","setter","accessor","field","value","get","set"],EP=e=>void 0!==e&&"function"!=typeof e?xP("Function expected"):e,RP=(e,t,n,r,o)=>({kind:CP[e],name:t,metadata:r,addInitializer:e=>n._?xP("Already initialized"):o.push(EP(e||null))}),IP=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=CP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,mP(o,n)),h=r.length-1;h>=0;h--)(l=RP(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,EP(a)&&(f[d]=a);return f&&hP(o,n,f),o},AP=(e,t,n)=>t.has(e)||xP("Cannot "+n),kP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},PP=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))bP.call(t,n)&&wP(e,n,t[n]);if(gP)for(var n of gP(t))vP.call(t,n)&&wP(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new kP((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return kP.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var DP,MP=class extends(uP=aP,cP=[nP],lP=[nP],uP){constructor(e){var t,n,r;super(kP.from(e),(e,t)=>kP.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(pP,5,this),t=this,r=0,(n=dP).has(t)?xP("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return kP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=kP.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(AP(a=this,s=dP,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);$A(()=>{((e,t,n)=>{AP(e,t,"write to private field"),t.set(e,n)})(this,dP,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(kP.from(e)),this.velocity={x:0,y:0}}};function TP({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(SP(r,2)+SP(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}pP=(e=>{var t;return[,,,fP(null!=(t=null==e?void 0:e[yP("metadata")])?t:null)]})(uP),dP=new WeakMap,IP(pP,2,"delta",cP,MP),IP(pP,2,"direction",lP,MP),DP=pP,wP(MP,yP("metadata"),DP[3]);var qP,OP,LP,NP,jP=(e=>(e.Horizontal="x",e.Vertical="y",e))(jP||{}),_P=Object.values(jP),zP=Object.create,FP=Object.defineProperty,$P=Object.defineProperties,HP=Object.getOwnPropertyDescriptor,BP=Object.getOwnPropertyDescriptors,VP=Object.getOwnPropertySymbols,WP=Object.prototype.hasOwnProperty,UP=Object.prototype.propertyIsEnumerable,GP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),KP=e=>{throw TypeError(e)},YP=(e,t,n)=>t in e?FP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,XP=(e,t)=>{for(var n in t||(t={}))WP.call(t,n)&&YP(e,n,t[n]);if(VP)for(var n of VP(t))UP.call(t,n)&&YP(e,n,t[n]);return e},JP=(e,t)=>$P(e,BP(t)),ZP=(e,t)=>FP(e,"name",{value:t,configurable:!0}),QP=(e,t)=>{var n={};for(var r in e)WP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&VP)for(var r of VP(e))t.indexOf(r)<0&&UP.call(e,r)&&(n[r]=e[r]);return n},eD=e=>{var t;return[,,,zP(null!=(t=null==e?void 0:e[GP("metadata")])?t:null)]},tD=["class","method","getter","setter","accessor","field","value","get","set"],nD=e=>void 0!==e&&"function"!=typeof e?KP("Function expected"):e,rD=(e,t,n,r,o)=>({kind:tD[e],name:t,metadata:r,addInitializer:e=>n._?KP("Already initialized"):o.push(nD(e||null))}),oD=(e,t)=>YP(t,GP("metadata"),e[3]),iD=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},aD=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=tD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&HP(d<4?o:{get[n](){return cD(this,i)},set[n](e){return dD(this,i,e)}},n));d?f&&d<4&&ZP(i,(d>2?"set ":d>1?"get ":"")+n):ZP(o,n);for(var y=r.length-1;y>=0;y--)c=rD(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>lD(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?cD:pD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>dD(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?nD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?KP("Object expected"):(nD(a=s.get)&&(v.get=a),nD(a=s.set)&&(v.set=a),nD(a=s.init)&&g.unshift(a));return d||oD(e,o),v&&FP(o,n,v),f?4^d?i:v:o},sD=(e,t,n)=>t.has(e)||KP("Cannot "+n),lD=(e,t)=>Object(t)!==t?KP('Cannot use the "in" operator on this value'):e.has(t),cD=(e,t,n)=>(sD(e,t,"read from private field"),n?n.call(e):t.get(e)),uD=(e,t,n)=>t.has(e)?KP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),dD=(e,t,n,r)=>(sD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pD=(e,t,n)=>(sD(e,t,"access private method"),n);function fD(e,t){return{plugin:e,options:t}}function hD(e){return t=>fD(e,t)}function mD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}qP=[tP];var gD=class{constructor(e,t){this.manager=e,this.options=t,uD(this,LP,iD(OP,8,this,!1)),iD(OP,11,this),uD(this,NP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return BA(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=ck(e.bind(this));return cD(this,NP).add(t),t}destroy(){cD(this,NP).forEach(e=>e())}static configure(e){return fD(this,e)}};OP=eD(null),LP=new WeakMap,NP=new WeakMap,aD(OP,4,"disabled",qP,gD,LP),oD(OP,gD);var bD,vD=class extends gD{},yD=class{constructor(e){this.manager=e,this.instances=new Map,uD(this,bD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(mD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of cD(this,bD))if(!n.includes(e)){if(e.prototype instanceof vD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);dD(this,bD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function xD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}bD=new WeakMap;var SD,wD,CD,ED,RD,ID,AD,kD,PD,DD,MD,TD,qD=[],OD=class extends gD{constructor(e){super(e),uD(this,SD),uD(this,wD),this.computeCollisions=this.computeCollisions.bind(this),dD(this,wD,QA(qD)),this.destroy=oP(()=>{const e=this.computeCollisions(),t=BA(()=>this.manager.dragOperation.position.current);if(e!==qD){const e=cD(this,SD);if(dD(this,SD,t),e&&t.x==e.x&&t.y==e.y)return}else dD(this,SD,void 0);cD(this,wD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){BA(()=>{e?cD(this,wD).value=this.computeCollisions():dD(this,SD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return qD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=BA(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?qD:(s.sort(xD),s)}get collisions(){return cD(this,wD).value}};SD=new WeakMap,wD=new WeakMap,RD=[tP],ED=[tP],CD=[tP];var LD=class e{constructor(e,t){uD(this,PD,iD(kD,8,this)),iD(kD,11,this),uD(this,DD),uD(this,MD,iD(kD,12,this)),iD(kD,15,this),uD(this,TD,iD(kD,16,this)),iD(kD,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;dD(this,DD,QA(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=cD(this,DD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:cD(this,DD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return pD(t=e,ID,AD).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};kD=eD(null),ID=new WeakSet,AD=function(){const e=LD.pendingIdChanges;LD.pendingIdChanges=null,e&&$A(()=>{for(const[t,n]of e)cD(t,DD).value=n})},PD=new WeakMap,DD=new WeakMap,MD=new WeakMap,TD=new WeakMap,aD(kD,4,"manager",RD,LD,PD),aD(kD,4,"data",ED,LD,MD),aD(kD,4,"disabled",CD,LD,TD),uD(LD,ID),oD(kD,LD),LD.pendingIdChanges=null;var ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD,YD,XD,JD,ZD,QD,eM,tM,nM,rM,oM,iM,aM=LD,sM=class{constructor(){this.map=QA(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=oP(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},lM=class extends(HD=aM,$D=[tP],FD=[tP],zD=[tP],_D=[nP],jD=[nP],ND=[nP],HD){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=QP(n,["modifiers","type","sensors","plugins","effects"]);super(JP(XP({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=mD(n);e.registry.plugins.register(t)}}]}}),t),iD(BD,5,this),uD(this,VD,iD(BD,8,this)),iD(BD,11,this),uD(this,WD,iD(BD,12,this)),iD(BD,15,this),uD(this,UD,iD(BD,16,this,this.isDragSource?"dragging":"idle")),iD(BD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=mD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};BD=eD(HD),VD=new WeakMap,WD=new WeakMap,UD=new WeakMap,aD(BD,4,"type",$D,lM,VD),aD(BD,4,"modifiers",FD,lM,WD),aD(BD,4,"status",zD,lM,UD),aD(BD,2,"isDropping",_D,lM),aD(BD,2,"isDragging",jD,lM),aD(BD,2,"isDragSource",ND,lM),oD(BD,lM);var cM=class extends(QD=aM,ZD=[tP],JD=[tP],XD=[tP],YD=[tP],KD=[tP],GD=[nP],QD){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super(QP(n,["accept","collisionDetector","collisionPriority","type"]),t),iD(eM,5,this),uD(this,tM,iD(eM,8,this)),iD(eM,11,this),uD(this,nM,iD(eM,12,this)),iD(eM,15,this),uD(this,rM,iD(eM,16,this)),iD(eM,19,this),uD(this,oM,iD(eM,20,this)),iD(eM,23,this),uD(this,iM,iD(eM,24,this)),iD(eM,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};eM=eD(QD),tM=new WeakMap,nM=new WeakMap,rM=new WeakMap,oM=new WeakMap,iM=new WeakMap,aD(eM,4,"accept",ZD,cM,tM),aD(eM,4,"type",JD,cM,nM),aD(eM,4,"collisionDetector",XD,cM,rM),aD(eM,4,"collisionPriority",YD,cM,oM),aD(eM,4,"shape",KD,cM,iM),aD(eM,2,"isDropTarget",GD,cM),oD(eM,cM);var uM=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},dM=class extends uM{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function pM(e,t=!0){let n=!1;return JP(XP({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var fM,hM,mM,gM,bM,vM,yM,xM,SM,wM=class extends vD{constructor(e){super(e);let t=[];this.destroy=oP(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(aM.pendingIdChanges)return;const i=pM({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;BA(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},CM=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(CM||{}),EM=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(EM||{});yM=[tP],vM=[nP],bM=[nP],gM=[nP],mM=[nP],hM=[nP],fM=[nP];var RM=class{constructor(){iD(xM,5,this),uD(this,SM,iD(xM,8,this,"idle")),iD(xM,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};xM=eD(null),SM=new WeakMap,aD(xM,4,"value",yM,RM,SM),aD(xM,2,"current",vM,RM),aD(xM,2,"idle",bM,RM),aD(xM,2,"initializing",gM,RM),aD(xM,2,"initialized",mM,RM),aD(xM,2,"dragging",hM,RM),aD(xM,2,"dropped",fM,RM),oD(xM,RM);var IM,AM=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return BA(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=pM({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return BA(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;$A(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=pM({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&$A(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return BA(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=pM({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return BA(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=BA(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=ck(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},kM=class extends gD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},PM=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},DM=class{constructor(e){this.options=e,uD(this,IM)}set controller(e){dD(this,IM,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=cD(this,IM))||t.activate(e)}};IM=new WeakMap;var MM,TM,qM,OM,LM,NM,jM,_M,zM,FM,$M,HM,BM,VM,WM,UM,GM,KM,YM,XM=class extends gD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},JM=class{constructor(e){this.draggables=new sM,this.droppables=new sM,this.plugins=new yD(e),this.sensors=new yD(e),this.modifiers=new yD(e)}register(e,t){if(e instanceof lM)return this.draggables.register(e.id,e);if(e instanceof cM)return this.droppables.register(e.id,e);if(e.prototype instanceof XM)return this.modifiers.register(e,t);if(e.prototype instanceof kM)return this.sensors.register(e,t);if(e.prototype instanceof gD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof aM)return e instanceof lM?this.draggables.unregister(e.id,e):e instanceof cM?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof XM)return this.modifiers.unregister(e);if(e.prototype instanceof kM)return this.sensors.unregister(e);if(e.prototype instanceof gD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};zM=[nP],_M=[tP],jM=[tP],NM=[tP],LM=[tP],OM=[tP],qM=[nP],TM=[nP],MM=[nP];var ZM=class{constructor(e){iD(BM,5,this),uD(this,FM),uD(this,$M),uD(this,HM,new aP(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new RM,uD(this,VM,iD(BM,8,this,!1)),iD(BM,11,this),uD(this,WM,iD(BM,12,this,null)),iD(BM,15,this),uD(this,UM,iD(BM,16,this,null)),iD(BM,19,this),uD(this,GM,iD(BM,20,this,null)),iD(BM,23,this),uD(this,KM,iD(BM,24,this,[])),iD(BM,27,this),this.position=new MP({x:0,y:0}),uD(this,YM,{x:0,y:0}),dD(this,FM,e)}get shape(){const{current:e,initial:t,previous:n}=cD(this,HM);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?cD(this,HM).current=e:cD(this,HM).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=cD(this,FM).registry.draggables.get(t);return n&&dD(this,$M,n),null!=(e=null!=n?n:cD(this,$M))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=cD(this,FM).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(JP(XP({},this.snapshot()),{transform:n}));return dD(this,YM,n),n}snapshot(){return BA(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:cD(this,YM),shape:this.shape?sP(this.shape):null,position:sP(this.position),status:sP(this.status),canceled:this.canceled}))}reset(){$A(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,cD(this,HM).reset(),this.position.reset({x:0,y:0}),dD(this,YM,{x:0,y:0}),this.modifiers=[]})}};BM=eD(null),FM=new WeakMap,$M=new WeakMap,HM=new WeakMap,VM=new WeakMap,WM=new WeakMap,UM=new WeakMap,GM=new WeakMap,KM=new WeakMap,YM=new WeakMap,aD(BM,2,"shape",zM,ZM),aD(BM,4,"canceled",_M,ZM,VM),aD(BM,4,"activatorEvent",jM,ZM,WM),aD(BM,4,"sourceIdentifier",NM,ZM,UM),aD(BM,4,"targetIdentifier",LM,ZM,GM),aD(BM,4,"modifiers",OM,ZM,KM),aD(BM,2,"source",qM,ZM),aD(BM,2,"target",TM,ZM),aD(BM,2,"transform",MM,ZM),oD(BM,ZM);var QM={get rendering(){return Promise.resolve()}};function eT(e,t){return"function"==typeof e?e(t):null!=e?e:t}var tT=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=eT(n.plugins,[]),o=eT(n.sensors,[]),i=eT(n.modifiers,[]),a=null!=(t=n.renderer)?t:QM,s=new dM(this),l=new JM(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new AM(this),this.dragOperation=new ZM(this),this.collisionObserver=new OD(this),this.plugins=[wM,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=oP(()=>{var e,t,n;const r=BA(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=mD(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},nT=e=>{throw TypeError(e)},rT=(e,t,n)=>t.has(e)||nT("Cannot "+n),oT=(e,t,n)=>(rT(e,t,"read from private field"),t.get(e)),iT=(e,t,n)=>t.has(e)?nT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),aT=(e,t,n,r)=>(rT(e,t,"write to private field"),t.set(e,n),n),sT=(e,t,n)=>(rT(e,t,"access private method"),n);function lT(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function cT(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(lT(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function uT(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function dT(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function pT(e){return"nodeType"in e}function fT(e){var t,n,r;return e?dT(e)?e:pT(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function hT(e){const{Document:t}=fT(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function mT(e){return!(!e||dT(e))&&(e instanceof fT(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function gT(e){return e instanceof fT(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function bT(e){return e?dT(e)?e.document:pT(e)?hT(e)?e:mT(e)||gT(e)?e.ownerDocument:document:document:document}function vT(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function yT(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!vT(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function xT(e){return{x:e.clientX,y:e.clientY}}var ST="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function wT(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...wT(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...wT(o.document,t))}}catch(e){}return n}function CT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function ET(){var e,t;const n=CT()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function RT(e){return!(!e||!pT(e))&&e instanceof fT(e).ShadowRoot}function IT(e){if(e&&pT(e)){let t=e.getRootNode();if(RT(t))return t;if(t instanceof Document)return t}return bT(e)}function AT(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function kT(e){return"value"in e}function PT(e){return"CANVAS"===e.tagName}function DT(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return DT(e,{x:t-o,y:n-i})}}return r}var MT=new WeakMap;var TT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function qT(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function OT(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var LT,NT=ST?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},jT=class extends NT{constructor(e){super(t=>{oT(this,LT)?e(t,this):aT(this,LT,!0)}),iT(this,LT,!1)}};LT=new WeakMap;var _T,zT,FT,$T,HT,BT,VT,WT,UT,GT,KT,YT=Array.from({length:100},(e,t)=>t/100),XT=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,iT(this,UT),this.disconnect=()=>{var e,t,n;aT(this,VT,!0),null==(e=oT(this,FT))||e.disconnect(),null==(t=oT(this,$T))||t.disconnect(),oT(this,HT).disconnect(),null==(n=oT(this,BT))||n.remove()},iT(this,_T,!0),iT(this,zT),iT(this,FT),iT(this,$T),iT(this,HT),iT(this,BT),iT(this,VT,!1),iT(this,WT,OT(()=>{var e,t,n;const{element:r}=this;if(null==(e=oT(this,$T))||e.disconnect(),oT(this,VT)||!oT(this,_T)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=yT(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,aT(this,$T,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:PP.intersectionRatio(n,yT(r)))&&oT(this,WT).call(this)},{threshold:YT,rootMargin:m,root:o})),oT(this,$T).observe(r),sT(this,UT,GT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),aT(this,_T,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=yT(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(aT(this,BT,document.createElement("div")),oT(this,BT).style.background="rgba(0,0,0,0.15)",oT(this,BT).style.position="fixed",oT(this,BT).style.pointerEvents="none",o.body.appendChild(oT(this,BT))),aT(this,HT,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=oT(this,_T);aT(this,_T,a),(s||l)&&(c&&!a?(null==(n=oT(this,$T))||n.disconnect(),this.callback(null),null==(r=oT(this,FT))||r.disconnect(),aT(this,FT,void 0),oT(this,BT)&&(oT(this,BT).style.visibility="hidden")):oT(this,WT).call(this),a&&!oT(this,FT)&&(aT(this,FT,new jT(oT(this,WT))),oT(this,FT).observe(e)))},{threshold:YT,root:o})),oT(this,_T)&&!n.skipInitial&&this.callback(this.boundingClientRect),oT(this,HT).observe(e)}};_T=new WeakMap,zT=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap,BT=new WeakMap,VT=new WeakMap,WT=new WeakMap,UT=new WeakSet,GT=function(){oT(this,VT)||(sT(this,UT,KT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,oT(this,zT))||(this.callback(this.boundingClientRect),aT(this,zT,this.boundingClientRect)))},KT=function(){if(oT(this,BT)){const{top:e,left:t,width:n,height:r}=yT(this.element);oT(this,BT).style.overflow="hidden",oT(this,BT).style.visibility="visible",oT(this,BT).style.top=`${Math.floor(e)}px`,oT(this,BT).style.left=`${Math.floor(t)}px`,oT(this,BT).style.width=`${Math.floor(n)}px`,oT(this,BT).style.height=`${Math.floor(r)}px`}};var JT,ZT,QT,eq,tq=new WeakMap,nq=new WeakMap;function rq(e,t){let n=tq.get(e);if(!n){const t=new XT(e,t=>{const n=tq.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),tq.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(tq.delete(e),n.disconnect())}}var oq=class{constructor(e,t,n){this.callback=t,iT(this,JT),iT(this,ZT,!1),iT(this,QT),iT(this,eq,OT(e=>{if(!oT(this,ZT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of oT(this,QT))if(e.target.contains(t)){this.callback(oT(this,JT).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=qT(e);for(;n;)t.add(n),n=qT(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=rq(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!nq.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),nq.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=nq.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),nq.delete(r))}):()=>{}}(e,oT(this,eq));aT(this,QT,r),aT(this,JT,new XT(e,t,n)),this.disconnect=()=>{oT(this,ZT)||(aT(this,ZT,!0),o(),i(),oT(this,JT).disconnect())}}};function iq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function aq(e){try{iq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function sq(e){return!(!ST||!e)&&e===bT(e).scrollingElement}function lq(e){var t,n;const r=fT(e),o=sq(e)?function(e){var t,n,r,o;const{documentElement:i}=bT(e),a=fT(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):uT(e),i=r.visualViewport,a=sq(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function cq(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=lq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!n&&a.current.y+l>0,u=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}JT=new WeakMap,ZT=new WeakMap,QT=new WeakMap,eq=new WeakMap;var uq=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},dq=new uq(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),pq=new uq(e=>setTimeout(e,50)),fq=new Map,hq=fq.clear.bind(fq);function mq(e,t=!1){if(!t)return gq(e);let n=fq.get(e);return n||(n=gq(e),fq.set(e,n),pq.schedule(hq),n)}function gq(e){return fT(e).getComputedStyle(e)}var bq={excludeElement:!0,escapeShadowDOM:!0};function vq(e,t=bq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(hT(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&RT(a))return t(a.host);if(!mT(a))return gT(a)?t(a.parentElement):i;if(i.has(a))return i;const s=mq(a,!0);if(r&&a===e||function(e,t=mq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=mq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function yq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=qT(e);for(;r;){if(r===t)return n;const e=uT(r),{x:o,y:i}=xq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=qT(r)}return n}function xq(e,t=uT(e)){const n=Math.round(t.width),r=Math.round(t.height);if(mT(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=mq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function Sq(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function wq(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=Sq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var Cq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(Cq||{}),Eq={x:.2,y:.2},Rq={x:10,y:10};function Iq(e,t,n,r=25,o=Eq,i=Rq){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=lq(e),f=yq(e),h=wq(mq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new PP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function Aq(e,{block:t="nearest",inline:n="nearest"}={}){if(!mT(e))return;const r=vq(e),o=[];for(const i of r){if(!mT(i))continue;const{top:r,left:a}=Pq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function kq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!mT(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function Pq(e,t){const n=kq(e),r=kq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function Dq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function Mq(e,t=mq(e).translate,n=!0){if(n){const t=cT(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=Sq(e);if(t)return t}}}if(t){const e=Sq(t);if(e)return e}return{x:0,y:0,z:0}}var Tq=new uq(e=>setTimeout(e,0)),qq=new Map,Oq=qq.clear.bind(qq);function Lq(e,t){const n=function(e){const t=e.ownerDocument;let n=qq.get(t);if(n)return n;n=t.getAnimations(),qq.set(t,n),Tq.schedule(Oq);const r=n.filter(t=>lT(t.effect)&&t.effect.target===e);return qq.set(e,r),n}(e).filter(e=>{var n,r;if(lT(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var Nq=class extends PP{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=yq(e),ignoreTransforms:s,getBoundingClientRect:l=uT}=t,c=Lq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||CT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=mq(e),b=wq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=lT(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?wq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function jq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var _q=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(jq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(jq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(jq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function zq(e){return!!e&&(e instanceof fT(e).Element||pT(e)&&e.nodeType===Node.ELEMENT_NODE)}function Fq(e){if(!e)return!1;const{KeyboardEvent:t}=fT(e.target);return e instanceof t}var $q={};function Hq(e){const t=null==$q[e]?0:$q[e]+1;return $q[e]=t,`${e}-${t}`}var Bq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/kP.distance(t.shape.center,n),type:EM.PointerIntersection,priority:CM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=kP.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:EM.ShapeIntersection,priority:CM.Normal}}return null})(e)},Vq=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?PP.from(r.current.boundingRectangle).corners:void 0,a=PP.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+kP.distance(kP.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:EM.Collision,priority:CM.Normal}},Wq=Object.create,Uq=Object.defineProperty,Gq=Object.defineProperties,Kq=Object.getOwnPropertyDescriptor,Yq=Object.getOwnPropertyDescriptors,Xq=Object.getOwnPropertySymbols,Jq=Object.prototype.hasOwnProperty,Zq=Object.prototype.propertyIsEnumerable,Qq=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),eO=e=>{throw TypeError(e)},tO=(e,t,n)=>t in e?Uq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nO=(e,t)=>{for(var n in t||(t={}))Jq.call(t,n)&&tO(e,n,t[n]);if(Xq)for(var n of Xq(t))Zq.call(t,n)&&tO(e,n,t[n]);return e},rO=(e,t)=>Gq(e,Yq(t)),oO=(e,t)=>Uq(e,"name",{value:t,configurable:!0}),iO=(e,t)=>{var n={};for(var r in e)Jq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Xq)for(var r of Xq(e))t.indexOf(r)<0&&Zq.call(e,r)&&(n[r]=e[r]);return n},aO=e=>{var t;return[,,,Wq(null!=(t=null==e?void 0:e[Qq("metadata")])?t:null)]},sO=["class","method","getter","setter","accessor","field","value","get","set"],lO=e=>void 0!==e&&"function"!=typeof e?eO("Function expected"):e,cO=(e,t,n,r,o)=>({kind:sO[e],name:t,metadata:r,addInitializer:e=>n._?eO("Already initialized"):o.push(lO(e||null))}),uO=(e,t)=>tO(t,Qq("metadata"),e[3]),dO=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},pO=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=sO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Kq(d<4?o:{get[n](){return mO(this,i)},set[n](e){return bO(this,i,e)}},n));d?f&&d<4&&oO(i,(d>2?"set ":d>1?"get ":"")+n):oO(o,n);for(var y=r.length-1;y>=0;y--)c=cO(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>hO(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?mO:vO)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>bO(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?lO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?eO("Object expected"):(lO(a=s.get)&&(v.get=a),lO(a=s.set)&&(v.set=a),lO(a=s.init)&&g.unshift(a));return d||uO(e,o),v&&Uq(o,n,v),f?4^d?i:v:o},fO=(e,t,n)=>t.has(e)||eO("Cannot "+n),hO=(e,t)=>Object(t)!==t?eO('Cannot use the "in" operator on this value'):e.has(t),mO=(e,t,n)=>(fO(e,t,"read from private field"),n?n.call(e):t.get(e)),gO=(e,t,n)=>t.has(e)?eO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),bO=(e,t,n,r)=>(fO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),vO=(e,t,n)=>(fO(e,t,"access private method"),n),yO="button",xO="draggable",SO="dnd-kit-description",wO="dnd-kit-announcement",CO={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},EO={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function RO(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var IO=["dragover","dragmove"],AO=class extends gD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=SO,announcement:o=wO}={},announcements:i=EO,screenReaderInstructions:a=CO,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:Hq(r),c=n?`${o}-${n}`:Hq(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>dq.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,IO.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),RO(n)&&!CT()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",yO)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",xO)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&dq.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var kO,PO,DO,MO,TO,qO,OO,LO,NO,jO,_O,zO,FO,$O=new Map,HO=class extends(TO=vD,MO=[tP],DO=[nP],PO=[nP],kO=[nP],TO){constructor(e,t){super(e,t),dO(OO,5,this),gO(this,NO),gO(this,qO,new Set),gO(this,LO,dO(OO,8,this,new Set)),dO(OO,11,this),this.registerEffect(vO(this,NO,jO))}register(e){return mO(this,qO).add(e),()=>{mO(this,qO).delete(e)}}addRoot(e){return BA(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{BA(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return IT(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return IT(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};OO=aO(TO),qO=new WeakMap,LO=new WeakMap,NO=new WeakSet,jO=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of mO(this,qO))t.push(vO(this,NO,_O).call(this,n,e));return()=>{for(const e of t)e()}},_O=function(e,t){let n=$O.get(e);n||(n=new Map,$O.set(e,n));let r=n.get(t);if(!r){const o=hT(e)?vO(this,NO,zO).call(this,e,n,t):vO(this,NO,FO).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},zO=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&$O.delete(e)}}},FO=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(RT(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&$O.delete(e)}}},pO(OO,4,"additionalRoots",MO,HO,LO),pO(OO,2,"sourceRoot",DO,HO),pO(OO,2,"targetRoot",PO,HO),pO(OO,2,"roots",kO,HO),uO(OO,HO),HO.configure=hD(HO);var BO=HO,VO="data-dnd-",WO=`${VO}dropping`,UO="--dnd-",GO=`${VO}dragging`,KO=`${VO}placeholder`,YO=[GO,KO,"popover","aria-pressed","aria-grabbing"],XO=["view-transition-name"],JO=`\n :is(:root,:host) [${GO}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${UO}top, 0px) !important;\n left: var(${UO}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${UO}width, auto);\n max-width: var(${UO}width, auto);\n height: var(${UO}height, auto);\n max-height: var(${UO}height, auto);\n transform: var(${UO}transform, none) !important;\n transition: var(${UO}transition) !important;\n }\n\n :is(:root,:host) [${KO}] {\n transition: none;\n }\n\n :is(:root,:host) [${KO}='hidden'] {\n visibility: hidden;\n }\n\n [${GO}] * {\n pointer-events: none !important;\n }\n\n [${GO}]:not([${WO}]) {\n translate: var(${UO}translate) !important;\n }\n\n [${GO}][style*='${UO}scale'] {\n scale: var(${UO}scale) !important;\n transform-origin: var(${UO}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${GO}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${GO}]::backdrop, [${VO}overlay]:not([${GO}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function ZO(e,t="hidden"){return BA(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${VO}${Hq("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(kT(e)&&kT(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),PT(e)&&PT(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),MT.set(a,i),n.push(()=>{MT.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(KO,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function QO(e,t){return e===t||qT(e)===qT(t)}function eL(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&zq(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>aq(t))}function tL(e){return"TR"===e.tagName}var nL,rL,oL,iL,aL,sL,lL,cL=250,uL="ease";var dL=class extends(rL=gD,nL=[tP],rL){constructor(e,t){super(e,t),gO(this,aL),gO(this,iL,dO(oL,8,this)),dO(oL,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(BO),r=null==n?void 0:n.register(JO);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(vO(this,aL,sL).bind(this,n)),this.registerEffect(vO(this,aL,lL))}};oL=aO(rL),iL=new WeakMap,aL=new WeakSet,sL=function(e){const{overlay:t}=this;if(!t||!e)return;const n=IT(t);return n?e.addRoot(n):void 0},lL=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(dL),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=yq(y),S=yq(h),w=!QO(h,y),C=new Nq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:I,height:A,top:k,left:P}=C;w&&(I/=E,A/=R);const D=new _q(y),M=mq(h),{transition:T,translate:q,boxSizing:O,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=M,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=wq(M),W=M.transform,U="clone"===b,G="content-box"===O,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:ZO(p,U?"clone":"hidden"),J=BA(()=>Fq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==q){const e=Sq(q);e&&(v.translate=e)}if(!v.transformOrigin){const e=BA(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(I*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(A*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(I*e-I)*n,v.coordinates.y+=(A*t-A)*r}v.dimensions||(v.dimensions={width:I,height:A}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-I*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-A*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(GO,"true");const le=BA(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=ET();if(D.set({width:I-K,height:A-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},UO),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;iq(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),aq(y),y.addEventListener("beforetoggle",eL));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:I,height:A,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:D,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new Nq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=ET();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},UO),null==(t=be.getElementMutationObserver())||t.takeRecords(),tL(be.element)&&tL(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new PP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new Nq(y);BA(()=>u.shape=ve);const ye=fT(y),xe=e=>{this.manager.actions.stop({event:e})},Se=AT(ye);J&&ye.addEventListener("resize",xe),"idle"===BA(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||YO.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(jq(e)&&jq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(XO.includes(e)||e.startsWith(UO))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void aq(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void aq(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),aq(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;mT(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),iq(y)&&(y.removeEventListener("beforetoggle",eL),y.removeAttribute("popover")),y.removeAttribute(GO),D.reset();const e=()=>{var e;if(me&&tL(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Re=null==c?void 0:c.dropAnimation,Ie=this,Ae=oP(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=BA(()=>u.modifiers),d=BA(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(D.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},UO),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=kP.delta(i,a);u.shape=PP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new Nq(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ie.dropAnimation?Ie.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=cL,easing:s=uL}=null!=i?i:{};aq(e.feedbackElement);const[,l]=null!=(t=cT(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:QO(e.feedbackElement,c)?null:void 0},d=new Nq(e.feedbackElement,u),p=null!=(r=Sq(mq(e.feedbackElement).translate))?r:e.translate,f=new Nq(c,u),h=PP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},UO),e.feedbackElement.setAttribute(WO,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),Dq({element:e.feedbackElement,keyframes:rO(nO(nO({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:AT(fT(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(WO),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:D,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ae()}},pO(oL,4,"overlay",nL,dL,iL),uO(oL,dL),dL.configure=hD(dL);var pL,fL,hL,mL,gL,bL,vL,yL=dL,xL=!0;hL=[tP],mL=Cq.Forward,pL=[tP],fL=Cq.Reverse;var SL=class{constructor(){gO(this,bL,dO(gL,8,this,xL)),dO(gL,11,this),gO(this,vL,dO(gL,12,this,xL)),dO(gL,15,this)}isLocked(e){return e!==Cq.Idle&&(null==e?this[Cq.Forward]===xL&&this[Cq.Reverse]===xL:this[e]===xL)}unlock(e){e!==Cq.Idle&&(this[e]=false)}};gL=aO(null),bL=new WeakMap,vL=new WeakMap,pO(gL,4,mL,hL,SL,bL),pO(gL,4,fL,pL,SL,vL),uO(gL,SL);var wL,CL,EL,RL,IL,AL,kL=[Cq.Forward,Cq.Reverse],PL=class{constructor(){this.x=new SL,this.y=new SL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},DL=class extends gD{constructor(e){super(e);const t=QA(new PL);let n=null;this.signal=t,ck(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new PL);const{delta:o}=e.dragOperation.position;if(n){const e={x:ML(o.x,n.x),y:ML(o.y,n.y)},r=t.peek();$A(()=>{for(const t of _P)for(const n of kL)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function ML(e,t){return Math.sign(e-t)}var TL=class extends(CL=vD,wL=[tP],CL){constructor(e){super(e),gO(this,RL,dO(EL,8,this,!1)),dO(EL,11,this),gO(this,IL),gO(this,AL,()=>{if(!mO(this,IL))return;const{element:e,by:t}=mO(this,IL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return bO(this,IL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:qL(o.x),y:qL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=cq(e,o);if(r.x||r.y){const{speed:r,direction:l}=Iq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of _P)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=mO(this,IL))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return bO(this,IL,{element:e,by:{x:a,y:s}}),dq.schedule(mO(this,AL)),!0}}}}}return bO(this,IL,void 0),!1};let t=null,n=null;const r=Qk(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=DT(IT(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=Qk(()=>{const t=r.value,{documentElement:o}=bT(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=vq(r,{excludeElement:!1});return n=e,e}}if(t){const e=vq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},eP);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new DL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&Fq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function qL(e){return e>0?Cq.Forward:e<0?Cq.Reverse:Cq.Idle}EL=aO(CL),RL=new WeakMap,IL=new WeakMap,AL=new WeakMap,pO(EL,4,"autoScrolling",wL,TL,RL),uO(EL,TL);var OL=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),LL=class extends gD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(TL);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=ck(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>OL.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};LL.configure=hD(LL);var NL,jL=LL,_L={capture:!0,passive:!0},zL=class extends vD{constructor(e){super(e),gO(this,NL),this.handleScroll=()=>{null==mO(this,NL)&&bO(this,NL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),bO(this,NL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=ck(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,_L),()=>{o.removeEventListener("scroll",this.handleScroll,_L)}}})}};NL=new WeakMap;function FL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var $L,HL=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),BL=class extends kM{constructor(e,t){super(e),this.manager=e,this.options=t,gO(this,$L,[]),this.listeners=new TT,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!zq(e.target))return;if(t.disabled)return;const{keyboardCodes:r=HL.keyboardCodes,preventActivation:o=HL.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=ck(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{Fq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),Aq(r);const{center:o}=new Nq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=bT(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];mO(this,$L).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=HL.keyboardCodes}=null!=n?n:{};if(UL(e,[...r.end,...r.cancel])){e.preventDefault();const t=UL(e,r.cancel);return void this.handleEnd(e,t)}UL(e,r.up)?this.handleMove("up",e):UL(e,r.down)&&this.handleMove("down",e),UL(e,r.left)?this.handleMove("left",e):UL(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:HL.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(jL);!1===(null==e?void 0:e.disabled)&&(e.disable(),mO(this,$L).push(()=>{e.enable()}))}cleanup(){mO(this,$L).forEach(e=>e()),bO(this,$L,[])}destroy(){this.cleanup(),this.listeners.clear()}};$L=new WeakMap,BL.configure=hD(BL),BL.defaults=HL;var VL,WL=BL;function UL(e,t){return t.includes(e.code)}var GL,KL;VL=new WeakMap;GL=new WeakMap,KL=new WeakMap;var YL=class{};YL.Delay=class extends DM{constructor(){super(...arguments),gO(this,GL),gO(this,KL)}onEvent(e){switch(e.type){case"pointerdown":bO(this,KL,xT(e)),bO(this,GL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!mO(this,KL))return;const{x:t,y:n}=xT(e);TP({x:t-mO(this,KL).x,y:n-mO(this,KL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){mO(this,GL)&&(clearTimeout(mO(this,GL)),bO(this,KL,void 0),bO(this,GL,void 0))}},YL.Distance=class extends DM{constructor(){super(...arguments),gO(this,VL)}onEvent(e){switch(e.type){case"pointerdown":bO(this,VL,xT(e));break;case"pointermove":if(!mO(this,VL))return;const{x:t,y:n}=xT(e),r={x:t-mO(this,VL).x,y:n-mO(this,VL).y},{tolerance:o}=this.options;if(o&&TP(r,o))return void this.abort();TP(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){bO(this,VL,void 0)}};var XL,JL=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!zq(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new YL.Delay({value:250,tolerance:5})]:function(e){if(!zq(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new YL.Delay({value:200,tolerance:0})]:[new YL.Delay({value:200,tolerance:10}),new YL.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!zq(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),ZL=class extends kM{constructor(e,t){super(e),this.manager=e,this.options=t,gO(this,XL,new Set),this.listeners=new TT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=JL.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=ck(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=fT(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(rN(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!zq(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=JL.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=mT(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=yq(t.element),{x:s,y:l}=xT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new PM(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=wT(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:eN,options:{capture:!0}}]);mO(this,XL).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=xT(e),r=yq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,dq.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=bT(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=zq(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:eN,options:{passive:!1}},{type:"click",listener:eN},{type:"contextmenu",listener:eN},{type:"keydown",listener:this.handleKeyDown}]);mO(this,XL).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},mO(this,XL).forEach(e=>e()),mO(this,XL).clear()}destroy(){this.cleanup(),this.listeners.clear()}};XL=new WeakMap,ZL.configure=hD(ZL),ZL.defaults=JL;var QL=ZL;function eN(e){e.preventDefault()}function tN(){}var nN=new WeakSet;function rN(e){e&&!nN.has(e)&&(e.addEventListener("touchmove",tN,{capture:!1,passive:!1}),nN.add(e))}var oN,iN,aN,sN,lN,cN,uN,dN,pN,fN,hN,mN,gN,bN,vN,yN,xN={modifiers:[],plugins:[AO,jL,class extends gD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(BO),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},yL,class extends gD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(BO),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=ck(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return FL(),document.addEventListener("selectionchange",FL,{capture:!0}),()=>{document.removeEventListener("selectionchange",FL,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[QL,WL]},SN=class extends tT{constructor(e={}){const t=eT(e.plugins,xN.plugins),n=eT(e.sensors,xN.sensors),r=eT(e.modifiers,xN.modifiers);super(rO(nO({},e),{plugins:[zL,TL,BO,...t],sensors:n,modifiers:r}))}},wN=class extends(aN=lM,iN=[tP],oN=[tP],aN){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=iO(n,["element","effects","handle"]);super(nO({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(mD))?t:[...n.sensors]).map(e=>{const t=e instanceof kM?e:n.registry.register(e.plugin),r=e instanceof kM?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),gO(this,lN,dO(sN,8,this)),dO(sN,11,this),gO(this,cN,dO(sN,12,this)),dO(sN,15,this),this.element=r,this.handle=i}};sN=aO(aN),lN=new WeakMap,cN=new WeakMap,pO(sN,4,"handle",iN,wN,lN),pO(sN,4,"element",oN,wN,cN),uO(sN,wN);var CN=class extends(pN=cM,dN=[tP],uN=[tP],pN){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=iO(n,["element","effects"]);const{collisionDetector:a=Bq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new Nq(n),o=BA(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=QA(!1);super(rO(nO({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new oq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),gO(this,vN),gO(this,hN,dO(fN,8,this)),dO(fN,11,this),gO(this,yN,dO(fN,12,this)),dO(fN,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){bO(this,vN,e,bN)}get element(){var e;return null!=(e=this.proxy)?e:mO(this,vN,gN)}};function EN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}fN=aO(pN),hN=new WeakMap,vN=new WeakSet,yN=new WeakMap,mN=pO(fN,20,"#element",dN,vN,hN),gN=mN.get,bN=mN.set,pO(fN,4,"proxy",uN,CN,yN),uO(fN,CN);var RN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:q;function IN(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function AN(e,t=[],n=!1){const r=D(e);return r.current=e,function(e,t=!1){const n=D(e.peek()),r=D(!1),o=IN();return RN(()=>ck(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>Qk(()=>r.current()),t),n)}function kN(e,t){const n=D(new Map),r=IN();return RN(()=>{if(e)return ck(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=BA(()=>r[1]),c=e[s];l!==c&&(i=!0,n.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function PN(e,t){e()}function DN(e){const t=D(e);return RN(()=>{t.current=e},[e]),t}function MN(e,t,n=q,r=Object.is){const o=D(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function TN(e,t){const n=D(EN(e));RN(()=>{const r=EN(e);r!==n.current&&(n.current=r,t(r))})}var qN=Object.defineProperty,ON=Object.defineProperties,LN=Object.getOwnPropertyDescriptors,NN=Object.getOwnPropertySymbols,jN=Object.prototype.hasOwnProperty,_N=Object.prototype.propertyIsEnumerable,zN=(e,t,n)=>t in e?qN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,FN=new SN,$N=M(FN),HN=z(F(({children:e},t)=>{const[n,r]=P(0),o=D(null),i=D(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return RN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),BN=[void 0,eP];function VN(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)jN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&NN)for(var r of NN(e))t.indexOf(r)<0&&_N.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=D(null),{plugins:d,modifiers:p,sensors:f}=c,h=eT(d,xN.plugins),m=eT(f,xN.sensors),g=eT(p,xN.modifiers),b=DN(o),v=DN(i),y=DN(s),x=DN(a),S=DN(l),w=DN(r),C=function(e){const t=D(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new SN(c)});return q(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),MN(h,()=>C&&(C.plugins=h),...BN),MN(m,()=>C&&(C.sensors=m),...BN),MN(g,()=>C&&(C.modifiers=g),...BN),sn.jsxs($N.Provider,{value:C,children:[sn.jsx(HN,{ref:u,children:n}),n]})}function WN(){return N($N)}function UN(e){var t;const n=null!=(t=WN())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),RN(r.register,[n,r]),r}function GN({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=D(null),l=WN(),c=null!=(a=AN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;q(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof yL);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),q(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof yL);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?KN:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return sn.jsx($N.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return sn.jsx(YN,{source:c,children:e});return e}())})}function KN(){return()=>{}}function YN({children:e,source:t}){return e(kN(t))}var XN,JN,ZN,QN,ej,tj=Object.create,nj=Object.defineProperty,rj=Object.getOwnPropertyDescriptor,oj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ij=e=>{throw TypeError(e)},aj=["class","method","getter","setter","accessor","field","value","get","set"],sj=e=>void 0!==e&&"function"!=typeof e?ij("Function expected"):e,lj=(e,t,n,r,o)=>({kind:aj[e],name:t,metadata:r,addInitializer:e=>n._?ij("Already initialized"):o.push(sj(e||null))}),cj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=aj[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,rj(o,n)),h=r.length-1;h>=0;h--)(l=lj(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,sj(a)&&(f[d]=a);return f&&nj(o,n,f),o},uj=(e,t,n)=>t.has(e)||ij("Cannot "+n),dj=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},pj=class extends(ZN=aP,JN=[nP],XN=[nP],ZN){constructor(e){var t,n,r;super(dj.from(e),(e,t)=>dj.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(ej,5,this),t=this,r=0,(n=QN).has(t)?ij("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return dj.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=dj.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(uj(a=this,s=QN,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);$A(()=>{((e,t,n)=>{uj(e,t,"write to private field"),t.set(e,n)})(this,QN,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(dj.from(e)),this.velocity={x:0,y:0}}};ej=(e=>{var t;return[,,,tj(null!=(t=null==e?void 0:e[oj("metadata")])?t:null)]})(ZN),QN=new WeakMap,cj(ej,2,"delta",JN,pj),cj(ej,2,"direction",XN,pj),((e,t)=>{((e,t,n)=>{t in e?nj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,oj("metadata"),e[3])})(ej,pj);var fj=(e=>(e.Horizontal="x",e.Vertical="y",e))(fj||{});Object.values(fj);var hj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/dj.distance(t.shape.center,n),type:EM.PointerIntersection,priority:CM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=dj.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:EM.ShapeIntersection,priority:CM.Normal}}return null})(e)};function mj(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=UN(t=>new CN(((e,t)=>ON(e,LN(t)))(((e,t)=>{for(var n in t||(t={}))jN.call(t,n)&&zN(e,n,t[n]);if(NN)for(var n of NN(t))_N.call(t,n)&&zN(e,n,t[n]);return e})({},e),{register:!1,element:EN(o)}),t)),c=kN(l);return MN(i,()=>l.id=i),TN(o,e=>l.element=e),MN(a,()=>l.accept=a,void 0,eP),MN(t,()=>l.collisionDetector=null!=t?t:hj),MN(n,()=>n&&(l.data=n)),MN(r,()=>l.disabled=!0===r),MN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function gj(e){const t=WN();q(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const bj=e=>Array.from({length:e},(e,t)=>t),vj=({id:e,sectionIndex:t,itemIndex:n})=>sn.jsx("span",{children:`${e}-${t}-${n}`}),yj=z(()=>{const e=cb(DA)??vj,{startSectionIndex:t,startIndex:n,id:r}=cb(OA)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:sn.jsx(GN,{dropAnimation:null,children:sn.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:sn.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),xj=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=cb(OA),o=r?.toSectionIndex===e&&r.toIndex===t;return sn.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},Sj=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,wj=z(({sectionIndex:e})=>{const t=cb(CA)[e],n=cb(EA),r=cb(RA),o=null!==cb(OA),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=mj({id:a,type:"section",accept:"item",collisionPriority:CM.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:sn.jsxs(Td,{ref:s,sx:{margin:"4px",outline:Sj(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[sn.jsx(Td,{sx:{position:"relative",top:"4px"},children:sn.jsx(xj,{sectionIndex:e,itemIndex:0,isDragging:!1})}),sn.jsxs(Td,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),Cj=z(({id:e,sectionIndex:t})=>{const n=cb(PA);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var Ej=Object.defineProperty,Rj=Object.defineProperties,Ij=Object.getOwnPropertyDescriptors,Aj=Object.getOwnPropertySymbols,kj=Object.prototype.hasOwnProperty,Pj=Object.prototype.propertyIsEnumerable,Dj=(e,t,n)=>t in e?Ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mj=(e,t)=>{for(var n in t||(t={}))kj.call(t,n)&&Dj(e,n,t[n]);if(Aj)for(var n of Aj(t))Pj.call(t,n)&&Dj(e,n,t[n]);return e},Tj=(e,t)=>Rj(e,Ij(t)),qj=class extends XM{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return Tj(Mj({},e),{[t]:n})}};qj.configure=hD(qj);var Oj=qj,Lj=Oj.configure({axis:"x",value:0});Oj.configure({axis:"y",value:0});var Nj=class extends XM{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return Tj(Mj({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};Nj.configure=hD(Nj);var jj=Object.create,_j=Object.defineProperty,zj=Object.defineProperties,Fj=Object.getOwnPropertyDescriptor,$j=Object.getOwnPropertyDescriptors,Hj=Object.getOwnPropertySymbols,Bj=Object.prototype.hasOwnProperty,Vj=Object.prototype.propertyIsEnumerable,Wj=e=>{throw TypeError(e)},Uj=(e,t,n)=>t in e?_j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gj=(e,t)=>{for(var n in t||(t={}))Bj.call(t,n)&&Uj(e,n,t[n]);if(Hj)for(var n of Hj(t))Vj.call(t,n)&&Uj(e,n,t[n]);return e},Kj=(e,t)=>zj(e,$j(t)),Yj=["class","method","getter","setter","accessor","field","value","get","set"],Xj=e=>void 0!==e&&"function"!=typeof e?Wj("Function expected"):e,Jj=(e,t,n,r,o)=>({kind:Yj[e],name:t,metadata:r,addInitializer:e=>n._?Wj("Already initialized"):o.push(Xj(e||null))}),Zj=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Qj=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=Yj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,Fj({get[n](){return t_(this,i)},set[n](e){return r_(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=Jj(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?Xj(s)&&(g[f]=s):"object"!=typeof s||null===s?Wj("Object expected"):(Xj(a=s.get)&&(g.get=a),Xj(a=s.set)&&(g.set=a),Xj(a=s.init)&&h.unshift(a));return g&&_j(o,n,g),o},e_=(e,t,n)=>t.has(e)||Wj("Cannot "+n),t_=(e,t,n)=>(e_(e,t,"read from private field"),t.get(e)),n_=(e,t,n)=>t.has(e)?Wj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),r_=(e,t,n,r)=>(e_(e,t,"write to private field"),t.set(e,n),n);function o_(e){return e instanceof F_||e instanceof z_}var i_=class extends gD{constructor(e){super(e);const t=ck(()=>{const{dragOperation:t}=e;if(Fq(t.activatorEvent)&&o_(t.source)&&t.status.initialized){const t=e.registry.plugins.get(TL);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!Fq(e.nativeEvent))return;if(!o_(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];$A(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&o_(e)||!e.element)continue;let n=e.shape;const r=new Nq(e.element,{getBoundingClientRect:e=>yT(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Vq);$A(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!o_(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;Aq(u);const d=new Nq(u);if(!d)return;const p=PP.delta(d,PP.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var a_=Object.defineProperty,s_=Object.defineProperties,l_=Object.getOwnPropertyDescriptors,c_=Object.getOwnPropertySymbols,u_=Object.prototype.hasOwnProperty,d_=Object.prototype.propertyIsEnumerable,p_=(e,t,n)=>t in e?a_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f_=(e,t)=>{for(var n in t||(t={}))u_.call(t,n)&&p_(e,n,t[n]);if(c_)for(var n of c_(t))d_.call(t,n)&&p_(e,n,t[n]);return e},h_=(e,t)=>s_(e,l_(t));function m_(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function g_(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function b_(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function v_(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(b_(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&b_(i)){const r=null==i.initialGroup?void 0:g_(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:g_(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return h_(f_({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return h_(f_({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=g_(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&b_(i)){const t=null==i.group?void 0:g_(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return h_(f_({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return h_(f_({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return h_(f_({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return h_(f_({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,m_)}function y_(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function x_(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var S_="__default__";function w_(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function C_(e,t){return e.index-t.index}function E_(e,t){return e.initialIndex-t.initialIndex}function R_(e,t=C_){return Array.from(e).sort(t)}var I_=[i_,class extends gD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof F_){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!o_(o)||!o_(i))return;if(o.sortable===i.sortable)return;const a=t(),s=y_(a),l=o.sortable.group===i.sortable.group,c=a.get(o.sortable.group),u=l?c:a.get(i.sortable.group);c&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(x_(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=R_(c),g=l?m:R_(u),b=null!=(r=o.sortable.group)?r:S_,v=null!=(d=i.sortable.group)?d:S_,y={[b]:m,[v]:g},x=v_(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),w_(f,S,h,w),$A(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;o_(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=y_(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(x_(r,e,n))return;const a=R_(i),s=R_(i,E_),l=o.sortable.element,c=a[s.indexOf(o.sortable)],u=null==c?void 0:c.element;c&&u&&l&&(w_(l,c.index,u,o.index),$A(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],A_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function k_(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var P_,D_,M_,T_,q_,O_,L_,N_,j_=new class{constructor(){Xk(this,iP,new WeakMap)}get(e,t){var n;return e?null==(n=Yk(this,iP).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return Yk(this,iP).has(e)||Yk(this,iP).set(e,new Map),null==(r=Yk(this,iP).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=Yk(this,iP).get(e))?void 0:t.clear():void 0}};D_=[tP],P_=[tP];var __=class{constructor(e,t){n_(this,T_,Zj(M_,8,this)),Zj(M_,11,this),n_(this,q_),n_(this,O_),n_(this,L_,Zj(M_,12,this)),Zj(M_,15,this),n_(this,N_),this.register=()=>($A(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{$A(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{$A(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:c=A_,plugins:u}=n,d=((e,t)=>{var n={};for(var r in e)Bj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Hj)for(var r of Hj(e))t.indexOf(r)<0&&Vj.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=eT(u,I_),f=k_(o);this.droppable=new F_(Kj(Gj({},d),{disabled:f.droppable}),t,this),this.draggable=new z_(Kj(Gj({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&j_.clear(this.manager),(null==r?void 0:r.dragging)&&j_.set(this.manager,this.id,BA(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=t_(this,O_),o=t_(this,q_);e===r&&t===o||(r_(this,O_,e),r_(this,q_,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(yL))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),r_(this,N_,d.element),this.manager=t,this.index=a,r_(this,O_,a),this.group=i,r_(this,q_,i),this.type=l,this.transition=c}get initialIndex(){var e,t;return null!=(t=null==(e=j_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=j_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){BA(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=mq(r),l=Mq(r,s,!1),c=Mq(r,s);if(i||a){const n=AT(fT(r))?Kj(Gj({},t),{duration:0}):t;Dq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){$A(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){$A(()=>{const t=t_(this,N_),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),r_(this,N_,e)})}get element(){var e,t;const n=t_(this,N_);if(n)return null!=(t=null!=(e=MT.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=eT(e,I_)}set disabled(e){const t=k_(e);$A(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){$A(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:Bq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){$A(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};M_=[,,,jj(null)],T_=new WeakMap,q_=new WeakMap,O_=new WeakMap,L_=new WeakMap,N_=new WeakMap,Qj(M_,4,"index",D_,__,T_),Qj(M_,4,"group",P_,__,L_),((e,t)=>{return Uj(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(M_,__);var z_=class extends wN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},F_=class extends CN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},$_=Object.defineProperty,H_=Object.defineProperties,B_=Object.getOwnPropertyDescriptors,V_=Object.getOwnPropertySymbols,W_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,G_=(e,t,n)=>t in e?$_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K_=(e,t)=>{for(var n in t||(t={}))W_.call(t,n)&&G_(e,n,t[n]);if(V_)for(var n of V_(t))U_.call(t,n)&&G_(e,n,t[n]);return e};function Y_(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=K_(K_({},A_),e.transition),b=UN(t=>new __(((e,t)=>H_(e,B_(t)))(K_({},e),{transition:g,register:!1,handle:EN(s),element:EN(a),target:EN(f)}),t)),v=kN(b,X_);return MN(o,()=>b.id=o),RN(()=>{$A(()=>{b.group=c,b.index=l})},[b,c,l]),MN(h,()=>b.type=h),MN(t,()=>b.accept=t,void 0,eP),MN(i,()=>i&&(b.data=i)),MN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},PN),TN(s,e=>b.handle=e),TN(a,e=>b.element=e),TN(f,e=>b.target=e),MN(u,()=>b.disabled=null!=u&&u,void 0,eP),MN(p,()=>b.sensors=p,void 0,eP),MN(n,()=>b.collisionDetector=n),MN(r,()=>b.collisionPriority=r),MN(m,()=>b.plugins=m,void 0,eP),MN(g,()=>b.transition=g,void 0,eP),MN(d,()=>b.modifiers=d,void 0,eP),MN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function X_(e,t,n){return!("isDragSource"!==e||n||!t)}const J_=({id:e,itemIndex:t,sectionIndex:n})=>sn.jsx("div",{children:`${n}:${t} - ${e}`}),Z_=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=cb(MA),o=cb(kA),i=cb(CA).at(n)??0,a=cb(EA)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=Y_({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[Lj],plugins:[i_],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??J_;return sn.jsx(gf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:sn.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[sn.jsx(xj,{isDragging:l,itemIndex:t,sectionIndex:n}),sn.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&sn.jsx(xj,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),Q_=z(({sectionIndex:e})=>{const t=cb(EA),n=cb(CA).at(e)??0,r=t({sectionIndex:e});return sn.jsxs(Td,{className:"exploration-list",style:{overflow:"auto"},children:[sn.jsx(Ip,{}),sn.jsx(Cj,{id:r,sectionIndex:e}),sn.jsx(Ip,{}),sn.jsx(wj,{sectionIndex:e}),sn.jsx(rf,{sx:{padding:"2px 8px"},children:bj(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return sn.jsx(Z_,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),ez=[QL.configure({activationConstraints:[new YL.Distance({value:5})]}),WL],tz=z(()=>{const e=cb(wA),t=cb(EA),n=ub(LA("start")),r=ub(LA("over")),o=ub(LA("end"));return sn.jsxs(VN,{sensors:ez,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[sn.jsx(Td,{style:{display:"flex",flexDirection:"column"},children:bj(e).map(e=>sn.jsx(Q_,{sectionIndex:e},t({sectionIndex:e})))}),sn.jsx(yj,{})]})}),nz=z(e=>sn.jsx(aA,{atoms:NA,atomFamilies:jA,children:sn.jsx(_A,{props:e,children:sn.jsx(tz,{})})})),rz=Jg(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(dI),a=e(zI),s=e(LI),l=e(NI);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const c=l[o];if(!c)return;const u=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,c,s);t(yI,Object.fromEntries(u.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(u)})}),oz="ChartExploration.Table.ColumnSectionEmpty.Title",iz="ChartExploration.Table.NoColumnsFound.Title",az="#177fe6",sz=Jg(e=>{const t=e(fI),n=e(hI).length>0,r=(e=>e?iz:oz)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),lz=({itemIndex:e})=>{const t=cb(OI(e));if(!t)return null;const n=t.title;return sn.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},cz=Jg(e=>{const t=e(NI),n=e(UI),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),uz=Jg(null,(e,t)=>{const n=e(NI),r=e(UI),o="all"!==e(cz)&&"disabled"!==e(cz),i=[],a=new Set(e(HI)),s=new Set(e(BI));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(jI)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(jI)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(HI,a),t(BI,s),oI({items:i,handler:e(dI),model:e(uI),currentColumnIds:e(LI),handlerQueue:e(zI)})}),dz=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},pz=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,fz=e=>{const{currentTarget:t}=e,n=pz(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},hz=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===sg.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},mz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:e.shiftKey||(Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&dz(o)})(e,t));break;case sg.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&dz(n)})(e);break;case sg.Enter:case sg.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},gz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),bz=({children:e})=>{const t=D(null),n=cb(cz),[,r]=db(uz),o=cb(fI),i={ref:t,toggleAllCheckboxes:r,checkState:n};return sn.jsxs(Td,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{mz(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${az} inset`}},children:[sn.jsx(op,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),sn.jsx(gz,{children:e})]})},vz=()=>{const e=cb(fI);return sn.jsx(bz,{children:e("Common.Columns")})},yz=F((e,t)=>sn.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:sn.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),xz=F((e,t)=>sn.jsxs("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:[sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),Sz=F((e,t)=>sn.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:sn.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),wz=$c("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),Cz=$c(Sz)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${az} inset`}})),Ez=e=>{const t=e.key===sg.Down?(e=>{const{currentTarget:t,key:n}=e,r=pz(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=hz(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):fz(e);t&&dz(t)},Rz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:if(e.shiftKey)Lm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&dz(e))}const n=fz(e);n&&dz(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void dz(t);const r=fz(e);r&&dz(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return dz(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&dz(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&dz(n),!0}const o=hz(n,r);if(!o)return!1;dz(o)}return!0})(e,t);n?Lm(e):e.stopPropagation()}break;case sg.Enter:case sg.Space:Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&dz(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void dz(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case sg.Down:case sg.Up:Lm(e),Ez(e)}},Iz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),Az={dimension:yz,measure:xz},kz=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=db(UI),s=cb(fI),l=D(null),c=D(null),u=D(null);q(()=>{t&&l.current&&t(l.current)},[t]);const d=Az[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:c,draggableIconRef:u}};return sn.jsxs(Td,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{Rz(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${az} inset`}},children:[sn.jsxs(Td,{ref:c,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{Rz(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${az} inset`}},children:[sn.jsx(op,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),sn.jsx(Td,{children:sn.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),sn.jsx(Iz,{children:n})]}),sn.jsx(Cz,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{Rz(e,f)}})]})},Pz=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=cb(OI(t));return r?sn.jsx(kz,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},Dz=()=>{const e=cb(TI),t=cb(sz),n=cb(RI),r=cb(qI),o=ub(rz);return!n&&sn.jsx(nz,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:lz,headerRenderer:vz,itemRenderer:Pz})},Mz=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),Tz=()=>{const[e,t]=db(hI),n=cb(fI),r=w.useRef(null),o=cb(TI),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return sn.jsxs(Td,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[sn.jsx(wz,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),sn.jsx(gh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:sn.jsx(Wp,{position:"start",children:sn.jsx(Mz,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},qz=e=>{const t=Rm();return sn.jsx(Bc,{theme:t,children:sn.jsx(rb,{children:sn.jsx(GI,{props:e,children:sn.jsxs(Td,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[sn.jsx(Tz,{}),sn.jsx(Dz,{})]})})})})},Oz=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:qz,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var Lz=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(Lz||{}),Nz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(Nz||{}),jz=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(jz||{}),_z=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(_z||{});const zz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Fz=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case jz.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case Lz.BEGINNING_OF_WORD:t="*^",n="*";break;case Lz.ENDS_WITH:t="*";break;case Lz.STARTS_WITH:n="*";break;case Lz.MATCHES_EXACTLY:break;case Lz.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case jz.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===Nz.GENERAL,r=t?.modifier?.type===_z.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${zz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${zz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${zz(t.firstValue?.field)})`):(i=`${zz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${zz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${zz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${zz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case jz.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case jz.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},$z=[];for(let e=0;e<256;++e)$z.push((e+256).toString(16).slice(1));const Hz=new Uint8Array(16);function Bz(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(Hz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return($z[e[t+0]]+$z[e[t+1]]+$z[e[t+2]]+$z[e[t+3]]+"-"+$z[e[t+4]]+$z[e[t+5]]+"-"+$z[e[t+6]]+$z[e[t+7]]+"-"+$z[e[t+8]]+$z[e[t+9]]+"-"+$z[e[t+10]]+$z[e[t+11]]+$z[e[t+12]]+$z[e[t+13]]+$z[e[t+14]]+$z[e[t+15]]).toLowerCase()}(t)}(e)}const Vz=()=>crypto?.randomUUID?.()??Bz(),Wz=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],Uz=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class Gz extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getDimensions().length)}}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=Wz({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:Uz({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Vz(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=Fz(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#b(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=Fz(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#b(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const Kz=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function Yz(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Xz(e){return e>0?0:1}function Jz(e){return e.translator.get("Visualizations.Descriptions.Column")}function Zz(e){return{measures:{min:Xz,max:1e3,description:()=>Jz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Yz(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;Kz(o,i)}},dimensions:{min:Xz,max:1e3,description:()=>Jz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Yz(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Kz(o,r)}}}}const Qz=e=>{const t=new Gz({},e.translator),n=(t,n)=>{e.anything.logInfo?.(t,n)};return{properties(r){if(!("qHyperCubeDef"in r&&!!r.qHyperCubeDef))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=Vz();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=Vz();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=u+d;if(0===p)return r;n("sn-table migrate: column cId issues detected",{issueCount:p,totalColumnCount:c,duplicateCount:u,missingCount:d});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n("sn-table migrate: column cId cleanup completed",{replacementCount:p}),r):r}}};let eF=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),tF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const nF=e=>{switch(e?.type){case"url":return eF.Link;case"image":return eF.Image;case"indicator":return eF.Indicator;case"miniChart":return eF.MiniChart;default:return eF.Text}},rF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),oF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>nF(e.qDef.representation)===eF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},iF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:rF({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>nF(e.qDef.representation)===eF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>nF(e.qDef.representation)===eF.Link&&e.qDef.representation?.urlPosition===tF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>nF(e.qDef.representation)===eF.Link&&e.qDef.representation?.urlPosition===tF.Attribute},...oF(n)}},aF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[eF.Image],i=!r?.("qMiniChartDef")&&t[eF.MiniChart],a=!r?.("tableIndicators")&&t[eF.Indicator],s=o&&t[eF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>nF(e.qDef.representation)===eF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var sF,lF={};var cF=(sF||(sF=1,function(e){(()=>{var t={370:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>Pe});var i=r(370),a=r.n(i);const s=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},l=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},c={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return u+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function g(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function w(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=S(f(r[0],o),b(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=f(r[0],o),d=f(r[1],o),p=b(0),h=b(1),m=S(u,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,n=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(n,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:h,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!n.showExcludedValues)return a;var s=w({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=b(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var u=b(0),d=b(1);return"If(Count(".concat(u,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!h(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return m(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,n,r){return v(e,t)+n+y(r)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===E({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=b(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(u);if(-1!==n){var r=t.indexOf(d);if(-1!==r)return t.substring(n+u.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:f,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=E({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(u),n=e.indexOf(d);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=c.OPTIONS.find(function(t){return t.value===e.decomposition});return t?c.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(c.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return c.EXPRESSIONS[n]&&r.includes(c.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var k=a().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function T(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?i:e[t],e=e[n||t]}}),e}function L(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){L(e[r],t[r])||(n=!1)}),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}P.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?k({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);L(i,a)||q(t,o)||(T(a)?r.push({op:"add",path:s,value:i}):M(i)&&M(a)?r=r.concat(P.generate(a,i,s)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(P.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){T(t[o])&&!q(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},P.apply=function(e,t){t.forEach(function(t){var n,r,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return I(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!q(n,e)&&delete n[e]}),k(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);D(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return k({},e)},P.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):k(e,t)};const N=P;var j="accumulation";function _(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function z(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getNumStepComp(n,s),p=R.getAboveComp(n,s,u,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:n,properties:r,layout:o})){var h=R.getDimComp(c,1),m=R.getDimComp(c,0),g=R.getAggrComp(f,h,m);f=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function B(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function V(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var c=a;void 0===c&&(c=R.getNumDimensions({properties:o,layout:i}));var u=l(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=R.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(r,c),h=R.getAboveComp(r,c,p,f);if(r.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),g=function(e,t){var n=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(R.needDimension({modifier:r,properties:o,layout:i})){var v=R.getDimComp(u,1),y=R.getDimComp(u,0),x=R.getAggrComp(b,v,y);b=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function K(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function Y(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?R.generateTSDExpression(n,t,r):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=R.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:c.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=K(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=K(t,e);return n&&!n.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getAboveComp(n,s,u),p="".concat(u," - ").concat(d);if(R.needDimension({modifier:n,properties:r,layout:o})){var f=R.getDimComp(c,1),h=R.getDimComp(c,0),m=R.getAggrComp(p,f,h);p=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach(function(t){void 0===e[t]&&(e[t]=ee[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}(t,e);return i&&!i.disabled}}}};var ne="normalization";function re(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===ne)return n[r]}function oe(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===ne)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ae={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function se(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ce(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(n),">"):""}const de={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a,s){var l=se(t),c=le(t,n,r),u=""===l&&""===c?"":l||c,d=ce(o,i),p=ue(o,i,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=R.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,p,s,n.primaryDimension,n.ignoreNegative)},initModifier:function(e){Object.keys(ae).forEach(function(t){void 0===e[t]&&(e[t]=ae[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(oe(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(re(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(oe(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(oe(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(oe(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(re(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(oe(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(re(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ne))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:se,getFieldSelectionComp:le,getTotalComp:ce,getSelectedDimComp:ue};var pe="library id deleted",fe="qDef.qDef",he="qDef.base.qDef",me="qLibraryId",ge="qDef.base.qLibraryId",be="qDef.qLabel",ve="qDef.qLabelExpression",ye="qDef.base.qLabel",xe="qDef.base.qLabelExpression",Se="qDef.qAggrFunc",we="qDef.base.qAggrFunc",Ce="qDef.base";const Ee={getExpression:function(e){var t=l(e,he);return void 0!==t?t:l(e,fe)},getExpressionRef:function(e){return void 0!==l(e,he)?he:fe},getLibraryIdRef:function(e){return l(e,ge)?ge:me},getLibraryId:function(e){return l(e,ge)||l(e,me)},getLabelRef:function(e){return l(e,Ce)?ye:be},getLabelExpressionRef:function(e){return l(e,Ce)?xe:ve}};var Re={initBase:function(e,t){(t||Re.isValid(e))&&(s(e,he,l(e,fe)),s(e,ge,l(e,me)),s(e,ye,l(e,be)),s(e,xe,l(e,ve)))},restoreBase:function(e){Re.isValid(e)&&(s(e,fe,l(e,he)),s(e,me,l(e,ge)),s(e,be,l(e,ye)),s(e,ve,l(e,xe)),l(e,Se)&&l(e,we)&&s(e,Se,l(e,we)),delete e.qDef.base)},isValid:function(e){var t=l(e,he),n=l(e,ge);return void 0!==t||void 0!==n}};const Ie=Re;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var ke={accumulation:$,movingAverage:U,difference:te,normalization:de,timeSeriesDecomposition:J};const Pe={modifiers:ke,apply:Me,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:Ee,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Xe({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:Ne};var De={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,o=void 0!==r&&r,i=e.masterItem,s=!1;De[t.id]=De[t.id]||{isFirstTime:!0};var c=De[t.id].isFirstTime;if(De[t.id].isFirstTime=!1,n&&"object"===Ae(n))return Te({model:t,properties:n});var u=t?t.layout:void 0,d=l(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(u,"qHyperCube.qMeasureInfo"),f=De[t.id].lastReloadTime;if(De[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return We({modifiers:_e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:i,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var n=a()(!0,{},e);Fe(n);var r=Je(n);return Ue({model:t}).then(function(o){return Ge({libraryIds:r,model:t}).then(function(r){return h&&function(e){var t=e.properties;je(t).forEach(function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:n}),Te({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:r,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(s)})}):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,n=e.properties,r=Je(n);return Ze({model:t,libraryIds:r}).then(function(){var e=a()(!0,{},n);return je(n).forEach(function(e){return qe(e)}),Ye({oldProperties:e,newProperties:n,model:t})})}({model:t,properties:e})}):Promise.resolve(s)}function Te(e){var t=e.model,n=e.oldProperties,r=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?a()(!0,{},r):r),Fe(r);var p=Je(r);return Ze({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,n=e.properties,r=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=je(n)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:n}))return t.forEach(function(e){return qe(e)}),Promise.resolve();var s=o?void 0:Je(n);return Ue({model:r,dimensionAndFieldList:i}).then(function(e){return Ge({libraryIds:s,model:r,libraryItemsProps:o}).then(function(r){t.forEach(function(t){var o=t.qDef.modifiers;r&&We({modifiers:o,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Ie.isValid(t)||Ie.initBase(t,!0);var s=t.qDef,c=s.modifiers,u=s.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(i++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,t);var s=t.qLibraryId||u&&u.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=l,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:o}):function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,r.qHyperCubeDef);var i=Ee.getExpression(t),s=""===i?i:ke[n.type].generateExpression({expression:i,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=s,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),$e(t)):qe(t)})})})}({measures:o,properties:r,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return s?Ye({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function qe(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!ke[e.type]})}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:n,layout:r})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function Ne(e){var t=Le(e);return!t||ke[t.type].enableTotalsFunction(e)}function je(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Fe(e){je(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&ze(t)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)})}function $e(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!ke[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&We({modifiers:_e(t),properties:n,layout:r})}function We(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):function(e,t,n){if(!e)return Promise.resolve();var r=N.generate(t,n);return a()(!0,t,n),r&&r.length?(r=r.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(r,!0)):Promise.resolve()}(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Xe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Je(e){var t=je(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=_e(t);if(We({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Xe({modifiers:r,properties:e})}}),l(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ze(e){var t=e.model,n=e.libraryIds,r=e.masterItem;return!r&&r!==pe&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=l(e,"qInfo.qType");return n&&a[n]&&a[n].forEach(function(n){t[n]=l(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(){Object.keys(r).forEach(function(e){o[e]||i[e]||(r[e].listener.dispose(),r[e].unbindCloseListnener(),delete r[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,n(pe),delete r[e],void u();var e}),enabled:!1,properties:s(t.layout)}}).catch(function(){})}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose(),r[e].unbindCloseListnener()}),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}for(var Qe in e.default=o.default,o)-1===["default"].indexOf(Qe)&&(e[Qe]=o[Qe]);Object.defineProperty(e,"__esModule",{value:!0})})()}(lF)),lF),uF=en(cF);const dF="TOTAL_OFF",pF={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},fF={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},hF=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!uF.hasActiveModifiers({measures:[e],properties:t.properties})||uF.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),mF={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ug.Auto,translation:"Common.Auto"},{value:ug.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ug.Pixels,translation:"Object.Table.Column.Pixels"},{value:ug.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ug.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===ug.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===ug.Percentage}},gF=e=>({...pF,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...fF,...mF}),bF=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:dF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:dF,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==dF},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),vF=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:hF(e)}},yF=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:bF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...gF(e),...iF(e)}}}}}),xF=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:vF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...gF(e),...aF(e,{[eF.Image]:!0,[eF.Indicator]:!0,[eF.MiniChart]:!0})}}}}}),SF=e=>({...yF(e),...xF(e)}),wF=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...SF(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),CF=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),EF=e=>CF("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),RF={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},IF=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),AF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),kF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},PF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>kF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Ee(r).filter(e=>!a.includes(e)).map(e=>kF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),DF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],MF=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>kF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...DF.filter(e=>!i.includes(e)).map(e=>kF(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),TF=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:PF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:MF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:AF(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:AF(`${e}.background`,"properties.background",(t,n)=>{const r=n?km.WHITE:km.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),qF=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?EF(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:AF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:AF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),OF=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},LF=e=>e.grid?.zebraStripes?.show,NF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},jF=e=>e?.content?.hoverEffect,_F={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:jF,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:jF,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},zF=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,FF=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),$F=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:TF({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:OF,disableNoneCallback:zF}),dimensionValueSection:TF({section:"dimensionValues",translator:t,flags:e,getThemeValue:OF}),measureValueSection:TF({section:"measureValues",translator:t,flags:e,getThemeValue:OF}),totalRowSection:TF({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:OF,disableNoneCallback:zF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?TF({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:OF,disableNoneCallback:zF}):void 0,...FF(e)?{dimensionNullSection:qF({section:"dimensionNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:OF,isNullValueText:!0}),nullValues:qF({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:OF,isNullValueText:!0})}:{nullValues:qF({section:"nullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:OF,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...NF},border:AF("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??km.BORDER_MEDIUM),divider:AF("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??km.BORDER_HEAVY)}}}},hoverEffectSection:_F,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:LF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:LF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:LF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:LF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),HF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[$F(e),IF(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:EF()]},...RF}}),BF={uses:"sorting"},VF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},WF=e=>({type:"items",component:"accordion",items:{data:wF(e),sorting:BF,addOns:VF,settings:HF(e)}});function UF(e){return{definition:WF(e),exploration:Oz(e),data:Zz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,n,r,o){const i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Cv({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new Gz(t,e.translator),usePropertyHandler:"sn-table-data"},migrate:Qz(e)}}const GF=e=>{const t=e.get(ev);return a(()=>()=>{t.unmount()},[t]),t};var KF,YF={exports:{}};
102
+ */function xR(){if(gR)return GS;gR=1,Object.defineProperty(GS,"__esModule",{value:!0}),GS.default=function(t){return(0,e.createStyles)(t)};var e=yR;return GS}var SR,wR,CR={},ER={};function RR(){if(SR)return ER;SR=1;var e=Xl();Object.defineProperty(ER,"__esModule",{value:!0}),ER.default=void 0;var t=(0,e(BS()).default)();return ER.default=t,ER}function IR(){if(wR)return CR;wR=1;var e=Xl();Object.defineProperty(CR,"__esModule",{value:!0}),CR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,n.makeStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return CR.default=o,CR}var AR,kR,PR={},DR={};function MR(){if(AR)return DR;AR=1;var e=Xl();Object.defineProperty(DR,"__esModule",{value:!0}),DR.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},DR.getUnit=n,DR.toUnitless=r,DR.convertLength=function(e){return function(t,o){var i=n(t);if(i===o)return t;var a=r(t);if("px"!==i)if("em"===i)a=r(t)*r(e);else if("rem"===i)return a=r(t)*r(e),t;var s=a;if("px"!==o)if("em"===o)s=a/r(e);else{if("rem"!==o)return t;s=a/r(e)}return parseFloat(s.toFixed(5))+o}},DR.alignProperty=function(e){var t=e.size,n=e.grid,r=t-t%n,o=r+n;return t-r<o-t?r:o},DR.fontGrid=function(e){var t=e.lineHeight,n=e.pixels,r=e.htmlFontSize;return n/(t*r)},DR.responsiveProperty=function(e){var n=e.cssProperty,r=e.min,o=e.max,i=e.unit,a=void 0===i?"rem":i,s=e.breakpoints,l=void 0===s?[600,960,1280]:s,c=e.transform,u=void 0===c?null:c,d=(0,t.default)({},n,"".concat(r).concat(a)),p=(o-r)/l[l.length-1];return l.forEach(function(e){var o=r+p*e;null!==u&&(o=u(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},n,"".concat(Math.round(1e4*o)/1e4).concat(a))}),d};var t=e(iy());function n(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(e){return parseFloat(e)}return DR}function TR(){if(kR)return PR;kR=1;var e=Xl();Object.defineProperty(PR,"__esModule",{value:!0}),PR.default=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.breakpoints,a=void 0===i?["sm","md","lg"]:i,s=o.disableAlign,l=void 0!==s&&s,c=o.factor,u=void 0===c?2:c,d=o.variants,p=void 0===d?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:d,f=(0,t.default)({},e);f.typography=(0,t.default)({},f.typography);var h=f.typography,m=(0,r.convertLength)(h.htmlFontSize),g=a.map(function(e){return f.breakpoints.values[e]});return p.forEach(function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/u,c=o.lineHeight;if(!(0,r.isUnitless)(c)&&!l)throw new Error((0,n.formatMuiErrorMessage)(6));(0,r.isUnitless)(c)||(c=parseFloat(m(c,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,r.alignProperty)({size:e,grid:(0,r.fontGrid)({pixels:4,lineHeight:c,htmlFontSize:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,r.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}}),f};var t=e(Ac()),n=Kv,r=MR();return PR}var qR,OR={};function LR(){if(qR)return OR;qR=1;var e=Xl();Object.defineProperty(OR,"__esModule",{value:!0}),OR.default=void 0;var t=e(Ac()),n=yR,r=e(RR()),o=function(e){var o=(0,n.styled)(e);return function(e,n){return o(e,(0,t.default)({defaultTheme:r.default},n))}};return OR.default=o,OR}var NR,jR={};function _R(){if(NR)return jR;NR=1;var e=Xl();Object.defineProperty(jR,"__esModule",{value:!0}),jR.default=function(){return(0,t.useTheme)()||n.default};var t=yR;e(w);var n=e(RR());return jR}var zR,FR={};function $R(){if(zR)return FR;zR=1;var e=Xl();Object.defineProperty(FR,"__esModule",{value:!0}),FR.default=void 0;var t=e(Ac()),n=yR,r=e(RR());var o=function(e,o){return(0,n.withStyles)(e,(0,t.default)({defaultTheme:r.default},o))};return FR.default=o,FR}var HR,BR,VR={};function WR(){if(HR)return VR;HR=1;var e=Xl();Object.defineProperty(VR,"__esModule",{value:!0}),VR.default=void 0;var t=yR,n=e(RR()),r=(0,t.withThemeCreator)({defaultTheme:n.default});return VR.default=r,VR}function UR(){return BR||(BR=1,function(e){var t=Xl(),n=(Rv||(Rv=1,function(e){var t=Pv().default;function n(r,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=n=function(e,n){if(!n&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(r=n?a:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(r,o)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Av)),Av.exports);Object.defineProperty(e,"__esModule",{value:!0});var r={createTheme:!0,createMuiTheme:!0,unstable_createMuiStrictModeTheme:!0,createStyles:!0,makeStyles:!0,responsiveFontSizes:!0,styled:!0,useTheme:!0,withStyles:!0,withTheme:!0,createGenerateClassName:!0,jssPreset:!0,ServerStyleSheets:!0,StylesProvider:!0,MuiThemeProvider:!0,ThemeProvider:!0};Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createMuiTheme",{enumerable:!0,get:function(){return i.createMuiTheme}}),Object.defineProperty(e,"unstable_createMuiStrictModeTheme",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"createStyles",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"makeStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"responsiveFontSizes",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useTheme",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"withStyles",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"withTheme",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=Yv();Object.keys(o).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))});var i=n(BS()),a=t(US()),s=t(xR()),l=t(IR()),c=t(TR()),u=t(LR()),d=_S();Object.keys(d).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))});var p=t(_R()),f=t($R()),h=t(WR()),m=yR}(Iv)),Iv}var GR=UR();GR.alpha(Bt.GREYSCALE_0,.05),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),GR.alpha(Bt.GREEN_PALE,.5),GR.alpha(Bt.BLUE_PALE,.5),t.meta.env&&t.meta.env.MODE;!function(e=()=>{try{return window.localStorage}catch(e){return void("production"!==(t.meta.env?t.meta.env.MODE:void 0)&&"undefined"!=typeof window&&console.warn(e))}},n){var r;let o,i;const a={getItem:(t,r)=>{var a,s;const l=e=>{if(o!==(e=e||"")){try{i=JSON.parse(e,null==n?void 0:n.reviver)}catch(e){return r}o=e}return i},c=null!=(s=null==(a=e())?void 0:a.getItem(t))?s:null;return(e=>"function"==typeof(null==e?void 0:e.then))(c)?c.then(l):l(c)},setItem:(t,n)=>{var r;return null==(r=e())?void 0:r.setItem(t,JSON.stringify(n,void 0))},removeItem:t=>{var n;return null==(n=e())?void 0:n.removeItem(t)}};let s;try{s=null==(r=e())?void 0:r.subscribe}catch(e){}var l;!s&&"undefined"!=typeof window&&"function"==typeof window.addEventListener&&window.Storage&&(s=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};const r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}}),s&&(a.subscribe=(l=s,(e,t,r)=>l(e,e=>{let o;try{o=JSON.parse(e||"",null==n?void 0:n.reviver)}catch(e){o=r}t(o)})))}();const KR=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),YR=new WeakMap,XR=()=>{};function JR(e,n=XR){return((e,t,n)=>{const r=KR(()=>new WeakMap,YR,t);return KR(e,r,n)})(()=>{const r=new WeakMap,o=new WeakMap,i=Jg(0),a=Jg([]);a.INTERNAL_onInit=e=>{e.set(a,[()=>e.set(i,e=>e+1)])},"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(i.debugPrivate=!0,a.debugPrivate=!0);const s=Jg(t=>{let l;t(i);try{l=t(s)}catch(e){}const c=t(e);if(!(e=>"function"==typeof(null==e?void 0:e.then))(c))return{v:c};if(c!==(null==l?void 0:l.p)&&c.then(e=>{o.set(c,e);const[n]=t(a);n()},e=>{r.set(c,e);const[n]=t(a);n()}),r.has(c))throw r.get(c);return o.has(c)?{p:c,v:o.get(c)}:l&&"v"in l?{p:c,f:n(l.v),v:l.v}:{p:c,f:n()}});return s.init=void 0,"production"!==(t.meta.env?t.meta.env.MODE:void 0)&&(s.debugPrivate=!0),Jg(e=>{const t=e(s);return"f"in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,n)}const ZR=new WeakMap;function QR(e,t){const n=nb(t),r=eI(n);for(const[o,...i]of e)r.has(o)&&!(null==t?void 0:t.dangerouslyForceHydrate)||(r.add(o),n.set(o,...i))}const eI=e=>{let t=ZR.get(e);return t||(t=new WeakSet,ZR.set(e,t)),t};function tI(){return Boolean("undefined"!=typeof process&&process.env?.NODE_ENV&&!1)}function nI(e){const t=Jg(()=>[]),n=Jg(function(e){const[r,o,i]=e(t);i.has(n)&&(r.forEach(e),++o.n)});return n.effect=e,n.INTERNAL_onInit=e=>{const r=Gg(e),o=r[1],i=r[3],a=Rg(r[6]),s=r[11],l=r[12],c=r[13],u=r[14],d=r[15],p=r[16],f=r[17],h=r[20],m=new Set;let g,b=0,v=!1,y=!1,x=!1;function S(){if(b)return;m.clear();let t=!0;const w=i=>{if(x)return e.get(i);if(i===n){const t=s(r,e,i);if(!yg(t)){if(!bg(i))throw new Error("no atom init");h(r,e,i,i.init)}return xg(t)}const a=u(r,e,i);try{return xg(a)}finally{C.d.set(i,a.n),o.get(i)?.t.add(n),t?m.add(i):o.has(i)&&(f(r,e,n),c(r,e),l(r,e))}};w.peek=e.get;const E=(o,...u)=>{const m=s(r,e,o);try{if(++b,o===n){if(!bg(o))throw new Error("atom not writable");const t=m.n,n=u[0];return h(r,e,o,n),f(r,e,o),void(t!==m.n&&(i.add(o),a.c?.(o),d(r,e,o)))}return p(r,e,o,u)}finally{t||(c(r,e),l(r,e)),--b}};E.recurse=(t,...o)=>{if(x){if(tI())throw new Error("set.recurse is not allowed in cleanup")}else try{return v=!0,f(r,e,n),E(t,...o)}finally{c(r,e),v=!1,y&&(y=!1,S())}};try{g?.();const e=n.effect(w,E);if("function"!=typeof e)return;g=()=>{if(!b)try{return t=!0,x=!0,e()}finally{t=!1,x=!1,g=void 0}}}finally{t=!1,m.forEach(t=>{C.d.set(t,s(r,e,t).n)}),f(r,e,n),c(r,e)}}const w=function(e,t){let n=rI.get(e);n||(n=new Set,rI.set(e,n),t.f.add(function(){for(const e of n)n.delete(e),e()}));return n}(e,a),C=s(r,e,n);C.v=void 0,Object.assign(e.get(t),[m,C,o]),a.c.add(n,function(){i.delete(n)}),a.m.add(n,function(){w.add(S),g&&w.delete(g)}),a.u.add(n,function(){w.delete(S),g&&w.add(g)}),a.c.add(n,function(){v?y=!0:w.add(S)})},tI()&&(Object.defineProperty(t,"debugLabel",{get:()=>n.debugLabel?`${n.debugLabel}:ref`:void 0,configurable:!0,enumerable:!0}),t.debugPrivate=!0),n}const rI=new WeakMap;const oI=async(e,t)=>{if("dimension"===e.type)if(e.isAlternative)try{await t.moveDimensionFromAlternative(e.id)}catch(t){console.error(`Failed to move dimension ${e.id} from alternative`,t)}else try{await t.moveDimensionToAlternative(e.id)}catch(t){console.error(`Failed to move dimension ${e.id} to alternative`,t)}if("measure"===e.type)if(e.isAlternative)try{await t.moveMeasureFromAlternative(e.id)}catch(t){console.error(`Failed to move measure ${e.id} from alternative`,t)}else try{await t.moveMeasureToAlternative(e.id)}catch(t){console.error(`Failed to move measure ${e.id} to alternative`,t)}},iI=e=>{const{items:t,handler:n,model:r,handlerQueue:o}=e;void 0!==n&&void 0!==r&&o&&o.add(async()=>{for(const e of t)await oI(e,n)})},aI=Jg(),sI=Jg(),lI=Jg(),cI=Jg(e=>e(lI)?.translate??(e=>e)),uI=Jg(""),dI=Jg(e=>{const t=e(uI).toLowerCase().trim();return({title:e})=>e.toLowerCase().trim().includes(t)});class pI{#e=[];#t=!1;#n=!1;#r;#o;#i;#a;constructor({onQueueCompleted:e}){this.#r=e}#s(){this.#o=void 0,this.#i=void 0,this.#a=void 0}pause(){this.#o&&(clearTimeout(this.#a),this.#i?.(),this.#s());const{promise:e,resolve:t}=Promise.withResolvers();this.#o=e,this.#i=t,this.#a=setTimeout(()=>{this.abort("Aborting queue after being paused for too long")},6e4)}async continue(e=0){const t=this.#i;await(e=>new Promise(t=>{setTimeout(t,e)}))(e),t===this.#i&&(t?.(),clearTimeout(this.#a),this.#s())}abort(e="Queue aborted"){clearTimeout(this.#a),(this.#e.length>0||this.#t)&&console.warn(`[SequentialPromiseQueue] ${e}`),this.#n=!0,this.#e=[],this.#i?.(),this.#s()}add(e){this.#e.push(e),this.#t||this.#l()}async#l(){if(!this.#t){for(this.#t=!0,this.#n=!1;this.#e.length>0;)if(this.#o)await this.#o;else try{const e=this.#e.shift();await(e?.())}catch(e){return console.error("[SequentialPromiseQueue] Error executing action:",e),this.#e=[],void(this.#t=!1)}try{this.#n||await(this.#r?.())}catch(e){console.error("[SequentialPromiseQueue] Error executing onQueueCompleted:",e)}finally{this.#t=!1,this.#e.length>0&&this.#l()}}}}const fI=Jg(null),hI=nI((e,t)=>{const n=e(aI),r=e(sI),o=new pI({onQueueCompleted:async()=>{if(!n||!r)return;const e=r.properties.qHyperCubeDef,t=Date.now();e.qDimensions.length&&Object.assign(e.qDimensions[0],{patchTimeStamp:t}),e.qMeasures.length&&Object.assign(e.qMeasures[0],{patchTimeStamp:t}),await n.applyPatches([{qPath:"/qHyperCubeDef",qOp:"replace",qValue:JSON.stringify(r.properties.qHyperCubeDef)}],!0)}});t(fI,o);const i=()=>{o.pause()},a=()=>{o.continue(500)},s=()=>{o.abort()};return n?.Invalidated?.bind(i),n?.Validated?.bind(a),n?.Cancelled?.bind(s),n?.Closing?.bind(s),()=>{o.abort(),n?.Invalidated?.unbind(i),n?.Validated?.unbind(a),n?.Cancelled?.unbind(s),n?.Closing?.unbind(s)}}),mI=e=>7005!==e.qError?.qErrorCode,gI=new WeakMap,bI={qInfo:{qType:"AlternativeLayout"},qHyperCubeDef:{qMode:"S",qDimensions:[],qMeasures:[],qInitialDataFetch:[{qTop:0,qLeft:0,qHeight:0,qWidth:0}],excludedNoOfLeftDims:-1,qCalcCond:{qv:"0"}}},vI=JR(Jg(async e=>{const t=e(aI);if(t){if(gI.has(t))return gI.get(t);try{const e=await t.app.createSessionObject(bI);return gI.set(t,e),e}catch(e){return void console.error("Error creating alternative layout model:",e)}}})),yI=Jg(null),xI=Jg(),SI=nI((e,t)=>{const n=e(aI),r=e(vI);if(!n||!r)return;const o=async()=>{const e=await n.getLayout();if(e.qSelectionInfo?.qInSelections)return;const o=await n.getEffectiveProperties();await r.applyPatches([{qOp:"replace",qPath:"/qHyperCubeDef/qDimensions",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qDimensions??[])},{qOp:"replace",qPath:"/qHyperCubeDef/qMeasures",qValue:JSON.stringify(o.qHyperCubeDef.qLayoutExclude?.qHyperCubeDef?.qMeasures??[])}]);const i=await r.getLayout();t(xI,{layout:structuredClone(e),properties:structuredClone(o),altLayout:structuredClone(i)}),t(yI,null)};return o(),n.Invalidated?.bind(o),()=>{n.Invalidated?.unbind(o)}}),wI=Jg(e=>e(xI)?.layout),CI=Jg(e=>e(xI)?.altLayout),EI=Jg(e=>e(xI)?.properties),RI=Jg(e=>void 0===e(wI)||void 0===e(EI)),II=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qDimensionInfo.filter(mI)??[]}),AI=Jg(e=>{const t=e(xI)?.layout;return t?.qHyperCube.qMeasureInfo.filter(mI)??[]}),kI=Jg(e=>{const t=[...e(II),...e(AI)].map(e=>e.cId);return new Set(t)}),PI=Jg(new Set),DI=Jg(new Set),MI=Jg(e=>{const t=e(PI),n=e(DI);return e(kI).difference(n).union(t)}),TI=nI((e,t)=>{e(kI),t(PI,new Set),t(DI,new Set)}),qI=Jg(e=>e(MI),(e,t,n)=>{if("string"!=typeof n.id)return;const r=e(MI).has(n.id),o=new Set(e(DI)),i=new Set(e(PI));r?(o.add(n.id),i.delete(n.id)):(i.add(n.id),o.delete(n.id)),t(DI,o),t(PI,i),iI({items:[n],handler:e(sI),model:e(aI),handlerQueue:e(fI)})}),OI=({props:e,children:t})=>(QR([[aI,e.args.model],[lI,e.args.apis],[sI,e.args.handler]]),cb(SI),cb(hI),cb(TI),t);function LI(e,t){const n=new Set(e),r=new Set(t);return e===t||n.size===r.size&&Array.from(n).every(r.has.bind(r))}function NI(e){return"write"in e}const jI=new WeakMap,_I={},{read:zI,write:FI}=Jg(null);function $I(e,t,n){const[r,o,i,,a]=e,s=r.get(t);if(s)return s;if(n===e){let r=o.get(t);return r||(r=[WI(e,t,n),n],o.set(t,r)),r}const l=n??_I;let c=i.get(l);c||(c=new WeakMap,i.set(l,c));let u=c.get(t);if(!u){const[r,o]=a?$I(a,t,n):[t];u=[t.read===zI?r:WI(e,t,o),o],c.set(t,u)}return u}function HI(e){for(const t of e[5])t()}function BI(e,t,n,r,o){if(n.read===zI&&NI(n)&&NI(t)&&n.write!==FI&&e!==r){const{write:i}=n;return t.write=VI(e,n.write.bind(n),r,o),()=>{t.write=i}}}function VI(e,t,n,r=n){return function(o,i,...a){return t(function(t){const[r]=$I(e,t,n);return o(r)},function(t,...o){const[a]=$I(e,t,n),s=BI(e,a,t,n,r);try{return i(a,...o)}finally{null==s||s()}},...a)}}function WI(e,t,n){const r=Object.getOwnPropertyDescriptors(t);Object.keys(r).filter(e=>["read","write","debugLabel"].includes(e)).forEach(e=>r[e].configurable=!0);const o=Object.getPrototypeOf(t),i=Object.create(o,r);return i.read!==zI&&(i.read=function(e,t,n){return function(r,o){return t(function(t){const[o]=$I(e,t,n);return r(o)},o)}}(e,t.read.bind(t),n)),NI(i)&&NI(t)&&i.write!==FI&&(i.write=VI(e,t.write.bind(t),n)),i}function UI({atoms:e=[],atomFamilies:t=[],parentStore:n,name:r}){const o=new WeakSet(e),i=jI.get(n),a=(null==i?void 0:i[3])??n,s=[new WeakMap,new WeakMap,new WeakMap,a,i,new Set,void 0],l=s[0],c=s[5],u=function(e){const t=e[3],n=[...Gg(t)],r=n[21],o=n[22],i=n[23],a={};let s,l;return n[21]=h(r),n[22]=p,n[23]=h(i),n[24]=function(e){return s??(s=m(e[0],c)),l??(l=[s,m(e[1],u),m(e[2]),g(e[3]),e[4],e[5],v(e[6]),h(e[7]),h(e[8]),h(e[9]),h(e[10]),d(s,e[11]),(t,...r)=>e[12](n,...r),(t,...r)=>e[13](n,...r),h(e[14]),h(e[15]),h(e[16]),h(e[17]),h(e[18]),h(e[19]),h(e[20]),h(e[21]),h(e[22]),h(e[23]),()=>e,e[25],(t,...r)=>e[26](n,...r),(t,...r)=>e[27](n,...r),e[28],...e.slice(25)]),l},Kg(...n);function c(t){const n=new WeakMap;return function(r){let o=n.get(r);if(o)return o;const i=t(r);if(!i)return;let a,s;return o=new Proxy(i,{get:(t,n)=>"d"===n?a??(a=m(i.d,function(t){return n=>t($I(e,n)[0])})):"p"===n?s??(s=g(i.p)):Reflect.get(i,n)}),n.set(r,o),o}}function u(e){const t=new WeakMap;return function(n){let r=t.get(n);if(r)return r;const o=e(n);return o?(r={...o,d:g(o.d),t:g(o.t),get u(){return o.u},set u(e){o.u=e}},t.set(n,r),r):void 0}}function d(e,t){const n=h(t);return function(t,r,o){const i=e.get(o);if(i)return i;const a=n(t,r,o);return e.set(o,a),e.get(o)}}function p(t,n,r,...i){const[a,s]=$I(e,r),l=BI(e,a,r,s,e);try{return o(t,n,a,...i)}finally{null==l||l()}}function f(t,n){return function(r,...o){const[i]=$I(e,r);return(n?n(t):t)(i,...o)}}function h(t){return function(r,o,i,...a){const[s]=$I(e,i);return t(n,o,s,...a)}}function m(e,t){const n={get:f(e.get.bind(e),t),set:f(e.set.bind(e)),has:f(e.has.bind(e)),delete:f(e.delete.bind(e))};if("function"==typeof e.keys){const t=e,r=n;r.keys=t.keys.bind(t),r[Symbol.iterator]=t[Symbol.iterator].bind(t),Object.defineProperty(n,"size",{enumerable:!1,configurable:!0,get:()=>t.size})}return n}function g(t){return{get size(){return t.size},add:f(t.add.bind(t)),has:f(t.has.bind(t)),delete:f(t.delete.bind(t)),clear:t.clear.bind(t),forEach:e=>t.forEach(f(e)),*[Symbol.iterator](){for(const n of t)yield $I(e,n)[0]}}}function b(t){if(!t)return;const n=f(t);return n.add=function(n,r){if(void 0===n)return t.add(void 0,r);const[o]=$I(e,n);return t.add(o,r)},n}function v(e){const t={get f(){return e.f},set f(t){e.f=t}};return Object.defineProperties(t,Object.fromEntries(["r","c","m","u"].map(t=>[t,{get:()=>a[t]??(a[t]=b(e[t])),set(n){delete a[t],e[t]=n},configurable:!0,enumerable:!0}]))),Object.assign(t,e)}}(s);s[6]=u,Object.assign(u,{name:r}),jI.set(u,s);for(const t of new Set(e))l.set(t,[WI(s,t,s),s]);for(const e of new Set(t)){for(const t of e.getParams()){const n=e(t);l.has(n)||l.set(n,[WI(s,n,s),s])}const t=e.unstable_listen(({type:e,atom:t})=>{"CREATE"!==e||l.has(t)?"REMOVE"===e&&!o.has(t)&&l.delete(t):l.set(t,[WI(s,t,s),s])});c.add(t)}return u}const GI=function(e,t){return function(n){const{atoms:r=[],atomFamilies:o=[],children:i,scope:a,name:s}=n,l=t(),c=Array.from(r,e=>Array.isArray(e)?e[0]:e);function u(){return[a??UI({atoms:c,atomFamilies:o,parentStore:l,name:s}),function(e){return l!==e.parentStore||!LI(c,e.atoms)||!LI(o,e.atomFamilies)||a!==e.providedScope}]}const[[d,p],f]=P(u);if(p({atoms:c,atomFamilies:o,parentStore:l,providedScope:a})){const e=jI.get(d);e&&HI(e),f(u)}return QR(Array.from(r).filter(Array.isArray),{store:d}),q(()=>{const e=jI.get(d);return()=>{e&&HI(e)}},[d]),C(e,{store:d,children:i})}}(rb,nb);var KI=Object.defineProperty,YI=Object.defineProperties,XI=Object.getOwnPropertyDescriptors,JI=Object.getOwnPropertySymbols,ZI=Object.prototype.hasOwnProperty,QI=Object.prototype.propertyIsEnumerable,eA=(e,t,n)=>t in e?KI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tA=(e,t)=>{for(var n in t||(t={}))ZI.call(t,n)&&eA(e,n,t[n]);if(JI)for(var n of JI(t))QI.call(t,n)&&eA(e,n,t[n]);return e},nA=(e,t)=>YI(e,XI(t));function rA(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function oA(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function iA(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function aA(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(iA(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&iA(i)){const r=null==i.initialGroup?void 0:oA(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:oA(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return nA(tA({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return nA(tA({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=oA(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&iA(i)){const t=null==i.group?void 0:oA(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return nA(tA({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return nA(tA({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return nA(tA({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return nA(tA({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,rA)}function sA(e,t){let n=null;const r=new Map,o=new Set;function i(o){let s;if(void 0===t)s=r.get(o);else for(const[e,n]of r)if(t(e,o)){s=n;break}if(void 0!==s){if(!n?.(s[1],o))return s[0];i.remove(o)}const l=e(o);return r.set(o,[l,Date.now()]),a("CREATE",o,l),l}function a(e,t,n){for(const r of o)r({type:e,param:t,atom:n})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>r.keys(),i.remove=e=>{if(void 0===t){if(!r.has(e))return;const[t]=r.get(e);r.delete(e),a("REMOVE",e,t)}else for(const[n,[o]]of r)if(t(n,e)){r.delete(n),a("REMOVE",n,o);break}},i.setShouldRemove=e=>{if(n=e,n)for(const[e,[t,o]]of r)n(o,e)&&(r.delete(e),a("REMOVE",e,t))},i}const lA=({itemIndex:e,sectionIndex:t})=>void 0!==e?`${t}-${e}`:`${t}`,cA=Jg(),uA=Jg(e=>e(cA)?.numberOfSections??0),dA=Jg(e=>e(cA)?.numberOfItemsInSection??[]),pA=Jg(e=>e(cA)?.keyExtractor??lA),fA=Jg(e=>e(cA)?.emptyTexts??(()=>({title:"No items",message:"There are no items to display."}))),hA=Jg(e=>e(cA)?.onDragEnd),mA=Jg(e=>e(cA)?.onDragOver),gA=Jg(e=>e(cA)?.itemRenderer),bA=Jg(e=>e(cA)?.headerRenderer),vA=Jg(e=>e(cA)?.dragOverlayRenderer),yA=Jg(e=>e(cA)?.onClick),xA=Jg(e=>{const t=e(uA),n=e(dA),r=e(pA),o={};for(let e=0;e<t;e++)o[e]=Array.from({length:n[e]},(t,n)=>r({sectionIndex:e,itemIndex:n}));return o}),SA=Jg(null),wA=Jg(e=>e(SA),(e,t,n)=>{if(null===n)return void t(SA,null);const r=e(SA);t(SA,{...r,...n})}),CA=sA(e=>Jg(null,(t,n,r)=>{let o;"over"===e?o=t(mA):"end"===e&&(o=t(hA),n(wA,null));const{source:i,target:a}=r.operation;if("start"===e)return void n(wA,{id:i.id,startSection:i.data.sectionKey,startIndex:i.data.itemIndex,startSectionIndex:i.data.sectionIndex});if(null===a)return void n(wA,{toIndex:void 0,toSectionIndex:void 0});const s=i.data.sectionIndex!==a.data.sectionIndex;let l;if(s){const e=aA(t(xA),r)[a.data.sectionIndex].indexOf(i.id);l=-1!==e?e:a.sortable?.index??0}else l=a.sortable?.index??0;if("over"===e){const e=t(wA)?.startIndex;n(wA,{toIndex:!s&&void 0!==e&&l>e?l+1:l,toSectionIndex:a.data.sectionIndex})}o?.({id:i.id,toIndex:l,toSection:a.data.sectionKey,fromSection:i.data.sectionKey,startSection:t(wA)?.startSection??i.data.sectionKey,event:r})})),EA=[cA,uA,dA,pA,fA,hA,gA,bA,yA,wA],RA=[CA],IA=({props:e,children:t})=>{const n=ub(cA);return j(()=>{n(e)},[e,n]),t};var AA=Symbol.for("preact-signals");function kA(){if(qA>1)qA--;else{var e,t=!1;for(!function(){var e=jA;for(jA=void 0;void 0!==e;)e.S.v===e.v&&(e.S.i=e.i),e=e.o}();void 0!==TA;){var n=TA;for(TA=void 0,OA++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&HA(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(OA=0,qA--,t)throw e}}function PA(e){if(qA>0)return e();NA=++LA,qA++;try{return e()}finally{kA()}}var DA=void 0;function MA(e){var t=DA;DA=void 0;try{return e()}finally{DA=t}}var TA=void 0,qA=0,OA=0,LA=0,NA=0,jA=void 0,_A=0;function zA(e){if(void 0!==DA){var t=e.n;if(void 0===t||t.t!==DA)return t={i:0,S:e,p:DA.s,n:void 0,t:DA,e:void 0,x:void 0,r:t},void 0!==DA.s&&(DA.s.n=t),DA.s=t,e.n=t,32&DA.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=DA.s,t.n=void 0,DA.s.n=t,DA.s=t),t}}function FA(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function $A(e,t){return new FA(e,t)}function HA(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function BA(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function VA(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function WA(e,t){FA.call(this,void 0,t),this.x=e,this.s=void 0,this.g=_A-1,this.f=4}function UA(e,t){return new WA(e,t)}function GA(e){var t=e.m;if(e.m=void 0,"function"==typeof t){qA++;var n=DA;DA=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,KA(e),t}finally{DA=n,kA()}}}function KA(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,GA(e)}function YA(e){if(DA!==this)throw new Error("Out-of-order effect");VA(this),DA=e,this.f&=-2,8&this.f&&KA(this),kA()}function XA(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name}function JA(e,t){var n=new XA(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}FA.prototype.brand=AA,FA.prototype.h=function(){return!0},FA.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:MA(function(){var e;null==(e=t.W)||e.call(t)}))},FA.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&MA(function(){var e;null==(e=t.Z)||e.call(t)}))}},FA.prototype.subscribe=function(e){var t=this;return JA(function(){var n=t.value;MA(function(){return e(n)})},{name:"sub"})},FA.prototype.valueOf=function(){return this.value},FA.prototype.toString=function(){return this.value+""},FA.prototype.toJSON=function(){return this.value},FA.prototype.peek=function(){var e=this;return MA(function(){return e.value})},Object.defineProperty(FA.prototype,"value",{get:function(){var e=zA(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(OA>100)throw new Error("Cycle detected");!function(e){0!==qA&&0===OA&&e.l!==NA&&(e.l=NA,jA={S:e,v:e.v,i:e.i,o:jA})}(this),this.v=e,this.i++,_A++,qA++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{kA()}}}}),WA.prototype=new FA,WA.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===_A)return!0;if(this.g=_A,this.f|=1,this.i>0&&!HA(this))return this.f&=-2,!0;var e=DA;try{BA(this),DA=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return DA=e,VA(this),this.f&=-2,!0},WA.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}FA.prototype.S.call(this,e)},WA.prototype.U=function(e){if(void 0!==this.t&&(FA.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},WA.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(WA.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=zA(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),XA.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},XA.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,GA(this),BA(this),qA++;var e=DA;return DA=this,YA.bind(this,e)},XA.prototype.N=function(){2&this.f||(this.f|=2,this.u=TA,TA=this)},XA.prototype.d=function(){this.f|=8,1&this.f||KA(this)},XA.prototype.dispose=function(){this.d()};var ZA,QA,ek,tk,nk,rk,ok,ik,ak,sk,lk,ck,uk,dk,pk,fk,hk,mk,gk,bk,vk=Object.create,yk=Object.defineProperty,xk=Object.defineProperties,Sk=Object.getOwnPropertyDescriptor,wk=Object.getOwnPropertyDescriptors,Ck=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,Rk=Object.prototype.propertyIsEnumerable,Ik=e=>{throw TypeError(e)},Ak=(e,t,n)=>t in e?yk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kk=(e,t)=>yk(e,"name",{value:t,configurable:!0}),Pk=["class","method","getter","setter","accessor","field","value","get","set"],Dk=e=>void 0!==e&&"function"!=typeof e?Ik("Function expected"):e,Mk=(e,t,n,r,o)=>({kind:Pk[e],name:t,metadata:r,addInitializer:e=>n._?Ik("Already initialized"):o.push(Dk(e||null))}),Tk=(e,t)=>{return Ak(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r},qk=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},Ok=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Pk[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Sk(d<4?o:{get[n](){return jk(this,i)},set[n](e){return zk(this,i,e)}},n));d?f&&d<4&&kk(i,(d>2?"set ":d>1?"get ":"")+n):kk(o,n);for(var y=r.length-1;y>=0;y--)c=Mk(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>Nk(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?jk:Fk)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>zk(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?Dk(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Ik("Object expected"):(Dk(a=s.get)&&(v.get=a),Dk(a=s.set)&&(v.set=a),Dk(a=s.init)&&g.unshift(a));return d||Tk(e,o),v&&yk(o,n,v),f?4^d?i:v:o},Lk=(e,t,n)=>t.has(e)||Ik("Cannot "+n),Nk=(e,t)=>Object(t)!==t?Ik('Cannot use the "in" operator on this value'):e.has(t),jk=(e,t,n)=>(Lk(e,t,"read from private field"),n?n.call(e):t.get(e)),_k=(e,t,n)=>t.has(e)?Ik("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),zk=(e,t,n,r)=>(Lk(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fk=(e,t,n)=>(Lk(e,t,"access private method"),n);function $k(e,t){if(t){let n;return UA(()=>{const r=e();return r&&n&&t(n,r)?n:(n=r,r)})}return UA(e)}function Hk(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some((e,n)=>!Hk(e,t[n]))}if("object"==typeof e&&"object"==typeof t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const o=n.some(n=>!Hk(e[n],t[n]));return!o}return!1}function Bk({get:e},t){return{init:e=>$A(e),get(){return e.call(this).value},set(t){const n=e.call(this);n.peek()!==t&&(n.value=t)}}}function Vk(e,t){const n=new WeakMap;return function(){let t=n.get(this);return t||(t=$k(e.bind(this)),n.set(this,t)),t.value}}function Wk(e=!0){return function(t,n){n.addInitializer(function(){const t="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(t,n.name);r&&Object.defineProperty(t,n.name,((e,t)=>xk(e,wk(t)))(((e,t)=>{for(var n in t||(t={}))Ek.call(t,n)&&Ak(e,n,t[n]);if(Ck)for(var n of Ck(t))Rk.call(t,n)&&Ak(e,n,t[n]);return e})({},r),{enumerable:e}))})}}function Uk(...e){const t=e.map(e=>JA(e));return()=>t.forEach(e=>e())}rk=[Bk],nk=[Bk],tk=[Bk],ek=[Wk()],QA=[Wk()],ZA=[Wk()];var Gk,Kk=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,qk(ok,5,this),_k(this,ck),_k(this,ik,qk(ok,8,this)),qk(ok,11,this),_k(this,uk,qk(ok,12,this)),qk(ok,15,this),_k(this,hk,qk(ok,16,this)),qk(ok,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return jk(this,ck,gk)}get initial(){return jk(this,ck,sk)}get previous(){return jk(this,ck,pk)}set current(e){const t=MA(()=>jk(this,ck,gk));e&&t&&this.equals(t,e)||PA(()=>{jk(this,ck,sk)||zk(this,ck,e,lk),zk(this,ck,t,fk),zk(this,ck,e,bk)})}reset(e=this.defaultValue){PA(()=>{zk(this,ck,void 0,fk),zk(this,ck,e,lk),zk(this,ck,e,bk)})}};function Yk(e){return MA(()=>{const t={};for(const n in e)t[n]=e[n];return t})}ok=[,,,vk(null)],ik=new WeakMap,ck=new WeakSet,uk=new WeakMap,hk=new WeakMap,ak=Ok(ok,20,"#initial",rk,ck,ik),sk=ak.get,lk=ak.set,dk=Ok(ok,20,"#previous",nk,ck,uk),pk=dk.get,fk=dk.set,mk=Ok(ok,20,"#current",tk,ck,hk),gk=mk.get,bk=mk.set,Ok(ok,2,"current",ek,Kk),Ok(ok,2,"initial",QA,Kk),Ok(ok,2,"previous",ZA,Kk),Tk(ok,Kk);Gk=new WeakMap;var Xk,Jk,Zk,Qk,eP,tP=Object.create,nP=Object.defineProperty,rP=Object.getOwnPropertyDescriptor,oP=Object.getOwnPropertySymbols,iP=Object.prototype.hasOwnProperty,aP=Object.prototype.propertyIsEnumerable,sP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),lP=e=>{throw TypeError(e)},cP=Math.pow,uP=(e,t,n)=>t in e?nP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dP=["class","method","getter","setter","accessor","field","value","get","set"],pP=e=>void 0!==e&&"function"!=typeof e?lP("Function expected"):e,fP=(e,t,n,r,o)=>({kind:dP[e],name:t,metadata:r,addInitializer:e=>n._?lP("Already initialized"):o.push(pP(e||null))}),hP=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=dP[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,rP(o,n)),h=r.length-1;h>=0;h--)(l=fP(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,pP(a)&&(f[d]=a);return f&&nP(o,n,f),o},mP=(e,t,n)=>t.has(e)||lP("Cannot "+n),gP=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},bP=class e{constructor(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,n){const{top:r,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,r+n,i,a);return l.scale=((e,t)=>{for(var n in t||(t={}))iP.call(t,n)&&uP(e,n,t[n]);if(oP)for(var n of oP(t))aP.call(t,n)&&uP(e,n,t[n]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:n,top:r,right:o,bottom:i}=this;return{width:e,height:t,left:n,top:r,right:o,bottom:i}}get center(){const{left:e,top:t,right:n,bottom:r}=this;return new gP((e+n)/2,(t+r)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:n,top:r,width:o,height:i}=this;return n===t.left&&r===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:n,bottom:r,right:o}=this;return t<=e.y&&e.y<=r&&n<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,n=this.intersectionArea(e);return n/(e.area+t-n)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:n,width:r,height:o}){return new e(n,t,r,o)}static delta(e,t,n={x:"center",y:"center"}){const r=(e,t)=>{const r=n[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==r?o:"end"==r?o+i:o+i/2};return gP.delta({x:r(e,"x"),y:r(e,"y")},{x:r(t,"x"),y:r(t,"y")})}static intersectionRatio(t,n){return e.from(t).intersectionRatio(e.from(n))}};var vP,yP=class extends(Zk=Kk,Jk=[Vk],Xk=[Vk],Zk){constructor(e){var t,n,r;super(gP.from(e),(e,t)=>gP.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(eP,5,this),t=this,r=0,(n=Qk).has(t)?lP("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return gP.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=gP.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(mP(a=this,s=Qk,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);PA(()=>{((e,t,n)=>{mP(e,t,"write to private field"),t.set(e,n)})(this,Qk,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(gP.from(e)),this.velocity={x:0,y:0}}};function xP({x:e,y:t},n){const r=Math.abs(e),o=Math.abs(t);return"number"==typeof n?Math.sqrt(cP(r,2)+cP(o,2))>n:"x"in n&&"y"in n?r>n.x&&o>n.y:"x"in n?r>n.x:"y"in n&&o>n.y}eP=(e=>{var t;return[,,,tP(null!=(t=null==e?void 0:e[sP("metadata")])?t:null)]})(Zk),Qk=new WeakMap,hP(eP,2,"delta",Jk,yP),hP(eP,2,"direction",Xk,yP),vP=eP,uP(yP,sP("metadata"),vP[3]);var SP,wP,CP,EP,RP=(e=>(e.Horizontal="x",e.Vertical="y",e))(RP||{}),IP=Object.values(RP),AP=Object.create,kP=Object.defineProperty,PP=Object.defineProperties,DP=Object.getOwnPropertyDescriptor,MP=Object.getOwnPropertyDescriptors,TP=Object.getOwnPropertySymbols,qP=Object.prototype.hasOwnProperty,OP=Object.prototype.propertyIsEnumerable,LP=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),NP=e=>{throw TypeError(e)},jP=(e,t,n)=>t in e?kP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_P=(e,t)=>{for(var n in t||(t={}))qP.call(t,n)&&jP(e,n,t[n]);if(TP)for(var n of TP(t))OP.call(t,n)&&jP(e,n,t[n]);return e},zP=(e,t)=>PP(e,MP(t)),FP=(e,t)=>kP(e,"name",{value:t,configurable:!0}),$P=(e,t)=>{var n={};for(var r in e)qP.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&TP)for(var r of TP(e))t.indexOf(r)<0&&OP.call(e,r)&&(n[r]=e[r]);return n},HP=e=>{var t;return[,,,AP(null!=(t=null==e?void 0:e[LP("metadata")])?t:null)]},BP=["class","method","getter","setter","accessor","field","value","get","set"],VP=e=>void 0!==e&&"function"!=typeof e?NP("Function expected"):e,WP=(e,t,n,r,o)=>({kind:BP[e],name:t,metadata:r,addInitializer:e=>n._?NP("Already initialized"):o.push(VP(e||null))}),UP=(e,t)=>jP(t,LP("metadata"),e[3]),GP=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},KP=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=BP[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&DP(d<4?o:{get[n](){return JP(this,i)},set[n](e){return QP(this,i,e)}},n));d?f&&d<4&&FP(i,(d>2?"set ":d>1?"get ":"")+n):FP(o,n);for(var y=r.length-1;y>=0;y--)c=WP(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>XP(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?JP:eD)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>QP(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?VP(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?NP("Object expected"):(VP(a=s.get)&&(v.get=a),VP(a=s.set)&&(v.set=a),VP(a=s.init)&&g.unshift(a));return d||UP(e,o),v&&kP(o,n,v),f?4^d?i:v:o},YP=(e,t,n)=>t.has(e)||NP("Cannot "+n),XP=(e,t)=>Object(t)!==t?NP('Cannot use the "in" operator on this value'):e.has(t),JP=(e,t,n)=>(YP(e,t,"read from private field"),n?n.call(e):t.get(e)),ZP=(e,t,n)=>t.has(e)?NP("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),QP=(e,t,n,r)=>(YP(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),eD=(e,t,n)=>(YP(e,t,"access private method"),n);function tD(e,t){return{plugin:e,options:t}}function nD(e){return t=>tD(e,t)}function rD(e){return"function"==typeof e?{plugin:e,options:void 0}:e}SP=[Bk];var oD=class{constructor(e,t){this.manager=e,this.options=t,ZP(this,CP,GP(wP,8,this,!1)),GP(wP,11,this),ZP(this,EP,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return MA(()=>this.disabled)}configure(e){this.options=e}registerEffect(e){const t=JA(e.bind(this));return JP(this,EP).add(t),t}destroy(){JP(this,EP).forEach(e=>e())}static configure(e){return tD(this,e)}};wP=HP(null),CP=new WeakMap,EP=new WeakMap,KP(wP,4,"disabled",SP,oD,CP),UP(wP,oD);var iD,aD=class extends oD{},sD=class{constructor(e){this.manager=e,this.instances=new Map,ZP(this,iD,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(rD).reduce((e,t)=>{const n=e.find(({plugin:e})=>e===t.plugin);return n?(n.options=t.options,e):[...e,t]},[]),n=t.map(({plugin:e})=>e);for(const e of JP(this,iD))if(!n.includes(e)){if(e.prototype instanceof aD)continue;this.unregister(e)}for(const{plugin:e,options:n}of t)this.register(e,n);QP(this,iD,n)}get(e){return this.instances.get(e)}register(e,t){const n=this.instances.get(e);if(n)return n.options!==t&&(n.options=t),n;const r=new e(this.manager,t);return this.instances.set(e,r),r}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function lD(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}iD=new WeakMap;var cD,uD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD=[],wD=class extends oD{constructor(e){super(e),ZP(this,cD),ZP(this,uD),this.computeCollisions=this.computeCollisions.bind(this),QP(this,uD,$A(SD)),this.destroy=Uk(()=>{const e=this.computeCollisions(),t=MA(()=>this.manager.dragOperation.position.current);if(e!==SD){const e=JP(this,cD);if(QP(this,cD,t),e&&t.x==e.x&&t.y==e.y)return}else QP(this,cD,void 0);JP(this,uD).value=e},()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()})}forceUpdate(e=!0){MA(()=>{e?JP(this,uD).value=this.computeCollisions():QP(this,cD,void 0)})}computeCollisions(e,t){const{registry:n,dragOperation:r}=this.manager,{source:o,shape:i,status:a}=r;if(!a.initialized||!i)return SD;const s=[],l=[];for(const i of null!=e?e:n.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const n=MA(()=>e({droppable:i,dragOperation:r}));n&&(null!=i.collisionPriority&&(n.priority=i.collisionPriority),s.push(n))}return 0===l.length?SD:(s.sort(lD),s)}get collisions(){return JP(this,uD).value}};cD=new WeakMap,uD=new WeakMap,fD=[Bk],pD=[Bk],dD=[Bk];var CD=class e{constructor(e,t){ZP(this,bD,GP(gD,8,this)),GP(gD,11,this),ZP(this,vD),ZP(this,yD,GP(gD,12,this)),GP(gD,15,this),ZP(this,xD,GP(gD,16,this)),GP(gD,19,this);const{effects:n,id:r,data:o={},disabled:i=!1,register:a=!0}=e;let s=r;QP(this,vD,$A(r)),this.manager=t,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return s=e,null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==n?void 0:n())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}get id(){var t,n;const r=JP(this,vD).value;return null!=(n=null==(t=e.pendingIdChanges)?void 0:t.get(this))?n:r}set id(t){var n,r;t!==(null!=(r=null==(n=e.pendingIdChanges)?void 0:n.get(this))?r:JP(this,vD).peek())&&(e.pendingIdChanges||(e.pendingIdChanges=new Map,queueMicrotask(()=>{var t;return eD(t=e,hD,mD).call(t)})),e.pendingIdChanges.set(this,t))}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};gD=HP(null),hD=new WeakSet,mD=function(){const e=CD.pendingIdChanges;CD.pendingIdChanges=null,e&&PA(()=>{for(const[t,n]of e)JP(t,vD).value=n})},bD=new WeakMap,vD=new WeakMap,yD=new WeakMap,xD=new WeakMap,KP(gD,4,"manager",fD,CD,bD),KP(gD,4,"data",pD,CD,yD),KP(gD,4,"disabled",dD,CD,xD),ZP(CD,hD),UP(gD,CD),CD.pendingIdChanges=null;var ED,RD,ID,AD,kD,PD,DD,MD,TD,qD,OD,LD,ND,jD,_D,zD,FD,$D,HD,BD,VD,WD,UD,GD,KD=CD,YD=class{constructor(){this.map=$A(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const n=this.map.peek(),r=n.get(e),o=()=>this.unregister(e,t);if(r===t)return o;if(r&&r.id===e){const e=this.cleanupFunctions.get(r);null==e||e(),this.cleanupFunctions.delete(r)}const i=new Map(n);for(const[r,o]of n)if(o===t&&r!==e){i.delete(r);break}i.set(e,t),this.map.value=i;const a=Uk(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const n=this.map.peek();if(n.get(e)!==t)return;const r=this.cleanupFunctions.get(t);null==r||r(),this.cleanupFunctions.delete(t);const o=new Map(n);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},XD=class extends(DD=KD,PD=[Bk],kD=[Bk],AD=[Bk],ID=[Vk],RD=[Vk],ED=[Vk],DD){constructor(e,t){var n=e,{modifiers:r,type:o,sensors:i,plugins:a,effects:s}=n,l=$P(n,["modifiers","type","sensors","plugins","effects"]);super(zP(_P({},l),{effects:()=>{var e;return[...null!=(e=null==s?void 0:s())?e:[],()=>{const{manager:e,plugins:t}=this;if(e&&t)for(const n of t){const{plugin:t}=rD(n);e.registry.plugins.register(t)}}]}}),t),GP(MD,5,this),ZP(this,TD,GP(MD,8,this)),GP(MD,11,this),ZP(this,qD,GP(MD,12,this)),GP(MD,15,this),ZP(this,OD,GP(MD,16,this,this.isDragSource?"dragging":"idle")),GP(MD,19,this),this.type=o,this.sensors=i,this.modifiers=r,this.alignment=l.alignment,this.plugins=a}pluginConfig(e){if(this.plugins)for(const t of this.plugins){const n=rD(t);if(n.plugin===e)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};MD=HP(DD),TD=new WeakMap,qD=new WeakMap,OD=new WeakMap,KP(MD,4,"type",PD,XD,TD),KP(MD,4,"modifiers",kD,XD,qD),KP(MD,4,"status",AD,XD,OD),KP(MD,2,"isDropping",ID,XD),KP(MD,2,"isDragging",RD,XD),KP(MD,2,"isDragSource",ED,XD),UP(MD,XD);var JD=class extends($D=KD,FD=[Bk],zD=[Bk],_D=[Bk],jD=[Bk],ND=[Bk],LD=[Vk],$D){constructor(e,t){var n=e,{accept:r,collisionDetector:o,collisionPriority:i,type:a}=n;super($P(n,["accept","collisionDetector","collisionPriority","type"]),t),GP(HD,5,this),ZP(this,BD,GP(HD,8,this)),GP(HD,11,this),ZP(this,VD,GP(HD,12,this)),GP(HD,15,this),ZP(this,WD,GP(HD,16,this)),GP(HD,19,this),ZP(this,UD,GP(HD,20,this)),GP(HD,23,this),ZP(this,GD,GP(HD,24,this)),GP(HD,27,this),this.accept=r,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};HD=HP($D),BD=new WeakMap,VD=new WeakMap,WD=new WeakMap,UD=new WeakMap,GD=new WeakMap,KP(HD,4,"accept",FD,JD,BD),KP(HD,4,"type",zD,JD,VD),KP(HD,4,"collisionDetector",_D,JD,WD),KP(HD,4,"collisionPriority",jD,JD,UD),KP(HD,4,"shape",ND,JD,GD),KP(HD,2,"isDropTarget",LD,JD),UP(HD,JD);var ZD=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));return r.add(t),n.set(e,r),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:n}=this,r=new Set(n.get(e));r.delete(t),n.set(e,r)}dispatch(e,...t){const{registry:n}=this,r=n.get(e);if(r)for(const e of r)e(...t)}},QD=class extends ZD{constructor(e){super(),this.manager=e}dispatch(e,t){const n=[t,this.manager];super.dispatch(e,...n)}};function eM(e,t=!0){let n=!1;return zP(_P({},e),{cancelable:t,get defaultPrevented(){return n},preventDefault(){t&&(n=!0)}})}var tM,nM,rM,oM,iM,aM,sM,lM,cM,uM=class extends aD{constructor(e){super(e);let t=[];this.destroy=Uk(()=>{const{dragOperation:n,collisionObserver:r}=e;n.status.initializing&&(t=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=e,{collisions:o}=n;if(n.isDisabled())return;if(KD.pendingIdChanges)return;const i=eM({collisions:o});if(r.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map(({id:e})=>e).join("")===t.map(({id:e})=>e).join(""))(o,t))return;t=o;const[a]=o;MA(()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(n.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then(()=>{n.enable()}))})})}},dM=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(dM||{}),pM=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(pM||{});sM=[Bk],aM=[Vk],iM=[Vk],oM=[Vk],rM=[Vk],nM=[Vk],tM=[Vk];var fM=class{constructor(){GP(lM,5,this),ZP(this,cM,GP(lM,8,this,"idle")),GP(lM,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};lM=HP(null),cM=new WeakMap,KP(lM,4,"value",sM,fM,cM),KP(lM,2,"current",aM,fM),KP(lM,2,"idle",iM,fM),KP(lM,2,"initializing",oM,fM),KP(lM,2,"initialized",rM,fM),KP(lM,2,"dragging",nM,fM),KP(lM,2,"dropped",tM,fM),UP(lM,fM);var hM,mM=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return MA(()=>{const{dragOperation:t}=this.manager,n=null!=e?e:null;if(t.targetIdentifier===n)return Promise.resolve(!1);t.targetIdentifier=n;const r=eM({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(e){return MA(()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:o}=e;PA(()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=r?r:null,t.position.reset(o)});const i=eM({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),n.abort(),n):(t.status.set("initializing"),t.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&PA(()=>{t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:t.snapshot(),cancelable:!1})})}),n)})}move(e){return MA(()=>{var t,n;const{dragOperation:r}=this.manager,{status:o,controller:i}=r;if(!o.dragging||!i||i.signal.aborted)return;const a=eM({nativeEvent:e.event,operation:r.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(n=e.propagate)||n)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask(()=>{var t,n,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:r.position.current.x+(null!=(n=null==(t=e.by)?void 0:t.x)?n:0),y:r.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};r.position.current=l})})}stop(e={}){return MA(()=>{var t,n;const{dragOperation:r}=this.manager,{controller:o}=r;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const e=MA(()=>{var e;return"dropping"===(null==(e=r.source)?void 0:e.status)}),t=()=>{r.controller===o&&(r.controller=void 0),r.reset()};if(e){const{source:e}=r,n=JA(()=>{"idle"===(null==e?void 0:e.status)&&(n(),t())})}else this.manager.renderer.rendering.then(t)})};r.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:r.snapshot(),canceled:null!=(n=e.canceled)&&n,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise((t,n)=>{e.resume=t,e.abort=n}),e}}),i?i.then(a).catch(()=>r.reset()):a()})}},gM=class extends oD{constructor(e,t){super(e,t),this.manager=e,this.options=t}},bM=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},vM=class{constructor(e){this.options=e,ZP(this,hM)}set controller(e){QP(this,hM,e),e.signal.addEventListener("abort",()=>this.abort())}activate(e){var t;null==(t=JP(this,hM))||t.activate(e)}};hM=new WeakMap;var yM,xM,SM,wM,CM,EM,RM,IM,AM,kM,PM,DM,MM,TM,qM,OM,LM,NM,jM,_M=class extends oD{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},zM=class{constructor(e){this.draggables=new YD,this.droppables=new YD,this.plugins=new sD(e),this.sensors=new sD(e),this.modifiers=new sD(e)}register(e,t){if(e instanceof XD)return this.draggables.register(e.id,e);if(e instanceof JD)return this.droppables.register(e.id,e);if(e.prototype instanceof _M)return this.modifiers.register(e,t);if(e.prototype instanceof gM)return this.sensors.register(e,t);if(e.prototype instanceof oD)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof KD)return e instanceof XD?this.draggables.unregister(e.id,e):e instanceof JD?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof _M)return this.modifiers.unregister(e);if(e.prototype instanceof gM)return this.sensors.unregister(e);if(e.prototype instanceof oD)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};AM=[Vk],IM=[Bk],RM=[Bk],EM=[Bk],CM=[Bk],wM=[Bk],SM=[Vk],xM=[Vk],yM=[Vk];var FM=class{constructor(e){GP(MM,5,this),ZP(this,kM),ZP(this,PM),ZP(this,DM,new Kk(void 0,(e,t)=>e&&t?e.equals(t):e===t)),this.status=new fM,ZP(this,TM,GP(MM,8,this,!1)),GP(MM,11,this),ZP(this,qM,GP(MM,12,this,null)),GP(MM,15,this),ZP(this,OM,GP(MM,16,this,null)),GP(MM,19,this),ZP(this,LM,GP(MM,20,this,null)),GP(MM,23,this),ZP(this,NM,GP(MM,24,this,[])),GP(MM,27,this),this.position=new yP({x:0,y:0}),ZP(this,jM,{x:0,y:0}),QP(this,kM,e)}get shape(){const{current:e,initial:t,previous:n}=JP(this,DM);return e&&t?{current:e,initial:t,previous:n}:null}set shape(e){e?JP(this,DM).current=e:JP(this,DM).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const n=JP(this,kM).registry.draggables.get(t);return n&&QP(this,PM,n),null!=(e=null!=n?n:JP(this,PM))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=JP(this,kM).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let n={x:e,y:t};for(const e of this.modifiers)n=e.apply(zP(_P({},this.snapshot()),{transform:n}));return QP(this,jM,n),n}snapshot(){return MA(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:JP(this,jM),shape:this.shape?Yk(this.shape):null,position:Yk(this.position),status:Yk(this.status),canceled:this.canceled}))}reset(){PA(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,JP(this,DM).reset(),this.position.reset({x:0,y:0}),QP(this,jM,{x:0,y:0}),this.modifiers=[]})}};MM=HP(null),kM=new WeakMap,PM=new WeakMap,DM=new WeakMap,TM=new WeakMap,qM=new WeakMap,OM=new WeakMap,LM=new WeakMap,NM=new WeakMap,jM=new WeakMap,KP(MM,2,"shape",AM,FM),KP(MM,4,"canceled",IM,FM,TM),KP(MM,4,"activatorEvent",RM,FM,qM),KP(MM,4,"sourceIdentifier",EM,FM,OM),KP(MM,4,"targetIdentifier",CM,FM,LM),KP(MM,4,"modifiers",wM,FM,NM),KP(MM,2,"source",SM,FM),KP(MM,2,"target",xM,FM),KP(MM,2,"transform",yM,FM),UP(MM,FM);var $M={get rendering(){return Promise.resolve()}};function HM(e,t){return"function"==typeof e?e(t):null!=e?e:t}var BM=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(e=>e.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=e?e:{},r=HM(n.plugins,[]),o=HM(n.sensors,[]),i=HM(n.modifiers,[]),a=null!=(t=n.renderer)?t:$M,s=new QD(this),l=new zM(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new mM(this),this.dragOperation=new FM(this),this.collisionObserver=new wD(this),this.plugins=[uM,...r],this.modifiers=i,this.sensors=o;const{destroy:c}=this,u=Uk(()=>{var e,t,n;const r=MA(()=>this.dragOperation.modifiers),o=this.modifiers;for(const e of r)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(n=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map(e=>{const{plugin:t,options:n}=rD(e);return new t(this,n)}))?n:o});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},VM=e=>{throw TypeError(e)},WM=(e,t,n)=>t.has(e)||VM("Cannot "+n),UM=(e,t,n)=>(WM(e,t,"read from private field"),t.get(e)),GM=(e,t,n)=>t.has(e)?VM("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),KM=(e,t,n,r)=>(WM(e,t,"write to private field"),t.set(e,n),n),YM=(e,t,n)=>(WM(e,t,"access private method"),n);function XM(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function JM(e,t){const n=e.getAnimations();let r=null;for(const e of n){if("running"!==e.playState)continue;const{effect:n}=e,o=(XM(n)?n.getKeyframes():[]).filter(t);o.length>0&&(r=[o[o.length-1],e])}return r}function ZM(e){const{width:t,height:n,top:r,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:n,top:r,left:o,bottom:i,right:a}}function QM(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function eT(e){return"nodeType"in e}function tT(e){var t,n,r;return e?QM(e)?e:eT(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(r=null==(n=e.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function nT(e){const{Document:t}=tT(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function rT(e){return!(!e||QM(e))&&(e instanceof tT(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function oT(e){return e instanceof tT(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function iT(e){return e?QM(e)?e.document:eT(e)?nT(e)?e:rT(e)||oT(e)?e.ownerDocument:document:document:document}function aT(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:n,overflowX:r,overflowY:o}=getComputedStyle(e);return"visible"===n&&"visible"===r&&"visible"===o}function sT(e,t=e.getBoundingClientRect(),n=0){var r,o,i,a,s;let l=t;const{ownerDocument:c}=e,u=null!=(r=c.defaultView)?r:window;let d=e.parentElement;for(;d&&d!==c.documentElement;){if(!aT(d)){const e=d.getBoundingClientRect(),t=n*(e.bottom-e.top),r=n*(e.right-e.left),o=n*(e.bottom-e.top),i=n*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+r),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=u.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:u.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:u.innerHeight,b=n*g,v=n*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function lT(e){return{x:e.clientX,y:e.clientY}}var cT="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function uT(e=document,t=new Set){if(t.has(e))return[];t.add(e);const n=[e];for(const r of Array.from(e.querySelectorAll("iframe, frame")))try{const e=r.contentDocument;e&&!t.has(e)&&n.push(...uT(e,t))}catch(e){}try{const r=e.defaultView;if(r&&r!==window.top){const o=r.parent;o&&o.document&&o.document!==e&&n.push(...uT(o.document,t))}}catch(e){}return n}function dT(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function pT(){var e,t;const n=dT()?window.visualViewport:null;return{x:null!=(e=null==n?void 0:n.offsetLeft)?e:0,y:null!=(t=null==n?void 0:n.offsetTop)?t:0}}function fT(e){return!(!e||!eT(e))&&e instanceof tT(e).ShadowRoot}function hT(e){if(e&&eT(e)){let t=e.getRootNode();if(fT(t))return t;if(t instanceof Document)return t}return iT(e)}function mT(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function gT(e){return"value"in e}function bT(e){return"CANVAS"===e.tagName}function vT(e,{x:t,y:n}){const r=e.elementFromPoint(t,n);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(r)){const{contentDocument:e}=r;if(e){const{left:o,top:i}=r.getBoundingClientRect();return vT(e,{x:t-o,y:n-i})}}return r}var yT=new WeakMap;var xT=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o)}this.entries.clear()}}bind(e,t){const n=Array.isArray(e)?e:[e],r=Array.isArray(t)?t:[t],o=[];for(const e of n)for(const t of r){const{type:n,listener:r,options:i}=t,a=[e,t];e.addEventListener(n,r,i),this.entries.add(a),o.push(a)}const i=this.entries;return function(){for(const e of o){const[t,{type:n,listener:r,options:o}]=e;t.removeEventListener(n,r,o),i.delete(e)}}}};function ST(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function wT(e,t){const n=()=>performance.now();let r,o;return function(...i){const a=this;o?(null==r||r(),r=function(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}(()=>{e.apply(a,i),o=n()},t-(n()-o))):(e.apply(a,i),o=n())}}var CT,ET=cT?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},RT=class extends ET{constructor(e){super(t=>{UM(this,CT)?e(t,this):KM(this,CT,!0)}),GM(this,CT,!1)}};CT=new WeakMap;var IT,AT,kT,PT,DT,MT,TT,qT,OT,LT,NT,jT=Array.from({length:100},(e,t)=>t/100),_T=class{constructor(e,t,n={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,GM(this,OT),this.disconnect=()=>{var e,t,n;KM(this,TT,!0),null==(e=UM(this,kT))||e.disconnect(),null==(t=UM(this,PT))||t.disconnect(),UM(this,DT).disconnect(),null==(n=UM(this,MT))||n.remove()},GM(this,IT,!0),GM(this,AT),GM(this,kT),GM(this,PT),GM(this,DT),GM(this,MT),GM(this,TT,!1),GM(this,qT,wT(()=>{var e,t,n;const{element:r}=this;if(null==(e=UM(this,PT))||e.disconnect(),UM(this,TT)||!UM(this,IT)||!r.isConnected)return;const o=null!=(t=r.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(n=o.defaultView)?n:window,s=r.getBoundingClientRect(),l=sT(r,s),{top:c,left:u,bottom:d,right:p}=l,f=-Math.floor(c),h=-Math.floor(u),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,KM(this,PT,new IntersectionObserver(e=>{const[t]=e,{intersectionRect:n}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:bP.intersectionRatio(n,sT(r)))&&UM(this,qT).call(this)},{threshold:jT,rootMargin:m,root:o})),UM(this,PT).observe(r),YM(this,OT,LT).call(this)},75)),this.boundingClientRect=e.getBoundingClientRect(),KM(this,IT,function(e,t=e.getBoundingClientRect()){const{width:n,height:r}=sT(e,t);return n>0&&r>0}(e,this.boundingClientRect));let r=!0;this.callback=e=>{r&&(r=!1,n.skipInitial)||t(e)};const o=e.ownerDocument;(null==n?void 0:n.debug)&&(KM(this,MT,document.createElement("div")),UM(this,MT).style.background="rgba(0,0,0,0.15)",UM(this,MT).style.position="fixed",UM(this,MT).style.pointerEvents="none",o.body.appendChild(UM(this,MT))),KM(this,DT,new IntersectionObserver(t=>{var n,r;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,c=UM(this,IT);KM(this,IT,a),(s||l)&&(c&&!a?(null==(n=UM(this,PT))||n.disconnect(),this.callback(null),null==(r=UM(this,kT))||r.disconnect(),KM(this,kT,void 0),UM(this,MT)&&(UM(this,MT).style.visibility="hidden")):UM(this,qT).call(this),a&&!UM(this,kT)&&(KM(this,kT,new RT(UM(this,qT))),UM(this,kT).observe(e)))},{threshold:jT,root:o})),UM(this,IT)&&!n.skipInitial&&this.callback(this.boundingClientRect),UM(this,DT).observe(e)}};IT=new WeakMap,AT=new WeakMap,kT=new WeakMap,PT=new WeakMap,DT=new WeakMap,MT=new WeakMap,TT=new WeakMap,qT=new WeakMap,OT=new WeakSet,LT=function(){UM(this,TT)||(YM(this,OT,NT).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,UM(this,AT))||(this.callback(this.boundingClientRect),KM(this,AT,this.boundingClientRect)))},NT=function(){if(UM(this,MT)){const{top:e,left:t,width:n,height:r}=sT(this.element);UM(this,MT).style.overflow="hidden",UM(this,MT).style.visibility="visible",UM(this,MT).style.top=`${Math.floor(e)}px`,UM(this,MT).style.left=`${Math.floor(t)}px`,UM(this,MT).style.width=`${Math.floor(n)}px`,UM(this,MT).style.height=`${Math.floor(r)}px`}};var zT,FT,$T,HT,BT=new WeakMap,VT=new WeakMap;function WT(e,t){let n=BT.get(e);if(!n){const t=new _T(e,t=>{const n=BT.get(e);n&&n.callbacks.forEach(e=>e(t))},{skipInitial:!0});n={disconnect:t.disconnect,callbacks:new Set}}return n.callbacks.add(t),BT.set(e,n),()=>{n.callbacks.delete(t),0===n.callbacks.size&&(BT.delete(e),n.disconnect())}}var UT=class{constructor(e,t,n){this.callback=t,GM(this,zT),GM(this,FT,!1),GM(this,$T),GM(this,HT,wT(e=>{if(!UM(this,FT)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of UM(this,$T))if(e.target.contains(t)){this.callback(UM(this,zT).boundingClientRect);break}},75));const r=function(e){const t=new Set;let n=ST(e);for(;n;)t.add(n),n=ST(n);return t}(e),o=function(e,t){const n=new Set;for(const r of e){const e=WT(r,t);n.add(e)}return()=>n.forEach(e=>e())}(r,t),i=function(e,t){var n;const r=e.ownerDocument;if(!VT.has(r)){const e=new AbortController,t=new Set;document.addEventListener("scroll",e=>t.forEach(t=>t(e)),{capture:!0,passive:!0,signal:e.signal}),VT.set(r,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(n=VT.get(r))?n:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),VT.delete(r))}):()=>{}}(e,UM(this,HT));KM(this,$T,r),KM(this,zT,new _T(e,t,n)),this.disconnect=()=>{UM(this,FT)||(KM(this,FT,!0),o(),i(),UM(this,zT).disconnect())}}};function GT(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function KT(e){try{GT(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function YT(e){return!(!cT||!e)&&e===iT(e).scrollingElement}function XT(e){var t,n;const r=tT(e),o=YT(e)?function(e){var t,n,r,o;const{documentElement:i}=iT(e),a=tT(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(n=null==a?void 0:a.height)?n:i.clientHeight,c=null!=(r=null==a?void 0:a.offsetTop)?r:0,u=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:c,left:u,right:u+s,bottom:c+l,width:s,height:l}}(e):ZM(e),i=r.visualViewport,a=YT(e)?{height:null!=(t=null==i?void 0:i.height)?t:r.innerHeight,width:null!=(n=null==i?void 0:i.width)?n:r.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function JT(e,t){const{isTop:n,isBottom:r,isLeft:o,isRight:i,position:a}=XT(e),{x:s,y:l}=null!=t?t:{x:0,y:0},c=!n&&a.current.y+l>0,u=!r&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:c,bottom:u,left:d,right:p,x:d||p,y:c||u}}zT=new WeakMap,FT=new WeakMap,$T=new WeakMap,HT=new WeakMap;var ZT=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}},QT=new ZT(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),eq=new ZT(e=>setTimeout(e,50)),tq=new Map,nq=tq.clear.bind(tq);function rq(e,t=!1){if(!t)return oq(e);let n=tq.get(e);return n||(n=oq(e),tq.set(e,n),eq.schedule(nq),n)}function oq(e){return tT(e).getComputedStyle(e)}var iq={excludeElement:!0,escapeShadowDOM:!0};function aq(e,t=iq){const{limit:n,excludeElement:r,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=n&&i.size>=n)return i;if(!a)return i;if(nT(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&fT(a))return t(a.host);if(!rT(a))return oT(a)?t(a.parentElement):i;if(i.has(a))return i;const s=rq(a,!0);if(r&&a===e||function(e,t=rq(e,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,s)&&i.add(a),function(e,t=rq(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function sq(e,t=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!e)return n;let r=ST(e);for(;r;){if(r===t)return n;const e=ZM(r),{x:o,y:i}=lq(r,e);n.x=n.x+e.left,n.y=n.y+e.top,n.scaleX=n.scaleX*o,n.scaleY=n.scaleY*i,r=ST(r)}return n}function lq(e,t=ZM(e)){const n=Math.round(t.width),r=Math.round(t.height);if(rT(e))return{x:n/e.offsetWidth,y:r/e.offsetHeight};const o=rq(e,!0);return{x:(parseFloat(o.width)||n)/n,y:(parseFloat(o.height)||r)/r}}function cq(e){if(!e||"none"===e)return null;const[t,n,r="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(n),z:parseInt(r,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function uq(e){var t,n,r,o,i,a,s,l,c;const{scale:u,transform:d,translate:p}=e,f=function(e){if(!e||"none"===e)return null;const t=e.split(" "),n=parseFloat(t[0]),r=parseFloat(t[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),h=cq(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(n=null==f?void 0:f.y)?n:1,v=null!=(r=null==h?void 0:h.x)?r:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(c=null==h?void 0:h.z)?c:0,scaleX:g*w,scaleY:b*C}}var dq=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(dq||{}),pq={x:.2,y:.2},fq={x:10,y:10};function hq(e,t,n,r=25,o=pq,i=fq){const{x:a,y:s}=t,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:p}=XT(e),f=sq(e),h=uq(rq(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new bP(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return x>0&&(!c||g&&!u)&&s<=b.top+x&&1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=r*Math.abs((b.top+x-s)/x)):x>0&&(!u||g&&!c)&&s>=b.bottom-x&&-1!==(null==n?void 0:n.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=r*Math.abs((b.bottom-x-s)/x)),S>0&&(!p||m&&!d)&&a>=b.right-S&&-1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=r*Math.abs((b.right-S-a)/S)):S>0&&(!d||m&&!p)&&a<=b.left+S&&1!==(null==n?void 0:n.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=r*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function mq(e,{block:t="nearest",inline:n="nearest"}={}){if(!rT(e))return;const r=aq(e),o=[];for(const i of r){if(!rT(i))continue;const{top:r,left:a}=bq(e,i);let s=r,l=a;for(const e of o)s-=e.scrollTop,l-=e.scrollLeft;if("none"!==t){const n=s<i.scrollTop;n!==s+e.offsetHeight>i.scrollTop+i.clientHeight&&(i.scrollTop="center"===t?s-i.clientHeight/2+e.offsetHeight/2:n?s:s+e.offsetHeight-i.clientHeight)}if("none"!==n){const t=l<i.scrollLeft;t!==l+e.offsetWidth>i.scrollLeft+i.clientWidth&&(i.scrollLeft="center"===n?l-i.clientWidth/2+e.offsetWidth/2:t?l:l+e.offsetWidth-i.clientWidth)}o.push(i)}}function gq(e){let t=0,n=0,r=e;for(;r;){t+=r.offsetTop,n+=r.offsetLeft;const e=r.offsetParent;if(!rT(e))break;t+=e.clientTop,n+=e.clientLeft,r=e}return{top:t,left:n}}function bq(e,t){const n=gq(e),r=gq(t);return{top:n.top-r.top-t.clientTop,left:n.left-r.left-t.clientLeft}}function vq({element:e,keyframes:t,options:n}){return e.animate(t,n).finished}function yq(e,t=rq(e).translate,n=!0){if(n){const t=JM(e,e=>"translate"in e);if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=cq(e);if(t)return t}}}if(t){const e=cq(t);if(e)return e}return{x:0,y:0,z:0}}var xq=new ZT(e=>setTimeout(e,0)),Sq=new Map,wq=Sq.clear.bind(Sq);function Cq(e,t){const n=function(e){const t=e.ownerDocument;let n=Sq.get(t);if(n)return n;n=t.getAnimations(),Sq.set(t,n),xq.schedule(wq);const r=n.filter(t=>XM(t.effect)&&t.effect.target===e);return Sq.set(e,r),n}(e).filter(e=>{var n,r;if(XM(e.effect)){const{target:o}=e.effect;if(null==(r=o&&(null==(n=t.isValidTarget)?void 0:n.call(t,o)))||r)return e.effect.getKeyframes().some(e=>{for(const n of t.properties)if(e[n])return!0})}}).map(e=>{const{effect:t,currentTime:n}=e,r=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(e.currentTime=r,()=>{e.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(e=>null==e?void 0:e())}var Eq=class extends bP{constructor(e,t={}){var n,r,o,i;const{frameTransform:a=sq(e),ignoreTransforms:s,getBoundingClientRect:l=ZM}=t,c=Cq(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||dT())&&t.contains(e)}),u=l(e);let d,{top:p,left:f,width:h,height:m}=u;const g=rq(e),b=uq(g),v={x:null!=(n=null==b?void 0:b.scaleX)?n:1,y:null!=(r=null==b?void 0:b.scaleY)?r:1},y=function(e,t){const n=e.getAnimations();if(!n.length)return null;let r,o,i,a=!1;for(const e of n){if("running"!==e.playState)continue;const t=XM(e.effect)?e.effect.getKeyframes():[],n=t[t.length-1];if(!n)continue;const{transform:s,translate:l,scale:c}=n;"string"==typeof s&&s&&(r=s,a=!0),"string"==typeof l&&l&&(o=l,a=!0),"string"==typeof c&&c&&(i=c,a=!0)}return a?uq({transform:null!=r?r:t.transform,translate:null!=o?o:t.translate,scale:null!=i?i:t.scale}):null}(e,g);null==c||c(),b&&(d=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-r)*parseFloat(n),l=e.top-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width/r:e.width,u=o?e.height/o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(u,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,n){const{scaleX:r,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-r)*parseFloat(n),l=e.top+a+(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?e.width*r:e.width,u=o?e.height*o:e.height;return{width:c,height:u,top:l,right:s+c,bottom:l+u,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function Rq(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var Iq=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:n}=this;if(Rq(n))for(const[r,o]of Object.entries(e)){const e=`${t}${r}`;this.initial.has(e)||this.initial.set(e,n.style.getPropertyValue(e)),n.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:n}=this;if(Rq(n))for(const r of e){const e=`${t}${r}`;n.style.removeProperty(e)}}reset(){const{element:e}=this;if(Rq(e)){for(const[t,n]of this.initial)e.style.setProperty(t,n);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function Aq(e){return!!e&&(e instanceof tT(e).Element||eT(e)&&e.nodeType===Node.ELEMENT_NODE)}function kq(e){if(!e)return!1;const{KeyboardEvent:t}=tT(e.target);return e instanceof t}var Pq={};function Dq(e){const t=null==Pq[e]?0:Pq[e]+1;return Pq[e]=t,`${e}-${t}`}var Mq=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/gP.distance(t.shape.center,n),type:pM.PointerIntersection,priority:dM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=gP.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:pM.ShapeIntersection,priority:dM.Normal}}return null})(e)},Tq=e=>{const{dragOperation:t,droppable:n}=e,{shape:r,position:o}=t;if(!n.shape)return null;const i=r?bP.from(r.current.boundingRectangle).corners:void 0,a=bP.from(n.shape.boundingRectangle).corners.reduce((e,t,n)=>{var r;return e+gP.distance(gP.from(t),null!=(r=null==i?void 0:i[n])?r:o.current)},0),s=a/4;return{id:n.id,value:1/s,type:pM.Collision,priority:dM.Normal}},qq=Object.create,Oq=Object.defineProperty,Lq=Object.defineProperties,Nq=Object.getOwnPropertyDescriptor,jq=Object.getOwnPropertyDescriptors,_q=Object.getOwnPropertySymbols,zq=Object.prototype.hasOwnProperty,Fq=Object.prototype.propertyIsEnumerable,$q=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Hq=e=>{throw TypeError(e)},Bq=(e,t,n)=>t in e?Oq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vq=(e,t)=>{for(var n in t||(t={}))zq.call(t,n)&&Bq(e,n,t[n]);if(_q)for(var n of _q(t))Fq.call(t,n)&&Bq(e,n,t[n]);return e},Wq=(e,t)=>Lq(e,jq(t)),Uq=(e,t)=>Oq(e,"name",{value:t,configurable:!0}),Gq=(e,t)=>{var n={};for(var r in e)zq.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_q)for(var r of _q(e))t.indexOf(r)<0&&Fq.call(e,r)&&(n[r]=e[r]);return n},Kq=e=>{var t;return[,,,qq(null!=(t=null==e?void 0:e[$q("metadata")])?t:null)]},Yq=["class","method","getter","setter","accessor","field","value","get","set"],Xq=e=>void 0!==e&&"function"!=typeof e?Hq("Function expected"):e,Jq=(e,t,n,r,o)=>({kind:Yq[e],name:t,metadata:r,addInitializer:e=>n._?Hq("Already initialized"):o.push(Xq(e||null))}),Zq=(e,t)=>Bq(t,$q("metadata"),e[3]),Qq=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},eO=(e,t,n,r,o,i)=>{var a,s,l,c,u,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=Yq[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&Nq(d<4?o:{get[n](){return rO(this,i)},set[n](e){return iO(this,i,e)}},n));d?f&&d<4&&Uq(i,(d>2?"set ":d>1?"get ":"")+n):Uq(o,n);for(var y=r.length-1;y>=0;y--)c=Jq(d,n,l={},e[3],b),d&&(c.static=p,c.private=f,u=c.access={has:f?e=>nO(o,e):e=>n in e},3^d&&(u.get=f?e=>(1^d?rO:aO)(e,o,4^d?i:v.get):e=>e[n]),d>2&&(u.set=f?(e,t)=>iO(e,o,t,4^d?i:v.set):(e,t)=>e[n]=t)),s=(0,r[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,c),l._=1,4^d||void 0===s?Xq(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?Hq("Object expected"):(Xq(a=s.get)&&(v.get=a),Xq(a=s.set)&&(v.set=a),Xq(a=s.init)&&g.unshift(a));return d||Zq(e,o),v&&Oq(o,n,v),f?4^d?i:v:o},tO=(e,t,n)=>t.has(e)||Hq("Cannot "+n),nO=(e,t)=>Object(t)!==t?Hq('Cannot use the "in" operator on this value'):e.has(t),rO=(e,t,n)=>(tO(e,t,"read from private field"),n?n.call(e):t.get(e)),oO=(e,t,n)=>t.has(e)?Hq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),iO=(e,t,n,r)=>(tO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),aO=(e,t,n)=>(tO(e,t,"access private method"),n),sO="button",lO="draggable",cO="dnd-kit-description",uO="dnd-kit-announcement",dO={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},pO={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:n}){if(e)return n?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function fO(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var hO=["dragover","dragmove"],mO=class extends oD{constructor(e,t){super(e);const{id:n,idPrefix:{description:r=cO,announcement:o=uO}={},announcements:i=pO,screenReaderInstructions:a=dO,debounce:s=500}=null!=t?t:{},l=n?`${r}-${n}`:Dq(r),c=n?`${o}-${n}`:Dq(o);let u,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>QT.schedule(h),g=function(e,t){let n;const r=()=>{clearTimeout(n),n=setTimeout(e,t)};return r.cancel=()=>clearTimeout(n),r}(m,s),b=Object.entries(i).map(([e,t])=>this.manager.monitor.addEventListener(e,(n,r)=>{const o=p;if(!o)return;const i=null==t?void 0:t(n,r);i&&o.nodeValue!==i&&(f=i,hO.includes(e)?g():(m(),g.cancel()))})),v=()=>{let e=[];(null==u?void 0:u.isConnected)||(u=function(e,t){const n=document.createElement("div");return n.id=e,n.style.setProperty("display","none"),n.textContent=t,n}(l,a.draggable),e.push(u)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(c),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect(()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const n=null!=(e=t.handle)?e:t.element;if(n){u&&d||y.add(v),fO(n)&&!dT()||n.hasAttribute("tabindex")||y.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||y.add(()=>n.setAttribute("role",sO)),n.hasAttribute("aria-roledescription")||y.add(()=>n.setAttribute("aria-roledescription",lO)),n.hasAttribute("aria-describedby")||y.add(()=>n.setAttribute("aria-describedby",l));for(const e of["aria-pressed","aria-grabbed"]){const r=String(t.isDragging);n.getAttribute(e)!==r&&y.add(()=>n.setAttribute(e,r))}const e=String(t.disabled);n.getAttribute("aria-disabled")!==e&&y.add(()=>n.setAttribute("aria-disabled",e))}}y.size>0&&QT.schedule(x)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),b.forEach(e=>e())}}};var gO,bO,vO,yO,xO,SO,wO,CO,EO,RO,IO,AO,kO,PO=new Map,DO=class extends(xO=aD,yO=[Bk],vO=[Vk],bO=[Vk],gO=[Vk],xO){constructor(e,t){super(e,t),Qq(wO,5,this),oO(this,EO),oO(this,SO,new Set),oO(this,CO,Qq(wO,8,this,new Set)),Qq(wO,11,this),this.registerEffect(aO(this,EO,RO))}register(e){return rO(this,SO).add(e),()=>{rO(this,SO).delete(e)}}addRoot(e){return MA(()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t}),()=>{MA(()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t})}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return hT(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return hT(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter(e=>null!=e);return new Set([...e,...this.additionalRoots])}return new Set}};wO=Kq(xO),SO=new WeakMap,CO=new WeakMap,EO=new WeakSet,RO=function(){const{roots:e}=this,t=[];for(const n of e)for(const e of rO(this,SO))t.push(aO(this,EO,IO).call(this,n,e));return()=>{for(const e of t)e()}},IO=function(e,t){let n=PO.get(e);n||(n=new Map,PO.set(e,n));let r=n.get(t);if(!r){const o=nT(e)?aO(this,EO,AO).call(this,e,n,t):aO(this,EO,kO).call(this,e,n,t);if(!o)return()=>{};r=o,n.set(t,r)}r.refCount++;let o=!1;return()=>{o||(o=!0,r.refCount--,0===r.refCount&&r.cleanup())}},AO=function(e,t,n){var r;const o=e.createElement("style"),{nonce:i}=null!=(r=this.options)?r:{};i&&o.setAttribute("nonce",i),o.textContent=n,e.head.prepend(o);const a=new MutationObserver(t=>{for(const n of t)for(const t of Array.from(n.removedNodes))if(t===o)return void e.head.prepend(o)});return a.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{a.disconnect(),o.remove(),t.delete(n),0===t.size&&PO.delete(e)}}},kO=function(e,t,n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const r=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=r?r:{};if(!o)return null;const i=new o;return i.replaceSync(n),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var r;if(fT(e)&&(null==(r=e.host)?void 0:r.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(n),0===t.size&&PO.delete(e)}}},eO(wO,4,"additionalRoots",yO,DO,CO),eO(wO,2,"sourceRoot",vO,DO),eO(wO,2,"targetRoot",bO,DO),eO(wO,2,"roots",gO,DO),Zq(wO,DO),DO.configure=nD(DO);var MO=DO,TO="data-dnd-",qO=`${TO}dropping`,OO="--dnd-",LO=`${TO}dragging`,NO=`${TO}placeholder`,jO=[LO,NO,"popover","aria-pressed","aria-grabbing"],_O=["view-transition-name"],zO=`\n :is(:root,:host) [${LO}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${OO}top, 0px) !important;\n left: var(${OO}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${OO}width, auto);\n max-width: var(${OO}width, auto);\n height: var(${OO}height, auto);\n max-height: var(${OO}height, auto);\n transform: var(${OO}transform, none) !important;\n transition: var(${OO}transition) !important;\n }\n\n :is(:root,:host) [${NO}] {\n transition: none;\n }\n\n :is(:root,:host) [${NO}='hidden'] {\n visibility: hidden;\n }\n\n [${LO}] * {\n pointer-events: none !important;\n }\n\n [${LO}]:not([${qO}]) {\n translate: var(${OO}translate) !important;\n }\n\n [${LO}][style*='${OO}scale'] {\n scale: var(${OO}scale) !important;\n transform-origin: var(${OO}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${LO}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${LO}]::backdrop, [${TO}overlay]:not([${LO}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function FO(e,t="hidden"){return MA(()=>{const{element:n,manager:r}=e;if(!n||!r)return;const o=function(e,t){const n=new Map;for(const r of t)if(r.element&&(e===r.element||e.contains(r.element))){const e=`${TO}${Dq("dom-id")}`;r.element.setAttribute(e,""),n.set(r,e)}return n}(n,r.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",n=e.cloneNode(!0),r=Array.from(e.querySelectorAll(t));return Array.from(n.querySelectorAll(t)).forEach((e,t)=>{const n=r[t];if(gT(e)&&gT(n)&&("file"!==e.type&&(e.value=n.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),bT(e)&&bT(n)&&n.width>0&&n.height>0){const t=e.getContext("2d");null==t||t.drawImage(n,0,0)}}),n}(n),{remove:s}=a;return function(e,t,n){for(const[r,o]of e){if(!r.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(r.element.removeAttribute(o),!i)continue;const a=r.element;r.proxy=i,i.removeAttribute(o),yT.set(a,i),n.push(()=>{yT.delete(a),r.proxy=void 0})}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(NO,t)}(a,t),a.remove=()=>{i.forEach(e=>e()),s.call(a)},a})}function $O(e,t){return e===t||ST(e)===ST(t)}function HO(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&Aq(t)&&t.hasAttribute("popover")&&requestAnimationFrame(()=>KT(t))}function BO(e){return"TR"===e.tagName}var VO,WO,UO,GO,KO,YO,XO,JO=250,ZO="ease";var QO=class extends(WO=oD,VO=[Bk],WO){constructor(e,t){super(e,t),oO(this,KO),oO(this,GO,Qq(UO,8,this)),Qq(UO,11,this),this.state={initial:{},current:{}};const n=e.registry.plugins.get(MO),r=null==n?void 0:n.register(zO);if(r){const e=this.destroy.bind(this);this.destroy=()=>{r(),e()}}this.registerEffect(aO(this,KO,YO).bind(this,n)),this.registerEffect(aO(this,KO,XO))}};UO=Kq(WO),GO=new WeakMap,KO=new WeakSet,YO=function(e){const{overlay:t}=this;if(!t||!e)return;const n=hT(t);return n?e.addRoot(n):void 0},XO=function(){var e,t,n,r,o,i,a;const{state:s,manager:l,options:c}=this,{dragOperation:u}=l,{position:d,source:p,status:f}=u;if(f.idle)return s.current={},void(s.initial={});if(!p)return;const{element:h}=p,m=p.pluginConfig(QO),g=null!=(t=null!=(e=null==m?void 0:m.feedback)?e:null==c?void 0:c.feedback)?t:"default",b="function"==typeof g?g(p,l):g;if(!h||"none"===b||!f.initialized||f.initializing)return;const{initial:v}=s,y=null!=(n=this.overlay)?n:h,x=sq(y),S=sq(h),w=!$O(h,y),C=new Eq(h,{frameTransform:w?S:null,ignoreTransforms:!w}),E=S.scaleX/x.scaleX,R=S.scaleY/x.scaleY;let{width:I,height:A,top:k,left:P}=C;w&&(I/=E,A/=R);const D=new Iq(y),M=rq(h),{transition:T,translate:q,boxSizing:O,paddingBlockStart:L,paddingBlockEnd:N,paddingInlineStart:j,paddingInlineEnd:_,borderInlineStartWidth:z,borderInlineEndWidth:F,borderBlockStartWidth:$,borderBlockEndWidth:H}=M,B=T.split(",").filter(e=>!/^\s*(transform|translate|scale)\b/.test(e)).join(","),V=uq(M),W=M.transform,U="clone"===b,G="content-box"===O,K=G?parseInt(j)+parseInt(_)+parseInt(z)+parseInt(F):0,Y=G?parseInt(L)+parseInt(N)+parseInt($)+parseInt(H):0,X="move"===b||this.overlay?null:FO(p,U?"clone":"hidden"),J=MA(()=>kq(l.dragOperation.activatorEvent));if(!v.translate)if(this.overlay&&V)v.translate={x:V.x,y:V.y};else if("none"!==q){const e=cq(q);e&&(v.translate=e)}if(!v.transformOrigin){const e=MA(()=>d.current),t=P+(null!=(r=null==V?void 0:V.x)?r:0),n=k+(null!=(o=null==V?void 0:V.y)?o:0);v.transformOrigin={x:(e.x-t*x.scaleX-x.x)/(I*x.scaleX),y:(e.y-n*x.scaleY-x.y)/(A*x.scaleY)}}const{transformOrigin:Z}=v,Q=k*x.scaleY+x.y,ee=P*x.scaleX+x.x;if(!v.coordinates&&(v.coordinates={x:ee,y:Q},1!==E||1!==R)){const{scaleX:e,scaleY:t}=S,{x:n,y:r}=Z;v.coordinates.x+=(I*e-I)*n,v.coordinates.y+=(A*t-A)*r}v.dimensions||(v.dimensions={width:I,height:A}),v.frameTransform||(v.frameTransform=x);const te=v.coordinates.x-ee,ne=v.coordinates.y-Q,re=(v.dimensions.width*v.frameTransform.scaleX-I*x.scaleX)*Z.x,oe=(v.dimensions.height*v.frameTransform.scaleY-A*x.scaleY)*Z.y,ie={x:te/x.scaleX+re,y:ne/x.scaleY+oe},ae=P+ie.x,se=k+ie.y;y.setAttribute(LO,"true");const le=MA(()=>u.transform),ce=null!=(i=v.translate)?i:{x:0,y:0},ue=le.x*x.scaleX+ce.x,de=le.y*x.scaleY+ce.y,pe=pT();if(D.set({width:I-K,height:A-Y,top:se+pe.y,left:ae+pe.x,translate:`${ue}px ${de}px 0`,transform:this.overlay?"none":W,transition:B?`${B}, translate 0ms linear`:"translate 0ms linear",scale:w?`${E} ${R}`:"","transform-origin":`${100*Z.x}% ${100*Z.y}%`},OO),X&&(h.insertAdjacentElement("afterend",X),null==c?void 0:c.rootElement)){("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(h)}let fe,he,me;GT(y)&&(y.hasAttribute("popover")||y.setAttribute("popover","manual"),KT(y),y.addEventListener("beforetoggle",HO));const ge=(be={placeholder:X,element:h,feedbackElement:y,frameTransform:x,transformOrigin:Z,width:I,height:A,top:k,left:P,widthOffset:K,heightOffset:Y,delta:ie,styles:D,dragOperation:u,getTranslate:()=>s.current.translate,getElementMutationObserver:()=>fe,getSavedCellWidths:()=>me,setSavedCellWidths:e=>{me=e}},new ResizeObserver(()=>{var e,t,n;const r=new Eq(be.placeholder,{frameTransform:be.frameTransform,ignoreTransforms:!0}),o=null!=(e=be.transformOrigin)?e:{x:1,y:1},i=(be.width-r.width)*o.x+be.delta.x,a=(be.height-r.height)*o.y+be.delta.y,s=pT();if(be.styles.set({width:r.width-be.widthOffset,height:r.height-be.heightOffset,top:be.top+a+s.y,left:be.left+i+s.x},OO),null==(t=be.getElementMutationObserver())||t.takeRecords(),BO(be.element)&&BO(be.placeholder)){const e=Array.from(be.element.cells),t=Array.from(be.placeholder.cells);be.getSavedCellWidths()||be.setSavedCellWidths(e.map(e=>e.style.width));for(const[n,r]of e.entries()){const e=t[n];r.style.width=`${e.getBoundingClientRect().width}px`}}const l=null!=(n=be.getTranslate())?n:{x:0,y:0},c=be.left+i+s.x+l.x,u=be.top+a+s.y+l.y,d=r.width-be.widthOffset,p=r.height-be.heightOffset,f=be.frameTransform;be.dragOperation.shape=new bP(c*f.scaleX+f.x,u*f.scaleY+f.y,d*f.scaleX,p*f.scaleY)}));var be;const ve=new Eq(y);MA(()=>u.shape=ve);const ye=tT(y),xe=e=>{this.manager.actions.stop({event:e})},Se=mT(ye);J&&ye.addEventListener("resize",xe),"idle"===MA(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),X&&(ge.observe(X),fe=function(e,t,n){const r=new MutationObserver(r=>{let o=!1;for(const n of r){if(n.target!==e){o=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||jO.includes(r))continue;const i=e.getAttribute(r);if("style"===r){if(Rq(e)&&Rq(t)){const n=e.style;for(const e of Array.from(t.style))""===n.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(n)){if(_O.includes(e)||e.startsWith(OO))continue;const r=n.getPropertyValue(e);t.style.setProperty(e,r)}}}else null!==i?t.setAttribute(r,i):t.removeAttribute(r)}o&&n&&t.replaceChildren(...e.cloneNode(!0).childNodes)});return r.observe(e,{attributes:!0,subtree:!0,childList:!0}),r}(h,X,U),he=function(e,t,n){const r=new MutationObserver(r=>{for(const o of r)if(0!==o.addedNodes.length)for(const r of Array.from(o.addedNodes)){if(r.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void KT(n);if(r.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void KT(n)}e.isConnected&&t.isConnected&&e.nextElementSibling!==t&&(e.insertAdjacentElement("afterend",t),KT(n))});return r.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),r}(h,X,y));const we=null==(a=l.dragOperation.source)?void 0:a.id,Ce=()=>{var e;if(!J||null==we)return;const t=l.registry.draggables.get(we),n=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;rT(n)&&n.focus()},Ee=()=>{null==fe||fe.disconnect(),null==he||he.disconnect(),ge.disconnect(),ye.removeEventListener("resize",xe),GT(y)&&(y.removeEventListener("beforetoggle",HO),y.removeAttribute("popover")),y.removeAttribute(LO),D.reset();const e=()=>{var e;if(me&&BO(h)){const t=Array.from(h.cells);for(const[n,r]of t.entries())r.style.width=null!=(e=me[n])?e:""}p.status="idle";const t=null!=s.current.translate,n=u.status.dragging;X&&(!n&&t||X.parentElement!==y.parentElement)&&y.isConnected&&X.replaceWith(y),null==X||X.remove()};y===this.overlay?setTimeout(e,0):e()},Re=null==c?void 0:c.dropAnimation,Ie=this,Ae=Uk(()=>{var e,t,n;const{transform:r,status:o}=u;if((r.x||r.y||s.current.translate)&&o.dragging){const o=null!=(e=v.translate)?e:{x:0,y:0},i={x:r.x/x.scaleX+o.x,y:r.y/x.scaleY+o.y},a=s.current.translate,l=MA(()=>u.modifiers),d=MA(()=>{var e;return null==(e=u.shape)?void 0:e.current}),p=null==c?void 0:c.keyboardTransition,f=J&&!Se&&null!==p?`${null!=(t=null==p?void 0:p.duration)?t:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(D.set({transition:B?`${B}, translate ${f}`:`translate ${f}`,translate:`${i.x}px ${i.y}px 0`},OO),null==fe||fe.takeRecords(),d&&d!==ve&&a&&!l.length){const e=gP.delta(i,a);u.shape=bP.from(d.boundingRectangle).translate(e.x*x.scaleX,e.y*x.scaleY)}else u.shape=new Eq(y);s.current.translate=i}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const e=void 0!==(null==m?void 0:m.dropAnimation)?m.dropAnimation:void 0!==Ie.dropAnimation?Ie.dropAnimation:Re;let t=s.current.translate;const n=null!=t;if(t||h===y||(t={x:0,y:0}),!t||null===e)return void Ee();l.renderer.rendering.then(()=>{!function(e){var t,n,r,o;const{animation:i}=e;if("function"==typeof i){const t=i({source:e.source,element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then(()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)})}const{duration:a=JO,easing:s=ZO}=null!=i?i:{};KT(e.feedbackElement);const[,l]=null!=(t=JM(e.feedbackElement,e=>"translate"in e))?t:[];null==l||l.pause();const c=null!=(n=e.placeholder)?n:e.element,u={frameTransform:$O(e.feedbackElement,c)?null:void 0},d=new Eq(e.feedbackElement,u),p=null!=(r=cq(rq(e.feedbackElement).translate))?r:e.translate,f=new Eq(c,u),h=bP.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},OO),e.feedbackElement.setAttribute(qO,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),vq({element:e.feedbackElement,keyframes:Wq(Vq(Vq({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:mT(tT(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then(()=>{e.feedbackElement.removeAttribute(qO),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)})}({source:p,element:h,feedbackElement:y,placeholder:X,translate:t,moved:n,transition:T,alignment:p.alignment,styles:D,animation:null!=e?e:void 0,getElementMutationObserver:()=>fe,cleanup:Ee,restoreFocus:Ce})})}});return()=>{Ee(),Ae()}},eO(UO,4,"overlay",VO,QO,GO),Zq(UO,QO),QO.configure=nD(QO);var eL,tL,nL,rL,oL,iL,aL,sL=QO,lL=!0;nL=[Bk],rL=dq.Forward,eL=[Bk],tL=dq.Reverse;var cL=class{constructor(){oO(this,iL,Qq(oL,8,this,lL)),Qq(oL,11,this),oO(this,aL,Qq(oL,12,this,lL)),Qq(oL,15,this)}isLocked(e){return e!==dq.Idle&&(null==e?this[dq.Forward]===lL&&this[dq.Reverse]===lL:this[e]===lL)}unlock(e){e!==dq.Idle&&(this[e]=false)}};oL=Kq(null),iL=new WeakMap,aL=new WeakMap,eO(oL,4,rL,nL,cL,iL),eO(oL,4,tL,eL,cL,aL),Zq(oL,cL);var uL,dL,pL,fL,hL,mL,gL=[dq.Forward,dq.Reverse],bL=class{constructor(){this.x=new cL,this.y=new cL}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},vL=class extends oD{constructor(e){super(e);const t=$A(new bL);let n=null;this.signal=t,JA(()=>{const{status:r}=e.dragOperation;if(!r.initialized)return n=null,void(t.value=new bL);const{delta:o}=e.dragOperation.position;if(n){const e={x:yL(o.x,n.x),y:yL(o.y,n.y)},r=t.peek();PA(()=>{for(const t of IP)for(const n of gL)e[t]===n&&r[t].unlock(n);t.value=r})}n=o})}get current(){return this.signal.peek()}};function yL(e,t){return Math.sign(e-t)}var xL=class extends(dL=aD,uL=[Bk],dL){constructor(e){super(e),oO(this,fL,Qq(pL,8,this,!1)),Qq(pL,11,this),oO(this,hL),oO(this,mL,()=>{if(!rO(this,hL))return;const{element:e,by:t}=rO(this,hL);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)}),this.scroll=(e,t)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return iO(this,hL,void 0),!1;const{position:o}=this.manager.dragOperation,i=null==o?void 0:o.current;if(i){const{by:o}=null!=e?e:{},a=o?{x:SL(o.x),y:SL(o.y)}:void 0,s=a?void 0:this.scrollIntentTracker.current;if(null==s?void 0:s.isLocked())return!1;for(const e of r){const r=JT(e,o);if(r.x||r.y){const{speed:r,direction:l}=hq(e,i,a,null==t?void 0:t.acceleration,null==t?void 0:t.threshold);if(s)for(const e of IP)s[e].isLocked(l[e])&&(r[e]=0,l[e]=0);if(l.x||l.y){const{x:t,y:i}=null!=o?o:l,a=t*r.x,s=i*r.y;if(a||s){const t=null==(n=rO(this,hL))?void 0:n.by;if(this.autoScrolling&&t){if(t.x&&!a||t.y&&!s)continue}return iO(this,hL,{element:e,by:{x:a,y:s}}),QT.schedule(rO(this,mL)),!0}}}}}return iO(this,hL,void 0),!1};let t=null,n=null;const r=$k(()=>{const{position:n,source:r}=e.dragOperation;if(!n)return null;const o=vT(hT(null==r?void 0:r.element),n.current);return o&&(t=o),null!=o?o:t}),o=$k(()=>{const t=r.value,{documentElement:o}=iT(t);if(!t||t===o){const{target:t}=e.dragOperation,r=null==t?void 0:t.element;if(r){const e=aq(r,{excludeElement:!1});return n=e,e}}if(t){const e=aq(t,{excludeElement:!1});return this.autoScrolling&&n&&e.size<(null==n?void 0:n.size)?n:(n=e,e)}return n=null,null},Hk);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new vL(e),this.destroy=e.monitor.addEventListener("dragmove",t=>{!this.disabled&&!t.defaultPrevented&&kq(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()})}};function SL(e){return e>0?dq.Forward:e<0?dq.Reverse:dq.Idle}pL=Kq(dL),fL=new WeakMap,hL=new WeakMap,mL=new WeakMap,eO(pL,4,"autoScrolling",uL,xL,fL),Zq(pL,xL);var wL=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(e=>this.resolvers.add(e))}}(e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()}),CL=class extends oD{constructor(e,t){super(e,t);const n=e.registry.plugins.get(xL);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=JA(()=>{var t,r,o;if(this.disabled)return;const{position:i,status:a}=e.dragOperation;if(a.dragging){const e={acceleration:null==(t=this.options)?void 0:t.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(o=this.options)?void 0:o.threshold};if(n.scroll(void 0,e)){n.autoScrolling=!0;const t=setInterval(()=>wL.schedule(()=>n.scroll(void 0,e)),10);return()=>{clearInterval(t)}}n.autoScrolling=!1}})}};CL.configure=nD(CL);var EL,RL=CL,IL={capture:!0,passive:!0},AL=class extends aD{constructor(e){super(e),oO(this,EL),this.handleScroll=()=>{null==rO(this,EL)&&iO(this,EL,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),iO(this,EL,void 0)},50))};const{dragOperation:t}=this.manager;this.destroy=JA(()=>{var e,n,r;if(t.status.dragging){const o=null!=(r=null==(n=null==(e=t.source)?void 0:e.element)?void 0:n.ownerDocument)?r:document;return o.addEventListener("scroll",this.handleScroll,IL),()=>{o.removeEventListener("scroll",this.handleScroll,IL)}}})}};EL=new WeakMap;function kL(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var PL,DL=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var n;const r=null!=(n=t.handle)?n:t.element;return e.target!==r}}),ML=class extends gM{constructor(e,t){super(e),this.manager=e,this.options=t,oO(this,PL,[]),this.listeners=new xT,this.handleSourceKeyDown=(e,t,n)=>{if(this.disabled||e.defaultPrevented)return;if(!Aq(e.target))return;if(t.disabled)return;const{keyboardCodes:r=DL.keyboardCodes,preventActivation:o=DL.preventActivation}=null!=n?n:{};r.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,n))}}bind(e,t=this.options){const n=JA(()=>{var n;const r=null!=(n=e.handle)?n:e.element,o=n=>{kq(n)&&this.handleSourceKeyDown(n,e,t)};if(r)return r.addEventListener("keydown",o),()=>{r.removeEventListener("keydown",o)}});return n}handleStart(e,t,n){const{element:r}=t;if(!r)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),mq(r);const{center:o}=new Eq(r);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=iT(r),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,n),options:{capture:!0}}])];rO(this,PL).push(...a)}handleKeyDown(e,t,n){const{keyboardCodes:r=DL.keyboardCodes}=null!=n?n:{};if(OL(e,[...r.end,...r.cancel])){e.preventDefault();const t=OL(e,r.cancel);return void this.handleEnd(e,t)}OL(e,r.up)?this.handleMove("up",e):OL(e,r.down)&&this.handleMove("down",e),OL(e,r.left)?this.handleMove("left",e):OL(e,r.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var n,r;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(r=null==(n=this.options)?void 0:n.offset)?r:DL.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(RL);!1===(null==e?void 0:e.disabled)&&(e.disable(),rO(this,PL).push(()=>{e.enable()}))}cleanup(){rO(this,PL).forEach(e=>e()),iO(this,PL,[])}destroy(){this.cleanup(),this.listeners.clear()}};PL=new WeakMap,ML.configure=nD(ML),ML.defaults=DL;var TL,qL=ML;function OL(e,t){return t.includes(e.code)}var LL,NL;TL=new WeakMap;LL=new WeakMap,NL=new WeakMap;var jL=class{};jL.Delay=class extends vM{constructor(){super(...arguments),oO(this,LL),oO(this,NL)}onEvent(e){switch(e.type){case"pointerdown":iO(this,NL,lT(e)),iO(this,LL,setTimeout(()=>this.activate(e),this.options.value));break;case"pointermove":if(!rO(this,NL))return;const{x:t,y:n}=lT(e);xP({x:t-rO(this,NL).x,y:n-rO(this,NL).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){rO(this,LL)&&(clearTimeout(rO(this,LL)),iO(this,NL,void 0),iO(this,LL,void 0))}},jL.Distance=class extends vM{constructor(){super(...arguments),oO(this,TL)}onEvent(e){switch(e.type){case"pointerdown":iO(this,TL,lT(e));break;case"pointermove":if(!rO(this,TL))return;const{x:t,y:n}=lT(e),r={x:t-rO(this,TL).x,y:n-rO(this,TL).y},{tolerance:o}=this.options;if(o&&xP(r,o))return void this.abort();xP(r,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){iO(this,TL,void 0)}};var _L,zL=Object.freeze({activationConstraints(e,t){var n;const{pointerType:r,target:o}=e;if("mouse"!==r||!Aq(o)||t.handle!==o&&!(null==(n=t.handle)?void 0:n.contains(o)))return"touch"===r?[new jL.Delay({value:250,tolerance:5})]:function(e){if(!Aq(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(n=e).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(o)&&!e.defaultPrevented?[new jL.Delay({value:200,tolerance:0})]:[new jL.Delay({value:200,tolerance:10}),new jL.Distance({value:5})]},preventActivation(e,t){var n;const{target:r}=e;if(r===t.element)return!1;if(r===t.handle)return!1;if(!Aq(r))return!1;if(null==(n=t.handle)?void 0:n.contains(r))return!1;const o=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return o!==t.element&&Boolean(o)}}),FL=class extends gM{constructor(e,t){super(e),this.manager=e,this.options=t,oO(this,_L,new Set),this.listeners=new xT,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,n=this.options){const{activationConstraints:r=zL.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(e,t):r}bind(e,t=this.options){const n=JA(()=>{var n;const r=new AbortController,{signal:o}=r,i=n=>{(function(e){if(!e)return!1;const{PointerEvent:t}=tT(e.target);return e instanceof t})(n)&&this.handlePointerDown(n,e,t)};let a=[null!=(n=e.handle)?n:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(WL(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>r.abort()});return n}handlePointerDown(e,t,n){if(this.disabled||!e.isPrimary||0!==e.button||!Aq(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=zL.preventActivation}=null!=n?n:{};if(null==r?void 0:r(e,t))return;const{target:o}=e,i=rT(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=sq(t.element),{x:s,y:l}=lT(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const c=this.activationConstraints(e,t,n);e.sensor=this;const u=new bM(c,e=>this.handleStart(t,e));u.signal.onabort=()=>this.handleCancel(e),u.onEvent(e),this.controller=u;const d=uT(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:HL,options:{capture:!0}}]);rO(this,_L).add(()=>{p(),this.initialCoordinates=void 0})}handlePointerMove(e,t){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=lT(e),r=sq(t.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=n,QT.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const n=!t.initialized;this.manager.actions.stop({event:e,canceled:n})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:r,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=iT(t.target).body;try{o.setPointerCapture(t.pointerId)}catch(e){return void this.handleCancel(t)}const i=Aq(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:HL,options:{passive:!1}},{type:"click",listener:HL},{type:"contextmenu",listener:HL},{type:"keydown",listener:this.handleKeyDown}]);rO(this,_L).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){const{controller:e}=this;this.controller=void 0,e&&!e.signal.aborted&&e.abort(),this.latest={event:void 0,coordinates:void 0},rO(this,_L).forEach(e=>e()),rO(this,_L).clear()}destroy(){this.cleanup(),this.listeners.clear()}};_L=new WeakMap,FL.configure=nD(FL),FL.defaults=zL;var $L=FL;function HL(e){e.preventDefault()}function BL(){}var VL=new WeakSet;function WL(e){e&&!VL.has(e)&&(e.addEventListener("touchmove",BL,{capture:!1,passive:!1}),VL.add(e))}var UL,GL,KL,YL,XL,JL,ZL,QL,eN,tN,nN,rN,oN,iN,aN,sN,lN={modifiers:[],plugins:[mO,RL,class extends oD{constructor(e,t){super(e,t),this.manager=e;const{cursor:n="grabbing"}=null!=t?t:{},r=e.registry.plugins.get(MO),o=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(o){const e=this.destroy.bind(this);this.destroy=()=>{o(),e()}}}},sL,class extends oD{constructor(e){super(e),this.manager=e;const t=e.registry.plugins.get(MO),n=null==t?void 0:t.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=JA(()=>{const{dragOperation:e}=this.manager;if(e.status.initialized)return kL(),document.addEventListener("selectionchange",kL,{capture:!0}),()=>{document.removeEventListener("selectionchange",kL,{capture:!0})}}),n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}}}],sensors:[$L,qL]},cN=class extends BM{constructor(e={}){const t=HM(e.plugins,lN.plugins),n=HM(e.sensors,lN.sensors),r=HM(e.modifiers,lN.modifiers);super(Wq(Vq({},e),{plugins:[AL,xL,MO,...t],sensors:n,modifiers:r}))}},uN=class extends(KL=XD,GL=[Bk],UL=[Bk],KL){constructor(e,t){var n=e,{element:r,effects:o=()=>[],handle:i}=n,a=Gq(n,["element","effects","handle"]);super(Vq({effects:()=>[...o(),()=>{var e,t;const{manager:n}=this;if(!n)return;const r=(null!=(t=null==(e=this.sensors)?void 0:e.map(rD))?t:[...n.sensors]).map(e=>{const t=e instanceof gM?e:n.registry.register(e.plugin),r=e instanceof gM?void 0:e.options;return t.bind(this,r)});return function(){r.forEach(e=>e())}}]},a),t),oO(this,XL,Qq(YL,8,this)),Qq(YL,11,this),oO(this,JL,Qq(YL,12,this)),Qq(YL,15,this),this.element=r,this.handle=i}};YL=Kq(KL),XL=new WeakMap,JL=new WeakMap,eO(YL,4,"handle",GL,uN,XL),eO(YL,4,"element",UL,uN,JL),Zq(YL,uN);var dN=class extends(eN=JD,QL=[Bk],ZL=[Bk],eN){constructor(e,t){var n=e,{element:r,effects:o=()=>[]}=n,i=Gq(n,["element","effects"]);const{collisionDetector:a=Mq}=i,s=e=>{const{manager:t,element:n}=this;if(!n||null===e)return void(this.shape=void 0);if(!t)return;const r=new Eq(n),o=MA(()=>this.shape);return r&&(null==o?void 0:o.equals(r))?o:(this.shape=r,r)},l=$A(!1);super(Wq(Vq({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:n}=t,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&e&&!this.disabled&&this.accepts(r))},()=>{const{element:e}=this;if(l.value&&e){const t=new UT(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),oO(this,aN),oO(this,nN,Qq(tN,8,this)),Qq(tN,11,this),oO(this,sN,Qq(tN,12,this)),Qq(tN,15,this),this.element=r,this.refreshShape=()=>s()}set element(e){iO(this,aN,e,iN)}get element(){var e;return null!=(e=this.proxy)?e:rO(this,aN,oN)}};function pN(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}tN=Kq(eN),nN=new WeakMap,aN=new WeakSet,sN=new WeakMap,rN=eO(tN,20,"#element",QL,aN,nN),oN=rN.get,iN=rN.set,eO(tN,4,"proxy",ZL,dN,sN),Zq(tN,dN);var fN="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?j:q;function hN(){const e=P(0)[1];return L(()=>{e(e=>e+1)},[e])}function mN(e,t=[],n=!1){const r=D(e);return r.current=e,function(e,t=!1){const n=D(e.peek()),r=D(!1),o=hN();return fN(()=>JA(()=>{const i=n.current,a=e.value;if(i!==a){if(n.current=a,!r.current)return;t?U(o):o()}}),[e,t,o]),{get value(){return r.current=!0,e.peek()}}}(k(()=>$k(()=>r.current()),t),n)}function gN(e,t){const n=D(new Map),r=hN();return fN(()=>{if(e)return JA(()=>{var o;let i=!1,a=!1;for(const r of n.current){const[s]=r,l=MA(()=>r[1]),c=e[s];l!==c&&(i=!0,n.current.set(s,c),a=null!=(o=null==t?void 0:t(s,l,c))&&o)}i&&(a?queueMicrotask(()=>U(r)):r())});n.current.clear()},[e]),k(()=>e?new Proxy(e,{get(e,t){const r=e[t];return n.current.set(t,r),r}}):e,[e])}function bN(e,t){e()}function vN(e){const t=D(e);return fN(()=>{t.current=e},[e]),t}function yN(e,t,n=q,r=Object.is){const o=D(e);n(()=>{const n=o.current;r(e,n)||(o.current=e,t(e,n))},[t,e])}function xN(e,t){const n=D(pN(e));fN(()=>{const r=pN(e);r!==n.current&&(n.current=r,t(r))})}var SN=Object.defineProperty,wN=Object.defineProperties,CN=Object.getOwnPropertyDescriptors,EN=Object.getOwnPropertySymbols,RN=Object.prototype.hasOwnProperty,IN=Object.prototype.propertyIsEnumerable,AN=(e,t,n)=>t in e?SN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kN=new cN,PN=M(kN),DN=z(F(({children:e},t)=>{const[n,r]=P(0),o=D(null),i=D(null),a=k(()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise(e=>{i.current=e})),$(()=>{e(),r(e=>e+1)})}}),[]);return fN(()=>{var e;null==(e=i.current)||e.call(i),o.current=null},[e,n]),H(t,()=>a),null})),MN=[void 0,Hk];function TN(e){var t=e,{children:n,onCollision:r,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,c=((e,t)=>{var n={};for(var r in e)RN.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&EN)for(var r of EN(e))t.indexOf(r)<0&&IN.call(e,r)&&(n[r]=e[r]);return n})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const u=D(null),{plugins:d,modifiers:p,sensors:f}=c,h=HM(d,lN.plugins),m=HM(f,lN.sensors),g=HM(p,lN.modifiers),b=vN(o),v=vN(i),y=vN(s),x=vN(a),S=vN(l),w=vN(r),C=function(e){const t=D(null);t.current||(t.current=e());return _(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}(()=>{var e;return null!=(e=c.manager)?e:new cN(c)});return q(()=>{if(!u.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=u.current,{monitor:n}=C;C.renderer=e;const r=[n.addEventListener("beforedragstart",e=>{const n=b.current;n&&t(()=>n(e,C))}),n.addEventListener("dragstart",e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)}),n.addEventListener("dragover",e=>{const n=y.current;n&&t(()=>n(e,C))}),n.addEventListener("dragmove",e=>{const n=x.current;n&&t(()=>n(e,C))}),n.addEventListener("dragend",e=>{const n=S.current;n&&t(()=>n(e,C))}),n.addEventListener("collision",e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)})];return()=>r.forEach(e=>e())},[C]),yN(h,()=>C&&(C.plugins=h),...MN),yN(m,()=>C&&(C.sensors=m),...MN),yN(g,()=>C&&(C.modifiers=g),...MN),sn.jsxs(PN.Provider,{value:C,children:[sn.jsx(DN,{ref:u,children:n}),n]})}function qN(){return N(PN)}function ON(e){var t;const n=null!=(t=qN())?t:void 0,[r]=P(()=>e(n));return r.manager!==n&&(r.manager=n),fN(r.register,[n,r]),r}function LN({children:e,className:t,dropAnimation:n,style:r,tag:o,disabled:i}){var a;const s=D(null),l=qN(),c=null!=(a=mN(()=>null==l?void 0:l.dragOperation.source,[l]).value)?a:null,u="function"==typeof i?i(c):i;q(()=>{if(!s.current||!l||u)return;const e=l.plugins.find(e=>e instanceof sL);return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0},[l,u]),q(()=>{if(!l)return;const e=l.plugins.find(e=>e instanceof sL);return e?(e.dropAnimation=n,()=>{e.dropAnimation=void 0}):void 0},[l,n]);const d=k(()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?NN:e[t]});return new Proxy(l,{get:(t,n)=>"registry"===n?e:t[n]})},[l]);return sn.jsx(PN.Provider,{value:d,children:C(o||"div",{ref:s,className:t,style:r,"data-dnd-overlay":!0},function(){if(!c||u)return null;if("function"==typeof e)return sn.jsx(jN,{source:c,children:e});return e}())})}function NN(){return()=>{}}function jN({children:e,source:t}){return e(gN(t))}var _N,zN,FN,$N,HN,BN=Object.create,VN=Object.defineProperty,WN=Object.getOwnPropertyDescriptor,UN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),GN=e=>{throw TypeError(e)},KN=["class","method","getter","setter","accessor","field","value","get","set"],YN=e=>void 0!==e&&"function"!=typeof e?GN("Function expected"):e,XN=(e,t,n,r,o)=>({kind:KN[e],name:t,metadata:r,addInitializer:e=>n._?GN("Already initialized"):o.push(YN(e||null))}),JN=(e,t,n,r,o,i)=>{for(var a,s,l,c,u=7&t,d=KN[u+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,WN(o,n)),h=r.length-1;h>=0;h--)(l=XN(u,n,s={},e[3],p)).static=false,l.private=false,c=l.access={has:e=>n in e},c.get=e=>e[n],a=(0,r[h])(f[d],l),s._=1,YN(a)&&(f[d]=a);return f&&VN(o,n,f),o},ZN=(e,t,n)=>t.has(e)||GN("Cannot "+n),QN=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,n){return new e(t.x-n.x,t.y-n.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:n}){return new e(t,n)}},ej=class extends(FN=Kk,zN=[Vk],_N=[Vk],FN){constructor(e){var t,n,r;super(QN.from(e),(e,t)=>QN.equals(e,t)),((e,t,n)=>{for(var r=0,o=e[t>>1],i=o&&o.length;r<i;r++)o[r].call(n)})(HN,5,this),t=this,r=0,(n=$N).has(t)?GN("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,r),this.velocity={x:0,y:0}}get delta(){return QN.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const n={x:e.x-t.x,y:e.y-t.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,n=QN.from(e),r={x:n.x-t.x,y:n.y-t.y},o=Date.now(),i=o-(ZN(a=this,s=$N,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);PA(()=>{((e,t,n)=>{ZN(e,t,"write to private field"),t.set(e,n)})(this,$N,o),this.velocity={x:l(r.x),y:l(r.y)},super.current=n})}reset(e=this.defaultValue){super.reset(QN.from(e)),this.velocity={x:0,y:0}}};HN=(e=>{var t;return[,,,BN(null!=(t=null==e?void 0:e[UN("metadata")])?t:null)]})(FN),$N=new WeakMap,JN(HN,2,"delta",zN,ej),JN(HN,2,"direction",_N,ej),((e,t)=>{((e,t,n)=>{t in e?VN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(t,UN("metadata"),e[3])})(HN,ej);var tj=(e=>(e.Horizontal="x",e.Vertical="y",e))(tj||{});Object.values(tj);var nj=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const n=e.position.current;if(!n)return null;const{id:r}=t;if(!t.shape)return null;if(t.shape.containsPoint(n))return{id:r,value:1/QN.distance(t.shape.center,n),type:pM.PointerIntersection,priority:dM.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:n}=e;if(!t.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(t.shape);if(r){const{position:o}=e,i=QN.distance(t.shape.center,o.current),a=r/(n.current.area+t.shape.area-r)/i;return{id:t.id,value:a,type:pM.ShapeIntersection,priority:dM.Normal}}return null})(e)};function rj(e){const{collisionDetector:t,data:n,disabled:r,element:o,id:i,accept:a,type:s}=e,l=ON(t=>new dN(((e,t)=>wN(e,CN(t)))(((e,t)=>{for(var n in t||(t={}))RN.call(t,n)&&AN(e,n,t[n]);if(EN)for(var n of EN(t))IN.call(t,n)&&AN(e,n,t[n]);return e})({},e),{register:!1,element:pN(o)}),t)),c=gN(l);return yN(i,()=>l.id=i),xN(o,e=>l.element=e),yN(a,()=>l.accept=a,void 0,Hk),yN(t,()=>l.collisionDetector=null!=t?t:nj),yN(n,()=>n&&(l.data=n)),yN(r,()=>l.disabled=!0===r),yN(s,()=>l.type=s),{droppable:c,get isDropTarget(){return c.isDropTarget},ref:L(e=>{var t,n;(e||!(null==(t=l.element)?void 0:t.isConnected)||(null==(n=l.manager)?void 0:n.dragOperation.status.idle))&&(l.element=null!=e?e:void 0)},[l])}}function oj(e){const t=qN();q(()=>{if(!t)return;const n=Object.entries(e).reduce((e,[n,r])=>{if(r){const o=n.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,r);e.push(i)}return e},[]);return()=>n.forEach(e=>null==e?void 0:e())},[t,e])}const ij=e=>Array.from({length:e},(e,t)=>t),aj=({id:e,sectionIndex:t,itemIndex:n})=>sn.jsx("span",{children:`${e}-${t}-${n}`}),sj=z(()=>{const e=cb(vA)??aj,{startSectionIndex:t,startIndex:n,id:r}=cb(wA)??{};return"number"!=typeof t||"number"!=typeof n||void 0===r?null:sn.jsx(LN,{dropAnimation:null,children:sn.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px",background:"white",boxShadow:"0px 4px 10px 0px rgba(0, 0, 0, 0.15)",borderRadius:"4px",border:"1px solid rgba(0, 0, 0, 0.15)",width:"208px",maxHeight:"32px",fontSize:"12px",lineHeight:"16px"},children:sn.jsx(e,{id:r,sectionIndex:t,itemIndex:n})})})}),lj=({sectionIndex:e,itemIndex:t,isDragging:n})=>{const r=cb(wA),o=r?.toSectionIndex===e&&r.toIndex===t;return sn.jsx("div",{"data-key":"drop-target-indicator","data-testid":"drop-target-indicator",style:{visibility:o&&!n?"visible":"hidden",padding:0,background:"rgba(64, 64, 64, 1)",borderRadius:2,marginLeft:"4px",width:"calc(100% - 8px)",height:"2px"}})},cj=(e,t)=>e?"2px solid rgba(0, 135, 61, 1)":t?"1px dashed rgba(0, 0, 0, 0.43)":void 0,uj=z(({sectionIndex:e})=>{const t=cb(dA)[e],n=cb(pA),r=cb(fA),o=null!==cb(wA),i=r(e),a=n({sectionIndex:e}),{ref:s,isDropTarget:l}=rj({id:a,type:"section",accept:"item",collisionPriority:dM.Low,data:{id:a,sectionIndex:e,sectionKey:a}});return t>0?null:sn.jsxs(Td,{ref:s,sx:{margin:"4px",outline:cj(l,o),borderRadius:"4px",boxSizing:"border-box"},children:[sn.jsx(Td,{sx:{position:"relative",top:"4px"},children:sn.jsx(lj,{sectionIndex:e,itemIndex:0,isDragging:!1})}),sn.jsxs(Td,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:"8px",padding:"20px 4px"},children:[sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontWeight:"600",fontSize:"14px",lineHeight:"16px",color:"rgba(64, 64, 64, 1)"},children:i.title}),sn.jsx(Ku,{sx:{textAlign:"center",width:"fit-content",maxWidth:"100%",overflowWrap:"break-word",textOverflow:"ellipsis",fontSize:"12px",lineHeight:"150%",color:"rgba(64, 64, 64, 1)"},children:i.message})]})]})}),dj=z(({id:e,sectionIndex:t})=>{const n=cb(bA);return void 0===n?null:C(n,{id:e,sectionIndex:t})});var pj=Object.defineProperty,fj=Object.defineProperties,hj=Object.getOwnPropertyDescriptors,mj=Object.getOwnPropertySymbols,gj=Object.prototype.hasOwnProperty,bj=Object.prototype.propertyIsEnumerable,vj=(e,t,n)=>t in e?pj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yj=(e,t)=>{for(var n in t||(t={}))gj.call(t,n)&&vj(e,n,t[n]);if(mj)for(var n of mj(t))bj.call(t,n)&&vj(e,n,t[n]);return e},xj=(e,t)=>fj(e,hj(t)),Sj=class extends _M{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return xj(yj({},e),{[t]:n})}};Sj.configure=nD(Sj);var wj=Sj,Cj=wj.configure({axis:"x",value:0});wj.configure({axis:"y",value:0});var Ej=class extends _M{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return xj(yj({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};Ej.configure=nD(Ej);var Rj=Object.create,Ij=Object.defineProperty,Aj=Object.defineProperties,kj=Object.getOwnPropertyDescriptor,Pj=Object.getOwnPropertyDescriptors,Dj=Object.getOwnPropertySymbols,Mj=Object.prototype.hasOwnProperty,Tj=Object.prototype.propertyIsEnumerable,qj=e=>{throw TypeError(e)},Oj=(e,t,n)=>t in e?Ij(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lj=(e,t)=>{for(var n in t||(t={}))Mj.call(t,n)&&Oj(e,n,t[n]);if(Dj)for(var n of Dj(t))Tj.call(t,n)&&Oj(e,n,t[n]);return e},Nj=(e,t)=>Aj(e,Pj(t)),jj=["class","method","getter","setter","accessor","field","value","get","set"],_j=e=>void 0!==e&&"function"!=typeof e?qj("Function expected"):e,zj=(e,t,n,r,o)=>({kind:jj[e],name:t,metadata:r,addInitializer:e=>n._?qj("Already initialized"):o.push(_j(e||null))}),Fj=(e,t,n,r)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(n):r=i[o].call(n,r);return r},$j=(e,t,n,r,o,i)=>{for(var a,s,l,c,u,d=7&t,p=e.length+1,f=jj[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,kj({get[n](){return Bj(this,i)},set[n](e){return Wj(this,i,e)}},n)),b=r.length-1;b>=0;b--)(c=zj(d,n,l={},e[3],m)).static=false,c.private=false,u=c.access={has:e=>n in e},u.get=e=>e[n],u.set=(e,t)=>e[n]=t,s=(0,r[b])({get:g.get,set:g.set},c),l._=1,void 0===s?_j(s)&&(g[f]=s):"object"!=typeof s||null===s?qj("Object expected"):(_j(a=s.get)&&(g.get=a),_j(a=s.set)&&(g.set=a),_j(a=s.init)&&h.unshift(a));return g&&Ij(o,n,g),o},Hj=(e,t,n)=>t.has(e)||qj("Cannot "+n),Bj=(e,t,n)=>(Hj(e,t,"read from private field"),t.get(e)),Vj=(e,t,n)=>t.has(e)?qj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Wj=(e,t,n,r)=>(Hj(e,t,"write to private field"),t.set(e,n),n);function Uj(e){return e instanceof k_||e instanceof A_}var Gj=class extends oD{constructor(e){super(e);const t=JA(()=>{const{dragOperation:t}=e;if(kq(t.activatorEvent)&&Uj(t.source)&&t.status.initialized){const t=e.registry.plugins.get(xL);if(t)return t.disable(),()=>t.enable()}}),n=e.monitor.addEventListener("dragmove",(e,t)=>{queueMicrotask(()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:n}=t;if(!kq(e.nativeEvent))return;if(!Uj(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:n}=e;if(t>0)return"right";if(t<0)return"left";if(n>0)return"down";if(n<0)return"up"}(a),{source:l,target:c}=n,{center:u}=n.shape.current,d=[],p=[];PA(()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==c?void 0:c.id)&&Uj(e)||!e.element)continue;let n=e.shape;const r=new Eq(e.element,{getBoundingClientRect:e=>sT(e,void 0,.2)});r.height&&r.width&&(("down"==s&&u.y+10<r.center.y||"up"==s&&u.y-10>r.center.y||"left"==s&&u.x-10>r.center.x||"right"==s&&u.x+10<r.center.x)&&(d.push(e),e.shape=r,p.push(()=>e.shape=n)))}}),e.preventDefault(),o.disable();const f=o.computeCollisions(d,Tq);PA(()=>p.forEach(e=>e()));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;r.setDropTarget(m).then(()=>{const{source:e,target:t,shape:i}=n;if(!e||!Uj(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,c=g!==a||b!==s,u=c?l:null==t?void 0:t.element;if(!u)return;mq(u);const d=new Eq(u);if(!d)return;const p=bP.delta(d,bP.from(i.current.boundingRectangle),e.alignment);r.move({by:p}),c?r.setDropTarget(e.id).then(()=>o.enable()):o.enable()})})});this.destroy=()=>{n(),t()}}};var Kj=Object.defineProperty,Yj=Object.defineProperties,Xj=Object.getOwnPropertyDescriptors,Jj=Object.getOwnPropertySymbols,Zj=Object.prototype.hasOwnProperty,Qj=Object.prototype.propertyIsEnumerable,e_=(e,t,n)=>t in e?Kj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,t_=(e,t)=>{for(var n in t||(t={}))Zj.call(t,n)&&e_(e,n,t[n]);if(Jj)for(var n of Jj(t))Qj.call(t,n)&&e_(e,n,t[n]);return e},n_=(e,t)=>Yj(e,Xj(t));function r_(e,t,n){if(t===n)return e;const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r}function o_(e,t){const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?n:void 0}function i_(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function a_(e,t){return function(e,t,n){var r,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||null!==e&&"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const r=e.findIndex(e=>l(e,i.id)),o=e.findIndex(e=>l(e,a.id));if(-1===r||-1===o){if(i_(i)){const r=i.initialIndex,o=i.index;return r===o||r<0||r>=e.length?("preventDefault"in t&&t.preventDefault(),e):n(e,r,o)}return e}if(!s&&"index"in i&&"number"==typeof i.index){const t=i.index;if(t!==r)return n(e,r,t)}return n(e,r,o)}const c=Object.entries(e);let u,d,p=-1,f=-1;for(const[e,t]of c)if(-1===p&&(p=t.findIndex(e=>l(e,i.id)),-1!==p&&(u=e)),-1===f&&(f=t.findIndex(e=>l(e,a.id)),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(-1===p&&i_(i)){const r=null==i.initialGroup?void 0:o_(e,i.initialGroup),o=i.initialIndex,a=null==i.group?void 0:o_(e,i.group),s=i.index;if(null==r||null==a)return"preventDefault"in t&&t.preventDefault(),e;if(r===a&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(r===a)return n_(t_({},e),{[r]:n(e[r],o,s)});const l=e[r][o];return n_(t_({},e),{[r]:[...e[r].slice(0,o),...e[r].slice(o+1)],[a]:[...e[a].slice(0,s),l,...e[a].slice(s)]})}if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(r=h.shape)?void 0:r.current.center)?o:h.position.current;if(null==d){const t=o_(e,a.id);null!=t&&(d=t,f=a.shape&&m.y>a.shape.center.y?e[t].length:0)}if(null==u||null==d||u===d&&p===f){if(null!=u&&u===d&&p===f&&i_(i)){const t=null==i.group?void 0:o_(e,i.group),r=null!=i.group&&t!==u,o=i.index!==p;if(r||o){const r=null==i.group?u:t;if(null!=r){if(u===r)return n_(t_({},e),{[u]:n(e[u],p,i.index)});const t=e[u][p];return n_(t_({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[r]:[...e[r].slice(0,i.index),t,...e[r].slice(i.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(u===d)return n_(t_({},e),{[u]:n(e[u],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[u][p];return n_(t_({},e),{[u]:[...e[u].slice(0,p),...e[u].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,r_)}function s_(e){const t=new Map;for(const[,n]of e)for(const e of n)t.set(e.id,e.index);return t}function l_(e,t,n){var r;for(const[o,i]of t)for(const t of i){const i=e.get(t.id);if(t.index!==i||t.group!==o||!(null==(r=n.get(o))?void 0:r.has(t)))return!0}return!1}var c_="__default__";function u_(e,t,n,r){const o=r<t?"afterend":"beforebegin";n.insertAdjacentElement(o,e)}function d_(e,t){return e.index-t.index}function p_(e,t){return e.initialIndex-t.initialIndex}function f_(e,t=d_){return Array.from(e).sort(t)}var h_=[Gj,class extends oD{constructor(e){super(e);const t=()=>{const t=new Map;for(const n of e.registry.droppables)if(n instanceof k_){const{sortable:e}=n,{group:r}=e;let o=t.get(r);o||(o=new Set,t.set(r,o)),o.add(e)}return t},n=[e.monitor.addEventListener("dragover",(e,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:o,target:i}=r;if(!Uj(o)||!Uj(i))return;if(o.sortable===i.sortable)return;const a=t(),s=s_(a),l=o.sortable.group===i.sortable.group,c=a.get(o.sortable.group),u=l?c:a.get(i.sortable.group);c&&u&&queueMicrotask(()=>{e.defaultPrevented||n.renderer.rendering.then(()=>{var r,d;const p=t();if(l_(s,a,p))return;const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!l&&i.id===o.sortable.group)return;const m=f_(c),g=l?m:f_(u),b=null!=(r=o.sortable.group)?r:c_,v=null!=(d=i.sortable.group)?d:c_,y={[b]:m,[v]:g},x=a_(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);n.collisionObserver.disable(),u_(f,S,h,w),PA(()=>{for(const[e,t]of x[b].entries())t.index=e;if(!l)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e}),n.actions.setDropTarget(o.id).then(()=>n.collisionObserver.enable())})})}),e.monitor.addEventListener("dragend",(e,n)=>{if(!e.canceled)return;const{dragOperation:r}=n,{source:o}=r;Uj(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask(()=>{const e=t(),r=s_(e),i=e.get(o.sortable.initialGroup);i&&n.renderer.rendering.then(()=>{const n=t();if(l_(r,e,n))return;const a=f_(i),s=f_(i,p_),l=o.sortable.element,c=a[s.indexOf(o.sortable)],u=null==c?void 0:c.element;c&&u&&l&&(u_(l,c.index,u,o.index),PA(()=>{for(const t of e.values()){const e=Array.from(t).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}}))})}))})];this.destroy=()=>{for(const e of n)e()}}}],m_={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function g_(e){var t,n;return"boolean"==typeof e?{draggable:e,droppable:e}:{draggable:null!=(t=null==e?void 0:e.draggable)&&t,droppable:null!=(n=null==e?void 0:e.droppable)&&n}}var b_,v_,y_,x_,S_,w_,C_,E_,R_=new class{constructor(){_k(this,Gk,new WeakMap)}get(e,t){var n;return e?null==(n=jk(this,Gk).get(e))?void 0:n.get(t):void 0}set(e,t,n){var r;if(e)return jk(this,Gk).has(e)||jk(this,Gk).set(e,new Map),null==(r=jk(this,Gk).get(e))?void 0:r.set(t,n)}clear(e){var t;return e?null==(t=jk(this,Gk).get(e))?void 0:t.clear():void 0}};v_=[Bk],b_=[Bk];var I_=class{constructor(e,t){Vj(this,x_,Fj(y_,8,this)),Fj(y_,11,this),Vj(this,S_),Vj(this,w_),Vj(this,C_,Fj(y_,12,this)),Fj(y_,15,this),Vj(this,E_),this.register=()=>(PA(()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{PA(()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)})},this.destroy=()=>{PA(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=e,{effects:r=()=>[],disabled:o,group:i,index:a,sensors:s,type:l,transition:c=m_,plugins:u}=n,d=((e,t)=>{var n={};for(var r in e)Mj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Dj)for(var r of Dj(e))t.indexOf(r)<0&&Tj.call(e,r)&&(n[r]=e[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const p=HM(u,h_),f=g_(o);this.droppable=new k_(Nj(Lj({},d),{disabled:f.droppable}),t,this),this.draggable=new A_(Nj(Lj({},d),{disabled:f.draggable,plugins:p,effects:()=>[()=>{var e,t,n;const r=null==(e=this.manager)?void 0:e.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:n.id)&&R_.clear(this.manager),(null==r?void 0:r.dragging)&&R_.set(this.manager,this.id,MA(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:e,group:t,manager:n}=this,r=Bj(this,w_),o=Bj(this,S_);e===r&&t===o||(Wj(this,w_,e),Wj(this,S_,t),this.animate())},()=>{var e,t;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(t=null==(e=this.draggable.pluginConfig(sL))?void 0:e.feedback)?t:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:l,sensors:s}),t,this),Wj(this,E_,d.element),this.manager=t,this.index=a,Wj(this,w_,a),this.group=i,Wj(this,S_,i),this.type=l,this.transition=c}get initialIndex(){var e,t;return null!=(t=null==(e=R_.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=R_.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){MA(()=>{const{manager:e,transition:t}=this,{shape:n}=this.droppable;if(!e)return;const{idle:r}=e.dragOperation.status;n&&t&&(!r||t.idle)&&e.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const e of r.getAnimations())!("transitionProperty"in e)||"transform"!==e.transitionProperty&&"translate"!==e.transitionProperty&&"scale"!==e.transitionProperty||e.cancel();const o=this.refreshShape();if(!o)return;const i=n.boundingRectangle.left-o.boundingRectangle.left,a=n.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=rq(r),l=yq(r,s,!1),c=yq(r,s);if(i||a){const n=mT(tT(r))?Nj(Lj({},t),{duration:0}):t;vq({element:r,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(e){PA(()=>{this.draggable.manager=e,this.droppable.manager=e})}set element(e){PA(()=>{const t=Bj(this,E_),n=this.droppable.element,r=this.draggable.element;n&&n!==t||(this.droppable.element=e),r&&r!==t||(this.draggable.element=e),Wj(this,E_,e)})}get element(){var e,t;const n=Bj(this,E_);if(n)return null!=(t=null!=(e=yT.get(n))?e:n)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){const{disabled:e}=this.draggable,{disabled:t}=this.droppable;return e===t?e:{draggable:e,droppable:t}}set plugins(e){this.draggable.plugins=HM(e,h_)}set disabled(e){const t=g_(e);PA(()=>{this.droppable.disabled=t.droppable,this.draggable.disabled=t.draggable})}set data(e){PA(()=>{this.droppable.data=e,this.draggable.data=e})}set handle(e){this.draggable.handle=e}set id(e){this.droppable.id=e,this.draggable.id=e}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:Mq}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){PA(()=>{this.droppable.type=e,this.draggable.type=e})}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};y_=[,,,Rj(null)],x_=new WeakMap,S_=new WeakMap,w_=new WeakMap,C_=new WeakMap,E_=new WeakMap,$j(y_,4,"index",v_,I_,x_),$j(y_,4,"group",b_,I_,C_),((e,t)=>{return Oj(t,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),e[3]);var n,r})(y_,I_);var A_=class extends uN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},k_=class extends dN{constructor(e,t,n){super(e,t),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},P_=Object.defineProperty,D_=Object.defineProperties,M_=Object.getOwnPropertyDescriptors,T_=Object.getOwnPropertySymbols,q_=Object.prototype.hasOwnProperty,O_=Object.prototype.propertyIsEnumerable,L_=(e,t,n)=>t in e?P_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N_=(e,t)=>{for(var n in t||(t={}))q_.call(t,n)&&L_(e,n,t[n]);if(T_)for(var n of T_(t))O_.call(t,n)&&L_(e,n,t[n]);return e};function j_(e){const{accept:t,collisionDetector:n,collisionPriority:r,id:o,data:i,element:a,handle:s,index:l,group:c,disabled:u,modifiers:d,sensors:p,target:f,type:h,plugins:m}=e,g=N_(N_({},m_),e.transition),b=ON(t=>new I_(((e,t)=>D_(e,M_(t)))(N_({},e),{transition:g,register:!1,handle:pN(s),element:pN(a),target:pN(f)}),t)),v=gN(b,__);return yN(o,()=>b.id=o),fN(()=>{PA(()=>{b.group=c,b.index=l})},[b,c,l]),yN(h,()=>b.type=h),yN(t,()=>b.accept=t,void 0,Hk),yN(i,()=>i&&(b.data=i)),yN(l,()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()},bN),xN(s,e=>b.handle=e),xN(a,e=>b.element=e),xN(f,e=>b.target=e),yN(u,()=>b.disabled=null!=u&&u,void 0,Hk),yN(p,()=>b.sensors=p,void 0,Hk),yN(n,()=>b.collisionDetector=n),yN(r,()=>b.collisionPriority=r),yN(m,()=>b.plugins=m,void 0,Hk),yN(g,()=>b.transition=g,void 0,Hk),yN(d,()=>b.modifiers=d,void 0,Hk),yN(e.alignment,()=>b.alignment=e.alignment),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:L(e=>{b.handle=null!=e?e:void 0},[b]),ref:L(e=>{var t,n;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)},[b]),sourceRef:L(e=>{var t,n;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)},[b]),targetRef:L(e=>{var t,n;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)},[b])}}function __(e,t,n){return!("isDragSource"!==e||n||!t)}const z_=({id:e,itemIndex:t,sectionIndex:n})=>sn.jsx("div",{children:`${n}:${t} - ${e}`}),F_=z(({id:e,itemIndex:t,sectionIndex:n})=>{const r=cb(yA),o=cb(gA),i=cb(dA).at(n)??0,a=cb(pA)({sectionIndex:n}),{ref:s,isDragging:l,handleRef:c}=j_({id:e,index:t,type:"item",accept:"item",group:a,modifiers:[Cj],plugins:[Gj],data:{id:e,sectionIndex:n,sectionKey:a,itemIndex:t}}),u=void 0!==r?()=>{r({id:e,itemIndex:t,sectionIndex:n})}:void 0,d=o??z_;return sn.jsx(gf,{className:"section-item-container","data-testid":"section-item",onClick:u,ref:s,"data-dragging":l,sx:{padding:0,backgroundColor:l?"rgba(242, 242, 242, 1)":void 0,borderRadius:l?"4px":void 0},children:sn.jsxs("div",{style:{width:"100%",opacity:l?.4:1},children:[sn.jsx(lj,{isDragging:l,itemIndex:t,sectionIndex:n}),sn.jsx(d,{id:e,itemIndex:t,sectionIndex:n,dragHandleRef:c}),t===i-1&&sn.jsx(lj,{isDragging:!1,itemIndex:t+1,sectionIndex:n})]})})}),$_=z(({sectionIndex:e})=>{const t=cb(pA),n=cb(dA).at(e)??0,r=t({sectionIndex:e});return sn.jsxs(Td,{className:"exploration-list",style:{overflow:"auto"},children:[sn.jsx(Ip,{}),sn.jsx(dj,{id:r,sectionIndex:e}),sn.jsx(Ip,{}),sn.jsx(uj,{sectionIndex:e}),sn.jsx(rf,{sx:{padding:"2px 8px"},children:ij(n).map(n=>{const r=t({sectionIndex:e,itemIndex:n});return sn.jsx(F_,{id:r,itemIndex:n,sectionIndex:e},r)})})]},r)}),H_=[$L.configure({activationConstraints:[new jL.Distance({value:5})]}),qL],B_=z(()=>{const e=cb(uA),t=cb(pA),n=ub(CA("start")),r=ub(CA("over")),o=ub(CA("end"));return sn.jsxs(TN,{sensors:H_,onDragEnd:e=>{o(e)},onDragOver:e=>{r(e)},onDragStart:e=>{n(e)},children:[sn.jsx(Td,{style:{display:"flex",flexDirection:"column"},children:ij(e).map(e=>sn.jsx($_,{sectionIndex:e},t({sectionIndex:e})))}),sn.jsx(sj,{})]})}),V_=z(e=>sn.jsx(GI,{atoms:EA,atomFamilies:RA,children:sn.jsx(IA,{props:e,children:sn.jsx(B_,{})})})),W_=(e,t)=>{if(!e)return;const n=e.qHyperCube.qDimensionInfo.filter(e=>void 0!==e.cId).filter(mI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"dimension"})),r=e.qHyperCube.qMeasureInfo.filter(e=>void 0!==e.cId).filter(mI).map(({cId:e,qFallbackTitle:n})=>({id:e,title:n??"",alternative:t,type:"measure"}));return[...n,...r]},U_=(e,t)=>{const n=[],r={};return e.forEach(e=>{r[e.id]=e}),Object.keys(t).forEach(e=>{const o=t[e],i=r[e];i&&(n[o]=i)}),n},G_=(e,t,n)=>{if(!n||((e,t)=>{const n=e.map(e=>e.id).sort(),r=Object.keys(t).sort();return n.join(",")!==r.join(",")})(e,n)){const t=(e=>{const t={};return e.forEach((e,n)=>{t[e.id]=n}),t})(e);return U_(e,t)}const r=t.map(e=>e.id),o=Object.keys(n).sort((e,t)=>n[e]-n[t]).filter(e=>r.includes(e)),i={...n};for(let e=0;e<r.length;e++){const t=o[e],a=r[e];t!==a&&(i[a]=n[t])}let a=0;const s=Object.entries(i).sort((e,t)=>e[1]-t[1]).map(([e])=>[e,a++]);return s.forEach(([e,t])=>{i[e]=t}),U_(e,i)},K_=Jg(e=>{const t=e(CI);return W_(t,!0)}),Y_=Jg(e=>{const t=e(wI);return W_(t,!1)}),X_=Jg(e=>{const t=e(EI),n=e(wI);if(!t||!n)return[];const r=e(Y_),o=e(K_),i=n.qHyperCube.qColumnOrder??[],a=e(yI);if(void 0===o||void 0===r)return[];if(a){return[...[...r,...o]].sort((e,t)=>(a[e.id]??1/0)-(a[t.id]??1/0))}const s=t.qHyperCubeDef.qLayoutExclude?.allColumnOrder??{},l=((e,t)=>e.length===t?e:Array.from(Array(t).keys()))(i,r.length),c=((e,t)=>e.length>0?e.map(e=>t[e]):t)(l,r),u=[...c,...o];return G_(u,c,s)}),J_=Jg(e=>{const t=e(X_),n=e(dI);return t.filter(n)}),Z_=Jg(e=>e(J_).length),Q_=Jg(e=>({sectionIndex:t,itemIndex:n})=>{const r=e(J_);if(void 0===n)return`columns-section-${t}`;const o=r?.[n];return o?.id??`missing-item-${t}-${n}`}),ez=sA(e=>Jg(t=>t(J_)[e]),(e,t)=>e===t),tz=Jg(e=>e(X_).map(e=>e.id)),nz=Jg(e=>e(J_).map(e=>e.id)),rz=Jg(e=>{const t=e(X_),n={};return t.forEach(e=>{n[e.id]=e.type}),n}),oz=Jg(null,(e,t,{event:n,id:r,toIndex:o})=>{const i=e(sI),a=e(fI),s=e(tz),l=e(nz);if(void 0===i||null===a||void 0===s||void 0===l)return;if(n.operation.canceled)return;const c=l[o];if(!c)return;const u=((e,t,n)=>{const r=n.findIndex(t=>t===e),o=n.findIndex(e=>e===t);if(-1===r||-1===o||r===o)return n;const i=[...n],[a]=i.splice(r,1);return i.splice(o,0,a),i})(r,c,s);t(yI,Object.fromEntries(u.map((e,t)=>[e,t]))),a.add(async()=>{i.updateColumnOrders(u)})}),iz="ChartExploration.Table.ColumnSectionEmpty.Title",az="ChartExploration.Table.NoColumnsFound.Title",sz="#177fe6",lz=Jg(e=>{const t=e(cI),n=e(uI).length>0,r=(e=>e?az:iz)(n),o=(e=>e?"":"ChartExploration.Table.ColumnSectionEmpty.Message")(n);return()=>({title:t(r),message:""===o?"":t(o)})}),cz=({itemIndex:e})=>{const t=cb(ez(e));if(!t)return null;const n=t.title;return sn.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:n})},uz=Jg(e=>{const t=e(nz),n=e(qI),r=t.filter(e=>n.has(e)).length;return 0===t.length?"disabled":0===r?"none":r===t.length?"all":"some"}),dz=Jg(null,(e,t)=>{const n=e(nz),r=e(qI),o="all"!==e(uz)&&"disabled"!==e(uz),i=[],a=new Set(e(PI)),s=new Set(e(DI));if(o){const t=new Set(n.filter(e=>!r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!0,type:e(rz)[t]}))),i.forEach(e=>a.add(e.id)),i.forEach(e=>s.delete(e.id))}else{const t=new Set(n.filter(e=>r.has(e)));i.push(...Array.from(t).map(t=>({id:t,isAlternative:!1,type:e(rz)[t]}))),i.forEach(e=>a.delete(e.id)),i.forEach(e=>s.add(e.id))}t(PI,a),t(DI,s),iI({items:i,handler:e(sI),model:e(aI),handlerQueue:e(fI)})}),pz=e=>{(e instanceof HTMLElement||e instanceof SVGElement)&&e.focus()},fz=e=>"svg"===e.tagName?"exploration-draggable-icon":e.className,hz=e=>{const{currentTarget:t}=e,n=fz(t);let r=t.closest("li")?.previousElementSibling?.getElementsByClassName(n)[0];if(!r){const e=t.closest(".exploration-list"),o=e?.querySelector(".exploration-section-header");if(o)return o;if(r=((e,t)=>{const n=e.closest(".exploration-list"),r=n?.previousElementSibling;if(null===r||!r)return e.closest(".exploration-panel")?.getElementsByClassName(t)[1];const o=r.getElementsByClassName(t);return o.length>0?o[o.length-1]:void 0})(t,n),!r){const e=t.closest(".exploration-panel")?.getElementsByClassName(n)[1];return e??null}}return r},mz=(e,t)=>{const n=e.closest(".exploration-list"),r=n?.nextElementSibling||n?.parentElement?.nextElementSibling;if(null===r||!r){if(t===sg.Tab)return;return n?.closest(".exploration-panel")?.getElementsByClassName("exploration-section-header")[0]}return r.getElementsByClassName("exploration-section-header")[0]},gz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:e.shiftKey||(Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n!==t.ref.current)return;const r=n.closest(".exploration-list"),o=r?.getElementsByClassName("exploration-item-focus")[0];o&&pz(o)})(e,t));break;case sg.Down:(e=>{e.preventDefault();const t=e.currentTarget.closest(".exploration-list"),n=t?.getElementsByClassName("exploration-item-focus")[0];n&&pz(n)})(e);break;case sg.Enter:case sg.Space:e.preventDefault(),((e,t)=>{const{currentTarget:n}=e;if(e.preventDefault(),n!==t.ref.current)return;const r="all"!==t.checkState;t.toggleAllCheckboxes(r)})(e,t)}},bz=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontWeight:"bold"},children:e}),vz=({children:e})=>{const t=D(null),n=cb(uz),[,r]=db(dz),o=cb(cI),i={ref:t,toggleAllCheckboxes:r,checkState:n};return sn.jsxs(Td,{ref:t,"aria-label":o("Common.Columns"),className:"exploration-section-header",tabIndex:0,onKeyDown:e=>{gz(e,i)},sx:{display:"flex",alignItems:"center",width:"100%",padding:"2px 8px 2px 8px",boxSizing:"border-box",fontSize:"14px","&:focus-visible":{boxShadow:`0 0 0 2px ${sz} inset`}},children:[sn.jsx(op,{inputProps:{"aria-label":o("ChartExploration.Header.ToggleAll"),..."some"===n&&{"aria-checked":"mixed"}},disabled:"disabled"===n,checked:"all"===n,indeterminate:"some"===n,onChange:r,size:"small",style:{flexShrink:0,padding:9}}),sn.jsx(bz,{children:e})]})},yz=()=>{const e=cb(cI);return sn.jsx(vz,{children:e("Common.Columns")})},xz=F((e,t)=>sn.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:sn.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})})),Sz=F((e,t)=>sn.jsxs("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:[sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"}),sn.jsx("path",{d:"M1.5 0a.5.5 0 0 0-.5.5v14a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5H8V.5a.5.5 0 0 0-.5-.5zM2 4V1h5v7.293l-5 5V9h2V8H2V5h2V4zm.707 10 5-5H15v5h-3v-2h-1v2H8v-2H7v2z"})]})),wz=F((e,t)=>sn.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:sn.jsx("path",{d:"M5.5 1a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm0 4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM5 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 1.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM9.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM9 9.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm.5 3.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"})})),Cz=$c("div")({position:"absolute",width:"1px",height:"1px",padding:0,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0}),Ez=$c(wz)(()=>({padding:"6px 6px",flexShrink:0,cursor:"grab","&:focus-visible":{boxShadow:`0 0 0 2px ${sz} inset`}})),Rz=e=>{const t=e.key===sg.Down?(e=>{const{currentTarget:t,key:n}=e,r=fz(t),o=t.closest("li");let i=o?.nextElementSibling?.getElementsByClassName(r)[0];return i||(i=mz(t,n),i)?i:t.closest(".exploration-panel")?.getElementsByClassName(r)[0]})(e):hz(e);t&&pz(t)},Iz=(e,t)=>{const{key:n}=e;switch(n){case sg.Tab:if(e.shiftKey)Lm(e),((e,t)=>{const{currentTarget:n}=e,r=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if(n===t.items.draggableIconRef.current){if(t.itemIndex>=0){const e=r&&r[t.itemIndex];return void(e&&pz(e))}const n=hz(e);n&&pz(n)}if(n===t.items.explorationItemFocusRef.current){const t=n.closest("li")?.previousElementSibling?.getElementsByClassName("exploration-draggable-icon")[0];if(t)return void pz(t);const r=hz(e);r&&pz(r)}})(e,t);else{const n=((e,t)=>{const{currentTarget:n,key:r}=e;if(e.shiftKey)return!0;if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return pz(e),!0}if(n===t.items.explorationItemFocusRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-draggable-icon")[0];return e&&pz(e),!0}if(n===t.items.draggableIconRef.current){const e=n.closest("ul")?.getElementsByClassName("exploration-item-focus");if((e?.length||0)-1>t.itemIndex){const n=e&&e[t.itemIndex+1];return n&&pz(n),!0}const o=mz(n,r);if(!o)return!1;pz(o)}return!0})(e,t);n?Lm(e):e.stopPropagation()}break;case sg.Enter:case sg.Space:Lm(e),((e,t)=>{const{currentTarget:n}=e;if(n===t.items.draggableIconRef.current){const e=n.closest("li")?.getElementsByClassName("exploration-item")[0];return void(e&&pz(e))}if(n===t.items.explorationItemRef.current){const e=n.getElementsByClassName("exploration-draggable-icon")[0];return void pz(e)}n===t.items.explorationItemFocusRef.current&&t.toggleItem()})(e,t);break;case sg.Down:case sg.Up:Lm(e),Rz(e)}},Az=({children:e})=>sn.jsx("span",{style:{width:"fit-content",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexGrow:1},children:e}),kz={dimension:xz,measure:Sz},Pz=({id:e,dragHandleRef:t,title:n,type:r,itemIndex:o})=>{const[i,a]=db(qI),s=cb(cI),l=D(null),c=D(null),u=D(null);q(()=>{t&&l.current&&t(l.current)},[t]);const d=kz[r],p=!i.has(e),f={id:e,itemIndex:o,toggleItem:()=>{a({id:e,isAlternative:p,type:r})},items:{explorationItemRef:l,explorationItemFocusRef:c,draggableIconRef:u}};return sn.jsxs(Td,{ref:l,className:"exploration-item",onClick:t=>{t.stopPropagation(),-1!==e&&a({id:e,isAlternative:p,type:r})},onKeyDown:e=>{Iz(e,f)},tabIndex:0,style:{display:"flex",alignItems:"center",width:"100%",cursor:"pointer",padding:0,boxSizing:"border-box",fontSize:"14px"},title:n,sx:{"&:hover":{backgroundColor:"action.hover"},"&:focus-visible":{boxShadow:`0 0 0 2px ${sz} inset`}},children:[sn.jsxs(Td,{ref:c,className:"exploration-item-focus",component:"div",tabIndex:0,onKeyDownCapture:e=>{Iz(e,f)},sx:{display:"flex",minWidth:0,alignItems:"center",justifyContent:"space-between",flexGrow:1,marginRight:"4px","&:focus-visible":{boxShadow:`0 0 0 2px ${sz} inset`}},children:[sn.jsx(op,{checked:i.has(e),"aria-label":s("ChartExploration.ListItem.Label",n),size:"small",tabIndex:-1,style:{padding:9,flexShrink:0}}),sn.jsx(Td,{children:sn.jsx(d,{height:12,style:{opacity:1,marginRight:"8px"}})}),sn.jsx(Az,{children:n})]}),sn.jsx(Ez,{ref:u,className:"exploration-draggable-icon",tabIndex:0,height:"16px",onClick:e=>{e.stopPropagation()},onKeyDownCapture:e=>{Iz(e,f)}})]})},Dz=({id:e,itemIndex:t,dragHandleRef:n})=>{const r=cb(ez(t));return r?sn.jsx(Pz,{id:e,dragHandleRef:n,title:r.title,type:r.type,itemIndex:t}):null},Mz=()=>{const e=cb(Z_),t=cb(lz),n=cb(RI),r=cb(Q_),o=ub(oz);return!n&&sn.jsx(V_,{numberOfSections:1,numberOfItemsInSection:[e],keyExtractor:r,emptyTexts:t,onDragEnd:o,dragOverlayRenderer:cz,headerRenderer:yz,itemRenderer:Dz})},Tz=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014zM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0m-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6 6 0 0 1-1.413 1.415"})})),qz=()=>{const[e,t]=db(uI),n=cb(cI),r=w.useRef(null),o=cb(Z_),i=L(e=>{t(e.target.value)},[t]),a=0===e.length||0===o?n("Common.Search.NoResultsAvailable"):n("ChartExploration.Table.Search.ResultsFound",o.toString());return sn.jsxs(Td,{ref:r,style:{position:"sticky",top:0,zIndex:1,width:"calc(100% - 24px)",backgroundColor:"var(--sprout-common-background-color-weak)",paddingTop:2,paddingRight:12,paddingLeft:12,paddingBottom:12},children:[sn.jsx(Cz,{"data-testid":"screenOnly-search-results","aria-live":"polite","aria-atomic":"true",children:a}),sn.jsx(gh,{size:"small",fullWidth:!0,"data-testid":"chart-exploration-search-input","aria-label":n("Common.Search.AccessibilityLabel"),type:"search",defaultValue:e,placeholder:n("Common.Search"),onChange:i,startAdornment:sn.jsx(Wp,{position:"start",children:sn.jsx(Tz,{})}),inputProps:{style:{fontSize:"14px",paddingTop:6,paddingBottom:6}}})]})},Oz=e=>{const t=Rm();return sn.jsx(Bc,{theme:t,children:sn.jsx(rb,{children:sn.jsx(OI,{props:e,children:sn.jsxs(Td,{className:"exploration-panel",style:{display:"flex",flexDirection:"column"},children:[sn.jsx(qz,{}),sn.jsx(Mz,{})]})})})})},Lz=e=>e.flags.isEnabled("VNA-655-STRAIGHT_TABLE_NEW_EXPLORATION")?{component:Oz,classification:{tags:["exploration"],exclusive:!0}}:{component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};var Nz=function(e){return e.CONTAINS="contains",e.MATCHES_EXACTLY="matches_exactly",e.STARTS_WITH="starts_with",e.ENDS_WITH="ends_with",e.BEGINNING_OF_WORD="beginning_of_word",e}(Nz||{}),jz=function(e){return e.COMPARE="compare",e.GENERAL="general",e}(jz||{}),_z=function(e){return e.VALUES="values",e.CONDITION="condition",e.SEARCH="search",e.CLEAR_SELECTION="clear_selection",e.TOP_BOTTOM="top_bottom",e}(_z||{}),zz=function(e){return e.FIXED_VALUE="fixed_value",e.CALCULATED_VALUE="calculated_value",e}(zz||{});const Fz=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)||(e=>{if(!e)return!1;if("["===e[0]&&"]"===e[e.length-1]){let t=e.substring(1,e.length-1);if(/^[A-Za-z][A-Za-z0-9_]*$/.test(t))return!0;if(t=t.replace(/\]\]/g,"]"),e===`[${t.replace(/\]/g,"]]")}]`)return!0}return!1})(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,$z=e=>{if(!Array.isArray(e))return"";let t="{<";const n=[];if(e.forEach(e=>{let t,r=`[${e.field}]${e.exclude?"-":""}={`,o="}";switch(e.type){case _z.SEARCH:t=(e=>{let t="",n="";const r=e.options?.mode;if(!r)return"";switch(r){case Nz.BEGINNING_OF_WORD:t="*^",n="*";break;case Nz.ENDS_WITH:t="*";break;case Nz.STARTS_WITH:n="*";break;case Nz.MATCHES_EXACTLY:break;case Nz.CONTAINS:default:t="*",n="*"}const o=e.options.values?.[0]??"";return""!==o?`"${t}${o}${n}"`:""})(e);break;case _z.CONDITION:t=(e=>{const{options:t}=e,n=t?.mode===jz.GENERAL,r=t?.modifier?.type===zz.FIXED_VALUE,o=t?.modifier?.operator?t.modifier.operator.split(" "):[];if(0===o.length||!r&&(!t.firstValue?.aggregator||!t.firstValue?.field)||r&&!t.firstValue?.fixedValue||n&&(!t.conditionField?.aggregator||!t.conditionField?.field))return"";let i,a,s="=";n&&r?(i=`${t.conditionField?.aggregator}(${Fz(t.conditionField?.field)})`,a=`${t.firstValue?.fixedValue}`):!n&&r?(i="",a=`${t.firstValue?.fixedValue}`,s=""):n||r?(i=`${t.conditionField?.aggregator}(${Fz(t.conditionField?.field)})`,a=`${t.firstValue?.aggregator}(${Fz(t.firstValue?.field)})`):(i=`${Fz(e.field)}`,a=`${t.firstValue?.aggregator}(total ${Fz(t.firstValue?.field)})`);const l=`${s}${i}${o[0]}${a}`;let c="";if(o.length>1){if(!r&&(!t.secondValue?.aggregator||!t.secondValue?.field)||r&&!t.secondValue?.fixedValue)return"";let e,a;n&&r?(e=`${t.secondValue?.fixedValue}`,a=` and ${i}`):!n&&r?(e=`${t.secondValue?.fixedValue}`,a=""):n||r?(e=`${t.secondValue?.aggregator}(${Fz(t.secondValue?.field)})`,a=` and ${i}`):(e=`${t.secondValue?.aggregator}(total ${Fz(t.secondValue?.field)})`,a=` and ${i}`),c=`${a}${o[1]}${e}`}return`"${l}${c}"`})(e);break;case _z.CLEAR_SELECTION:t=`[${e.field}]=`,r="",o="";break;case _z.VALUES:default:t=e.options?.values?e.options.values.map(e=>`'${e.replace(/'/g,"''")}'`).join(","):""}""!==t&&n.push(`${r}${t}${o}`)}),0===n.length)return;return t+=`${n.join(",")}>}`,t},Hz=[];for(let e=0;e<256;++e)Hz.push((e+256).toString(16).slice(1));const Bz=new Uint8Array(16);function Vz(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){e=e||{};const t=e.random??e.rng?.()??crypto.getRandomValues(Bz);if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=15&t[6]|64,t[8]=63&t[8]|128,function(e,t=0){return(Hz[e[t+0]]+Hz[e[t+1]]+Hz[e[t+2]]+Hz[e[t+3]]+"-"+Hz[e[t+4]]+Hz[e[t+5]]+"-"+Hz[e[t+6]]+Hz[e[t+7]]+"-"+Hz[e[t+8]]+Hz[e[t+9]]+"-"+Hz[e[t+10]]+Hz[e[t+11]]+Hz[e[t+12]]+Hz[e[t+13]]+Hz[e[t+14]]+Hz[e[t+15]]).toLowerCase()}(t)}(e)}const Wz=()=>crypto?.randomUUID?.()??Vz(),Uz=({qDimensions:e,qMeasures:t})=>[...e.map(e=>({id:e.qDef.cId,isDimension:!0,def:e})),...t.map(e=>({id:e.qDef.cId,isDimension:!1,def:e}))],Gz=({previousColumns:e,nextColumns:t,qInterColumnSortOrder:n})=>{const r=new Map(e.map((e,t)=>[t,e.qDef.cId])),o=new Map(t.map((e,t)=>[e.qDef.cId,t]));return n.map(e=>{const t=r.get(e);return(void 0===t?void 0:o.get(t))??e})};class Kz extends c{#c;constructor(e,t){super(e),this.#c=t}#u(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.keys(t).length;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:{...t,...Object.fromEntries(e.map((e,t)=>[e,n+t]))}}}#d(e){const t=this.hcProperties.qLayoutExclude?.allColumnOrder??{},n=Object.entries(t).filter(([t])=>!e.includes(t));this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:Object.fromEntries(n.map(([e],t)=>[e,t]))}}#p(e,t){const n=this.hcProperties.qLayoutExclude?.allColumnOrder??{},r={};for(const[o,i]of Object.entries(n))r[o===e?t:o]=i;this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:r}}async addDimension(e,t=!1){const n=await this.addDimensions([e],t);return 0===n.length?void 0:n[0]}async addDimensions(e,t=!1){const n=await super.addDimensions(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeDimension(e,t=!1){const n=await this.removeDimensions([e],t);return 0===n.length?void 0:n[0]}async removeDimensions(e,t=!1){const n=await super.removeDimensions(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceDimension(e,t){const n=this.getDimensions()[e].qDef.cId,r=await super.replaceDimension(e,t),o=r.qDef.cId;return this.#p(n,o),r}async addMeasure(e,t=!1){const n=await this.addMeasures([e],t);return 0===n.length?void 0:n[0]}async addMeasures(e,t=!1){const n=await super.addMeasures(e,t);return this.#u(n.map(e=>e.qDef.cId)),n}async removeMeasure(e,t=!1){const n=await this.removeMeasures([e],t);return 0===n.length?void 0:n[0]}async removeMeasures(e,t=!1){const n=await super.removeMeasures(e,t);return this.#d(n.map(e=>e.qDef.cId)),n}async replaceMeasure(e,t){const n=this.getMeasures()[e].qDef.cId,r=await super.replaceMeasure(e,t),o=r.qDef.cId;return this.#p(n,o),r}async#f(e){const t=this.getMeasure(e);if(t){const n=this.getAlternativeMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!0),await super.addMeasure(t,!1,this.getMeasures().length)}}async#h(e){const t=this.getMeasure(e);if(t){const n=this.getMeasures().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeMeasure(n,!1),await super.addMeasure(t,!0,this.getAlternativeMeasures().length)}}async#m(e){const t=this.getDimension(e);if(t){const n=this.getAlternativeDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!0),await super.reinsertDimension(t,!1,this.getDimensions().length)}}async#g(e){const t=this.getDimension(e);if(t){const n=this.getDimensions().findIndex(t=>t.qDef.cId===e);if(-1===n)return;await super.removeDimension(n,!1),await super.addDimension(t,!0,this.getAlternativeDimensions().length)}}#b(){const e=this.hcProperties.qLayoutExclude?.allColumnOrder??{};return Object.entries(e).sort((e,t)=>e[1]-t[1]).map(([e])=>e)}async moveDimensionFromAlternative(e){await this.#m(e);const t=this.#b();this.updateColumnOrders(t)}async moveDimensionToAlternative(e){await this.#g(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureFromAlternative(e){await this.#f(e);const t=this.#b();this.updateColumnOrders(t)}async moveMeasureToAlternative(e){await this.#h(e);const t=this.#b();this.updateColumnOrders(t)}async toggleAlternatives(e,t){for(const t of e)"dimension"===t.type?await(t.isAlternative?this.#m(t.id):this.#g(t.id)):await(t.isAlternative?this.#f(t.id):this.#h(t.id));this.updateColumnOrders(t)}updateColumnOrders(e){const t=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:n,nextAllColumnOrderById:r})=>{const o=Uz({qDimensions:e,qMeasures:t}),i=[...e,...t],a=new Map(r.map((e,t)=>[e,t])),s=o.toSorted((e,t)=>{const n=a.get(e.id),r=a.get(t.id);return void 0===n||void 0===r?0:n-r}),l=s.filter(e=>e.isDimension).map(e=>e.def),c=s.filter(e=>!e.isDimension).map(e=>e.def),u=[...l,...c],d=new Map(u.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:l,qMeasures:c,qInterColumnSortOrder:Gz({previousColumns:i,nextColumns:u,qInterColumnSortOrder:n}),qColumnOrder:s.map(e=>d.get(e.id)).filter(e=>void 0!==e)}})({qDimensions:this.hcProperties.qDimensions,qMeasures:this.hcProperties.qMeasures,qInterColumnSortOrder:this.hcProperties.qInterColumnSortOrder,nextAllColumnOrderById:e});this.hcProperties.qDimensions=t.qDimensions,this.hcProperties.qMeasures=t.qMeasures,this.hcProperties.qColumnOrder=t.qColumnOrder,this.hcProperties.qInterColumnSortOrder=t.qInterColumnSortOrder,this.hcProperties.qLayoutExclude={...this.hcProperties.qLayoutExclude,allColumnOrder:e.reduce((e,t,n)=>(e[t]=n,e),{})}}getFilters(){return this.properties.filters??[]}getFilter(e){return this.getFilters().find(t=>t.id===e)}addFilterField(e){const t=e.qTags??e.tags,n=Array.isArray(t)&&t.includes("$numeric"),r=e.isDerived,o=Array.isArray(this.properties.filters)?this.properties.filters:[],i={type:"values",field:r?e.value??e.fullname:e.name??e.label??e.field,options:{values:[]},exclude:!1,id:Wz(),qTags:Array.isArray(t)?t:[],isNumeric:n};return o.push(i),this.properties.filters=o,this.properties.qHyperCubeDef.qContextSetExpression=$z(o),i}addFilters(e){const t=[];for(const n of e)t.push(this.addFilterField(n));return t}#v(e){const t=this.getFilters();return t.splice(e,1),this.properties.qHyperCubeDef.qContextSetExpression=$z(t),t}removeFilters(e){if(0===e.length)return[];const t=[...e].sort((e,t)=>t-e),n=this.getFilters().filter((t,n)=>e.includes(n));for(const e of t)this.#v(e);return n}getLabels(){return this.getMeasures().reduce((e,t)=>(!t.qLibraryId&&t.qDef.qLabel&&e.push(t.qDef.qLabel),e),[])}getAddDimensionLabel(){return this.#c.get("Visualization.Requirements.AddDimension")}canColorBy(){return!1}}const Yz=(e,t)=>{if(!e)return-1;const n=e.indexOf(t);if(-1===n)return-1;for(let n=0;n<e.length;++n)e[n]>t&&e[n]--;return e.splice(n,1),n};function Xz(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Jz(e){return e>0?0:1}function Zz(e){return e.translator.get("Visualizations.Descriptions.Column")}function Qz(e){return{measures:{min:Jz,max:1e3,description:()=>Zz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Xz(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties,i=(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r;Yz(o,i)}},dimensions:{min:Jz,max:1e3,description:()=>Zz(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Xz(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(e?.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Yz(o,r)}}}}const eF=e=>{const t=new Kz({},e.translator),n=(t,n)=>{e.anything.logInfo?.(t,n)};return{properties(r){if(!("qHyperCubeDef"in r&&!!r.qHyperCubeDef))return r;const{qHyperCubeDef:o}=r,i=o.qLayoutExclude?.qHyperCubeDef,a=e.flags.isEnabled("qcb-35151-fix-duplicate-columns"),s=new Set,l=[];let c=0,u=0,d=0;[...o.qDimensions,...o.qMeasures,...i?.qDimensions??[],...i?.qMeasures??[]].forEach(e=>{c++;const t=e.qDef?.cId;if((e=>"string"==typeof e&&e.length>0)(t))if(s.has(t)){if(u++,a){const t=Wz();e.qDef={...e.qDef,cId:t},l.push(t)}}else s.add(t),l.push(t);else if(d++,a){const t=Wz();e.qDef={...e.qDef,cId:t},l.push(t)}});const p=u+d;if(0===p)return r;n("sn-table migrate: column cId issues detected",{issueCount:p,totalColumnCount:c,duplicateCount:u,missingCount:d});const f=r.components?.find(e=>"theme"===e.key);return e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")&&f?.nullValues&&!f.dimensionNullValues&&(f.dimensionNullValues={...f.nullValues}),a?(t.setProperties(r),t.updateColumnOrders(l),n("sn-table migrate: column cId cleanup completed",{replacementCount:p}),r):r}}};let tF=function(e){return e.Text="text",e.Link="link",e.Image="image",e.ImagesInIndentMode="imagesInIndentMode",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e.EditableDate="editableDate",e}({}),nF=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const rF=e=>{switch(e?.type){case"url":return tF.Link;case"image":return tF.Image;case"indicator":return tF.Indicator;case"miniChart":return tF.MiniChart;default:return tF.Text}},oF=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,n,r){const{qIndentMode:o}=r.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),iF=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>rF(e.qDef.representation)===tF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,n)=>{if(!n.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:r,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=n.properties.qHyperCubeDef;let s=!1;const l=i?.indexOf(e)??1/0;return(r?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},aF=e=>{const{anything:t}=e,n=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:oF({isImagesEnabled:n}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>rF(e.qDef.representation)===tF.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>rF(e.qDef.representation)===tF.Link&&e.qDef.representation?.urlPosition===nF.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>rF(e.qDef.representation)===tF.Link&&e.qDef.representation?.urlPosition===nF.Attribute},...iF(n)}},sF=(e,t)=>{const{anything:n}=e,r=n.sense?.isUnsupportedFeature,o=!r?.("tableImages")&&t[tF.Image],i=!r?.("qMiniChartDef")&&t[tF.MiniChart],a=!r?.("tableIndicators")&&t[tF.Indicator],s=o&&t[tF.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,n)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(n)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>rF(e.qDef.representation)===tF.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var lF,cF={};var uF=(lF||(lF=1,function(e){(()=>{var t={370:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{default:()=>Pe});var i=r(370),a=r.n(i);const s=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var s=a[i];return a[i]=n,{updated:n,previous:s}}return delete a[i],!1},l=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},c={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return u+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function g(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function y(e){return void 0===e?")":", 0, ".concat(e,")")}function x(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function S(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(x("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(x("MaxString(".concat(t,")")),")'\"}")}function w(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=S(f(r[0],o),b(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var u=f(r[0],o),d=f(r[1],o),p=b(0),h=b(1),m=S(u,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function E(e){var t=e.properties,n=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(n,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:h,getNumDimensions:E,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!n.showExcludedValues)return a;var s=w({modifier:n,dimensions:r,dimensionAndFieldList:o}),l=i?"":", 0";if(r&&1===r.length){var c=b(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var u=b(0),d=b(1);return"If(Count(".concat(u,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!h(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return m(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,n,r){return v(e,t)+n+y(r)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===E({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=b(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(u);if(-1!==n){var r=t.indexOf(d);if(-1!==r)return t.substring(n+u.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=t[n])})},isNumeric:f,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var s=E({properties:t,layout:n});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(u),n=e.indexOf(d);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=n.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=c.OPTIONS.find(function(t){return t.value===e.decomposition});return t?c.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(i,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(c.EXPRESSIONS).find(function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return c.EXPRESSIONS[n]&&r.includes(c.EXPRESSIONS[n].toLowerCase())&&(t=n),n}),t}};function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var k=a().bind(null,!0),P={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function T(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach(function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?i:e[t],e=e[n||t]}}),e}function L(e,t){var n=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(r){L(e[r],t[r])||(n=!1)}),n);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!L(e[r],t[r]))return!1;return!0}return e===t}P.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?k({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);L(i,a)||q(t,o)||(T(a)?r.push({op:"add",path:s,value:i}):M(i)&&M(a)?r=r.concat(P.generate(a,i,s)):D(i)&&D(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(L(t,o))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),o.splice(s,1)):r=r.concat(P.generate(o[s],t[i],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){T(t[o])&&!q(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},P.apply=function(e,t){t.forEach(function(t){var n,r,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return I(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(M(a)&&M(t.value))n=a,Object.keys(n).forEach(function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!q(n,e)&&delete n[e]}),k(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=O(e,t.from);D(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])})},P.clone=function(e){return k({},e)},P.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):k(e,t)};const N=P;var j="accumulation";function _(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function z(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const $={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getNumStepComp(n,s),p=R.getAboveComp(n,s,u,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:n,properties:r,layout:o})){var h=R.getDimComp(c,1),m=R.getDimComp(c,0),g=R.getAggrComp(f,h,m);f=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(z(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(z(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(z(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=_(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=_(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=_(t,e);return i&&!i.disabled}}}};var H="movingAverage";function B(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===H)return n[r]}function V(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===H)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const U={translationKey:"properties.modifier.movingAverage",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var c=a;void 0===c&&(c=R.getNumDimensions({properties:o,layout:i}));var u=l(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=R.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(r,c),h=R.getAboveComp(r,c,p,f);if(r.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),g=function(e,t){var n=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var b=t;if(R.needDimension({modifier:r,properties:o,layout:i})){var v=R.getDimComp(u,1),y=R.getDimComp(u,0),x=R.getAggrComp(b,v,y);b=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=B(t,e);return i&&!i.disabled}}}};var G="timeSeriesDecomposition";function K(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===G)return n[r]}function Y(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===G)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?R.generateTSDExpression(n,t,r):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=R.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:c.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=K(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var n=K(t,e);return n&&!n.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===Z)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=R.getAboveComp(n,s,u),p="".concat(u," - ").concat(d);if(R.needDimension({modifier:n,properties:r,layout:o})){var f=R.getDimComp(c,1),h=R.getDimComp(c,0),m=R.getAggrComp(p,f,h);p=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(ee).forEach(function(t){void 0===e[t]&&(e[t]=ee[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===Z)return n[r]}(t,e);return i&&!i.disabled}}}};var ne="normalization";function re(e,t){var n=l(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===ne)return n[r]}function oe(e,t){var n=function(e,t){var n=l(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===ne)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ae={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function se(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function ce(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(n),">"):""}const de={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return R.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!n)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:r,layout:o}));var c=l(r,"qHyperCubeDef.qDimensions",[]),u=R.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:a}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a,s){var l=se(t),c=le(t,n,r),u=""===l&&""===c?"":l||c,d=ce(o,i),p=ue(o,i,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=R.getDimDefWithWrapper(n);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(u," ").concat(d).concat(p," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,p,s,n.primaryDimension,n.ignoreNegative)},initModifier:function(e){Object.keys(ae).forEach(function(t){void 0===e[t]&&(e[t]=ae[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!R.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(oe(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t){if(1===e){var n=ie(t,0);t.splice(n,1)}return t}(re(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(oe(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(oe(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(oe(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var n=ie(t,0);t.splice(n,1)}return t}(o,i),i=function(e,t){if(0===e){var n=ie(t,1);t.splice(n,1)}return t}(re(e,r).selectionScope,i),i}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(oe(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,n){return 0===(re(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ne))return!1;var i=re(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:se,getFieldSelectionComp:le,getTotalComp:ce,getSelectedDimComp:ue};var pe="library id deleted",fe="qDef.qDef",he="qDef.base.qDef",me="qLibraryId",ge="qDef.base.qLibraryId",be="qDef.qLabel",ve="qDef.qLabelExpression",ye="qDef.base.qLabel",xe="qDef.base.qLabelExpression",Se="qDef.qAggrFunc",we="qDef.base.qAggrFunc",Ce="qDef.base";const Ee={getExpression:function(e){var t=l(e,he);return void 0!==t?t:l(e,fe)},getExpressionRef:function(e){return void 0!==l(e,he)?he:fe},getLibraryIdRef:function(e){return l(e,ge)?ge:me},getLibraryId:function(e){return l(e,ge)||l(e,me)},getLabelRef:function(e){return l(e,Ce)?ye:be},getLabelExpressionRef:function(e){return l(e,Ce)?xe:ve}};var Re={initBase:function(e,t){(t||Re.isValid(e))&&(s(e,he,l(e,fe)),s(e,ge,l(e,me)),s(e,ye,l(e,be)),s(e,xe,l(e,ve)))},restoreBase:function(e){Re.isValid(e)&&(s(e,fe,l(e,he)),s(e,me,l(e,ge)),s(e,be,l(e,ye)),s(e,ve,l(e,xe)),l(e,Se)&&l(e,we)&&s(e,Se,l(e,we)),delete e.qDef.base)},isValid:function(e){var t=l(e,he),n=l(e,ge);return void 0!==t||void 0!==n}};const Ie=Re;function Ae(e){return Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ae(e)}var ke={accumulation:$,movingAverage:U,difference:te,normalization:de,timeSeriesDecomposition:J};const Pe={modifiers:ke,apply:Me,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Oe,getActiveModifier:Le,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return ke[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return ke[e]&&ke[e].isApplicable({properties:n,layout:r})})},measureBase:Ee,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=_e(e);We({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Xe({modifiers:t,properties:n,layout:r}))}),o&&!i},ifEnableTotalsFunction:Ne};var De={};function Me(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,n=e.properties,r=e.isSnapshot,o=void 0!==r&&r,i=e.masterItem,s=!1;De[t.id]=De[t.id]||{isFirstTime:!0};var c=De[t.id].isFirstTime;if(De[t.id].isFirstTime=!1,n&&"object"===Ae(n))return Te({model:t,properties:n});var u=t?t.layout:void 0,d=l(u,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(u,"qHyperCube.qMeasureInfo"),f=De[t.id].lastReloadTime;if(De[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:u})){var h=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ve({measure:e,properties:n,layout:r})})}({measures:t,layout:n})}({measures:p,layout:u,model:t,lastReloadTime:f});return h||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some(function(e){return function(e){var t=e.measure,n=e.layout;return We({modifiers:_e(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})}))}({measures:p,layout:u,masterItem:i,isFirstTime:c})?t.getEffectiveProperties().then(function(e){var n=a()(!0,{},e);Fe(n);var r=Je(n);return Ue({model:t}).then(function(o){return Ge({libraryIds:r,model:t}).then(function(r){return h&&function(e){var t=e.properties;je(t).forEach(function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(n++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&He(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(r)&&(t.qDef.base.qDef=r)}})}}({measure:e,properties:t})})}({properties:n}),Te({model:t,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:r,dimensionAndFieldList:o})})}).catch(function(){return Promise.resolve(s)})}):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Ae(e.base)})}(p)?t.getEffectiveProperties().then(function(e){return function(e){var t=e.model,n=e.properties,r=Je(n);return Ze({model:t,libraryIds:r}).then(function(){var e=a()(!0,{},n);return je(n).forEach(function(e){return qe(e)}),Ye({oldProperties:e,newProperties:n,model:t})})}({model:t,properties:e})}):Promise.resolve(s)}function Te(e){var t=e.model,n=e.oldProperties,r=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?a()(!0,{},r):r),Fe(r);var p=Je(r);return Ze({model:t,libraryIds:p,masterItem:c}).then(function(){return function(e){var t=e.measures,n=e.properties,r=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=je(n)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:n}))return t.forEach(function(e){return qe(e)}),Promise.resolve();var s=o?void 0:Je(n);return Ue({model:r,dimensionAndFieldList:i}).then(function(e){return Ge({libraryIds:s,model:r,libraryItemsProps:o}).then(function(r){t.forEach(function(t){var o=t.qDef.modifiers;r&&We({modifiers:o,properties:n})?(function(e){var t=e.measure,n=e.properties,r=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;Ie.isValid(t)||Ie.initBase(t,!0);var s=t.qDef,c=s.modifiers,u=s.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Ae(e)&&!e.disabled){if(i++,"object"!==Ae(ke[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(i>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");ke[e.type].initModifier(e,t);var s=t.qLibraryId||u&&u.qLibraryId;s?function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:ke[n.type].generateExpression({expression:s,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=l,t.qDef.qDef=n.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||i.qMeasure.qLabel),(t.qDef.qLabelExpression||i.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=i.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&i.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:n,libraryItemsProps:r,dimensionAndFieldList:o}):function(e){var t=e.measure,n=e.modifier,r=e.properties,o=e.dimensionAndFieldList;"function"==typeof ke[n.type].updateModifier&&ke[n.type].updateModifier(n,r.qHyperCubeDef);var i=Ee.getExpression(t),s=""===i?i:ke[n.type].generateExpression({expression:i,modifier:n,properties:r,dimensionAndFieldList:o});n.outputExpression=s,t.qDef.qDef=n.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,n.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:n,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||Ne(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Ne(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}})}({measure:t,properties:n,libraryItemsProps:r,dimensionAndFieldList:e}),$e(t)):qe(t)})})})}({measures:o,properties:r,model:t,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return s?Ye({oldProperties:n,newProperties:r,model:t}):Promise.resolve(!1)})}).catch(function(){return Promise.resolve(!1)})}function qe(e){!function(e){var t=_e(e);return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&!ke[e.type]})}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some(function(e){return We({modifiers:_e(e),properties:n,layout:r})})}function Le(e){var t=_e(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(ke[r.type]&&!r.disabled)return r}}function Ne(e){var t=Le(e);return!t||ke[t.type].enableTotalsFunction(e)}function je(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function _e(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function ze(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Fe(e){je(e).forEach(function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&ze(t)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)})}function $e(e){var t=_e(e);Array.isArray(t)&&t.forEach(function(t){"object"===Ae(t)&&(t.disabled||!ke[t.type]&&ze(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function He(e){return e.base||e.qDef&&e.qDef.base}function Be(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Be(t)&&We({modifiers:_e(t),properties:n,layout:r})}function We(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Ae(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[e.type].isApplicable({properties:n,layout:r})),o[e.type])})}function Ue(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});r.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return r.push(a),Promise.all(r).then(function(){return o})}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=n.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=n.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a}).catch(function(){return null})}function Ke(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,n=e.newProperties,r=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qMeasures"),Ke)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke)!==JSON.stringify(l(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ke);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):function(e,t,n){if(!e)return Promise.resolve();var r=N.generate(t,n);return a()(!0,t,n),r&&r.length?(r=r.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(r,!0)):Promise.resolve()}(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then(function(){return o}):Promise.resolve(o)}function Xe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Ae(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:n,layout:r})})}function Je(e){var t=je(e),n=[],r=[],o=!1;return t.forEach(function(t){var r=_e(t);if(We({modifiers:r,properties:e})){var i=Be(t);i&&n.push(i),o=o||Xe({modifiers:r,properties:e})}}),l(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&r.push(t)}),{measureLibraryIds:n,dimensionLibraryIds:r}}function Ze(e){var t=e.model,n=e.libraryIds,r=e.masterItem;return!r&&r!==pe&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=l(e,"qInfo.qType");return n&&a[n]&&a[n].forEach(function(n){t[n]=l(e,n)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(){Object.keys(r).forEach(function(e){o[e]||i[e]||(r[e].listener.dispose(),r[e].unbindCloseListnener(),delete r[e])})}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then(function(t){r[e]={listener:t.layoutSubscribe(c),unbindCloseListnener:d(t,function(){return e=t.id,n(pe),delete r[e],void u();var e}),enabled:!1,properties:s(t.layout)}}).catch(function(){})}return{subscribe:function(e){var n=e.measureLibraryIds,a=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),i={},t.forEach(function(e){i[e]=!0})}({measureLibraryIds:n,dimensionLibraryIds:a}),u(),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!r[e]&&s.push(p(e,"getMeasure"))}),Object.keys(i).forEach(function(e){i[e]&&!r[e]&&s.push(p(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach(function(e){r[e].listener.dispose(),r[e].unbindCloseListnener()}),r={}}}}({model:t,callback:function(e){return Me({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}for(var Qe in e.default=o.default,o)-1===["default"].indexOf(Qe)&&(e[Qe]=o[Qe]);Object.defineProperty(e,"__esModule",{value:!0})})()}(cF)),cF),dF=en(uF);const pF="TOTAL_OFF",fF={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},hF={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.align",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"align_left",labelPlacement:"bottom",value:"left",translation:"properties.dock.left"},{component:"icon-item",icon:"align_center",labelPlacement:"bottom",value:"center",translation:"Common.Center"},{component:"icon-item",icon:"align_right",labelPlacement:"bottom",value:"right",translation:"properties.dock.right"}],defaultValue:"left",show:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},mF=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!dF.hasActiveModifiers({measures:[e],properties:t.properties})||dF.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),gF={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:ug.Auto,translation:"Common.Auto"},{value:ug.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:ug.Pixels,translation:"Object.Table.Column.Pixels"},{value:ug.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:ug.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===ug.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===ug.Percentage}},bF=e=>({...fF,...e.flags.isEnabled("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?{columnExpression:{type:"items",grouped:!0,items:[{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},{type:"items",items:[{component:"text",translation:"properties.Header",style:"sHeader"},{ref:"qDef.headerColor.background",translation:"Object.Table.Measure.BackgroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""},{ref:"qDef.headerColor.foreground",translation:"Object.Table.Measure.ForegroundExpression",component:"expression",expressionType:"StringExpression",defaultValue:""}]},{type:"items",items:[{component:"text",translation:"properties.Content",style:"sHeader"},{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}]}]}}:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]}},...hF,...gF}),vF=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"dimension",ref:"qLibraryId",translation:"Common.Dimension",show:e=>e.qLibraryId},inlineDimension:{component:"inline-dimension",show:e=>!e.qLibraryId},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},subTotalGroup:{type:"items",show:e.flags.isEnabled("TLV-2303-SUB-TOTALS")&&!e.anything.sense?.isUnsupportedFeature?.("totals"),items:[{uses:"divider"},{type:"string",component:"switch",translation:"properties.showSubTotals",ref:"qOtherTotalSpec.qTotalMode",defaultValue:pF,trueOption:{value:"TOTAL_EXPR",translation:"properties.on"},falseOption:{value:pF,translation:"properties.off"}},{type:"string",component:"expression",expressionType:"StringExpr",ref:"qTotalLabel",translation:"Common.Label",defaultValue:()=>e.translator.get("properties.subTotals"),show:e=>e.qOtherTotalSpec?.qTotalMode!==pF},{uses:"divider"}]},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}}),yF=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:mF(e)}},xF=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:vF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...bF(e),...aF(e)}}}}}),SF=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:yF(e)},presentation:{type:"items",translation:"properties.presentation",items:{...bF(e),...sF(e,{[tF.Image]:!0,[tF.Indicator]:!0,[tF.MiniChart]:!0})}}}}}),wF=e=>({...xF(e),...SF(e)}),CF=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...wF(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),EF=e=>({type:"items",items:[{ref:e,type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]}),RF=e=>EF("dimensionNullValues"===e?"nullValueRepresentation.dimensionText":"nullValueRepresentation.text"),IF={chartExploration:{type:"items",translation:"properties.chartExploration",items:{chartExplorationToggler:{type:"items",component:"chart-exploration-toggler",translation:"properties.enableChartExploration",ref:"enableChartExploration"},visibilityToggler:{show:e=>e.enableChartExploration,component:"buttongroup",translation:"properties.ChartExploration.VisibilityOption",ref:"chartExploration.menuVisibility",options:[{value:"auto",translation:"Common.Auto"},{value:"minimized",translation:"properties.ChartExploration.Minimized"}]}},show:e=>!e.insideContainer}},AF=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),kF=(e,t,n,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:r??!1,defaultValue(e,t,o){const i=r?.(e,t,o)??!1,a=o.theme.current(),s=n(a,i);return{color:"transparent"===s?"none":s}}}),PF=(e,t=!1)=>{return{value:e,label:t?(n=e,n.charAt(0).toUpperCase()+n.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var n},DF=({ref:e,themeAccessor:t,translator:n,flags:r})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,n,r)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0},...a.sort().map(e=>PF(e,!0))],l=[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0},...Ee(r).filter(e=>!a.includes(e)).map(e=>PF(e,!0))];return[...s,...l.length>1?l:[]]})(t(a),a,n,r)},defaultValue:(e,n,r)=>t(r.theme.current())}),MF=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],TF=({ref:e,themeAccessor:t,translator:n})=>({component:"dropdown",ref:e,options:(e,r,o)=>{const i=o.theme.current();return((e,t,n)=>{const r=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,r,...o])),a=[{value:"ThemeHeader",label:n.get("properties.themeFontSizes"),metaText:n.get("properties.theme"),groupHeader:!0},...i.sort((e,t)=>parseInt(e,10)-parseInt(t,10)).map(e=>PF(e,!1))],s=[{value:"DefaultHeader",label:n.get("properties.allFontSizes"),metaText:n.get("properties.default"),groupHeader:!0},...MF.filter(e=>!i.includes(e)).map(e=>PF(e,!1))];return[...a,...s.length>1?s:[]]})(t(i),i,n)},defaultValue:(e,n,r)=>t(r.theme.current())}),qF=({section:e,defaultFontStyle:t,translator:n,flags:r,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:DF({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:n,flags:r}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:TF({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:n}),fontColor:kF(`${e}.fontColor`,void 0,t=>o(t,e,"color")??t.color)}},background:kF(`${e}.background`,"properties.background",(t,n)=>{const r=n?km.WHITE:km.TRANSPARENT;return o(t,e,"backgroundColor")??r},a)}}}}),OF=({section:e,defaultFontStyle:t,fallbackBackground:n,getThemeValue:r,isNullValueText:o,translation:i})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{nullValueText:o?RF(e):void 0,content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:t??[]},fontColor:kF(`${e}.fontColor`,void 0,t=>r(t,e,"color")??t.color)}},background:kF(`${e}.background`,"properties.background",t=>r(t,e,"backgroundColor")??n??"transparent")}}}}),LF=(e,t,n)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[n];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[n];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[n];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[n];case"subTotalValues":return e.object?.straightTableV2?.subTotal?.label?.value?.[n];case"nullValues":case"dimensionNullValues":return e.object?.straightTableV2?.null?.label?.value?.[n];default:return}},NF=e=>e.grid?.zebraStripes?.show,jF={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},_F=e=>e?.content?.hoverEffect,zF={translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show:_F,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:_F,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},FF=(e,t,{properties:n})=>"sn-table"===n.visualization&&!0===n.usePagination,$F=e=>e.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),HF=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:qF({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:LF,disableNoneCallback:FF}),dimensionValueSection:qF({section:"dimensionValues",translator:t,flags:e,getThemeValue:LF}),measureValueSection:qF({section:"measureValues",translator:t,flags:e,getThemeValue:LF}),totalRowSection:qF({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:LF,disableNoneCallback:FF}),subTotalRowSection:e.isEnabled("TLV-2303-SUB-TOTALS")?qF({section:"subTotalValues",defaultFontStyle:["bold"],translation:"properties.subTotals",translator:t,flags:e,getThemeValue:LF,disableNoneCallback:FF}):void 0,...$F(e)?{dimensionNullSection:OF({section:"dimensionNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:LF,isNullValueText:!0}),nullValues:OF({section:"nullValues",translation:"properties.pivot.measureNullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:LF,isNullValueText:!0})}:{nullValues:OF({section:"nullValues",fallbackBackground:km.NULL_VALUE_BACKGROUND,getThemeValue:LF,isNullValueText:!1})},grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...jF},border:kF("grid.border","properties.border",e=>e.object?.straightTableV2?.grid?.borderColor??km.BORDER_MEDIUM),divider:kF("grid.divider","properties.pivot.divider",e=>e.object?.straightTableV2?.grid?.divider?.borderColor??km.BORDER_HEAVY)}}}},hoverEffectSection:zF,zebraStripes:{translation:"properties.zebraStripes",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{zebraStripesEnable:{ref:"grid.zebraStripes.show",translation:"properties.zebraStripes.enable",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},zebraStripesColorOdd:{show:NF,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:NF,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:NF,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:NF,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),BF=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[HF(e),AF(e),{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]},{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]},{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1},e.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING")?void 0:RF()]},...IF}}),VF={uses:"sorting"},WF={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},UF=e=>({type:"items",component:"accordion",items:{data:CF(e),sorting:VF,addOns:WF,settings:BF(e)}});function GF(e){return{definition:UF(e),exploration:Lz(e),data:Qz(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,n,r,o){const i={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Cv({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>bv({propertyTree:e,hyperCubePath:t}),...e.flags.isEnabled("VNA-505_toggle_field_visibility")&&{propertyHandler:t=>new Kz(t,e.translator),usePropertyHandler:"sn-table-data"},migrate:eF(e)}}const KF=e=>{const t=e.get(ev);return a(()=>()=>{t.unmount()},[t]),t};var YF,XF={exports:{}};
103
103
  /*!
104
104
  * CSSJanus. https://www.mediawiki.org/wiki/CSSJanus
105
105
  *
@@ -118,4 +118,4 @@ function ia(e,t){let n;return n=t?Hi(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 XF=(KF||(KF=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])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+u+")*?",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"),I=new RegExp("("+c+v+"[^;}]+;?)","gi"),A=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(: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"%"===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(I,"`NOFLIP_SINGLE`"),a=new r(A,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(O,"$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(q,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$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)}(YF,YF.exports)),YF.exports),JF=en(XF),ZF="comm",QF="rule",e$="decl",t$=Math.abs,n$=String.fromCharCode;function r$(e){return e.trim()}function o$(e,t,n){return e.replace(t,n)}function i$(e,t){return 0|e.charCodeAt(t)}function a$(e,t,n){return e.slice(t,n)}function s$(e){return e.length}function l$(e,t){return t.push(e),e}var c$=1,u$=1,d$=0,p$=0,f$=0,h$="";function m$(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:c$,column:u$,length:a,return:"",siblings:s}}function g$(){return f$=p$>0?i$(h$,--p$):0,u$--,10===f$&&(u$=1,c$--),f$}function b$(){return f$=p$<d$?i$(h$,p$++):0,u$++,10===f$&&(u$=1,c$++),f$}function v$(){return i$(h$,p$)}function y$(){return p$}function x$(e,t){return a$(h$,e,t)}function S$(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 w$(e){return r$(x$(p$-1,R$(91===e?e+2:40===e?e+1:e)))}function C$(e){for(;(f$=v$())&&f$<33;)b$();return S$(e)>2||S$(f$)>3?"":" "}function E$(e,t){for(;--t&&b$()&&!(f$<48||f$>102||f$>57&&f$<65||f$>70&&f$<97););return x$(e,y$()+(t<6&&32==v$()&&32==b$()))}function R$(e){for(;b$();)switch(f$){case e:return p$;case 34:case 39:34!==e&&39!==e&&R$(f$);break;case 40:41===e&&R$(e);break;case 92:b$()}return p$}function I$(e,t){for(;b$()&&e+f$!==57&&(e+f$!==84||47!==v$()););return"/*"+x$(t,p$-1)+"*"+n$(47===e?e:b$())}function A$(e){for(;!S$(v$());)b$();return x$(e,p$)}function k$(e){return function(e){return h$="",e}(P$("",null,null,null,[""],e=function(e){return c$=u$=1,d$=s$(h$=e),p$=0,[]}(e),0,[0],e))}function P$(e,t,n,r,o,i,a,s,l){for(var c=0,u=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=b$()){case 40:108!=h&&58==i$(E,d-1)?(v++,E+="("):E+=w$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=w$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=n$(y);break}E+=C$(h);break;case 92:E+=E$(y$()-1,7);continue;case 47:switch(v$()){case 42:case 47:l$(M$(I$(b$(),y$()),t,n,l),l),5!=S$(h||1)&&5!=S$(v$()||1)||!s$(E)||" "===a$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=s$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=n$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=o$(E,/\f/g,"")),f>0&&(s$(E)-d||0===m)&&l$(f>32?T$(E+";",r,n,d-1,l):T$(o$(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(l$(C=D$(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)P$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===i$(E,3))break;case 108:if(97===i$(E,2))break;default:u=0;case 100:case 109:case 115:}u?P$(e,C,C,r&&l$(D$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):P$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+s$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==g$())continue;switch(E+=n$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(s$(E)-1)*b,b=1;break;case 64:45===v$()&&(E+=w$(b$())),p=v$(),u=d=s$(x=E+=A$(y$())),y++;break;case 45:45===h&&2==s$(E)&&(m=0)}}return i}function D$(e,t,n,r,o,i,a,s,l,c,u,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=a$(e,p+1,p=t$(g=a[m])),x=e;v<h;++v)(x=r$(g>0?f[v]+" "+y:o$(y,/&\f/g,f[v])))&&(l[b++]=x);return m$(e,t,n,0===o?QF:s,l,c,u,d)}function M$(e,t,n,r){return m$(e,t,n,ZF,n$(f$),a$(e,2,-2),0,r)}function T$(e,t,n,r,o){return m$(e,t,n,e$,a$(e,0,r),a$(e,r+1,-1),r,o)}function q$(e,t,n){switch(e.type){case"@import":case e$:case ZF:return e.return=e.return||e.value;case QF:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===ZF&&(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),q$);return s$(r)?e.return=e.value+"{"+r+"}":""}function O$(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===QF&&(!e.parent||"@media"===e.parent.type||e.parent.type===QF)){var o=JF.transform(q$(e));e.children=o?k$(o)[0].children:[],e.return=""}}Object.defineProperty(O$,"name",{value:"stylisRTLPlugin"});const L$=iI(({options:e,...t})=>Jg(Wm(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 N${#v={on:new Map,once:new Map};#y=10;#x(e){this.listenerCount(e)>this.#y&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#S(e,t,n){const r=this.#v[e].get(t)??new Set;r.add(n),this.#v[e].set(t,r),this.#x(t)}setMaxListeners(e){this.#y=e}on(e,t){this.#S("on",e,t)}once(e,t){this.#S("once",e,t)}off(e,t){this.#v.on.get(e)?.delete(t),this.#v.once.get(e)?.delete(t)}emit(e,...t){this.#v.on.get(e)?.forEach(e=>{e(...t)}),this.#v.once.get(e)?.forEach(e=>{e(...t)}),this.#v.once.delete(e)}listenerCount(e){return(this.#v.on.get(e)?.size??0)+(this.#v.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#v.on.clear(),this.#v.once.clear()):(this.#v.on.delete(e),this.#v.once.delete(e))}}const j$=Jg(()=>new N$);let _$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),z$=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}({}),F$=function(e){return e.A="ascending",e.D="descending",e}({}),$$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const H$=[0,0],B$=e=>"number"==typeof e&&!Number.isNaN(+e),V$=e=>B$(e.qNum),W$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),U$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),G$=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},K$=(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,c=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-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/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)},Y$=(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:U$(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:G$(r,t,n)}))),r},X$=(e,t,n,r)=>{const o=Y$(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=K$(e,a,t);break}r=i}return n})(o,t);return a},J$=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!B$(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||!B$(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)},Z$=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=J$(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||!B$(t))return 0;let a=n&&B$(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}},Q$=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=Z$(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 G$(o,n.limitPaletteColorIndex,r);const a=U$(n.limitRange,t);return X$(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===n&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},eH=(Rm().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)"),tH=4/3,nH="12px",rH="600",oH="Source Sans Pro, sans-serif",iH={height:"auto",fontSize:nH,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"}},aH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:rH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},sH=(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,lH=(e,t)=>e.representation.type===eF.Image&&"fitHeight"===e.representation.imageSize?sH(t,e.representation):e.align,cH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",uH=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},dH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,pH=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",fH=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",hH=24,mH=$c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),gH=$c(Td,{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?cH(e,r):void 0})),bH=$c(Td,{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},[`& .${rg}`]:{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"},[`& .${rg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),vH=$c(Td,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),yH=$c(Td,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),xH=$c(Hu,{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})),SH=Jg(),wH=Jg(0),CH=Jg(0),EH=e=>parseInt(e??iH.fontSize,10)*tH,RH=4/3,IH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function AH(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const kH=(e,t)=>e?{borderBottomColor:km.DARK_MODE_BORDER,borderRightColor:km.DARK_MODE_BORDER,borderLeftColor:km.DARK_MODE_BORDER,borderTopColor:km.DARK_MODE_BORDER}:{borderLeftColor:km.BORDER_MEDIUM,borderRightColor:km.BORDER_MEDIUM,borderTopColor:km.BORDER_HEAVY,borderBottomColor:t?km.BORDER_HEAVY:km.BORDER_LIGHT},PH=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*RH+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},DH=e=>e.components?.find(e=>"theme"===e.key),MH=(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:IH(n?.fontColor)?AH(km.TEXT,t,n?.fontColor):i||km.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...kH(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function TH(e,t,n){const r=DH(e)?.header,o=MH("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=Mm(o.background??km.WHITE,dg),o.activeBackground=Mm(o.background??km.WHITE,pg),o}const qH=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in aH)(e)&&Object.assign(t,aH[e])),t};function OH(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&&qm(i);a&&(r[n[t]]=a),o=i?qH(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=Pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const LH=25e4,NH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,jH=5e6,_H=5e5;const zH={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:FH(e),value:FH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function FH(e){try{return decodeURIComponent(e)}catch{return e}}function $H(e){if(!(this instanceof $H))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:()=>zH.fromSearchString(t.search)}})}function HH(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")}$H.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},$H.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=HH(t.key),t.value?n+=`=${HH(t.value)}`:n+=t.useEqualSign?"=":"";return n};var BH=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}},VH=class{decode(e){let t="";const n=new BH(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const WH=e=>e>=0&&e<=1114111,UH=e=>e.match(/[\s]/);var GH=class extends VH{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&&!UH(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return WH(a)?String.fromCharCode(a):"�"}},KH=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}},YH=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 KH.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return KH.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||KH.newInstanceIfNeeded(e,t,this._value)}},XH=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 YH);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const JH=(()=>{const e=[],t=[],n=new XH;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 ZH=class extends VH{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,JH.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=JH.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)&&WH(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)&&WH(r)?String.fromCharCode(r):null}},QH=class extends VH{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),WH(i))?String.fromCharCode(i):(e.reset(),null)}};let eB;"undefined"!=typeof document&&(eB=document.createElement("div"));const tB=Array.prototype.indexOf,nB=[",",".","_"," "],rB=[",",".","-","_"," "],oB={width:["%"],height:["%"]},iB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},aB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":iB.image,"background-color":iB.color,"border-color":iB.color,"border-image":iB.image,color:iB.color,icon:iB.image,"list-style-image":iB.image,"outline-color":iB.color},sB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function lB(e,t,n){let r;if(t){if(tB)return tB.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 cB(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return eB.appendChild(n),t=eB.innerHTML,eB.removeChild(n),t}function uB(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=pB(e).toLowerCase(),t=pB(t),i=0;i<sB.attr_name.length;i++)if(e.match(sB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<sB.attr_val.length;i++)if(t.toLowerCase().match(sB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=oB[e],r||(r=rB),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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&lB(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function dB(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=pB(e).toLowerCase(),t=pB(t),lB(e,sB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<sB.css_val.length;r++)if(t.toLowerCase().indexOf(sB.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=aB[e],o||(o=iB.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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&lB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function pB(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new ZH,new QH,new GH];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 fB=[];for(let e=0;e<255;e++)fB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const hB={html:e=>cB(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]=dB(t,n[t],!0),i+=dB(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]=uB(e,t[e],!0),o+=uB(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function mB(e,t){throw new Error(t)}var gB={canonicalize:pB,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?hB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&mB(this,"Invalid parameter type"),hB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&mB(this,"Invalid parameter type"),hB.attr(e)):void mB(this,"Invalid parameter type")},encodeForAttr:uB,encodeForAttr2:function(e){return uB("nonsens",e,!0)},encodeForCSS:dB,encodeForHref:function(e){pB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new $H(e),n=$H.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+$H.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=nB),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),lB(o,t)>=0||null==fB[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:cB,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=pB(t).toLowerCase():mB(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=_H,maxByteSizeImage:r=jH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=NH.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 bB=(e,t)=>t.qAttrExps?.qValues?.[e],vB=(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"}}},yB=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!gB.isSafeDataURL(t))?{type:eF.Text,url:void 0,text:e,labelStructure:o}:{type:eF.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:vB(r,a),labelStructure:o,imageBox:i},xB=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:eF.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:eF.MiniChart,text:r,miniChart:a}},SB=(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===tF.Attribute?void 0:n?.urlLabel},wB=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:eF.Link,url:gB.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:eF.Text,url:void 0,text:t,labelStructure:e}}},CB=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=nF(t),d=s(e);return u===eF.Image&&c[eF.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=bB(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),yB({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return yB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=bB(n.imageLabel??-1,e)?.qText??r;return yB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:eF.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):u===eF.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===tF.Attribute){const i=SB(n.url??-1,e,t);return wB({labelStructure:r,text:o||i||"",url:i})}if(i===tF.Dimension){const i=SB(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),wB({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:eF.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):u===eF.Indicator&&c[eF.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:eF.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===eF.MiniChart&&c[eF.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?xB(e,t,i,d):{type:eF.Text,url:void 0,text:d,labelStructure:a}},EB=Jg(e=>{const t=e($b),n=e(Eb);return e(Rb),{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}}),RB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),IB=({cId:e})=>e??Vz(),AB=1e4;function kB(e,t){return[...t].reverse().find(t=>t*e<=AB)||Math.floor(AB/e)}function PB(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 DB(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function MB(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return B$(n?.qNum)}function TB(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 qB=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",OB=(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?Mm(s,dg):void 0,c=s?Mm(s,pg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const LB=(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:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===fg.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!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:I,textAlign:A,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:ug.Auto},selectionColIdx:S,isActivelySorted:g,id:IB(h),label:I??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:RB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:DB(e,f,c,d??-1),...!f&&{isTotalNumeric:MB(e,d??-1)},...TB(A,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?OB(O,n):void 0}}(e,o,t,n,r))},NB=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",jB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,_B={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},zB=Jg(e=>{const t=e(FB),n=e(vb),r=e(EB),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>AB?{...t,rowsPerPage:kB(l,t.rowsPerPageOptions),page:0}:t}),FB=Jg(_B),$B=Jg(e=>{const t=e(vb),n=e($b),r=e(EB);return jb(t,n)?{page:r.page||_B.page,rowsPerPage:r.rowsPerPage||_B.rowsPerPage,rowsPerPageOptions:_B.rowsPerPageOptions}:e(zB)},(e,t,n)=>{t(FB,e=>({...e,...n}))}),HB=!0,BB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,VB=Jg(async e=>{const t=e(vb),n=e($b),r=e(zb),{page:o,rowsPerPage:i}=e($B),a=e(EB),s=e(Ub),l=e(mb),c=e(xb),u=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=PB(t,n),v=LB(t,HB,r,u),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});c||(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(BB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&jB(c,a.isDim),p=u||d?NB(a.isDim,c,t,y):c.qText,f=u?W$(p):V$(c),g=V$(c)&&!W$(c.qText??"");o[s]={id:Vz(),...c,align:qB(f,a.bodyTextAlign,r,HB),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&jB(c,a.isDim),representation:CB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[eF.Image]:!0,[eF.Indicator]:!0,[eF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),WB=JR(VB,e=>e),UB=Jg(e=>{const t=e(vb),n=e($b),r=e(Mb),o=e(zb),i=e(gb),a=LB(t,false,o,i),s=PB(t,n),l=t.qHyperCube.qSize.qcy,c=Math.min(LH,l),u=l>LH&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),GB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},KB=Jg(),YB=Jg(e=>{const t=e(Bb),n=e(KB);return n||(t?e(WB)??GB:e(UB))}),XB=Jg(e=>e(YB).totalsPosition),JB=Jg(e=>e(YB).columns),ZB=Jg(e=>e(JB).length),QB=Jg(e=>e(YB).rows),eV=Jg(e=>e(YB).totalRowCount),tV=Jg(e=>e(YB).totalColumnCount),nV=Jg(e=>e(YB).paginationNeeded),rV=Jg(e=>{const t=e(Zb),n=e(tv),r=e(vb),o=e(XB),i=e(QB),a=o.atTop,s=function(e,t,n,r){const o=DH(e)?.content,i=MH("content",t,o);i.background=t.background.color;const a=PH(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=IH(l)||!!u,p=IH(s)||!!c,f=d||p;let h;h=IH(s)?AH(km.HOVER,t,s):c||(d?"":km.HOVER);const m=f?AH(Pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=TH(r,n,!a),c=function(e,t,n){const r=DH(e)?.content,o=MH("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=TH(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),oV=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},iV=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=oV(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},aV=(e,t,n,r=km.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=iV(e,t,n);return _m(i,o,a,r)??r},sV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return nH}},lV=e=>e?.some(e=>"italic"===e)?"italic":"normal",cV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?rH:"normal",uV=e=>!1===e?1:3,dV=e=>e?.some(e=>"underline"===e)?"underline":"none",pV=Jg(e=>{const t=e($b),n=e(Bb),r=e(tv),o=e(vb),i=e(rV),a=e(gb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=DH(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?km.WHITE:km.TRANSPARENT,v=aV(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??oH,fontSize:sV(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:lV(s?.fontStyle),fontWeight:cV(s?.fontStyle,rH),textDecoration:dV(s?.fontStyle),color:oV(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??km.TEXT,background:v},headerMenuHoverBackground:Mm(v,dg),headerMenuActiveBackground:Mm(v,pg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??oH,fontSize:sV(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:lV(l?.fontStyle),fontWeight:cV(l?.fontStyle,"normal"),textDecoration:dV(l?.fontStyle),color:oV(r,l?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??km.TEXT,background:iV(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??oH,fontSize:sV(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:lV(c?.fontStyle),fontWeight:cV(c?.fontStyle,"normal"),textDecoration:dV(c?.fontStyle),color:oV(r,c?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??km.TEXT,background:iV(r,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??oH,fontSize:sV(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:lV(u?.fontStyle),fontWeight:cV(u?.fontStyle,rH),textDecoration:dV(u?.fontStyle),color:oV(r,u?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??km.TEXT,background:aV(r,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??oH,fontSize:sV(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:lV(d?.fontStyle),fontWeight:cV(d?.fontStyle,rH),textDecoration:dV(d?.fontStyle),color:oV(r,d?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??km.TEXT,background:aV(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:lV(x?.fontStyle),fontWeight:cV(x?.fontStyle,"normal"),textDecoration:dV(x?.fontStyle),color:oV(r,x?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:oV(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:lV(p?.fontStyle),fontWeight:cV(p?.fontStyle,"normal"),textDecoration:dV(p?.fontStyle),color:oV(r,p?.fontColor)??oV(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:oV(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??uV(o.multiline?.wrapTextInCells),headerLineClamp:uV(o.multiline?.wrapTextInHeaders),border:oV(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?km.DARK_MODE_BORDER:km.BORDER_MEDIUM),divider:oV(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??km.BORDER_HEAVY,hoverColors:{color:oV(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:oV(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:oV(r,h?.zebraStripes?.color?.odd),background:oV(r,h?.zebraStripes?.background?.odd)},even:{color:oV(r,h?.zebraStripes?.color?.even),background:oV(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===oV(r,x?.background),overrideDimNullValueColor:void 0===oV(r,x?.fontColor),overrideMeasNullValueBackground:void 0===oV(r,p?.background),overrideMeasNullValueColor:void 0===oV(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Dm(r),contentStaticLineCount:y}}),fV=Jg(e=>{const t=e(pV);return Math.max(EH(t.header.fontSize)+8,32)}),hV=Jg(e=>{const t=e(pV),n=EH(t.totalRow.fontSize);return Math.max(n+9,24)}),mV=Jg(e=>{const t=e(pV),n=e(Sb),r=e(wb);return Math.max(n>0?EH(t.dimension.values.fontSize):0,r>0?EH(t.measure.values.fontSize):0)}),gV=Jg(e=>{const t=e(pV),n=e(mV),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),bV=Jg(e=>{const t=e(pV),n=EH(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),vV=(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:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(cg.PixelsMax,Math.max(cg.PixelsMin,f)),i-=r[a]};switch(s){case ug.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?cg.PixelsDefault:+e)(l),h();break;case ug.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?cg.PercentageDefault:+e)(c)/100*t,h();break;case ug.FitToContent:e.representation?.type===eF.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case ug.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(cg.AutoMinTable,e)})}return r},yV=Jg(e=>{const t=e(pV),n=e(YB).totalsPosition,r=e(Ib),{measureText:o}=e(L$({...t.header,fontWeight:rH})),{measureText:i}=e(L$({...t.totalRow,fontWeight:rH})),{estimateWidth:a}=e(L$(t.dimension.values)),{estimateWidth:s}=e(L$(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=hH),t+=hH,t+=hH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),xV=Jg(null),SV=Jg(e=>{const t=e(YB),n=e(Jb).width,r=e(CH),o=e(yV);return vV(t.columns,n-r,o)}),wV=Jg(e=>e(xV)??e(SV),(e,t,n)=>{t(xV,n)}),CV=nI(e=>{const t=e(j$);!1===e(SH)&&t.emit("done-adjusting-column-width")}),EV=nI((e,t)=>{e(vb),t(xV,null)}),RV=Jg(e=>e(wV).reduce((e,t)=>e+t,0)),IV=({children:e})=>(cb(EV),cb(CV),e);function AV(e){const t=Rm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Sc({...t,direction:e})}const kV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},PV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},DV=$c("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":{...kV},"&::-moz-range-track":{...kV},"&::-ms-track":{...kV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...PV},"&::-moz-range-thumb":{...PV},"&::-ms-thumb":{...PV},"&: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"}})),MV=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=eg({translator:u.translator}),f=D({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!c,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}};Zm(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,cg.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:ug.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=>{Lm(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=>{Lm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===sg.Left||e.key===sg.Right){Lm(e);const t=5,n=e.key===sg.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===sg.Space||e.key===sg.Enter?(Lm(e),s(e),l?.(!1),x()):e.key===sg.Esc&&(Lm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return sn.jsx(DV,{style:b,hoverColor:o,isLastColumn:n,className:lg,"data-testid":lg,onMouseDown:e=>{Lm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:ug.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Lm(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":I,"aria-valuemin":cg.PixelsMin,"aria-valuemax":cg.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},TV=F((e,t)=>sn.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:sn.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),qV=({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},OV=$c(Td,{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"})),LV=$c(TV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),NV=$c(Kf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),jV=$c(Ip)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),_V=$c(Qf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),zV=$c(Qf,{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"})),FV=$c("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"})),$V=$c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),HV=$c(Ku)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),BV=$c(Sf,{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})),VV=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),WV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?WV(t):t:e.parentElement?.children?.[0]},UV=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?UV(t):t},GV=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===sg.Down||t===sg.Up){const n=e=>t===sg.Down?WV(e):UV(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},KV=(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 YV={};const XV=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return sn.jsxs(sn.Fragment,{children:[sn.jsxs(zV,{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),YV={}),a?.length&&(p(!0),YV[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:GV,children:[l?sn.jsx(FV,{direction:c,isPagination:u}):null,sn.jsxs($V,{children:[sn.jsx(BV,{direction:c,isPagination:u,children:sn.jsx(o,{})}),sn.jsx(HV,{variant:"body2",children:r})]}),a?.length?sn.jsx(VV,{}):null]},t),a?.length?sn.jsx(eW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:KV(a,YV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},JV=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&sn.jsx(_V,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>sn.jsx(XV,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),ZV=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[JV({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?sn.jsx(jV,{"data-testid":"group-divider",variant:"middle"}):void 0]),QV={appear:0,enter:0,exit:0},eW=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?sn.jsx(NV,{className:og,open:t,anchorEl:e,onClose:n,transitionDuration:QV,MenuListProps:{id:ig},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:ZV({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,tW=({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]),nW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),rW=(e,t)=>e.some(e=>t[e]>0),oW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},iW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(oW);return Zm(()=>{e||(s(oW),i(null))},[e]),q(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=nW(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:rW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:rW(["qSelected"],e),canSelectPossible:rW(["qOption"],e),canSelectAlternative:rW(["qAlternative"],e),canSelectExcluded:rW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},aW=F((e,t)=>sn.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:sn.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"})})),sW=F((e,t)=>sn.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:sn.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"})})),lW=F((e,t)=>sn.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:sn.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"})})),cW=F((e,t)=>sn.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:sn.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"})})),uW=F((e,t)=>sn.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:sn.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"})})),dW=F((e,t)=>sn.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:sn.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"})})),pW=F((e,t)=>sn.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:sn.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"})})),fW=F((e,t)=>sn.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:sn.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"})})),hW=F((e,t)=>sn.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:sn.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"})})),mW=F((e,t)=>sn.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:sn.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"})})),gW=F((e,t)=>sn.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:sn.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"})})),bW=F((e,t)=>sn.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:sn.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"})})),vW=F((e,t)=>sn.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:sn.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 yW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xW="/qListObjectDef",SW=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[yW.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:aW,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:cW,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:pW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:yz,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[yW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:fW,enabled:!0}]}]),!e.isLocked&&n[yW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:vW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(xW))},icon:hW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(xW))},icon:bW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(xW))},icon:mW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(xW))},icon:gW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(xW))},icon:sW,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:dW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:uW,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[yW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:lW,enabled:!0}]}]),f},wW=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=tg})=>{const v=D(null),y=eg({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=iW({open:e,headerData:r,app:C,qStateName:u?.qStateName}),I=qV({model:f,headerData:r}),A=tW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?sn.jsxs(OV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:rg,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?sn.jsx(LV,{height:b,className:ng,"data-testid":ng,isInteractionsActive:i.active??!1,children:sn.jsx(TV,{})}):null,sn.jsx(eW,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:SW({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},CW=e=>e.isDark?{background:e.color,borderColor:km.DARK_MODE_BORDER,color:km.DARK_MODE_TEXT,disabledColor:km.DARK_MODE_DISABLED,iconColor:km.DARK_MODE_TEXT}:{background:e.color,borderColor:km.BORDER_MEDIUM,color:km.TEXT,disabledColor:km.DISABLED},EW=$c(Td,{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}`})),RW=$c(qh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),IW=$c(Hd,{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)})),AW=$c(Ku)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),kW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>CW(r.background),[r]);if(!n.active)return null;const a=o?sn.jsx(EW,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},PW=F((e,t)=>sn.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:sn.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),DW=F((e,t)=>sn.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:sn.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),MW=M({}),TW=()=>N(MW),qW=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=k(()=>CW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=eg({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,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,c,u,x,p,f,h,m,v,b,y,g]);return sn.jsx(MW.Provider,{value:S,children:e})},OW=({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 LW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),NW=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 jW=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=TW(),c=0===t.page,u=OW({type:LW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||NW.FirstPage)?null:sn.jsx(IW,{...u,disabled:!r.active,children:"rtl"===e?sn.jsx(DW,{height:tg}):sn.jsx(PW,{height:tg})})},_W=(e,t,n=!1)=>{n&&e.key===sg.Tab&&!e.shiftKey&&(Lm(e),Om(e.target,t,!1))},zW=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=TW(),p=t.page>=r-1,f=OW({type:LW.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{_W(e,n,o)}:void 0;return i<=(s?.lastPage||NW.LastPage)?null:sn.jsx(IW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?sn.jsx(PW,{height:tg}):sn.jsx(DW,{height:tg})})},FW=F((e,t)=>sn.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:sn.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),$W=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=TW(),d=t.page>=r-1,p=OW({type:LW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>NW.FirstPage&&i>NW.LastPage)&&n.enabled?e=>{_W(e,n,o)}:void 0;return sn.jsx(IW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?sn.jsx(FW,{height:tg}):sn.jsx(VV,{height:tg})})},HW=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=TW(),s=0===t.page,l=OW({type:LW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return sn.jsx(IW,{...l,disabled:!n.active,children:"rtl"===e?sn.jsx(VV,{height:tg}):sn.jsx(FW,{height:tg})})},BW=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=TW(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||NW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return sn.jsx(AW,{variant:"caption",dir:"ltr",children:s})},VW=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=TW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return sn.jsxs(sn.Fragment,{children:[sn.jsxs(AW,{variant:"caption",id:p,children:[u,":"]}),sn.jsx(RW,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},WW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=TW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||NW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=sn.jsx(sn.Fragment,{children:e.rowsPerPageOptions.map(e=>sn.jsx("option",{value:e,children:e},e))});return sn.jsx(VW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},UW=1e3,GW="…",KW=({totalPages:e,page:t})=>{const n=Math.min(e,UW),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-UW):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return sn.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(sn.jsx("option",{value:GW,disabled:!0,children:GW},"startMoreOptions")),o<e-1&&a.push(sn.jsx("option",{value:GW,disabled:!0,children:GW},"endMoreOptions")),sn.jsx(sn.Fragment,{children:a})},YW=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=TW(),{page:i}=e;if(t<=(o?.selectPage||NW.SelectPage))return null;const a=sn.jsx(KW,{totalPages:n,page:i});return sn.jsx(VW,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var XW=z(e=>sn.jsxs(qW,{...e,children:[sn.jsx(WW,{}),sn.jsx(YW,{}),sn.jsx(BW,{}),sn.jsx(jW,{}),sn.jsx(HW,{}),sn.jsx($W,{}),sn.jsx(zW,{})]}));const JW=e=>sn.jsx(kW,{...e,children:sn.jsx(XW,{...e})}),ZW=(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"]})},QW=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},eU=e=>e.ctrlKey||e.metaKey,tU=e=>e.shiftKey&&eU(e),nU=e=>[sg.Left,sg.Right,sg.Up,sg.Down].includes(e),rU=e=>e.shiftKey&&nU(e.key),oU=e=>(e=>nU(e)||[sg.Home,sg.End,sg.PageUp,sg.PageDown].includes(e))(e.key)&&!tU(e),iU=(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),ZW(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})},aU=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&rU(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{const i=new Map(t);if("key"in r&&rU(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===sg.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return 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];i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return ZW(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},sU=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}},lU=(e,t)=>{switch(t.type){case z$.Select:return iU(e,t.payload);case z$.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 z$.SelectMouseUp:return((e,t)=>sU(e.isSelectMultiValues||e.firstCell!==t.cell?e:iU(e,t)))(e,t.payload);case z$.SelectMultiAdd:return aU(e,t.payload);case z$.SelectMultiEnd:return sU(e);case z$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case z$.Clear:return e.rows.size?{...e,rows:new Map}:e;case z$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},cU=Jg(e=>{const t=e(Pb);return function(e,t){return Jg(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(YB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},lU)}),uU=Jg(e=>e(e(cU)),(e,t,n)=>{t(e(cU),n)}),dU=iI(e=>Jg(t=>{const{colIdx:n,rows:r,api:o}=t(uU);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?_$.Disabled:r.has(e.qElemNumber)?_$.Selected:_$.Possible:_$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),pU=Jg(e=>{const t=e(RV),n=e(Jb).width,r=e(CH);return t>0&&t+r<n}),fU=()=>{const[e,t]=P(!1);return gj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?sn.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},hU=(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}),mU=Jg(e=>{const t=e(Sb),n=e(Gb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/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"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),gU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),bU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),vU=e=>e.atTop?2:1,yU=(e,t)=>({top:e?vU(t):0,bottom:e&&t.atBottom?1:0}),xU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],SU=e=>e?.setAttribute("tabIndex","0"),wU=e=>e?.setAttribute("tabIndex","-1"),CU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(wU)},EU=e=>{e?.focus(),SU(e)},RU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lg}`);EU(t)},0)},IU=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{CU(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[c,u]=n;switch(e.key){case sg.Down:c<s&&c++;break;case sg.Up:c>a&&c--;break;case sg.Right:if(i)break;[c,u]="rtl"===r?gU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):bU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sg.Left:if(i)break;[c,u]="rtl"===r?bU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):gU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case sg.Home:(eU(e)||i)&&(c=a),i||(u=0);break;case sg.End:(eU(e)||i)&&(c=s),i||(u=l);break;case sg.PageDown:c=Math.min(s,c+10);break;case sg.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=xU(t,a);return EU(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}},AU=(e,t,n,r)=>{CU(t),n(e),r.enabled&&!r.active?r.focus?.():EU(xU(t,e))},kU=(e,t,n)=>{const r=e.currentTarget;if(!n.enabled||t.current||!r)return;const o=e.relatedTarget??document.activeElement,i=!!o&&r.contains(o),a=!!o?.closest(`.${og}`);i||a||((e=>{const t=e.querySelector(`.${$$.First}`),n=e.querySelector(`.${$$.Second}`);t&&n&&(t.innerHTML="",n.innerHTML="")})(r),n.blur?.(!1))},PU=F((e,t)=>sn.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:sn.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"})})),DU=$c(Jh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...iH,...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}})),MU=$c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:nH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),TU=parseInt(nH,10)/2,qU=$c("div")({position:"absolute",bottom:-TU,left:`calc(50% - ${TU}px)`}),OU=$c(fm)({position:"sticky",top:0,zIndex:1}),LU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},NU=$c(Td)({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"}}),jU=$c("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?{...LU,whiteSpace:"nowrap",display:n?"block":void 0}:{...LU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),_U=$c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),zU="cell-text",FU=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=cb(pV);return o?sn.jsx(jU,{"data-testid":zU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):sn.jsx(jU,{"data-testid":zU,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})},$U=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=cb(Cb),l=cb(mU),c=cb(zb),u=cb(Mb),d=cb(hb),p=cb(nv),f=cb(pb),h=cb(wV)[t.pageColIdx],m=cb(Ub),g=D(null),b=D(null),v=(({column:e,columnWidth:t})=>{const n=cb(pV),{measureText:r}=Um({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:rH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(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?sn.jsx(aW,{height:nH,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(cW,{height:nH,"data-testid":"head-cell-sort-descending-icon"}),a=n?sn.jsx(MU,{align:t,dir:o,children:i}):void 0,s=r?sn.jsx(vH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:sn.jsx(PU,{height:nH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return sn.jsxs(bH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:uH(t,i,c),children:[S,sn.jsxs(gH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,sn.jsx(FU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?sn.jsxs(sn.Fragment,{children:[sn.jsx(wW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[yW.Sorting]:!0,[yW.Searching]:!0,[yW.Selections]:!0,[yW.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:RU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),sn.jsx(mH,{ref:b,direction:c,isPagination:i}),sn.jsx(mH,{ref:g,direction:c})]}):null]})},HU=F((e,t)=>sn.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:sn.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"})})),BU=(e,t)=>e.isCyclic&&t,VU=({column:e})=>{const t=cb(pV),n=cb(zb),r=cb(Ub),o=w.useRef(null),[i,a]=w.useState(!1),s=qV({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return sn.jsxs(sn.Fragment,{children:[sn.jsx(xH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:sn.jsx(HU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),sn.jsx(eW,{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:yz,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},WU=e=>e.isLocked,UU=({column:e})=>{const t=cb(pb),n=cb(Cb),r=cb(pV);return sn.jsx(xH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,onClick:r=>{r.stopPropagation(),(async(e,t,n)=>{const r=nW(t??"$",n);let o;try{const t=await(e?.createSessionObject(r));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,n,e)},children:sn.jsx(PU,{height:16,"data-testid":"head-cell-lock-icon"})})},GU=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=cb(pV);return sn.jsx(xH,{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:sn.jsx(TV,{height:16})})},KU=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=cb(pb),s=cb(zb),l=cb(hb),c=cb(Mb),u=cb(Ub),d=cb(Cb),p=cb(nv),f=cb(mU);return sn.jsx(wW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[yW.Sorting]:!0,[yW.Searching]:!0,[yW.Selections]:!0,[yW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:RU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},YU=Jg();YU.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 XU=({ref:e,callback:t})=>{const n=cb(YU),r=D(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])},JU=$c(Td)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),ZU=({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 XU({ref:t,callback:i}),sn.jsx(JU,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},QU=({children:e})=>e,eG=(e,t)=>!e.isLocked&&e.isDim&&t,tG=({column:e,open:t,setOpen:n})=>{const r=cb(pV),o=cb(Cb),i=cb(zb),a=cb(hb);cb(pb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),c=tW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return sn.jsx(xH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:sn.jsx(fW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},nG=F((e,t)=>sn.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:sn.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"})})),rG=F((e,t)=>sn.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:sn.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"})})),oG=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?sn.jsx(rG,{height:nH,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(nG,{height:nH,"data-testid":"head-cell-sort-descending-icon"});return n?sn.jsx(qU,{children:r}):void 0},iG=0,aG=1,sG=2,lG=3,cG=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=cb(pV),c=cb(zb),{measureText:u}=Um(l.header),[d,p]=P(!1),f=D(null),h=D(null),m=D(null),g="number"==typeof a&&a>cg.PixelsMin+18;return sn.jsxs(sn.Fragment,{children:[sn.jsxs(ZU,{children:[sn.jsx(QU,{prio:sG,minWidth:hH,children:WU(t)?sn.jsx(UU,{column:t}):null},"Lock"),sn.jsx(QU,{prio:aG,minWidth:hH,children:BU(t,s)?sn.jsx(VU,{column:t}):null},"Cyclic"),sn.jsx(QU,{ignore:!0,children:sn.jsx(oG,{column:t})},"Sort"),sn.jsx(QU,{minWidth:u(t.label)+8,children:sn.jsx(yH,{justifyContent:t.headTextAlign,children:sn.jsx(FU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),sn.jsx(QU,{prio:g?void 0:iG,minWidth:hH,children:d||eG(t,s)?sn.jsx(tG,{open:d,setOpen:p,column:t}):null},"Search"),sn.jsx(QU,{prio:lG,minWidth:hH,children:s?sn.jsx(GU,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?sn.jsxs(sn.Fragment,{children:[sn.jsx(mH,{ref:h,direction:c,isPagination:o}),sn.jsx(mH,{ref:f,direction:c}),sn.jsx(KU,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},uG=$c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),dG=()=>{},pG=({column:e,isPagination:t})=>{const n=cb(pV),r=cb(zb),o=cb(pU),i=cb(XB),a=!1,s=cb(Ib)?$U:cG;return sn.jsx(uG,{className:"sn-table-cell",applicableStyle:{...n.header,...hU(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pH(r,a,o),borderLeftWidth:fH(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:sn.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:dG})})},fG=({isPagination:e})=>{const t=cb(JB),[n,r]=P();gj({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?sn.jsx(GN,{children:sn.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:sn.jsx(pG,{column:o,isPagination:e})})}):null},hG=JR(Jg(async e=>{e(vb);const t=e(Gb);return t?.getEffectiveProperties()}),e=>e),mG=Jg(e=>e(hG)?.qHyperCubeDef),gG=[QL.configure({activationConstraints:[new YL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],bG=xN.plugins.filter(e=>e!==AO),vG=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},yG=(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=Wz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.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:Uz({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.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=[vG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),vG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),vG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),vG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},xG=({children:e})=>{const t=cb(Gb),n=cb(mG),r=cb(JB);return sn.jsx(VN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&yG(t,n,r,o,i)},sensors:gG,plugins:bG,children:e})};function SG(e,t){const n=D(!1);q(()=>{n.current?e():n.current=!0},t)}const wG=(e,t)=>{const n=cb(Wb);q(()=>{const r=e.current;if(!r)return;const o=e=>{kU(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},CG=Jg(H$),EG=iI(e=>Jg(t=>{const[n,r]=t(CG);return 0===n&&r===e})),RG=()=>{const e=cb(fb);q(()=>{e.notifyIsDoneRendering()})};var IG={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 AG=Jg(e=>{const t=e(nv),n=e(Zb);let r;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(IG).forEach(t=>{e.add(IG[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),a=n.querySelector(`.${$$.First}`),s=n.querySelector(`.${$$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===$$.First?(l=s,r=$$.Second):(l=a,r=$$.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),kG=(e,t)=>{const n=cb(AG),r=cb(Zb),o=cb(tV),i=cb(eV),a=cb(QB),s=cb(XB),[l,c]=db(CG),u=cb(kb),d=cb(Wb);SG(()=>{const t=((e,t,n=!1)=>{const r=[vU(t),e[1]];return n?r:H$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(CU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=xU(t,e);n.current?(EU(s),n.current=!1):SU(s),r&&(a({keys:[s?.textContent??""]}),QW(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},PG=e=>{Lm(e),eU(e)&&gg(e.currentTarget)},DG=e=>{oU(e.evt)&&(Lm(e.evt),IU(e))},MG=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!oU(t))return;Lm(t);const i=((e,t)=>[e.pageRowIdx+vU(t),e.pageColIdx])(r,n),a=yU(o,n),{nextCell:s,nextCellCoord:l}=IU({...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:z$.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):QW(o,a,i)})({...e,nextCell:s})},TG=e=>{const{evt:t}=e;tU(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Lm(e);const a=Math.ceil(t/n)-1;e.key===sg.Right&&r<a?(o(),i(r+1)):e.key===sg.Left&&r>0&&(o(),i(r-1))})(e):t.key===sg.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Lm(e),t.blur?.(!0))})(e):nU(t.key)&&Lm(t)},qG=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(_$.Disabled))return void Lm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case sg.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Lm(e),t.isSelectable&&n&&r({type:z$.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case sg.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Lm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case sg.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Lm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case sg.C:PG(t);break;case sg.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Lm(e),Om(e.currentTarget,t,e.shiftKey))})(r);break;default:MG(r)}},OG=e=>{const t=cb(SH),n=ub(wH),r=ub(CH),o=cb(j$),i=D();XU({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()}}),q(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},LG=$c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),NG=$c(tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),jG=$c(zh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),_G=()=>sn.jsxs(sn.Fragment,{children:[sn.jsx(LG,{className:$$.First,"data-testid":$$.First,"aria-live":"polite","aria-atomic":"true"}),sn.jsx(LG,{className:$$.Second,"data-testid":$$.Second,"aria-live":"polite","aria-atomic":"true"})]}),zG=e=>{const t=D(new Map),n=D(null);q(()=>{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])},FG=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),$G=()=>zG(FG),HG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(Pb),r=cb(Wb),o=ub(uU);q(()=>{const i=()=>{o({type:z$.Reset})},a=()=>{o({type:z$.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])},BG=e=>{e.stopPropagation()},VG=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:BG,color:km.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),WG=({href:e,text:t,interactions:n,color:r})=>sn.jsx(Zp,{...VG({href:e,text:t,interactions:n,color:r}),children:t}),UG=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),GG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),KG="qDimensionInfo/0",YG="qMeasureInfo/0",XG="x",JG="y",ZG=e=>({key:"bars",type:"box",data:{extract:{field:KG,props:{start:0,end:{field:YG}}}},settings:{major:{scale:XG},minor:{scale:JG},box:{maxWidthPx:8,fill:{fn:e}}}}),QG=e=>({key:"p",type:"point",data:{extract:{field:KG,props:{y:{field:YG}}}},settings:{x:{scale:XG},y:{scale:JG},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),eK=({qNum:e})=>void 0===e?0:Math.sign(e),tK=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Tm(e,t?.negative,n),a=Tm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:KG,props:{start:0,end:{field:YG,value:eK}}}},settings:{major:{scale:XG},minor:{scale:JG},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}}}}},nK=(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=Tm(e,t?.main,o),l=Tm(e,t?.max,s),c=Tm(e,t?.min,s),u=Tm(e,t?.first,s),d=Tm(e,t?.last,s);return e=>{const t=JG in e.datum?JG:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[ZG(a)];case"dots":return[QG(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:KG,props:{v:{field:YG}}}},settings:{coordinates:{major:{scale:XG},minor:{scale:JG,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Tm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,QG(a)]:[t]}case"posNeg":return[tK(e,r)];default:return[]}},rK=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"}),oK=(e,t,n,r)=>({y:{data:{field:YG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:KG}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),iK=K();iK.use(G),iK.renderer.prio(["canvas"]);const aK={resolve:()=>{},promise:{}},sK=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=D(e.isDownloadedAsPDForImage?_t():aK);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;c();n.current=UG(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return iK.chart({element:e,data:{type:"q",key:"qHyperCube",data:rK(s)},settings:{scales:oK(a,l,c,i),components:nK(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,c,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&GG(n.current),n.current=null,l()},[n,l])}},lK=e=>{const t=D(null),n=D(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(GG(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=UG(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},cK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),c=D(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=sK({element:s,chart:l,requestId:c,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]);q(()=>{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:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{q(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=lK(t);q(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},uK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=cK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return sn.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},dK=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}`},pK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},fK=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=cb(zb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=sn.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:pK(s),objectPosition:dK(l),overflow:"hidden"}});return r?sn.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?sH(o,e):void 0},children:u}):u},hK=F((e,t)=>sn.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:sn.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),mK=F((e,t)=>sn.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:sn.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"})})),gK=F((e,t)=>sn.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:[sn.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"}),sn.jsx("use",{fillRule:"evenodd"})]})),bK=F((e,t)=>sn.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:sn.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"})})),vK=F((e,t)=>sn.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:sn.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"})})),yK=F((e,t)=>sn.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:sn.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"})})),xK=F((e,t)=>sn.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:sn.jsx("path",{d:"M2 7.5h12v1H2z"})})),SK=F((e,t)=>sn.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:sn.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"})})),wK=F((e,t)=>sn.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:sn.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"})})),CK=F((e,t)=>sn.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:sn.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"})})),EK=F((e,t)=>sn.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:sn.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"})})),RK={m:F((e,t)=>sn.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:sn.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":CK,R:rG,S:nG,T:F((e,t)=>sn.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:sn.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"})})),U:F((e,t)=>sn.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:sn.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"})})),P:wK,Q:yK,"è":F((e,t)=>sn.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:sn.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"})})),"¢":bK,"©":gK,"23F4":vK,2013:EK,"&":SK,add:hK,"minus-2":xK,dot:mK},IK=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&RK[t];return o&&sn.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:sn.jsx(o,{style:{height:e}})})},AK=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=cb(pV),o=cb(zb),i=cb(tv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=Q$(e,t,o,i),d=(e=>parseInt(e||nH,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?sn.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&IK({size:d,iconKey:f,color:p}),sn.jsx(FU,{isNumeric:!0,children:a}),"right"===h&&IK({size:d,iconKey:f,color:p})]}):IK({size:d,iconKey:f,color:p})},kK=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,PK=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=cb(pV),c=cb(mV),u=cb(fb),d=cb(vb),p=cb(tv),f=cb(zb),h=cb(Mb),m=cb(kb);if(t.representation.type===eF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===eF.Image)return sn.jsx(fK,{representation:t.representation,textStyle:n,maxImageHeight:kK(l,c,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==eF.Link||m||t.isNull||(g=sn.jsx(WG,{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!==eF.Indicator||Number.isNaN(b)?t.representation.type===eF.MiniChart&&t.representation.miniChart&&!t.isNull?sn.jsx(uK,{height:kK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):sn.jsx(FU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):sn.jsx(AK,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},DK=()=>sn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:sn.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),MK=$c("div")({"& path":{stroke:"none !important"}}),TK=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==_$.Selected||n?e:sn.jsxs(_U,{children:[e,sn.jsx(MK,{children:sn.jsx(DK,{})})]}),qK=e=>{const t=function(){const e=WN(),t=AN(()=>null==e?void 0:e.dragOperation.source,[e]),n=AN(()=>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},OK=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:z$.SelectMultiEnd})};n({type:z$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:z$.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:z$.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),LK=e=>{const t=cb(nV),n=cb(XB),r=cb(AG),o=cb(Zb),i=cb(zb),a=ub(CG),s=ub(uU),l=cb(Wb),c=cb(Ob),u=cb(Pb),d=d=>{qG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===sg.Shift&&t({type:z$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;AU([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=OK(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},NK=e=>{q(()=>()=>{dU.remove(e)},[e])},jK=(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},_K=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},zK=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return _K(t,e,r?"even":"odd")}return e},FK=(e,t)=>{const n=cb(pV),r=cb(dU(e)),o=cb(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");NK(e);let a=t.isDim?n.dimension.values:n.measure.values;a=zK(a,n,e),a=i?n.subTotalRow:a,a=jK(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:OH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===_$.Selected?{...e,...n}:t===_$.Disabled?{...e,background:`${eH}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},$K=$c(Uh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),HK=$c(fm,{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}}})),BK=$c(Jh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...iH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),VK=$c(Jh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...iH,...e,fontWeight:rH,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})),WK=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=cb(zb),a=cb(Mb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=LK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=FK(e,t),m=qK(t.id);return sn.jsx(BK,{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} ${ag}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:sn.jsx(TK,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:sn.jsx(PK,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:dH(i,e.align)})})})},UK=Jg(0),GK=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=cb(pV),i=cb(qb),a=cb(UK),s=qK(e.id);return sn.jsx(VK,{totalsStyle:{...o.totalRow,...hU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ag}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:sn.jsx(FU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},KK=()=>{const e=cb(XB),t=cb(JB),n=cb(QB),r=cb(Zb),o=cb(Tb),i=cb(zb),a=ub(CG),s=cb(kb),l=cb(Wb);return sn.jsx(fm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return sn.jsx(GK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case sg.C:PG(n);break;case sg.Space:n.preventDefault();break;default:DG(e)}else Lm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{AU(u,r,a,l)}},t.id)})})};var YK=z(KK);const XK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(QB),r=cb(XB),o=cb(JB),i=cb(pV),a=cb(gV),s=cb(bV),l=cb(vb),c=!!DH(l)?.content?.hoverEffect;HG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return zG(t)})(t),d=$G();return sn.jsxs($K,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?sn.jsx(YK,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return sn.jsx(HK,{hoverColors:i.grid.hoverColors,hover:c,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 sn.jsx(WK,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?sn.jsx(YK,{}):void 0]})};var JK=z(XK);const ZK=(e,t)=>!!e?.skipHeader||!!t.hideHeader,QK=Jg(e=>{const t=e(vb),n=e(Ub);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)}}),eY=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=cb(QK),s=cb(zb),l=cb(Tb),c=cb(nv),[u,d]=db(wV);if(!l)return null;return sn.jsx(MV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{wU(e);const t=e.closest(".sn-table-cell");EU(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},tY=e=>e.target?.getAttribute("class")?.includes(lg),nY=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=cb(mU),i=cb(SH);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||tY(t)||i||r(!0)},toggleSortOrder:n=>{e&&!tY(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var rY=class extends XM{constructor(e,t){super(e,t),this.boundingRectangle=QA(null),this.destroy=ck(()=>{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=uT(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,c=o.center.y-a/2,u=function(e,t,n){const r=Mj({},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 PP(l,c,s,a),n,r);return u}};rY.configure=hD(rY);const oY=({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/kP.distance(n.shape.center,s),type:EM.Collision,priority:CM.Normal}:null},iY=[rY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],aY=(e,t)=>{const n=cb(zb),r=cb(gb),o=!cb(Nb)||!r("TLV-1531_DRAG_AND_DROP_COLUMNS");return Y_({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:iY,data:e,plugins:e=>[...e,yL.configure({feedback:"clone"})],collisionDetector:oY({invert:"rtl"===n})})},sY=({column:e,columnIndex:t,columnsLength:n})=>{const r=cb(pV),o=cb(Zb),i=cb(zb),a=cb(Mb),s=cb(JB),l=cb(XB),c=cb(wV)[t],u=ub(CG),d=cb(EG(t)),p=cb(Nb),f=cb(Wb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=nY({isInteractionEnabled:p,column:e}),v=ub(SH),{ref:y,isDragging:x}=aY(e,t),S=qK(e.id),w=cb(Ib),C=w?$U:cG,E=e.isActivelySorted?F$[e.sortDirection]:void 0,R=h?ig:void 0,I=h?"true":void 0,A=t===n-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return sn.jsxs(DU,{"data-dragging":x,ref:y,headerStyle:{...r.header,...hU(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 ${ag}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case sg.C:PG(n);break;case sg.Enter:case sg.Space:r?.(n);break;default:DG(e)}else Lm(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&AU(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":I,"aria-haspopup":"true",children:[sn.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),sn.jsx(eY,{column:e,isLastColumn:A,setIsAdjustingWidth:v})]},e.id)},lY=()=>{const e=cb(JB),t=cb(pV),n=cb(vb),r=cb($b),o=ub(UK),i=cb(wV),a=D(null),s=ZK(r,n);return q(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),sn.jsx(sm,{style:{visibility:s?"collapse":void 0},children:sn.jsx(OU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>sn.jsx(sY,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var cY=z(lY);var uY=z(()=>{const e=cb(AG),[t,n]=db($B),{page:r,rowsPerPage:o}=t,i=cb(Fb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=cb(YB),p=cb(pV),f=cb(EB),h=cb(vb),m=cb(tv),g=cb(Jb),b=cb(Zb),v=cb($b),y=cb(zb),x=cb(Mb),S=cb(nv),w=cb(pU),C=ub(uU),E=cb(kb),R=cb(Wb),I=D(!1),A=D(null),k=D(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,M=jb(h,v),T=M?f.scrollLeft??0:0,O=M?f.rowPartialHeight??0:0,N=L(()=>{I.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=cb(zb),n=cb(EB);q(()=>{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])})(A),wG(k,I),(()=>{const e=cb(Zb),t=cb(Wb),n=cb(CG);Zm(()=>{const r=xU(e,n);t.active?EU(r):(r?.blur(),CU(e))},[t.active,e])})(),kG(I,r),q(()=>{const e=A.current;e&&(e.scrollLeft=T,e.scrollTop=O)},[t,s,T,O]),SG(()=>{C({type:z$.UpdatePageRows,payload:{pageRows:u}})},[u]),RG(),OG(A),sn.jsxs(xG,{children:[sn.jsxs(NU,{ref:k,dir:y,onKeyDown:e=>{TG({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[sn.jsx(_G,{}),sn.jsxs(NG,{ref:A,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[sn.jsxs(jG,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[sn.jsx(cY,{}),sn.jsx(JK,{updateShouldRefocus:N,tableWrapperRef:k})]}),sn.jsx(fU,{})]}),sn.jsx(JW,{footerContainer:i,pageInfo:t,paginationNeeded:c,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})]}),sn.jsx(fG,{isPagination:!0})]})});const dY=Jg(0),pY=Jg(e=>{const t=e(yb);return Math.min(LH,t)}),fY=Jg(e=>{const t=e(yb);return t===LH?0:Math.floor(t/LH)}),hY=Jg(e=>{const t=e(dY),n=e(fY);return Math.min(t,n)}),mY=Jg(e=>({page:e(hY),rowsPerPage:e(pY),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(fY);t(dY,Math.max(0,Math.min(n,r)))}),gY=Jg(null),bY=Jg(null),vY=Jg(e=>{const t=e(mY),n=e(yb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),yY=Jg(null),xY=Jg(null),SY=Jg(e=>e(XB).atTop?2:1),wY=Jg(e=>e(XB).atTop?1:e(SY)+e(vY)),CY=Jg(e=>yU(Boolean(e(kb)),e(XB))),EY=Jg(e=>({firstBodyRowIdx:e(SY),totalsRowIdx:e(wY),allowedRows:e(CY)})),RY=Jg(e=>({rootElement:e(Zb),totalsPosition:e(XB),rowCount:e(vY),colCount:e(ZB),columnWidths:e(wV)})),IY=Jg(e=>({scrollToCell:e(yY),scrollableContainerElement:e(xY)})),AY=Jg(e=>({keyboard:e(Wb),isInSelectionMode:e(kb),selectionsAPI:e(Pb),isSelectionsEnabled:e(Ob)})),kY=Jg(e=>({direction:e(zb),isInteractionEnabled:e(Nb),paginationNeeded:e(nV),announce:e(AG),shouldRefocusRef:e(gY)})),PY=10,DY=e=>e.atTop?2:1,MY=e=>{e.querySelectorAll(".sn-table-cell[tabindex='0']").forEach(e=>{e.setAttribute("tabIndex","-1")})},TY=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},qY=(e,[t,n],r,o)=>{const i=DY(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}"]`)},OY=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-DY(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),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})(qY(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)}},LY=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],NY=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],jY=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case sg.Down:case sg.Up:t=((e,t,n,r)=>e===sg.Down&&t<r?t+1:e===sg.Up&&t>n?t-1:t)(e.key,t,c,u);break;case sg.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?NY(e,t,n,0,o,i):LY(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case sg.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?LY(e,t,0,r,o,i):NY(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case sg.Home:l?t=Math.max(c,t-PY):(eU(e)&&(t=c),n=0);break;case sg.End:l?t=Math.min(u,t+PY):(eU(e)&&(t=u),n=d);break;case sg.PageDown:t=Math.min(u,t+PY);break;case sg.PageUp:if(l)t=Math.max(c,t-PY);else{const e=s?DY(s):1,n=t-e;t=n>0&&n<=PY?e:Math.max(c,t-PY)}}return[t,n]},_Y=[sg.Home,sg.End,sg.PageUp,sg.PageDown],zY=()=>{const e=D(!1),t=D(0),n=D(0),r=D(null),o=D(null),i=D(null),a=D(0),s=ub(CG),l=ub(uU),c=cb(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=cb(RY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=cb(EY),{scrollToCell:v,scrollableContainerElement:y}=cb(IY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=cb(AY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:A,shouldRefocusRef:P}=cb(kY),M=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]);q(()=>()=>{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=qY(u,e,d,p);if(i)return document.activeElement!==i&&TY(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)})},[u,d,p]),O=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(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=OY(v,u,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,u,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=OY(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=qY(u,n,d,p);i&&document.activeElement!==i&&TY(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,P,y]),z=L((e,t)=>{if(!oU(e))return;Lm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>DY(t)+e+(t.atBottom?1:0))(p,d),l=jY(e,t,i,f,E,g,d);MY(u),s(l);const[,c]=l,[,h]=t;return c!==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,M,c),P&&(P.current=!0),r.current=OY(v,u,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>_Y.includes(e))(e.key)&&O(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,P,T,j,M,O]),F=L(e=>{e.key===sg.Esc?x.enabled&&!S&&(Lm(e),x.blur?.(!0)):nU(e.key)&&Lm(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case sg.C:Lm(e),I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget);break;case sg.Enter:case sg.Space:if(!I)return void Lm(e);n?.(e);break;default:z(e,[0,t])}},[z,I]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case sg.Space:if(Lm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:z$.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case sg.Enter:if(Lm(t),e.current=!1,S){N(),s(H$),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(H$,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case sg.Esc:if(e.current=!1,S){Lm(t);const e=N();w?.cancel(),_(e,a)}break;case sg.C:Lm(t),I&&(t.ctrlKey||t.metaKey)&&gg(t.currentTarget);break;case sg.Tab:{const e=t.shiftKey||!A;x.enabled&&S&&e&&(Lm(t),Om(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===sg.Left||t.key===sg.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Lm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:z$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,A,I,N,_,s,v,y,T,P]),B=L(t=>{t.key===sg.Space&&(e.current=!1),t.key===sg.Shift&&l({type:z$.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Lm(e);else{if(e.key!==sg.Space)return e.key===sg.C?(Lm(e),void(I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=L(e=>{j(),n.current+=1;const t=n.current;MY(u),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&O(e,t)},()=>n.current===t)},[u,s,x,T,j,O]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:L((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:L(e=>{c&&W([b,e])},[W,b,c])}};var FY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $Y(e,t){return e===t||!(!FY(e)||!FY(t))}function HY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!$Y(e[n],t[n]))return!1;return!0}function BY(e,t){var n;void 0===t&&(t=HY);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 VY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function WY(e){cancelAnimationFrame(e.id)}function UY(e,t){var n=VY();var r={id:requestAnimationFrame(function o(){VY()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var GY=-1;function KY(e){if(void 0===e&&(e=!1),-1===GY||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),GY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return GY}var YY=null;function XY(e){if(void 0===e&&(e=!1),null===YY||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?YY="positive-descending":(t.scrollLeft=1,YY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),YY}return YY}var JY=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function ZY(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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,lu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:lu(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=BY(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=BY(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,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),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:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=BY(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,c=i;if("rtl"===t)switch(XY()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&WY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return QY(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=KY();void 0!==r&&(r=Math.max(0,Math.min(r,u-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?c(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(XY()){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&&WY(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?JY: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(),I=R[0],A=R[1],k=[];if(r>0&&g)for(var P=I;P<=A;P++)for(var D=w;D<=E;D++)k.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=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:Wn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:k,ref:l,style:{height:M,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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,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,c=l.horizontalScrollDirection,u=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=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?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,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);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 QY=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},eX=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},tX=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},nX=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 c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},rX=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?oX(e,t,n,i,0,r):iX(e,t,n,Math.max(0,i),r)},oX=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=nX(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},iX=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&nX(e,t,r,n).offset<o;)r+=a,a*=2;return oX(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},aX=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=nX(e,t,n,i),c="column"===e?tX(t,i):eX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},sX=ZY({getColumnOffset:function(e,t,n){return nX("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return rX("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=nX("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=nX("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:eX,getEstimatedTotalWidth:tX,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return aX("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return aX("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return nX("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return rX("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=nX("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=nX("row",e,c,r).size;return c},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}}),lX=function(e,t){return e};function cX(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,lu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:lu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=BY(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=BY(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,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[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;u[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=BY(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(XY()){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&&WY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return uX(e,t),u(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?KY():0:l.scrollHeight>l.clientHeight?KY():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(XY()){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&&WY(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?lX: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],I=[];if(c>0)for(var A=E;A<=R;A++)I.push(C(t,{data:u,key:p(A,u),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:I,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 c=a(this.props,l,this._instanceProps),u=s(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var uX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},dX=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 c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},pX=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=dX(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},fX=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&dX(e,n,t).offset<r;)n+=i,i*=2;return pX(e,t,Math.min(n,o-1),Math.floor(n/2),r)},hX=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},mX=cX({getItemOffset:function(e,t,n){return dX(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:hX,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=dX(e,t,o),p=hX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"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?pX(e,t,o,0,n):fX(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,c="horizontal"===o||"horizontal"===s?l:i,u=dX(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=dX(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 gX(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 bX=["style"],vX=["style"];function yX(e,t){var n=e.style,r=Un(e,bX),o=t.style,i=Un(t,vX);return!gX(n,o)&&!gX(r,i)}const xX=Jg(0),SX=Jg(0),wX=Jg(0),CX=Jg(e=>e(xX)+e(SX)),EX=Jg(e=>{const t=e(Jb),n=e(nV),r=t.height-(n?41:0);return{width:t.width,height:r}}),RX=Jg(e=>{const t=e(EX),n=e(wH),r=e(CH);return{width:t.width-r,height:t.height-n}}),IX=Jg(e=>{const t=e(RX),n=e(CX),r=e(wX);return Math.min(t.height-n,r)}),AX=Jg(-1),kX=iI(e=>Jg(t=>t(AX)===e)),PX=({style:e})=>sn.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var DX=w.memo(PX,yX);const MX=Jg(e=>{const t=e(RX),n=e(gV),r=e(CX),o=e(wX)+r,i=e(vY)*n+r;return o<2*t.height?o:i}),TX=Jg(e=>e(MX)<=e(EX).height),qX=()=>{},OX=e=>{e.preventDefault()};const LX=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=cb(kX(t)),h=ub(AX),m=cb(pV),g=cb(zb),b=cb(qb),v=cb(Nb),y=cb(pU),x=cb(gb),S=cb(TX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:I}=function(e){const t="object"==typeof e,n=cb(Ob),r=ub(uU),o=cb(dU(e));if(NK(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=OK(OX,e,r,qX);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),A=((e,t,n,r)=>{const o=D(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 XU({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=qK(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=zK(o,i,e);l=s?i.subTotalRow:l,l=jK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:OH(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==_$.Selected||s?r!==_$.Disabled||s?n?{...c,...i.grid.hoverColors}:c:{...c,color:n?i.grid.hoverColors?.color:c.color,background:`${eH}, ${n?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,I,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},D=u?n=>{u(n,t,e,w)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${I} ${ag}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:pH(g,w.isLastColumn,y),borderLeftWidth:fH(g,w.isLastColumn,y),justifyContent:lH(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:D,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:sn.jsx(TK,{cellSelectionState:I,hideTickIcon:!!w.isTotalRow,children:sn.jsx(PK,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return sn.jsx(DX,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var NX=z(LX,yX);const jX=JR(Jg(async e=>{const t=e(vb),n=e(Ub),r=e(mY).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(LH,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),_X=Jg(e=>{const t=e(vY),n=e(RX),r=e(gV);return Math.min(t,Math.ceil(n.height/r))}),zX=Jg(e=>{const t=e(wV),n=e(RX);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),FX=e=>{const t=D(e);return t.current=e,t},$X=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,HX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,BX=(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},VX=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},WX=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(HX);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&&jB(e,m),I=E||R?NB(m,e,a,C):e.qText,A=E?W$(I):V$(e),k=V$(e)&&!W$(e.qText??"");f[n]={id:Vz(),...e,align:qB(A,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:A,isDual:k,isNull:(!E||!A)&&jB(e,m),representation:CB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>I,direction:c,enabledFeatures:{[eF.Image]:!0,[eF.Indicator]:!0,[eF.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},UX=({gridState:e,setEstimatedCellHeight:t})=>{const n=cb(vb),r=cb(tv),o=cb(Ub),i=cb(mb),a=cb(zb),s=cb(mY),l=cb(jX),c=cb(JB),u=cb(vY),d=cb(_X),p=cb(zX),f=D([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return WX(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=P(()=>h(l??[]));Zm(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=D(new Set),r=D(new Set),o=D(new Set),i=FX(e),a=FX(t),s=k(()=>({enqueue:e=>{const t=$X(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach(e=>{o.current.delete($X(e))}),console.error("Failed to fetch pages",t)}finally{r.current.delete(e)}}},75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}}),[i,a]);return s})(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(VX(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(BX(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return q(()=>{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,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,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}},GX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},KX=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,YX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=cb(pV),i=cb(wV),{estimateLineCount:a}=Um(o.dimension.values),s=EH(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===eF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},XX=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=cb(EB);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])},JX=({isSnapshot:e,gridRef:t})=>{const n=cb(pV),r=cb(vY),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=cb(mV),s=cb(gV),l=cb(bV),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=cb(vb),r=cb(mY),o=cb(wV),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Zm(()=>{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]),Zm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=cb(gV),o=cb(bV);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!KX(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:GX(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:c,lineClamp:p,setCellHeight:h}),g=YX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=L(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return XX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},ZX=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);XU({ref:e,callback:n})};let QX=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const eJ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=cb(EB),o=cb(vb),i=cb(mY),a=cb(vY);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,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?QX.Down:r<t?QX.Up:QX.None,i=n>e?QX.Right:n<e?QX.Left:QX.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+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===QX.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===QX.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===QX.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===QX.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 tJ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},nJ=(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)},rJ={overflow:"hidden",willChange:"auto"},oJ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=zY(),i=cb(JB),a=cb(RX),s=ub(wX),l=cb(IX),c=cb(EB),u=cb(vb),d=cb(zb),p=cb(wV),f=cb(vY),h=cb(xY),m=ub(yY),g=D(null),b=D(null),v=D(null),y=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=D(0),S=!!DH(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=JX({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:A,loadColumns:P}=UX({gridState:y,setEstimatedCellHeight:C}),M=eJ({loadRows:A,loadColumns:P,gridState:y}),T=$G(),O=k(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[I,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=ub(uU),{shouldRefocusRef:n}=cb(kY),r=cb(Zb),o=cb(bY);q(()=>{t({type:z$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);HG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),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]),q(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),nJ(h,b.current)}),()=>{m(null)}),[h,m]),ZX(v,s),sn.jsx(sX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:rJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:O,onItemsRendered:M,itemKey:tJ,className:"sn-table-body",direction:d,children:NX})});var iJ=z(oJ);const aJ=({children:e})=>{const t=cb(RV),n=cb(MX);return sn.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},sJ=(e,t)=>{const n=D(null),r=cb(wV);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 XU({ref:n,callback:o}),n},lJ=$c("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}})),cJ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(pV),c=cb(zb),u=cb(Mb),d=cb(pU),p=ub(SH),f=cb(XB),h=cb(Nb),m=cb(wV)[e],g=cb(Wb),b=cb(EG(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=nY({isInteractionEnabled:h,column:v}),C=cb(Ib),E=sJ(e,i),R=r.length-1===e,I=C?$U:cG,{ref:A,isDragging:k}=aY(v,e),P=qK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return sn.jsxs(lJ,{"data-dragging":k,ref:A,className:`sn-table-cell ${ag}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...hU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pH(c,R,d),borderLeftWidth:fH(c,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:u,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:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[sn.jsx(I,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),sn.jsx(eY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},uJ=e=>{const[t,n]=P(new Map);Zm(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>KX(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>GX(t),[t]),setMeasuredCellHeight:r}},dJ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},pJ=e=>{const t=cb(tv),n=cb(vb),r=cb(mY),o=cb(wV);Zm(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},fJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},hJ=F((e,t)=>{const{columResizeHandler:n}=e,r=cb(JB),o=cb(RX),i=ub(xX),a=w.useRef(null),s=D(null),l=cb(fV),c=cb(vb),u=cb($b),d=cb(zb),p=cb(wV),{rowHeight:f,setMeasuredCellHeight:h}=uJ(r),m=ZK(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=zY();return dJ(t,a),pJ(a),ZX(s,i),sn.jsx(mX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...fJ,...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:cJ})});var mJ=z(hJ);const gJ=F((e,t)=>{const{children:n,onScroll:r}=e,o=cb(zb),i=cb(Lb),{width:a,height:s}=cb(EX),l=ub(xY),c=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return sn.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),bJ=({children:e})=>{const t=cb(zb),n=cb(RX);return sn.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})},vJ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(pV),c=cb(vb),u=cb(zb),d=cb(qb),p=cb(Nb),f=cb(pU),h=cb(TX),m=sJ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=qK(r[e].id),S=a?t=>{a(t,e)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${ag}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...hU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:pH(u,y,f),borderLeftWidth:fH(u,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:sn.jsx(FU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},yJ=F((e,t)=>{const{totals:n}=e,r=cb(JB),o=cb(RX),i=ub(SX),a=D(null),s=D(null),l=cb(hV),c=cb(zb),u=cb(vb),d=cb(wV),{rowHeight:p,setMeasuredCellHeight:f}=uJ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=zY();return dJ(t,a),pJ(a),ZX(s,i),sn.jsx(mX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:fJ,itemCount:u.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:c,children:vJ})});var xJ=z(yJ);const SJ=(e,t,n)=>{const r=cb(zb),o=cb(EB);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((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),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var wJ=z(()=>{const e=cb(XB),t=D(null),n=D(null),r=D(null),o=D(null),i=SJ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);RG(),(e=>{const t=cb(ZB),n=cb(mY),r=cb(tv),o=cb(vY);q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),OG(t);const s=sn.jsx(xJ,{ref:r,totals:e},"totals");return sn.jsxs(xG,{children:[sn.jsx(gJ,{ref:t,onScroll:i,children:sn.jsxs(aJ,{children:[sn.jsxs(bJ,{children:[sn.jsx(mJ,{ref:n,columResizeHandler:a}),e.atTop?s:null,sn.jsx(iJ,{ref:o}),e.atBottom?s:null]}),sn.jsx(fU,{})]})}),sn.jsx(fG,{isPagination:!1})]})});const CJ=()=>{const e=cb(vb),t=cb(Jb),n=cb(Mb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=cb(YB),s=cb(tv),l=cb(nv),c=cb(Wb),[u,d]=db(mY),p=D(null),f=D(!1),h=ub(gY),m=ub(bY);q(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=zY();return(()=>{const e=cb(Zb),{keyboard:t}=cb(AY),n=cb(CG),r=cb(XB),o=cb(vY),{scrollToCell:i}=cb(IY),{shouldRefocusRef:a}=cb(kY),s=D({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=D(null),c=D(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),q(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=qY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&TY(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=qY(u,n,r,o);TY(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=qY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),MY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),wG(p,f),sn.jsxs(NU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[sn.jsx(_G,{}),sn.jsx(wJ,{}),sn.jsx(JW,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var EJ=z(CJ);const RJ=e=>{const t=e.get(Ub),n=e.get(Bb),r=e.get(bb),o=e.get(zb);a(()=>{r&&t&&(n?function(e){const t=e.get(zb),n=e.get(ev),r=AV(t);n.render(sn.jsx(Di,{stylisPlugins:"rtl"===t?[O$]:void 0,children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(IV,{children:sn.jsx(uY,{})})})})}))}(e):function(e){const t=e.get(zb),n=e.get(ev),r=AV(t);n.render(sn.jsx(w.StrictMode,{children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(IV,{children:sn.jsx(EJ,{})})})})}))}(e))},[r,n,e,t,o])};function IJ(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"),c={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((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,c),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,c),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,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const AJ=(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]}},kJ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const PJ=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||_B.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},DJ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=PB(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=IJ(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:PJ(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:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=AJ(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)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(kJ(h,m,g)?d:d+1)+u;let v=p+u;const y=AJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(kJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:PJ(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},MJ=({store:e})=>{const t=e.get(vb),n=e.get(Ub),r=e.get(Zb),o=e.get(Xb),i=e.get($b),a=e.get(Bb);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(EB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=DJ(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:c,scrollLeft:u,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:()=>DJ(t,e.get(EB),r,i,a)}),[t,e,r,a])},TJ={version:JSON.stringify("6.40.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:[]};var qJ=e=>({properties:{initial:TJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>Cv({...e}),exportProperties:bv,exploration:Oz(e)});const OJ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),LJ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});
121
+ */var JF=(YF||(YF=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])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+n+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+n+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+n+"|"+u+")*?",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"),I=new RegExp("("+c+v+"[^;}]+;?)","gi"),A=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(: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"%"===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(I,"`NOFLIP_SINGLE`"),a=new r(A,"`NOFLIP_CLASS`"),s=new r(R,t);return n=s.tokenize(a.tokenize(i.tokenize(n.replace("`","%60")))),o.transformDirInUrl&&(n=n.replace(O,"$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(q,"$1left").replace(w,"right")),n=n.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$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)}(XF,XF.exports)),XF.exports),ZF=en(JF),QF="comm",e$="rule",t$="decl",n$=Math.abs,r$=String.fromCharCode;function o$(e){return e.trim()}function i$(e,t,n){return e.replace(t,n)}function a$(e,t){return 0|e.charCodeAt(t)}function s$(e,t,n){return e.slice(t,n)}function l$(e){return e.length}function c$(e,t){return t.push(e),e}var u$=1,d$=1,p$=0,f$=0,h$=0,m$="";function g$(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:u$,column:d$,length:a,return:"",siblings:s}}function b$(){return h$=f$>0?a$(m$,--f$):0,d$--,10===h$&&(d$=1,u$--),h$}function v$(){return h$=f$<p$?a$(m$,f$++):0,d$++,10===h$&&(d$=1,u$++),h$}function y$(){return a$(m$,f$)}function x$(){return f$}function S$(e,t){return s$(m$,e,t)}function w$(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 C$(e){return o$(S$(f$-1,I$(91===e?e+2:40===e?e+1:e)))}function E$(e){for(;(h$=y$())&&h$<33;)v$();return w$(e)>2||w$(h$)>3?"":" "}function R$(e,t){for(;--t&&v$()&&!(h$<48||h$>102||h$>57&&h$<65||h$>70&&h$<97););return S$(e,x$()+(t<6&&32==y$()&&32==v$()))}function I$(e){for(;v$();)switch(h$){case e:return f$;case 34:case 39:34!==e&&39!==e&&I$(h$);break;case 40:41===e&&I$(e);break;case 92:v$()}return f$}function A$(e,t){for(;v$()&&e+h$!==57&&(e+h$!==84||47!==y$()););return"/*"+S$(t,f$-1)+"*"+r$(47===e?e:v$())}function k$(e){for(;!w$(y$());)v$();return S$(e,f$)}function P$(e){return function(e){return m$="",e}(D$("",null,null,null,[""],e=function(e){return u$=d$=1,p$=l$(m$=e),f$=0,[]}(e),0,[0],e))}function D$(e,t,n,r,o,i,a,s,l){for(var c=0,u=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=v$()){case 40:108!=h&&58==a$(E,d-1)?(v++,E+="("):E+=C$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=C$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=r$(y);break}E+=E$(h);break;case 92:E+=R$(x$()-1,7);continue;case 47:switch(y$()){case 42:case 47:c$(T$(A$(v$(),x$()),t,n,l),l),5!=w$(h||1)&&5!=w$(y$()||1)||!l$(E)||" "===s$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=l$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=r$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=i$(E,/\f/g,"")),f>0&&(l$(E)-d||0===m)&&c$(f>32?q$(E+";",r,n,d-1,l):q$(i$(E," ","")+";",r,n,d-2,l),l);break;case 59:E+=";";default:if(c$(C=M$(E,t,n,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)D$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===a$(E,3))break;case 108:if(97===a$(E,2))break;default:u=0;case 100:case 109:case 115:}u?D$(e,C,C,r&&c$(M$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,r?S:w):D$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+l$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==b$())continue;switch(E+=r$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(l$(E)-1)*b,b=1;break;case 64:45===y$()&&(E+=C$(v$())),p=y$(),u=d=l$(x=E+=k$(x$())),y++;break;case 45:45===h&&2==l$(E)&&(m=0)}}return i}function M$(e,t,n,r,o,i,a,s,l,c,u,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=s$(e,p+1,p=n$(g=a[m])),x=e;v<h;++v)(x=o$(g>0?f[v]+" "+y:i$(y,/&\f/g,f[v])))&&(l[b++]=x);return g$(e,t,n,0===o?e$:s,l,c,u,d)}function T$(e,t,n,r){return g$(e,t,n,QF,r$(h$),s$(e,2,-2),0,r)}function q$(e,t,n,r,o){return g$(e,t,n,t$,s$(e,0,r),s$(e,r+1,-1),r,o)}function O$(e,t,n){switch(e.type){case"@import":case t$:case QF:return e.return=e.return||e.value;case e$:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===QF&&(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),O$);return l$(r)?e.return=e.value+"{"+r+"}":""}function L$(e,t,n,r){if("@keyframes"===e.type||"@supports"===e.type||e.type===e$&&(!e.parent||"@media"===e.parent.type||e.parent.type===e$)){var o=ZF.transform(O$(e));e.children=o?P$(o)[0].children:[],e.return=""}}Object.defineProperty(L$,"name",{value:"stylisRTLPlugin"});const N$=sA(({options:e,...t})=>Jg(Wm(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 j${#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 _$=Jg(()=>new j$);let z$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),F$=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}({}),$$=function(e){return e.A="ascending",e.D="descending",e}({}),H$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const B$=[0,0],V$=e=>"number"==typeof e&&!Number.isNaN(+e),W$=e=>V$(e.qNum),U$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),G$=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),K$=(e,t,n)=>{const r=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return n.getColorPickerColor(r)},Y$=(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,c=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-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/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)},X$=(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:G$(t,e.value)}))),e})({...e},t),o=r.paletteColors||r.localPaletteColors;return o&&(r.localPaletteColors=o.concat().map((e,t)=>({color:K$(r,t,n)}))),r},J$=(e,t,n,r)=>{const o=X$(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=Y$(e,a,t);break}r=i}return n})(o,t);return a},Z$=(e,t)=>{const n=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),r=n.some(e=>!V$(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||!V$(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)},Q$=(e,t)=>{const{limits:n}=e.segments;if(!n)return;const r=((e,t)=>{const{min:n,max:r}=Z$(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||!V$(t))return 0;let a=n&&V$(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}},eH=(e,t,n,r)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=Q$(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 K$(o,n.limitPaletteColorIndex,r);const a=G$(n.limitRange,t);return J$(o,a,n.limitRange,r)})(o,t,i,r),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===n&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},tH=(Rm().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)"),nH=4/3,rH="12px",oH="600",iH="Source Sans Pro, sans-serif",aH={height:"auto",fontSize:rH,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"}},sH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:oH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},lH=(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,cH=(e,t)=>e.representation.type===tF.Image&&"fitHeight"===e.representation.imageSize?lH(t,e.representation):e.align,uH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",dH=(e,t,n)=>{if(!t&&"rtl"===n){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},pH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,fH=(e,t,n)=>"rtl"===e||t&&!n?"0px":"1px",hH=(e,t,n)=>"rtl"===e?t&&!n?"0px":"1px":"0px",mH=24,gH=$c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),bH=$c(Td,{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?uH(e,r):void 0})),vH=$c(Td,{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},[`& .${rg}`]:{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"},[`& .${rg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),yH=$c(Td,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),xH=$c(Td,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),SH=$c(Hu,{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})),wH=Jg(),CH=Jg(0),EH=Jg(0),RH=e=>parseInt(e??aH.fontSize,10)*nH,IH=4/3,AH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function kH(e,t,n={index:-1}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const PH=(e,t)=>e?{borderBottomColor:km.DARK_MODE_BORDER,borderRightColor:km.DARK_MODE_BORDER,borderLeftColor:km.DARK_MODE_BORDER,borderTopColor:km.DARK_MODE_BORDER}:{borderLeftColor:km.BORDER_MEDIUM,borderRightColor:km.BORDER_MEDIUM,borderTopColor:km.BORDER_HEAVY,borderBottomColor:t?km.BORDER_HEAVY:km.BORDER_LIGHT},DH=(e,t,n)=>{if(e&&t&&n){const r=(e=>parseInt(e,10)*IH+8+1)(e);return r*(t+2)<n.clientHeight-40?"1px":"0px"}return"0px"},MH=e=>e.components?.find(e=>"theme"===e.key),TH=(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:AH(n?.fontColor)?kH(km.TEXT,t,n?.fontColor):i||km.TEXT,fontSize:n?.fontSize&&`${n.fontSize}px`||a,padding:n&&"padding"in n?n.padding:void 0,...PH(t.background.isDark,r)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function qH(e,t,n){const r=MH(e)?.header,o=TH("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=Mm(o.background??km.WHITE,dg),o.activeBackground=Mm(o.background??km.WHITE,pg),o}const OH=(e,t)=>{const n=e.toLowerCase().match(/<[^>]+>/g)??[];return n.forEach(e=>(e=>e in sH)(e)&&Object.assign(t,sH[e])),t};function LH(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&&qm(i);a&&(r[n[t]]=a),o=i?OH(i,o):o}),r.cellBackgroundColor&&!r.cellForegroundColor&&(r.cellForegroundColor=Pm(r.cellBackgroundColor)),{...e,...r,color:r.cellForegroundColor||e.color,background:r.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const NH=25e4,jH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,_H=5e6,zH=5e5;const FH={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:$H(e),value:$H(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:n}}(r,o,i))}),t}};function $H(e){try{return decodeURIComponent(e)}catch{return e}}function HH(e){if(!(this instanceof HH))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:()=>FH.fromSearchString(t.search)}})}function BH(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")}HH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},HH.encodeSearchParams=function(e){let t,n="";for(let r=0;r<e.length;r++)t=e[r],n+=0===r?"?":"&",n+=BH(t.key),t.value?n+=`=${BH(t.value)}`:n+=t.useEqualSign?"=":"";return n};var VH=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}},WH=class{decode(e){let t="";const n=new VH(e);let r;for(;n.hasNext();)r=this.decodeCharacter(n),t+=null!=r?r:n.next();return t}decodeCharacter(e){return e.next()}};const UH=e=>e>=0&&e<=1114111,GH=e=>e.match(/[\s]/);var KH=class extends WH{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&&!GH(o));r++){if("NaN"===parseInt(o,16)){e.pushback(o);break}n+=o}const a=parseInt(n,16);return UH(a)?String.fromCharCode(a):"�"}},YH=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}},XH=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 YH.newInstanceIfNeeded(e,this._value);const n=this.getNextNode(e.charAt(t));if(!n)return YH.newInstanceIfNeeded(e,t,this._value);const r=n.getLongestMatch(e,t+1);return r||YH.newInstanceIfNeeded(e,t,this._value)}},JH=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 XH);const n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const ZH=(()=>{const e=[],t=[],n=new JH;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 QH=class extends WH{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,ZH.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();const i=ZH.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)&&UH(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)&&UH(r)?String.fromCharCode(r):null}},eB=class extends WH{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),UH(i))?String.fromCharCode(i):(e.reset(),null)}};let tB;"undefined"!=typeof document&&(tB=document.createElement("div"));const nB=Array.prototype.indexOf,rB=[",",".","_"," "],oB=[",",".","-","_"," "],iB={width:["%"],height:["%"]},aB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aB.image,"background-color":aB.color,"border-color":aB.color,"border-image":aB.image,color:aB.color,icon:aB.image,"list-style-image":aB.image,"outline-color":aB.color},lB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function cB(e,t,n){let r;if(t){if(nB)return nB.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 uB(e){if(null==e)return"";let t="";const n=document.createTextNode(e);return tB.appendChild(n),t=tB.innerHTML,tB.removeChild(n),t}function dB(e,t,n){let r,o,i,a,s,l,c,u,d;for(e=fB(e).toLowerCase(),t=fB(t),i=0;i<lB.attr_name.length;i++)if(e.match(lB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<lB.attr_val.length;i++)if(t.toLowerCase().match(lB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(r=iB[e],r||(r=oB),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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&cB(c,r)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return n||(o+='"'),o}function pB(e,t,n){let r,o,i,a,s,l,c,u,d,p;if(e=fB(e).toLowerCase(),t=fB(t),cB(e,lB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(r=0;r<lB.css_val.length;r++)if(t.toLowerCase().indexOf(lB.css_val[r])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=sB[e],o||(o=aB.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++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&cB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function fB(e,t){let n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;const s=[new QH,new eB,new KH];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 hB=[];for(let e=0;e<255;e++)hB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const mB={html:e=>uB(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]=pB(t,n[t],!0),i+=pB(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]=dB(e,t[e],!0),o+=dB(e,t[e],!0),r[e]=n[e]);return e.map?r:o}};function gB(e,t){throw new Error(t)}var bB={canonicalize:fB,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?mB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gB(this,"Invalid parameter type"),mB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gB(this,"Invalid parameter type"),mB.attr(e)):void gB(this,"Invalid parameter type")},encodeForAttr:dB,encodeForAttr2:function(e){return dB("nonsens",e,!0)},encodeForCSS:pB,encodeForHref:function(e){fB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new HH(e),n=HH.encodeAuthorityAndPath(t.authorityAndPath),r=t.searchParams;e=n+HH.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=rB),s="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),cB(o,t)>=0||null==hB[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:uB,encodeForURL:function(e,t){let n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=fB(t).toLowerCase():gB(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=zH,maxByteSizeImage:r=_H}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,n,r]=jH.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 vB=(e,t)=>t.qAttrExps?.qValues?.[e],yB=(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"}}},xB=({text:e,url:t,imageSize:n,imagePosition:r,labelStructure:o,imageBox:i,direction:a})=>!r||t&&(t.toLowerCase().includes("javascript:")||!bB.isSafeDataURL(t))?{type:tF.Text,url:void 0,text:e,labelStructure:o}:{type:tF.Image,url:t||"",text:e,imageSize:n,resolvedImagePosition:yB(r,a),labelStructure:o,imageBox:i},SB=(e,t,n,r)=>{if(!e.qMiniChart||!t?.miniChart||!n)return{type:tF.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:tF.MiniChart,text:r,miniChart:a}},wB=(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===nF.Attribute?void 0:n?.urlLabel},CB=({labelStructure:e,text:t,url:n})=>{try{if(!n)throw Error("Invalid url");return{type:tF.Link,url:bB.encodeForHref(n),text:t,labelStructure:e}}catch{return{type:tF.Text,url:void 0,text:t,labelStructure:e}}},EB=({cell:e,representationProperties:t,attrExprInfoIndex:n,env:r,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=rF(t),d=s(e);return u===tF.Image&&c[tF.Image]&&!r.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,n,r,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=vB(n.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),xB({text:r,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:r;if(-1===n.imageLabel)return xB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=vB(n.imageLabel??-1,e)?.qText??r;return xB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:tF.Text,url:void 0,labelStructure:i,text:r}})(e,t,n,d,l,a):u===tF.Link?((e,t,n,r,o)=>{const{urlPosition:i}=t??{};if(i===nF.Attribute){const i=wB(n.url??-1,e,t);return CB({labelStructure:r,text:o||i||"",url:i})}if(i===nF.Dimension){const i=wB(n.urlLabel??-1,e,t)||o;return r&&(r.maskedValue=i),CB({text:i,labelStructure:r,url:r?.originalValue??o})}return{type:tF.Text,url:void 0,text:o,labelStructure:r}})(e,t,n,a,d):u===tF.Indicator&&c[tF.Indicator]&&!r.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,n)=>{const{indicator:r}=e??{};return{type:tF.Indicator,url:void 0,text:n,indicator:{applySegmentColors:r?.applySegmentColors,position:r?.position,showTextValues:r?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===tF.MiniChart&&c[tF.MiniChart]&&!r.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SB(e,t,i,d):{type:tF.Text,url:void 0,text:d,labelStructure:a}},RB=Jg(e=>{const t=e($b),n=e(Eb);return e(Rb),{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}}),IB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},n)=>(e[t]=n,e),{}),AB=({cId:e})=>e??Wz(),kB=1e4;function PB(e,t){return[...t].reverse().find(t=>t*e<=kB)||Math.floor(kB/e)}function DB(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 MB(e,t,n,r){return t?0===n?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(r)?.qText??""}function TB(e,t){const n=e.qHyperCube.qGrandTotalRow.at(t);return V$(n?.qNum)}function qB(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 OB=(e,t,n,r)=>"auto"!==t?t:r||"rtl"!==n?e?"right":"left":e?"left":"right",LB=(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?Mm(s,dg):void 0,c=s?Mm(s,pg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Pm(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const NB=(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:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===fg.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!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:I,textAlign:A,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:ug.Auto},selectionColIdx:S,isActivelySorted:g,id:AB(h),label:I??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:IB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:MB(e,f,c,d??-1),...!f&&{isTotalNumeric:TB(e,d??-1)},...qB(A,b,f,n,r),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?LB(O,n):void 0}}(e,o,t,n,r))},jB=(e,t,n,r)=>e?(r?n.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":n.nullValueRepresentation?.text??t.qText??"-",_B=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,zB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},FB=Jg(e=>{const t=e($B),n=e(vb),r=e(RB),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>kB?{...t,rowsPerPage:PB(l,t.rowsPerPageOptions),page:0}:t}),$B=Jg(zB),HB=Jg(e=>{const t=e(vb),n=e($b),r=e(RB);return jb(t,n)?{page:r.page||zB.page,rowsPerPage:r.rowsPerPage||zB.rowsPerPage,rowsPerPageOptions:zB.rowsPerPageOptions}:e(FB)},(e,t,n)=>{t($B,e=>({...e,...n}))}),BB=!0,VB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,WB=Jg(async e=>{const t=e(vb),n=e($b),r=e(zb),{page:o,rowsPerPage:i}=e(HB),a=e(RB),s=e(Ub),l=e(mb),c=e(xb),u=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=DB(t,n),v=NB(t,BB,r,u),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});c||(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(VB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&_B(c,a.isDim),p=u||d?jB(a.isDim,c,t,y):c.qText,f=u?U$(p):W$(c),g=W$(c)&&!U$(c.qText??"");o[s]={id:Wz(),...c,align:OB(f,a.bodyTextAlign,r,BB),rowIdx:n+h,colIdx:a.colIdx,pageRowIdx:n,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i,isTotalRow:i,isLastRow:n===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&_B(c,a.isDim),representation:EB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:r,enabledFeatures:{[tF.Image]:!0,[tF.Indicator]:!0,[tF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),UB=JR(WB,e=>e),GB=Jg(e=>{const t=e(vb),n=e($b),r=e(Mb),o=e(zb),i=e(gb),a=NB(t,false,o,i),s=DB(t,n),l=t.qHyperCube.qSize.qcy,c=Math.min(NH,l),u=l>NH&&!!r.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),KB={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},YB=Jg(),XB=Jg(e=>{const t=e(Bb),n=e(YB);return n||(t?e(UB)??KB:e(GB))}),JB=Jg(e=>e(XB).totalsPosition),ZB=Jg(e=>e(XB).columns),QB=Jg(e=>e(ZB).length),eV=Jg(e=>e(XB).rows),tV=Jg(e=>e(XB).totalRowCount),nV=Jg(e=>e(XB).totalColumnCount),rV=Jg(e=>e(XB).paginationNeeded),oV=Jg(e=>{const t=e(Zb),n=e(tv),r=e(vb),o=e(JB),i=e(eV),a=o.atTop,s=function(e,t,n,r){const o=MH(e)?.content,i=TH("content",t,o);i.background=t.background.color;const a=DH(i.fontSize,n,r),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=AH(l)||!!u,p=AH(s)||!!c,f=d||p;let h;h=AH(s)?kH(km.HOVER,t,s):c||(d?"":km.HOVER);const m=f?kH(Pm(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(r,n,i.length,t),l=qH(r,n,!a),c=function(e,t,n){const r=MH(e)?.content,o=TH("content",t,r),{borderBottomColor:i,borderTopColor:a,background:s}=qH(e,t,n);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(r,n,a);return{body:s,head:l,totals:c}}),iV=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?"transparent":n}},aV=(e,t,n)=>{const{objectColorFromCSS:r,sheetColorFromCSS:o}=e.background,i=iV(e,t?.background),a=e.getStyle("","",n);return{backgroundColor:i||r||a,backgroundFromStyling:i,sheetColorFromCSS:o}},sV=(e,t,n,r=km.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=aV(e,t,n);return _m(i,o,a,r)??r},lV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return rH}},cV=e=>e?.some(e=>"italic"===e)?"italic":"normal",uV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?oH:"normal",dV=e=>!1===e?1:3,pV=e=>e?.some(e=>"underline"===e)?"underline":"none",fV=Jg(e=>{const t=e($b),n=e(Bb),r=e(tv),o=e(vb),i=e(oV),a=e(gb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=MH(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=n?km.WHITE:km.TRANSPARENT,v=sV(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??iH,fontSize:lV(s?.fontSize??r.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:cV(s?.fontStyle),fontWeight:uV(s?.fontStyle,oH),textDecoration:pV(s?.fontStyle),color:iV(r,s?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??km.TEXT,background:v},headerMenuHoverBackground:Mm(v,dg),headerMenuActiveBackground:Mm(v,pg),dimension:{values:{fontFamily:l?.fontFamily??r.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??iH,fontSize:lV(l?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:cV(l?.fontStyle),fontWeight:uV(l?.fontStyle,"normal"),textDecoration:pV(l?.fontStyle),color:iV(r,l?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??km.TEXT,background:aV(r,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??r.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??iH,fontSize:lV(c?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:cV(c?.fontStyle),fontWeight:uV(c?.fontStyle,"normal"),textDecoration:pV(c?.fontStyle),color:iV(r,c?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??km.TEXT,background:aV(r,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??km.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??r.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??iH,fontSize:lV(u?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:cV(u?.fontStyle),fontWeight:uV(u?.fontStyle,oH),textDecoration:pV(u?.fontStyle),color:iV(r,u?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??km.TEXT,background:sV(r,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??r.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??iH,fontSize:lV(d?.fontSize??m?.fontSize??r.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:cV(d?.fontStyle),fontWeight:uV(d?.fontStyle,oH),textDecoration:pV(d?.fontStyle),color:iV(r,d?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??km.TEXT,background:sV(r,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:cV(x?.fontStyle),fontWeight:uV(x?.fontStyle,"normal"),textDecoration:pV(x?.fontStyle),color:iV(r,x?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:iV(r,x?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:cV(p?.fontStyle),fontWeight:uV(p?.fontStyle,"normal"),textDecoration:pV(p?.fontStyle),color:iV(r,p?.fontColor)??iV(r,m?.fontColor)??r.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??km.TEXT,background:iV(r,p?.background)??r.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??km.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??dV(o.multiline?.wrapTextInCells),headerLineClamp:dV(o.multiline?.wrapTextInHeaders),border:iV(r,h?.border)??r.getStyle("object.straightTableV2","grid","borderColor")??(r.background.isDark?km.DARK_MODE_BORDER:km.BORDER_MEDIUM),divider:iV(r,h?.divider)??r.getStyle("object.straightTableV2.grid","","divider.borderColor")??km.BORDER_HEAVY,hoverColors:{color:iV(r,m?.hoverFontColor)??r.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:iV(r,m?.hoverColor)??r.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:iV(r,h?.zebraStripes?.color?.odd),background:iV(r,h?.zebraStripes?.background?.odd)},even:{color:iV(r,h?.zebraStripes?.color?.even),background:iV(r,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===iV(r,x?.background),overrideDimNullValueColor:void 0===iV(r,x?.fontColor),overrideMeasNullValueBackground:void 0===iV(r,p?.background),overrideMeasNullValueColor:void 0===iV(r,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Dm(r),contentStaticLineCount:y}}),hV=Jg(e=>{const t=e(fV);return Math.max(RH(t.header.fontSize)+8,32)}),mV=Jg(e=>{const t=e(fV),n=RH(t.totalRow.fontSize);return Math.max(n+9,24)}),gV=Jg(e=>{const t=e(fV),n=e(Sb),r=e(wb);return Math.max(n>0?RH(t.dimension.values.fontSize):0,r>0?RH(t.measure.values.fontSize):0)}),bV=Jg(e=>{const t=e(fV),n=e(gV),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),vV=Jg(e=>{const t=e(fV),n=RH(t.subTotalRow.fontSize),r=(t.contentStaticLineCount||1)*n;return Math.max(r+9,24)}),yV=(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:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{r[a]=Math.min(cg.PixelsMax,Math.max(cg.PixelsMin,f)),i-=r[a]};switch(s){case ug.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?cg.PixelsDefault:+e)(l),h();break;case ug.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?cg.PercentageDefault:+e)(c)/100*t,h();break;case ug.FitToContent:e.representation?.type===tF.Image?o.push(a):(f=n(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case ug.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(cg.AutoMinTable,e)})}return r},xV=Jg(e=>{const t=e(fV),n=e(XB).totalsPosition,r=e(Ib),{measureText:o}=e(N$({...t.header,fontWeight:oH})),{measureText:i}=e(N$({...t.totalRow,fontWeight:oH})),{estimateWidth:a}=e(N$(t.dimension.values)),{estimateWidth:s}=e(N$(t.measure.values)),l=n.atBottom||n.atTop;return(e,t,n,c,u,d,p)=>{let f;if(r){const t=4;let n=25;n+=t+24,c&&(n+=20+t),u&&(n+=20),f=o(e)+n}else{let t=9;t+=16,p&&(t+=mH),t+=mH,t+=mH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(n))}}),SV=Jg(null),wV=Jg(e=>{const t=e(XB),n=e(Jb).width,r=e(EH),o=e(xV);return yV(t.columns,n-r,o)}),CV=Jg(e=>e(SV)??e(wV),(e,t,n)=>{t(SV,n)}),EV=nI(e=>{const t=e(_$);!1===e(wH)&&t.emit("done-adjusting-column-width")}),RV=nI((e,t)=>{e(vb),t(SV,null)}),IV=Jg(e=>e(CV).reduce((e,t)=>e+t,0)),AV=({children:e})=>(cb(RV),cb(EV),e);function kV(e){const t=Rm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Sc({...t,direction:e})}const PV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},DV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},MV=$c("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":{...PV},"&::-moz-range-track":{...PV},"&::-ms-track":{...PV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...DV},"&::-moz-range-thumb":{...DV},"&::-ms-thumb":{...DV},"&: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"}})),TV=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=eg({translator:u.translator}),f=D({initWidth:e,columnWidth:e,initX:0}),h=n?0:1,m=r&&!c,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}};Zm(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,cg.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:ug.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=>{Lm(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=>{Lm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!r&&s?e=>{if(e.key===sg.Left||e.key===sg.Right){Lm(e);const t=5,n=e.key===sg.Left?t:-t,r="rtl"===d?n:-n;l?.(!0),y(f.current.columnWidth+r)}else e.key===sg.Space||e.key===sg.Enter?(Lm(e),s(e),l?.(!1),x()):e.key===sg.Esc&&(Lm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,I=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return sn.jsx(MV,{style:b,hoverColor:o,isLastColumn:n,className:lg,"data-testid":lg,onMouseDown:e=>{Lm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:ug.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Lm(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":I,"aria-valuemin":cg.PixelsMin,"aria-valuemax":cg.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},qV=F((e,t)=>sn.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:sn.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),OV=({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},LV=$c(Td,{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"})),NV=$c(qV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),jV=$c(Kf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),_V=$c(Ip)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),zV=$c(Qf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),FV=$c(Qf,{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"})),$V=$c("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"})),HV=$c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),BV=$c(Ku)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),VV=$c(Sf,{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})),WV=F((e,t)=>sn.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:sn.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),UV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?UV(t):t:e.parentElement?.children?.[0]},GV=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?GV(t):t},KV=e=>{const{key:t,currentTarget:n}=e,r=document.activeElement??n;if(t===sg.Down||t===sg.Up){const n=e=>t===sg.Down?UV(e):GV(e);e.preventDefault(),e.stopPropagation();let o=n(r);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=n(o)}}},YV=(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 XV={};const JV=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=P(!1),f=w.useRef(null),h=L(e=>{e.stopPropagation(),p(!1)},[p]);return sn.jsxs(sn.Fragment,{children:[sn.jsxs(FV,{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),XV={}),a?.length&&(p(!0),XV[r]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:KV,children:[l?sn.jsx($V,{direction:c,isPagination:u}):null,sn.jsxs(HV,{children:[sn.jsx(VV,{direction:c,isPagination:u,children:sn.jsx(o,{})}),sn.jsx(BV,{variant:"body2",children:r})]}),a?.length?sn.jsx(WV,{}):null]},t),a?.length?sn.jsx(tW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:YV(a,XV),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},ZV=({menuGroup:e,isSubMenu:t,direction:n,isPagination:r})=>e.map(e=>[[e.groupHeading&&sn.jsx(zV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>sn.jsx(JV,{...e,isSubMenu:t,direction:n,isPagination:r},e.id))].filter(Boolean)]),QV=({itemGroups:e,isSubMenu:t,direction:n,isPagination:r})=>e.map((o,i)=>[ZV({menuGroup:o,isSubMenu:t,direction:n,isPagination:r}),i<e.length-1?sn.jsx(_V,{"data-testid":"group-divider",variant:"middle"}):void 0]),eW={appear:0,enter:0,exit:0},tW=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>r.length?sn.jsx(jV,{className:og,open:t,anchorEl:e,onClose:n,transitionDuration:eW,MenuListProps:{id:ig},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:QV({itemGroups:r,isSubMenu:a,direction:s,isPagination:l})}):null,nW=({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]),rW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),oW=(e,t)=>e.some(e=>t[e]>0),iW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},aW=({open:e,qStateName:t="$",headerData:n,app:r})=>{const[o,i]=P(null),[a,s]=P(iW);return Zm(()=>{e||(s(iW),i(null))},[e]),q(()=>{if(!r?.createSessionObject||!n.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&r.destroySessionObject(o)};return(async()=>{try{const e=rW(t,n),c=await r.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:oW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:oW(["qSelected"],e),canSelectPossible:oW(["qOption"],e),canSelectAlternative:oW(["qAlternative"],e),canSelectExcluded:oW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,r,n,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},sW=F((e,t)=>sn.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:sn.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"})})),lW=F((e,t)=>sn.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:sn.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"})})),cW=F((e,t)=>sn.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:sn.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"})})),uW=F((e,t)=>sn.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:sn.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"})})),dW=F((e,t)=>sn.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:sn.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"})})),pW=F((e,t)=>sn.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:sn.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"})})),fW=F((e,t)=>sn.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:sn.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"})})),hW=F((e,t)=>sn.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:sn.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"})})),mW=F((e,t)=>sn.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:sn.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"})})),gW=F((e,t)=>sn.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:sn.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"})})),bW=F((e,t)=>sn.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:sn.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"})})),vW=F((e,t)=>sn.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:sn.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"})})),yW=F((e,t)=>sn.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:sn.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 xW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const SW="/qListObjectDef",wW=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(n[xW.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:sW,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:uW,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:fW,subMenus:[[{items:e.groupDimensionLabels.map((t,n)=>({id:n+1,itemTitle:t,onClick:e=>{e.stopPropagation(),r(!1),d(n)},enabled:!0,icon:xz,isActive:e.groupDimensionPos===n}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];n[xW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:hW,enabled:!0}]}]),!e.isLocked&&n[xW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:yW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAll(SW))},icon:mW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectPossible(SW))},icon:vW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectAlternative(SW))},icon:gW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.selectListObjectExcluded(SW))},icon:bW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(s?.clearSelections(SW))},icon:lW,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:pW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),r(!1),await p.collapseCallback()},icon:dW,enabled:!0}]}]),o.length>0&&f.push(...o)}return n[xW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),u?.(c)},icon:cW,enabled:!0}]}]),f},CW=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=tg})=>{const v=D(null),y=eg({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=r,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=aW({open:e,headerData:r,app:C,qStateName:u?.qStateName}),I=OV({model:f,headerData:r}),A=nW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),k=L(e=>{e.stopPropagation(),t(!1)},[t]),P=L(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?sn.jsxs(LV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:rg,onClick:!1===g?P:void 0,ref:v,isAccessibleHeader:g,children:[s?sn.jsx(NV,{height:b,className:ng,"data-testid":ng,isInteractionsActive:i.active??!1,children:sn.jsx(qV,{})}):null,sn.jsx(tW,{open:e,anchorEl:!1===g?v.current:n.current,onClose:k,menuGroups:wW({headerData:r,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:n,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:I,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},EW=e=>e.isDark?{background:e.color,borderColor:km.DARK_MODE_BORDER,color:km.DARK_MODE_TEXT,disabledColor:km.DARK_MODE_DISABLED,iconColor:km.DARK_MODE_TEXT}:{background:e.color,borderColor:km.BORDER_MEDIUM,color:km.TEXT,disabledColor:km.DISABLED},RW=$c(Td,{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}`})),IW=$c(qh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),AW=$c(Hd,{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)})),kW=$c(Ku)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),PW=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=k(()=>EW(r.background),[r]);if(!n.active)return null;const a=o?sn.jsx(RW,{footerStyle:i,children:e}):null;return t?V.createPortal(e,t):a},DW=F((e,t)=>sn.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:sn.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),MW=F((e,t)=>sn.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:sn.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),TW=M({}),qW=()=>N(TW),OW=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=k(()=>EW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=eg({translator:d}),S=k(()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,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,c,u,x,p,f,h,m,v,b,y,g]);return sn.jsx(TW.Provider,{value:S,children:e})},LW=({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 NW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),jW=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 _W=()=>{const{direction:e,pageInfo:t,width:n,interactions:r,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=qW(),c=0===t.page,u=LW({type:NW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:r,tabIndex:l});return n<=(o?.firstPage||jW.FirstPage)?null:sn.jsx(AW,{...u,disabled:!r.active,children:"rtl"===e?sn.jsx(MW,{height:tg}):sn.jsx(DW,{height:tg})})},zW=(e,t,n=!1)=>{n&&e.key===sg.Tab&&!e.shiftKey&&(Lm(e),Om(e.target,t,!1))},FW=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=qW(),p=t.page>=r-1,f=LW({type:NW.LastPage,disabledCondition:p,pageNumber:r-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=n.enabled?e=>{zW(e,n,o)}:void 0;return i<=(s?.lastPage||jW.LastPage)?null:sn.jsx(AW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?sn.jsx(DW,{height:tg}):sn.jsx(MW,{height:tg})})},$W=F((e,t)=>sn.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:sn.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),HW=()=>{const{direction:e,pageInfo:t,keyboard:n,totalPages:r,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=qW(),d=t.page>=r-1,p=LW({type:NW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>jW.FirstPage&&i>jW.LastPage)&&n.enabled?e=>{zW(e,n,o)}:void 0;return sn.jsx(AW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?sn.jsx($W,{height:tg}):sn.jsx(WV,{height:tg})})},BW=()=>{const{direction:e,pageInfo:t,interactions:n,footerStyle:r,handleChangePage:o,translator:i,tabIndex:a}=qW(),s=0===t.page,l=LW({type:NW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:r,handleChangePage:o,translator:i,interactions:n,tabIndex:a});return sn.jsx(AW,{...l,disabled:!n.active,children:"rtl"===e?sn.jsx(WV,{height:tg}):sn.jsx($W,{height:tg})})},VW=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r,visibilityThreshold:o}=qW(),{page:i,rowsPerPage:a}=n;if(t<=(o?.displayedRowsLabel||jW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,r)}`,r.toString()]);return sn.jsx(kW,{variant:"caption",dir:"ltr",children:s})},WW=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=qW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return sn.jsxs(sn.Fragment,{children:[sn.jsxs(kW,{variant:"caption",id:p,children:[u,":"]}),sn.jsx(IW,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:f,disabled:!l.active,children:n})]})},UW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:n,width:r,handleChangeRowsPerPage:o,visibilityThreshold:i}=qW();if(!(!!e.rowsPerPageOptions?.length&&!t&&r>(i?.rowsPerPage||jW.RowsPerPage)&&n<=100)||void 0===e.rowsPerPageOptions)return null;const a=sn.jsx(sn.Fragment,{children:e.rowsPerPageOptions.map(e=>sn.jsx("option",{value:e,children:e},e))});return sn.jsx(WW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},GW=1e3,KW="…",YW=({totalPages:e,page:t})=>{const n=Math.min(e,GW),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-GW):0,a=Array.from(Array(n).keys()).map(e=>{const t=e+i;return sn.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(sn.jsx("option",{value:KW,disabled:!0,children:KW},"startMoreOptions")),o<e-1&&a.push(sn.jsx("option",{value:KW,disabled:!0,children:KW},"endMoreOptions")),sn.jsx(sn.Fragment,{children:a})},XW=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r,visibilityThreshold:o}=qW(),{page:i}=e;if(t<=(o?.selectPage||jW.SelectPage))return null;const a=sn.jsx(YW,{totalPages:n,page:i});return sn.jsx(WW,{name:"SelectPage",value:i,options:a,handleChange:e=>{r(+e.target.value)}})};var JW=z(e=>sn.jsxs(OW,{...e,children:[sn.jsx(UW,{}),sn.jsx(XW,{}),sn.jsx(VW,{}),sn.jsx(_W,{}),sn.jsx(BW,{}),sn.jsx(HW,{}),sn.jsx(FW,{})]}));const ZW=e=>sn.jsx(PW,{...e,children:sn.jsx(JW,{...e})}),QW=(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"]})},eU=(e,t,n)=>{n&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},tU=e=>e.ctrlKey||e.metaKey,nU=e=>e.shiftKey&&tU(e),rU=e=>[sg.Left,sg.Right,sg.Up,sg.Down].includes(e),oU=e=>e.shiftKey&&rU(e.key),iU=e=>(e=>rU(e)||[sg.Home,sg.End,sg.PageUp,sg.PageDown].includes(e))(e.key)&&!nU(e),aU=(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),QW(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})},sU=(e,t)=>{const{api:n,rows:r,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&oU(c)))return e;-1===o&&n?.begin(["/qHyperCubeDef"]);const u=((e,t,n,r,o)=>{const i=new Map(t);if("key"in r&&oU(r)){i.set(n.qElemNumber,n.rowIdx);const t=r.key===sg.Down?1:-1,o=e[n.pageRowIdx+t][n.pageColIdx];return 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];i.set(n.qElemNumber,n.rowIdx)}return i})(i,r,s,c,a);return QW(l,r,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},lU=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}},cU=(e,t)=>{switch(t.type){case F$.Select:return aU(e,t.payload);case F$.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 F$.SelectMouseUp:return((e,t)=>lU(e.isSelectMultiValues||e.firstCell!==t.cell?e:aU(e,t)))(e,t.payload);case F$.SelectMultiAdd:return sU(e,t.payload);case F$.SelectMultiEnd:return lU(e);case F$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case F$.Clear:return e.rows.size?{...e,rows:new Map}:e;case F$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},uU=Jg(e=>{const t=e(Pb);return function(e,t){return Jg(e,function(e,n,r){n(this,t(e(this),r))})}({pageRows:e(XB).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},cU)}),dU=Jg(e=>e(e(uU)),(e,t,n)=>{t(e(uU),n)}),pU=sA(e=>Jg(t=>{const{colIdx:n,rows:r,api:o}=t(dU);return"object"==typeof e&&o?.isModal()?n!==e.selectionColIdx?z$.Disabled:r.has(e.qElemNumber)?z$.Selected:z$.Possible:z$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),fU=Jg(e=>{const t=e(IV),n=e(Jb).width,r=e(EH);return t>0&&t+r<n}),hU=()=>{const[e,t]=P(!1);return oj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?sn.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},mU=(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}),gU=Jg(e=>{const t=e(Sb),n=e(Gb);if(void 0!==n)return async(e,r)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await n.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=r!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/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"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),n.applyPatches(p,!0)}}),bU=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},vU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r})=>(e>n?e--:t>n&&(t--,e=r),[t,e]),yU=({colIdx:e,rowIdx:t,firstColIdx:n,lastColIdx:r,lastRowIdx:o})=>(e<r?e++:t<o&&(t++,e=n),[t,e]),xU=e=>e.atTop?2:1,SU=(e,t)=>({top:e?xU(t):0,bottom:e&&t.atBottom?1:0}),wU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],CU=e=>e?.setAttribute("tabIndex","0"),EU=e=>e?.setAttribute("tabIndex","-1"),RU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(EU)},IU=e=>{e?.focus(),CU(e)},AU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${lg}`);IU(t)},0)},kU=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,allowedRows:o,direction:i})=>{RU(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[c,u]=n;switch(e.key){case sg.Down:c<s&&c++;break;case sg.Up:c>a&&c--;break;case sg.Right:if(i)break;[c,u]="rtl"===r?vU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):yU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case sg.Left:if(i)break;[c,u]="rtl"===r?yU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):vU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case sg.Home:(tU(e)||i)&&(c=a),i||(u=0);break;case sg.End:(tU(e)||i)&&(c=s),i||(u=l);break;case sg.PageDown:c=Math.min(s,c+10);break;case sg.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,n,i,o),s=wU(t,a);return IU(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}},PU=(e,t,n,r)=>{RU(t),n(e),r.enabled&&!r.active?r.focus?.():IU(wU(t,e))},DU=(e,t,n)=>{const r=e.currentTarget;if(!r)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${og}`))return;const i=!!o&&r.contains(o);!n.enabled||t.current||i||(e=>{const t=e.querySelector(`.${H$.First}`),n=e.querySelector(`.${H$.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)},MU=F((e,t)=>sn.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:sn.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"})})),TU=$c(Jh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:n,background:r,color:o})=>({...aH,...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}})),qU=$c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:rH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),OU=parseInt(rH,10)/2,LU=$c("div")({position:"absolute",bottom:-OU,left:`calc(50% - ${OU}px)`}),NU=$c(fm)({position:"sticky",top:0,zIndex:1}),jU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},_U=$c(Td)({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"}}),zU=$c("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?{...jU,whiteSpace:"nowrap",display:n?"block":void 0}:{...jU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),FU=$c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),$U="cell-text",HU=({children:e,forwardRef:t,isNumeric:n=!1,isPagination:r=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=cb(fV);return o?sn.jsx(zU,{"data-testid":$U,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:r,isHeadCell:!0,style:{direction:n?"ltr":void 0},children:e}):sn.jsx(zU,{"data-testid":$U,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})},BU=e=>{const{column:t,isInteractionEnabled:n,open:r,setOpen:o,isPagination:i,forwardRef:a}=e,s=cb(Cb),l=cb(gU),c=cb(zb),u=cb(Mb),d=cb(hb),p=cb(nv),f=cb(pb),h=cb(CV)[t.pageColIdx],m=cb(Ub),g=D(null),b=D(null),v=(({column:e,columnWidth:t})=>{const n=cb(fV),{measureText:r}=Um({fontSize:n.header.fontSize,fontFamily:n.header.fontFamily,fontWeight:oH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=r(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(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?sn.jsx(sW,{height:rH,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(uW,{height:rH,"data-testid":"head-cell-sort-descending-icon"}),a=n?sn.jsx(qU,{align:t,dir:o,children:i}):void 0,s=r?sn.jsx(yH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:sn.jsx(MU,{height:rH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return sn.jsxs(vH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:dH(t,i,c),children:[S,sn.jsxs(bH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,sn.jsx(HU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),n?sn.jsxs(sn.Fragment,{children:[sn.jsx(CW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[xW.Sorting]:!0,[xW.Searching]:!0,[xW.Selections]:!0,[xW.AdjusterHeaderSize]:!0},open:r,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),l?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:AU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),sn.jsx(gH,{ref:b,direction:c,isPagination:i}),sn.jsx(gH,{ref:g,direction:c})]}):null]})},VU=F((e,t)=>sn.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:sn.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"})})),WU=(e,t)=>e.isCyclic&&t,UU=({column:e})=>{const t=cb(fV),n=cb(zb),r=cb(Ub),o=w.useRef(null),[i,a]=w.useState(!1),s=OV({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return sn.jsxs(sn.Fragment,{children:[sn.jsx(SH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:sn.jsx(VU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),sn.jsx(tW,{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:xz,isActive:e.groupDimensionPos===n}))}]],anchorEl:o.current,direction:n,isPagination:!1})]})},GU=e=>e.isLocked,KU=({column:e})=>{const t=cb(pb),n=cb(Cb),r=cb(fV);return sn.jsx(SH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,onClick:r=>{r.stopPropagation(),(async(e,t,n)=>{const r=rW(t??"$",n);let o;try{const t=await(e?.createSessionObject(r));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,n,e)},children:sn.jsx(MU,{height:16,"data-testid":"head-cell-lock-icon"})})},YU=({column:e,menuIconRef:t,open:n,setOpen:r})=>{const o=cb(fV);return sn.jsx(SH,{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:sn.jsx(qV,{height:16})})},XU=({anchorRef:e,column:t,isPagination:n,listboxRef:r,open:o,setOpen:i})=>{const a=cb(pb),s=cb(zb),l=cb(hb),c=cb(Mb),u=cb(Ub),d=cb(Cb),p=cb(nv),f=cb(gU);return sn.jsx(CW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[xW.Sorting]:!0,[xW.Searching]:!0,[xW.Selections]:!0,[xW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),f?.(t,n)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:r},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:AU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:n})},JU=Jg();JU.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 ZU=({ref:e,callback:t})=>{const n=cb(JU),r=D(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])},QU=$c(Td)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),eG=({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 ZU({ref:t,callback:i}),sn.jsx(QU,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!n.has(e.key))})},tG=({children:e})=>e,nG=(e,t)=>!e.isLocked&&e.isDim&&t,rG=({column:e,open:t,setOpen:n})=>{const r=cb(fV),o=cb(Cb),i=cb(zb),a=cb(hb);cb(pb);const s=w.useRef(null),l=L(()=>{n(!1)},[n]),c=nW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return sn.jsx(SH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??r.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??r.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),n(!0)},children:sn.jsx(hW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},oG=F((e,t)=>sn.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:sn.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"})})),iG=F((e,t)=>sn.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:sn.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"})})),aG=({column:e})=>{const{sortDirection:t,isActivelySorted:n}=e,r="A"===t?sn.jsx(iG,{height:rH,"data-testid":"head-cell-sort-ascending-icon"}):sn.jsx(oG,{height:rH,"data-testid":"head-cell-sort-descending-icon"});return n?sn.jsx(LU,{children:r}):void 0},sG=0,lG=1,cG=2,uG=3,dG=e=>{const{column:t,open:n,setOpen:r,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=cb(fV),c=cb(zb),{measureText:u}=Um(l.header),[d,p]=P(!1),f=D(null),h=D(null),m=D(null),g="number"==typeof a&&a>cg.PixelsMin+18;return sn.jsxs(sn.Fragment,{children:[sn.jsxs(eG,{children:[sn.jsx(tG,{prio:cG,minWidth:mH,children:GU(t)?sn.jsx(KU,{column:t}):null},"Lock"),sn.jsx(tG,{prio:lG,minWidth:mH,children:WU(t,s)?sn.jsx(UU,{column:t}):null},"Cyclic"),sn.jsx(tG,{ignore:!0,children:sn.jsx(aG,{column:t})},"Sort"),sn.jsx(tG,{minWidth:u(t.label)+8,children:sn.jsx(xH,{justifyContent:t.headTextAlign,children:sn.jsx(HU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),sn.jsx(tG,{prio:g?void 0:sG,minWidth:mH,children:d||nG(t,s)?sn.jsx(rG,{open:d,setOpen:p,column:t}):null},"Search"),sn.jsx(tG,{prio:uG,minWidth:mH,children:s?sn.jsx(YU,{menuIconRef:m,column:t,open:n,setOpen:r}):null},"Menu")]}),s?sn.jsxs(sn.Fragment,{children:[sn.jsx(gH,{ref:h,direction:c,isPagination:o}),sn.jsx(gH,{ref:f,direction:c}),sn.jsx(XU,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:n,setOpen:r})]}):null]})},pG=$c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:n})=>({...t,background:e,color:n})),fG=()=>{},hG=({column:e,isPagination:t})=>{const n=cb(fV),r=cb(zb),o=cb(fU),i=cb(JB),a=!1,s=cb(Ib)?BU:dG;return sn.jsx(pG,{className:"sn-table-cell",applicableStyle:{...n.header,...mU(n,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:fH(r,a,o),borderLeftWidth:hH(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:sn.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:fG})})},mG=({isPagination:e})=>{const t=cb(ZB),[n,r]=P();oj({onDragStart:e=>{const t=e.operation.source?.id;r(t)},onDragEnd:()=>{}});const o=n?t.find(e=>e.id===n):void 0;return o?sn.jsx(LN,{children:sn.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:sn.jsx(hG,{column:o,isPagination:e})})}):null},gG=JR(Jg(async e=>{e(vb);const t=e(Gb);return t?.getEffectiveProperties()}),e=>e),bG=Jg(e=>e(gG)?.qHyperCubeDef),vG=[$L.configure({activationConstraints:[new jL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],yG=lN.plugins.filter(e=>e!==mO),xG=(e,t,n)=>{const r=JSON.stringify(t),o=JSON.stringify(n);if(r!==o)return{qPath:e,qOp:"Replace",qValue:o}},SG=(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=Uz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=r.findIndex(e=>e===o),c=r.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,n)=>{const r=[...e],[o]=r.splice(t,1);return r.splice(n,0,o),r})(r,l,c),d=new Map(u.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:Gz({previousColumns:s,nextColumns:m,qInterColumnSortOrder:n}),qColumnOrder:u.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=[xG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),xG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),xG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),xG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},wG=({children:e})=>{const t=cb(Gb),n=cb(bG),r=cb(ZB);return sn.jsx(TN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&SG(t,n,r,o,i)},sensors:vG,plugins:yG,children:e})};function CG(e,t){const n=D(!1);q(()=>{n.current?e():n.current=!0},t)}const EG=(e,t)=>{const n=cb(Wb);q(()=>{const r=e.current;if(!r)return;const o=e=>{DU(e,t,n)};return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}},[e,t,n])},RG=Jg(B$),IG=sA(e=>Jg(t=>{const[n,r]=t(RG);return 0===n&&r===e})),AG=()=>{const e=cb(fb);q(()=>{e.notifyIsDoneRendering()})};var kG={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 PG=Jg(e=>{const t=e(nv),n=e(Zb);let r;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(kG).forEach(t=>{e.add(kG[t])})}(t),({keys:e,politeness:o="polite"})=>{const i=e.map(e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)}).join(" "),a=n.querySelector(`.${H$.First}`),s=n.querySelector(`.${H$.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===H$.First?(l=s,r=H$.Second):(l=a,r=H$.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}}),DG=(e,t)=>{const n=cb(PG),r=cb(Zb),o=cb(nV),i=cb(tV),a=cb(eV),s=cb(JB),[l,c]=db(RG),u=cb(kb),d=cb(Wb);CG(()=>{const t=((e,t,n=!1)=>{const r=[xU(t),e[1]];return n?r:B$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(RU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=wU(t,e);n.current?(IU(s),n.current=!1):CU(s),r&&(a({keys:[s?.textContent??""]}),eU(a,s,r))})({resetCellCoord:t,rootElement:r,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:n})},[a.length,i,o,t])},MG=e=>{Lm(e),tU(e)&&gg(e.currentTarget)},TG=e=>{iU(e.evt)&&(Lm(e.evt),kU(e))},qG=e=>{const{evt:t,totalsPosition:n,cell:r,isSelectionMode:o}=e;if(!iU(t))return;Lm(t);const i=((e,t)=>[e.pageRowIdx+xU(t),e.pageColIdx])(r,n),a=SU(o,n),{nextCell:s,nextCellCoord:l}=kU({...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:F$.SelectMultiAdd,payload:{cell:n,evt:e,announce:o}}):eU(o,a,i)})({...e,nextCell:s})},OG=e=>{const{evt:t}=e;nU(t)?(({evt:e,totalRowCount:t,rowsPerPage:n,page:r,updateShouldRefocus:o,handleChangePage:i})=>{Lm(e);const a=Math.ceil(t/n)-1;e.key===sg.Right&&r<a?(o(),i(r+1)):e.key===sg.Left&&r>0&&(o(),i(r-1))})(e):t.key===sg.Esc?(({evt:e,keyboard:t,isSelectionMode:n})=>{t.enabled&&!n&&(Lm(e),t.blur?.(!0))})(e):rU(t.key)&&Lm(t)},LG=e=>{const{evt:t,selectionsAPI:n}=e;if(t.currentTarget.classList.contains(z$.Disabled))return void Lm(t);const r={...e,isSelectionMode:!!n?.isModal()};switch(t.key){case sg.Space:(({evt:e,cell:t,isSelectionsEnabled:n,selectionDispatch:r,announce:o})=>{Lm(e),t.isSelectable&&n&&r({type:F$.Select,payload:{cell:t,evt:e,announce:o}})})(r);break;case sg.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{Lm(n),e&&(t?.confirm(),r({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(r);break;case sg.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:n,announce:r})=>{e&&(Lm(n),t?.cancel(),r({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(r);break;case sg.C:MG(t);break;case sg.Tab:(({evt:e,keyboard:t,isSelectionMode:n,paginationNeeded:r})=>{const o=e.shiftKey||!r;t.enabled&&n&&o&&(Lm(e),Om(e.currentTarget,t,e.shiftKey))})(r);break;default:qG(r)}},NG=e=>{const t=cb(wH),n=ub(CH),r=ub(EH),o=cb(_$),i=D();ZU({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()}}),q(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},jG=$c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),_G=$c(tm,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),zG=$c(zh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),FG=()=>sn.jsxs(sn.Fragment,{children:[sn.jsx(jG,{className:H$.First,"data-testid":H$.First,"aria-live":"polite","aria-atomic":"true"}),sn.jsx(jG,{className:H$.Second,"data-testid":H$.Second,"aria-live":"polite","aria-atomic":"true"})]}),$G=e=>{const t=D(new Map),n=D(null);q(()=>{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])},HG=e=>new ResizeObserver(t=>{t.forEach(t=>{const n=e.get(t.target);n?.(t)})}),BG=()=>$G(HG),VG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(Pb),r=cb(Wb),o=ub(dU);q(()=>{const i=()=>{o({type:F$.Reset})},a=()=>{o({type:F$.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])},WG=e=>{e.stopPropagation()},UG=({href:e,text:t,interactions:n,color:r})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:WG,color:km.LINK,style:{pointerEvents:n.active?"auto":"none",color:r??void 0,opacity:n.active&&n.passive||r?void 0:.4}}),GG=({href:e,text:t,interactions:n,color:r})=>sn.jsx(Zp,{...UG({href:e,text:t,interactions:n,color:r}),children:t}),KG=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),YG=window.cancelIdleCallback??(e=>{clearTimeout(e)}),XG="qDimensionInfo/0",JG="qMeasureInfo/0",ZG="x",QG="y",eK=e=>({key:"bars",type:"box",data:{extract:{field:XG,props:{start:0,end:{field:JG}}}},settings:{major:{scale:ZG},minor:{scale:QG},box:{maxWidthPx:8,fill:{fn:e}}}}),tK=e=>({key:"p",type:"point",data:{extract:{field:XG,props:{y:{field:JG}}}},settings:{x:{scale:ZG},y:{scale:QG},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),nK=({qNum:e})=>void 0===e?0:Math.sign(e),rK=(e,t)=>{const{primary:n,nil:r,others:o}=e.getDataColorSpecials(),i=Tm(e,t?.negative,n),a=Tm(e,t?.positive,n);return{key:"pos-neg",type:"box",data:{extract:{field:XG,props:{start:0,end:{field:JG,value:nK}}}},settings:{major:{scale:ZG},minor:{scale:QG},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}}}}},oK=(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=Tm(e,t?.main,o),l=Tm(e,t?.max,s),c=Tm(e,t?.min,s),u=Tm(e,t?.first,s),d=Tm(e,t?.last,s);return e=>{const t=QG in e.datum?QG:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=r?l:e.datum[t].value<=n?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,r,o,i);switch(t){case"bars":return[eK(a)];case"dots":return[tK(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:XG,props:{v:{field:JG}}}},settings:{coordinates:{major:{scale:ZG},minor:{scale:QG,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Tm(e,r?.main,e.getDataColorSpecials().primary));return n?[t,tK(a)]:[t]}case"posNeg":return[rK(e,r)];default:return[]}},iK=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"}),aK=(e,t,n,r)=>({y:{data:{field:JG},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:n},x:{data:{extract:{field:XG}},paddingInner:.3,paddingOuter:0,invert:"rtl"===r,align:"rtl"===r?1:0,maxPxStep:12}}),sK=K();sK.use(G),sK.renderer.prio(["canvas"]);const lK={resolve:()=>{},promise:{}},cK=({chart:e,element:t,requestId:n,theme:r,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=D(e.isDownloadedAsPDForImage?_t():lK);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;c();n.current=KG(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:n,miniChartData:r,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=r;return sK.chart({element:e,data:{type:"q",key:"qHyperCube",data:iK(s)},settings:{scales:aK(a,l,c,i),components:oK(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,c,n,r,o,a,i,l]),safeCancelIdleCallback:L(()=>{null!==n.current&&YG(n.current),n.current=null,l()},[n,l])}},uK=e=>{const t=D(null),n=D(!1);return L(r=>{const o=r.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(YG(e.current),e.current=null)})(t),n.current?0!==o?null!==e.current&&(t.current=KG(()=>{e.current?.update()},{timeout:2e3})):n.current=!1:n.current=!0},[e])},dK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:n,isSnapshot:r,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),c=D(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=cK({element:s,chart:l,requestId:c,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]);q(()=>{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:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:n,intersectionObserverTaskScheduler:r})=>{q(()=>r?()=>{}:(e(),()=>{t(),n.current?.destroy(),n.current=null}),[r,t,e,n])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:n})=>{const r=uK(t);q(()=>{const t=e.current;return t?(n.addTask(t,r),()=>{n.removeTask(t)}):()=>{}},[e,r,n])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},pK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=dK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:n,theme:r,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return sn.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},fK=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}`},hK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},mK=({representation:e,textStyle:t,maxImageHeight:n,wrapInContainer:r})=>{const o=cb(zb),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=sn.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:n,objectFit:hK(s),objectPosition:fK(l),overflow:"hidden"}});return r?sn.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?n:"100%",overflow:"hidden",display:"flex",justifyContent:c?lH(o,e):void 0},children:u}):u},gK=F((e,t)=>sn.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:sn.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),bK=F((e,t)=>sn.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:sn.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"})})),vK=F((e,t)=>sn.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:[sn.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"}),sn.jsx("use",{fillRule:"evenodd"})]})),yK=F((e,t)=>sn.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:sn.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"})})),xK=F((e,t)=>sn.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:sn.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"})})),SK=F((e,t)=>sn.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:sn.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"})})),wK=F((e,t)=>sn.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:sn.jsx("path",{d:"M2 7.5h12v1H2z"})})),CK=F((e,t)=>sn.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:sn.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"})})),EK=F((e,t)=>sn.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:sn.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"})})),RK=F((e,t)=>sn.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:sn.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"})})),IK=F((e,t)=>sn.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:sn.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"})})),AK={m:F((e,t)=>sn.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:sn.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":RK,R:iG,S:oG,T:F((e,t)=>sn.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:sn.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"})})),U:F((e,t)=>sn.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:sn.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"})})),P:EK,Q:SK,"è":F((e,t)=>sn.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:sn.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"})})),"¢":yK,"©":vK,"23F4":xK,2013:IK,"&":CK,add:gK,"minus-2":wK,dot:bK},kK=({size:e,iconKey:t,color:n,pvStyle:r})=>{const o=t&&AK[t];return o&&sn.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:n,height:e,...r},children:sn.jsx(o,{style:{height:e}})})},PK=({representation:e,cellValue:t,paginationCellAlign:n})=>{const r=cb(fV),o=cb(zb),i=cb(tv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=eH(e,t,o,i),d=(e=>parseInt(e||rH,10))(r.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?sn.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:n??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&kK({size:d,iconKey:f,color:p}),sn.jsx(HU,{isNumeric:!0,children:a}),"right"===h&&kK({size:d,iconKey:f,color:p})]}):kK({size:d,iconKey:f,color:p})},DK=(e,t,n)=>e.contentStaticLineCount?t*(n??e.grid.contentLineClamp):t,MK=({forwardRef:e,cell:t,style:n,virtualizedCell:r,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=cb(fV),c=cb(gV),u=cb(fb),d=cb(vb),p=cb(tv),f=cb(zb),h=cb(Mb),m=cb(kb);if(t.representation.type===tF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===tF.Image)return sn.jsx(mK,{representation:t.representation,textStyle:n,maxImageHeight:DK(l,c,o),wrapInContainer:!r});let g=t.representation.text;t.representation.type!==tF.Link||m||t.isNull||(g=sn.jsx(GG,{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!==tF.Indicator||Number.isNaN(b)?t.representation.type===tF.MiniChart&&t.representation.miniChart&&!t.isNull?sn.jsx(pK,{height:DK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):sn.jsx(HU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!r,children:g}):sn.jsx(PK,{representation:t.representation,cellValue:b,paginationCellAlign:r?void 0:s})},TK=()=>sn.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:sn.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),qK=$c("div")({"& path":{stroke:"none !important"}}),OK=({children:e,cellSelectionState:t,hideTickIcon:n})=>t!==z$.Selected||n?e:sn.jsxs(FU,{children:[e,sn.jsx(qK,{children:sn.jsx(TK,{})})]}),LK=e=>{const t=function(){const e=qN(),t=mN(()=>null==e?void 0:e.dragOperation.source,[e]),n=mN(()=>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},NK=(e,t,n,r)=>({handleMouseDown:r=>{e?.(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{n({type:F$.SelectMultiEnd})};n({type:F$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:F$.SelectMultiAdd,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:F$.SelectMouseUp,payload:{cell:t,evt:e,announce:r}})}}),jK=e=>{const t=cb(rV),n=cb(JB),r=cb(PG),o=cb(Zb),i=cb(zb),a=ub(RG),s=ub(dU),l=cb(Wb),c=cb(Ob),u=cb(Pb),d=d=>{LG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:r,keyboard:l,paginationNeeded:t,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===sg.Shift&&t({type:F$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;PU([s,a],t,n,r)})(e,o,a,l,n)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=NK(f,e,s,r);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},_K=e=>{q(()=>()=>{pU.remove(e)},[e])},zK=(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},FK=(e,t,n)=>{const{color:r,background:o}=e.grid.zebraStripes[n];return{...t,...r?{color:r}:void 0,...o?{background:o}:void 0}},$K=(e,t,n)=>{if(t.grid.zebraStripes.show){const r=(n.rowIdx+1)%2==0;return FK(t,e,r?"even":"odd")}return e},HK=(e,t)=>{const n=cb(fV),r=cb(pU(e)),o=cb(gb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");_K(e);let a=t.isDim?n.dimension.values:n.measure.values;a=$K(a,n,e),a=i?n.subTotalRow:a,a=zK(a,n,e,t.isDim);const s=e.isNull||i&&t.isDim?a:LH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,n){return t===z$.Selected?{...e,...n}:t===z$.Disabled?{...e,background:`${tH}, ${e.background}`}:e}(s,r,n.selectedColors);return{cellStyle:{...l,borderColor:n.grid.border},representationStyle:s,cellSelectionState:r}},BK=$c(Uh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),VK=$c(fm,{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}}})),WK=$c(Jh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...aH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),UK=$c(Jh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...aH,...e,fontWeight:oH,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})),GK=({cell:e,column:t,columnIndex:n,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o})=>{const i=cb(zb),a=cb(Mb),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=jK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=HK(e,t),m=LK(t.id);return sn.jsx(WK,{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} ${ag}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:sn.jsx(OK,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:sn.jsx(MK,{cell:e,style:f,intersectionObserverTaskScheduler:r,resizeObserverTaskScheduler:o,paginationCellAlign:pH(i,e.align)})})})},KK=Jg(0),YK=({column:e,totalsPosition:t,onKeyDown:n,onMouseDown:r})=>{const o=cb(fV),i=cb(qb),a=cb(KK),s=LK(e.id);return sn.jsx(UK,{totalsStyle:{...o.totalRow,...mU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ag}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:n,onMouseDown:r,children:sn.jsx(HU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},XK=()=>{const e=cb(JB),t=cb(ZB),n=cb(eV),r=cb(Zb),o=cb(Tb),i=cb(zb),a=ub(RG),s=cb(kb),l=cb(Wb);return sn.jsx(fm,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:n.length+1,c];return sn.jsx(YK,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:n,isInteractionEnabled:r}=e;if(!t&&r)switch(n.key){case sg.C:MG(n);break;case sg.Space:n.preventDefault();break;default:TG(e)}else Lm(n)})({evt:e,rootElement:r,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{PU(u,r,a,l)}},t.id)})})};var JK=z(XK);const ZK=({updateShouldRefocus:e,tableWrapperRef:t})=>{const n=cb(eV),r=cb(JB),o=cb(ZB),i=cb(fV),a=cb(bV),s=cb(vV),l=cb(vb),c=!!MH(l)?.content?.hoverEffect;VG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=L(t=>new IntersectionObserver(e=>{e.forEach(e=>{const n=t.get(e.target);n?.(e)})},{root:e.current}),[e]);return $G(t)})(t),d=BG();return sn.jsxs(BK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[r.atTop?sn.jsx(JK,{}):void 0,n.map((e,t)=>{const n=e.at(0)?.isTotalRow??!1;return sn.jsx(VK,{hoverColors:i.grid.hoverColors,hover:c,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 sn.jsx(GK,{columnIndex:n,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},r)})},`row-${t}`)}),r.atBottom?sn.jsx(JK,{}):void 0]})};var QK=z(ZK);const eY=(e,t)=>!!e?.skipHeader||!!t.hideHeader,tY=Jg(e=>{const t=e(vb),n=e(Ub);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)}}),nY=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o,label:i}=e,a=cb(tY),s=cb(zb),l=cb(Tb),c=cb(nv),[u,d]=db(CV);if(!l)return null;return sn.jsx(TV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{n?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{EU(e);const t=e.closest(".sn-table-cell");IU(t)})(e.currentTarget)},setIsAdjustingWidth:r,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},rY=e=>e.target?.getAttribute("class")?.includes(lg),oY=({isInteractionEnabled:e,column:t})=>{const[n,r]=P(!1),o=cb(gU),i=cb(wH);return{open:n,setOpen:r,handleOpenMenu:t=>{!e||rY(t)||i||r(!0)},toggleSortOrder:n=>{e&&!rY(n)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(n)&&(n.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var iY=class extends _M{constructor(e,t){super(e,t),this.boundingRectangle=$A(null),this.destroy=JA(()=>{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=ZM(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,c=o.center.y-a/2,u=function(e,t,n){const r=yj({},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 bP(l,c,s,a),n,r);return u}};iY.configure=nD(iY);const aY=({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/gP.distance(n.shape.center,s),type:pM.Collision,priority:dM.Normal}:null},sY=[iY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],lY=(e,t)=>{const n=cb(zb),r=cb(gb),o=!cb(Nb)||!r("TLV-1531_DRAG_AND_DROP_COLUMNS");return j_({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:sY,data:e,plugins:e=>[...e,sL.configure({feedback:"clone"})],collisionDetector:aY({invert:"rtl"===n})})},cY=({column:e,columnIndex:t,columnsLength:n})=>{const r=cb(fV),o=cb(Zb),i=cb(zb),a=cb(Mb),s=cb(ZB),l=cb(JB),c=cb(CV)[t],u=ub(RG),d=cb(IG(t)),p=cb(Nb),f=cb(Wb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=oY({isInteractionEnabled:p,column:e}),v=ub(wH),{ref:y,isDragging:x}=lY(e,t),S=LK(e.id),w=cb(Ib),C=w?BU:dG,E=e.isActivelySorted?$$[e.sortDirection]:void 0,R=h?ig:void 0,I=h?"true":void 0,A=t===n-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return sn.jsxs(TU,{"data-dragging":x,ref:y,headerStyle:{...r.header,...mU(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 ${ag}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:n,handleOpenMenu:r}=e;if(t)switch(n.key){case sg.C:MG(n);break;case sg.Enter:case sg.Space:r?.(n);break;default:TG(e)}else Lm(n)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&PU(n,t,r,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":I,"aria-haspopup":"true",children:[sn.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),sn.jsx(nY,{column:e,isLastColumn:A,setIsAdjustingWidth:v})]},e.id)},uY=()=>{const e=cb(ZB),t=cb(fV),n=cb(vb),r=cb($b),o=ub(KK),i=cb(CV),a=D(null),s=eY(r,n);return q(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),sn.jsx(sm,{style:{visibility:s?"collapse":void 0},children:sn.jsx(NU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,n)=>sn.jsx(cY,{column:t,columnIndex:n,columnsLength:e.length},t.id))})})};var dY=z(uY);var pY=z(()=>{const e=cb(PG),[t,n]=db(HB),{page:r,rowsPerPage:o}=t,i=cb(Fb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=cb(XB),p=cb(fV),f=cb(RB),h=cb(vb),m=cb(tv),g=cb(Jb),b=cb(Zb),v=cb($b),y=cb(zb),x=cb(Mb),S=cb(nv),w=cb(fU),C=ub(dU),E=cb(kb),R=cb(Wb),I=D(!1),A=D(null),k=D(null),P=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,M=jb(h,v),T=M?f.scrollLeft??0:0,O=M?f.rowPartialHeight??0:0,N=L(()=>{I.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=cb(zb),n=cb(RB);q(()=>{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])})(A),EG(k,I),(()=>{const e=cb(Zb),t=cb(Wb),n=cb(RG);Zm(()=>{const r=wU(e,n);t.active?IU(r):(r?.blur(),RU(e))},[t.active,e])})(),DG(I,r),q(()=>{const e=A.current;e&&(e.scrollLeft=T,e.scrollTop=O)},[t,s,T,O]),CG(()=>{C({type:F$.UpdatePageRows,payload:{pageRows:u}})},[u]),AG(),NG(A),sn.jsxs(wG,{children:[sn.jsxs(_U,{ref:k,dir:y,onKeyDown:e=>{OG({evt:e,totalRowCount:s,page:r,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[sn.jsx(FG,{}),sn.jsxs(_G,{ref:A,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[sn.jsxs(zG,{stickyHeader:!0,"aria-label":P,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[sn.jsx(dY,{}),sn.jsx(QK,{updateShouldRefocus:N,tableWrapperRef:k})]}),sn.jsx(hU,{})]}),sn.jsx(ZW,{footerContainer:i,pageInfo:t,paginationNeeded:c,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})]}),sn.jsx(mG,{isPagination:!0})]})});const fY=Jg(0),hY=Jg(e=>{const t=e(yb);return Math.min(NH,t)}),mY=Jg(e=>{const t=e(yb);return t===NH?0:Math.floor(t/NH)}),gY=Jg(e=>{const t=e(fY),n=e(mY);return Math.min(t,n)}),bY=Jg(e=>({page:e(gY),rowsPerPage:e(hY),rowsPerPageOptions:[]}),(e,t,n)=>{const r=e(mY);t(fY,Math.max(0,Math.min(n,r)))}),vY=Jg(null),yY=Jg(null),xY=Jg(e=>{const t=e(bY),n=e(yb);return Math.min(t.rowsPerPage,n-t.page*t.rowsPerPage)}),SY=Jg(null),wY=Jg(null),CY=Jg(e=>e(JB).atTop?2:1),EY=Jg(e=>e(JB).atTop?1:e(CY)+e(xY)),RY=Jg(e=>SU(Boolean(e(kb)),e(JB))),IY=Jg(e=>({firstBodyRowIdx:e(CY),totalsRowIdx:e(EY),allowedRows:e(RY)})),AY=Jg(e=>({rootElement:e(Zb),totalsPosition:e(JB),rowCount:e(xY),colCount:e(QB),columnWidths:e(CV)})),kY=Jg(e=>({scrollToCell:e(SY),scrollableContainerElement:e(wY)})),PY=Jg(e=>({keyboard:e(Wb),isInSelectionMode:e(kb),selectionsAPI:e(Pb),isSelectionsEnabled:e(Ob)})),DY=Jg(e=>({direction:e(zb),isInteractionEnabled:e(Nb),paginationNeeded:e(rV),announce:e(PG),shouldRefocusRef:e(vY)})),MY=10,TY=e=>e.atTop?2:1,qY=(e,[t,n],r,o)=>{const i=TY(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}"]`)},OY=(e,t,n,r,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=n,d=c-TY(r),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),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})(qY(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)}},LY=(e,t,n,r,o,i)=>e<i?[t,e+1]:t<r?[t+1,o]:[t,e],NY=(e,t,n,r,o,i)=>e>o?[t,e-1]:t>n?[t-1,i]:[t,e],jY=(e,[t,n],r,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=r-1-a.bottom,d=o-1;switch(e.key){case sg.Down:case sg.Up:t=((e,t,n,r)=>e===sg.Down&&t<r?t+1:e===sg.Up&&t>n?t-1:t)(e.key,t,c,u);break;case sg.Right:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?NY(e,t,n,0,o,i):LY(e,t,0,r,o,i))(n,t,c,u,0,d,i));break;case sg.Left:l||([t,n]=((e,t,n,r,o,i,a)=>"rtl"===a?LY(e,t,0,r,o,i):NY(e,t,n,0,o,i))(n,t,c,u,0,d,i));break;case sg.Home:l?t=Math.max(c,t-MY):(tU(e)&&(t=c),n=0);break;case sg.End:l?t=Math.min(u,t+MY):(tU(e)&&(t=u),n=d);break;case sg.PageDown:t=Math.min(u,t+MY);break;case sg.PageUp:if(l)t=Math.max(c,t-MY);else{const e=s?TY(s):1,n=t-e;t=n>0&&n<=MY?e:Math.max(c,t-MY)}}return[t,n]},_Y=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},zY=[sg.Home,sg.End,sg.PageUp,sg.PageDown],FY=()=>{const e=D(!1),t=D(0),n=D(0),r=D(null),o=D(null),i=D(null),a=D(0),s=ub(RG),l=ub(dU),c=cb(gb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=cb(AY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=cb(IY),{scrollToCell:v,scrollableContainerElement:y}=cb(kY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=cb(PY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:A,shouldRefocusRef:P}=cb(DY),M=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]);q(()=>()=>{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=qY(u,e,d,p);if(i)return document.activeElement!==i&&bU(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)})},[u,d,p]),O=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(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,P&&(P.current=!0),o.current?.(),o.current=OY(v,u,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,u,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=OY(v,u,n,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=qY(u,n,d,p);i&&document.activeElement!==i&&bU(i),o>0?requestAnimationFrame(()=>{r(o-1)}):t.current===e&&P&&(P.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{r(300)})})},[u,d,p,v,P,y]),z=L((e,t)=>{if(!iU(e))return;Lm(e),j(),n.current+=1;const o=n.current;a.current+=1,r.current?.(),r.current=null;const i=((e,t)=>TY(t)+e+(t.atBottom?1:0))(p,d),l=jY(e,t,i,f,E,g,d);_Y(u),s(l);const[,c]=l,[,h]=t;return c!==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,M,c),P&&(P.current=!0),r.current=OY(v,u,l,d,p,y,10,()=>n.current===o,()=>{T(l,300,t=>{P&&(P.current=!1),t&&(e=>zY.includes(e))(e.key)&&O(l,o)},()=>n.current===o)}),l},[u,d,p,f,E,v,s,g,y,P,T,j,M,O]),F=L(e=>{e.key===sg.Esc?x.enabled&&!S&&(Lm(e),x.blur?.(!0)):rU(e.key)&&Lm(e)},[x,S]),$=L((e,t,n)=>{switch(e.key){case sg.C:Lm(e),I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget);break;case sg.Enter:case sg.Space:if(!I){Lm(e);break}n?.(e);break;default:z(e,[0,t])}},[z,I]),H=L((t,r,o,i)=>{const a=[r+m,o];switch(t.key){case sg.Space:if(Lm(t),i.isSelectable&&C){e.current=!0;const n=N();l({type:F$.Select,payload:{cell:i,evt:t,announce:R}}),_(n,a)}break;case sg.Enter:if(Lm(t),e.current=!1,S){N(),s(B$),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(B$,300,()=>{P&&(P.current=!1)},()=>n.current===t)}break;case sg.Esc:if(e.current=!1,S){Lm(t);const e=N();w?.cancel(),_(e,a)}break;case sg.C:Lm(t),I&&(t.ctrlKey||t.metaKey)&&gg(t.currentTarget);break;case sg.Tab:{const e=t.shiftKey||!A;x.enabled&&S&&e&&(Lm(t),Om(t.currentTarget,x,t.shiftKey));break}default:{const n=t.key===sg.Left||t.key===sg.Right,r=S||Boolean(w?.isModal())||e.current;if(n&&r){Lm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:F$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,A,I,N,_,s,v,y,T,P]),B=L(t=>{t.key===sg.Space&&(e.current=!1),t.key===sg.Shift&&l({type:F$.SelectMultiEnd})},[l]),V=L((e,t)=>{if(S)Lm(e);else{if(e.key!==sg.Space)return e.key===sg.C?(Lm(e),void(I&&(e.ctrlKey||e.metaKey)&&gg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=L(e=>{j(),n.current+=1;const t=n.current;_Y(u),s(e),x.enabled&&x.focus?.(),T(e,2,n=>{n&&O(e,t)},()=>n.current===t)},[u,s,x,T,j,O]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:L(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:L((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:L(e=>{c&&W([b,e])},[W,b,c])}};var $Y=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function HY(e,t){return e===t||!(!$Y(e)||!$Y(t))}function BY(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!HY(e[n],t[n]))return!1;return!0}function VY(e,t){var n;void 0===t&&(t=BY);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 WY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function UY(e){cancelAnimationFrame(e.id)}function GY(e,t){var n=WY();var r={id:requestAnimationFrame(function o(){WY()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var KY=-1;function YY(e){if(void 0===e&&(e=!1),-1===KY||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),KY=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return KY}var XY=null;function JY(e){if(void 0===e&&(e=!1),null===XY||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?XY="positive-descending":(t.scrollLeft=1,XY=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),XY}return XY}var ZY=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QY(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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,lu(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:lu(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=VY(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=VY(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,c=a.rowHeight,p=r._getItemStyleCache(m&&s,m&&l,m&&c),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:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=VY(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,c=i;if("rtl"===t)switch(JY()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&UY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=GY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return eX(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=YY();void 0!==r&&(r=Math.max(0,Math.min(r,u-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?c(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(JY()){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&&UY(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ZY: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(),I=R[0],A=R[1],k=[];if(r>0&&g)for(var P=I;P<=A;P++)for(var D=w;D<=E;D++)k.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=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:Wn({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(c||u||"div",{children:k,ref:l,style:{height:M,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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,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,c=l.horizontalScrollDirection,u=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=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?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,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);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 eX=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},tX=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},nX=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},rX=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 c=a+1;c<=n;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},oX=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?iX(e,t,n,i,0,r):aX(e,t,n,Math.max(0,i),r)},iX=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),s=rX(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},aX=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&rX(e,t,r,n).offset<o;)r+=a,a*=2;return iX(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},sX=function(e,t,n,r,o,i,a){var s="column"===e?t.width:t.height,l=rX(e,t,n,i),c="column"===e?nX(t,i):tX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===r&&(r=o>=d-s&&o<=u+s?"auto":"center"),r){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},lX=QY({getColumnOffset:function(e,t,n){return rX("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return oX("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=rX("column",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=rX("column",e,c,r).size;return c},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:tX,getEstimatedTotalWidth:nX,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return sX("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return sX("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return rX("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return oX("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=rX("row",e,t,r),s=n+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=rX("row",e,c,r).size;return c},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}}),cX=function(e,t){return e};function uX(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,lu(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:lu(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=VY(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=VY(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,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[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;u[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=VY(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(JY()){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&&UY(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=GY(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}Zc(t,e),t.getDerivedStateFromProps=function(e,t){return dX(e,t),u(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?YY():0:l.scrollHeight>l.clientHeight?YY():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(JY()){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&&UY(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?cX: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],I=[];if(c>0)for(var A=E;A<=R;A++)I.push(C(t,{data:u,key:p(A,u),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var k=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Wn({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(s||l||"div",{children:I,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 c=a(this.props,l,this._instanceProps),u=s(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(B),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var dX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},pX=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 c=r(l);o[l]={offset:a,size:c},a+=c}n.lastMeasuredIndex=t}return o[t]},fX=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=pX(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},hX=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&pX(e,n,t).offset<r;)n+=i,i*=2;return fX(e,t,Math.min(n,o-1),Math.floor(n/2),r)},mX=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},gX=uX({getItemOffset:function(e,t,n){return pX(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:mX,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=pX(e,t,o),p=mX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===n&&(n=r>=h-u&&r<=f+u?"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?fX(e,t,o,0,n):hX(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,c="horizontal"===o||"horizontal"===s?l:i,u=pX(e,t,r),d=n+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=pX(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 bX(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 vX=["style"],yX=["style"];function xX(e,t){var n=e.style,r=Un(e,vX),o=t.style,i=Un(t,yX);return!bX(n,o)&&!bX(r,i)}const SX=Jg(0),wX=Jg(0),CX=Jg(0),EX=Jg(e=>e(SX)+e(wX)),RX=Jg(e=>{const t=e(Jb),n=e(rV),r=t.height-(n?41:0);return{width:t.width,height:r}}),IX=Jg(e=>{const t=e(RX),n=e(CH),r=e(EH);return{width:t.width-r,height:t.height-n}}),AX=Jg(e=>{const t=e(IX),n=e(EX),r=e(CX);return Math.min(t.height-n,r)}),kX=Jg(-1),PX=sA(e=>Jg(t=>t(kX)===e)),DX=({style:e})=>sn.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var MX=w.memo(DX,xX);const TX=Jg(e=>{const t=e(IX),n=e(bV),r=e(EX),o=e(CX)+r,i=e(xY)*n+r;return o<2*t.height?o:i}),qX=Jg(e=>e(TX)<=e(RX).height),OX=()=>{},LX=e=>{e.preventDefault()};const NX=({columnIndex:e,rowIndex:t,style:n,data:r})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=r,f=cb(PX(t)),h=ub(kX),m=cb(fV),g=cb(zb),b=cb(qb),v=cb(Nb),y=cb(fU),x=cb(gb),S=cb(qX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:I}=function(e){const t="object"==typeof e,n=cb(Ob),r=ub(dU),o=cb(pU(e));if(_K(e),t&&n){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=NK(LX,e,r,OX);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),A=((e,t,n,r)=>{const o=D(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 ZU({ref:o,callback:s}),o})(t,e,w,s),k=i[e]?.isDim?m.dimension.values:m.measure.values,P=LK(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=$K(o,i,e);l=s?i.subTotalRow:l,l=zK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:LH(l,e.qAttrExps,t.qAttrExprInfoIDs);return r!==z$.Selected||s?r!==z$.Disabled||s?n?{...c,...i.grid.hoverColors}:c:{...c,color:n?i.grid.hoverColors?.color:c.color,background:`${tH}, ${n?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,I,k,m,x),o={rowindex:t,columnindex:e},s=n=>{v&&p?.(t,e),C?.(n)},D=u?n=>{u(n,t,e,w)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${I} ${ag}`,tabIndex:-1,style:{...n,...r,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:fH(g,w.isLastColumn,y),borderLeftWidth:hH(g,w.isLastColumn,y),justifyContent:cH(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:D,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:sn.jsx(OK,{cellSelectionState:I,hideTickIcon:!!w.isTotalRow,children:sn.jsx(MK,{forwardRef:m.contentStaticLineCount||1===l?void 0:A,cell:w,style:r,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return sn.jsx(MX,{style:{...n,...k,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:P}})};var jX=z(NX,xX);const _X=JR(Jg(async e=>{const t=e(vb),n=e(Ub),r=e(bY).page,{qDataPages:o}=t.qHyperCube;if(0!==r||0===o.length){const e=r*Math.min(NH,t.qHyperCube.qSize.qcy);if(n&&"getHyperCubeData"in n)return n.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),zX=Jg(e=>{const t=e(xY),n=e(IX),r=e(bV);return Math.min(t,Math.ceil(n.height/r))}),FX=Jg(e=>{const t=e(CV),n=e(IX);return t.reduce((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),$X=e=>{const t=D(e);return t.current=e,t},HX=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,BX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,VX=(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},WX=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some(e=>!e[t])},UX=(e,t,n,r,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,n,r,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=r.qTop+n,p=o+n,f=e[p]??[],h=t.some(BX);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&&_B(e,m),I=E||R?jB(m,e,a,C):e.qText,A=E?U$(I):W$(e),k=W$(e)&&!U$(e.qText??"");f[n]={id:Wz(),...e,align:OB(A,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h,isTotalRow:h,pageRowIdx:p,pageColIdx:n,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:n===u.qcx-1,isNumeric:A,isDual:k,isNull:(!E||!A)&&_B(e,m),representation:EB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>I,direction:c,enabledFeatures:{[tF.Image]:!0,[tF.Indicator]:!0,[tF.MiniChart]:!0}})},l(f[n],d,n)}),{row:f,pageRowIdx:p}})(n,l,c,e.qArea,u,r,o,i,a,s);n[p]=d})})},GX=({gridState:e,setEstimatedCellHeight:t})=>{const n=cb(vb),r=cb(tv),o=cb(Ub),i=cb(mb),a=cb(zb),s=cb(bY),l=cb(_X),c=cb(ZB),u=cb(xY),d=cb(zX),p=cb(FX),f=D([]),h=L((e,r)=>{const o=Array.isArray(r)?r.slice(0,u):(e=>Array(e).fill(void 0))(u);return UX(e,s,o,c,n,i,t,a),f.current=o,o},[u,s,c,n,i,t,a]),[m,g]=P(()=>h(l??[]));Zm(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const n=D(new Set),r=D(new Set),o=D(new Set),i=$X(e),a=$X(t),s=k(()=>({enqueue:e=>{const t=HX(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach(e=>{o.current.delete(HX(e))}),console.error("Failed to fetch pages",t)}finally{r.current.delete(e)}}},75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}}),[i,a]);return s})(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(WX(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(VX(f.current,e,t,n,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:n};b.enqueue(t)}}},[b,s]);return q(()=>{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,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,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}},KX=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},YX=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,XX=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:n,setCellHeight:r})=>{const o=cb(fV),i=cb(CV),{estimateLineCount:a}=Um(o.dimension.values),s=RH(o.dimension.values.fontSize),l=e||t||1===n;return L((e,t,o)=>{if(l||e.representation.type===tF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(n,Math.max(1,u));r(d*s,t,o,e.isTotalRow??!1)},[l,i,a,n,s,r])},JX=({isStaticNbrOfLines:e,minRowHeight:t,state:n,staticRowHeight:r=0})=>{const o=cb(RB);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])},ZX=({isSnapshot:e,gridRef:t})=>{const n=cb(fV),r=cb(xY),[o,i]=P(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=cb(gV),s=cb(bV),l=cb(vV),c=!!n.contentStaticLineCount,u=Math.max(8e6/r,s,l)-9,d=u+9,p=Math.max(1,Math.min(n.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:n})=>n?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const n=cb(vb),r=cb(bY),o=cb(CV),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;Zm(()=>{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]),Zm(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:n})=>{const r=cb(bV),o=cb(vV);return L((i,a,s,l=!1)=>{$(()=>{e(e=>{const c=l?o:r,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!YX(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:KX(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:c,lineClamp:p,setCellHeight:h}),g=XX({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=L(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return JX({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},QX=(e,t)=>{j(()=>()=>{t(0)},[e,t]);const n=L(e=>{const n=e.contentBoxSize.at(0)?.blockSize;void 0!==n&&t(n)},[t]);ZU({ref:e,callback:n})};let eJ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const tJ=({loadRows:e,loadColumns:t,gridState:n})=>{const r=cb(RB),o=cb(vb),i=cb(bY),a=cb(xY);return L(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,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?eJ.Down:r<t?eJ.Up:eJ.None,i=n>e?eJ.Right:n<e?eJ.Left:eJ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(n.current,s,c);if(n.current.overscanColumnStartIndex=s,n.current.overscanColumnStopIndex=l,n.current.overscanRowStartIndex=c,n.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+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===eJ.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===eJ.Up){const t=x+25,n=i.page*i.rowsPerPage,r=Math.max(n,v-25);e(b,r,y,t)}if(g===eJ.Right){const e=o.qHyperCube.qSize.qcx-b,n=y+5,r=Math.min(e,n);t(b,v,r,x)}else if(g===eJ.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 nJ=({columnIndex:e,data:t,rowIndex:n})=>{const r=t.rowsInPage[n]?.[e];return r?.id??`${n}-${e}`},rJ=(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)},oJ={overflow:"hidden",willChange:"auto"},iJ=F((e,t)=>{const{handleBodyKeyDown:n,handleBodyKeyUp:r,focusBodyCellOnClick:o}=FY(),i=cb(ZB),a=cb(IX),s=ub(CX),l=cb(AX),c=cb(RB),u=cb(vb),d=cb(zb),p=cb(CV),f=cb(xY),h=cb(wY),m=ub(SY),g=D(null),b=D(null),v=D(null),y=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=D(0),S=!!MH(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=ZX({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:A,loadColumns:P}=GX({gridState:y,setEstimatedCellHeight:C}),M=tJ({loadRows:A,loadColumns:P,gridState:y}),T=BG(),O=k(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:T,onKeyDown:n,onKeyUp:r,onCellClick:o}),[I,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=ub(dU),{shouldRefocusRef:n}=cb(DY),r=cb(Zb),o=cb(yY);q(()=>{t({type:F$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=L(()=>{n&&(n.current=r.contains(document.activeElement))},[n,r]);VG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),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]),q(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),rJ(h,b.current)}),()=>{m(null)}),[h,m]),QX(v,s),sn.jsx(lX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:oJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:O,onItemsRendered:M,itemKey:nJ,className:"sn-table-body",direction:d,children:jX})});var aJ=z(iJ);const sJ=({children:e})=>{const t=cb(IV),n=cb(TX);return sn.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:n},children:e})},lJ=(e,t)=>{const n=D(null),r=cb(CV);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 ZU({ref:n,callback:o}),n},cJ=$c("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}})),uJ=({index:e,style:t,data:n})=>{const{columns:r,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(fV),c=cb(zb),u=cb(Mb),d=cb(fU),p=ub(wH),f=cb(JB),h=cb(Nb),m=cb(CV)[e],g=cb(Wb),b=cb(IG(e)),v=r[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=oY({isInteractionEnabled:h,column:v}),C=cb(Ib),E=lJ(e,i),R=r.length-1===e,I=C?BU:dG,{ref:A,isDragging:k}=lY(v,e),P=LK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return sn.jsxs(cJ,{"data-dragging":k,ref:A,className:`sn-table-cell ${ag}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...mU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:fH(c,R,d),borderLeftWidth:hH(c,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:u,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:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[sn.jsx(I,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),sn.jsx(nY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},dJ=e=>{const[t,n]=P(new Map);Zm(()=>{n(new Map)},[e.length]);const r=L((e,t)=>{n(n=>YX(n.get(t),e)?new Map(n).set(t,e):n)},[]);return{rowHeight:k(()=>KX(t),[t]),setMeasuredCellHeight:r}},pJ=(e,t)=>{H(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},fJ=e=>{const t=cb(tv),n=cb(vb),r=cb(bY),o=cb(CV);Zm(()=>{e.current?.resetAfterIndex(0,!1)},[n,r,e,o,t])},hJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},mJ=F((e,t)=>{const{columResizeHandler:n}=e,r=cb(ZB),o=cb(IX),i=ub(SX),a=w.useRef(null),s=D(null),l=cb(hV),c=cb(vb),u=cb($b),d=cb(zb),p=cb(CV),{rowHeight:f,setMeasuredCellHeight:h}=dJ(r),m=eY(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=FY();return pJ(t,a),fJ(a),QX(s,i),sn.jsx(gX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...hJ,...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:uJ})});var gJ=z(mJ);const bJ=F((e,t)=>{const{children:n,onScroll:r}=e,o=cb(zb),i=cb(Lb),{width:a,height:s}=cb(RX),l=ub(wY),c=L(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return sn.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:r,dir:o,tabIndex:-1,children:n})}),vJ=({children:e})=>{const t=cb(zb),n=cb(IX);return sn.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})},yJ=({index:e,style:t,data:n})=>{const{columns:r,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=n,l=cb(fV),c=cb(vb),u=cb(zb),d=cb(qb),p=cb(Nb),f=cb(fU),h=cb(qX),m=lJ(e,i),g=r[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=r[e],y=c.qHyperCube.qSize.qcx-1===e,x=LK(r[e].id),S=a?t=>{a(t,e)}:void 0;return sn.jsx("div",{className:`sn-table-cell ${ag}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...mU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:fH(u,y,f),borderLeftWidth:hH(u,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:sn.jsx(HU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},xJ=F((e,t)=>{const{totals:n}=e,r=cb(ZB),o=cb(IX),i=ub(wX),a=D(null),s=D(null),l=cb(mV),c=cb(zb),u=cb(vb),d=cb(CV),{rowHeight:p,setMeasuredCellHeight:f}=dJ(r),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=FY();return pJ(t,a),fJ(a),QX(s,i),sn.jsx(gX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:hJ,itemCount:u.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:c,children:yJ})});var SJ=z(xJ);const wJ=(e,t,n)=>{const r=cb(zb),o=cb(RB);return L(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((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),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,n.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,n,e,t,r])};var CJ=z(()=>{const e=cb(JB),t=D(null),n=D(null),r=D(null),o=D(null),i=wJ(n,r,o),a=L(()=>{t.current&&(t.current.scrollTop=0)},[t]);AG(),(e=>{const t=cb(QB),n=cb(bY),r=cb(tv),o=cb(xY);q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),q(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[n,o,r,e])})(t),NG(t);const s=sn.jsx(SJ,{ref:r,totals:e},"totals");return sn.jsxs(wG,{children:[sn.jsx(bJ,{ref:t,onScroll:i,children:sn.jsxs(sJ,{children:[sn.jsxs(vJ,{children:[sn.jsx(gJ,{ref:n,columResizeHandler:a}),e.atTop?s:null,sn.jsx(aJ,{ref:o}),e.atBottom?s:null]}),sn.jsx(hU,{})]})}),sn.jsx(mG,{isPagination:!1})]})});const EJ=()=>{const e=cb(vb),t=cb(Jb),n=cb(Mb),{paginationNeeded:r,totalRowCount:o,totalColumnCount:i,totalPages:a}=cb(XB),s=cb(tv),l=cb(nv),c=cb(Wb),[u,d]=db(bY),p=D(null),f=D(!1),h=ub(vY),m=ub(yY);q(()=>{h(f)},[h]);const g=w.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=FY();return(()=>{const e=cb(Zb),{keyboard:t}=cb(PY),n=cb(RG),r=cb(JB),o=cb(xY),{scrollToCell:i}=cb(kY),{shouldRefocusRef:a}=cb(DY),s=D({focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}),l=D(null),c=D(null);j(()=>{s.current={focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:e}},[n,r,o,i,e]),q(()=>{let e=!1;const{focusedCellCoord:n,totalsPosition:r,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=n,d=r.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const n=t=>{if(e)return;const r=qY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);r&&document.activeElement!==r&&bU(r),r&&document.activeElement===r||t>0&&(l.current=requestAnimationFrame(()=>{n(t-1)}))};l.current=requestAnimationFrame(()=>{e||n(5)})}else{const e=qY(u,n,r,o);e&&bU(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const n=qY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);n?.blur(),_Y(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),EG(p,f),sn.jsxs(_U,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[sn.jsx(FG,{}),sn.jsx(CJ,{}),sn.jsx(ZW,{paginationNeeded:r,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:n,rect:t,layout:e})]})};var RJ=z(EJ);const IJ=e=>{const t=e.get(Ub),n=e.get(Bb),r=e.get(bb),o=e.get(zb);a(()=>{r&&t&&(n?function(e){const t=e.get(zb),n=e.get(ev),r=kV(t);n.render(sn.jsx(Di,{stylisPlugins:"rtl"===t?[L$]:void 0,children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(AV,{children:sn.jsx(pY,{})})})})}))}(e):function(e){const t=e.get(zb),n=e.get(ev),r=kV(t);n.render(sn.jsx(w.StrictMode,{children:sn.jsx(Bc,{theme:r,children:sn.jsx(rb,{store:e,children:sn.jsx(AV,{children:sn.jsx(RJ,{})})})})}))}(e))},[r,n,e,t,o])};function AJ(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"),c={top:r.y+i.height+(t.atTop?s.height:0),bottom:r.y+r.height-(t.atBottom?s.height:0)},u=((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,c),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,c),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,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const kJ=(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]}},PJ=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const DJ=(e,t,n,r,o)=>{if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||zB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},MJ=(e,t,n,r,o)=>{if(r&&!r.isMultiPage)return r;const i=DB(e,r);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=AJ(n,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:DJ(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:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=kJ(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)+u,visibleRowEndIndex:p+u};const g=r.y+r.height,b=(PJ(h,m,g)?d:d+1)+u;let v=p+u;const y=kJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(PJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:DJ(s,a,e,t,r),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},TJ=({store:e})=>{const t=e.get(vb),n=e.get(Ub),r=e.get(Zb),o=e.get(Xb),i=e.get($b),a=e.get(Bb);u(async s=>{const l=s;if(!l.snapshotData||!n||l.snapshotData.content)return l;if("getHyperCubeData"in n){const s=e.get(RB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=MJ(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:c,scrollLeft:u,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:()=>MJ(t,e.get(RB),r,i,a)}),[t,e,r,a])},qJ={version:JSON.stringify("6.43.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:[]};var OJ=e=>({properties:{initial:qJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>Cv({...e}),exportProperties:bv,exploration:Lz(e)});const LJ=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),NJ=e=>e.getStyle("object","straightTableV2","backgroundColor")}}});